/* =========================================================
   Find My Coffee — Components
   ========================================================= */

/* =========================================================
   1. Scene — 「情景」レイヤー
   ---------------------------------------------------------
   写真がまだ無くても、朝の光・雨の日・キャンドルといった
   空気感をCSSで描きます。写真を入れると自動で置き換わります。
   （photos.js にパスを入れるだけ）
   ========================================================= */
.scene {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  isolation: isolate;
}
.scene > .scene__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.scene__body { position: relative; z-index: 3; }

/* 粒子（フィルムグレイン）。これが「作り物っぽさ」を消します */
.scene::after {
  content: ""; position: absolute; inset: -50%; z-index: 2;
  pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 情景ごとの色設計 */
.scene[data-scene="morning"] {
  background:
    radial-gradient(80% 60% at 22% 8%,  rgba(255,244,214,.95) 0%, rgba(255,244,214,0) 62%),
    radial-gradient(60% 50% at 88% 82%, rgba(180,138,86,.5)  0%, rgba(180,138,86,0)  70%),
    linear-gradient(155deg, #E9D7B8 0%, #C79E6D 48%, #7C5637 100%);
}
.scene[data-scene="window"] {
  background:
    linear-gradient(102deg, rgba(255,250,238,0) 30%, rgba(255,250,238,.75) 44%, rgba(255,250,238,0) 58%),
    radial-gradient(70% 55% at 78% 18%, rgba(255,241,215,.8) 0%, rgba(255,241,215,0) 65%),
    linear-gradient(160deg, #D8C4A6 0%, #A78261 55%, #5E4530 100%);
}
.scene[data-scene="rain"] {
  background:
    repeating-linear-gradient(99deg, rgba(255,255,255,.05) 0 1px, rgba(255,255,255,0) 1px 22px),
    radial-gradient(70% 60% at 30% 18%, rgba(206,214,203,.5) 0%, rgba(206,214,203,0) 70%),
    linear-gradient(165deg, #8E9A92 0%, #5C6B62 50%, #2F3B36 100%);
}
.scene[data-scene="candle"] {
  background:
    radial-gradient(46% 42% at 50% 76%, rgba(255,196,116,.9) 0%, rgba(255,150,60,.28) 42%, rgba(255,150,60,0) 72%),
    linear-gradient(170deg, #4A3223 0%, #2C1D14 55%, #170F0A 100%);
}
.scene[data-scene="forest"] {
  background:
    radial-gradient(65% 55% at 74% 14%, rgba(224,233,214,.6) 0%, rgba(224,233,214,0) 66%),
    linear-gradient(158deg, #7E9480 0%, #46604F 52%, #223429 100%);
}
.scene[data-scene="table"] {
  /* 木目のストライプは入れない。細い繰り返しはモアレになって安っぽく見えます。
     質感は .scene::after のグレインが担当します。 */
  background:
    radial-gradient(64% 50% at 18% 8%,  rgba(255,238,208,.62) 0%, rgba(255,238,208,0) 70%),
    radial-gradient(90% 40% at 50% 108%, rgba(38,22,13,.55) 0%, rgba(38,22,13,0) 70%),
    linear-gradient(158deg, #C0996F 0%, #8A6647 54%, #4E3524 100%);
}
.scene[data-scene="book"] {
  background:
    radial-gradient(58% 52% at 76% 22%, rgba(255,238,208,.6) 0%, rgba(255,238,208,0) 68%),
    linear-gradient(155deg, #CDB79A 0%, #9C7A5C 52%, #55402F 100%);
}
.scene[data-scene="night"] {
  background:
    radial-gradient(50% 45% at 68% 24%, rgba(180,190,205,.35) 0%, rgba(180,190,205,0) 70%),
    linear-gradient(168deg, #3A3B44 0%, #23242B 52%, #121317 100%);
}
.scene[data-scene="cream"] { background: linear-gradient(160deg, #FBF7F0 0%, #EFE5D6 60%, #E2D3BC 100%); }

/* 文字を写真の上にのせるときの保険（コントラスト確保） */
.scene--veil::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(22,16,12,.62) 0%, rgba(22,16,12,.22) 45%, rgba(22,16,12,.18) 100%);
}
.scene--veil-soft::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(22,16,12,.45) 0%, rgba(22,16,12,0) 60%);
}

/* ゆっくり動く光。1画面に1つまで。
   ※ 動かすのは背景レイヤーだけ。.scene 自体を transform すると、
     中の文字までスケールしてレイアウトが崩れます。 */
@keyframes cc-drift {
  0%   { transform: translate3d(0,0,0) scale(1.06); }
  100% { transform: translate3d(-2.5%, -2%, 0) scale(1.14); }
}
.scene--drift > .scene__img { animation: cc-drift 26s var(--ease-soft) infinite alternate; }

/* 写真がまだ無いときは、光そのものをゆっくり呼吸させる */
@keyframes cc-breathe { 0%,100% { opacity: .34; } 50% { opacity: .2; } }
.scene--drift::after { animation: cc-breathe 14s var(--ease-soft) infinite; }

/* =========================================================
   2. Button
   ========================================================= */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 var(--s7);
  border: 1px solid var(--bd); border-radius: var(--r-full);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  letter-spacing: .06em; cursor: pointer;
  overflow: hidden;
  transition: transform var(--d-fast) var(--ease),
              box-shadow var(--d-base) var(--ease),
              background var(--d-base) var(--ease-soft),
              color var(--d-base) var(--ease-soft);
  box-shadow: var(--shadow-s);
}
/* 中央から広がる光。押したときの手応えになります */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 50% 120%, rgba(255,255,255,.22), transparent 70%);
  opacity: 0; transition: opacity var(--d-base) var(--ease-soft);
}
.btn:hover::before { opacity: 1; }
.btn > * { position: relative; z-index: 1; }
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: var(--shadow-xs); }
.btn[disabled] { opacity: .35; pointer-events: none; }

.btn--lg { min-height: 62px; font-size: 1.02rem; padding-inline: var(--s8); }
.btn--xl { min-height: 68px; font-size: 1.08rem; padding-inline: var(--s9); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--clay); box-shadow: none; }
.btn--ghost:hover { --bg: var(--cream); box-shadow: var(--shadow-s); }
.btn--on-dark { --bg: rgba(255,255,255,.1); --fg: var(--on-dark); --bd: rgba(255,255,255,.34); box-shadow: none; backdrop-filter: blur(6px); }
.btn--on-dark:hover { --bg: rgba(255,255,255,.2); }
.btn--forest { --bg: var(--forest); --fg: #F4F8F4; }
.btn--block { width: 100%; }
.btn > svg { width: 1.1em; height: 1.1em; flex: none; }

/* 矢印がすっと出る。テキストリンクの上位版 */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-sm); letter-spacing: .06em; color: var(--ink);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform var(--d-base) var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* =========================================================
   3. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  color: var(--on-dark);
}
.hero__inner {
  width: 100%; max-width: var(--w-wide); margin-inline: auto;
  padding: var(--s10) var(--gutter) clamp(90px, 16vh, 140px);
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: var(--s5);
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
.hero .lead { color: rgba(246,240,232,.86); max-width: 34ch; margin-bottom: var(--s7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 4;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: var(--ls-caps); color: rgba(246,240,232,.7);
}
.scroll-cue__line {
  width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(246,240,232,.65), transparent);
  transform-origin: top;
  animation: cc-cue 2.4s var(--ease-soft) infinite;
}
@keyframes cc-cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* =========================================================
   4. Card
   ========================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: var(--s6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.card--plain { border: 0; box-shadow: none; background: transparent; padding: 0; }

/* 横スクロールの棚（Spotifyのプレイリスト列のイメージ） */
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 78vw);
  gap: var(--s4);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: var(--s2) var(--gutter) var(--s6);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; }
@media (min-width: 640px) {
  .rail { grid-auto-columns: minmax(250px, 34vw); scroll-snap-type: x proximity; }
  .rail > * { scroll-snap-align: start; }
}
@media (min-width: 1080px) {
  .rail { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr);
          overflow: visible; padding-inline: 0; margin-inline: 0; }
}

