/* ==========================================================
   つくばんざい 共通スタイル
   テーマ：紫峰の山 × 田んぼ × 本物の宇宙
   ========================================================== */

:root {
  --space-deep: #14143a;
  --space-mid: #2b2b72;
  --dawn: #8a5ba6;
  --sunset: #ff9d6b;
  --sunset-light: #ffd9a0;
  --mountain: #6f5499;
  --mountain-dark: #5a4380;
  --field: #7cb342;
  --field-dark: #558b2f;
  --accent: #ff7043;
  --accent-dark: #e64a19;
  --yellow: #ffd54f;
  --bg: #fdfcff;
  --card-bg: #ffffff;
  --text: #3a3742;
  --text-light: #767080;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(58, 55, 66, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- ふりがな切り替え ---------- */
ruby rt {
  font-size: 0.55em;
  color: inherit;
  opacity: 0.85;
  font-weight: 700;
}
body.ruby-off ruby rt { display: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(20, 20, 58, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo .material-icons { color: var(--yellow); }

.sp-break { display: none; }

.global-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
}

.global-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.25s;
}

.global-nav a:hover { background: rgba(255, 255, 255, 0.18); }

.ruby-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}

.ruby-toggle:hover { background: var(--yellow); color: var(--space-deep); }

.ruby-toggle .material-icons { font-size: 18px; }

/* ハンバーガーメニュー（SPのみ表示） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.menu-toggle .material-icons { font-size: 30px; }

/* ---------- ヒーロー（宇宙→紫峰→田んぼ） ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--space-deep) 0%,
    var(--space-mid) 35%,
    var(--dawn) 62%,
    var(--sunset) 80%,
    var(--sunset-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sky-space { position: absolute; inset: 0; }

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.shooting-star {
  position: absolute;
  top: 8%;
  left: -120px;
  width: 110px;
  height: 2px;
  background: linear-gradient(to right, transparent, #fff);
  transform: rotate(20deg);
  animation: shoot 7s linear infinite;
  opacity: 0;
}

/* 移動ベクトル(80vw, 29.1vw)の角度 = atan(29.1/80) = 20度。rotateと一致させる */
@keyframes shoot {
  0%, 86% { opacity: 0; translate: 0 0; }
  88% { opacity: 1; }
  96% { opacity: 0; translate: 80vw 29.1vw; }
  100% { opacity: 0; translate: 80vw 29.1vw; }
}

/* 人工衛星（空をただよう） */
.satellite {
  position: absolute;
  top: 14%;
  left: -80px;
  color: #b3e5fc;
  cursor: pointer;
  z-index: 5;
  animation: satellite-fly 30s linear infinite;
}

.satellite .material-icons {
  font-size: 36px;
  filter: drop-shadow(0 0 8px #81d4fa);
  animation: satellite-bob 2.4s ease-in-out infinite;
}

@keyframes satellite-fly {
  0% { left: -80px; }
  100% { left: 110%; }
}

@keyframes satellite-bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(8deg); }
}

.satellite-message {
  position: absolute;
  top: 42px;
  left: -50px;
  width: 180px;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s;
  pointer-events: none;
}

.satellite-message.show { opacity: 1; transform: translateY(0); }

/* 「ば」クリックで増える人工衛星 */
.ba-secret { cursor: pointer; }

.satellite-extra { cursor: default; }

