/* ============================================================
   NEBULA SUMMER FES 2026 - style.css
   ============================================================
   見た目（色・レイアウト・フォント・装飾）をまとめたファイルです。

   ▼ 色を変えたいときは、すぐ下の :root（カラーパレット）を編集すると
     サイト全体の色がまとめて変わります。
   ============================================================ */

/* ----- カラーパレット & 基本設定（ここを変えると全体に反映） ----- */
:root {
  --navy:        #071A2D;  /* ベースの濃紺 */
  --navy-2:      #0C2740;  /* 少し明るい紺（カード背景など） */
  --ocean:       #0B8FD9;  /* オーシャンブルー */
  --sky:         #65C7F7;  /* スカイブルー */
  --sunset:      #FF8A3D;  /* サンセットオレンジ（アクセント） */
  --sand:        #F8F5EF;  /* サンドホワイト（明るい背景） */
  --white:       #FFFFFF;

  --text-dark:   #15324A;  /* 明るい背景での本文色 */
  --text-muted:  #5C7488;  /* 補足テキスト */
  --text-light:  rgba(255, 255, 255, 0.86); /* 濃い背景での本文色 */

  /* よく使うグラデーション */
  --grad-ocean:  linear-gradient(135deg, var(--ocean), var(--sky));
  --grad-sunset: linear-gradient(120deg, var(--sunset), #FFB36B);
  --grad-hero:   radial-gradient(120% 120% at 70% 10%, #123a5e 0%, #071A2D 55%, #04111e 100%);

  /* レイアウト */
  --maxw: 1180px;          /* コンテンツの最大幅 */
  --radius: 18px;          /* 角丸 */
  --shadow: 0 18px 50px rgba(4, 17, 30, 0.18);

  /* フォント */
  --font-en: 'Sora', sans-serif;                 /* 英語見出し */
  --font-jp: 'Zen Kaku Gothic New', sans-serif;  /* 日本語見出し（太い） */
  --font-body: 'Noto Sans JP', sans-serif;       /* 本文 */
}

/* ----- リセット・共通 ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--navy);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 中央寄せの共通コンテナ */
.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* セクション共通の余白 */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}

/* スマホでだけ改行したい時に使うクラス */
.sp-only { display: none; }

/* ----- 見出し（セクションラベル＋タイトル） ----- */
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

.section-label {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--ocean);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--grad-sunset);
  display: inline-block;
}

.section-title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* 濃い背景のセクション用（白文字） */
.section-head--light .section-title { color: var(--white); }
.section-head--light .section-label { color: var(--sky); }

/* ----- ボタン ----- */
.btn {
  --pad-y: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-align: center;
}
.btn--primary {
  background: var(--grad-sunset);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(4, 17, 30, 0.18);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(4, 17, 30, 0.24);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}
/* 明るい背景に置くゴーストボタン */
.btn--ghost-dark {
  color: var(--ocean);
  border-color: var(--ocean);
  background: transparent;
}
.btn--ghost-dark:hover { background: rgba(11, 143, 217, 0.08); }
.btn--small { --pad-y: 11px; padding: 11px 24px; font-size: 0.88rem; }
.btn--full { width: 100%; }

/* ============================================================
   1. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 18px 0;
}
/* スクロールするとJSが .is-scrolled を付けて背景を出す */
.site-header.is-scrolled {
  background: rgba(7, 26, 45, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 12px 0;
}
.header-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
/* ヘッダーのロゴ画像（旧オレンジ丸の位置） */
.logo-mark-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--sky);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav-link--cta {
  background: var(--grad-ocean);
  color: var(--white);
  margin-left: 8px;
}
.nav-link--cta:hover { color: var(--white); filter: brightness(1.08); }

/* ハンバーガー（スマホ用・PCでは非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* 開いている時の×印 */
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* 背景の装飾レイヤー */
.hero-bg { position: absolute; inset: 0; z-index: 1; }

/* ふわっと動く光の玉（星雲＝NEBULAのイメージ） */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.orb--1 { width: 460px; height: 460px; background: var(--ocean); top: -80px; right: -60px; }
.orb--2 { width: 380px; height: 380px; background: var(--sunset); bottom: -100px; left: -40px; animation-delay: -4s; }
.orb--3 { width: 300px; height: 300px; background: var(--sky); top: 35%; left: 45%; animation-delay: -8s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -28px) scale(1.08); }
}