/* 気分カード */
.mood-card {
  position: relative; display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-l);
  overflow: hidden;
  color: var(--on-dark);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
  box-shadow: var(--shadow-s);
}
.mood-card:hover { transform: translateY(-6px) scale(1.012); box-shadow: var(--shadow-l); }

/* タイプ一覧（7枚）用。スマホでは1列に7枚並ぶため、縦長のままだと
   延々スクロールすることになります。横スクロールの棚では従来どおり。 */
.mood-card--wide { aspect-ratio: 16 / 11; }
@media (min-width: 720px) { .mood-card--wide { aspect-ratio: 3 / 4; } }
.mood-card__body {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: var(--s5);
}
.mood-card__icon { display: block; width: 26px; height: 26px; opacity: .9; margin-bottom: var(--s3); }
.mood-card__icon svg { width: 100%; height: 100%; }
.mood-card__label {
  font-family: var(--font-display);
  font-size: 1.16rem; line-height: 1.45; letter-spacing: .03em;
  display: block;
}
.mood-card__sub { display: block; font-size: var(--t-xs); opacity: .78; margin-top: 6px; letter-spacing: .05em; }

/* =========================================================
   5. Tag / Chip
   ========================================================= */
.tag {
  display: inline-block; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: 11px; letter-spacing: .08em; color: var(--ink-2);
  white-space: nowrap;
}
.tag--solid { background: var(--sand); border-color: transparent; color: var(--ink); }
.tag--gold  { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 34%, transparent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line);
  border-radius: var(--r-full); background: var(--paper);
  font-size: var(--t-sm); color: var(--ink-2); cursor: pointer;
  transition: all var(--d-fast) var(--ease-soft);
  white-space: nowrap;
}
.pill:hover { border-color: var(--bark); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill-row {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  padding-bottom: var(--s3);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.pill-row::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .pill-row { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

/* =========================================================
   6. 診断（会話としての診断）
   ========================================================= */
.quiz-page { min-height: 100svh; background: var(--cream); display: flex; flex-direction: column; }
.quiz { flex: 1; display: flex; flex-direction: column; justify-content: center;
        width: 100%; max-width: 720px; margin-inline: auto;
        padding: calc(var(--header-h) + var(--s7)) var(--gutter) var(--s8); }

/* 進捗は数字ではなく「今なにをしているか」を伝える */
.q-status { margin-bottom: var(--s7); }
.q-status__text {
  font-size: var(--t-xs); letter-spacing: .12em; color: var(--ink-3);
  display: block; margin-bottom: var(--s3); min-height: 1.4em;
}
.q-status__track { height: 2px; background: var(--clay-soft); border-radius: 2px; overflow: hidden; }
.q-status__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bark), var(--gold));
  border-radius: 2px;
  transition: width var(--d-slow) var(--ease);
}

