/* =========================================================
   カラーパレット
   ここの値を変えるとサイト全体の色が変わります
   ========================================================= */
:root {
  --pale-blue:   #B8D4E3;  /* メイン    ペールブルー   */
  --misty-white: #F5F7F9;  /* サブ      ミスティホワイト */
  --soft-gray:   #C7CCD1;  /* アクセント ソフトグレー   */
  --dusty-blue:  #8FA8B8;  /* アクセント ダスティブルー */
  --pearl-white: #F4F1EA;  /* アクセント パールホワイト */
  --cta:         #7B9ACC;  /* CTA・リンク コーンフラワーブルー */

  /* --cta を白文字の上に敷くと明るすぎて読めないため（コントラスト比 2.9:1）、
     ボタンの塗りとリンク文字には同系統を暗くした値を使用しています（5.2:1）。
     見出しの装飾や罫線などには --cta をそのまま使っています。 */
  --cta-deep:    #4A6DA7;
  --cta-darker:  #3C5C90;

  /* ダスティブルー #8FA8B8 は「強調テキスト・小見出し」の色だが、そのまま文字に
     すると白背景で 2.5:1、ミスティホワイト上で 2.3:1 しかなく読めない。
     文字に使うときだけ、同じ色みを暗くしたこの値を使う（白5.08:1／ミスティ4.73:1／
     パールホワイト4.50:1）。罫線・区切り・地色には #8FA8B8 をそのまま使う。 */
  --label:       #5B7183;

  --ink:         #2E3A45;  /* 本文 */
  --ink-muted:   #5F6E7A;  /* 補足文 */

  --container:   1040px;
  --radius:      14px;

  --font-serif:  "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho",
                 "YuMincho", "Noto Serif JP", serif;
  --font-sans:   "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP",
                 "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* パレットが淡色前提のため、ライトテーマに固定しています */
html { color-scheme: light; }

/* ========================= ベース ========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

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

/* 日本語を文節単位で折り返す（「パーソナルカ／ラー診断」のような
   語中での改行を防ぎます）。未対応ブラウザでは通常の折り返しになります。 */
.empathy-list li,
.empathy-bridge,
.profile-bio {
  word-break: auto-phrase;
}

/* スクリーンリーダー・検索エンジンにだけ伝える見出し（見た目には出しません） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section { padding: clamp(4.5rem, 11vw, 7.5rem) 0; }
.section-tinted { background: var(--misty-white); }

.section-eyebrow {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--label);
}

.section-title {
  margin: 0 0 clamp(2.5rem, 6vw, 3.75rem);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3.6vw, 1.875rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.08em;
  text-align: center;
}

/* スマートフォンでのみ改行させる */
.br-sp { display: none; }
@media (max-width: 640px) { .br-sp { display: inline; } }

/* パソコンでのみ改行させる（文末が一行に孤立するのを防ぐため） */
.br-pc { display: inline; }
@media (max-width: 640px) { .br-pc { display: none; } }

/* ========================= ボタン ========================= */
.btn {
  display: inline-block;
  padding: 0.85em 2.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cta-deep);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: var(--cta-darker);
  box-shadow: 0 10px 24px rgba(74, 109, 167, 0.22);
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 2px solid var(--cta-deep);
  outline-offset: 3px;
}
.btn-sm { padding: 0.55em 1.5em; font-size: 0.8125rem; }
.btn-lg { padding: 1.05em 3.2em; font-size: 1rem; }
/* 副次的な行動（Google Play など）向けの、線だけの控えめなボタン */
.btn-outline {
  background: transparent;
  color: var(--cta-deep);
  border-color: var(--cta-deep);
}
.btn-outline:hover {
  background: var(--cta-deep);
  color: #fff;
}

