/* しまかげ柑橘舎（架空のお店）— 制作見本7：食品通販のトップ・商品一覧・商品詳細
   配色は2案（?theme=a ／ ?theme=b で全ページ切り替え）。決め方は research.md。
   - A案「みかん畑」＝白地＋生成りの面＋深い緑の文字アクセント。カートのボタンは柑橘の橙
   - B案「島の海」 ＝白地＋淡い青磁の面＋深い青緑のアクセント。カートのボタンは同じく橙
   どちらも、実物 8店中5店がカートのボタンを暖色（橙・赤・山吹）にしていた所に合わせた。
   文字の大きさは全部 16px 以上（価格の注記・バッジ・フッターも）。コントラスト比は check.py で実測。 */

html[data-theme="a"],
:root {
  --bg: #ffffff;
  --surface: #f8f2e7;     /* 生成り＝実物 8店中4店が白の次に淡い暖色の面 */
  --surface-2: #fdfaf4;
  --text: #2a2521;        /* 本文は濃いめ＝実物は #222〜#333 */
  --sub: #4a423b;
  --accent: #2f5a3c;      /* 見出しの小見出し・リンク＝葉の緑 */
  --accent-soft: #e6eee3;
  --cart: #b4501c;        /* カートに入れる＝橙。白文字で 5.1:1 */
  --cart-dark: #943f12;
  --line: #e4dccd;
  --field-line: #8c8170;  /* 入力・選択肢の枠＝白地で 3.5:1 以上 */
  --pick: #2f5a3c;        /* 選んだ選択肢の枠と地 */
  --pick-soft: #e6eee3;
  --footer: #2f2a25;
  --demo: #2f5a3c;
}
html[data-theme="b"] {
  --bg: #ffffff;
  --surface: #edf3f2;
  --surface-2: #f7faf9;
  --text: #1d2a2e;
  --sub: #3a484c;
  --accent: #1f5560;
  --accent-soft: #dfeced;
  --cart: #b4501c;
  --cart-dark: #943f12;
  --line: #d6e1e0;
  --field-line: #78898c;
  --pick: #1f5560;
  --pick-soft: #dfeced;
  --footer: #1d2a2e;
  --demo: #1f5560;
}
:root {
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --head-weight: 600;
  --radius: 10px;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) { body { font-size: 17px; } }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }
