/* ============================================
   働くママのご褒美家飲み帖 — エディトリアル×夜（ナイトモード）
   配色は :root のトークンに集約。表紙のオレンジ×深緑を、
   明るすぎない"夜の家飲み"のトーンで再構成しています。
   ============================================ */
:root {
  /* アクセント（オレンジ） */
  --orange:      #ef8a4e;
  --orange-dark: #e8763a;
  --orange-pale: #ffc79a;
  --orange-soft: rgba(232, 118, 58, .16);

  /* 夜のベース（深い緑〜黒） */
  --bg:      #141f1a;   /* ページ地 */
  --tint:    #1a2620;   /* 交互の帯（少し明るい夜） */
  --panel:   #243530;   /* カード（浮かせる面） */
  --panel-2: #2b3e37;   /* さらに手前の面 */

  --ink:     #ece2d1;   /* 本文テキスト */
  --muted:   #a89e8e;   /* 補足テキスト */
  --green:   #f4ecdd;   /* 見出し（夜に映える生成り） */
  --white:   #ffffff;   /* ボタン文字など */
  --rule:    #3a4d43;   /* 罫線・枠 */

  --shadow-card: 0 16px 38px -18px rgba(0, 0, 0, .7);
  --shadow-soft: 0 8px 22px -12px rgba(0, 0, 0, .6);
  --shadow-lg:   0 34px 66px -22px rgba(0, 0, 0, .75);

  --container: 1120px;
  --space-section: clamp(4rem, 9vw, 7rem);

  --mincho:  "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic:  "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
             "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --serif-en: "Playfair Display", "Zen Old Mincho", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--gothic);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-pale); }
h1, h2, h3 { margin: 0; line-height: 1.5; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.4rem, 680px); }

.section { padding-block: var(--space-section); position: relative; }
.section--tint { background: var(--tint); }

/* 英字の小見出し */
.kicker {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--orange);
  font-size: .95rem;
  letter-spacing: .04em;
  margin: 0 0 1.4rem;
}