.q-title {
  font-size: clamp(1.5rem, 5.6vw, 2.35rem);
  font-weight: 500; line-height: 1.45; margin-bottom: var(--s3);
  text-wrap: balance;
}
.q-help { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s6); line-height: 1.8; }

.opts { display: grid; gap: 10px; margin-bottom: var(--s6); }
@media (min-width: 680px) { .opts--2 { grid-template-columns: 1fr 1fr; } }

.opt {
  position: relative;
  display: flex; align-items: center; gap: var(--s4);
  width: 100%; text-align: left;
  padding: var(--s5); min-height: 82px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  color: var(--ink); font-family: inherit; font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease-soft),
              box-shadow var(--d-base) var(--ease),
              background var(--d-fast) var(--ease-soft);
  /* 順番にふわっと現れる */
  animation: cc-opt-in var(--d-base) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}
@keyframes cc-opt-in { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }
.opt:hover { transform: translateY(-2px); border-color: var(--clay); box-shadow: var(--shadow-s); }
.opt:active { transform: scale(.99); }
.opt[aria-checked="true"] {
  border-color: var(--ink); background: var(--paper); box-shadow: var(--shadow-m);
}
.opt[aria-checked="true"]::after {
  content: ""; position: absolute; right: var(--s5); top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--forest);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--forest);
  animation: cc-pop var(--d-fast) var(--ease) both;
}
@keyframes cc-pop { from { transform: scale(0); } to { transform: scale(1); } }

