/* =========================================================
   Community Bank INZAI (CBI) — Site Style
   Tone: 和モダン × 行政信頼感
   Palette: Navy / Gold / Green / Off-white
   ========================================================= */

:root {
  --c-navy:        #1e3a5f;
  --c-navy-dark:   #14283f;
  --c-navy-soft:   #2c4a72;
  --c-gold:        #c9a55c;
  --c-gold-soft:   #d8b97a;
  --c-green:       #2d5a3d;
  --c-green-soft:  #3f7351;
  --c-bg:          #faf8f3;
  --c-bg-alt:      #f1ece0;
  --c-paper:       #ffffff;
  --c-ink:         #1a2330;
  --c-ink-sub:     #4a5663;
  --c-line:        #e0d9c6;

  /* 2026-07-25 柔らかい印象に統一（明朝＋角ゴシック → 丸ゴシック） */
  --font-serif: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-sans:  "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 6px rgba(20, 40, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 40, 63, 0.10);
  --max-w: 1080px;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-gold); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-navy);
}
.brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand-text { font-size: 16px; letter-spacing: 0.06em; }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.site-nav a {
  color: var(--c-ink);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.site-nav a:hover { color: var(--c-navy); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.nav-external {
  color: var(--c-green);
  font-weight: 700;
}
.site-nav a.nav-external:hover { color: var(--c-green-soft); }
.site-nav a.nav-external::after { background: var(--c-green); }
.site-nav a.nav-tool {
  color: #963f32;
  font-weight: 700;
}
.site-nav a.nav-tool::after { background: #963f32; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px; height: 36px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-navy);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  /* 背景写真は img 要素ではなく背景画像で敷く（img は単独の描画レイヤーになりやすく、
     大きな画像だと右下のタイルが描き残される事象があったため） */
  background: var(--c-navy-dark) url('assets/hero/hero-photo-1600.jpg') center / cover no-repeat;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.05) brightness(1.0);
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at top, rgba(201, 165, 92, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(20, 40, 63, 0.22) 0%, rgba(20, 40, 63, 0.48) 100%);
  pointer-events: none;
}
.hero-inner {
  text-align: center;
  position: relative;
  z-index: 3;
}
.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: #faf8f3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(201, 165, 92, 0.35);
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-gold-soft);
  margin: 0 0 16px;
  font-weight: 500;
}
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(28px, 5vw, 46px);
  margin: 0 0 20px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
/* 1000px 以上：ゆびロゴ＋「印西「このゆびとまれ」プロジェクト」を横1行に。
   46px 時の必要幅は実測 866px（テキスト805 + アイコン50 + gap10）。
   960px でも収まるが余裕が31pxしかないため、フォント差で崩れないよう1000pxを閾値にする */
@media (min-width: 1000px) {
  .hero-title-br { display: none; }
}
/* 1000px 未満：縦積みにして
   1行目 ゆびロゴ（中央）／2行目「印西「このゆびとまれ」」／3行目「プロジェクト」 */
@media (max-width: 999px) {
  .hero-title {
    flex-direction: column;
    gap: 4px;
  }
}
/* 狭い端末では 28px のままだと「印西「このゆびとまれ」」が語の途中で折り返す
   （320px 幅で必要 317px > 使える 272px）。1行に収まる範囲まで縮める */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(22px, 7vw, 28px);
  }
}
.hero-title-icon {
  height: 1.5em;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 36px;
  font-family: var(--font-serif);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-cta .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.hero-cta .btn-ghost:hover {
  background: #ffffff;
  color: var(--c-navy);
  border-color: #ffffff;
}
.hero-cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  margin: -18px 0 24px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform .15s, box-shadow .25s, background .25s, color .25s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--c-navy-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-ghost:hover {
  background: var(--c-navy);
  color: #fff;
}

/* ---------- Section common ---------- */
.section {
  padding: 88px 0;
  position: relative;
}
.section-about   { background: var(--c-paper); }
.section-join    { background: var(--c-bg); }
.section-report  { background: var(--c-paper); }
.section-docs    { background: var(--c-bg-alt); }
.section-contact { background: var(--c-paper); }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--c-gold);
  margin: 0 0 8px;
  font-weight: 700;
}
.section-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--c-gold);
}
.section-lead {
  font-size: 16px;
  color: var(--c-ink-sub);
  max-width: 720px;
  margin: 0 0 48px;
}