/* うっすらグリッド線（未来感） */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(101, 199, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 199, 247, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 30%, transparent 80%);
}

/* 下端の波（海のイメージ） */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(7, 26, 45, 0.9), transparent);
}

.hero-eyebrow {
  font-family: var(--font-jp);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: clamp(0.82rem, 2.6vw, 1rem);
  color: var(--sky);
  margin-bottom: 22px;
}
/* ヒーローのメインタイトル（英字） */
.hero-title {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(2.8rem, 11vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-year {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-bottom: 26px;
}
.hero-meta-item strong { color: var(--sunset); }
.hero-meta-divider { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.4); }

.hero-theme {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.15rem, 3.5vw, 1.7rem);
  margin-bottom: 16px;
}
.hero-lead {
  color: var(--text-light);
  font-size: clamp(0.95rem, 2.3vw, 1.05rem);
  max-width: 540px;
  margin-bottom: 38px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   3. ABOUT
   ============================================================ */
.about { background: var(--sand); }
.about-text {
  max-width: 760px;
  font-size: 1.02rem;
  color: var(--text-dark);
  margin-bottom: clamp(32px, 5vw, 48px);
}

/* 実行委員会の活動写真 */
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.about-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photos figcaption {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* 4本柱のカード */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  border: 1px solid rgba(11, 143, 217, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-ocean);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.pillar-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.pillar-jp { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   4. CONTENTS
   ============================================================ */
.contents { background: var(--navy); }
.contents .section-title { color: var(--white); }
.contents .section-label { color: var(--sky); }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.content-card {
  background: var(--navy-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(101, 199, 247, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.content-card:hover {
  transform: translateY(-8px);
  border-color: rgba(101, 199, 247, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
/* 写真が入る前のプレースホルダー（グラデーション） */
.content-thumb {
  aspect-ratio: 16 / 10;
  background: var(--grad-ocean);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-thumb::after {
  content: attr(data-label);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
}
/* 写真が入ったらサムネ全面に表示し、ラベル文字は隠す */
.content-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-thumb:has(img)::after { content: none; }
/* カードごとにプレースホルダーの色味を変えて単調さを避ける */
.content-card:nth-child(2) .content-thumb { background: linear-gradient(135deg, #0B8FD9, #19c3a6); }
.content-card:nth-child(3) .content-thumb { background: var(--grad-sunset); }
.content-card:nth-child(4) .content-thumb { background: linear-gradient(135deg, #6a5cff, #65C7F7); }
.content-card:nth-child(5) .content-thumb { background: linear-gradient(135deg, #0B8FD9, #FF8A3D); }
.content-card:nth-child(6) .content-thumb { background: linear-gradient(135deg, #19c3a6, #65C7F7); }

.content-body { padding: 24px 24px 28px; }
.content-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--white);
  margin-bottom: 8px;
}
.content-desc { color: var(--text-light); font-size: 0.92rem; }

/* ============================================================
   5. IMPACT
   ============================================================ */
.impact {
  background:
    radial-gradient(100% 120% at 80% 0%, #0e3357 0%, transparent 60%),
    var(--navy);
  position: relative;
}
.impact-text {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 56px);
  color: var(--text-light);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(101, 199, 247, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(101, 199, 247, 0.18);
  border-radius: var(--radius);
  padding: 42px 24px 34px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* 上部のアクセントライン（カードごとに色を変えて単調さを避ける） */
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-ocean);
}
.stat:nth-child(2)::before { background: linear-gradient(90deg, #0B8FD9, #19c3a6); }
.stat:nth-child(3)::before { background: var(--grad-sunset); }
.stat:nth-child(4)::before { background: linear-gradient(90deg, #6a5cff, #65C7F7); }
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(101, 199, 247, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}
.stat-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  background: var(--grad-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-suffix { color: var(--sunset); -webkit-text-fill-color: var(--sunset); margin-left: 2px; }
.stat-num--text { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; }
/* 数字とラベルの間の区切り線 */
.stat-label::before {
  content: "";
  display: block;
  width: 38px; height: 2px;
  margin: 18px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky), var(--sunset));
  opacity: 0.75;
}
.stat-label { color: var(--text-light); font-size: 0.95rem; font-weight: 600; }
.stat-label small { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; }

/* ============================================================
   6. MESSAGE
   ============================================================ */
.message { background: var(--sand); }
.message-inner { max-width: 820px; }
.message-body {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 2.1;
  color: var(--text-dark);
  border-left: 4px solid var(--sunset);
  padding-left: clamp(20px, 4vw, 40px);
}
.message-body p + p { margin-top: 1.2em; }
.message-author {
  margin-top: 36px;
  padding-left: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}
.message-org {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: 0.06em;
}
.message-name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 4px;
}

/* ============================================================
   7. SPONSORSHIP
   ============================================================ */
.sponsor { background: var(--white); }
.sponsor-text { max-width: 760px; font-size: 1.02rem; margin-bottom: clamp(36px, 5vw, 56px); }

.sponsor-sub {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--navy);
}
.sponsor-sub--center { text-align: center; margin-top: 52px; }

.sponsor-merits { max-width: 760px; margin-inline: auto; }
.merit-list { margin-bottom: 10px; }
.merit-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.merit-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--sunset);
  font-size: 1rem;
}

/* ----- 協賛プラン表（スマホでは横スクロール） ----- */
.plan-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 143, 217, 0.18);
}
.plan-scroll:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
.plan-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px; /* これより狭い画面では横スクロールになる */
  font-size: 0.85rem;
}
.plan-table th,
.plan-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(21, 50, 74, 0.1);
  border-right: 1px solid rgba(21, 50, 74, 0.06);
}
.plan-table thead th {
  background: var(--navy);
  color: var(--white);
  vertical-align: top;
}
.plan-table thead .plan-row-head { background: var(--navy-2); }
.plan-name { display: block; font-weight: 700; font-size: 0.82rem; margin-bottom: 4px; }
.plan-price {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--sky);
  font-size: 0.9rem;
}
/* 左端の項目名 */
.plan-row-head {
  background: var(--sand);
  font-weight: 700;
  color: var(--navy);
  text-align: left !important;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 1;
}
.plan-table tbody tr:nth-child(odd) td { background: rgba(248, 245, 239, 0.5); }
.plan-yes { color: var(--ocean); font-weight: 700; font-size: 1.1rem; }
.plan-none { color: #b9c4cd; }
.plan-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.9;
}

/* ----- お申し込みの流れ ----- */
.sponsor-flow { max-width: 760px; margin-inline: auto; }
.flow-list { counter-reset: flow; }
.flow-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(21, 50, 74, 0.18);
  align-items: flex-start;
}
.flow-date {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--ocean);
  flex-shrink: 0;
  width: 92px;
  font-size: 0.95rem;
  padding-top: 2px;
}
.flow-item--deadline .flow-date { color: var(--sunset); }
.flow-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.flow-desc { color: var(--text-muted); font-size: 0.92rem; }

.sponsor-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }

/* 協賛ロゴ掲載枠のプレースホルダー */
.sponsor-logos {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-top: 52px;
}
.sponsor-logos-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}
.logo-slot {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px dashed rgba(11, 143, 217, 0.3);
  border-radius: 12px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}
.logo-slot:last-child {
  border-style: solid;
  border-color: var(--sunset);
  color: var(--sunset);
}

/* ============================================================
   7-2. CROWDFUNDING
   ============================================================ */
.crowdfunding {
  background:
    radial-gradient(90% 120% at 80% 0%, #123a5e 0%, transparent 55%),
    var(--navy);
}
.cf-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.cf-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(101, 199, 247, 0.2);
}
.cf-visual img { width: 100%; height: auto; }
.cf-text { color: var(--text-light); margin-bottom: 28px; }

.cf-stats {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(101, 199, 247, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
}
.cf-amount { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cf-current {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cf-goal { color: var(--text-light); font-size: 0.9rem; }
.cf-bar {
  height: 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.cf-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--grad-ocean);
  transition: width 1.4s ease;
}
.cf-percent { color: var(--sky); font-size: 0.85rem; font-weight: 700; margin-top: 10px; }

/* ============================================================
   8. JOIN
   ============================================================ */
.join {
  background:
    radial-gradient(90% 120% at 10% 10%, #0e3357 0%, transparent 55%),
    var(--navy);
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.join-card {
  background: var(--navy-2);
  border: 1px solid rgba(101, 199, 247, 0.14);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.join-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(0,0,0,0.4); }
.join-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(101, 199, 247, 0.18);
  position: absolute;
  top: 18px; right: 24px;
}
.join-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px;
}
.join-jp { color: var(--sky); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; }
.join-desc { color: var(--text-light); font-size: 0.92rem; margin-bottom: 26px; }

/* ============================================================
   9. NEWS
   ============================================================ */
.news { background: var(--sand); }
.news-list { max-width: 840px; }
.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(21, 50, 74, 0.12);
  flex-wrap: wrap;
}
.news-date {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--ocean);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.news-tag {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--ocean);
  padding: 4px 12px;
  border-radius: 100px;
  flex-shrink: 0;
}
.news-text { font-size: 0.98rem; }

/* ============================================================
   10. CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(100% 100% at 50% 0%, #0e3357 0%, transparent 60%),
    var(--navy);
}
.contact-text { max-width: 700px; color: var(--text-light); margin-bottom: clamp(36px, 5vw, 52px); }

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  color: var(--text-light);
}
.contact-info dt {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--sky);
  font-size: 0.85rem;
  white-space: nowrap;
}
.contact-info dd a { color: var(--sunset); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-info dd a:hover { border-color: var(--sunset); }

/* フォーム */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(101, 199, 247, 0.18);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.req {
  font-size: 0.66rem;
  background: var(--sunset);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(101, 199, 247, 0.25);
  background: rgba(7, 26, 45, 0.5);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(101, 199, 247, 0.2);
}
.form-row select option { background: var(--navy); }
.form-row textarea { resize: vertical; }
.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--sky);
  min-height: 1.2em;
}

/* 送信完了パネル（送信成功時にフォームと入れ替わって表示） */
.contact-done {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(101, 199, 247, 0.18);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  animation: doneIn 0.55s ease both;
}
.contact-done[hidden] { display: none; }
.contact-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(101, 199, 247, 0.14);
  border: 1.5px solid var(--sky);
  color: var(--sky);
  font-size: 1.5rem;
  font-weight: 700;
}
.contact-done-title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--white);
  margin-bottom: 14px;
}
.contact-done-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.9;
}
@keyframes doneIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer { background: #04111e; padding: 60px 0 30px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.footer-org { color: var(--sky); font-weight: 700; font-size: 0.9rem; }
.footer-detail { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-content: start; }
.footer-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--sunset); }

