/* =========================================================
   唎酒師が選ぶ ギフト日本酒 比較サイト
   和モダン × 上質 / 生成りベース・墨色・藍/臙脂アクセント
   ========================================================= */

:root {
  /* base paper tones (warm, low chroma) */
  --paper:      #f7f3ec;
  --paper-2:    #f1ebe0;
  --paper-3:    #e9e1d3;
  --card:       #fffdf9;
  --ink:        #29251f;
  --ink-soft:   #5d564b;
  --ink-faint:  #8a8377;
  --line:       rgba(41, 37, 31, 0.14);
  --line-soft:  rgba(41, 37, 31, 0.08);
  --gold:       #a9823c;
  --gold-soft:  #c8a35a;

  /* accent — matches the default Tweak value to avoid first-paint color shift */
  --accent:      #7a2230;
  --accent-deep: #591722;
  --accent-tint: #f3e7e9;
  --accent-line: rgba(122, 34, 48, 0.22);

  --maxw: 1080px;
  --gutter: clamp(18px, 5vw, 56px);
  --radius: 4px;

  --serif: "Zen Old Mincho", "Shippori Mincho", serif;
  --sans:  "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin: 0;
  text-wrap: balance;
}

.serif { font-family: var(--serif); }
.mono  { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 9vw, 104px); position: relative; }
.section--tint { background: var(--paper-2); }
.section--ink  { background: var(--ink); color: var(--paper); }

.eyebrow {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section--ink .eyebrow { color: var(--gold-soft); }
.section--ink .eyebrow::before { background: var(--gold-soft); }

.section-title {
  font-size: clamp(26px, 4.6vw, 40px);
  margin-bottom: 14px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 58ch;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.section--ink .section-lead { color: rgba(247,243,236,0.74); }

/* ---------- top legal strip ---------- */
.legalbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}
.legalbar__l { display: inline; }
.legalbar__sep { opacity: 0.5; margin: 0 0.5em; }
.legalbar__age { display: none; }
.legalbar b { color: var(--gold-soft); font-weight: 700; }
@media (max-width: 600px) {
  .sv__name-pc { display: none; }
  .sv__name-sp { display: inline; }
  .legalbar {
    padding: 8px 14px; font-size: 11px; line-height: 1.5; text-align: center;
  }
  .legalbar__lines { width: 100%; }
  .legalbar__l { display: block; }
  .legalbar__sep { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -12px var(--accent);
}
.btn--primary:hover { background: var(--accent-deep); }

.btn--shop {
  background: var(--accent);
  color: #fff;
  width: 100%;
}
.btn--shop:hover { background: var(--accent-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a2014;
}

.btn .ar { transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(3px); }

.btn--big { padding: 18px 40px; font-size: 17px; }

/* ---------- trust badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.badge .seal {
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 12px;
}

/* ---------- image placeholder ---------- */
.ph {
  position: relative;
  background-color: var(--paper-3);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(41,37,31,0.05) 0 10px,
      rgba(41,37,31,0.0) 10px 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink-faint);
}
.ph__tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: rgba(255,253,249,0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  text-align: center;
  line-height: 1.4;
}

/* filled image media */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-3); border: 1px solid var(--line);
}
.media .imgfill { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.contain { background: #fff; }
.media.contain .imgfill { object-fit: contain; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 34%, rgba(169, 130, 60, 0.12) 0 132px, transparent 133px),
    radial-gradient(circle at 12% 84%, rgba(122, 34, 48, 0.09) 0 180px, transparent 181px),
    linear-gradient(135deg, #fffaf1 0%, var(--paper) 58%, #f0e7d9 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 56px 18px 18px;
  border: 1px solid rgba(169, 130, 60, 0.16);
  pointer-events: none;
}
.hero::after {
  content: "日本酒屋";
  position: absolute;
  right: clamp(22px, 5vw, 76px);
  bottom: clamp(16px, 4vw, 48px);
  font-family: var(--serif);
  font-size: clamp(52px, 10vw, 132px);
  letter-spacing: 0.08em;
  color: rgba(122, 34, 48, 0.045);
  writing-mode: vertical-rl;
  line-height: 1;
  pointer-events: none;
}
.hero__age {
  position: absolute; top: 16px; right: var(--gutter); z-index: 4;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); background: rgba(255,253,249,0.9);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.hero__copy { position: relative; z-index: 2; max-width: 980px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--accent-line);
  border-left: 5px solid var(--accent);
  padding: 8px 16px 8px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5.6vw, 68px);
  line-height: 1.18;
  letter-spacing: 0.015em;
}
.hero__thanks-line,
.hero__gift-line,
.hero__main-line { display: block; }
.hero__thanks-line--mobile { display: none; }
.hero__thanks-line {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.18;
  color: var(--ink);
}
.hero__gift-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}
.hero__gift-line::before,
.hero__gift-line::after {
  content: "";
  width: clamp(30px, 5vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__gift-line::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero__main-line {
  margin-top: 16px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero h1 .accentword {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
  font-size: 1.1em;
  margin-left: 0.12em;
}
.hero h1 .accentword::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.18em;
  background: rgba(169, 130, 60, 0.18);
  z-index: -1;
}

@media (min-width: 769px) {
  .hero__thanks-line { white-space: nowrap; }
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-soft);
  margin: 24px 0 30px;
  max-width: 720px;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  line-height: 1.95;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__cta .btn {
  min-width: 190px;
  padding: 16px 28px;
}
.hero__badges { margin-top: 34px; }

/* hero variant: centered */
.hero--centered .hero__inner { text-align: center; padding-block: clamp(56px, 9vw, 96px); }
.hero--centered .hero__copy { margin-inline: auto; }
.hero--centered .hero__gift-line { margin-inline: auto; }
.hero--centered .hero__sub { margin-inline: auto; }
.hero--centered .hero__cta { justify-content: center; }
.hero--centered .hero__badges { justify-content: center; }
.hero--centered .hero__media {
  margin: 40px auto 0; max-width: 760px; aspect-ratio: 16/7;
}

/* hero variant: split */
.hero--split .hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 88px);
}
.hero--split .hero__media { aspect-ratio: 4/5; align-self: stretch; min-height: 360px; }