small { font-size: 16px; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.sp-only { display: inline; }
@media (min-width: 900px) { .sp-only { display: none; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 見出し・ラベル ---------- */
.label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sec-title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
@media (min-width: 900px) { .sec-title { font-size: 32px; } }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head .sec-title { margin-bottom: 0; }
.text-link { font-weight: 700; text-underline-offset: 4px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(.9); }
.btn--ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--cart { width: 100%; min-height: 60px; background: var(--cart); color: #fff; font-size: 18px; border-radius: var(--radius); }
.btn--cart:hover { background: var(--cart-dark); }

/* ---------- 制作見本の帯・ヘッダー ---------- */
.demo-bar { background: var(--demo); color: #fff; text-align: center; font-size: 16px; line-height: 1.5; padding: 6px 16px; }
.demo-bar p { margin: 0; }
.demo-bar__more { display: none; }
.demo-bar__more::before { content: "／"; }
@media (min-width: 700px) { .demo-bar__more { display: inline; } }
.fict-tag { font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 20px 0;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo cart" "nav nav"; align-items: center;
}
.logo { grid-area: logo; display: flex; flex-direction: column; color: var(--text); text-decoration: none; line-height: 1.3; }
.logo__name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 22px; letter-spacing: 0.1em; }
.logo__sub { display: none; font-size: 16px; color: var(--sub); }
.gnav { grid-area: nav; display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; }
.gnav a { display: block; padding: 8px 0 10px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; }
.gnav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.cart-link {
  grid-area: cart; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--field-line); border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 16px; font-weight: 700;
}
.cart-count {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: var(--cart); color: #fff; font-size: 16px; line-height: 26px; text-align: center;
}
@media (min-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav cart"; gap: 32px; padding: 14px 20px; }
  .logo__sub { display: block; }
  .gnav { justify-content: flex-end; gap: 32px; }
  .gnav a { padding: 8px 0; }
}

/* ---------- トップ：ヒーロー ---------- */
.hero { display: grid; background: var(--surface); }
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__body { padding: 32px 20px 44px; }
.hero__title {
  margin: 0 0 20px;
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: 30px; line-height: 1.55; letter-spacing: 0.05em;
}
.hero__lead { max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero__note { color: var(--text); font-size: 16px; font-weight: 700; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 620px; }
  .hero__photo { order: 2; height: 100%; }
  .hero__photo img { height: 100%; aspect-ratio: auto; }
  .hero__body { padding: 64px 56px 64px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); }
  .hero__title { font-size: 44px; }
}

/* ---------- トップ：特徴（写真と文章を左右交互） ---------- */
.features { padding: 64px 0 24px; }
.feature { display: grid; gap: 20px; max-width: var(--wrap); margin: 0 auto 48px; padding: 0 20px; }
.feature__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.feature__num { margin: 0 0 4px; font-family: var(--font-head); color: var(--accent); font-size: 22px; letter-spacing: 0.1em; }
.feature__title { margin: 0 0 12px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 22px; line-height: 1.5; letter-spacing: 0.05em; }
@media (min-width: 900px) {
  .features { padding: 96px 0 40px; }
  .feature { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
  .feature--rev .feature__photo { order: 2; }
  .feature__title { font-size: 26px; }
}

/* ---------- 商品カード（おすすめ・関連） ---------- */
.featured, .related { padding: 64px 0; background: var(--surface-2); }
.card-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 900px) { .card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } .featured, .related { padding: 88px 0; } }
.card__link { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; background: var(--surface); }
.card__cat { color: var(--accent); font-size: 16px; font-weight: 700; }
.card__name { font-weight: 700; line-height: 1.5; }
.card__link:hover .card__name { text-decoration: underline; text-underline-offset: 4px; }
.card__meta { color: var(--sub); font-size: 16px; line-height: 1.5; }
.card__price { font-size: 18px; font-weight: 700; }
.card__price small { font-weight: 400; }

/* ---------- トップ：作り手・ギフト ---------- */
.makers { padding: 64px 0; }
.makers__inner, .gift__inner, .taste__inner, .ship__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; gap: 28px;
}
.makers__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.makers__sign { font-weight: 700; }
.makers__cap { margin-top: 8px; color: var(--sub); font-size: 16px; }
.makers__sign span { font-weight: 400; color: var(--sub); }
.gift { padding: 64px 0; background: var(--surface); }
.gift__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.gift .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .makers { padding: 104px 0; }
  .makers__inner { grid-template-columns: 0.8fr 1fr; gap: 72px; align-items: center; }
  .gift { padding: 96px 0; }
  .gift__inner { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
}
.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li { position: relative; padding-left: 1.6em; margin-bottom: 6px; }
.check-list li::before { content: ""; position: absolute; left: 0.2em; top: 0.55em; width: 0.7em; height: 0.4em; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- トップ：お買い物ガイド ---------- */
.guide { padding: 64px 0 80px; }
.guide__list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.guide__list > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide__list dt { font-weight: 700; }
.guide__list dd { margin: 0; }
@media (min-width: 900px) { .guide { padding: 96px 0 112px; } .guide__list > div { grid-template-columns: 10em 1fr; } }

/* ---------- 一覧：帯・絞り込み・グリッド ---------- */
.col-banner { position: relative; background: var(--surface); }
.col-banner__img { width: 100%; aspect-ratio: 16 / 5; min-height: 160px; object-fit: cover; }
.col-banner__body { padding-top: 20px; padding-bottom: 32px; }
.col-banner__title { margin: 4px 0 12px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 30px; line-height: 1.4; letter-spacing: 0.05em; }
.col-banner__lead { max-width: 40em; }
@media (min-width: 900px) { .col-banner__img { aspect-ratio: auto; height: 200px; } .col-banner__title { font-size: 40px; } .col-banner__body { padding-top: 16px; padding-bottom: 28px; } .col-banner__lead { max-width: none; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--sub); }
.breadcrumb a { color: var(--sub); }

.collection { padding: 28px 0 72px; }
.filters { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.filters legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { position: relative; }
.chip input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; white-space: nowrap; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--field-line); background: #fff; cursor: pointer;
}
.chip input:checked + span { background: var(--pick); border-color: var(--pick); color: #fff; font-weight: 700; }
.chip input:focus-visible + span, .pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--pick); }
.filters__note { margin: 2px 0 0 30px; color: var(--sub); font-size: 16px; line-height: 1.6; }
.sort { display: inline-flex; align-items: center; gap: 10px; }
.sort select { min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--field-line); border-radius: 8px; background: #fff; font-size: 16px; }
.filters__count { margin: 4px 0 0; font-weight: 700; }