.footer-sns { display: flex; gap: 18px; align-content: start; flex-wrap: wrap; }
.footer-sns a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.2s;
}
.footer-sns a:hover { color: var(--navy); background: var(--sky); border-color: var(--sky); }

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 28px;
}

/* ============================================================
   スクロールで要素をふわっと表示するアニメーション
   （JSが .is-visible を付けると表示されます）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 動きを抑えたい人の設定（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   レスポンシブ（タブレット・スマホ対応）
   ============================================================ */

/* タブレット以下 */
@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: 1fr; max-width: 460px; }
  .cf-layout { grid-template-columns: 1fr; gap: 28px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* スマホ */
@media (max-width: 680px) {
  .sp-only { display: inline; }

  /* PCナビを隠して、画面に被せるメニューに切り替え */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(7, 26, 45, 0.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.4rem; padding: 12px 24px; }
  .nav-link--cta { margin-left: 0; margin-top: 10px; }

  .pillar-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-photos { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 14px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }

  /* 協賛プラン表は横スクロールできることを示す余白 */
  .plan-scroll { margin-inline: -4px; }
  .flow-item { flex-direction: column; gap: 6px; }
  .flow-date { width: auto; }
  .sponsor-cta { width: 100%; }
  .sponsor-cta .btn { width: 100%; }

  .hero { padding-top: 110px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }

  .news-item { gap: 12px; }
  .news-text { width: 100%; }

  .footer-inner { flex-direction: column; gap: 24px; }
}

/* とても小さい画面の微調整 */
@media (max-width: 380px) {
  .logo-text { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
}