/* ---------- About cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-soft));
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
/* CBIが目指す3つのこと（番号バッジ＋アクセント色） */
.card-icon.goal-1 { background: #3a8f4f; color: #fff; }
.card-icon.goal-2 { background: #ef8a2b; color: #fff; }
.card-icon.goal-3 { background: #3d7bbf; color: #fff; }
.card h3 .goal-label-1 { color: #2e7d43; }
.card h3 .goal-label-2 { color: #e07b1a; }
.card h3 .goal-label-3 { color: #2f6cad; }
.card p {
  font-size: 14px;
  color: var(--c-ink-sub);
  margin: 0;
  line-height: 1.8;
}

/* ---------- Key-value block ---------- */
.kv-block {
  background: var(--c-bg);
  border-left: 4px solid var(--c-gold);
  padding: 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.kv {
  margin: 0;
  display: grid;
  gap: 12px;
}
.kv > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-line);
}
.kv > div:last-child { border-bottom: none; padding-bottom: 0; }
.kv dt {
  font-weight: 700;
  color: var(--c-navy);
  font-size: 14px;
  margin: 0;
}
.kv dd {
  margin: 0;
  font-size: 14px;
  color: var(--c-ink);
}

/* ---------- Join ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.join-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px;
  border-top: 4px solid var(--c-green);
}
.join-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.join-card p {
  color: var(--c-ink-sub);
  font-size: 14px;
  margin: 0 0 20px;
}
.join-card .btn { margin-bottom: 12px; }
.join-card .note,
.section .note {
  font-size: 12px;
  color: var(--c-ink-sub);
  margin: 0;
  opacity: 0.8;
}
.join-card .talent-bank-counter {
  background: rgba(45, 90, 61, 0.06);
  border-left: 3px solid var(--c-green);
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--c-ink);
  border-radius: 0 6px 6px 0;
}
.join-card .talent-bank-counter strong {
  color: var(--c-green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin: 0 3px;
}

/* ---------- Report / News ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--c-line);
}
.news-list li {
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--c-line);
  align-items: center;
  font-size: 14px;
}
.news-date {
  font-family: var(--font-serif);
  color: var(--c-navy);
  font-weight: 500;
  font-size: 13px;
}
.news-tag {
  display: inline-block;
  text-align: center;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tag-info  { background: #e8f0f7; color: var(--c-navy); }
.tag-event { background: #f5ecd9; color: #8a6a2a; }
.tag-doc   { background: #e6efe9; color: var(--c-green); }
.tag-soon  { background: #f0e9da; color: var(--c-gold); }
.news-text { color: var(--c-ink); }
.news-placeholder { opacity: 0.7; }

/* ---------- Docs ---------- */
.docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.docs-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--c-paper);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  transition: transform .15s, border-color .2s, box-shadow .25s;
}
.docs-list a:hover {
  transform: translateX(4px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-sm);
}
.doc-icon {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-soft));
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.doc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-title {
  font-weight: 700;
  color: var(--c-navy);
  font-size: 15px;
}
.doc-desc {
  font-size: 13px;
  color: var(--c-ink-sub);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-block {
  background: var(--c-bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.contact-block h3 {
  font-size: 18px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-gold);
  display: inline-block;
}
.contact-block p {
  font-size: 14px;
  color: var(--c-ink-sub);
  margin: 0 0 20px;
}
.contact-block .btn { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  object-fit: cover;
}
.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #fff;
}
.footer-tagline {
  font-size: 12px;
  margin: 4px 0 0;
  color: var(--c-gold-soft);
}
.footer-copy {
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}
.footer-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.25);
}
/* フッターのQR。PCで見ている人がスマホに持ち替えるとき／画面を見せて読み取ってもらうとき用。
   SVG は A0ポスター（poster/cbi-poster-a0.html）と同じ assets/qr-site.svg を共用する */
.footer-qr {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-qr-img {
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.footer-qr-text {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}
.footer-qr-text span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
}
.footer-admin-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: color .2s;
}
.footer-admin-link:hover {
  color: var(--c-gold-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .kv dt { font-size: 12px; color: var(--c-gold); }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--c-paper);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--c-line);
  }
  .site-nav a:last-child { border-bottom: none; }

  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-logo-wrap { width: 100px; height: 100px; }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .news-tag { justify-self: start; }

  .docs-list a { padding: 16px; gap: 14px; }
  .doc-icon { width: 44px; height: 44px; font-size: 12px; }
}