/* セクション見出し（番号 + 和文 + 英字 + 罫線） */
.head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 2.8rem;
}
.head__no {
  font-family: var(--serif-en);
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1;
}
.head__title {
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--green);
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  letter-spacing: .04em;
}
.head__en {
  margin-left: auto;
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  white-space: nowrap;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95rem 2rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, #f0925a 0%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(232, 118, 58, .6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--lg { padding: 1.15rem 2.6rem; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }

/* ============================================
   ヘッダー（マストヘッド）
   ============================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 26, 22, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 1rem;
}
.masthead__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; }
.masthead__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--rule);
}
.masthead__title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: .98rem;
  color: var(--green);
  letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.masthead__nav { display: flex; align-items: center; gap: 1.3rem; flex: 0 0 auto; }
.masthead__nav a { text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 700; }
.masthead__nav a:hover { color: var(--orange); }
.masthead__buy {
  border-bottom: 2px solid var(--orange);
  padding-bottom: 1px;
  color: var(--orange-pale) !important;
}
@media (max-width: 540px) { .masthead__title { display: none; } }

/* ============================================
   星の瞬き（ヒーロー・CTA共通）
   ============================================ */
.hero::before, .cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: twinkle 4.8s ease-in-out infinite alternate;
  background-repeat: no-repeat;
  background-image:
    /* 大きめの、ふんわり光る星 */
    radial-gradient(2.6px 2.6px at 18% 22%, rgba(255,244,228,1), transparent 60%),
    radial-gradient(2.4px 2.4px at 86% 18%, rgba(255,232,205,.95), transparent 60%),
    radial-gradient(2.2px 2.2px at 63% 40%, rgba(255,220,186,.9), transparent 60%),
    radial-gradient(2.4px 2.4px at 33% 62%, rgba(255,244,228,.9), transparent 60%),
    radial-gradient(2.2px 2.2px at 78% 66%, rgba(255,232,205,.85), transparent 60%),
    /* 細かい星（全体に散らす） */
    radial-gradient(1.4px 1.4px at 12% 15%, rgba(255,240,222,.95), transparent),
    radial-gradient(1.4px 1.4px at 82% 9%, rgba(255,236,214,.85), transparent),
    radial-gradient(1.2px 1.2px at 67% 24%, rgba(255,214,176,.9), transparent),
    radial-gradient(1.3px 1.3px at 41% 7%, rgba(255,240,222,.8), transparent),
    radial-gradient(1.2px 1.2px at 92% 33%, rgba(255,214,176,.85), transparent),
    radial-gradient(1.2px 1.2px at 26% 33%, rgba(255,240,222,.75), transparent),
    radial-gradient(1.3px 1.3px at 55% 14%, rgba(255,236,214,.8), transparent),
    radial-gradient(1.1px 1.1px at 7% 40%, rgba(255,236,214,.7), transparent),
    radial-gradient(1.2px 1.2px at 74% 46%, rgba(255,214,176,.7), transparent),
    radial-gradient(1.1px 1.1px at 48% 30%, rgba(255,240,222,.65), transparent),
    radial-gradient(1.2px 1.2px at 15% 55%, rgba(255,236,214,.7), transparent),
    radial-gradient(1.1px 1.1px at 90% 55%, rgba(255,240,222,.65), transparent),
    radial-gradient(1.2px 1.2px at 36% 46%, rgba(255,214,176,.6), transparent),
    radial-gradient(1.1px 1.1px at 60% 60%, rgba(255,236,214,.6), transparent),
    radial-gradient(1.1px 1.1px at 5% 72%, rgba(255,240,222,.55), transparent),
    radial-gradient(1.2px 1.2px at 70% 80%, rgba(255,232,205,.55), transparent),
    radial-gradient(1.1px 1.1px at 30% 82%, rgba(255,240,222,.5), transparent);
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* ============================================
   1. ヒーロー
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(130% 120% at 82% -10%, #2c5647 0%, #1c3b31 40%, #101a15 100%);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}
.hero .kicker { color: var(--orange-pale); }
.hero__title {
  font-family: var(--mincho);
  font-weight: 700;
  color: #fbf5ea;
  font-size: clamp(2rem, 6.6vw, 3.4rem);
  line-height: 1.4;
  letter-spacing: .03em;
  margin: 0 0 1.6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__title em { font-style: normal; color: var(--orange-pale); }
.hero__lead { font-size: clamp(1rem, 2.2vw, 1.12rem); color: rgba(236,226,209,.9); margin: 0 0 1.8rem; }
.hero__lead b { color: var(--orange-pale); font-weight: 700; }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  font-size: .82rem; letter-spacing: .06em;
  color: rgba(236,226,209,.62);
  margin: 0 0 2rem;
}
.hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); display: inline-block; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.hero__price { font-size: .84rem; color: rgba(236,226,209,.62); }

/* 立体の本（表紙⇄裏表紙がゆっくり回転） */
.hero__figure { display: grid; place-items: center; perspective: 1700px; }
.book3d {
  position: relative;
  width: min(74%, 320px);
  aspect-ratio: 760 / 1078;
}
.book3d::before {
  content: "";
  position: absolute;
  inset: 4% -8% -12% -8%;
  background: radial-gradient(58% 52% at 50% 62%, rgba(232,118,58,.45), transparent 72%);
  filter: blur(26px);
  z-index: 0;
}
.book3d__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: bookspin 34s linear infinite;
  will-change: transform;
}
.book3d:hover .book3d__inner { animation-play-state: paused; }
.book3d__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
}
.book3d__front { border-radius: 3px 9px 9px 3px; }
.book3d__back  { border-radius: 9px 3px 3px 9px; transform: rotateY(180deg); }
@keyframes bookspin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .book3d__inner { animation: none; }
}

/* ============================================
   2. 共感（囲みカード）
   ============================================ */
.editorial-quote {
  font-family: var(--mincho);
  font-weight: 600;
  color: var(--green);
  font-size: clamp(1.3rem, 4.2vw, 1.85rem);
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 2.4rem;
}
.editorial-quote span {
  display: block;
  font-family: var(--gothic);
  font-weight: 500;
  font-size: .92rem;
  color: var(--muted);
  margin-top: 1rem;
  letter-spacing: .04em;
}
.empathy {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 34em;
  display: grid;
  gap: .8rem;
}
.empathy li {
  padding: 1rem 1.3rem 1rem 3rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  position: relative;
  color: var(--ink);
  font-size: .97rem;
}
.empathy li::before {
  content: "🌙";
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  font-size: .95rem;
}

/* ============================================
   3. この本について（囲みカード）
   ============================================ */
.statement {
  font-family: var(--mincho);
  font-weight: 500;
  color: var(--green);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.9;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 3rem;
}
.statement em { font-style: normal; color: var(--orange-pale); }

/* 広い画面だけ改行を効かせ、スマホでは自然に折り返す */
@media (max-width: 679px) {
  .br-pc { display: none; }
}
.bignum {
  font-family: var(--serif-en);
  color: var(--orange);
  font-size: 1.7em;
  line-height: 1;
  padding: 0 .06em;
}