.satellite-extra .material-icons {
  font-size: 24px;
  filter: drop-shadow(0 0 6px #81d4fa);
}

/* ガマガエル（山をクリックで飛び出す） */
.gama-wrap {
  position: absolute;
  left: 40%;
  margin-left: -100px;
  bottom: 30%;
  width: 200px;
  height: 135px;
  overflow: hidden;
  z-index: 7;
  pointer-events: none;
}

.gama {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.gama.show { transform: translateX(-50%) translateY(0); }

.gama-message {
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  white-space: nowrap;
}

/* フクロウ（田んぼをクリックで飛び出す） */
.fukuro-wrap {
  position: absolute;
  left: 50%;
  margin-left: -90px;
  bottom: 4%;
  width: 180px;
  height: 125px;
  overflow: hidden;
  z-index: 7;
  pointer-events: none;
}

.fukuro {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.fukuro.show { transform: translateX(-50%) translateY(0); }

.fukuro .kogama-svg { display: none; }
.fukuro.kogama .kogama-svg { display: inline; }
.fukuro.kogama .fukuro-svg { display: none; }

/* ロケット（クリックで打ち上げ） */
.rocket-pad {
  position: absolute;
  right: 9%;
  bottom: 3%;
  z-index: 8;
  cursor: pointer;
  text-align: center;
}

.rocket-body {
  position: relative;
  transition: transform 0.2s;
}

.rocket-pad:hover .rocket-body { transform: translateY(-4px); }

.rocket-flame {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 0.15s;
}

.rocket-pad.launching .rocket-body {
  animation: rocket-liftoff 2.2s ease-in forwards;
}

.rocket-pad.launching .rocket-flame {
  transform: translateX(-50%) scaleY(1);
  animation: flame-flicker 0.15s linear infinite;
}

@keyframes rocket-liftoff {
  0% { transform: translateY(0); }
  12% { transform: translateY(2px); }
  100% { transform: translateY(-130vh); }
}

@keyframes flame-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.rocket-message {
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.rocket-message.show { opacity: 1; }

/* クリックで流れ星 */
.click-star {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, #fff);
  transform: rotate(24deg);
  pointer-events: none;
  z-index: 5;
  animation: click-shoot 0.8s ease-out forwards;
}

@keyframes click-shoot {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: 180px 80px; }
}

.mountain-layer { cursor: pointer; pointer-events: auto; }
.field-layer { cursor: pointer; pointer-events: auto; }

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  filter: blur(2px);
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 140px; height: 38px;
  top: 58%; left: -160px;
  animation: drift 38s linear infinite;
}

.cloud-1::before { width: 60px; height: 60px; top: -28px; left: 24px; }
.cloud-1::after { width: 44px; height: 44px; top: -18px; left: 72px; }

.cloud-2 {
  width: 100px; height: 30px;
  top: 66%; left: -120px;
  animation: drift 50s linear infinite 12s;
}

.cloud-2::before { width: 44px; height: 44px; top: -20px; left: 18px; }
.cloud-2::after { width: 34px; height: 34px; top: -14px; left: 52px; }

@keyframes drift {
  0% { left: -180px; }
  100% { left: 110%; }
}

.hero-copy {
  position: relative;
  z-index: 6;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  text-shadow: 0 2px 16px rgba(20, 20, 58, 0.6);
}

.hero-copy h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: float-in 1.2s ease-out both;
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  font-weight: 700;
  animation: float-in 1.2s ease-out 0.4s both;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.mountain-layer {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 38%;
  z-index: 2;
}

.field-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22%;
  z-index: 3;
}

/* ---------- セクション共通 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }

/* 見出しはflexにしない（SPでrubyが縦に潰れるため block＋インラインアイコン） */
.section-title {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  margin-bottom: 28px;
}

.section-title .material-icons {
  font-size: 1.3em;
  color: var(--accent);
  vertical-align: -6px;
  margin-right: 10px;
}

.section-lead {
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ふわっと登場 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 入口カード ---------- */
.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.entrance-card {
  border-radius: var(--radius);
  padding: 36px 28px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.entrance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(58, 55, 66, 0.22);
}

.entrance-kids { background: linear-gradient(135deg, var(--accent), var(--yellow)); }
.entrance-adult { background: linear-gradient(135deg, var(--mountain-dark), var(--mountain)); }

.entrance-icon { font-size: 44px; margin-bottom: 10px; }

.entrance-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }

/* ---------- 数字カード ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 28px 16px;
  transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-6px); }

.stat-card .material-icons { font-size: 36px; color: var(--mountain); }

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label { font-size: 0.9rem; font-weight: 700; }

/* なんの数字でしょう？（アコーディオン） */
.stat-quiz-lead {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.stat-quiz {
  font-family: inherit;
  color: inherit;
  border: none;
  cursor: pointer;
}

.stat-open-icon {
  display: block;
  margin: 0 auto;
  color: var(--text-light);
  transition: transform 0.35s;
}

.stat-quiz.open .stat-open-icon { transform: rotate(180deg); }

.stat-answer {
  font-size: 0.9rem;
  font-weight: 700;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.stat-quiz.open .stat-answer {
  max-height: 90px;
  opacity: 1;
}

/* ---------- コンテンツカード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 6px solid var(--field);
}

.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 34px rgba(58, 55, 66, 0.2);
}

.card-quiz { border-top-color: var(--accent); }

.card-icon { font-size: 40px; color: var(--accent); margin-bottom: 10px; }

.content-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }

.content-card p { font-size: 0.92rem; color: var(--text-light); }

/* ---------- 下層ページ共通 ---------- */
.page-hero {
  padding: 130px 20px 60px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--space-deep), var(--space-mid) 55%, var(--mountain));
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800;
}

.page-hero p { margin-top: 10px; font-weight: 700; opacity: 0.92; }

.article-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  margin-bottom: 30px;
}

.article-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.article-block h2 .material-icons {
  color: var(--mountain);
  vertical-align: -5px;
  margin-right: 8px;
}

.article-block + .article-block { margin-top: 26px; }

.point-list { list-style: none; margin-top: 12px; }

.point-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}

.point-list li::before {
  content: "star";
  font-family: "Material Icons";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--yellow);
  font-size: 20px;
}