/* ---------- Tooltip（用語のホバー／タップ説明） ---------- */
.tip {
  position: relative;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}
.tip::after {
  /* display:none で隠す（visibility:hidden だと横スクロール領域を広げてしまう） */
  content: attr(data-tip);
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 62vw);
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 60;
}
.tip:hover::after,
.tip:focus::after {
  display: block;
}
/* カード内では左寄せで出す（画面左端での見切れ防止） */
.join-card .tip::after {
  left: 0;
  transform: none;
}
/* 吹き出しを出している間はそのカードを前面へ（隣のカードに隠れないように） */
.join-card {
  position: relative;
}
.join-card:hover,
.join-card:focus-within {
  z-index: 5;
}

/* ---------- 動きの演出（スクロール出現・ヒーローズーム） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  /* 出現後は will-change を外す。残すとカードがスタッキングコンテキストになり、
     中の吹き出し（.tip::after / z-index:60）が隣のカードに隠れて切れる */
  will-change: auto;
}
/* グリッド内カードは少しずつ遅らせて順に出す */
.grid-3 > .reveal:nth-child(2) { transition-delay: .12s; }
.grid-3 > .reveal:nth-child(3) { transition-delay: .24s; }


@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 常時動き続ける演出 ---------- */
/* 登録ボタンの脈動（波紋がふわっと広がる） */
.hero-cta .btn-primary { position: relative; }
.hero-cta .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(201, 165, 92, 0.55);
  pointer-events: none;
  animation: ctaPulse 2.4s ease-out infinite;
}
@keyframes ctaPulse {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}

/* カード番号バッジのふわふわ浮遊（1→2→3の順で波打つ） */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.card-icon { animation: floatY 3.6s ease-in-out infinite; }
.grid-3 > *:nth-child(2) .card-icon { animation-delay: 1.2s; }
.grid-3 > *:nth-child(3) .card-icon { animation-delay: 2.4s; }

/* ヒーローの太陽と月（1日=180秒、開いた実時刻の空から始まる。位相は --sky-delay で同期） */
.hero-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
/* 空の色：全画面レイヤーはアニメーションさせない（合成タイル欠けの原因になるため）。
   色は script.js が1秒ごとに直接更新する */
.sky-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: transparent;
}
/* 夜だけ現れる星（--stars-opacity を script.js が更新）。
   大きさ別に3層へ分け、周期も開始タイミングもずらして不規則に瞬かせる */
