/* ==========================================================
   ひらつかがやき 共通スタイル
   テーマ：七夕の夜空 × 天の川 × 湘南の海
   ========================================================== */

:root {
  --night-deep: #191945;
  --night-mid: #2b2b6e;
  --dusk: #7c4a8f;
  --dusk-pink: #d96a9a;
  --sea: #1f7a9e;
  --sea-dark: #16607f;
  --hill: #2e6b4f;
  --accent: #ff5e7e;
  --accent-dark: #e0335c;
  --yellow: #ffd54f;
  --bg: #fdfbff;
  --card-bg: #ffffff;
  --text: #393545;
  --text-light: #777083;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(57, 53, 69, 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(25, 25, 69, 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(--night-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(--night-deep) 0%,
    var(--night-mid) 34%,
    var(--dusk) 58%,
    var(--dusk-pink) 74%,
    #f5a8b8 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

/* 天の川（ななめの星の帯） */
.milky-way {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 46%;
  height: 120%;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.1) 35%, rgba(214,200,255,0.16) 50%, rgba(255,255,255,0.1) 65%, rgba(255,255,255,0));
  transform: rotate(24deg);
  pointer-events: none;
}

.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; }
}

/* 七夕飾り（左右の竹と吹き流し） */
.tanabata-deco {
  position: absolute;
  top: 88px;
  z-index: 6;
  cursor: pointer;
  transform-origin: top center;
  animation: sway 5s ease-in-out infinite;
}

.tanabata-deco.left { left: 4%; }
.tanabata-deco.right { right: 4%; animation-delay: 2.2s; }

.tanabata-deco.excited { animation: sway-hard 0.7s ease-in-out 3; }

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes sway-hard {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.deco-message {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 7;
}

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

/* 降ってくる短冊 */
.tanzaku-fall {
  position: absolute;
  width: 16px;
  height: 44px;
  border-radius: 3px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 5;
  animation: tanzaku-drop 4s linear forwards;
}

@keyframes tanzaku-drop {
  0% { transform: translateY(-60px) rotate(0deg); opacity: 0.95; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* カモメ（空をただよう） */
.kamome {
  position: absolute;
  top: 30%;
  left: -80px;
  z-index: 4;
  animation: kamome-fly 34s linear infinite;
  pointer-events: none;
}

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

/* 魚（海をクリックではねる） */
.fish-wrap {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 120px;
  height: 150px;
  margin-left: -60px;
  overflow: hidden;
  z-index: 7;
  pointer-events: none;
}

.fish {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
}

.fish.jump { animation: fish-jump 1.1s ease-out forwards; }

.fish .ball-svg { display: none; }
.fish.ball .ball-svg { display: inline; }
.fish.ball .fish-svg { display: none; }

@keyframes fish-jump {
  0% { transform: translateX(-50%) translateY(120%) rotate(0deg); }
  45% { transform: translateX(-50%) translateY(-10%) rotate(20deg); }
  55% { transform: translateX(-50%) translateY(-16%) rotate(40deg); }
  100% { transform: translateX(-50%) translateY(130%) rotate(150deg); }
}

/* サッカーボール（クリックでシュート） */
.soccer-ball {
  position: absolute;
  right: 12%;
  bottom: 4.5%;
  z-index: 8;
  cursor: pointer;
  transition: transform 0.2s;
}

.soccer-ball:hover { transform: scale(1.1); }

.soccer-ball.shoot {
  animation: ball-shoot 1.6s ease-in forwards;
}

@keyframes ball-shoot {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-110vw, -70vh) rotate(-1080deg); }
}

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

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

/* 桜の花びら（丘クリック） */
.sakura-petal {
  position: absolute;
  width: 12px;
  height: 10px;
  background: #ffc1d4;
  border-radius: 60% 0 60% 0;
  pointer-events: none;
  z-index: 6;
  animation: petal-fall 3.2s ease-in-out forwards;
}

@keyframes petal-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(90px, 200px) rotate(320deg); opacity: 0; }
}

/* クリックで流れ星 */
.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; }
}

.hill-layer { cursor: pointer; pointer-events: auto; }
.sea-layer { cursor: pointer; pointer-events: auto; }

.hero-copy {
  position: relative;
  z-index: 6;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  text-shadow: 0 2px 16px rgba(25, 25, 69, 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); }
}

/* 湘南平の丘 */
.hill-layer {
  position: absolute;
  bottom: 13%;
  left: 0;
  width: 100%;
  height: 30%;
  z-index: 2;
}

/* 海（波2層） */
.sea-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 16%;
  z-index: 3;
}

.wave-band {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: flex;
}

.wave-band svg { width: 50%; height: 100%; flex-shrink: 0; }

.wave-band.back { animation: wave-slide 16s linear infinite; opacity: 0.9; }
.wave-band.front { animation: wave-slide 9s linear infinite reverse; bottom: -12%; }

@keyframes wave-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- セクション共通 ---------- */
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(57, 53, 69, 0.22);
}

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

.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(--sea); }

.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(--sea);
}

.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 34px rgba(57, 53, 69, 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(--night-deep), var(--night-mid) 55%, var(--sea));
}

.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(--sea);
  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(--sea);
  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(--sea-dark);
}

.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(--night-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: #f5f2f8;
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.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); }

/* 正解時の短冊シャワー演出 */
.tanzaku-cheer {
  position: fixed;
  top: -60px;
  width: 14px;
  height: 38px;
  border-radius: 3px;
  z-index: 200;
  pointer-events: none;
  animation: cheer-fall 1.6s ease-in forwards;
}

@keyframes cheer-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(300deg); opacity: 0; }
}

/* 結果・認定証 */
.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(--night-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(--sea);
  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(--night-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(25, 25, 69, 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; }

  .tanabata-deco { top: 62px; }
  .tanabata-deco.left { left: 1%; }
  .tanabata-deco.right { right: 1%; }
  .tanabata-deco svg { width: 64px; height: auto; }
  .soccer-ball { right: 6%; }
}
