@font-face {
  font-family: 'Makinas4Square';
  src: url('makinas4/Makinas-4-Square.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Makinas4Flat';
  src: url('makinas4/Makinas-4-Flat.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0a1628;
  --blue: #1a3a6b;
  --accent-blue: #2e8bff;
  --accent-cyan: #00d4ff;
  --accent-orange: #ff6b35;
  --accent-magenta: #ff2d78;
  --white: #ffffff;
  --gray-light: #f0f4f8;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: #ffffff;
  color: var(--navy);
  overflow: hidden;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.8) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-lines::before,
.hero-lines::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.15;
}

.hero-lines::before {
  top: 30%;
  left: -50%;
  transform: rotate(-15deg);
}

.hero-lines::after {
  top: 70%;
  left: -50%;
  transform: rotate(-15deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 1rem 0 1rem 1rem;
}
@media (min-width: 768px) {
  .hero-content {
    padding: 1rem 0 1rem 2rem;
  }
}

.hero-left {
  position: absolute;
  left: 1rem;
  top: -30px;  /* 上方向にずらしてHERO上部の余白を詰める */
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
@media (min-width: 768px) {
  .hero-left {
    left: 2rem;
  }
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-catch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-catch-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  line-height: 1;  /* 上下の line-height リーディング削除 */
}

.hero-catch-main {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.3em;
}

.hero-catch-main span {
  font-family: 'Makinas4Flat', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.15;
  background: linear-gradient(180deg, var(--navy) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  writing-mode: vertical-rl;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 0.1em;
  white-space: nowrap;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.7));
}

.hero-illustration {
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  animation: heroFadeIn 1.4s ease-out 0.15s forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(1.02); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-cubesat-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.hero-cubesat-note span {
  color: var(--accent-orange);
  font-size: 1.1rem;
}

.hero-logo {
  margin-bottom: 1rem;
  align-self: flex-start;  /* 中身の幅に合わせる */
}

.hero-logo-en {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--logo-navy);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.5),
    0 8px 24px rgba(29, 32, 136, 0.08),
    0 14px 40px rgba(29, 32, 136, 0.05);
}


.hero-logo-jp {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.3em;  /* モバイルはタイト */
  color: #fff;
  background: var(--logo-navy);
  padding: 0.35rem 0.8rem 0.35rem 0.95rem;  /* letter-spacingで右が空くので左パディングをわずかに多めに */
  margin: 0.25rem 0;
  text-align: center;
  white-space: nowrap;
  width: max-content;  /* 親に引きずられず自身のコンテンツ幅で決まる（EN が追従する親）*/
}

.hero-logo-en {
  white-space: nowrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-magenta));
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== TEAM セクション（白背景、講師陣の上に配置） ===== */
.team {
  background: #fff !important;
  background-image: none !important;
  font-family: 'Klee One', 'Noto Sans JP', serif;
  color: var(--ink);
}
.team-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ink);
}
.team-body p { text-align: center; }
.team-body p + p { margin-top: 1.4rem; }
.team-body strong {
  color: var(--logo-navy);
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--tape-yellow) 65%, var(--tape-yellow) 95%, transparent 95%);
  padding: 0 2px;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* ===== HERO Max Width Lock @ 768px =====
   vp≥768 で HEROを 768幅に固定・中央寄せ。
   画像と各テキストの上限を設定（これ以上は大きくならない）
   LogoEN / LogoJP は暫定値、dev panel で調整後にここに反映 */
@media (min-width: 768px) {
  .hero-content {
    max-width: 768px;
    margin: 0 auto;
  }
  /* tablet+ でのみ hero-left をストレッチして logo+cta を HERO下端にピン */
  .hero-left {
    bottom: 2rem;
  }
  .hero-logo {
    margin-top: auto;
  }
  /* 画像サイズは applyHero() が content 右端基準で計算。
     vp≥768 では content が 768 固定なので画像も自動的に 768直前と同じサイズに。 */
  .hero-catch-sub { font-size: 1.2rem; }           /* 19.2px */
  .hero-catch-main span { font-size: 4.8rem; }     /* 76.8px */
  .hero-logo-en { font-size: 3rem; }                /* 48px */
  .hero-logo-jp { font-size: 1.1rem; letter-spacing: 0.6em; }  /* 17.6px, tablet+で広め */
  .hero-cta { font-size: 1.1rem; }                 /* 17.6px */
}