.sky-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--stars-opacity, 0);
}
.sky-stars span {
  position: absolute;
  inset: 0;
  display: block;
}
.sky-stars-a {
  background-image:
    radial-gradient(9.7px 9.7px at 91.6% 58.9%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(8.6px 8.6px at 59.0% 27.4%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(7.7px 7.7px at 19.8% 28.7%, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.87) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(9.1px 9.1px at 3.4% 7.1%, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.87) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(8.1px 8.1px at 51.2% 46.1%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(9.0px 9.0px at 77.7% 37.3%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(9.3px 9.3px at 96.1% 23.8%, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.87) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(7.9px 7.9px at 57.1% 41.6%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%);
  animation: starTwinkleA 5.3s ease-in-out infinite;
  animation-delay: 0s;
}
.sky-stars-b {
  background-image:
    radial-gradient(5.6px 5.6px at 47.5% 45.1%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.79) 16%, rgba(214,230,255,0.37) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(4.6px 4.6px at 64.0% 12.9%, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.77) 16%, rgba(214,230,255,0.36) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(4.5px 4.5px at 81.0% 13.7%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.74) 16%, rgba(214,230,255,0.34) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(5.5px 5.5px at 4.8% 18.5%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(4.9px 4.9px at 33.4% 24.2%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.77) 16%, rgba(214,230,255,0.36) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(4.8px 4.8px at 77.2% 34.9%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.74) 16%, rgba(214,230,255,0.34) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(6.1px 6.1px at 77.8% 44.4%, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.76) 16%, rgba(214,230,255,0.35) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(5.6px 5.6px at 54.5% 57.1%, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.87) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(4.3px 4.3px at 17.4% 60.5%, rgba(255,255,255,0.87) 0%, rgba(255,255,255,0.78) 16%, rgba(214,230,255,0.37) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(5.8px 5.8px at 3.3% 50.6%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(5.4px 5.4px at 79.9% 58.9%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 16%, rgba(214,230,255,0.41) 34%, rgba(214,230,255,0.13) 58%, transparent 100%),
    radial-gradient(6.4px 6.4px at 74.4% 22.8%, rgba(255,255,255,0.87) 0%, rgba(255,255,255,0.78) 16%, rgba(214,230,255,0.37) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(5.3px 5.3px at 19.9% 6.6%, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.76) 16%, rgba(214,230,255,0.35) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(4.7px 4.7px at 92.5% 59.0%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.74) 16%, rgba(214,230,255,0.34) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(5.5px 5.5px at 52.8% 12.2%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(6.3px 6.3px at 25.8% 27.3%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.79) 16%, rgba(214,230,255,0.37) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(6.1px 6.1px at 34.6% 55.5%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(5.8px 5.8px at 68.4% 26.8%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(4.9px 4.9px at 63.7% 16.3%, rgba(255,255,255,0.87) 0%, rgba(255,255,255,0.78) 16%, rgba(214,230,255,0.37) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(5.5px 5.5px at 76.6% 35.4%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(5.0px 5.0px at 11.6% 39.9%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.81) 16%, rgba(214,230,255,0.38) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(6.4px 6.4px at 82.9% 16.9%, rgba(255,255,255,0.81) 0%, rgba(255,255,255,0.73) 16%, rgba(214,230,255,0.34) 34%, rgba(214,230,255,0.11) 58%, transparent 100%),
    radial-gradient(4.7px 4.7px at 56.1% 34.5%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.81) 16%, rgba(214,230,255,0.38) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(5.9px 5.9px at 47.1% 29.0%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.72) 16%, rgba(214,230,255,0.34) 34%, rgba(214,230,255,0.10) 58%, transparent 100%),
    radial-gradient(4.5px 4.5px at 38.0% 49.1%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 16%, rgba(214,230,255,0.40) 34%, rgba(214,230,255,0.12) 58%, transparent 100%),
    radial-gradient(4.6px 4.6px at 21.0% 42.9%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.79) 16%, rgba(214,230,255,0.37) 34%, rgba(214,230,255,0.11) 58%, transparent 100%);
  animation: starTwinkleB 8.1s ease-in-out infinite;
  animation-delay: -2.7s;
}
.sky-stars-c {
  background-image:
    radial-gradient(3.4px 3.4px at 42.4% 6.9%, rgba(255,255,255,0.67) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 68.5% 34.3%, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(2.7px 2.7px at 30.2% 55.9%, rgba(255,255,255,0.81) 0%, rgba(255,255,255,0.41) 34%, transparent 100%),
    radial-gradient(3.5px 3.5px at 85.6% 31.9%, rgba(255,255,255,0.74) 0%, rgba(255,255,255,0.37) 34%, transparent 100%),
    radial-gradient(3.0px 3.0px at 60.3% 19.5%, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.31) 34%, transparent 100%),
    radial-gradient(3.0px 3.0px at 30.6% 59.6%, rgba(255,255,255,0.64) 0%, rgba(255,255,255,0.32) 34%, transparent 100%),
    radial-gradient(3.2px 3.2px at 42.1% 51.0%, rgba(255,255,255,0.69) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(2.7px 2.7px at 26.0% 18.7%, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.29) 34%, transparent 100%),
    radial-gradient(3.2px 3.2px at 26.9% 53.1%, rgba(255,255,255,0.54) 0%, rgba(255,255,255,0.27) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 46.3% 9.3%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.33) 34%, transparent 100%),
    radial-gradient(3.6px 3.6px at 85.1% 17.6%, rgba(255,255,255,0.59) 0%, rgba(255,255,255,0.29) 34%, transparent 100%),
    radial-gradient(2.7px 2.7px at 97.3% 40.1%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.39) 34%, transparent 100%),
    radial-gradient(2.8px 2.8px at 28.0% 23.7%, rgba(255,255,255,0.79) 0%, rgba(255,255,255,0.40) 34%, transparent 100%),
    radial-gradient(3.1px 3.1px at 9.9% 46.3%, rgba(255,255,255,0.74) 0%, rgba(255,255,255,0.37) 34%, transparent 100%),
    radial-gradient(3.7px 3.7px at 29.7% 6.7%, rgba(255,255,255,0.73) 0%, rgba(255,255,255,0.36) 34%, transparent 100%),
    radial-gradient(3.7px 3.7px at 17.6% 60.6%, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.28) 34%, transparent 100%),
    radial-gradient(2.8px 2.8px at 2.9% 38.7%, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.38) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 46.9% 44.5%, rgba(255,255,255,0.77) 0%, rgba(255,255,255,0.39) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 81.5% 38.2%, rgba(255,255,255,0.61) 0%, rgba(255,255,255,0.30) 34%, transparent 100%),
    radial-gradient(3.6px 3.6px at 14.1% 7.5%, rgba(255,255,255,0.57) 0%, rgba(255,255,255,0.28) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 42.8% 21.0%, rgba(255,255,255,0.69) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(3.0px 3.0px at 85.2% 28.2%, rgba(255,255,255,0.73) 0%, rgba(255,255,255,0.36) 34%, transparent 100%),
    radial-gradient(3.0px 3.0px at 74.0% 57.5%, rgba(255,255,255,0.81) 0%, rgba(255,255,255,0.41) 34%, transparent 100%),
    radial-gradient(2.8px 2.8px at 97.2% 60.9%, rgba(255,255,255,0.63) 0%, rgba(255,255,255,0.32) 34%, transparent 100%),
    radial-gradient(2.6px 2.6px at 76.9% 51.9%, rgba(255,255,255,0.64) 0%, rgba(255,255,255,0.32) 34%, transparent 100%),
    radial-gradient(3.2px 3.2px at 72.0% 47.5%, rgba(255,255,255,0.57) 0%, rgba(255,255,255,0.28) 34%, transparent 100%),
    radial-gradient(3.0px 3.0px at 40.9% 5.5%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.33) 34%, transparent 100%),
    radial-gradient(3.1px 3.1px at 81.6% 37.4%, rgba(255,255,255,0.59) 0%, rgba(255,255,255,0.29) 34%, transparent 100%),
    radial-gradient(3.1px 3.1px at 31.9% 42.2%, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.28) 34%, transparent 100%),
    radial-gradient(3.8px 3.8px at 81.5% 36.5%, rgba(255,255,255,0.69) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 62.1% 27.7%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.41) 34%, transparent 100%),
    radial-gradient(3.1px 3.1px at 97.2% 41.7%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.26) 34%, transparent 100%),
    radial-gradient(3.1px 3.1px at 83.3% 25.5%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.26) 34%, transparent 100%),
    radial-gradient(3.8px 3.8px at 4.3% 25.4%, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.38) 34%, transparent 100%),
    radial-gradient(2.9px 2.9px at 70.5% 42.1%, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.28) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 60.0% 5.8%, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(2.7px 2.7px at 54.2% 9.3%, rgba(255,255,255,0.67) 0%, rgba(255,255,255,0.34) 34%, transparent 100%),
    radial-gradient(3.0px 3.0px at 15.3% 40.5%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.36) 34%, transparent 100%),
    radial-gradient(3.2px 3.2px at 74.5% 38.4%, rgba(255,255,255,0.57) 0%, rgba(255,255,255,0.28) 34%, transparent 100%),
    radial-gradient(2.9px 2.9px at 35.0% 60.7%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.30) 34%, transparent 100%),
    radial-gradient(3.5px 3.5px at 49.3% 34.8%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.30) 34%, transparent 100%),
    radial-gradient(3.5px 3.5px at 95.4% 3.3%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 34%, transparent 100%),
    radial-gradient(3.4px 3.4px at 89.3% 11.2%, rgba(255,255,255,0.83) 0%, rgba(255,255,255,0.41) 34%, transparent 100%),
    radial-gradient(3.7px 3.7px at 66.4% 8.7%, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.42) 34%, transparent 100%),
    radial-gradient(2.7px 2.7px at 11.9% 51.6%, rgba(255,255,255,0.53) 0%, rgba(255,255,255,0.27) 34%, transparent 100%),
    radial-gradient(3.7px 3.7px at 78.9% 45.2%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.36) 34%, transparent 100%),
    radial-gradient(3.3px 3.3px at 51.1% 18.3%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.42) 34%, transparent 100%),
    radial-gradient(2.8px 2.8px at 64.4% 54.5%, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.38) 34%, transparent 100%);
  animation: starTwinkleC 11.7s ease-in-out infinite;
  animation-delay: -5.1s;
}
@keyframes starTwinkleA {
  0%, 100% { opacity: 1; }
  18%      { opacity: 0.45; }
  32%      { opacity: 1; }
  61%      { opacity: 0.62; }
  74%      { opacity: 0.95; }
}
@keyframes starTwinkleB {
  0%, 100% { opacity: 0.85; }
  23%      { opacity: 0.35; }
  41%      { opacity: 0.95; }
  58%      { opacity: 0.5; }
  83%      { opacity: 0.9; }
}
@keyframes starTwinkleC {
  0%, 100% { opacity: 0.7; }
  14%      { opacity: 0.95; }
  37%      { opacity: 0.3; }
  55%      { opacity: 0.8; }
  78%      { opacity: 0.45; }
}
/* 太陽本体：中心の白熱＋実際の太陽に近い多層の光暈（グロー放射） */
.hero-sun {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle,
    #ffffff 0%,
    rgba(255, 253, 244, 0.95) 22%,
    rgba(255, 249, 226, 0.62) 38%,
    rgba(255, 247, 216, 0.36) 52%,
    rgba(255, 247, 216, 0.18) 65%,
    rgba(255, 247, 216, 0.08) 78%,
    rgba(255, 247, 216, 0.03) 90%,
    rgba(255, 247, 216, 0) 100%);
  left: 0;
  bottom: 0;
  opacity: 0;
  will-change: transform;
}
/* 太陽の放射：筋を作らず、中心から均一になめらかに減衰する光 */
.hero-sun::before {
  content: '';
  position: absolute;
  inset: -130px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 250, 228, 0.40) 0%,
    rgba(255, 250, 228, 0.30) 14%,
    rgba(255, 250, 228, 0.21) 27%,
    rgba(255, 250, 228, 0.14) 39%,
    rgba(255, 250, 228, 0.09) 51%,
    rgba(255, 250, 228, 0.055) 62%,
    rgba(255, 250, 228, 0.03) 73%,
    rgba(255, 250, 228, 0.012) 84%,
    rgba(255, 250, 228, 0) 96%);
}
/* 月本体：NASA LRO の満月写真（パブリックドメイン・背景透過PNG） */
.hero-moon {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: url('assets/moon.png?v=4') center / cover no-repeat;
  left: 0;
  bottom: 0;
  opacity: 0;
  will-change: transform;
}
/* 正午：太陽がロゴの真後ろに来た瞬間、CBIロゴがふわっと光る */
.hero-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  animation: logoFlash 180s linear infinite;
  animation-delay: var(--sky-delay, 0s);
}
.hero-logo-wrap .hero-logo {
  width: 100%;
  height: 100%;
  margin: 0;
}
/* 正午・0時のフラッシュ：ロゴ表面が白く輝く光の膜（opacityのみ＝描画抜けを起こさない） */
.hero-logo-flare {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 76%);
  opacity: 0;
  pointer-events: none;
  animation: logoFlare 180s linear infinite;
  animation-delay: var(--sky-delay, 0s);
}
@keyframes logoFlare {
  0%        { opacity: 0.72; }
  1.5%      { opacity: 0.95; }
  3.5%, 46.5% { opacity: 0; }
  48.5%     { opacity: 0.95; }
  50%       { opacity: 0.68; }
  51.5%     { opacity: 0.95; }
  53.5%, 96.5% { opacity: 0; }
  98.5%     { opacity: 0.95; }
  100%      { opacity: 0.72; }
}
/* 光は .logo-burst（opacityのみ）が担当。ロゴ本体は transform だけ動かす
   （filter アニメーションは再描画を誘発し、描画抜けの原因になるため使わない） */
