/* 静かな革命 — 第1期「A 朝の森」（決定ログ 2026-10-10）
   紙の地に、苔と樹皮の色。箱で囲まず、細い線で区切る。
   葉の絵には頼らず、色と余白で森を感じさせる。黒い背景は使わない。 */

:root {
  --bg: #F2EEE3;             /* 紙 */
  --bg-raised: #EAE4D5;      /* 紙の少し深いところ（プレーヤー・フッター） */
  --line: #DCD5C4;           /* 薄い土 */
  --text: #2B2A26;           /* 墨 */
  --muted: #4A473F;          /* 灰茶 */
  --muted-small: #5B574D;    /* 灰茶（小さな文字） */
  --moss: #3E5641;           /* 苔：見出し・線・リンク */
  --moss-deep: #22301F;      /* 深い苔：見出しの濃い色 */
  --bark: #6B5847;           /* 樹皮 */
  --sun: #C9A35A;            /* 木漏れ日：印や細い飾りだけ。文字には使わない */
  --marketing: #2E7F77;      /* 青緑（教養シリーズの各部の印） */
  --branding: #A9643A;       /* アンバー／テラコッタ */
  --philosophy: #574C97;     /* 深紫／インディゴ */
  --kari: #8A5A00;
  --kari-line: #C9A35A;
  --kari-bg: rgba(201, 163, 90, 0.14);
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --display: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --measure: 40em;              /* 本文の幅：全角でおよそ38字 */
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.95;
  letter-spacing: 0.05em;
  font-feature-settings: 'palt' 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
}

a { color: var(--moss); text-decoration-color: rgba(62, 86, 65, 0.35); text-underline-offset: 0.3em; }
a:hover { text-decoration-color: var(--moss); }

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--moss-deep);
}

/* ---------- プレビュー帯 ---------- */
.preview-bar {
  font-size: 0.875rem;
  text-align: center;
  padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 1rem 0.35rem;
  background: #E8DFC6;
  color: var(--kari);
  letter-spacing: 0.08em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--moss-deep);
  text-decoration: none;
}
.site-logo { width: 52px; height: 52px; flex: none; }

.menu-toggle {
  font: inherit;
  font-size: 1rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1.25rem;
  cursor: pointer;
}

.site-nav { width: 100%; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.site-nav li { border-top: 1px solid var(--line); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;            /* 押せる範囲を縦44px以上に */
  padding: 0.25rem 0;
  font-size: 1rem;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover { color: var(--moss); }
.site-nav a[aria-current='page'] { color: var(--moss-deep); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 0.5em; }

@media (min-width: 720px) {
  .site-header { padding-block: 1rem; }
  .site-logo { width: 64px; height: 64px; }
  .site-name { font-size: 1.625rem; gap: 1rem; }
}
@media (min-width: 1240px) {
  .menu-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; gap: 1.5rem; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav a { min-height: 44px; padding: 0; font-size: 1rem; }
}

/* ---------- 本文 ---------- */
main { padding: 0 clamp(1.25rem, 5vw, 3rem); }

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: clamp(3.5rem, 10vw, 6rem);
}
/* 節の大きな切れ目：線の植物（divider.svg）。節と節のあいだ、フッターの上 */
.section + .section { position: relative; }
.section + .section::before,
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 34rem);
  aspect-ratio: 20 / 1;
  background: url(/assets/marks/divider.svg) center / contain no-repeat;
}
.section--wide { max-width: 60rem; }

.eyebrow {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin: 0 0 0.75rem;
}

.page-title { font-size: clamp(1.9rem, 7vw, 2.75rem); margin: 0 0 1.5rem; }
.lead { color: var(--muted); }
.eyebrow { color: var(--moss); }

.section h2 { font-size: clamp(1.25rem, 4.5vw, 1.5rem); margin: 3.5rem 0 1.25rem; }
.section h2:first-child { margin-top: 0; }
.section h3 { font-size: 1.1rem; margin: 2.5rem 0 0.75rem; }
.section p { margin: 0 0 1.4em; }

/* 読み上げの「間」 */
.pause {
  border: 0;
  height: 4rem;
  width: 1px;
  margin: 2.5rem auto;
  background: linear-gradient(var(--line), var(--moss), var(--line));
  opacity: 0.7;
}

/* ---------- トップ ---------- */
.hero {
  min-height: 60vh;
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  margin: 0 auto;
  padding-block: 4rem;
}
.hero-line {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 7vw, 2.75rem);
  line-height: 1.75;
  letter-spacing: 0.1em;
  margin: 0;
}
.hero-line > span { display: block; }
.phrase { display: inline-block; }
/* 日本語の改行を文節で（対応するブラウザのみ） */
h1, h2, h3, .hero-sub, .entrance-text { word-break: auto-phrase; }
.hero-sub {
  margin: 2.5rem 0 0;
  color: var(--muted);
  line-height: 2.1;
}
.hero-stem {
  width: 1px;
  height: 5rem;
  margin-top: 3rem;
  background: linear-gradient(var(--moss), transparent);
}

