/* ============================================================
   たるDB サンプル酒店 — 白い意匠 (THEME=white)
   提供されたモックアップに忠実:
     ryusuisen-product-page-mockup.html
   地 #f5f5f5 / 白いカード / 罫 #ebebeb / 朱 #c02b1e / Noto Sans JP
   **クラス名は黒い意匠と共通**。だからマークアップを 1 行も変えずに差し替わる。
   ============================================================ */

:root {
  /* モックアップのトークンをそのまま使う */
  --ink: #1a1a1a;
  --sub: #767676;
  --line: #ebebeb;
  --seal: #c02b1e;
  --indigo: #1a2f45;
  --bg: #f5f5f5;

  /* 上の 6 色から派生させたもの (モックアップに無い箇所のため) */
  --card: #ffffff;
  --soft: #fafafa;
  --ink-2: #333333;
  --ink-3: var(--sub);
  --ink-4: #9a9a9a;
  --line-2: #dcdcdc;
  --ok: #1f7a3d;
  --warn: #9a6100;

  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --display: var(--sans);
  --jp: var(--sans);

  /* モックアップは角丸を使わない */
  --r: 0;
  --wrap: 960px;
  --gap: 16px;
  --rule: 1px solid var(--line);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--seal); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--seal); color: #fff; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 器: 白いカードを 960px で中央に ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; }
.narrow-sm { max-width: 380px; }
.prose { max-width: 640px; }
.center-block { text-align: center; padding: 48px 0; }
.two-col { display: grid; gap: 24px; align-items: start; }

main#main { padding: 24px 0 60px; }
/* 各節は白いカードの中に積む */
main#main > section,
main#main > div > section,
main#main > div.wrap > .page-head { background: transparent; }

section { padding: 30px 0; }

/* ---------- 文字 ---------- */
h1, h2, h3 { margin: 0; line-height: 1.5; }
.title-xl { font-size: 22px; font-weight: 700; line-height: 1.5; }
.title-l { font-size: 19px; font-weight: 700; }
.title-m { font-size: 17px; font-weight: 700; margin-top: 2em; }
.title-s { font-size: 13px; font-weight: 700; color: var(--sub); margin-top: 2em; }
.lede { font-size: 14px; line-height: 1.9; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--sub); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* モックアップの eyebrow は灰。朱にしない */
.eyebrow { font-size: 11.5px; color: var(--sub); letter-spacing: 0.04em; margin: 0 0 10px; }
.ruby { color: var(--sub); font-size: 0.86em; margin-left: 0.4em; }

.page-head { background: var(--card); border: var(--rule); padding: 24px 28px; margin-bottom: 16px; }
.page-head .muted { margin: 8px 0 0; font-size: 12.5px; }

.section-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-lede { color: var(--sub); font-size: 13px; margin: -8px 0 16px; }
.more { font-size: 12.5px; color: var(--seal); }
.more:hover { text-decoration: underline; }

/* ---------- 見出し帯 ---------- */
.masthead { background: var(--card); border-bottom: var(--rule); position: sticky; top: 0; z-index: 40; }
.promo { background: var(--indigo); color: #fff; font-size: 11.5px; }
/* **padding の一括指定を使わない。** .wrap と同じ要素に付くので、左右の余白まで潰れる(黒も同じ) */
.promo-inner { display: flex; justify-content: center; gap: 16px; padding-block: 7px; text-align: center; }
.promo-inner > span:not(.promo-sync) { display: none; }
.promo-sync { opacity: 0.85; }

/* .wrap と同居する要素。**padding の一括指定を使わない** —— 器の左右余白が潰れる */
.masthead-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 12px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: var(--rule); background: var(--card); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--line-2); }

