/* ===== 干し芋ナビ ベーススタイル ===== */

/* 読み込み中スピナー（本番・CMS取得待ち） */
.cms-loading { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #6c6657; font-family: "Zen Kaku Gothic New", system-ui, sans-serif; }
.cms-loading p { margin: 0; font-size: 14px; letter-spacing: .04em; }
.cms-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #e3dcc9; border-top-color: #cf9335; animation: cmsspin .8s linear infinite; }
@keyframes cmsspin { to { transform: rotate(360deg); } }

/* 接続ステータスの帯（正常時は非表示。未設定・エラー時のみ表示） */
.cms-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 11px 14px; border-radius: 12px; font-family: "Zen Kaku Gothic New", system-ui, sans-serif; font-size: 13px; line-height: 1.6; box-shadow: 0 10px 30px -10px rgba(0,0,0,.3); }
.cms-banner.warn { background: #4a3b1e; color: #ffe9bf; border: 1px solid #6b5526; }
.cms-banner span { flex: 1; }
.cms-banner button { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; border: none; background: rgba(255,255,255,.16); color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.cms-banner button:hover { background: rgba(255,255,255,.28); }

:root {
  /* 既定テーマ＝和モダン */
  --bg:        #f5f1e7;
  --surface:   #fffdf7;
  --surface-2: #efe9da;
  --ink:       #2b2922;
  --ink-soft:  #6c6657;
  --ink-faint: #9a9384;
  --line:      #e3dcc9;
  --olive:     #6d7a3c;
  --olive-deep:#525d2c;
  --amber:     #cf9335;
  --amber-soft:#ecca7c;
  --terra:     #b15a34;
  --star:      #e0a92e;

  --radius:    14px;
  --radius-sm: 9px;
  --pad:       1;        /* 密度係数 */
  --font-ui:   "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-head: "Shippori Mincho B1", "Zen Kaku Gothic New", serif;
  --font-num:  "DM Sans", "Zen Kaku Gothic New", sans-serif;
  --shadow:    0 1px 2px rgba(43,41,34,.05), 0 8px 24px -16px rgba(43,41,34,.18);
  --shadow-lg: 0 4px 12px -4px rgba(43,41,34,.12), 0 24px 48px -24px rgba(43,41,34,.28);
  --base-fz:   16px;
}

/* ナチュラル：丸み強め・緑寄り・ゴシック見出し */
[data-theme="natural"] {
  --bg:        #f1f0e4;
  --surface:   #ffffff;
  --surface-2: #e9ead8;
  --ink:       #2f3026;
  --ink-soft:  #65675a;
  --line:      #dfe0cd;
  --olive:     #5e8a4e;
  --olive-deep:#456838;
  --amber:     #d8a23e;
  --terra:     #c9743a;
  --radius:    22px;
  --radius-sm: 14px;
  --font-head: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  --font-ui:   "Zen Maru Gothic", system-ui, sans-serif;
}

/* データベース：直線的・密度高め・ゴシック */
[data-theme="database"] {
  --bg:        #eef0f2;
  --surface:   #ffffff;
  --surface-2: #f4f6f8;
  --ink:       #24272b;
  --ink-soft:  #5d636b;
  --ink-faint: #9aa1aa;
  --line:      #dde1e6;
  --olive:     #4f7a3c;
  --olive-deep:#3c5e2d;
  --amber:     #c98a2c;
  --terra:     #b15a34;
  --radius:    6px;
  --radius-sm: 4px;
  --pad:       0.82;
  --font-head: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-ui:   "Zen Kaku Gothic New", system-ui, sans-serif;
  --shadow:    0 1px 2px rgba(36,39,43,.06);
  --shadow-lg: 0 2px 8px rgba(36,39,43,.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--base-fz);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.num { font-family: var(--font-num); font-feature-settings: "tnum"; }

/* ===== レイアウト ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.app { min-height: 100vh; }

/* ===== ヘッダー ===== */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(150deg, var(--amber), var(--terra));
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.12);
}
[data-theme="database"] .brand-mark { border-radius: 6px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: .02em; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: .14em; }
.hdr-search { flex: 1; max-width: 460px; position: relative; }
.hdr-search input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); padding: 0 16px 0 42px; font-size: 14px; color: var(--ink);
  font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