.opt__icon {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--sand); color: var(--bark);
  transition: background var(--d-base) var(--ease-soft), color var(--d-base) var(--ease-soft);
}
.opt__icon svg { width: 21px; height: 21px; }
.opt[aria-checked="true"] .opt__icon { background: var(--ink); color: var(--paper); }
.opt__body { flex: 1; min-width: 0; padding-right: var(--s5); }
.opt__label { display: block; font-weight: 500; line-height: 1.55; }
.opt__sub { display: block; font-size: var(--t-sm); color: var(--ink-3); margin-top: 3px; line-height: 1.6; }

.q-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.q-nav__ghost {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-family: inherit; font-size: var(--t-sm); color: var(--ink-3);
  transition: color var(--d-fast) var(--ease-soft);
}
.q-nav__ghost:hover { color: var(--ink); }

/* 質問の切り替え */
.q-swap { animation: cc-q-in var(--d-base) var(--ease) both; }
@keyframes cc-q-in { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: none; } }
.q-swap.is-leaving { animation: cc-q-out var(--d-fast) var(--ease-soft) both; }
@keyframes cc-q-out { to { opacity: 0; transform: translate3d(0,-10px,0); } }

/* 結果を出す前の「探しています…」 */
.brewing {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center; text-align: center;
  background: var(--espresso); color: var(--on-dark);
  padding: var(--gutter);
  animation: cc-fade-in var(--d-base) var(--ease-soft) both;
}
@keyframes cc-fade-in { from { opacity: 0; } to { opacity: 1; } }
.brewing__ring {
  width: 62px; height: 62px; margin: 0 auto var(--s6);
  border-radius: 50%;
  border: 1px solid rgba(246,240,232,.18);
  border-top-color: var(--gold);
  animation: cc-spin 1.15s linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }
.brewing__text {
  font-family: var(--font-display); font-size: clamp(1.1rem, 4.4vw, 1.5rem);
  letter-spacing: .05em; min-height: 2.6em;
}
.brewing__sub { font-size: var(--t-xs); letter-spacing: .18em; color: var(--on-dark-2); margin-top: var(--s4); }

/* =========================================================
   7. 豆カード（エディトリアル寄り）
   ========================================================= */
.bean {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.bean:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }

/* 枠の比率は、豆の写真（1536×1024 = 3:2）と必ず揃えること。
   ズレていると object-fit: cover が左右を切り落とし、
   端に置いた果物などが消えます。写真を差し替えるときも同じ比率で。 */
.bean__art { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; }
.bean__art svg.bean-mark { width: 38%; opacity: .55; }
.bean__badge {
  position: absolute; top: var(--s4); left: var(--s4); z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--r-full);
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  backdrop-filter: blur(4px);
}
.bean__match {
  position: absolute; top: var(--s4); right: var(--s4); z-index: 4;
  padding: 5px 13px; border-radius: var(--r-full);
  background: rgba(30,22,17,.72); color: var(--on-dark);
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  backdrop-filter: blur(4px);
}
.bean__body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); flex: 1; }
.bean__origin { font-size: 10px; letter-spacing: var(--ls-caps); color: var(--ink-3); margin: 0; text-transform: uppercase; }
.bean__name { font-size: 1.3rem; margin: 0; }
.bean__notes { font-size: var(--t-sm); color: var(--gold); letter-spacing: .06em; margin: 0; }
.bean__summary { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.9; margin: 0; }
.bean__actions { margin-top: auto; display: grid; gap: var(--s2); padding-top: var(--s2); }

/* No.1 だけ大きく見せる */
.bean--feature { border-radius: var(--r-xl); }
@media (min-width: 900px) {
  .bean--feature { display: grid; grid-template-columns: 1.05fr .95fr; }
  .bean--feature .bean__art { aspect-ratio: auto; height: 100%; min-height: 460px; }
  .bean--feature .bean__body { padding: var(--s8); gap: var(--s5); }
  .bean--feature .bean__name { font-size: 2rem; }
}