/* ===== NOTEBOOK BASE (HERO以外に適用) ===== */
:root {
  --logo-navy: #1D2088;
  --logo-yellow: #ffd500;
  --paper: #FAFAF2;
  --paper-line: #e8e6d8;
  --ink: #2a2a38;
  --ink-mid: #6a6870;
  --ink-faint: #9a9880;
  --tape-yellow: rgba(255, 213, 0, 0.55);
  --tape-blue: rgba(29, 32, 136, 0.18);
}

/* HERO以降を白ノート調に（HEROは独自bgなので影響なし） */
.about, .program, .coordinator, .overview, .cta-section {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: 'Klee One', 'Noto Sans JP', serif;
}

/* ===== SECTIONS COMMON ===== */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-inner-wide { max-width: 1200px; margin: 0 auto; }

.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 1rem;
}
.section-header .tape {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--logo-navy);
  background: var(--tape-yellow);
  padding: 4px 18px;
  transform: rotate(-1.5deg);
  margin-bottom: 0.8rem;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.05);
}
.section-header h2 {
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: var(--logo-navy);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.section-header h2 small {
  display: block;
  font-family: 'Klee One', serif;
  font-size: 0.6em;
  font-weight: 400;
  color: var(--ink-mid);
  margin: 0.4rem auto 0;
  letter-spacing: 0.05em;
  max-width: 720px;  /* ABOUT本文と揃える */
}

/* ===== ABOUT ===== */
.about-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ink);
}
.about-body p + p { margin-top: 1.4rem; }
.about-body strong {
  color: var(--logo-navy);
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--tape-yellow) 65%, var(--tape-yellow) 95%, transparent 95%);
  padding: 0 2px;
}
.about-body .lead {
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--logo-navy);
}

