/* ==========================================================================
   珈琲観測所 / COFFEE OBSERVATORY — LP
   色・書体はブランドブック（../ブランド/ブランドブック.md）に準拠
   ========================================================================== */

:root {
  /* ブランド色 */
  --ink:        #26303A;  /* 墨 */
  --paper:      #F5F1E8;  /* 生成り */
  --paper-2:    #EFEAE0;  /* 生成り・やや濃い */
  --dark:       #262320;  /* 濃地 */
  --on-dark:    #F0EADD;  /* 反転文字 */
  /* 補助グレー。ブランドブックの #8A8378 は生成り地でコントラスト比 3.33 となり
     WCAG AA（4.5:1）に届かないため、本文用にはわずかに濃い #6E675C を使う（4.96:1）。
     図版・印刷物では引き続きブランドブックの値を使うこと。 */
  --gray:       #6E675C;
  --gray-brand: #8A8378;  /* ブランドブック規定値（非テキスト用途） */
  --line:       rgba(38, 48, 58, .16);
  --line-soft:  rgba(38, 48, 58, .09);
  --accent:     #5E86A6;  /* 晴（図版・ドット用） */
  --accent-text:#4E6F8A;  /* 商品アクセント（文字・記号用。生成り地で 4.5:1 以上） */
  --accent-dark:#698EAC;  /* 商品アクセント（濃地の上用。#262320 に対し 4.5:1 以上） */
  /* この3つは商品ごとに style="--accent:…" で上書きされる */

  /* タイポ */
  --ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --en: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* 余白スケール */
  --gutter: 20px;
  --section-y: 96px;
  --shell: 1120px;
  --narrow: 680px;

  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-y: 140px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 56px; --section-y: 176px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { 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(--ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .03em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* ---------- typography ---------- */
.meta {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.6;
}

.h2 {
  font-size: clamp(25px, 6.2vw, 42px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .04em;
  margin-top: 22px;
}

.section__note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

.prose { margin-top: 44px; font-size: clamp(15px, 4vw, 17px); line-height: 2.25; }
.prose p + p { margin-top: 1.9em; }
.prose__staccato { letter-spacing: .07em; }
.prose__close { font-weight: 500; }

.note { margin-top: 20px; font-size: 12.5px; line-height: 1.9; color: var(--gray); }
.note--center { text-align: center; margin-top: 36px; }

/* ---------- 天気記号（日本式天気記号・SVG） ----------
   円も線幅も全種で共通。色は --accent-text（本文地で 4.5:1 以上）を使う。 */
.mark-svg {
  display: block;
  width: 1em; height: 1em;
  color: var(--accent-text);
  overflow: visible;
}
.mark-svg--lg { width: 1em; height: 1em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 34px;
  font-family: var(--ja);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #17202a; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(38, 48, 58, .06); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 62px; padding-inline: 50px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

/* ---------- 画像プレースホルダ ---------- */
.ph { position: relative; margin: 0; background: var(--paper-2); overflow: hidden; }
.ph::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph picture { display: contents; }
/* 画像が未配置のとき: 枠と中央のファイル名だけを残す */
.ph.is-empty img { display: none; }
.ph.is-empty { display: grid; place-items: center; }

/* ファイル名は「まだ画像が無い」ときの目印。画像が入ったら消える。 */
.ph__label { display: none; }
.ph.is-empty .ph__label {
  display: block;
  font-family: var(--en); font-size: 10px; letter-spacing: .14em;
  color: var(--gray); pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(245, 241, 232, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}
.site-header__logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.site-header__mark { font-size: 18px; color: var(--ink); }
.site-header__mark .mark-svg { color: inherit; }
.site-header__names { display: flex; flex-direction: column; line-height: 1.25; }
.site-header__ja { font-size: 15px; font-weight: 700; letter-spacing: .14em; }
.site-header__en { font-family: var(--en); font-size: 8.5px; letter-spacing: .2em; color: var(--gray); }
.site-header__nav { display: none; gap: 30px; font-size: 13px; letter-spacing: .1em; }
.site-header__nav a { text-decoration: none; padding: 8px 0; }
.site-header__nav a:hover { color: var(--accent-text); }
@media (min-width: 900px) { .site-header__nav { display: flex; } }

/* ---------- 01 HERO ---------- */
.hero { padding-top: clamp(56px, 13vw, 104px); }
.hero__inner { max-width: var(--shell); }
.hero__series { margin-bottom: 30px; }
.hero__title { display: flex; flex-direction: column; gap: 12px; }
.hero__ja {
  font-size: clamp(34px, 10.5vw, 76px);
  font-weight: 700; line-height: 1.24; letter-spacing: .1em;
}
.hero__en {
  font-family: var(--en); font-weight: 400;
  font-size: clamp(10px, 2.7vw, 15px);
  letter-spacing: .38em; color: var(--gray);
}
.hero__lead {
  margin-top: clamp(34px, 8vw, 54px);
  font-size: clamp(18px, 5.2vw, 27px);
  font-weight: 500; line-height: 1.85; letter-spacing: .06em;
}
.hero__sub { margin-top: 22px; font-size: clamp(13.5px, 3.7vw, 15px); color: var(--gray); line-height: 2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__actions .btn { flex: 1 1 auto; min-width: 150px; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }

.hero__media { margin-top: clamp(56px, 13vw, 96px); padding-inline: var(--gutter); }
.ph--hero {
  max-width: var(--shell); margin-inline: auto;
  aspect-ratio: 4 / 5;
}
@media (min-width: 768px) { .ph--hero { aspect-ratio: 16 / 9; } }

/* ---------- 02 ABOUT ---------- */
.section--about { border-top: 1px solid var(--line-soft); }

/* ---------- 03 PRODUCT ---------- */
.section--product { background: var(--paper-2); }
.product__grid { display: grid; gap: clamp(40px, 8vw, 72px); margin-top: 34px; }
@media (min-width: 900px) {
  .product__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 72px; }
  .section--product .meta + .product__grid { margin-top: 26px; }
}
.ph--product { aspect-ratio: 4 / 5; background: var(--paper); }
.product__en {
  margin-top: 14px;
  font-family: var(--en); font-size: 12px; letter-spacing: .24em; color: var(--gray);
}
.product__lead { margin-top: 28px; font-size: clamp(15px, 4vw, 17px); line-height: 2.2; }

.spec { margin-top: 40px; border-top: 1px solid var(--line); }
.spec__row {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 480px) { .spec__row { grid-template-columns: 120px 1fr; } }
.spec__key { display: flex; flex-direction: column; gap: 3px; }
.spec__key-ja { font-size: 13.5px; font-weight: 500; letter-spacing: .08em; }
.spec__key-en { font-family: var(--en); font-size: 9px; letter-spacing: .18em; color: var(--gray); }
.spec__val { margin: 0; font-size: 14.5px; line-height: 1.85; }
.spec__price { display: block; }
.spec__price + .spec__price { margin-top: 4px; }
.spec__price b { font-weight: 700; letter-spacing: .04em; }

.product__actions { display: grid; gap: 12px; margin-top: 34px; }
@media (min-width: 480px) { .product__actions { grid-template-columns: 1fr 1fr; } }

/* ---------- 05 TASTE ---------- */
.section--taste { background: var(--dark); color: var(--on-dark); }
.section--taste .meta,
.section--taste .section__note { color: rgba(240, 234, 221, .68); }

.taste__grid { display: grid; gap: clamp(30px, 7vw, 56px); margin-top: 48px; }
@media (min-width: 760px) {
  .taste__grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 56px; }
}
.taste__chart { display: grid; place-items: center; }

/* 濃地の上のレーダー */
.section--taste .radar { max-width: 300px; }
.section--taste .radar__ring { stroke: rgba(240, 234, 221, .16); }
.section--taste .radar__spoke { stroke: rgba(240, 234, 221, .22); }
.section--taste .radar__shape {
  fill: var(--accent-dark); fill-opacity: .22; stroke: var(--accent-dark);
}
.section--taste .radar__dot { fill: var(--accent-dark); }
.section--taste .radar__label { fill: rgba(240, 234, 221, .72); font-size: 10.5px; }

.taste { margin-top: 0; border-top: 1px solid rgba(240, 234, 221, .16); }
.taste__row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(240, 234, 221, .12);
}
@media (min-width: 560px) { .taste__row { grid-template-columns: 110px 1fr auto; gap: 26px; } }
.taste__label { display: flex; flex-direction: column; gap: 3px; }
.taste__ja { font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.taste__en { font-family: var(--en); font-size: 8.5px; letter-spacing: .16em; color: rgba(240, 234, 221, .66); }
.taste__dots { display: flex; gap: clamp(7px, 2.4vw, 12px); }
.taste__dot {
  width: clamp(10px, 3vw, 13px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(240, 234, 221, .42);
}
.taste__dot.is-on { background: var(--accent-dark); border-color: var(--accent-dark); }
.taste__num {
  font-family: var(--en); font-size: 13px; letter-spacing: .06em;
  color: rgba(240, 234, 221, .8);
}
.taste__num i { font-style: normal; font-size: 10px; color: rgba(240, 234, 221, .66); }

/* ---------- 06 SCENE ---------- */
.scenes { display: grid; gap: clamp(44px, 9vw, 56px); margin-top: 52px; }
@media (min-width: 640px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .scenes { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }
.ph--scene { aspect-ratio: 4 / 5; }
.scene__no { margin-top: 20px; }
.scene__title { margin-top: 10px; font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.scene__body { margin-top: 10px; font-size: 14px; line-height: 2; color: var(--gray); }

/* ---------- 07 OBSERVER ---------- */
.section--observer { background: var(--paper-2); }
.observer__grid { display: grid; gap: clamp(40px, 8vw, 72px); margin-top: 30px; }
@media (min-width: 900px) {
  .observer__grid { grid-template-columns: 5fr 7fr; align-items: center; gap: 72px; }
}
.ph--observer { aspect-ratio: 4 / 5; background: var(--paper); }
.observer__body .h2 { margin-top: 0; }

/* ---------- 08 QUALITY ---------- */
.cards { display: grid; gap: 1px; margin-top: 52px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--paper);
  padding: clamp(28px, 5vw, 38px) clamp(22px, 4vw, 30px);
  transition: background-color .4s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card__title { margin-top: 14px; font-size: 20px; font-weight: 700; letter-spacing: .1em; }
.card__body { margin-top: 14px; font-size: 13.5px; line-height: 2.05; color: var(--gray); }

/* ---------- 09 OBSERVATION CARD ---------- */
.obscard__wrap { display: grid; gap: clamp(36px, 7vw, 56px); margin-top: 52px; }
@media (min-width: 900px) { .obscard__wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.obscard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(30px, 6vw, 46px);
}
.obscard__head { letter-spacing: .3em; }
.obscard__no { margin-top: 8px; font-family: var(--en); font-size: 13px; letter-spacing: .2em; color: var(--gray); }
.obscard__kanji {
  margin-top: 18px;
  font-size: clamp(56px, 16vw, 86px); font-weight: 700; line-height: 1;
  letter-spacing: .06em;
}
.obscard__mark {
  position: absolute; top: clamp(30px, 6vw, 46px); right: clamp(30px, 6vw, 46px);
  font-size: clamp(26px, 6vw, 34px);
}
.obscard__data { margin-top: 36px; border-top: 1px solid var(--line-soft); }
.obscard__row {
  display: grid; grid-template-columns: 104px 1fr;
  gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.obscard__row dt { font-family: var(--en); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); padding-top: 4px; }
.obscard__row dd { margin: 0; font-size: 14.5px; letter-spacing: .04em; }
.obscard__note { margin-top: 20px; font-size: 11.5px; color: var(--gray); line-height: 1.8; }
.ph--card { aspect-ratio: 4 / 3; }

/* ---------- 10 THREADS ---------- */
.section--threads { border-top: 1px solid var(--line-soft); text-align: center; }
.section--threads .prose { text-align: center; }
.threads__actions { margin-top: 44px; }

/* ---------- 11 PRICE ---------- */
.section--price { background: var(--paper-2); text-align: center; }
.prices { display: grid; gap: 18px; margin-top: 52px; text-align: left; }
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(30px, 6vw, 44px) clamp(24px, 5vw, 38px);
  display: flex; flex-direction: column;
}
.price__badge {
  align-self: flex-start;
  margin-bottom: 16px; padding: 5px 12px;
  border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .12em; color: var(--gray);
}
.price__weight { font-family: var(--en); font-size: 13px; letter-spacing: .22em; color: var(--gray); }
.price__amount {
  margin-top: 12px;
  font-size: clamp(34px, 9vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: .02em;
}
.price__tax { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--gray); letter-spacing: .1em; }
.price__note { margin-top: 16px; font-size: 14px; color: var(--gray); flex: 1; }
.price .btn { margin-top: 30px; }

/* ---------- 12 FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px; padding: 20px 0;
  font-size: 15.5px; font-weight: 500; letter-spacing: .05em; line-height: 1.7;
  cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-text); }
.faq__icon {
  position: relative; flex: none; width: 14px; height: 14px;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 26px; font-size: 14.5px; line-height: 2.1; color: var(--gray); max-width: 60ch; }

/* ---------- 13 FINAL CTA ---------- */
.section--final {
  background: var(--dark); color: var(--on-dark);
  padding-block: clamp(110px, 26vw, 220px);
}
.final__inner { text-align: center; }
.final__lines {
  margin-top: clamp(40px, 9vw, 60px);
  font-size: clamp(20px, 5.6vw, 30px); font-weight: 500;
  line-height: 2.1; letter-spacing: .09em;
}
.final__brand {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: clamp(46px, 10vw, 72px);
}
.final__mark { display: block; font-size: clamp(54px, 14vw, 78px); margin-inline: auto; }
.final__mark .mark-svg { color: var(--accent-dark); }
.final__marks {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(18px, 5vw, 34px); font-size: clamp(24px, 6vw, 32px);
}
.final__marks li { display: block; }
.final__marks .mark-svg { color: var(--accent-dark); }
.final__ja { font-size: clamp(22px, 6vw, 32px); font-weight: 700; letter-spacing: .18em; }
.final__en { font-family: var(--en); font-size: clamp(9px, 2.4vw, 12px); letter-spacing: .36em; color: rgba(240, 234, 221, .68); }
.final__product { margin-top: 30px; font-size: 15px; letter-spacing: .1em; color: rgba(240, 234, 221, .72); }
.final__copy { margin-top: 12px; font-size: 14px; color: rgba(240, 234, 221, .68); }
.final__actions { margin-top: 46px; }
.section--final .btn--primary {
  background: var(--on-dark); color: var(--dark); border-color: var(--on-dark);
}
.section--final .btn--primary:hover { background: #fff; }
.section--final :focus-visible { outline-color: var(--on-dark); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark); color: rgba(240, 234, 221, .78);
  border-top: 1px solid rgba(240, 234, 221, .1);
  padding-block: 56px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
.site-footer__inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.site-footer__ja { display: block; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.site-footer__en { display: block; font-family: var(--en); font-size: 8.5px; letter-spacing: .2em; color: rgba(240, 234, 221, .68); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 14px 24px; font-size: 13px; }
.site-footer__nav a { text-decoration: none; padding: 6px 0; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy { color: rgba(240, 234, 221, .66); }

/* ---------- スマホ固定CTA ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(245, 241, 232, .95);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform .35s var(--ease);
}
.sticky.is-visible { transform: translateY(0); }
.sticky[hidden] { display: none; }
.sticky__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  max-width: var(--shell); margin-inline: auto;
}
.sticky__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sticky__name { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.sticky__no { font-family: var(--en); font-size: 9px; font-weight: 400; letter-spacing: .14em; color: var(--gray); }
.sticky__price { font-family: var(--en); font-size: 12px; letter-spacing: .08em; color: var(--gray); }
.sticky__btn { min-height: 48px; padding: 12px 26px; font-size: 14px; flex: none; }
@media (min-width: 900px) { .sticky { display: none; } }


/* ==========================================================================
   シリーズ対応で追加したコンポーネント
   ========================================================================== */

/* ---------- 記号バー（全ページ共通・6種への近道） ---------- */
.markbar { border-top: 1px solid var(--line-soft); background: rgba(245, 241, 232, .82); }
.markbar__inner {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.markbar__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 2px 8px;
  text-decoration: none; color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.markbar__item:hover { background: rgba(38, 48, 58, .05); border-bottom-color: var(--accent-text); }
.markbar__item.is-current { background: rgba(38, 48, 58, .06); border-bottom-color: var(--accent-text); }
.markbar__mark { font-size: 17px; }
.markbar__ja { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.markbar__no { font-family: var(--en); font-size: 8px; letter-spacing: .1em; color: var(--gray); }
@media (min-width: 900px) {
  .markbar__inner { grid-template-columns: repeat(6, auto); justify-content: flex-end; gap: 0 4px; }
  .markbar__item { flex-direction: row; align-items: center; gap: 7px; padding: 8px 14px; }
  .markbar__no { display: none; }
}

/* ---------- HERO の6記号 ---------- */
.hero__marks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: clamp(34px, 8vw, 50px);
  padding-top: clamp(28px, 6vw, 36px);
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .hero__marks { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.hero__mark-link {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-height: 84px; padding: 16px 6px;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line-soft);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hero__mark-link:hover { border-color: var(--accent-text); background: rgba(38, 48, 58, .03); }
.hero__mark-svg { font-size: clamp(24px, 6.5vw, 30px); }
.hero__mark-ja { font-size: 14px; font-weight: 700; letter-spacing: .08em; }

/* ---------- 03 LINEUP ---------- */
.section--lineup { background: var(--paper-2); }
.lineup {
  display: grid; gap: 1px; margin-top: 52px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 680px)  { .lineup { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lineup { grid-template-columns: repeat(3, 1fr); } }
.lineup__item { background: var(--paper); }
.lineup__link {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(26px, 5vw, 34px);
  text-decoration: none; color: var(--ink);
  transition: background-color .3s var(--ease);
}
.lineup__link:hover { background: var(--paper-2); }
.lineup__head { display: flex; align-items: center; gap: 11px; }
.lineup__mark { font-size: 24px; }
.lineup__no { flex: 1; }
.lineup__status {
  font-size: 10.5px; letter-spacing: .1em; padding: 3px 9px;
  border: 1px solid var(--line);
}
.lineup__status.is-onsale { color: var(--accent-text); border-color: var(--accent-text); }
.lineup__status.is-soon { color: var(--gray); }
.lineup__title { display: flex; align-items: baseline; gap: 13px; margin-top: 18px; }
.lineup__kanji { font-size: clamp(34px, 8vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: .06em; }
.lineup__en { font-family: var(--en); font-size: 11.5px; letter-spacing: .18em; color: var(--gray); }
.lineup__one { margin-top: 16px; font-size: 14px; line-height: 1.95; }
.lineup__facts { margin-top: 20px; border-top: 1px solid var(--line-soft); }
.lineup__facts > div {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.lineup__facts dt { font-size: 12px; color: var(--gray); letter-spacing: .06em; }
.lineup__facts dd { margin: 0; font-size: 13.5px; }
.lineup__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 24px;
}
.lineup__price { font-size: 17px; font-weight: 700; letter-spacing: .03em; }
.lineup__tax { margin-left: 6px; font-size: 10.5px; font-weight: 400; color: var(--gray); }
.lineup__more { font-size: 12.5px; color: var(--accent-text); letter-spacing: .08em; }
.lineup__link:hover .lineup__more { text-decoration: underline; }

/* ---------- 04 COMPARE ---------- */

.scale__title { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--gray); }
.scale__track {
  position: relative; height: 168px; margin-top: 14px;
  border-bottom: 1px solid var(--line);
}
.scale__pin {
  position: absolute; bottom: calc(var(--row) * 78px); left: var(--pos);
  transform: translateX(-50%);
}
.scale__ends {
  display: grid; grid-template-columns: repeat(6, 1fr);
  text-align: center;
}
.scale__pin a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 6px; text-decoration: none; color: var(--ink);
}
.scale__mark { font-size: clamp(20px, 5vw, 25px); }
.scale__ja { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.scale__ends { margin-top: 10px; font-size: 11px; letter-spacing: .02em; color: var(--gray); }

/* 比較表。スマホでは1商品=1カードに積み替える（横スクロールさせない） */
.table-wrap { margin-top: 0; }
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable a { text-decoration: none; color: inherit; }

.ctable thead { display: none; }
.ctable tbody tr {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ctable tbody tr:first-child { border-top: 1px solid var(--line); }
.ctable__name {
  grid-column: 1 / -1; text-align: left; font-weight: 400; padding-bottom: 14px;
}
.ctable__name a { display: flex; align-items: center; gap: 11px; }
.ctable__mark { font-size: 22px; }
.ctable__kanji { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.ctable__no { font-family: var(--en); font-size: 10px; letter-spacing: .14em; color: var(--gray); }
.ctable td {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; min-height: 30px;
}
.ctable td::before {
  content: attr(data-label);
  flex: none; width: 58px;
  font-size: 11.5px; color: var(--gray); letter-spacing: .06em;
}
.ctable__brew, .ctable__price { grid-column: 1 / -1; }
.ctable__price { font-weight: 700; }

.bar { flex: 1; height: 5px; background: var(--line-soft); min-width: 42px; }
.bar i { display: block; height: 100%; width: calc(var(--v) / 5 * 100%); background: var(--accent-text); }
.bar__n { font-family: var(--en); font-size: 11px; color: var(--gray); }

@media (min-width: 900px) {
  .ctable thead { display: table-header-group; }
  .ctable tbody tr { display: table-row; padding: 0; border-bottom: 1px solid var(--line-soft); }
  .ctable tbody tr:first-child { border-top: none; }
  .ctable thead th {
    padding: 0 12px 14px; text-align: left; vertical-align: bottom;
    font-size: 11.5px; font-weight: 500; letter-spacing: .1em; color: var(--gray);
    border-bottom: 1px solid var(--line);
  }
  .ctable__name { display: table-cell; padding: 16px 12px; }
  .ctable td { display: table-cell; padding: 16px 12px; vertical-align: middle; }
  .ctable td::before { display: none; }
  .ctable__num { white-space: nowrap; }
  .ctable tbody td:first-of-type { white-space: nowrap; }   /* 焙煎度を折り返さない */
  .ctable__brew { white-space: nowrap; font-size: 13px; }
  .ctable__num .bar { display: inline-block; width: 52px; min-width: 0; vertical-align: middle; }
  .ctable__num .bar__n { margin-left: 8px; }
  .ctable tbody tr:hover { background: var(--paper-2); }
}


/* ==========================================================================
   味くらべ（COMPARE）
   ========================================================================== */
.cmp-block { margin-top: clamp(56px, 11vw, 88px); }
.cmp-block:first-of-type { margin-top: clamp(44px, 9vw, 64px); }

.cmp-title {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(17px, 4.4vw, 21px); font-weight: 700; letter-spacing: .06em;
}
.cmp-title__n {
  display: grid; place-items: center; flex: none;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--en); font-size: 12px; font-weight: 500;
}
.cmp-lead { margin-top: 12px; font-size: 13.5px; line-height: 1.95; color: var(--gray); }

/* ---------- ① 酸味 × コクのマトリクス ---------- */
.matrix {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-areas: "ylabel box" ".  xlabel";
  gap: 10px;
  max-width: 620px; margin: 32px auto 0;
}
.matrix__ylabel {
  grid-area: ylabel;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding-block: 2px;
}
.matrix__ylabel span { writing-mode: vertical-rl; }
.matrix__xlabel {
  grid-area: xlabel;
  display: flex; align-items: center; justify-content: space-between;
}
.matrix__end { font-size: 11px; letter-spacing: .06em; color: var(--gray); }
.matrix__axis { font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--ink); }

.matrix__box {
  grid-area: box;
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line);
}
.matrix__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 25% 25%;
}
.matrix__grid::after {
  /* 中心の十字だけ少し濃く */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 50% 50%; background-position: 50% 50%;
}
.matrix__pin {
  position: absolute; z-index: 2;
  left: var(--x); bottom: var(--y);
  transform: translate(-50%, 50%) translate(var(--nudge));
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 5px;
  text-decoration: none; color: var(--ink);
  border-radius: 3px;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.matrix__pin:hover, .matrix__pin:focus-visible {
  background: rgba(38, 48, 58, .07);
  transform: translate(-50%, 50%) translate(var(--nudge)) scale(1.08);
}
.matrix__mark { font-size: clamp(23px, 6vw, 28px); }
.matrix__ja { font-size: 12px; font-weight: 700; letter-spacing: .04em; }

@media (min-width: 560px) {
  .matrix { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .matrix__end { font-size: 12px; }
  .matrix__axis { font-size: 13px; }
}

/* ---------- ② 焙煎度スケール ---------- */
.scale { margin-top: 30px; }

/* ---------- ③ 味わいチャート（レーダー） ---------- */
.radars {
  display: grid; gap: 1px; margin-top: 32px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 520px)  { .radars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .radars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .radars { grid-template-columns: repeat(6, 1fr); } }

.radar-card { background: var(--paper); }
.radar-card > a {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px 18px 20px;
  text-decoration: none; color: var(--ink);
  transition: background-color .3s var(--ease);
}
.radar-card > a:hover { background: var(--paper-2); }
.radar-card__chart { display: block; }
.radar-card__head {
  display: flex; align-items: baseline; gap: 9px;
  margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.radar-card__mark { font-size: 19px; align-self: center; }
.radar-card__kanji { font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.radar-card__no { font-family: var(--en); font-size: 9.5px; letter-spacing: .12em; color: var(--gray); }
.radar-card__one { margin-top: 10px; font-size: 12.5px; line-height: 1.85; color: var(--gray); }
.radar-card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 16px;
}
.radar-card__roast { font-size: 11.5px; color: var(--gray); }
.radar-card__price { font-size: 13.5px; font-weight: 700; }

/* レーダー本体 */
.radar { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; overflow: visible; }
.radar__ring, .radar__spoke { fill: none; stroke: var(--line); stroke-width: 1; }
.radar__ring { stroke: var(--line-soft); }
.radar__shape {
  fill: var(--accent); fill-opacity: .18;
  stroke: var(--accent-text); stroke-width: 2; stroke-linejoin: round;
}
.radar__dot { fill: var(--accent-text); }
.radar__label {
  font-family: var(--ja); font-size: 9.5px; font-weight: 500;
  fill: var(--gray); letter-spacing: .02em;
}

/* ---------- ④ 数値表（たたむ） ---------- */
.cmp-details { margin-top: clamp(48px, 9vw, 72px); border-top: 1px solid var(--line); }
.cmp-details__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 64px; padding: 18px 0;
  font-size: 14.5px; font-weight: 500; letter-spacing: .06em;
  cursor: pointer; list-style: none;
}
.cmp-details__sum::-webkit-details-marker { display: none; }
.cmp-details__sum:hover { color: var(--accent-text); }
.cmp-details[open] .cmp-details__sum .faq__icon::after { transform: rotate(0deg); }
.cmp-details .table-wrap { margin-top: 8px; padding-bottom: 28px; }

/* ---------- 05 SYMBOLS ---------- */
.section--symbols { background: var(--paper-2); text-align: center; }
.section--symbols .prose { text-align: center; }
.symbols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 6vw, 40px);
  margin-top: clamp(52px, 11vw, 76px);
}
@media (min-width: 640px) { .symbols { grid-template-columns: repeat(6, 1fr); } }
.symbols__item a {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); padding: 6px;
}
.symbols__mark { font-size: clamp(38px, 10vw, 46px); }
.symbols__ja { font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.symbols__en { font-family: var(--en); font-size: 9.5px; letter-spacing: .14em; color: var(--gray); }
.symbols__brand {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: clamp(52px, 11vw, 76px); padding-top: clamp(40px, 8vw, 56px);
  border-top: 1px solid var(--line-soft);
}
.symbols__brand-mark { font-size: 34px; color: var(--ink); }
.symbols__brand-mark .mark-svg { color: inherit; }
.symbols__brand-text { font-size: 13.5px; line-height: 2.05; color: var(--gray); }

/* ---------- 10 PRICE（一覧） ---------- */
.plist { margin-top: 52px; border-top: 1px solid var(--line); text-align: left; }
.plist__row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 14px 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.plist__name { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.plist__mark { font-size: 24px; }
.plist__labels { display: flex; flex-direction: column; gap: 2px; }
.plist__kanji { font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.plist__meta { font-size: 11.5px; color: var(--gray); letter-spacing: .04em; }
.plist__cells { display: flex; gap: 22px; grid-column: 1 / -1; }
.plist__cell { display: flex; align-items: baseline; gap: 8px; }
.plist__w { font-family: var(--en); font-size: 11px; letter-spacing: .12em; color: var(--gray); }
.plist__p { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.plist__btn { min-height: 46px; padding: 12px 26px; font-size: 14px; }
@media (min-width: 760px) {
  .plist__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; }
  .plist__cells { grid-column: auto; gap: 30px; }
  .plist__cell { flex-direction: column; align-items: flex-end; gap: 2px; min-width: 74px; }
}

/* ---------- 商品ページ: パンくず ---------- */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: clamp(22px, 5vw, 34px);
  font-size: 11.5px; letter-spacing: .06em; color: var(--gray);
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- 商品ページ: HERO ---------- */
.phero { padding-bottom: clamp(56px, 12vw, 96px); }
.phero__grid { display: grid; gap: clamp(40px, 8vw, 64px); margin-top: clamp(30px, 6vw, 44px); }
@media (min-width: 900px) {
  .phero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
}
.phero__title { display: flex; align-items: center; gap: clamp(16px, 4vw, 24px); margin-top: 22px; }
.phero__mark { font-size: clamp(52px, 14vw, 76px); }
.phero__kanji { font-size: clamp(56px, 15vw, 82px); font-weight: 700; line-height: 1; letter-spacing: .08em; }
.phero__en {
  margin-top: 16px;
  font-family: var(--en); font-size: clamp(11px, 3vw, 13px);
  letter-spacing: .26em; color: var(--gray);
}
.phero__tagline {
  margin-top: clamp(28px, 6vw, 38px);
  font-size: clamp(18px, 4.8vw, 25px); font-weight: 500; line-height: 1.85; letter-spacing: .05em;
}
.phero__one { margin-top: 18px; font-size: 14.5px; line-height: 2; color: var(--gray); }
.phero__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
  margin-top: clamp(28px, 6vw, 38px); padding-top: 24px;
  border-top: 1px solid var(--line);
}
.phero__pv { font-size: 14px; letter-spacing: .06em; }
.phero__pv b { font-size: 19px; font-weight: 700; margin-left: 6px; }
.phero__tax { font-size: 11px; color: var(--gray); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.phero__actions .btn { flex: 1 1 auto; min-width: 150px; }
@media (min-width: 560px) { .phero__actions .btn { flex: 0 0 auto; } }
.ph--phero { aspect-ratio: 4 / 5; }

/* ---------- 商品ページ: 空の帯 ---------- */
.ph--sky { width: 100%; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .ph--sky { aspect-ratio: 21 / 9; } }

/* ---------- 商品ページ: 気象の視点 ---------- */
.section--forecast { background: var(--paper-2); }

/* ---------- 商品ページ: 仕様と構成豆 ---------- */
.pspec__grid { display: grid; gap: clamp(44px, 8vw, 64px); margin-top: 34px; }
@media (min-width: 900px) { .pspec__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.spec { border-top: 1px solid var(--line); }

.beans__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 700; letter-spacing: .08em;
}
.beans__ver { font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--gray); }
.beans__list { margin-top: 4px; }
.bean { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.bean__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.bean__origin { font-size: 14.5px; font-weight: 500; letter-spacing: .04em; }
.bean__ratio { font-family: var(--en); font-size: 19px; font-weight: 600; color: var(--accent-text); }
.bean__ratio i { font-style: normal; font-size: 11px; margin-left: 1px; }
.bean__sub { margin-top: 5px; font-size: 12.5px; color: var(--gray); }
.bean__bar { display: block; height: 4px; margin-top: 12px; background: var(--line-soft); }
.bean__bar i { display: block; height: 100%; width: var(--v); background: var(--accent-text); }

/* ---------- 商品ページ: 味わいへの導線 ---------- */
.taste__link { margin-top: 40px; font-size: 13.5px; }
.taste__link a { color: var(--on-dark); }

/* ---------- 商品ページ: シーン（写真なし・文字だけ） ---------- */
.section--scene .scenes { grid-template-columns: 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.section--scene .scene { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.section--scene .scene__no { margin-top: 0; }
@media (min-width: 760px) {
  .section--scene .scenes { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
  .section--scene .scene { background: var(--paper); padding: 32px 28px; border-bottom: none; }
}

/* ---------- 商品ページ: ほかの観測 ---------- */
.section--others { background: var(--paper-2); }
.others {
  display: grid; gap: 1px; margin-top: 46px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 620px)  { .others { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .others { grid-template-columns: repeat(5, 1fr); } }
.other__link {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  background: var(--paper); padding: 24px 22px;
  text-decoration: none; color: var(--ink);
  transition: background-color .3s var(--ease);
}
.other__link:hover { background: var(--paper-2); }
.other__mark { font-size: 24px; }
.other__kanji { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.other__en { font-family: var(--en); font-size: 10px; letter-spacing: .14em; color: var(--gray); }
.other__one { margin-top: 6px; font-size: 12.5px; line-height: 1.9; color: var(--gray); }
.other__price { margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 700; }
.others__all { margin-top: 36px; text-align: center; }

/* ---------- 固定CTA: 記号を添える ---------- */
.sticky__name { display: flex; align-items: center; gap: 8px; }
.sticky__mark { font-size: 15px; }

/* ---------- 販売前 ---------- */
.btn--disabled, .btn--disabled:hover {
  background: transparent; color: var(--gray); border-color: var(--line);
  cursor: default;
}
.sales-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--ink); }
.section--legal .spec { margin-top: 40px; }
.section--legal .spec__row { grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 600px) { .section--legal .spec__row { grid-template-columns: 200px 1fr; gap: 20px; } }

/* ---------- スクロール出現 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 印刷 ---------- */
@media print {
  .site-header, .sticky, .btn { display: none !important; }
  body { background: #fff; }
}