/* 味わいバー */
.taste { display: grid; gap: 9px; margin: 0; }
.taste__row { display: grid; grid-template-columns: 3.4em 1fr; align-items: center; gap: var(--s4); }
.taste__label { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.taste__track { height: 3px; background: var(--clay-soft); border-radius: 3px; overflow: hidden; }
.taste__fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--bark), var(--ink));
  width: 0;
  transition: width 1.1s var(--ease);
  transition-delay: var(--bar-delay, 0ms);
}
.is-in .taste__fill, .taste--now .taste__fill { width: var(--w); }

.stars { letter-spacing: .18em; color: var(--gold); font-size: .8rem; }

.reason {
  border-left: 2px solid var(--clay);
  padding-left: var(--s5);
  font-size: var(--t-sm); line-height: 1.9; color: var(--ink-2);
}
.reason ul { margin: 0; padding: 0; list-style: none; }
.reason li { margin-bottom: 8px; padding-left: 18px; position: relative; }
.reason li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 7px; height: 1px; background: var(--gold);
}
.reason strong {
  display: block; font-size: 10px; letter-spacing: var(--ls-caps);
  color: var(--ink-3); margin-bottom: 10px; font-weight: 500; text-transform: uppercase;
}

/* =========================================================
   8. 診断結果（ライフスタイル提案）
   ========================================================= */
.type-reveal { position: relative; color: var(--on-dark); }
.type-reveal__inner {
  position: relative; z-index: 3;
  padding: calc(var(--header-h) + clamp(70px,14vh,120px)) var(--gutter) clamp(70px,14vh,120px);
  max-width: var(--w-mid); margin-inline: auto; text-align: center;
}
.type-reveal h1 {
  font-size: clamp(2rem, 8.5vw, 4rem); color: var(--on-dark);
  margin: var(--s4) 0 var(--s5); font-weight: 500;
  text-shadow: 0 2px 34px rgba(0,0,0,.3);
}
.type-reveal .lead { color: rgba(246,240,232,.9); }
.type-reveal p.muted { color: rgba(246,240,232,.7); }

@keyframes cc-type-in {
  from { opacity: 0; transform: translate3d(0,26px,0); letter-spacing: .3em; filter: blur(6px); }
  to   { opacity: 1; transform: none; letter-spacing: var(--ls-display); filter: none; }
}
.type-reveal h1.is-revealed { animation: cc-type-in 1.15s var(--ease) both; }

/* 章タイトル */
.act__head { margin-bottom: var(--s8); }
.act__num {
  font-family: var(--font-display); font-size: var(--t-sm);
  color: var(--gold); letter-spacing: .2em; display: block; margin-bottom: var(--s3);
}

/* ライフスタイル提案 */
.pairings { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .pairings { grid-template-columns: repeat(2, 1fr); } }
.pairing {
  position: relative;
  border-radius: var(--r-l);
  padding: var(--s6);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: var(--s3);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.pairing:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.pairing__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); color: var(--bark); margin-bottom: var(--s2);
}
.pairing__icon svg { width: 20px; height: 20px; }
.pairing__kind {
  font-size: 10px; letter-spacing: var(--ls-caps); color: var(--ink-3); text-transform: uppercase;
}
.pairing__title { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.5; margin: 0; }
.pairing__desc { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.85; margin: 0; }
.pairing__list { margin: var(--s2) 0 0; padding: 0; list-style: none; }
.pairing__list li {
  font-size: var(--t-sm); color: var(--ink-2); padding: 9px 0;
  border-top: 1px solid var(--line-soft); margin: 0; line-height: 1.6;
}
.pairing__list li:first-child { border-top: 0; padding-top: 0; }
.pairing__list b { font-weight: 500; color: var(--ink); display: block; }
.pairing__list span { font-size: var(--t-xs); color: var(--ink-3); }

/* 「こんな日に」 */
.moment {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  color: var(--on-dark); min-height: 340px;
  display: grid; align-items: end;
}
.moment__body { position: relative; z-index: 3; padding: var(--s8) var(--s6); max-width: 46ch; }
.moment h2 { color: var(--on-dark); }
.moment p { color: rgba(246,240,232,.85); margin: 0; }