[data-theme="database"] .hdr-search input { border-radius: var(--radius-sm); }
.hdr-search input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 18%, transparent); }
.hdr-search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.hdr-nav { display: flex; gap: 4px; flex-shrink: 0; }
.hdr-nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
[data-theme="database"] .hdr-nav a { border-radius: var(--radius-sm); }
.hdr-nav a:hover { background: var(--surface-2); color: var(--ink); }
.hdr-nav a.active { background: var(--olive); color: #fff; }
.hdr-burger { display: none; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; transition: transform .12s, box-shadow .15s, background .15s;
}
[data-theme="database"] .btn { border-radius: var(--radius-sm); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--olive); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--olive-deep); }
.btn-buy { background: linear-gradient(160deg, var(--amber), #c47e26); color: #fff; box-shadow: var(--shadow); }
.btn-buy:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ===== バッジ・チップ ===== */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-soft);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
[data-theme="database"] .chip { border-radius: var(--radius-sm); }
.chip.olive { background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive-deep); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--terra); box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
[data-theme="database"] .badge { border-radius: var(--radius-sm); }
.rank-badge {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-family: var(--font-num); font-weight: 700; font-size: 15px; color: #fff; background: var(--ink-soft);
}
.rank-badge.r1 { background: linear-gradient(150deg,#e6b94e,#c9941f); }
.rank-badge.r2 { background: linear-gradient(150deg,#bfc3c9,#9097a0); }
.rank-badge.r3 { background: linear-gradient(150deg,#cf9a6e,#a9713f); }

/* ===== 星評価 ===== */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.stars svg { width: 16px; height: 16px; }
.stars.lg svg { width: 21px; height: 21px; }
.star-empty { color: var(--line); }
.star-full  { color: var(--star); }
.rating-num { font-family: var(--font-num); font-weight: 700; margin-left: 6px; }

/* ===== 項目別スコア（★表示） ===== */
.scorebar { display: grid; grid-template-columns: 3.2em auto 1fr; align-items: center; gap: 8px; }
.scorebar .lbl { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.scorebar .stars.sm svg { width: 15px; height: 15px; }
.scorebar .val { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--ink-soft); text-align: left; }

/* ===== 画像プレースホルダ ===== */
.ph {
  position: relative; overflow: hidden; background: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 9px,
    color-mix(in srgb, var(--amber) 14%, transparent) 9px, color-mix(in srgb, var(--amber) 14%, transparent) 18px);
  display: grid; place-items: center;
}
.ph span {
  font-family: "Space Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .04em;
  color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 4px 9px; border-radius: 6px;
}

/* ===== セクション見出し ===== */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.sec-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: .02em; }
.sec-title small { display: block; font-family: var(--font-num); font-size: 12px; letter-spacing: .18em; color: var(--amber); font-weight: 700; margin-bottom: 4px; }
.sec-link { font-size: 14px; font-weight: 600; color: var(--olive-deep); display: inline-flex; align-items: center; gap: 4px; }
.sec-link:hover { gap: 7px; }

/* ===== カード共通 ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== トップ：ヒーロー ===== */
.hero { position: relative; padding: calc(56px * var(--pad)) 0 calc(40px * var(--pad)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.18; letter-spacing: .01em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero p.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 26px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 30px; }
.hero-stats .n { font-family: var(--font-num); font-weight: 700; font-size: 26px; color: var(--olive-deep); }
.hero-stats .k { font-size: 12px; color: var(--ink-soft); }
.hero-art { position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-float {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px);
  border-radius: var(--radius-sm); padding: 13px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}

/* ===== 絞り込みのクイック導線 ===== */
.facet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.facet-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 16px 14px; transition: transform .14s, box-shadow .14s, border-color .14s; cursor: pointer;
}
.facet-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--olive) 40%, var(--line)); }
.facet-tile .ft-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.facet-tile .ft-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.facet-tile .ft-cnt { font-family: var(--font-num); font-size: 12px; color: var(--amber); font-weight: 700; margin-top: 8px; }

/* 情報タイル（食べ方・保存方法） */
.info-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 16px; }
.info-tile .info-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
[data-theme="database"] .info-tile .info-no { border-radius: var(--radius-sm); }
.info-tile .ft-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.info-tile .ft-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }

/* サイトについて（運営者情報・お問い合わせ） */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.about-dl dt { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.about-dl dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.contact-lbl { font-size: 12px; font-weight: 700; color: #fff; background: var(--olive); padding: 3px 9px; border-radius: 999px; }
[data-theme="database"] .contact-lbl { border-radius: var(--radius-sm); }
.contact-form { display: flex; flex-direction: column; gap: 9px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--bg); outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 16%, transparent); }
.contact-form .form-hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; line-height: 1.6; }