.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }
.pcard { display: flex; flex-direction: column; }
.pcard__link { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.pcard__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; background: var(--surface); }
.pcard__cat { color: var(--accent); font-size: 16px; font-weight: 700; }
.pcard__name { font-weight: 700; line-height: 1.5; }
.pcard__link:hover .pcard__name { text-decoration: underline; text-underline-offset: 4px; }
.pcard__lead { color: var(--sub); font-size: 16px; line-height: 1.6; }
.pcard__price { font-size: 18px; font-weight: 700; margin-top: 2px; }
.pcard__price small { font-weight: 400; }
.pcard__spec { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.pcard__spec > div { margin-bottom: 6px; }
.pcard__spec dt { color: var(--sub); }
.pcard__spec dd { margin: 0; }
@media (min-width: 900px) { .pcard__spec > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; } }
.pgrid__empty { padding: 40px 0; text-align: center; }
.gift--compact { padding: 56px 0; }

/* ---------- 詳細：購入エリア ---------- */
.product { padding: 12px 0 48px; }
.product .breadcrumb { margin-bottom: 12px; }
.product__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; gap: 20px; }
.gallery { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: start; }
.gallery__main { position: relative; }
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.gallery__cap { position: absolute; left: 8px; bottom: 8px; margin: 0; padding: 1px 10px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--text); font-size: 16px; line-height: 1.6; }
.gallery__thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gallery__thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.gallery__thumbs button.is-current { border-color: var(--pick); }
.gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
@media (min-width: 900px) {
  .product { padding: 20px 0 88px; }
  .product__inner { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .gallery { grid-template-columns: 1fr; position: sticky; top: 110px; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

.buy { display: flex; flex-direction: column; }
.buy__cat { margin: 0; color: var(--accent); font-weight: 700; }
.buy__title { margin: 0 0 4px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 26px; line-height: 1.45; letter-spacing: 0.04em; }
.buy__price { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.buy__price small { font-weight: 400; }
.buy__notice { margin: 0 0 8px; font-weight: 700; line-height: 1.5; color: var(--cart-dark); }
.buy__lead { order: 10; margin: 4px 0 16px; }
.buy__facts { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.buy__facts li { padding: 2px 10px; border-radius: 6px; background: var(--surface); font-size: 16px; line-height: 1.6; }
@media (max-width: 899px) { .page-product .product .breadcrumb { display: none; } .product { padding-top: 14px; } .buy__facts { order: 9; } }  /* スマホは最初の画面に味の選択肢を入れるため、保存と包装の1行は選択肢の下へ */
.opt { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.opt__now { font-weight: 400; color: var(--sub); }
.opt__now::before { content: "："; }
/* 味・容量の選択肢は中身の幅で並べる（「甘夏マーマレード」をスマホでも1行に収める・語の途中で折らない） */
.pills { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.pills > .pill { flex: 1 1 auto; }
.pills--wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pill { position: relative; }
.pill { display: flex; }
.pill span {
  display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; min-height: 46px; padding: 9px 10px; border-radius: 8px;
  border: 1.5px solid var(--field-line); background: #fff; cursor: pointer; line-height: 1.5;
}
.pill input:checked + span { border: 2.5px solid var(--pick); background: var(--pick-soft); padding: 8px 9px; font-weight: 700; }
.pills:not(.pills--wrap) .pill span { padding: 9px 5px; }
.pills:not(.pills--wrap) .pill input:checked + span { padding: 8px 4px; }
/* 商品名・味名：語の途中で折らない（折ってよい所は app.js が <wbr> を入れる。収まらない時だけ最後の手段で折る） */
.wb { word-break: keep-all; overflow-wrap: anywhere; }
.buy__qty-row { order: 11; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty__label { font-weight: 700; margin-right: 6px; }
.qty__btn { width: 46px; height: 46px; border: 1.5px solid var(--field-line); border-radius: 8px; background: #fff; font-size: 20px; cursor: pointer; }
.qty__input { width: 58px; height: 46px; text-align: center; border: 1.5px solid var(--field-line); border-radius: 8px; font-size: 18px; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy__total { margin: 0; }
.buy__total strong { font-size: 22px; }
.buy .btn--cart { order: 12; }
.buy__demo { order: 13; margin: 10px 0 8px; font-weight: 700; color: var(--cart-dark); }
.buy__ship { order: 14; list-style: none; margin: 0; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); }
.buy__ship li { margin: 2px 0; }
@media (min-width: 900px) {
  .buy__title { font-size: 32px; }
  .buy__price { font-size: 30px; }
  .buy__lead { order: 0; }
}

/* ---------- 詳細：味・食べ方・原材料・配送・レビュー ---------- */
.taste { padding: 56px 0; background: var(--surface); }
.taste__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.meter { margin: 0 0 18px; }
.meter > div { display: grid; grid-template-columns: 5em 1fr; align-items: center; gap: 12px; margin-bottom: 10px; }
.meter dt { font-weight: 700; }
.meter dd { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meter__bar { position: relative; width: 150px; height: 12px; border-radius: 6px; background: #fff; border: 1.5px solid var(--field-line); overflow: hidden; }
.meter__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 20%); background: var(--accent); }
.meter__num { color: var(--sub); font-size: 16px; }
.taste__hint { color: var(--sub); }
@media (min-width: 900px) {
  .taste { padding: 88px 0; }
  .taste__inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

.howto { padding: 64px 0; }
.howto__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.howto__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.howto__list h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; }
.howto__list .howto__text { padding: 18px 20px; background: var(--surface); border-radius: var(--radius); }
.howto__text p { margin: 0; }
@media (min-width: 700px) { .howto__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
/* 写真が1枚だけの商品（ジュース・焼き菓子）＝左に写真つきの1つ目、右に残り2つ */
.howto--single .howto__list { gap: 16px; }
@media (min-width: 700px) {
  .howto--single .howto__list { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; gap: 20px 40px; align-items: start; }
  .howto--single .howto__list > li:first-child { grid-row: 1 / span 2; }
}
@media (min-width: 900px) { .howto { padding: 96px 0; } }

.specs { padding: 56px 0; background: var(--surface-2); border-top: 1px solid var(--line); }
.specs__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; gap: 28px; }
.specs__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .specs__photo { order: 2; } .specs__photo img { aspect-ratio: 3 / 2; } }
@media (min-width: 900px) { .specs { padding: 88px 0; } .specs__inner { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }
.specs__for { margin-bottom: 12px; }
.spec-table { margin: 0 0 14px; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-weight: 700; }
.spec-table dd { margin: 0; }
.specs__note { color: var(--sub); }
@media (min-width: 700px) { .spec-table > div { grid-template-columns: 8em 1fr; gap: 16px; } }

.ship { padding: 64px 0; }
.ship-table { width: 100%; max-width: 520px; border-collapse: collapse; margin-bottom: 20px; }
.ship-table caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
.ship-table th, .ship-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; font-weight: 400; }
.ship-table th { background: var(--surface); }
.ship-table td { font-weight: 700; white-space: nowrap; }
.ship__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
  .ship { padding: 96px 0; }
  .ship__inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

.reviews { padding: 56px 0; background: var(--surface); }
.reviews__fict { padding: 10px 14px; border-left: 4px solid var(--accent); background: #fff; }
.review-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.review { padding: 18px 20px; background: #fff; border-radius: var(--radius); }
.review__head { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; color: var(--sub); }
.review__stars { color: var(--cart-dark); letter-spacing: 0.1em; }
@media (min-width: 900px) {
  /* PC はレビューを横に並べる（縦に積むと長くなるだけ） */
  .reviews .container--narrow { max-width: var(--wrap); }
  .review-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
}

/* ---------- 追従のカートボタン（スマホのみ・商品詳細） ---------- */
.sticky-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
}
.sticky-cart.is-shown { transform: none; visibility: visible; }
.sticky-cart__price { margin: 0; font-weight: 700; font-size: 18px; white-space: nowrap; }
.sticky-cart__price small { font-weight: 400; }
.sticky-cart .btn--cart { min-height: 52px; font-size: 17px; }
.page-product { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky-cart { display: none; } .page-product { padding-bottom: 0; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 48px 0 32px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; gap: 24px; }
.site-footer__name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 22px; letter-spacing: 0.1em; margin-bottom: 6px; }
.site-footer a { color: #fff; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer__fict { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; }
.site-footer__copy { margin: 0; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__fict, .site-footer__copy { grid-column: 1 / -1; } }

/* ---------- カートの中身（見本）・トースト ---------- */
.cart-dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .45); }
.cart-dialog__panel { width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; padding: 24px; background: #fff; border-radius: 14px; }
.cart-dialog__title { margin: 0 0 12px; font-size: 22px; }
.cart-dialog__list { margin: 0 0 14px; padding-left: 1.2em; }
.cart-dialog__note { padding: 10px 14px; background: var(--surface); border-radius: 8px; font-weight: 700; }
.cart-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 70; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 480px; padding: 14px 18px; border-radius: 10px;
  background: var(--footer); color: #fff; font-size: 16px; line-height: 1.6; box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}
@media (min-width: 900px) { .toast { bottom: 32px; } }