/* ========================= ヘッダー ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--misty-white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}

/* ========================= ① ヒーロー ========================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(86vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, var(--pale-blue) 0%, transparent 62%),
    linear-gradient(180deg, var(--misty-white) 0%, #fff 100%);
}

/* 背景に浮かぶ、やわらかな円（ゆっくり漂って呼吸するように動きます） */
.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(120vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 241, 234, 0.85) 0%, transparent 66%);
  pointer-events: none;
  animation: heroDriftA 22s ease-in-out infinite alternate;
}
/* もう一つ、淡いブルーの光を右下からそっと */
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: min(85vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 212, 227, 0.5) 0%, transparent 68%);
  pointer-events: none;
  animation: heroDriftB 28s ease-in-out infinite alternate;
}
/* 中央の円は translateX(-50%) で中央寄せしたまま、ゆっくり漂う */
@keyframes heroDriftA {
  from { transform: translateX(-50%) translate(0, 0) scale(1); opacity: 0.9; }
  to   { transform: translateX(-50%) translate(3%, 4%) scale(1.12); opacity: 1; }
}
@keyframes heroDriftB {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to   { transform: translate(-7%, -6%) scale(1.16); opacity: 1; }
}
/* 背景の光（円）は最背面へ */
.hero::before, .hero::after { z-index: 0; }
/* 動画カードとボタンは最前面 */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-actions { display: flex; justify-content: center; }

/* 動画カード。動画は正方形（544×544）で書き出されているため、枠も正方形にして
   トリミングなし（object-fit: cover でも実質そのまま収まります）。
   チャンネル名・キャッチコピーは動画自体に焼き込まれているので、
   HTML側の見出しは重ねません。 */
.hero-video-frame {
  width: min(84vw, 460px);
  aspect-ratio: 1 / 1;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(46, 58, 69, 0.14);
  background: var(--misty-white); /* 動画読み込み前の背景色 */
}
.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ヒーロー内の登場演出：先に動画カード、少し遅れてボタン */
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.reveal-hero { animation: heroCardIn 0.9s ease both; }
.reveal-hero-delay { animation-delay: 0.4s; }