/* =========================================================
   9. 記事
   ========================================================= */
.article-card { display: block; }
.article-card__art {
  border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16/10; margin-bottom: var(--s4);
}
.article-card__meta {
  font-size: 10px; letter-spacing: var(--ls-caps); color: var(--ink-3);
  text-transform: uppercase; margin-bottom: 10px;
}
.article-card h3 { font-size: 1.14rem; line-height: 1.6; margin-bottom: 10px; }
.article-card p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; line-height: 1.85; }
.article-card:hover .article-card__art { transform: scale(1.015); }
.article-card__art { transition: transform var(--d-base) var(--ease); }

/* 記事冒頭の情景。読み物にも「入り口」をつくる */
.article-hero {
  aspect-ratio: 2 / 1;
  border-radius: var(--r-l);
  margin: 0 0 var(--s7);
}
@media (min-width: 720px) { .article-hero { aspect-ratio: 21 / 9; } }

.prose { max-width: var(--w-read); margin-inline: auto; }
.prose h2 { margin-top: var(--s9); font-size: clamp(1.3rem, 4.2vw, 1.75rem); }
.prose h3 { margin-top: var(--s7); font-size: 1.12rem; }
.prose p, .prose li { line-height: 2.05; }
.prose a { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--clay); }
.prose a:hover { text-decoration-color: var(--bark); }
.prose blockquote {
  margin: var(--s7) 0; padding: var(--s6);
  background: var(--cream); border-radius: var(--r-m);
  border-left: 2px solid var(--gold);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s6) 0; font-size: var(--t-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--line-soft); padding: var(--s4) var(--s3); text-align: left; vertical-align: top; }
.prose th { color: var(--ink-3); font-weight: 500; font-size: var(--t-xs); letter-spacing: .1em; }
.table-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
@media (min-width: 760px) { .table-scroll { margin-inline: 0; padding-inline: 0; } }

.breadcrumb { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s5); letter-spacing: .05em; }
.breadcrumb a:hover { color: var(--ink); }

.toc {
  background: var(--cream); border-radius: var(--r-m);
  padding: var(--s5) var(--s6); margin: var(--s7) 0;
}
.toc h2 {
  font-family: var(--font-body); font-size: 10px; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s3);
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 8px; font-size: var(--t-sm); }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--ink); }

/* =========================================================
   10. その他
   ========================================================= */
.cta-panel {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  color: var(--on-dark); text-align: center;
}
.cta-panel__body { position: relative; z-index: 3; padding: clamp(48px, 9vw, 88px) var(--s6); }
.cta-panel h2 { color: var(--on-dark); }
.cta-panel p { color: rgba(246,240,232,.82); }

.empty { text-align: center; padding: var(--s9) var(--s4); color: var(--ink-2); }
.dot, .divider-dot { color: var(--ink-3); padding-inline: 8px; }

/* 記事内で使っている簡易CTA。scene を組まなくても同じ質感になるようにしたもの */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(44px, 8vw, 80px) var(--s6);
  text-align: center;
  color: var(--on-dark);
  background:
    radial-gradient(46% 44% at 50% 78%, rgba(255,196,116,.55) 0%, rgba(255,150,60,.14) 44%, rgba(255,150,60,0) 74%),
    linear-gradient(168deg, #4A3223 0%, #2C1D14 56%, #170F0A 100%);
}
.cta-band::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--on-dark); }
.cta-band p  { color: rgba(246,240,232,.82); }
.cta-band .btn { --bg: var(--paper); --fg: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 220;
  transform: translateX(-50%) translateY(0);
  background: var(--ink); color: var(--paper);
  padding: 13px var(--s6); border-radius: var(--r-full);
  font-size: var(--t-sm); box-shadow: var(--shadow-l);
  animation: cc-toast var(--d-base) var(--ease) both;
}
@keyframes cc-toast { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }

/* お気に入りボタン（ハートが少し弾む） */
.fav-btn svg { transition: transform var(--d-fast) var(--ease); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.12); }

/* 数字を大きく見せる（結果の一致度など） */
.figure {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1;
  letter-spacing: 0;
}