.entrances {
  display: grid;
  gap: 2.5rem;
  max-width: 60rem;
  margin: 0 auto 6rem;
}
@media (min-width: 720px) { .entrances { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
/* 三つの入口は、上に苔色の細い線を一本引くだけ */
.entrance {
  display: block;
  border-top: 1px solid var(--moss);
  padding: 1.75rem 0 0;
  color: inherit;
  text-decoration: none;
}
.entrance:hover .entrance-name { color: var(--moss); }
.entrance-name {
  font-family: var(--display);
  color: var(--moss-deep);
  transition: color 0.3s;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  margin: 0 0 0.75rem;
}
.entrance-text { color: var(--muted); font-size: 0.95rem; line-height: 1.9; margin: 0; }

/* ---------- 道（問いから、旗へ） ---------- */
.path { list-style: none; margin: 2rem 0; padding: 0; position: relative; }
.path::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 1px;
  background: var(--line);
}
.path li { position: relative; padding-left: 2rem; margin-bottom: 1.75rem; }
.path li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.75rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--moss);
}
/* 道の終点（Soul FLAG）にだけ、木漏れ日の印 */
.path li:nth-child(4):last-child::before { background: var(--sun); border-color: var(--sun); }
.path-name { font-family: var(--display); font-size: 1.15rem; display: block; color: var(--moss-deep); }
.path-text { color: var(--muted); font-size: 0.95rem; line-height: 1.9; display: block; }

/* ---------- カード・一覧 ---------- */
.cards { display: grid; gap: 2.5rem; margin: 2.5rem 0; }
.card {
  border-top: 1px solid var(--accent, var(--moss));
  padding: 1.5rem 0 0.5rem;
}
.card h3 { margin: 0 0 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card-meta { font-size: 0.875rem; color: var(--muted-small); }
.accent-marketing { --accent: var(--marketing); }
.accent-branding { --accent: var(--branding); }
.accent-philosophy { --accent: var(--philosophy); }

.status {
  display: inline-block;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.75rem;
  color: var(--muted-small);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* 値段 */
.price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.price-table th, .price-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.price-table tfoot td, .price-table tfoot th { font-family: var(--display); font-size: 1.1rem; border-bottom: 0; }
.price-note { font-size: 0.9rem; color: var(--muted); }
.price-big { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.08em; color: var(--moss-deep); }

/* 進み方 */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.steps li { border: 1px solid var(--line); padding: 0.3rem 0.9rem; font-size: 0.95rem; }
.steps li + li::before { content: '→'; color: var(--muted); margin-right: 0.9rem; margin-left: -0.5rem; }
.steps li + li { border-left: 0; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--display); color: var(--moss-deep); }
.faq summary::marker { color: var(--moss); }
.faq details > *:not(summary) { margin-top: 1rem; }

/* ---------- ボタン ---------- */
.actions { margin: 2.5rem 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.button {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 0.12em;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--moss);
  color: var(--moss-deep);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.button:hover { background: var(--moss); color: var(--bg); }

/* ---------- 仮置き（はっきり見えるように） ---------- */
.kari-tag { color: var(--kari); font-weight: 600; letter-spacing: 0; }
.kari {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  border: 1px dashed var(--kari-line);
  background: var(--kari-bg);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.kari-label { color: var(--text); }
.kari-need { color: var(--kari); font-size: 0.875rem; flex-basis: 100%; }
.kari-need::before { content: '必要：'; }
.kari--inline {
  display: inline;
  padding: 0.1rem 0.35rem;
  margin: 0;
  font-size: inherit;
  border-style: dashed;
}
.button--kari {
  border: 1px dashed var(--kari-line);
  color: var(--text);
  background: var(--kari-bg);
  cursor: not-allowed;
}
.button--kari:hover { background: var(--kari-bg); color: var(--text); }
.button--kari + .kari-need { display: block; }

.media-kari {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  border: 1px dashed var(--kari-line);
  background: var(--kari-bg);
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}
.media-kari .kari-need { flex-basis: auto; }
.media-kari--video { aspect-ratio: 16 / 9; }

/* ---------- 音声プレーヤー ---------- */
.player {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-raised);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.75rem;
}
.player[data-src=''] { border: 1px dashed var(--kari-line); background: var(--kari-bg); }
.player-btn {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--moss);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.player-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.player-icon {
  width: 0;
  height: 0;
  border-left: 0.7rem solid var(--bg);
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  margin-left: 0.2rem;
}
.player.is-playing .player-icon {
  width: 0.7rem;
  height: 0.8rem;
  border: 0;
  margin: 0;
  border-left: 0.22rem solid var(--bg);
  border-right: 0.22rem solid var(--bg);
}
.player-body { flex: 1; min-width: 0; }
/* サムネイル：プレーヤーの上に置き、角をプレーヤーとそろえる */
.player-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 1.25rem 0 0.75rem;
  background: var(--bg-raised);
}
.player--with-thumb { margin-top: 0; }
.player-title { font-size: 0.95rem; line-height: 1.6; color: var(--moss-deep); }
.player-btn:not(:disabled):hover { background: var(--moss-deep); }
.player-bar { height: 2px; background: var(--line); margin: 0.6rem 0 0.4rem; cursor: pointer; position: relative; }
.player-bar::after { content: ''; position: absolute; inset: -0.6rem 0; }
.player-progress { height: 100%; width: 0; background: var(--moss); }
.player-meta { font-size: 0.875rem; color: var(--muted-small); display: flex; flex-wrap: wrap; gap: 0 0.75rem; line-height: 1.6; }
.player-meta .kari-need { flex-basis: auto; }
.player:not([data-src='']) .kari-tag,
.player:not([data-src='']) .kari-need { display: none; }

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  padding: 4rem clamp(1.25rem, 5vw, 3rem) 3rem;
  /* 地層 */
  background:
    repeating-linear-gradient(to bottom, transparent 0 22px, rgba(62, 86, 65, 0.05) 22px 23px),
    var(--bg-raised);
}
.newsletter { max-width: var(--measure); margin: 0 auto 4rem; }
.newsletter h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.footer-line { text-align: center; font-family: var(--display); color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.newsletter-privacy { font-size: 0.875rem; margin: 1rem 0 0; }
.newsletter-privacy a { color: var(--muted); }
.footer-links { list-style: none; margin: 1.5rem 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; font-size: 0.875rem; }
.footer-links a { color: var(--muted); }
.footer-small { text-align: center; font-size: 0.875rem; color: var(--muted-small); letter-spacing: 0.3em; margin: 0; }

/* 部ごとのアクセントを、節の見出しにも */
.section[class*='accent-'] .eyebrow { color: var(--accent); }
.section[class*='accent-'] > h2 { border-left: 1px solid var(--accent); padding-left: 1rem; }
.eyebrow + h2 { margin-top: 0 !important; }

/* 表（はじまりの対話の形式、法務ページ） */
.info-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; line-height: 1.8; }
.info-table th, .info-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { font-weight: 500; color: var(--muted); width: 8.5em; padding-right: 1rem; }
.info-table td { overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .legal .info-table th, .legal .info-table td { display: block; width: auto; }
  .legal .info-table th { border-bottom: 0; padding-bottom: 0; }
}
.legal h2 { font-size: 1.1rem !important; margin-top: 2.5rem !important; }
.legal ul { padding-left: 1.25rem; }