.brand { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.brand:hover { color: inherit; }
.brand-lead { font-size: 11px; color: var(--sub); letter-spacing: 0.08em; }
.brand-mark { font-size: 18px; font-weight: 900; letter-spacing: 0.04em; white-space: nowrap; }

/* 一列に並ぶもの(切替・検索・カート)の背丈。**1 か所で決める。**
   padding と行の高さから逆算していたため 37.6 / 43.0 / 42.1 と揃っていなかった */
.masthead-actions > * { height: 42px; box-sizing: border-box; }
.masthead-actions .lang-switch a { height: 100%; }

/* 右側の一列。**溢れたときに縮んでよいのは検索だけ**。
   言語切替とカートを縮ませると文字が縦に折れて読めなくなる(実際に折れた)。
   min-width:0 が無いと flex 項目は中身より小さくなれず、器(960px)から溢れる */
.masthead-actions { display: flex; align-items: center; gap: 8px; justify-self: end; min-width: 0; }

.search { display: none; align-items: center; gap: 6px; border: var(--rule); background: var(--bg); padding: 0 10px; color: var(--sub); flex: 1 1 auto; min-width: 0; }
.search input { border: 0; background: transparent; outline: none; padding: 9px 0; width: 100%; min-width: 0; font-size: 13px; }

.cart-link { display: inline-flex; align-items: center; gap: 6px; border: var(--rule); padding: 9px 12px; font-size: 12.5px; background: var(--card); flex: 0 0 auto; white-space: nowrap; }
.cart-link:hover { border-color: var(--seal); color: var(--seal); }
.cart-label { display: none; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; background: var(--seal); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[data-count="0"] { background: var(--bg); color: var(--ink-4); border: var(--rule); }

/* 言語切り替え */
/* ---------- 言語の切り替え ----------
   **「押せる 1 つの部品」に見せる。** 以前は罫線が --line (#ebebeb) だったため
   輪郭がほぼ消え、English と 日本語 がただ並んだ文字に見えていた(「ダサい」)。
   モックアップの作法(直角・ヘアライン・墨の面)のまま、二択の選択器として組む。 */
.lang-switch {
  display: inline-flex; flex: 0 0 auto;
  border: 1px solid var(--line-2);   /* #dcdcdc — 見える。ただし墨ほど強くしない */
  background: var(--card);
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 0 11px;
  font-size: 12px; font-weight: 500; color: var(--sub);
  white-space: nowrap; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
/* 仕切りは要素の間だけ。:last-child を打ち消す書き方より意図が読める */
.lang-switch a + a { border-left: 1px solid var(--line-2); }

/* 選ばれている側を**塗る**。文字色だけの差では、どちらが現在か分からない */
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.lang-switch a:not([aria-current="true"]):hover { background: var(--bg); color: var(--ink); }
.lang-switch a:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; z-index: 1; }

/* 英字は少し字間を開ける。日本語に字間を入れると間延びするので触らない */
.lang-switch a:lang(en) { letter-spacing: .06em; }

/* 置き場所は 2 つ。狭い画面では帯から降ろし、メニューの中で**大きく押せる**ようにする */
.lang-switch-menu { display: none; }
@media (max-width: 599px) {
  .lang-switch-bar { display: none; }
  .lang-switch-menu {
    display: flex; margin-top: 12px; border: 1px solid var(--line-2);
  }
  /* 半分ずつ。指で押す的として 46px の高さを取る */
  .lang-switch-menu a { flex: 1 1 0; min-width: 0; height: 46px; font-size: 13px; }
}


.nav { display: none; border-top: var(--rule); background: var(--card); }
.nav.open { display: block; }
.nav-inner { display: flex; flex-direction: column; padding-bottom: 10px; }
.nav-inner > a { padding: 12px 2px; font-size: 13.5px; border-bottom: var(--rule); }
.nav-inner > a[aria-current="page"] { color: var(--seal); font-weight: 700; }
.search-mobile { display: flex; margin-top: 12px; }
.search-mobile input { width: 100%; }

/* ---------- ボタン: モックアップの .buy-btn に合わせる ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 13px 28px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--seal); border-color: var(--seal); color: #fff; padding: 13px 40px; }
.btn-primary:hover { background: #a02317; border-color: #a02317; color: #fff; }
.btn-quiet { border-color: var(--line-2); color: var(--ink-2); font-weight: 500; }
.btn-quiet:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 9px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- ホーム ---------- */
.hero { background: var(--card); border: var(--rule); padding: 28px; margin-bottom: 16px; }
.hero-inner { display: grid; gap: 24px; }
.hero-copy .title-xl { margin: 6px 0 14px; }

.stats { background: var(--bg); border: var(--rule); padding: 18px 20px; }
.stats-title { font-size: 11.5px; color: var(--sub); margin: 0 0 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.stats-grid dd { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.2; }
.stats-grid dt { font-size: 11.5px; color: var(--sub); }
.stats-note { font-size: 11.5px; color: var(--sub); margin: 14px 0 0; border-top: var(--rule); padding-top: 10px; }

/* 甘辛の軸・香りの系統 = モックアップの .taste-grid */
.axis, .aroma-grid { display: grid; gap: 16px; background: var(--card); border: var(--rule); padding: 24px 28px; }
.axis-cell, .aroma-cell { display: block; border: var(--rule); padding: 14px 16px; background: var(--card); }
.axis-cell:hover, .aroma-cell:hover { border-color: var(--seal); color: inherit; }
.axis-label, .aroma-label { font-size: 15px; font-weight: 700; display: block; }
.axis-desc, .aroma-cell p { display: block; font-size: 12.5px; color: var(--sub); margin: 6px 0 8px; }
.axis-count, .aroma-count { font-size: 11.5px; color: var(--ink-4); }

.promise { background: var(--card); border: var(--rule); padding: 24px 28px; margin-top: 16px; }
.promise-grid { display: grid; gap: 16px; }
.promise-grid article { border: var(--rule); padding: 14px 16px; }
.promise-no { font-size: 20px; font-weight: 900; color: var(--seal); }
.promise-grid h3 { font-size: 14px; font-weight: 700; margin: 4px 0 6px; }
.promise-grid p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 商品カード ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: var(--rule); display: flex; flex-direction: column; }
.card:hover { border-color: var(--line-2); }

/* 酒瓶は縦長なので、台も縦長に取る(4:3 では瓶が小さくしか入らなかった)。
   余白は図案が自分で持っているので、台では詰める */
/* 地は**白から少し落とす**。提供側の画像には 1.6KB の平坦な色帯があり、
   真っ白な台に置くと画像そのものが消えて「壊れている」ように見える(見えた) */
.card-plate {
  position: relative; background: var(--bg); border-bottom: var(--rule);
  aspect-ratio: 3 / 4; padding: 14px 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* 図版は必ず入る —— 蔵元の写真か、API の項目から描いた図案か(src/lib/bottle.ts)。
   contain で収める。図案は余白込みで描いてあるので、切り取らない */
.card-photo { width: 100%; height: 100%; object-fit: contain; }

.award-dot { position: absolute; top: 0; left: 0; background: var(--seal); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; }

.card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--sub); align-items: center; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: var(--rule); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* 価格: モックアップは 28px / 900 / 朱 */
.price { font-size: 20px; font-weight: 900; color: var(--seal); }
.price-lg { font-size: 28px; }
.price-na { font-size: 12.5px; font-weight: 500; color: var(--sub); }

/* ---------- タグ・状態 ---------- */
.tag { display: inline-block; font-size: 12px; padding: 5px 12px; background: var(--bg); border: var(--rule); color: #444; }
.tag:hover { border-color: var(--seal); color: var(--seal); }
.tag-cold { border-color: #9cc2d8; color: #23617f; background: #f2f8fb; }

.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-muted { color: var(--ink-4); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 12px; background: var(--bg); border: var(--rule); }
.chip::after { content: "×"; color: var(--seal); }
.chip:hover { border-color: var(--seal); }

/* ---------- 注記: モックアップの .callout / .label ---------- */
.notice { background: var(--soft); border: var(--rule); padding: 16px 20px; font-size: 13px; color: #555; line-height: 1.8; margin: 0 0 16px; }
.notice strong { color: var(--ink); }
.notice-quiet { color: var(--sub); }
.notice-alert { border-color: var(--seal); background: #fdf3f2; color: #8d2117; }
.notice-ref { display: block; font-size: 11.5px; color: var(--sub); margin-top: 6px; }
.alert { border: 1px solid var(--seal); background: #fdf3f2; color: #8d2117; padding: 14px 18px; margin-bottom: 16px; font-size: 13px; }

/* 「これは API で構成したサンプルです」の帯 (モックアップ冒頭の .label) */
.sample-label { max-width: var(--wrap); margin: 0 auto 16px; padding: 0 16px; color: var(--sub); font-size: 12.5px; text-align: center; }

.empty { background: var(--card); border: var(--rule); padding: 56px 20px; text-align: center; color: var(--sub); }
.empty .btn { margin-top: 16px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--sub); padding: 16px 0 0; }
.crumb-sep { color: var(--line-2); }

/* ---------- 一覧 ---------- */
.catalog { display: grid; gap: 16px; align-items: start; }
.filters { background: var(--card); border: var(--rule); }
.filters-summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; min-height: 46px; font-size: 13.5px; font-weight: 700; }
.filters-summary::-webkit-details-marker { display: none; }
.filters[open] .filters-summary svg { transform: rotate(180deg); }
.filters form { padding: 0 16px 16px; }
.filter-group { border-top: var(--rule); padding: 14px 0; }
.filter-group h2 { font-size: 11.5px; color: var(--sub); margin-bottom: 8px; font-weight: 700; }
.filter-input { width: 100%; border: var(--rule); background: var(--bg); padding: 9px 10px; outline: none; }
.filter-input:focus { border-color: var(--seal); }
.filter-hint { font-size: 11.5px; color: var(--ink-4); margin: 6px 0 0; }
.choice { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 13px; min-height: 32px; }
.choice input { accent-color: var(--seal); }
.filter-actions { display: flex; gap: 10px; padding-top: 14px; border-top: var(--rule); }

.result-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; background: var(--card); border: var(--rule); padding: 14px 16px; margin-bottom: 16px; }
.result-count { font-size: 15px; font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ---------- 商品ページ: モックアップの .product-top ---------- */
.detail { display: grid; background: var(--card); border: var(--rule); border-bottom: 8px solid var(--bg); }
.detail-plate {
  background: var(--bg); border-bottom: var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 32px; text-align: center; min-height: 260px;
}
.detail-media-photo, .detail-photo { width: 100%; max-height: 360px; object-fit: contain; }
.plate-foot { font-size: 11.5px; color: var(--ink-4); margin: 8px 0 0; max-width: 34ch; line-height: 1.7; }

.detail-body { padding: 32px 36px; }
.detail-body .title-xl { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.detail-original { font-size: 13px; color: var(--sub); margin: 0 0 18px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0; border-top: var(--rule); border-bottom: var(--rule); margin-bottom: 18px; }

.note-block { font-size: 14px; line-height: 1.9; color: #333; max-width: 640px; margin: 0; }
.note-attr { display: block; font-size: 11.5px; color: var(--sub); margin-top: 10px; }
.note-original { font-size: 12.5px; color: var(--sub); margin: 10px 0 0; }

/* 商品情報 = モックアップの .spec-table */
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 22px; }
.spec tr { border-bottom: var(--rule); }
.spec th, .spec td { padding: 10px 0; text-align: left; vertical-align: top; }
.spec th { width: 170px; color: var(--sub); font-weight: 400; }
.spec-note { display: block; margin-top: 4px; color: var(--sub); font-size: 12px; }
.field-list { font-size: 12px; color: var(--sub); word-break: break-word; }

.awards { margin-top: 24px; }
.awards-list { list-style: none; margin: 8px 0; padding: 0; }
.awards-list li { padding: 8px 0; border-bottom: var(--rule); font-size: 13px; }
.awards-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--seal); margin-right: 10px; vertical-align: middle; }

.buy-box { margin-top: 22px; padding: 16px 0 0; border-top: var(--rule); display: flex; flex-direction: column; gap: 14px; }
.buy-price { display: flex; flex-direction: column; gap: 4px; }
.list-price { font-size: 12px; color: var(--sub); }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-actions .btn { flex: 1; min-width: 170px; }

.qty { display: inline-flex; border: var(--rule); }
.qty button { width: 42px; min-height: 46px; border: 0; background: var(--card); cursor: pointer; }
.qty button:hover { background: var(--bg); }
.qty input { width: 50px; text-align: center; border: 0; border-left: var(--rule); border-right: var(--rule); background: var(--card); font-variant-numeric: tabular-nums; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 蔵元・用語 ---------- */
.brewery-list { background: var(--card); border: var(--rule); }
.brewery-row { display: grid; gap: 12px; padding: 22px 28px; border-bottom: var(--rule); }
.brewery-row:last-child { border-bottom: 0; }
.brewery-head h2 { font-size: 17px; font-weight: 700; display: inline; }
.brewery-origin { font-size: 11.5px; color: var(--sub); margin: 6px 0 10px; }
.brewery-figures { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--sub); }
.brewery-products { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.brewery-products li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: var(--rule); }
.brewery-cta { justify-self: start; }

.glossary { display: grid; gap: 0; background: var(--card); border: var(--rule); }
.gloss { border-bottom: var(--rule); padding: 16px 28px; }
.gloss:last-child { border-bottom: 0; }
.gloss dt { font-size: 15px; font-weight: 700; }
.gloss dd { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.85; }
.gloss dd a { color: var(--seal); }
.policy-list { list-style: none; padding: 0; background: var(--card); border: var(--rule); }
.policy-list li { padding: 14px 28px; border-bottom: var(--rule); font-size: 13px; color: var(--ink-2); }
.policy-list li:last-child { border-bottom: 0; }

/* ---------- カート・注文 ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); }
.cart-table th { text-align: left; font-size: 11.5px; color: var(--sub); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.cart-table td { padding: 16px; border-bottom: var(--rule); vertical-align: middle; }
.cart-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.cart-line-name { font-size: 14px; font-weight: 700; }
.cart-line-meta { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; }

.summary { background: var(--card); border: var(--rule); padding: 20px; position: sticky; top: 80px; }
.summary-title { font-size: 11.5px; color: var(--sub); font-weight: 700; margin: 0 0 14px; }
.summary-lines { margin: 0 0 12px; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.summary-lines dt { color: var(--sub); font-size: 13px; }
.summary-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary-total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 12px !important; }
.summary-total dt { color: var(--ink) !important; font-weight: 700; }
.summary-total dd { font-size: 22px; font-weight: 900; color: var(--seal); }
.summary .btn { margin-top: 10px; }
.summary-items { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: var(--rule); font-size: 12.5px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; color: var(--sub); font-weight: 700; }
.field input, .field textarea, .field select { border: var(--rule); background: var(--card); padding: 11px 12px; outline: none; font-size: 14px; min-height: 46px; border-radius: var(--r); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--seal); }
.field-row { display: grid; gap: 16px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-size: 13px; background: var(--soft); border: var(--rule); padding: 16px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--seal); flex: none; }

.shipping-choices { border: var(--rule); background: var(--card); padding: 16px 20px; margin: 20px 0; }
.shipping-choices legend { font-size: 11.5px; color: var(--sub); font-weight: 700; padding: 0 4px; }
.shipping-choice { align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: var(--rule); }
.shipping-choice:last-child { border-bottom: 0; }
.shipping-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.shipping-name { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 13.5px; }
.shipping-price { font-weight: 900; color: var(--seal); }
.shipping-transit { font-size: 12px; color: var(--sub); }
.shipping-desc { font-size: 12px; color: var(--sub); }
.shipping-block { font-size: 12px; color: var(--seal); }
.shipping-choice[data-disabled="1"] { opacity: .5; }

.remove-link { background: none; border: 0; padding: 0; font-size: 12px; color: var(--sub); border-bottom: 1px solid var(--line-2); cursor: pointer; }
.remove-link:hover { color: var(--seal); border-color: var(--seal); }

.receipt { background: var(--card); border: var(--rule); padding: 36px; text-align: center; margin-top: 16px; }
.order-no { font-size: 24px; font-weight: 900; margin: 6px 0 16px; }
.receipt-items { list-style: none; padding: 0; margin: 24px auto; max-width: 460px; text-align: left; }
.receipt-items li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: var(--rule); font-size: 13px; }
.receipt-total { font-weight: 900; border-bottom: 0 !important; }

/* ---------- 管理 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; background: var(--card); border: var(--rule); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 900px; }
.admin-table th, .admin-table td { border-bottom: var(--rule); padding: 10px; text-align: left; vertical-align: middle; }
.admin-table th { font-size: 11px; color: var(--sub); font-weight: 700; }
.admin-table input[type="text"], .admin-table input[type="number"] { border: var(--rule); background: var(--bg); padding: 6px 8px; width: 100%; min-width: 110px; }
.admin-table input:focus { border-color: var(--seal); outline: none; }
.admin-table input[type="number"] { width: 96px; text-align: right; }
.admin-table .center { text-align: center; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 脚 ---------- */
.footer { background: var(--card); border-top: var(--rule); margin-top: 24px; padding: 28px 0 20px; font-size: 13px; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.footer-about p { margin: 0; color: var(--sub); font-size: 12.5px; line-height: 1.8; }
.footer h2 { font-size: 11.5px; color: var(--sub); font-weight: 700; margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer-bottom { border-top: var(--rule); margin-top: 24px; padding-top: 14px; font-size: 11.5px; color: var(--ink-4); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 13px 20px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 白い意匠では現れ方の演出をしない。モックアップに無い */
.fadein { opacity: 1; transform: none; }

/* ============================================================
   広い画面 — モックアップの区切りは 720px
   ============================================================ */
@media (min-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .promo-inner > span:not(.promo-sync) { display: inline; }
  .promo-inner { justify-content: space-between; }
  /* 「カート」の字は 1040px 以上で出す(下)。ここで出すと検索と競合して帯が溢れる */
  .axis, .aroma-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 721px) {
  /* モックアップの .product-top: 360px | 1fr */
  .detail { grid-template-columns: 360px 1fr; }
  .detail-plate { border-bottom: 0; border-right: var(--rule); min-height: 0; }
}

@media (min-width: 1040px) {
  /* 器(960px)に「カート」の字を足しても溢れない幅 */
  .cart-label { display: inline; }
}

@media (min-width: 900px) {
  .masthead-main { grid-template-columns: 1fr auto 1fr; }
  .nav-toggle { display: none; }
  .brand { grid-column: 2; }
  .masthead-actions { grid-column: 3; }
  .search { display: flex; }
  .search-mobile { display: none; }
  .nav { display: block; }
  .nav-inner { flex-direction: row; justify-content: center; gap: 28px; padding-block: 0; }
  .nav-inner > a { border-bottom: 0; padding: 12px 2px; }
  .nav-inner > a[aria-current="page"] { border-bottom: 2px solid var(--seal); }

  .hero-inner { grid-template-columns: 1.4fr 0.6fr; align-items: start; }
  .axis { grid-template-columns: repeat(4, 1fr); }
  .aroma-grid { grid-template-columns: repeat(5, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .catalog { grid-template-columns: 240px 1fr; }
  .filters { position: sticky; top: 80px; }
  .filters-summary { display: none; }
  .filters > form { display: block !important; }
  .two-col { grid-template-columns: 1.4fr 0.6fr; }
  .brewery-row { grid-template-columns: 220px 1fr auto; gap: 24px; align-items: start; }
  .brewery-products { columns: 2; column-gap: 24px; }
  .glossary { grid-template-columns: repeat(2, 1fr); }
  .gloss { border-right: var(--rule); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 味わい: モックアップの .taste-grid をそのまま ---------- */
.detail-section { background: var(--card); border: var(--rule); border-bottom: 8px solid var(--bg); padding: 30px 36px; }
.detail-section > .eyebrow { margin-bottom: 10px; }
.detail-section > h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.taste-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.taste-card { border: var(--rule); padding: 14px 16px; }
.taste-card .k { font-size: 11.5px; color: var(--sub); margin-bottom: 6px; }
.taste-card .v { font-size: 14px; font-weight: 500; line-height: 1.8; }
.callout { background: var(--soft); border: var(--rule); padding: 24px 36px; font-size: 13px; color: #555; line-height: 1.8; }
.callout strong { color: var(--ink); }
.callout h2 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
@media (min-width: 721px) { .taste-grid { grid-template-columns: repeat(3, 1fr); } }