/* 写真とキャプション */
.photo-figure {
  margin: 20px 0;
}

.photo-figure img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.photo-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 6px;
}

.note-box {
  background: #fff8e1;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 20px 0 60px;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.25s, background 0.25s;
}

.page-nav a:hover { background: var(--accent-dark); transform: scale(1.06); }

/* ---------- クイズ ---------- */
.quiz-area {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.quiz-category-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  background: var(--card-bg);
  border: 3px solid var(--field);
  border-radius: var(--radius);
  padding: 22px 14px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.quiz-category-btn .material-icons {
  display: block;
  margin: 0 auto 6px;
  font-size: 34px;
  color: var(--mountain);
}

.quiz-category-btn:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.quiz-category-btn.done { border-color: var(--yellow); background: #fffde7; }

.quiz-category-btn .cat-status {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
}

.quiz-random-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--space-mid), var(--accent));
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.25s;
}

.quiz-random-btn:hover { transform: scale(1.03); }

.quiz-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
}

.quiz-progress {
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 10px;
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.quiz-choices { display: grid; gap: 12px; }

.quiz-choice {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  background: #f4f2f8;
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-choice:hover { border-color: var(--field); background: #eef7e3; }

.quiz-choice.correct {
  background: #e8f5e9;
  border-color: #4caf50;
  animation: pop 0.4s;
}

.quiz-choice.wrong {
  background: #ffebee;
  border-color: #ef5350;
  animation: shake 0.4s;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.quiz-feedback {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 700;
  display: none;
}

.quiz-feedback.show { display: block; animation: float-in 0.4s; }

.quiz-feedback.good { background: #e8f5e9; color: #2e7d32; }
.quiz-feedback.bad { background: #ffebee; color: #c62828; }

.quiz-feedback a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.quiz-feedback a::after {
  content: "open_in_new";
  font-family: "Material Icons";
  font-size: 0.9em;
  vertical-align: -2px;
  margin-left: 2px;
  text-decoration: none;
  display: inline-block;
}

.quiz-feedback a:hover { color: var(--accent); }

.quiz-feedback .photo-figure { margin: 14px 0 0; }
.quiz-feedback .photo-figure img { max-height: 320px; object-fit: cover; }

.quiz-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.quiz-next-btn:hover { background: var(--accent-dark); transform: scale(1.05); }

/* 正解時のロケット演出 */
.rocket {
  position: fixed;
  bottom: -80px;
  right: 10%;
  font-size: 56px;
  color: var(--accent);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
}

.rocket.launch { animation: rocket-up 1.4s ease-in forwards; }

@keyframes rocket-up {
  0% { opacity: 1; bottom: -80px; transform: rotate(-45deg); }
  100% { opacity: 0; bottom: 110%; transform: rotate(-45deg); }
}

/* 結果・認定証 */
.quiz-result { text-align: center; }

.result-rank {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 14px 0;
}

.certificate {
  border: 6px double var(--yellow);
  border-radius: var(--radius);
  background: #fffdf0;
  padding: 40px 30px;
  margin-top: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.certificate h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--space-deep);
  margin-bottom: 12px;
}

.certificate .cert-name {
  font-size: 1.3rem;
  font-weight: 800;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding: 0 18px 4px;
  margin: 10px 0;
}

.cert-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 16px;
  border: 2px solid var(--field);
  border-radius: 10px;
  margin-top: 10px;
  width: min(280px, 80%);
}

.sparkle {
  position: absolute;
  color: var(--yellow);
  animation: sparkle-fall 3s linear infinite;
  pointer-events: none;
}

@keyframes sparkle-fall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(320px) rotate(220deg); opacity: 0; }
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 60px;
  background: var(--space-deep);
  color: #fff;
  text-align: center;
  padding: 36px 20px;
  font-weight: 700;
}

.footer-note { font-size: 0.82rem; opacity: 0.75; margin-top: 6px; font-weight: 400; }

.footer-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s;
}

.footer-note a:hover { opacity: 0.7; }

.footer-note a::after {
  content: "open_in_new";
  font-family: "Material Icons";
  font-size: 0.9em;
  vertical-align: -2px;
  margin-left: 2px;
  display: inline-block;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 720px) {
  .site-header { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; }
  .logo { font-size: 1rem; }

  .menu-toggle { display: block; }
  .ruby-toggle { margin-left: auto; font-size: 0.78rem; padding: 5px 10px; }

  .sp-break { display: inline; }
  .logo-text { line-height: 1.4; }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(20, 20, 58, 0.97);
    padding: 10px 16px 18px;
    font-size: 1rem;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: -1;
  }

  body.nav-open .global-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .global-nav a {
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  .section { padding: 48px 0; }
  .hero { min-height: 480px; }

  .rocket-pad { right: 5%; }
}