@keyframes logoFlash {
  0%        { transform: scale(1.05); }
  1.5%      { transform: scale(1.07); }
  3.5%, 46.5% { transform: scale(1); }
  48.5%     { transform: scale(1.07); }
  50%       { transform: scale(1.04); }
  51.5%     { transform: scale(1.07); }
  53.5%, 96.5% { transform: scale(1); }
  98.5%     { transform: scale(1.07); }
  100%      { transform: scale(1.05); }
}
/* ロゴ背後で広がる光（opacityアニメのみ＝GPU負荷が極小） */
.logo-burst {
  position: absolute;
  left: 50%;
  bottom: calc(72% - 126px);
  width: 340px;
  height: 340px;
  margin-left: -170px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.logo-burst-sun {
  background: radial-gradient(circle,
    rgba(255, 250, 220, 0.95) 0%, rgba(255, 246, 200, 0.5) 30%,
    rgba(255, 246, 200, 0.18) 50%, rgba(255, 246, 200, 0) 72%);
  animation: logoBurstSun 180s linear infinite;
  animation-delay: var(--sky-delay, 0s);
}
.logo-burst-moon {
  background: radial-gradient(circle,
    rgba(220, 232, 255, 0.95) 0%, rgba(196, 214, 255, 0.5) 30%,
    rgba(196, 214, 255, 0.18) 50%, rgba(196, 214, 255, 0) 72%);
  animation: logoBurstMoon 180s linear infinite;
  animation-delay: var(--sky-delay, 0s);
}
@keyframes logoBurstSun {
  0%, 46.5% { opacity: 0; }
  48.5%     { opacity: 1; }
  50%       { opacity: 0.7; }
  51.5%     { opacity: 1; }
  53.5%, 100% { opacity: 0; }
}
@keyframes logoBurstMoon {
  0%        { opacity: 0.8; }
  1.5%      { opacity: 1; }
  3.5%, 96.5% { opacity: 0; }
  98.5%     { opacity: 1; }
  100%      { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-primary::after,
  .card-icon,
  .hero-logo-wrap { animation: none; }
  .hero-logo-flare { animation: none; opacity: 0; }
  .sky-tint { background-color: transparent; }
  .hero-deco::after,
  .hero-sun,
  .hero-moon,
  .logo-burst { animation: none; opacity: 0; }
}

/* ---------- 会員種別でできること ---------- */
.member-plans { margin-top: 40px; }
.member-plans-title,
.guide-links-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 16px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}
.plan-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.plan-card-main {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}
.plan-name {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
}
.plan-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-ink-sub);
}
.plan-plus {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
}
.plan-list {
  margin: 0;
  padding-left: 1.3em;
  font-size: 15px;
  line-height: 2;
}
.plan-free {
  margin: 18px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-green);
}