/* ===== PROGRAM / VOYAGE ===== */
/* PROGRAMセクションは方眼紙を斜めパースで「奥へ向かう床」に */
.program {
  background-image: none;  /* 共通グリッドを打ち消す */
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 7rem;
}
.program::before {
  content: '';
  position: absolute;
  left: -20%; right: -20%;
  top: 25%; bottom: 0;
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(1200px) rotateX(60deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.program > * { position: relative; z-index: 1; }

/* Voyage箱は枠なしの透明コンテナ。惑星自体が影を落とす */
.voyage-wrap {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: 190px;         /* レイアウト占有高さは 190 */
  overflow: visible;     /* 内部 scene が上にあふれて voyage-sessions の上に描画 */
  z-index: 6;            /* voyage-sessions より手前 */
  pointer-events: none;  /* 上に伸びた canvas がリストのクリックを奪わないよう透過 */
}
/* Three.js 描画: wrap の底辺に揃えつつ、上に大きく拡張 */
.voyage-scene {
  position: absolute;
  left: 0; right: 0;
  bottom: -300px;         /* Y方向にシーンを下げる（惑星が下寄りに見える） */
  height: 720px;
  pointer-events: none;
}
/* 内側の UI のみクリック可能に */
.voyage-btns, .code-console { pointer-events: auto; }
.voyage-hud {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 250, 0.92);
  border: 1px solid var(--ink-faint);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  white-space: nowrap;
  z-index: 5;
}
.voyage-hud .num { color: var(--logo-navy); font-weight: 700; }
.voyage-hud .sep { margin: 0 6px; color: var(--ink-faint); }
.voyage-btns {
  position: absolute; bottom: -100px; right: 12px;
  display: flex; gap: 6px; z-index: 10;
  flex-wrap: wrap; justify-content: flex-end; max-width: 55%;
}
.voyage-btns button {
  background: rgba(255, 255, 250, 0.92);
  border: 1px solid var(--ink-faint);
  border-radius: 14px;
  padding: 4px 10px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.voyage-btns button:hover { background: #fff; }
/* モバイル: voyage-wrap も低めに */
@media (max-width: 640px) {
  .voyage-wrap { height: 190px; }
  .voyage-hud { font-size: 12px; padding: 4px 10px; }
  .voyage-btns { bottom: -60px; right: 8px; max-width: 100%; }
  .voyage-btns button { font-size: 11px; padding: 3px 8px; }
}

/* 衛星軌道を操作するコードコンソール（HERO画像の色味：ダークベース + ピンク/ティール/クリーム） */
.code-console {
  display: none;  /* 💻ボタンで表示切替 */
  position: absolute;
  bottom: 14px; left: 14px;  /* ボタン群は右下なので左下に配置 */
  font-family: 'IBM Plex Mono', 'Consolas', 'Monaco', monospace;
  font-size: 11px;
  line-height: 1.75;
  background: linear-gradient(135deg, rgba(28, 24, 42, 0.92) 0%, rgba(44, 32, 56, 0.90) 100%);
  border: 1px solid rgba(230, 140, 180, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow:
    0 14px 28px -6px rgba(29, 32, 136, 0.35),
    0 6px 12px -2px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  max-width: 320px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f0e6d8;
  overflow: hidden;
}
/* 色ストライプのアクセント（HERO画像の手描き風） */
.code-console::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 140, 120, 0.14) 26%, transparent 33%),
    linear-gradient(105deg, transparent 50%, rgba(100, 220, 220, 0.12) 55%, transparent 62%),
    linear-gradient(105deg, transparent 72%, rgba(255, 120, 180, 0.16) 77%, transparent 84%);
  pointer-events: none;
}
.code-console > * { position: relative; }
.code-console .line { white-space: nowrap; }
.code-console .kw   { color: #ff7aa5; font-weight: 600; }        /* import: ピンク */
.code-console .mod  { color: #ffe0a8; }                           /* モジュール名: クリーム */
.code-console .var  { color: #7fdbce; }                           /* 変数: ティール */
.code-console .fn   { color: #c8a3ff; }                           /* 関数: パープル */
.code-console .out  { color: #b9e898; font-weight: 600; }         /* 出力: グリーン */
.code-console .unit { color: rgba(240, 230, 216, 0.55); }
.code-console .arrow { color: rgba(240, 230, 216, 0.45); margin: 0 4px; }
.code-console .hint {
  font-size: 10px;
  color: rgba(240, 230, 216, 0.55);
  margin-top: 4px;
  font-family: 'Klee One', serif;
}
.code-console .code-in {
  background: rgba(255, 213, 0, 0.12);
  border: none;
  border-bottom: 1px dashed rgba(255, 213, 0, 0.55);
  color: #ffdd80;
  font-family: inherit;
  font-size: inherit;
  width: 46px;
  text-align: right;
  padding: 1px 4px;
  font-weight: 600;
  border-radius: 2px 2px 0 0;
}
.code-console .code-in:focus {
  outline: none;
  background: rgba(255, 213, 0, 0.28);
  border-bottom-color: var(--logo-yellow);
  color: #fff;
}
.code-console .code-num { color: #ffdd80; font-weight: 600; }

/* r クリックで展開 */
.code-console .clickable {
  cursor: pointer;
  border-bottom: 1px dashed rgba(127, 219, 206, 0.6);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.code-console .clickable:hover {
  color: #fff;
  border-bottom-color: var(--logo-yellow);
}
.code-console .r-desc {
  font-family: 'Klee One', serif;
  font-size: 10.5px;
  color: rgba(240, 230, 216, 0.75);
  margin: 2px 0 3px;
  padding-left: 8px;
  border-left: 2px solid rgba(255, 213, 0, 0.55);
  line-height: 1.5;
}

/* G / M ホバーでツールチップ */
.code-console .tip-hover {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted rgba(127, 219, 206, 0.55);
}
.code-console .tip-hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 18, 30, 0.96);
  color: #f0e6d8;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 213, 0, 0.4);
  font-size: 10.5px;
  font-family: 'Klee One', serif;
  font-weight: normal;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
.code-console .tip-hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 18, 30, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 20;
}
.code-console .tip-hover:hover::after,
.code-console .tip-hover:hover::before {
  opacity: 1;
}
@media (max-width: 768px) {
  .code-console { font-size: 10px; padding: 8px 12px; max-width: 260px; bottom: 10px; left: 10px; right: auto; }
  .code-console .code-in { width: 38px; }
}

.planet-label {
  font-family: 'Klee One', serif;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 250, 0.88);
  border: 1px solid var(--ink-faint);
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, 0);  /* アンカーを上辺に。ラベルは下方向に伸びる */
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
}
.planet-label.active {
  background: #fff9e0;
  border-color: var(--logo-yellow);
  color: var(--logo-navy);
  font-weight: 600;
}

/* ===== Voyage Gallery: 左=軌道配置 / 右=日程リスト ===== */
.voyage-sessions {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}
/* 左: orbit (中央大ワッペン + 周囲6衛星) */
.orbit-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 0 auto;
  --orbit-radius: 195px;  /* 衛星距離（中央300の半径150 + 隙間45） */
  --featured-size: 300px;
}
/* orbit-pick: 全7枚が同じクラス。.featured が中央化 */
.orbit-pick {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--size, 72px);
  height: var(--size, 72px);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  perspective: 1400px;
  /* 通常: 軌道上（rotate-translate-counter でアップライト） */
  transform:
    translate(-50%, -50%)
    rotate(var(--angle, 0deg))
    translateY(calc(-1 * var(--orbit-radius)))
    rotate(calc(-1 * var(--angle, 0deg)));
  z-index: 1;
}
.orbit-pick:hover { border-color: rgba(29, 32, 136, 0.25); background: rgba(29, 32, 136, 0.04); }
.orbit-pick svg { width: 100%; height: 100%; display: block; }

/* featured: 中央に大きく。transform を明示的に translate(-50%, -50%) で固定
   （rotate→translateY(0)→-rotate の合成だと subpixel 丸め誤差でジッター発生するため） */
.orbit-pick.featured {
  width: var(--featured-size);
  height: var(--featured-size);
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: default;
}

/* 内側 wrapper で Y軸回転を個別にアニメ、漂いも負担 */
.orbit-pick .pick-inner {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: pickFloat var(--float-dur, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
/* 中央 featured は漂いを止めて静止 */
.orbit-pick.featured .pick-inner {
  animation: none;
  transform: none;
}
.orbit-pick.spinning .pick-inner {
  animation: ySpin 0.9s cubic-bezier(0.4, 0.05, 0.25, 1);
}
@keyframes pickFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(var(--drift-x, 3px), var(--drift-y, -5px)) rotate(var(--drift-rot, 4deg)); }
}
@keyframes ySpin {
  from { transform: rotateY(0); }
  to   { transform: rotateY(360deg); }
}
/* 右: テキストリスト */
.voyage-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.voyage-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 7px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  line-height: 1.3;
}
.voyage-list-item:hover { background: rgba(29, 32, 136, 0.04); }
.voyage-list-item.active {
  border-left-color: var(--logo-navy);
  background: rgba(29, 32, 136, 0.06);
}
.voyage-list-item .session {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--logo-navy);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.voyage-list-item .date {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.voyage-list-item .title {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 1px;
  font-weight: 600;
}
/* モバイル: orbit は通常表示、list を右側にわずかに透けるマットでオーバーレイ */
@media (max-width: 760px) {
  .voyage-sessions {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
  }
  .orbit-wrap {
    margin: 0;       /* 左寄せ（orbit自体は透過せずしっかり見せる） */
    /* 623px で overlap -90px を基準に、狭くなるほど左に追加シフトして
       カリキュラムとの重なり量を一定に保つ */
    margin-left: calc(-90px + min(0px, (100vw - 623px) * 0.85));
  }
  .voyage-list {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 72%;
    max-width: 340px;
    background: rgba(255, 255, 252, 0.78);  /* ほんのり透ける。下の orbit が薄く見える程度 */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 8px;
    padding: 8px 10px;
    z-index: 5;
    gap: 1px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }
  .voyage-list-item { padding: 5px 8px; }
  .voyage-list-item .session { font-size: 11px; padding: 1px 7px; }
  .voyage-list-item .date { font-size: 11px; }
  .voyage-list-item .title { font-size: 12px; line-height: 1.25; margin-top: 1px; }
}
.program-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-top: 1.5rem;
}
.voyage-list-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 10px 14px 0;
  line-height: 1.4;
}
.program-crest {
  display: block;
  width: 280px;
  height: 280px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 18px rgba(29, 32, 136, 0.22));
}
@media (max-width: 640px) {
  .program-crest { width: 180px; height: 180px; margin-bottom: 12px; }
  .program { padding-top: 3rem; padding-bottom: 4rem; }
}