.hero__generated-pc,
.hero__generated-sp {
  display: none;
  width: 100%;
  height: auto;
  border: 0;
}

@media (min-width: 901px) {
  .hero--editorial {
    background: #fffaf1;
  }
  .hero--editorial::before,
  .hero--editorial::after {
    display: none;
  }
  .hero--editorial .hero__inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .hero--editorial .hero__age,
  .hero--editorial .hero__copy,
  .hero--editorial .hero__row,
  .hero--editorial .hero__badges,
  .hero--editorial .hero__seal-line,
  .hero--editorial .hero__media {
    display: none !important;
  }
  .hero--editorial .hero__generated-pc {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
  }
}


@media (max-width: 900px) {
  .hero--editorial {
    background: var(--paper);
  }
  .hero--editorial::before,
  .hero--editorial::after {
    display: none;
  }
  .hero--editorial .hero__inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .hero--editorial .hero__age,
  .hero--editorial .hero__copy,
  .hero--editorial .hero__row,
  .hero--editorial .hero__badges,
  .hero--editorial .hero__seal-line,
  .hero--editorial .hero__media {
    display: none !important;
  }
  .hero--editorial .hero__generated-pc {
    display: none !important;
  }
  .hero--editorial .hero__generated-sp {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* hero variant: editorial */
.hero--editorial .hero__inner { padding-block: clamp(56px, 8vw, 92px) clamp(46px, 6vw, 78px); }
.hero--editorial h1 { max-width: 100%; }
.hero--editorial .hero__row {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  margin-top: 26px;
}
.hero--editorial .hero__media {
  margin-top: 36px; aspect-ratio: 16 / 9; border-radius: var(--radius);
}

.hero__seal-line {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-faint); font-size: 12.5px; letter-spacing: 0.08em;
  margin-top: 28px;
}
.hero__seal-line::before, .hero__seal-line::after {
  content: ""; height: 1px; background: var(--line); flex: 1; min-width: 20px;
}

/* =========================================================
   SUPERVISOR
   ========================================================= */
.sv__grid {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.sv__photo { aspect-ratio: 1 / 1; }
.guide-banner {
  width: 100%; max-width: 900px; aspect-ratio: 3 / 1;
  margin: 0 auto clamp(28px, 4vw, 44px);
  background: none; border: none; border-radius: 0;
}
.guide-banner .imgfill { object-fit: contain; padding: 0; }

.scene-banner {
  width: 100%; aspect-ratio: 21 / 8; max-height: 300px;
  margin-bottom: clamp(24px, 3.5vw, 36px);
}
@media (max-width: 600px) { .scene-banner { aspect-ratio: 16 / 9; } }
.sv__name { font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.sv__name-sp { display: none; }
.sv__role { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; margin-bottom: 20px; }
.sv__quals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.qual {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent-line); color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius); padding: 7px 13px;
  font-size: 13px; font-weight: 700;
}
.sv__reasons { display: grid; gap: 16px; margin-top: 8px; }
.reason { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.reason__no {
  font-family: var(--serif); font-size: 18px; color: var(--accent);
  border-bottom: 2px solid var(--accent); width: 26px; text-align: center; line-height: 1.5;
}
.reason__t { font-weight: 700; margin-bottom: 2px; }
.reason__b { color: var(--ink-soft); font-size: 14.5px; }

/* =========================================================
   SELECTION GUIDE (steps + flowchart)
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.step__no {
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 14px;
}
.step__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 9px; align-items: baseline; }
.step li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }
.step li b { color: var(--ink); font-weight: 700; }

.flow {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.flow__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.flow__head h3 { font-size: 20px; }
.flow__head .tag { font-size: 12px; color: var(--ink-faint); }
.flow__tree { display: grid; gap: 14px; }
.flow__q {
  font-family: var(--serif); font-size: clamp(17px, 2.4vw, 21px);
  text-align: center; padding: 14px; background: var(--accent); color: #fff;
  border-radius: var(--radius);
}
.flow__split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow__branch {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--paper);
  display: grid; gap: 12px; align-content: start;
}
.flow__branch > .lab { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.flow__branch .yn {
  font-family: var(--serif); font-size: 12px; color: #fff; background: var(--ink);
  border-radius: 999px; padding: 2px 11px;
}
.flow__leaf {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; font-size: 13.5px; text-decoration: none;
}
.flow__leaf:hover { border-color: var(--accent); }
.flow__leaf .res { font-weight: 700; }
.flow__leaf .pick { color: var(--accent); font-size: 12px; font-weight: 700; }
.flow__nest { display: grid; gap: 10px; }
.flow__nestq { font-size: 13px; color: var(--ink-soft); text-align: center; }

/* interactive flowchart */
.flow__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.flow__btn {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  padding: 13px 40px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--card); color: var(--accent);
  cursor: pointer; transition: background .18s ease, color .18s ease;
}
.flow__btn:hover { background: var(--accent-tint); }
.flow__btn.is-active { background: var(--accent); color: #fff; }
.flow__q--sub { margin-top: 28px; }
.flow__answer { margin-top: 26px; }
.flow__reshead {
  text-align: center; font-family: var(--serif); font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 600; color: var(--ink); margin-bottom: 20px;
}
.flow__results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px; max-width: 560px; margin: 0 auto;
}
.flow__rescard {
  display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.flow__rescard:hover { border-color: var(--accent); transform: translateY(-2px); }
.flow__rescard .pic { aspect-ratio: 3 / 4; width: 100%; }
.flow__rescard .rk { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.flow__rescard .rk-star { color: var(--gold); letter-spacing: 1px; }
.flow__rescard .nm { font-size: 13px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.flow__rescard .go { font-size: 11.5px; color: var(--accent); font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.flow__reset {
  display: block; margin: 24px auto 0; background: none; border: none;
  color: var(--ink-soft); font-size: 13px; text-decoration: underline; cursor: pointer;
}

/* =========================================================
   TASTE MAP
   ========================================================= */
.taste-map__grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(24px, 5vw, 52px); align-items: center;
}
.taste-map__image {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -44px rgba(41,37,31,0.45);
}
.taste-map__image .imgfill { padding: clamp(8px, 1.6vw, 18px); }
.taste-map__body {
  display: grid; gap: 18px;
}
.taste-map__note {
  background: var(--card); border-left: 3px solid var(--gold);
  padding: 14px 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.75;
  margin: 0 0 22px;
}
.taste-map__groups { display: grid; gap: 12px; }
.taste-group {
  background: rgba(255,253,249,0.68); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.taste-group__head {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-bottom: 4px;
}
.taste-group__name {
  font-family: var(--serif); font-weight: 700; color: var(--accent);
  font-size: 18px;
}
.taste-group__ranks {
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  white-space: nowrap;
}
.taste-group p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; }
.taste-map__link { justify-self: start; margin-top: 4px; }
.taste-title-br { display: none; }

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.rarity-note {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 12.5px; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
}
.rarity-note b { color: var(--ink); font-weight: 700; }
.rarity-note .ttl { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.cmp {
  width: 100%; border-collapse: collapse; background: var(--card);
  font-size: 14px; min-width: 760px;
}
table.cmp thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em;
  text-align: left; padding: 13px 14px; white-space: nowrap;
  position: sticky; top: 0; cursor: pointer; user-select: none;
}
table.cmp thead th.no-sort { cursor: default; }
table.cmp thead th .arw { opacity: 0.4; margin-left: 5px; font-size: 10px; }
table.cmp thead th.sorted .arw { opacity: 1; color: var(--gold-soft); }
table.cmp tbody td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tbody tr:hover { background: var(--paper-2); }
table.cmp .c-rank {
  font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 15px;
  width: 42px;
}
table.cmp .c-name { font-weight: 700; min-width: 200px; line-height: 1.5; }
table.cmp .c-name small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 12px; margin-top: 3px; }
table.cmp .c-type, table.cmp .c-region, table.cmp .c-taste, table.cmp .c-food { color: var(--ink-soft); }
table.cmp .c-price { font-weight: 700; white-space: nowrap; }
table.cmp .c-price .tbd { color: var(--gold); font-size: 12px; font-weight: 700; }
table.cmp .c-buy { width: 96px; }
table.cmp .c-buy a {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 12.5px; padding: 9px 14px; border-radius: var(--radius);
  white-space: nowrap;
}
table.cmp .c-buy a:hover { background: var(--accent-deep); }

.stars { color: var(--gold); letter-spacing: 2px; white-space: nowrap; font-size: 14px; }
.stars .off { color: var(--line); }

.tbd-pill {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold);
  border: 1px dashed var(--gold-soft); border-radius: 999px; padding: 1px 9px;
}

/* responsive table -> cards on mobile */
@media (max-width: 720px) {
  #compare { display: none; }
  .foot-compare { display: none; }
  .table-scroll { overflow: visible; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; width: 100%; min-width: 0; }
  table.cmp { min-width: 0; background: transparent; }
  table.cmp thead { display: none; }
  table.cmp tbody tr {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 14px; padding: 8px 4px; position: relative;
  }
  table.cmp tbody tr:hover { background: var(--card); }
  table.cmp td { border: none; border-bottom: 1px solid var(--line-soft); padding: 9px 16px; display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
  table.cmp td::before {
    content: attr(data-label); color: var(--ink-faint); font-size: 12px; font-weight: 700;
  }
  table.cmp td.c-rank { position: absolute; top: 10px; right: 14px; padding: 0; display: block; font-size: 22px; }
  table.cmp td.c-rank::before { display: none; }
  table.cmp td.c-name { grid-template-columns: 1fr; padding-right: 64px; }
  table.cmp td.c-name::before { display: none; }
  table.cmp td.c-name { font-size: 16px; }
  table.cmp td.c-buy { display: block; padding: 12px 16px; }
  table.cmp td.c-buy::before { display: none; }
  table.cmp .c-buy a { width: 100%; justify-content: center; padding: 12px; }
}

/* =========================================================
   RANKING CARDS
   ========================================================= */
.rank-list { display: grid; gap: clamp(22px, 4vw, 36px); }
.rcard {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(22px, 4vw, 40px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); position: relative; overflow: hidden;
}
.rcard__media { position: relative; aspect-ratio: 3/4; align-self: start; }
.rank-badge {
  position: absolute; top: -1px; left: -1px; z-index: 2;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 700;
  padding: 8px 16px 10px; border-radius: 0 0 var(--radius) 0;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.rank-badge .lab { font-family: var(--sans); font-size: 9px; letter-spacing: 0.22em; opacity: 0.85; }
.rank-badge .n { font-size: 26px; margin-top: 3px; }
.rcard--top1 .rank-badge { background: linear-gradient(160deg, var(--gold-soft), var(--gold)); color: #2a2014; }

.rcard__body { display: grid; gap: 16px; align-content: start; }
.rcard__type { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.rcard__name { font-size: clamp(20px, 2.8vw, 27px); line-height: 1.35; }
.rcard__review {
  font-size: 15px; color: var(--ink); line-height: 1.9;
  border-left: 3px solid var(--gold); padding-left: 16px;
  white-space: pre-line;
}
.rcard__review .by { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 8px; font-weight: 600; }

.rcard__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.mrow { display: grid; gap: 3px; }
.mrow .k { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; letter-spacing: 0.06em; }
.mrow .v { font-size: 14px; font-weight: 600; }
.mrow .v.tbd { color: var(--gold); }
.taste-summary { color: var(--accent); }

/* taste axes */
.axes { display: grid; gap: 9px; }
.axis { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-soft); }
.axis .l { text-align: right; }
.axis .r { text-align: left; }
.axis__track { height: 5px; background: var(--paper-3); border-radius: 999px; position: relative; }
.axis__dot {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--card); transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.rcard__for {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--accent-tint); border-radius: var(--radius); padding: 12px 16px;
  font-size: 14px;
}
.rcard__for .k { font-weight: 700; color: var(--accent); white-space: nowrap; }

.rcard__taste-chart {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.rcard__taste-chart .imgfill { object-fit: contain; }
.rcard__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rcard__cta .btn { justify-content: center; }
.rcard__price { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.rcard__price .tbd { color: var(--gold); font-size: 13px; }

/* =========================================================
   SCENE TABS
   ========================================================= */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  transition: all .18s ease;
}
.tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab:hover:not(.is-active) { border-color: var(--accent); color: var(--ink); }

.scene-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scene-pane > .scene-lead {
  grid-column: 1 / -1; color: var(--ink-soft); font-size: 15px; margin: 0 0 4px;
}
.scene-pick {
  display: grid; grid-template-columns: 84px 1fr; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; align-items: center;
  transition: border-color .18s ease, transform .18s ease;
}
.scene-pick:hover { border-color: var(--accent); transform: translateY(-2px); }
.scene-pick__media { aspect-ratio: 3/4; border-radius: 2px; }
.scene-pick__rank { font-family: var(--serif); font-size: 12px; color: var(--accent); font-weight: 700; }
.scene-pick__name { font-weight: 700; font-size: 16px; line-height: 1.4; margin: 4px 0 6px; }
.scene-pick__note { font-size: 13px; color: var(--ink-soft); }
.scene-pick .go { color: var(--accent); font-size: 12.5px; font-weight: 700; margin-top: 8px; display: inline-flex; gap: 5px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: clamp(16px, 2.2vw, 19px); font-weight: 600; color: var(--ink);
  padding: 22px 44px 22px 34px; position: relative; display: flex; gap: 16px; align-items: baseline;
}
.faq__q .qmark { color: var(--accent); font-family: var(--serif); font-size: 17px; flex: none; }
.faq__q .ic { position: absolute; right: 6px; top: 24px; width: 18px; height: 18px; }
.faq__q .ic::before, .faq__q .ic::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .25s ease;
}
.faq__q .ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__q .ic::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item.is-open .ic::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 34px 24px 64px; color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.final__media { min-height: 300px; }
.final__body { padding: clamp(32px, 5vw, 56px); display: grid; align-content: center; gap: 20px; }
.final__eyebrow { color: var(--gold-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.3em; }
.final__title { font-size: clamp(26px, 4vw, 38px); color: #fff; }
.final__name { font-family: var(--serif); font-size: 20px; color: var(--gold-soft); }
.final__review { color: rgba(247,243,236,0.8); font-size: 15px; }
.final__cta { margin-top: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: #211d18; color: rgba(247,243,236,0.7); padding-block: 52px; font-size: 13px; }
.foot__pr {
  background: rgba(247,243,236,0.06); border: 1px solid rgba(247,243,236,0.12);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px;
  display: grid; gap: 8px;
}
.foot__pr b { color: var(--gold-soft); font-weight: 700; }
.foot__pr .li { display: flex; gap: 10px; align-items: baseline; }
.foot__pr .li::before { content: "—"; color: var(--ink-faint); }
.foot__grid { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.foot__links a { color: rgba(247,243,236,0.7); text-decoration: none; }
.foot__links a:hover { color: var(--paper); }
.foot__brand { font-family: var(--serif); font-size: 18px; color: var(--paper); }
.foot__copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(247,243,236,0.12); font-size: 12px; color: var(--ink-faint); }

/* =========================================================
   AGE GATE MODAL
   ========================================================= */
.agegate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,17,13,0.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
}
.agegate__card {
  background: var(--paper); border-radius: var(--radius); max-width: 440px; width: 100%;
  padding: clamp(28px, 5vw, 44px); text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  border-top: 4px solid var(--accent);
}
.agegate__seal {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--accent-tint); color: var(--accent); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
}
.agegate__card h2 { font-size: 23px; margin-bottom: 12px; }
.agegate__card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 26px; line-height: 1.8; }
.agegate__btns { display: grid; gap: 12px; }
.agegate__deny {
  font-size: 13px; color: var(--ink-faint); background: none; border: none; cursor: pointer;
  text-decoration: underline; padding: 6px;
}
.agegate__blocked { color: var(--ink); font-weight: 700; }

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,253,249,0.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 10px; align-items: center;
  transform: translateY(110%); transition: transform .3s ease;
}
.stickycta.show { transform: translateY(0); }
.stickycta .lab { font-size: 12px; color: var(--ink-soft); flex: 1; line-height: 1.4; }
.stickycta .lab b { color: var(--ink); font-family: var(--serif); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero--split .hero__media { aspect-ratio: 16/9; min-height: 0; order: -1; }
  .sv__grid { grid-template-columns: 1fr; }
  .sv__photo { max-width: 280px; aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr; }
  .taste-map__grid { grid-template-columns: 1fr; }
  .taste-map__body { max-width: 720px; }
  .rcard { grid-template-columns: 1fr; }
  .rcard__media { aspect-ratio: 4 / 3; max-height: 360px; background: var(--paper-2); }
  .rcard__media .imgfill { object-fit: contain; }
  .rcard__meta { grid-template-columns: 1fr 1fr; }
  .scene-pane { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; }
  .final__media { min-height: 200px; order: -1; }
  .flow__split { grid-template-columns: 1fr; }
}

@media (min-width: 721px) {
  .hero__sub,
  #supervisor .section-lead,
  #guide .section-lead,
  #scenes .section-lead,
  .taste-map .section-lead,
  #ranking .section-lead {
    max-width: none;
  }
  .taste-map__note {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero::before { inset: 10px; border-top-color: transparent; }
  .hero::after { display: none; }
  .hero h1 { font-size: clamp(30px, 10.5vw, 46px); line-height: 1.2; }
  .hero__thanks-line--desktop { display: none; }
  .hero__thanks-line--mobile { display: block; }
  .hero__thanks-line { font-size: clamp(25px, 7vw, 30px); white-space: normal; }
  .hero__gift-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    font-size: 15px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .hero__gift-line::before,
  .hero__gift-line::after {
    width: 26px;
    flex: 0 0 26px;
  }
  .hero__main-line { margin-top: 12px; font-size: clamp(34px, 9.6vw, 39px); white-space: nowrap; letter-spacing: -0.01em; }
  .hero__sub { padding-left: 14px; margin-top: 20px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero--editorial .hero__row { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .hero--editorial .hero__seal-line { display: none; }
  .rcard__meta { grid-template-columns: 1fr; }
  .stickycta { display: flex; }

  /* editorial hero: banner photo to very top */
  .hero--editorial .hero__inner { display: flex; flex-direction: column; padding-top: 20px; }
  .hero--editorial .hero__media { order: -1; margin-top: 0; margin-bottom: 24px; aspect-ratio: 16 / 10; }

  /* kicker: smaller, single line */
  .hero__kicker {
    font-size: 11px; letter-spacing: 0.04em; margin-bottom: 16px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* section title forced 2-line break where marked */
  .sp-br { display: block; }

  /* hide hero pill (already shown in legalbar on mobile) */
  .hero__age { display: none; }

  .taste-map__note { font-size: 13.5px; }
  .taste-map__link { width: 100%; }
  .taste-title-br { display: block; }

  /* comparison table: hide entire section on mobile */
  #compare { display: none; }
  .foot-compare { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* hero__media--removed-safety: original inserted bottle image is intentionally hidden on PC/SP */
.hero .hero__media { display: none; }

/* hero-generated-sp-mobile-safety */
@media (max-width: 900px) {
  .hero--editorial .hero__generated-sp { margin: 0; }
}

/* hero-generated-image-final-overrides */
@media (min-width: 901px) {
  .hero--editorial {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--paper) !important;
  }
  .hero--editorial .hero__inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .hero--editorial .hero__generated-pc {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .hero--editorial .hero__generated-sp,
  .hero--editorial .hero__age,
  .hero--editorial .hero__copy,
  .hero--editorial .hero__row,
  .hero--editorial .hero__badges,
  .hero--editorial .hero__seal-line,
  .hero--editorial .hero__media {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .hero--editorial {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--paper) !important;
  }
  .hero--editorial .hero__inner {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .hero--editorial .hero__generated-sp {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .hero--editorial .hero__generated-pc,
  .hero--editorial .hero__age,
  .hero--editorial .hero__copy,
  .hero--editorial .hero__row,
  .hero--editorial .hero__badges,
  .hero--editorial .hero__seal-line,
  .hero--editorial .hero__media {
    display: none !important;
  }
}

/* supervisor-name-sp-final-override */
@media (max-width: 600px) {
  .sv__name-pc { display: none !important; }
  .sv__name-sp { display: inline !important; }
}