/* ===== トップ：ランキング横スクロール ===== */
.rank-row { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.rank-row::-webkit-scrollbar { height: 8px; }
.rank-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.pcard { scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .14s, box-shadow .14s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard .pimg { position: relative; aspect-ratio: 4/3; }
.pcard .pbody { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .pmaker { font-size: 12px; color: var(--ink-soft); }
.pcard .pname { font-weight: 700; font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.pcard .pprice { font-family: var(--font-num); font-weight: 700; font-size: 19px; }
.pcard .pprice small { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* ===== 健康効果 ===== */
.health { background: var(--olive-deep); color: #fff; border-radius: var(--radius); padding: clamp(28px,4vw,44px); }
.health .sec-title { color: #fff; }
.health .sec-title small { color: var(--amber-soft); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; margin-top: 6px; }
.hp { display: flex; flex-direction: column; gap: 9px; }
.hp .hp-ico { width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, #fff 14%, transparent); display: grid; place-items: center; color: var(--amber-soft); }
.hp h4 { margin: 0; font-size: 16px; font-weight: 700; }
.hp p { margin: 0; font-size: 13.5px; color: color-mix(in srgb, #fff 78%, transparent); line-height: 1.6; }
.health-note { font-size: 11.5px; color: color-mix(in srgb,#fff 60%, transparent); margin-top: 22px; }

/* ===== 一覧ページ ===== */
.list-layout { display: grid; grid-template-columns: 264px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 86px; }
.fil-card { padding: 6px 0; }
.fil-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; }
.fil-head .ft { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.fil-clear { font-size: 12px; color: var(--terra); font-weight: 600; }
.fil-group { border-top: 1px solid var(--line); padding: 14px 18px; }
.fil-group h5 { margin: 0 0 11px; font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.fil-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.fil-opt:hover { color: var(--olive-deep); }
.fil-opt .box {
  width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line); flex-shrink: 0;
  display: grid; place-items: center; color: #fff; transition: background .12s, border-color .12s;
}
[data-theme="database"] .fil-opt .box { border-radius: 4px; }
.fil-opt.on .box { background: var(--olive); border-color: var(--olive); }
.fil-opt .cnt { margin-left: auto; font-family: var(--font-num); font-size: 12px; color: var(--ink-faint); }
.fil-radio .box { border-radius: 50%; }

/* 一覧ツールバー */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.list-count { font-size: 14px; color: var(--ink-soft); }
.list-count b { font-family: var(--font-num); color: var(--ink); font-size: 17px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sortsel { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
[data-theme="database"] .sortsel { border-radius: var(--radius-sm); }
.sortsel button { border: none; background: transparent; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
[data-theme="database"] .sortsel button { border-radius: var(--radius-sm); }
.sortsel button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.viewtoggle { display: flex; gap: 2px; }
.viewtoggle button { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-soft); }
.viewtoggle button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.viewtoggle button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: none; }
.viewtoggle button.on { background: var(--olive); color: #fff; border-color: var(--olive); }

/* 一覧：行（リスト表示） */
.rows { display: flex; flex-direction: column; gap: 12px; }
.prow { display: grid; grid-template-columns: 132px 1fr auto; gap: 18px; padding: 14px; align-items: stretch; overflow: hidden; transition: box-shadow .14s, border-color .14s; }
.prow:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--olive) 30%, var(--line)); }
.prow .pimg { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; align-self: start; width: 100%; }
.prow .pmain { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.prow .ptop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.prow .pmaker { font-size: 12.5px; color: var(--ink-soft); }
.prow .pname { font-weight: 700; font-size: 17px; line-height: 1.35; }
.prow .ptags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.prow .pscores { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 20px; max-width: 360px; margin-top: 4px; }
.prow .pright { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: right; border-left: 1px dashed var(--line); padding-left: 18px; min-width: 158px; }
.prow .pprice { font-family: var(--font-num); font-weight: 700; font-size: 24px; line-height: 1; }
.prow .pper { font-size: 11.5px; color: var(--ink-soft); }

/* 一覧：グリッド表示 */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px,1fr)); gap: 16px; }

/* 購入ボタン（3チャンネル） */
.buy-row { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.buy-btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #fff; transition: filter .14s, transform .1s; white-space: nowrap; }
.buy-row.compact .buy-btn { height: 34px; font-size: 13px; }
.buy-btn i { font-style: normal; font-weight: 500; font-size: 11px; opacity: .85; }
.buy-btn:active { transform: translateY(1px); }
.buy-rakuten { background: #bf0000; }
.buy-amazon { background: #ff9900; color: #1f1a12; }
.buy-official { background: var(--olive); }
.buy-btn:hover { filter: brightness(1.06); }
.buy-btn.disabled { background: var(--surface-2); color: var(--ink-faint); cursor: not-allowed; border: 1px dashed var(--line); }
.buy-btn.disabled i { opacity: .8; font-size: 10.5px; }
[data-theme="database"] .buy-btn { border-radius: var(--radius-sm); }
.btn-detail { background: none; border: none; color: var(--olive-deep); font-size: 12.5px; font-weight: 600; padding: 3px 0; width: 100%; text-align: center; }
.btn-detail:hover { text-decoration: underline; }

/* 空状態 */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty .big { font-size: 44px; margin-bottom: 8px; }

/* モバイル絞り込みボタン */
.mob-filter-bar { display: none; }

/* フッター */
.ftr { margin-top: 60px; border-top: 1px solid var(--line); background: var(--surface); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 34px; }
.ftr h6 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.ftr a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; }
.ftr a:hover { color: var(--olive-deep); }
.ftr-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12px; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.aff-note { background: color-mix(in srgb, var(--amber) 12%, transparent); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

/* ===== 商品詳細モーダル ===== */
.modal-back { position: fixed; inset: 0; background: rgba(30,28,22,.5); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius); width: min(720px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-img { position: relative; aspect-ratio: 4/3.2; background: var(--surface-2); overflow: hidden; }
.modal-img .ph, .modal-img > img { border-radius: 0; }

/* 商品画像スライダー */
.gallery { position: absolute; inset: 0; overflow: hidden; background: #f0ece0; }
.gallery-track { display: flex; height: 100%; transition: transform .32s cubic-bezier(.4,0,.2,1); }
.gallery-slide { flex: 0 0 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.86); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: background .15s; z-index: 3; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow.left { left: 12px; }
.gallery-arrow.left svg { transform: rotate(180deg); }
.gallery-arrow.right { right: 12px; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.gallery-dots .gdot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: background .15s, transform .15s; }
.gallery-dots .gdot.on { background: #fff; transform: scale(1.3); }
.gallery-count { position: absolute; top: 12px; left: 12px; background: rgba(30,28,22,.6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; z-index: 3; }
.modal-body { padding: 22px 26px 28px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; font-size: 18px; color: var(--ink); z-index: 2; }
.review-item { border-top: 1px solid var(--line); padding: 14px 0; }
.review-item .rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-item .rv-user { font-weight: 700; font-size: 14px; }
.review-item .rv-date { font-family: var(--font-num); font-size: 12px; color: var(--ink-faint); margin-left: auto; }
.review-item p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rv-photo { width: 92px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: transform .12s; }
.rv-photo:hover { transform: scale(1.03); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== レスポンシブ ===== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .list-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; top: auto; z-index: 70; transform: translateY(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1); max-height: 84vh; overflow-y: auto;
    background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  }
  .filters.open { transform: translateY(0); }
  .fil-card { border: none; box-shadow: none; }
  .mob-filter-bar { display: flex; gap: 10px; position: sticky; top: 74px; z-index: 30; padding: 10px 0; background: color-mix(in srgb,var(--bg) 90%, transparent); backdrop-filter: blur(8px); }
  .filters-scrim { position: fixed; inset: 0; background: rgba(30,28,22,.4); z-index: 65; }
  .prow { grid-template-columns: 104px 1fr; }
  .prow .pright { grid-column: 1 / -1; flex-direction: column; align-items: stretch; justify-content: flex-start; border-left: none; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 12px; min-width: 0; text-align: left; }
  .prow .pright > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
  .prow .pright .buy-row { flex-direction: row; }
  .prow .pscores { max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hdr-search { display: none; }
  .hdr-nav { display: none; }
  .hdr-burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); margin-left: auto; }
  .hero-stats { gap: 18px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .prow .pscores { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .prow { grid-template-columns: 1fr; }
  .prow .pimg { aspect-ratio: 16/9; }
  .ftr-grid { grid-template-columns: 1fr; }
}

/* モバイルメニュー（オーバーレイ） */
.mob-menu { position: fixed; inset: 0; z-index: 80; background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.mob-menu a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 17px; font-weight: 600; }
.mob-menu a.active { background: var(--olive); color: #fff; }
.mob-menu .mm-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; }