/* ===== COORDINATOR ===== */
.coordinator-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.coordinator-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 760px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--ink-faint);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  position: relative;
  box-shadow: 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.coordinator-card::before {
  content: '';
  position: absolute; top: -10px; left: 24px;
  width: 70px; height: 20px;
  background: var(--tape-yellow);
  transform: rotate(-2deg);
}
.coordinator-img {
  width: 160px;
  flex-shrink: 0;
}
.coordinator-img img { width: 100%; height: auto; display: block; }
.coordinator-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--logo-navy);
  margin-bottom: 0.3rem;
}
.coordinator-info .name {
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.coordinator-info .title {
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}
.coordinator-info .bio {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink);
}

/* ===== OVERVIEW ===== */
.overview-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.overview-table th,
.overview-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px dashed var(--paper-line);
  font-size: 0.95rem;
}
.overview-table tr:last-child th,
.overview-table tr:last-child td { border-bottom: none; }
.overview-table th {
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--logo-navy);
  font-weight: 700;
  white-space: nowrap;
  width: 110px;
  background: #fafaf0;
  letter-spacing: 0.1em;
}
.overview-table td { color: var(--ink); }
.overview-table small { color: var(--ink-mid); font-size: 0.85em; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px 14px 44px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--logo-navy);
  position: relative;
  transition: background 0.15s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: 'Q';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--logo-navy);
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.faq-item > summary::after {
  content: '＋';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--logo-navy);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.faq-item[open] > summary::after { content: '－'; }
