/* hibi Select 商品LP（/p/商品名/）とトップの一覧
   商品ごとの色は body の class（.c-seat / .c-pouch）で切り替える */

:root {
  --ink: #22201c;
  --sub: #66615a;
  --paper: #f7f4ee;
  --card: #ffffff;
  --rule: #e2dcd1;
  --accent: #c2410c;      /* 商品ごとに上書き */
  --accent-soft: #fbe9de;
  --btn: #c2410c;
  --btn-ink: #ffffff;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --round: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}
.c-seat  { --accent: #b45309; --accent-soft: #fdf0dc; --btn: #b45309; }
.c-pouch { --accent: #3f5f4a; --accent-soft: #e5eee6; --btn: #3f5f4a; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
.w { width: min(1040px, 100% - 36px); margin-inline: auto; }
.w-s { width: min(720px, 100% - 36px); margin-inline: auto; }
.pre { white-space: pre-line; }

.todo { background: #fff0a0; color: #6b5800; padding: 0 5px; border-radius: 3px; font-style: normal; font-weight: 500; }

/* 上部バー（価格と購入ボタンをいつも見えるように） */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(247, 244, 238, .96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.topbar .w { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { font-family: var(--round); font-weight: 800; letter-spacing: .04em; text-decoration: none; font-size: 1.05rem; }
.brand span { color: var(--accent); }
.topbar .mini { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.topbar .mini b { font-size: 1rem; }

/* ボタン：角を少しだけ丸めた四角 */
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 800;
  border-radius: 10px; padding: 15px 26px; font-size: 1.05rem; border: 2px solid transparent;
  transition: filter .15s ease, transform .15s ease;
}
.buy:hover { filter: brightness(.93); transform: translateY(-1px); }
.buy:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.buy.sm { padding: 8px 16px; font-size: .88rem; border-radius: 8px; }
.buy.wide { display: flex; width: 100%; }
.buy.is-pending { background: #b9b3a8; color: #fff; cursor: not-allowed; filter: none; transform: none; }
.buy small { font-weight: 500; opacity: .9; }

/* ヒーロー：商品の色の帯 */
.hero { background: var(--accent-soft); border-bottom: 1px solid var(--rule); }
.hero .w { display: grid; gap: 28px; padding: 36px 0 44px; }
.hero .kicker { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 4px; padding: 0 8px; }
.hero h1 { margin-top: 14px; font-family: var(--round); font-weight: 800; font-size: clamp(1.9rem, 7.4vw, 2.9rem); line-height: 1.35; }
.hero .lead { margin-top: 14px; color: #4a453e; max-width: 30em; }
.pricebox { margin-top: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; max-width: 440px; }
.pricebox .row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pricebox .yen { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pricebox .tax { font-size: .82rem; color: var(--sub); }
.pricebox ul { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--sub); }
.pricebox li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.pricebox .note { margin-top: 10px; font-size: .78rem; color: var(--sub); }
.shot {
  aspect-ratio: 4 / 3; background: var(--card); border-radius: 14px; border: 1px dashed var(--rule);
  display: grid; place-items: center; color: var(--sub); font-size: .88rem; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* 見出し：左寄せ・番号つき */
.sec { padding: 56px 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.sec-h .no { font-family: var(--round); font-weight: 800; color: var(--accent); font-size: .95rem; }
.sec-h h2 { font-size: clamp(1.3rem, 4.8vw, 1.7rem); }

/* 困りごと→解決（1行ずつの対応表） */
.pairs { display: grid; gap: 10px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--rule); }
.pair .from { color: var(--sub); font-size: .92rem; }
.pair .arrow { color: var(--accent); font-weight: 800; }
.pair .to { font-weight: 700; font-size: .95rem; }

/* 特長：大きな番号と文章の横並び */
.feats { display: grid; gap: 22px; }
.feat { display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.feat .big { font-family: var(--round); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--accent); opacity: .85; }
.feat h3 { font-size: 1.1rem; }
.feat p { margin-top: 4px; color: #4a453e; font-size: .95rem; }

/* 向いている人・向いていない人 */
.fit { display: grid; gap: 14px; }
.fit-col { background: var(--card); border-radius: 12px; padding: 18px 20px; border: 1px solid var(--rule); }
.fit-col h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.fit-col h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.fit-col.no h3::before { background: #9a948a; }
.fit-col ul { margin: 10px 0 0; padding-left: 1.2em; font-size: .94rem; }
.fit-col li { margin-bottom: 4px; }

/* 仕様の表 */
table.spec { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: .94rem; }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.spec th { width: 32%; color: var(--sub); font-weight: 500; background: #fbf9f5; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
.small-note { margin-top: 10px; font-size: .8rem; color: var(--sub); }

/* お届けまで：横の時系列 */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; }
.timeline span { font-size: .9rem; color: var(--sub); }

/* 質問 */
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "▾"; position: absolute; right: 4px; top: 14px; color: var(--accent); transition: transform .2s ease; }
.qa details[open] summary::after { transform: rotate(180deg); }
.qa details p { padding: 0 0 16px; color: #4a453e; font-size: .95rem; }

/* 最後の購入 */
.closing { background: var(--accent); color: #fff; padding: 52px 0 56px; }
.closing h2 { font-family: var(--round); font-size: clamp(1.4rem, 5.4vw, 2rem); }
.closing p { margin-top: 8px; opacity: .92; }
.closing .pricebox { color: var(--ink); margin-top: 22px; }

/* ほかの商品 */
.more { display: grid; gap: 10px; }
.more a { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; text-decoration: none; }
.more a:hover { border-color: var(--accent); }
.more small { color: var(--sub); white-space: nowrap; }

footer { padding: 28px 0 40px; font-size: .82rem; color: var(--sub); border-top: 1px solid var(--rule); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer small { display: block; margin-top: 14px; }

/* トップの一覧 */
.intro { padding: 44px 0 20px; }
.intro h1 { font-family: var(--round); font-weight: 800; font-size: clamp(1.7rem, 6.4vw, 2.5rem); }
.intro p { margin-top: 10px; color: var(--sub); }
.list { display: grid; gap: 14px; padding: 20px 0 56px; }
.tile { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px; text-decoration: none; }
.tile .shot { aspect-ratio: 1 / 1; font-size: .7rem; text-align: center; padding: 4px; }
.tile h2 { font-size: 1.02rem; }
.tile p { font-size: .85rem; color: var(--sub); margin-top: 2px; }
.tile .go { color: var(--accent); font-weight: 700; font-size: .88rem; margin-top: 6px; }

@media (max-width: 559px) {
  .topbar .mini span { display: none; }
  .pair { grid-template-columns: 1fr; gap: 2px; }
  .pair .arrow { display: none; }
  .pair .to::before { content: "→ "; color: var(--accent); }
}
@media (min-width: 760px) {
  .hero .w { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 64px 0 72px; gap: 48px; }
  .sec { padding: 80px 0; }
  .feats { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .feat { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline li { padding: 30px 16px 0 0; }
  .timeline li::before { left: 0; top: 0; }
  .timeline li::after { left: 16px; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
  .more { grid-template-columns: 1fr 1fr; }
  .list { grid-template-columns: repeat(3, 1fr); }
  .tile { grid-template-columns: 1fr; }
  .tile .shot { aspect-ratio: 4 / 3; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buy, .qa summary::after { transition: none; }
}
@media (min-width: 760px) {
  .hero h1 { font-size: clamp(1.9rem, 2.9vw, 2.35rem); }
}
.more .why { color: var(--sub); font-weight: 400; white-space: normal; }
/* 商品写真は切り抜かずに全体を見せる */
.shot.has-img { background: #fff; border-style: solid; }
.shot img { object-fit: contain; }
.shot.has-img { aspect-ratio: auto; display: block; padding: 0; width: 100%; max-width: 520px; justify-self: center; }
.shot.has-img img { width: 100%; height: auto; object-fit: initial; }
/* スマホでは商品写真を見出しより先に出す */
@media (max-width: 759px) { .hero .shot { order: -1; } }
.spec-img { margin: 18px auto 0; max-width: 420px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.spec-img img { width: 100%; height: auto; }
@media (max-width: 759px) { .hero h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); } }
.ba-img { margin: 22px auto 0; max-width: 520px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.ba-img img { width: 100%; height: auto; }
.ba-img figcaption { padding: 8px 12px; font-size: .78rem; color: var(--sub); }