/* ---------- 機能別ガイドへの導線 ---------- */
.guide-links { margin-top: 44px; }
.guide-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.guide-link {
  display: block;
  padding: 18px 20px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-link:hover,
.guide-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}
.guide-link-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
}
.guide-link-desc {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-ink-sub);
}

@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
  .guide-link-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .guide-link-grid { grid-template-columns: 1fr; }
}

/* ---------- 機能別ガイドページ（guide 配下） ---------- */
.guide-hero {
  background: linear-gradient(180deg, var(--c-navy-dark) 0%, var(--c-navy) 100%);
  color: #fff;
  padding: 104px 0 64px;
  text-align: center;
}
.guide-breadcrumb {
  margin: 0 0 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.guide-breadcrumb a { color: var(--c-gold-soft); }
.guide-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.5;
}
.guide-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}
.guide-steps {
  list-style: none;
  counter-reset: gstep;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.guide-steps > li {
  counter-increment: gstep;
  position: relative;
  padding: 22px 26px 22px 76px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.guide-steps > li::before {
  content: counter(gstep);
  position: absolute;
  left: 24px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
}
.guide-step-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-ink-sub);
}
.guide-media {
  margin-top: 40px;
  padding: 34px 24px;
  text-align: center;
  background: var(--c-bg-alt);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink-sub);
}
.guide-media-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-gold);
}
.guide-media p { margin: 0; font-size: 13px; }
.guide-cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.guide-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-ink-sub);
  text-align: center;
}
.guide-other { margin-top: 56px; }