/* aboutの名前の見出しと、その下の小さな肩書き */
.section h2.person-name { margin-bottom: 0.25rem; }
.person-role { font-size: 0.875rem; color: var(--muted-small); letter-spacing: 0.15em; margin: 0 0 0.5rem !important; }

/* 海野裕の写真（/about）：4:5、角はプレーヤーとそろえる。顔が切れないよう上寄せで合わせる。
   写真の地の薄い灰色が紙から浮かないよう、少し明るくして白に寄せてから、乗算で紙になじませる
   （明るくする分が、乗算で肌が沈む分をおおむね打ち消す。画像ファイルには手を加えない） */
.portrait {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 12px;
  margin: 1.5rem 0 1.25rem;
  filter: brightness(1.09);
  mix-blend-mode: multiply;
}

/* Spotifyの埋め込み */
.spotify-embed { display: block; width: 100%; border: 0; border-radius: 12px; margin: 1rem 0 0.5rem; background: var(--bg-raised); }

/* 見出しの前の印（線の植物）。描かれた部分が文字の高さとそろう大きさ */
.mark {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin: -0.25em 0.15em -0.25em -0.2em;
  vertical-align: -0.3em;
}

/* 番組カード：左に印、右に番組名・タグ・副題・紹介文。Spotifyの埋め込みは下に全幅で */
.card--show {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
}
.show-mark { display: block; width: 40px; height: 40px; }
.show-body > :last-child { margin-bottom: 0; }
.card--show > .spotify-embed { grid-column: 1 / -1; }
/* 番組カードの中のプレーヤーも、Spotifyの埋め込みと同じく下に全幅で */
.card--show > .player { grid-column: 1 / -1; margin-bottom: 0.5rem; }
@media (max-width: 559px) {
  .card--show { grid-template-columns: 32px minmax(0, 1fr); column-gap: 0.85rem; }
  .show-mark { width: 32px; height: 32px; }
}

/* 途中で折り返さない語（所在地の番地・建物名など） */
.nowrap { white-space: nowrap; }

/* プレーヤーのすぐ下の注記：プレーヤーに寄せ、最後の行が一、二文字だけにならないよう折り返す */
.player + .card-meta { margin-top: -1rem; text-wrap: pretty; }
