/* 比較ページ(/compare/)。外枠は guide.css。ここでは5つの方法を「値札」の形で並べる。 */
.c-list { display: grid; gap: 18px; counter-reset: none; }
.g-main .card.c-opt { position: relative; margin: 0; border: 3px solid var(--rule, #111); border-left-width: 3px; background: var(--card, #fff); padding: 0 0 6px; border-radius: 2px; overflow: hidden; }
.c-opt > *:not(.c-tag) { margin-left: 18px; margin-right: 18px; }
.c-opt h3 { margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; }
.c-opt ul { padding-left: 1.1em; }
.c-opt li { margin: 4px 0; }
.c-tag { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0; padding: 12px 18px 12px; background: #111; color: #fff; border-bottom: 3px solid var(--rule, #111); }
.c-kind { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; color: #ffd400; }
.c-price { font-size: clamp(1.375rem, 6.4vw, 1.75rem); font-weight: 900; line-height: 1.2; letter-spacing: .01em; font-variant-numeric: tabular-nums; font-feature-settings: "palt"; white-space: nowrap; }
.c-price small { font-size: .5em; font-weight: 800; letter-spacing: .04em; }
/* 当サービスは黄の面で区別する(推奨の印ではなく、運営者の商品であることの明示) */
.g-main .card.c-ours { border-color: #111; }
.c-ours .c-tag { background: #ffd400; color: #111; }
.c-ours .c-kind { background: #111; color: #ffd400; padding: 1px 8px; }

/* 向かない場合: 注意の形(赤は注意にだけ使う) */
.g-main > .section.c-not { border: 3px solid var(--rule, #111); border-radius: 2px; padding: 0 18px 10px; }
.c-not > h2 { border-top: 0 !important; }
.c-not > h2::before { content: "!" !important; background: #c8102e !important; color: #fff !important; padding: 8px 12px !important; }
.c-not ul { list-style: none; padding: 0; max-width: none !important; }
.c-not li { border-top: 1px solid var(--line, #d8d8d4); padding: 12px 0 12px 0; margin: 0; }
.c-not li:first-child { border-top: 0; }
.c-not li strong { display: block; background: none; font-size: 1.0625rem; margin-bottom: 2px; }

/* 合いやすい場合: 黄の面に黒のチェック */
.c-fit ul { list-style: none; padding: 0; }
.c-fit li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 700; padding: 6px 0; margin: 0; }
.c-fit li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; background: #111; clip-path: polygon(14% 48%, 0 62%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.g-main .c-fit strong { background: none; }

@media (min-width: 900px) {
  .g-main .card.c-opt { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 22px; padding: 0 18px 0 0; }
  .c-opt > :last-child { margin-bottom: 14px; }
  .c-opt > *:not(.c-tag) { grid-column: 2; margin-left: 0; margin-right: 0; }
  .c-tag { grid-column: 1; grid-row: 1 / span 10; flex-direction: column; justify-content: flex-start; align-items: flex-start; border-bottom: 0; border-right: 3px solid var(--rule, #111); padding: 18px 16px; }
  .c-price { font-size: 1.5rem; white-space: nowrap; }
  .c-price small { display: block; margin: 2px 0; }
}
@media (prefers-color-scheme: dark) {
  .c-tag { outline: 0; }
  .g-main .card.c-opt { border-color: #5a5a56; }
  .c-tag { border-color: #5a5a56; }
  .g-main .card.c-ours { border-color: #ffd400; }
  .c-not > h2::before { background: #e5484d !important; color: #111 !important; }
}
@media print {
  .c-tag, .c-ours .c-tag { background: #fff !important; color: #111 !important; border-color: #111; }
  .c-kind, .c-ours .c-kind { color: #111 !important; background: none !important; }
  .g-main .card.c-ours { box-shadow: none; }
  .c-not > h2::before, .c-fit li::before { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