@media (max-width: 640px) {
  .guide-steps > li { padding: 20px; }
  .guide-steps > li::before { position: static; margin-bottom: 10px; }
}

/* スマホ：月とロゴのサイズを合わせる（軌道は script.js が計算） */
@media (max-width: 860px) {
  .hero-moon { width: 100px; height: 100px; }
  .logo-burst { bottom: calc(78% - 126px); }
}

/* ---------- ヒーロー下部の海（さざなみ＋太陽・月の水面反射） ---------- */
.hero-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  /* 雲海：上端は空になじませ、手前ほど濃く白い霧。
     重ねたぼかし円で雲の起伏を表現する（静止・負荷ゼロ） */
  background:
    radial-gradient(60% 130% at 12% 100%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(48% 120% at 38% 100%, rgba(248,251,255,0.90) 0%, rgba(248,251,255,0) 72%),
    radial-gradient(66% 140% at 63% 100%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(52% 125% at 88% 100%, rgba(246,250,255,0.88) 0%, rgba(246,250,255,0) 72%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(238, 243, 250, 0.55) 34%,
      rgba(228, 235, 246, 0.88) 100%);
}
@media (max-width: 860px) {
  .hero-sea { height: 13%; }
}

/* WebGL 水面（sea.js）。使える環境ではこちらが海を描き、CSS版のさざなみ・反射は隠す */
.sea-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* opacityを1未満にすると、Windowsのオーバーレイ合成（MPO）による
     灰色矩形の残留を避けられることがある（見た目への影響はない） */
  opacity: 0.999;
}
.has-sea-webgl .hero-sea {
  background: none;
}