.specs {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .specs { grid-template-columns: 1fr 1fr; } }
.spec {
  display: flex;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.spec__no {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1.3;
  flex: 0 0 auto;
}
.spec p { margin: 0; font-size: .94rem; color: var(--muted); }
.spec b {
  display: block;
  font-family: var(--gothic);
  color: var(--green);
  font-size: 1.02rem;
  margin-bottom: .2rem;
}
.note-line {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 2.6rem 0 0;
}

/* ============================================
   4. はじめに（額装したエッセイ）
   ============================================ */
.essay {
  max-width: 46rem;
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(1.8rem, 5vw, 3rem);
  box-shadow: var(--shadow-card);
}
.essay__body { font-size: 1.02rem; color: var(--ink); margin: 0 0 1.8rem; }
.essay__body b { color: var(--orange-pale); font-weight: 700; }
.inline-link { color: var(--orange-pale); text-decoration: none; border-bottom: 1px solid var(--orange); }
.inline-link:hover { border-bottom-width: 2px; }
.pullquote {
  font-family: var(--mincho);
  font-weight: 600;
  color: var(--green);
  font-size: clamp(1.3rem, 3.8vw, 1.9rem);
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
  margin: 2.4rem 0;
  padding: 2rem 0;
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
}
.essay__sign {
  text-align: right;
  font-family: var(--mincho);
  color: var(--green);
  letter-spacing: .1em;
  margin: 2rem 0 0;
}

/* ============================================
   5. 誌面から（料理・囲みカード）
   ============================================ */
.gallery { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.dish {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.dish img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.dish figcaption {
  padding: 1rem 1.2rem 1.2rem;
  font-size: .86rem;
  color: var(--muted);
}
.dish__no {
  font-family: var(--serif-en);
  color: var(--orange);
  font-size: .9rem;
  letter-spacing: .1em;
}
.dish b {
  display: block;
  font-family: var(--mincho);
  font-weight: 600;
  color: var(--green);
  font-size: 1.05rem;
  margin: .2rem 0 .3rem;
}

/* ============================================
   アプリ紹介バンド
   ============================================ */
.appband {
  background: linear-gradient(120deg, #24493b 0%, #1a2e26 60%, #16211c 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
}
.appband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  flex-wrap: wrap;
}
.appband__eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--orange);
  font-size: .88rem;
  margin: 0 0 .4rem;
}
.appband__title {
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--green);
  font-size: clamp(1.3rem, 3.8vw, 1.7rem);
  margin: 0 0 .5rem;
}
.appband__lead { margin: 0; color: var(--muted); font-size: .93rem; }
.appband .btn--primary { flex: 0 0 auto; }
@media (max-width: 640px) {
  .appband__inner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================
   6. 著者（額装）
   ============================================ */
.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(1.8rem, 5vw, 2.8rem);
  box-shadow: var(--shadow-card);
}
@media (min-width: 620px) { .author { flex-direction: row; text-align: left; gap: 2.4rem; align-items: center; } }
.author__photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 3px solid var(--panel-2);
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.7), 0 0 0 1px var(--rule);
  flex: 0 0 auto;
}
.author__name {
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--green);
  font-size: 1.6rem;
  letter-spacing: .08em;
  margin: 0 0 .3rem;
}
.author__role { font-size: .84rem; color: var(--orange-pale); font-weight: 700; margin: 0 0 1rem; letter-spacing: .02em; }
.author__bio { margin: 0 0 1.2rem; color: var(--muted); font-size: .96rem; }
.link-arrow { color: var(--orange-pale); font-weight: 700; text-decoration: none; font-size: .95rem; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ============================================
   7. FAQ（囲みカード）
   ============================================ */
.faq {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.05rem 1.4rem;
  margin-bottom: .8rem;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  position: absolute; right: 0; top: 0;
  color: var(--orange); font-weight: 700;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: .9rem 0 .2rem; color: var(--muted); font-size: .94rem; }

/* ============================================
   8. CTA
   ============================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(125% 130% at 50% -20%, #2f5b4a 0%, #1b382e 46%, #0f1813 100%);
  color: var(--white);
  padding-block: var(--space-section);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cta .container { position: relative; z-index: 1; }
.cta__bubble {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-size: .88rem;
  color: #fff;
  margin: 0 0 1.8rem;
}
.cta__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.45;
  margin: 0 0 1rem;
  color: #fbf5ea;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.cta__lead { color: rgba(255,255,255,.85); margin: 0 0 2.4rem; }
.cta__sub {
  margin-top: 1.3rem;
  font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: .4rem .6rem;
  justify-content: center; align-items: center;
}
.cta__sub a { color: var(--orange-pale); text-decoration: underline; text-underline-offset: 3px; }
.cta__sub a:hover { color: #fff; }
.cta__dot { opacity: .4; }

/* ============================================
   フッター
   ============================================ */
.footer { background: var(--tint); padding-block: 2.4rem; border-top: 1px solid var(--rule); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem;
  justify-content: space-between; align-items: center;
}
.footer__copy { margin: 0; font-size: .84rem; color: var(--muted); }
.footer__nav { display: flex; gap: 1.4rem; }
.footer__nav a { font-size: .84rem; color: var(--ink); text-decoration: none; }
.footer__nav a:hover { color: var(--orange); }

/* ============================================
   スクロールでふわっと表示
   ============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================
   アクセシビリティ
   ============================================ */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