/* ========================= ② 共感 ========================= */
.empathy-list {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.empathy-list li {
  position: relative;
  padding: 1.5rem 0 1.5rem 2.25rem;
  border-bottom: 1px solid var(--soft-gray);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.empathy-list li:first-child { border-top: 1px solid var(--soft-gray); }

/* 行頭のちいさな円 */
.empathy-list li::before {
  content: "";
  position: absolute;
  top: 2.05rem;
  left: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pale-blue);
}

.empathy-bridge {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.6vw, 1.1875rem);
  line-height: 2.3;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* ========================= ③ 内容 ========================= */
.section-lead {
  max-width: 30rem;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 2.2;
  color: var(--ink-muted);
  word-break: auto-phrase;
}

/* Editorial radio — static layout first; JS adds measured choreography. */
:root { --header-height: 68px; }
.radio-section { background: #f4f6f7; padding-block: 72px; overflow: clip; }
.radio-stage { position: relative; }
.radio-stage-head { text-align: center; position: relative; z-index: 6; }
.radio-stage-head .section-eyebrow { margin-bottom: 8px; }
.radio-stage-head .section-title { margin-bottom: 8px; }
.radio-stage-lead { margin: 0; color: var(--ink-muted); font-size: 13px; letter-spacing: .12em; }
.radio-stage-body { width: min(calc(100% - 48px), 1180px); margin: 28px auto 0; }
.radio-figure { width: min(72%, 520px); margin: 0 auto 32px; }
.radio-figure img { width: 100%; height: auto; }
.radio-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.radio-card { position: relative; background: #fffefa; border: 1px solid #d5d9d9; border-radius: 5px; padding: 25px 22px; min-width: 0; box-shadow: 0 12px 28px #34435409; text-align: left; }
.radio-card::before { content: ''; position: absolute; inset: 7px; border: 1px solid #e1e3df; pointer-events: none; }
.radio-card-num { display: block; color: #657788; font: 12px Georgia,serif; letter-spacing: .12em; }
.radio-card-word { display: block; margin: 18px 0 18px; font: italic clamp(23px,2.8vw,32px)/1.1 Georgia,serif; color: #738999; letter-spacing: -.04em; }
.radio-card-rule { display: block; width: 34px; height: 1px; background: #b6a787; margin-bottom: 17px; }
.radio-card h3 { margin: 0 0 8px; font-family: var(--font-serif); line-height: 1.6; font-size: 17px; font-weight: 500; letter-spacing: .035em; white-space: nowrap; }
.radio-card p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-muted); }
.radio-card--color { background: #edf3f7; }
.radio-card--journal { background: #f2f1ed; }
.radio-card--talk { background: #f0f4f4; }
.radio-scroll-cue { display:none; }
.radio-track.is-animated { height: var(--radio-track-height); }
.radio-track.is-animated .radio-stage { position:sticky; top:var(--radio-sticky-top,var(--header-height)); height:var(--stage-height); display:flex; flex-direction:column; padding:22px 0 18px; overflow:clip; }
.radio-track.is-animated .radio-stage-head { flex:none; }
.radio-track.is-animated .radio-stage-head .section-title { font-size:clamp(22px,2.5vw,30px); line-height:1.5; }
.radio-track.is-animated .radio-stage-body { position:relative; flex:1; min-height:0; margin-top:14px; }
.radio-track.is-animated .radio-figure { position:absolute; left:50%; top:0; margin:0; width:var(--radio-width); z-index:5; transform-origin:center; will-change:transform; }
.radio-track.is-animated .radio-cards { position:absolute; inset:0; display:block; }
.radio-track.is-animated .radio-card { position:absolute; left:50%; top:0; width:var(--card-width); height:var(--card-height); opacity:0; will-change:transform; transform-origin:center; }
.radio-track.is-animated .radio-scroll-cue { display:flex; flex:none; align-items:center; justify-content:center; gap:12px; margin:10px 0 0; font-size:9px; color:#657788; letter-spacing:.22em; }
.radio-scroll-cue span { width:30px; height:1px; background:#a4b4c0; }
@media(max-width:899px) {
 .radio-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .radio-stage-body { width:calc(100% - 36px); }
 .radio-card { padding:22px 18px; }
 .radio-card-word { font-size:28px; }
 .radio-track.is-animated .radio-card { padding:17px 15px; }
 .radio-track.is-animated .radio-card-word { font-size:26px; margin:13px 0 14px; }
 .radio-track.is-animated .radio-card h3 { font-size:15px; }
 .radio-track.is-animated .radio-card p { font-size:11px; }
 .radio-track.is-animated .radio-card-rule { margin-bottom:12px; }
 .radio-track.is-animated .radio-stage-lead { font-size:12px; }
}
@media(max-width:359px) { .radio-card h3 { font-size:14px; } .radio-card-word { font-size:24px; } .radio-card { padding:20px 13px; } }

/* ========================= プロフィール ========================= */
.profile { text-align: center; }

.profile-photo {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
}

/* 音がひろがっていくような、二重のやわらかいリング */
.profile-photo .ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.profile-photo .ring-1 {
  inset: 0;
  background: var(--pale-blue);
  opacity: 0.3;
}
.profile-photo .ring-2 {
  inset: 14px;
  background: var(--pearl-white);
  opacity: 0.8;
}

.profile-photo img {
  position: relative;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

.profile-role {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--label);
}

.profile-name {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
}

.profile-bio {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: 0.875rem;
  line-height: 2.15;
  color: var(--ink-muted);
}

/* Threadsへのリンク */
.link-threads {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--pale-blue);
  color: var(--cta-deep);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.3s ease;
}
.link-threads::after {
  content: "↗";
  margin-left: 0.4em;
  font-size: 0.85em;
}
.link-threads:hover { border-color: var(--cta-deep); }

/* ========================= 音の波形 ========================= */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  margin: 0 0 1.75rem;
}
.wave i {
  width: 3px;
  border-radius: 99px;
  background: var(--pale-blue);
}
/* 中央ほど高く、両端へなだらかに落とす */
.wave i:nth-child(1)  { height: 20%; }
.wave i:nth-child(2)  { height: 42%; background: var(--dusty-blue); }
.wave i:nth-child(3)  { height: 70%; }
.wave i:nth-child(4)  { height: 96%; background: var(--cta); }
.wave i:nth-child(5)  { height: 58%; background: var(--dusty-blue); }
.wave i:nth-child(6)  { height: 34%; }
.wave i:nth-child(7)  { height: 78%; background: var(--dusty-blue); }
.wave i:nth-child(8)  { height: 100%; background: var(--cta); }
.wave i:nth-child(9)  { height: 46%; background: var(--dusty-blue); }
.wave i:nth-child(10) { height: 26%; }
.wave i:nth-child(11) { height: 62%; background: var(--dusty-blue); }
.wave i:nth-child(12) { height: 30%; }
.wave i:nth-child(13) { height: 18%; background: var(--soft-gray); }

/* Join guide — opaque paper panels, editorial imagery, native-scroll navigation. */
.course-section { padding:80px 0; background:#fff; overflow:clip; }
.course-intro { text-align:center; margin-bottom:52px; }
.course-intro .section-title { margin-bottom:20px; }
.course-quick-link { color:var(--cta-deep); font-size:13px; text-underline-offset:6px; }
.course-quick-link span { margin-left:8px; }
.course-stage { width:min(calc(100% - 64px),1160px); margin:auto; }
.course-index { position:relative; z-index:20; margin:0 0 20px; }
.course-index ol { list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding:0; margin:0; }
.course-index-btn { display:flex; align-items:center; gap:12px; padding:15px 14px; border-bottom:1px solid #dce2e6; color:var(--ink-muted); text-decoration:none; font-size:12px; white-space:nowrap; transition:color .2s,background .2s,border-color .2s; }
.course-index-num { font:16px Georgia,serif; color:#748a9a; }
.course-index-btn[aria-current="true"] { background:#eef3f6; border-color:#657f99; color:#354d62; }
.course-index-btn:hover { color:var(--cta-deep); background:#f4f6f8; }
.course-index-btn:focus-visible { outline:2px solid var(--cta-deep); outline-offset:3px; }
.course-panels { display:flex; flex-direction:column; gap:28px; }
.course-panel { display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:clamp(28px,4vw,58px); align-items:center; padding:22px 40px 22px 22px; background:#fafaf8; border:1px solid #d5dde2; border-radius:12px; position:relative; scroll-margin-top:calc(var(--header-height) + 22px); }
.course-panel:nth-child(2) { background:#f5f7f8; }
.course-panel:nth-child(3) { background:#f5f6f3; }
.course-panel:nth-child(4) { background:#f7f5f1; }
.course-panel-visual { position:relative; height:420px; min-width:0; overflow:hidden; border-radius:6px; background:#e8eef1; }
.course-visual-radio,.course-visual-app { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; padding:24px; background:linear-gradient(145deg,#e4edf2,#f2f3ef); }
.course-visual-radio img { width:100%; }
.visual-kicker { font-size:9px; letter-spacing:.18em; color:#52697b; text-align:center; }
.visual-caption { font-family:var(--font-serif); font-size:12px; letter-spacing:.06em; color:#52697b; text-align:center; }
.course-visual-photo > img { width:100%; height:100%; object-fit:cover; }
.photo-caption { position:absolute; bottom:15px; left:14px; right:14px; background:#fffefbea; padding:9px 12px; font:italic 15px Georgia,serif; color:#4d6578; text-align:center; }
.course-visual-app { gap:16px; }
.editorial-phone { width:180px; padding:17px 11px 14px; border:1px solid #78858b; border-radius:25px; background:#fdfdfb; box-shadow:8px 14px 25px #283f5520, inset 0 0 0 3px #e0e5e6; transform:rotate(-5deg); }
.phone-speaker { display:block; width:32px; height:4px; border-radius:4px; background:#435361; margin:0 auto 13px; }
.editorial-phone img { border-radius:5px; aspect-ratio:1; width:100%; object-fit:cover; }
.phone-channel { display:block; font-family:var(--font-serif); font-size:10px; margin-top:12px; text-align:center; }
.phone-wave { display:flex; align-items:center; justify-content:center; gap:4px; height:26px; margin:7px 0; }
.phone-wave i { width:2px; height:8px; background:#93a8b8; }
.phone-wave i:nth-child(3n) { height:22px; } .phone-wave i:nth-child(2n) { height:15px; }
.phone-player { display:flex; align-items:center; justify-content:center; gap:25px; color:#6b8297; font-size:12px; }
.phone-play { display:grid; place-items:center; background:#5d7996; border-radius:50%; width:27px; height:27px; font-size:10px; color:white; }
.course-panel-body { min-width:0; padding-block:14px; }
.course-panel-num { margin:0 0 18px; color:#687f91; font:italic 35px Georgia,serif; }
.course-panel-title { margin:0 0 20px; font:500 clamp(22px,2.3vw,29px)/1.8 var(--font-serif); letter-spacing:.045em; }
.course-panel-text { margin:0 0 24px; font-size:14px; line-height:2.1; color:var(--ink-muted); word-break:auto-phrase; }
.course-panel-note,.course-panel-note-link { font-size:12px; line-height:1.8; color:var(--ink-muted); margin:17px 0 0; }
.course-panel-note-link { display:inline-block; color:var(--cta-deep); text-underline-offset:4px; }
.course-panel-highlight { margin:0 0 22px; padding:9px 0 9px 13px; border-left:2px solid #9caebb; color:#425c72; font-size:13px; }
.course-panel-actions { display:flex; flex-wrap:wrap; gap:10px; }
.course-panel .btn { font-size:13px; padding:13px 23px; letter-spacing:.04em; }
.course-track.is-animated { height:var(--course-track-height); }
.course-track.is-animated .course-stage { position:sticky; top:var(--header-height); height:var(--stage-height); display:flex; flex-direction:column; justify-content:center; padding:18px 0; }
.course-track.is-animated .course-index { flex:none; margin-bottom:14px; }
.course-track.is-animated .course-panels { position:relative; display:block; height:var(--panel-height); flex:none; overflow:clip; }
.course-track.is-animated .course-panel { position:absolute; inset:0; height:100%; overflow:clip; will-change:transform; box-shadow:0 18px 32px #233c5010; }
.course-track.is-animated .course-panel-visual { height:100%; }
@media(max-width:899px) {
 .course-stage { width:calc(100% - 36px); }
 .course-panel { grid-template-columns:1fr; gap:22px; padding:16px 16px 28px; }
 .course-panel-visual { height:260px; }
 .course-panel-body { padding:0 8px; }
 .course-panel-title { font-size:23px; }
 .course-panel-num { font-size:28px; margin-bottom:12px; }
 .course-panel-text { font-size:14px; }
 .course-index ol { grid-template-columns:repeat(2,1fr); }
 .course-index-btn { padding:12px 9px; font-size:11px; gap:8px; }
 .course-visual-radio { gap:10px; }
 .course-visual-radio img { width:min(100%,300px); }
 .course-visual-app { flex-direction:row; gap:20px; }
 .course-visual-app .visual-kicker { position:absolute; top:13px; left:0; width:100%; font-size:8px; }
 .course-visual-app .visual-caption { width:84px; text-align:left; }
 .editorial-phone { flex:none; width:128px; padding:12px 8px 10px; border-radius:20px; margin-top:13px; }
 .phone-speaker { margin-bottom:8px; }
 .phone-channel { font-size:8px; margin-top:7px; }
 .phone-wave { height:16px; margin:4px 0; }
 .phone-player { gap:18px; font-size:9px; }
 .phone-play { width:20px; height:20px; font-size:8px; }
 .course-panel .btn { padding:12px 18px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .course-index-btn { transition:none; } }

/* ========================= フッター ========================= */
.site-footer {
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid var(--misty-white);
}
.footer-name {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  justify-content: center;
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--cta-deep); }
.copyright {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ========================= スクロールでふわっと表示 =========================
   .reveal は JavaScript が付与します。JSが動かない環境では
   最初から表示されたまま（内容が消えない）になるよう設計しています。 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  /* 動きを控える設定の方には、アニメーションを無効化します */
  .reveal { opacity: 1; transform: none; transition: none; }
  /* ヒーローの動きも止めます。動画は読み込まれず、poster画像が
     静止したまま表示されます（JS側で読み込み自体をスキップします） */
  .hero::before, .hero::after { animation: none; }
  .reveal-hero { animation: none; }

}

/* Keep the existing header readable on narrow phones. */
@media(max-width:480px) {
 .header-inner { gap:10px; }
 .logo { font-size:14px; letter-spacing:.06em; white-space:nowrap; }
 .site-header .btn-sm { flex:none; white-space:nowrap; padding:8px 15px; font-size:11px; }
}
@media(max-width:359px) {
 .radio-cards { grid-template-columns:1fr; }
 .radio-card { padding:25px; }
 .radio-card-word { font-size:30px; }
 .radio-card h3 { font-size:17px; }
}

/* Compact phones retain the same reveal; natural-height join cards slide over one another. */
.course-track.is-stacked .course-panels { display:block; padding-bottom:24px; }
.course-track.is-stacked .course-panel { position:sticky; top:var(--stack-top); margin-bottom:32px; box-shadow:0 -10px 30px #34435408; }
@media(max-width:899px) {
 .radio-track.is-animated .radio-stage { padding-top:14px; }
 .radio-track.is-animated .radio-stage-head .section-eyebrow { font-size:10px; }
 .radio-track.is-animated .radio-card { padding:13px 11px; }
 .radio-track.is-animated .radio-card-word { font-size:24px; margin:10px 0; }
 .radio-track.is-animated .radio-card-rule { margin-bottom:8px; }
 .radio-track.is-animated .radio-card h3 { font-size:clamp(12px,3.8vw,15px); margin-bottom:5px; }
 .radio-track.is-animated .radio-card p { font-size:11px; line-height:1.7; }
}