/* 雲海と重なっても読めるよう、ヒーロー下部の文字に影を付ける */
.hero-cta-note {
  text-shadow: 0 1px 6px rgba(20, 40, 63, 0.55), 0 0 18px rgba(20, 40, 63, 0.35);
}

/* 手の切り抜き：文字の後ろ・雲海より前に重ねる（元写真と同じ配置で位置ズレなし） */
.hero-hand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

/* 手の影：手の形にマスクした色レイヤー。向き・濃さは script.js が太陽の位置から毎秒更新 */
.hero-hand-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: url('assets/hero/hero-hand.webp?v=1');
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
  mask-image: url('assets/hero/hero-hand.webp?v=1');
  mask-size: cover;
  mask-position: center;
}

/* ---------- ボタンの押した実感（押下→処理中の2段フィードバック） ---------- */
.btn {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
/* 1. 押した瞬間：軽く沈む */
.btn:active {
  transform: translateY(1px) scale(0.978);
}
/* 2. 押した位置から広がる波紋（リップル） */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.32;
  transform: scale(0);
  pointer-events: none;
  animation: btnRipple .55s cubic-bezier(.22,.61,.36,1) forwards;
}
.btn-primary .btn-ripple { background: #fff; opacity: 0.28; }
@keyframes btnRipple {
  to { transform: scale(1); opacity: 0; }
}
/* 3. 処理中：ラベルを薄くしてスピナーを出す */
.btn-label { display: inline-flex; align-items: center; gap: 6px; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn-label { opacity: 0.5; }
.btn-spinner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: btnSpin .62s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
/* 4. 完了：一瞬チェックを見せる（押した結果が伝わるように） */
.btn.is-done .btn-label::after {
  content: ' ✓';
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .btn-ripple { display: none; }
  .btn-spinner { animation: none; }
}