.faq-item:hover > summary { background: rgba(29, 32, 136, 0.03); }
.faq-answer {
  padding: 4px 18px 18px 44px;
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.85;
  animation: faqFadeIn 0.22s ease-out;
}
.faq-answer::before {
  content: 'A';
  position: absolute;
  left: 14px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--logo-yellow);
  color: var(--logo-navy);
  font-family: 'Montserrat', serif;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-answer strong {
  color: var(--logo-navy);
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--tape-yellow) 65%, var(--tape-yellow) 95%, transparent 95%);
  padding: 0 2px;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .faq-item > summary { font-size: 0.95rem; padding: 12px 14px 12px 40px; }
  .faq-item > summary::before { width: 20px; height: 20px; font-size: 0.72rem; left: 12px; }
  .faq-answer { padding: 4px 14px 16px 40px; font-size: 0.9rem; }
  .faq-answer::before { width: 20px; height: 20px; font-size: 0.72rem; left: 12px; }
}

/* .faq セクションは共通の .about, .program, ... と同じく paper背景を持たせる */
.faq {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: 'Klee One', 'Noto Sans JP', serif;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-lead {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}
.cta-deadline {
  display: inline-block;
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--logo-navy);
  background: var(--tape-yellow);
  padding: 4px 14px;
  margin-bottom: 2rem;
  transform: rotate(-1deg);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--logo-navy);
  color: #fff;
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 3px 4px 0 var(--logo-yellow);
  letter-spacing: 0.05em;
}
.cta-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 6px 0 var(--logo-yellow);
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px dashed var(--ink-faint);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-mid);
  font-family: 'Klee One', serif;
}
.footer-orgs {
  font-size: 0.8rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.footer-contact {
  font-size: 0.85rem;
}
.footer-contact a {
  color: var(--logo-navy);
  text-decoration: none;
  border-bottom: 1px dashed var(--logo-navy);
}
.footer-contact a:hover { background: var(--tape-yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 3.5rem 1.2rem; }

  .hero-right { margin-right: 0; }

  .voyage-wrap { height: 190px; min-height: 190px; }

  .coordinator-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .coordinator-img { width: 140px; }

  .overview-table th { width: 90px; font-size: 0.88rem; }
  .overview-table th, .overview-table td { padding: 0.8rem 0.9rem; }
}

/* ===== GLOBAL NAV (hamburger) ===== */
.nav-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.8); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink, #2a2a38);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(250, 250, 242, 0.98);   /* paper色ベース */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.nav-overlay[aria-hidden="false"] { opacity: 1; visibility: visible; }
.nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.nav-overlay li { margin: 0.9rem 0; }
.nav-overlay a {
  display: inline-block;
  font-family: 'Montserrat', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 500;
  color: var(--ink, #2a2a38);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-overlay a:hover,
.nav-overlay a:focus-visible { color: var(--ink, #2a2a38); border-bottom-color: var(--ink, #2a2a38); }
.nav-overlay a .nav-en {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--ink-mid, #6b6b70);
  margin-top: 0.2rem;
}
body.nav-open { overflow: hidden; }
