/* =========================================================================
   1. 3カラーテーマ変数（MOMO / SUIKA / SEED）
   ========================================================================= */
:root,
[data-theme="momo"] {
  --bg: #FFF8F9;
  --bg-soft: #FFEFF2;
  --surface: #FFFFFF;
  --surface-sub: #FFF5F7;
  --primary: #F25C78;
  --primary-dark: #D9425E;
  --primary-light: #FFE4EA;
  --accent: #22A87A;
  --accent-soft: #E6F7F1;
  --text: #2B2627;
  --text-sub: #6D6265;
  --border: #F5DCE1;
  --shadow: 0 12px 30px rgba(242, 92, 120, 0.12);
  --shadow-sm: 0 4px 14px rgba(43, 38, 39, 0.06);
  --badge-bg: #FFE8ED;
  --badge-text: #D9425E;
  --dashed-border: #F5A3B3;
}

[data-theme="suika"] {
  --bg: #F4FBF8;
  --bg-soft: #E5F6F0;
  --surface: #FFFFFF;
  --surface-sub: #F2FAF7;
  --primary: #179E76;
  --primary-dark: #0F7E5D;
  --primary-light: #DCF4EC;
  --accent: #F25C78;
  --accent-soft: #FFE8ED;
  --text: #1E2B27;
  --text-sub: #5B6E68;
  --border: #D2EDE4;
  --shadow: 0 12px 30px rgba(23, 158, 118, 0.12);
  --shadow-sm: 0 4px 14px rgba(30, 43, 39, 0.06);
  --badge-bg: #DCF4EC;
  --badge-text: #0F7E5D;
  --dashed-border: #7AD0B5;
}

[data-theme="seed"] {
  --bg: #F6F5F3;
  --bg-soft: #ECEAE6;
  --surface: #FFFFFF;
  --surface-sub: #F3F2EF;
  --primary: #2D2D2F;
  --primary-dark: #161618;
  --primary-light: #E6E5E2;
  --accent: #4A4A4E;
  --accent-soft: #ECEBE8;
  --text: #1F1F21;
  --text-sub: #66666A;
  --border: #DFDDD8;
  --shadow: 0 12px 30px rgba(31, 31, 33, 0.09);
  --shadow-sm: 0 4px 14px rgba(31, 31, 33, 0.06);
  --badge-bg: #E6E5E2;
  --badge-text: #2D2D2F;
  --dashed-border: #A8A7A2;
}

/* =========================================================================
   2. ベース＆リセット
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* スイカロゴのテーマ連動切替（SEED時はモノクロ線画） */
.logo-img { display: inline-block; height: auto; }

/* =========================================================================
   3. ヘッダー（軽量・スリムなスマホ2段構成／PC1段構成）
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand-link img { width: 30px; height: auto; flex-shrink: 0; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.header-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.header-theme-wrap {
  display: flex;
  justify-content: center;
}
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.75);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.theme-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.theme-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.theme-btn[data-set-theme="momo"] .dot { background: #F25C78; }
.theme-btn[data-set-theme="suika"] .dot { background: #179E76; }
.theme-btn[data-set-theme="seed"] .dot { background: #2D2D2F; }
.theme-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.theme-btn.active .dot { background: #fff; }

@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 11px 24px;
  }
  .header-top { display: contents; }
  .brand-link { order: 1; font-size: 1.12rem; }
  .header-theme-wrap { order: 2; }
  .header-actions { order: 3; }
  .header-cta { font-size: 0.84rem; padding: 8px 18px; }
}

/* =========================================================================
   4. ファーストビュー（深呼吸できる余白設計：4拍子＋スマホデモ）
   ========================================================================= */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 52%, #FFFFFF 100%);
  transition: background 0.35s ease;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 52px;
  }
}
.hero-copy {
  text-align: center;
  padding: 4px;
}
@media (min-width: 880px) {
  .hero-copy { text-align: left; padding: 0; }
}
.hero-speech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 4px;
  border-bottom: 1.5px dashed var(--dashed-border);
  opacity: 0.92;
}
.hero-title {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(2.05rem, 6.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.32;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}
.hero-summary {
  font-size: 0.96rem;
  color: var(--text-sub);
  font-weight: 400;
  line-height: 1.9;
  margin: 0 auto 28px;
  max-width: 31em;
}
@media (min-width: 880px) {
  .hero-summary { margin: 0 0 32px; }
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 880px) {
  .hero-actions { justify-content: flex-start; }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.96rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); }

/* =========================================================================
   5. スマホ画面インタラクティブデモ（カード色変え＆裏返し → お風呂そうじ）
   ========================================================================= */
.phone-demo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 96px;
}
.demo-fictional-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-sub);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.phone-frame {
  width: 100%;
  max-width: 356px;
  background: var(--bg);
  border-radius: 34px;
  border: 7px solid #242426;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.13);
  overflow: hidden;
  transition: background-color 0.35s ease;
}
.phone-notch {
  width: 92px;
  height: 16px;
  background: #242426;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 6px;
}
.phone-body {
  padding: 6px 14px 18px;
}
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.phone-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.88rem;
}
.phone-brand img { width: 24px; height: auto; }
.phone-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  padding: 7px 12px;
  border-radius: 13px;
  margin-bottom: 10px;
}
.phone-child-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}
.phone-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.phone-bal-right {
  text-align: right;
}
.phone-bal-label {
  font-size: 0.62rem;
  color: var(--text-sub);
  font-weight: 700;
  display: block;
  line-height: 1.1;
}
.phone-bal-val {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}
.phone-bal-val.pop {
  transform: scale(1.16);
  color: var(--primary);
}
.phone-plus-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.phone-plus-pill.show { opacity: 1; }

/* スマホ内のめくれるSUIKA CARD */
.phone-card-stage {
  perspective: 900px;
  width: 100%;
  height: 162px;
  margin-bottom: 8px;
  cursor: pointer;
}
.phone-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-card-3d.is-flipped { transform: rotateY(180deg); }
.phone-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.phone-card-back { transform: rotateY(180deg); }
.phone-card-3d.c-pink .phone-card-face { background: linear-gradient(135deg, #FF7796, #F04B6E); }
.phone-card-3d.c-mint .phone-card-face { background: linear-gradient(135deg, #28B88A, #138862); }
.phone-card-3d.c-blue .phone-card-face { background: linear-gradient(135deg, #3DA5F5, #1D75CC); }
.phone-card-3d.c-black .phone-card-face { background: linear-gradient(135deg, #32363C, #191B1F); }
.phone-card-frame {
  position: absolute;
  inset: 8px;
  border-radius: 11px;
  border: 1.2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.phone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}
.phone-card-sub {
  font-size: 0.58rem;
  opacity: 0.9;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.phone-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
}
.phone-ic-chip {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ECEFF2, #BDC3CC);
}

.phone-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.vdot-group {
  display: flex;
  align-items: center;
  gap: 7px;
}
.vdot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.vdot:hover { transform: scale(1.12); }
.vdot.active { box-shadow: 0 0 0 2.5px var(--primary); transform: scale(1.1); }
.vdot.d-pink { background: #F25C78; }
.vdot.d-mint { background: #179E76; }
.vdot.d-blue { background: #2B92E8; }
.vdot.d-black { background: #26292D; }
.phone-flip-hint {
  border: none;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* スマホ内：お風呂そうじ記録→親子会話ステップ */
.phone-step-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.phone-step-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.phone-step-text {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.45;
}
.phone-chore-btn {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.phone-chore-btn:hover { background: var(--primary-dark); }
.phone-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.phone-choice-btn {
  padding: 10px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  background: var(--surface-sub);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}
.phone-choice-btn:hover { background: var(--primary); color: #fff; }
.phone-talk-res {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 8px;
}
.phone-reset-btn {
  width: 100%;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================================
   6. デモ直後のストーリーカード＆共通セクション余白リズム
   ========================================================================= */
.origin-story-section {
  padding: 36px 0 72px;
  background: #FFFFFF;
}
.origin-story-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .origin-story-card { padding: 36px 40px; }
}
.origin-story-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.origin-story-title {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  margin: 0 0 8px;
}
.origin-story-concept {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 14px;
}
.origin-story-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin: 0;
}

section.block { padding: 68px 0; }
@media (min-width: 768px) {
  section.block { padding: 84px 0; }
}
section.block.alt-bg {
  background: var(--bg-soft);
  transition: background-color 0.35s ease;
}
.sec-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 36px;
}
.sec-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--badge-bg);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.sec-title {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.36rem, 4.2vw, 1.92rem);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 12px;
}
.sec-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin: 0;
}
.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .card-panel { padding: 34px 32px; }
}

/* =========================================================================
   7. 申し込む前に知っておきたい3つのこと（Q&A）
   ========================================================================= */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
}
.qa-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.qa-q {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.qa-a { font-size: 0.87rem; color: var(--text); margin: 0; }
.qa-note { font-size: 0.76rem; color: var(--text-sub); margin: 8px 0 0; }

/* =========================================================================
   8. おうちウォレットの考え方＆スイカの物語
   ========================================================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.pillar-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 900; }
.pillar-card p { margin: 0; font-size: 0.86rem; color: var(--text-sub); }

.money-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .money-values { grid-template-columns: 1fr 1fr; }
}
.value-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.value-box.minoru { border-color: var(--primary); background: var(--surface-sub); }
.value-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.value-box h4 { margin: 0 0 6px; font-size: 0.98rem; }
.value-box p { margin: 0; font-size: 0.86rem; color: var(--text-sub); }

.story-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.story-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 16px;
}
@media (min-width: 640px) {
  .story-steps { flex-direction: row; gap: 18px; }
}
.story-step {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 170px;
}
.story-step .em { font-size: 1.6rem; }
.story-step strong { display: block; font-size: 0.95rem; margin: 4px 0 2px; }
.story-step span { font-size: 0.78rem; color: var(--text-sub); }
.story-arrow {
  display: inline-block;
  font-weight: 900;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  transform: rotate(90deg);
}
@media (min-width: 640px) {
  .story-arrow { transform: rotate(0deg); }
}
.logo-secret-box {
  max-width: 560px;
  margin: 12px auto 0;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.84rem;
}
.logo-secret-box img { width: 48px; height: auto; flex-shrink: 0; }

/* =========================================================================
   9. SUIKA CARD 詳しい紹介（大きな3Dフリップカード）
   ========================================================================= */
.card-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mode-tab {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
}
.mode-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.card-edu-notice {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--primary-dark);
  background: var(--primary-light);
  display: table;
  margin: 0 auto 18px;
  padding: 5px 14px;
  border-radius: 999px;
}
.card-stage {
  perspective: 1100px;
  width: 100%;
  max-width: 376px;
  height: 232px;
  margin: 0 auto 20px;
  cursor: pointer;
}
.card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-3d.is-flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.card-face-back { transform: rotateY(180deg); }

.card-3d.mode-virtual.col-pink .card-face { background: linear-gradient(135deg, #FF7796, #F04B6E); color: #fff; }
.card-3d.mode-virtual.col-mint .card-face { background: linear-gradient(135deg, #28B88A, #138862); color: #fff; }
.card-3d.mode-virtual.col-blue .card-face { background: linear-gradient(135deg, #3DA5F5, #1D75CC); color: #fff; }
.card-3d.mode-virtual.col-black .card-face { background: linear-gradient(135deg, #32363C, #191B1F); color: #fff; }

.card-3d.mode-real .card-face {
  background: #FFFFFF;
  color: #2B2627;
  border: 1px solid #EAEAEA;
}
.card-inner-frame {
  position: absolute;
  inset: 10px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.card-3d.mode-real.col-pink .card-inner-frame { border-color: #F4A3B4; }
.card-3d.mode-real.col-mint .card-inner-frame { border-color: #7AD0B5; }
.card-3d.mode-real.col-blue .card-inner-frame { border-color: #82C2F7; }
.card-3d.mode-real.col-black .card-inner-frame { border-color: #B4B8BF; }
.card-3d.mode-real.col-pink .card-label-brand { color: #E25B76; }
.card-3d.mode-real.col-mint .card-label-brand { color: #179E76; }
.card-3d.mode-real.col-blue .card-label-brand { color: #2486DB; }
.card-3d.mode-real.col-black .card-label-brand { color: #5B6068; }

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.card-label-brand { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; }
.card-front-sub { font-size: 0.64rem; opacity: 0.88; font-weight: 700; position: relative; z-index: 2; }
.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}
.card-holder { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; }
.card-ic-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ECEFF2, #BDC3CC);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.card-back-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.card-back-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.card-back-note { font-size: 0.62rem; opacity: 0.85; line-height: 1.4; max-width: 70%; }
.card-qr-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px dashed currentColor;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}
.card-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.col-pill {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.col-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.col-swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* =========================================================================
   10. サギ撃退トレーニング
   ========================================================================= */
.training-panel {
  border: 2px dashed var(--dashed-border);
  background: var(--surface);
  border-radius: 24px;
  padding: 24px 20px;
  max-width: 660px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.training-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.training-title {
  font-size: 1.06rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.surprise-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}
.toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #C8C4C2;
  position: relative;
  transition: background 0.25s ease;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
}
.surprise-toggle.is-on .toggle-track { background: var(--primary); }
.surprise-toggle.is-on .toggle-track::after { transform: translateX(16px); }

.rank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF6CC;
  color: #8A5D00;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.rank-badge.master {
  background: linear-gradient(135deg, #FFE082, #FFB300);
  color: #543600;
}
.rank-stats { font-size: 0.8rem; color: var(--text-sub); font-weight: 700; }
.rank-next { font-size: 0.78rem; color: var(--text-sub); margin: 0 0 12px; }
.promise-box {
  background: #FFFDF2;
  border: 1.5px dashed #E9C46A;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 16px;
  font-size: 0.86rem;
}
.promise-box strong { display: block; margin-bottom: 4px; color: #7C5600; }
.training-main-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.training-main-btn:hover { background: var(--primary-dark); }
.training-sub-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.training-sub-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface-sub);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================================
   11. 給料明細書PDFプレビュー
   ========================================================================= */
.payslip-note-box {
  max-width: 580px;
  margin: 0 auto 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.83rem;
  color: var(--text-sub);
  text-align: center;
}
.payslip-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.print-mode-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.print-mode-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.payslip-paper {
  max-width: 500px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 2px solid #F4A3B4;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transition: filter 0.3s ease;
}
.payslip-paper.is-bw { filter: grayscale(100%) contrast(1.08); }
.payslip-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px solid #F7D4DC;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.payslip-date-badge {
  background: #E5F6F0;
  color: #179E76;
  border: 1px solid #C3EBDD;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}
.payslip-heading {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #E25B76;
  margin: 4px 0 2px;
}
.payslip-sub { font-size: 0.7rem; color: #8A7A7E; }
.family-stamp {
  width: 46px;
  height: 46px;
  border: 2px solid #E25B76;
  border-radius: 8px;
  color: #E25B76;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.payslip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 12px;
}
.payslip-table th, .payslip-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #F3E5E8;
  text-align: left;
}
.payslip-table thead tr {
  background: #FFF0F3;
}
.payslip-table th {
  font-size: 0.74rem;
  color: #D9425E;
  font-weight: 800;
}
.payslip-table td.num, .payslip-table th.num { text-align: right; font-weight: 800; }
.payslip-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF6F8;
  border: 1px solid #F7D4DC;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 900;
  margin-bottom: 10px;
}
.payslip-total-val {
  font-size: 1.08rem;
  color: #E25B76;
}
.payslip-mvp {
  text-align: center;
  background: #FFF8E6;
  border: 1.5px solid #F2DFAF;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #5C4616;
  margin-bottom: 10px;
}
.payslip-memo {
  border: 1.5px dashed #E4C8CE;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #6D6265;
}

/* =========================================================================
   12. 折りたたみアコーディオン（たねコイン＆ふえる金庫）
   ========================================================================= */
.details-accordion {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.details-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  font-size: 1rem;
}
.details-accordion summary::-webkit-details-marker { display: none; }
.acc-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.details-accordion[open] .acc-arrow { transform: rotate(180deg); }
.acc-body { padding: 0 20px 24px; border-top: 1px solid var(--border); }
.flow-banner {
  text-align: center;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0 20px;
}
.flow-steps-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.flow-step-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.flow-step-chip.is-highlight {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
.flow-step-arrow {
  color: var(--primary);
  font-weight: 900;
  font-size: 0.85rem;
}
.flow-banner-desc {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.75;
}
.coin-vault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 820px) {
  .coin-vault-grid { grid-template-columns: 1fr 1fr; }
}
.feature-sim-card {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sim-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.feature-sim-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 900; }
.feature-sim-card .sim-text { font-size: 0.85rem; color: var(--text-sub); margin: 0 0 10px; }
.sim-note-small { font-size: 0.74rem; color: var(--text-sub); margin: 0 0 14px; }
.sim-widget {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
}
.sim-rate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.82rem;
}
.rate-pill {
  background: var(--primary);
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.rate-slider { width: 100%; accent-color: var(--primary); cursor: pointer; }
.rate-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-sub);
  font-weight: 700;
  margin-bottom: 10px;
}
.sim-result-box {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sim-result-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.sim-result-unit {
  font-size: 0.72em;
  font-weight: 800;
  margin-left: 2px;
}
.kid-bubble {
  background: var(--surface-sub);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px dashed var(--dashed-border);
}
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rule-chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 800;
}
.vault-days-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.vday-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 7px 4px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.vday-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================================================
   13. 2つの入口（モニター応募 vs リリースのお知らせ）
   ========================================================================= */
.entry-switch-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 24px;
}
@media (min-width: 680px) {
  .entry-switch-cards { grid-template-columns: 1fr 1fr; }
}
.entry-option-btn {
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.entry-option-btn.active {
  border-color: var(--primary);
  background: var(--surface-sub);
  box-shadow: var(--shadow);
}
.entry-option-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.entry-option-btn h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 900; }
.entry-option-btn p { margin: 0; font-size: 0.82rem; color: var(--text-sub); }

.dm-flow-banner {
  max-width: 640px;
  margin: 0 auto 18px;
  background: #FFFDF2;
  border: 1.5px dashed #E9C46A;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 0.82rem;
  color: var(--text);
  text-align: center;
}
.dm-flow-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 900;
  color: #7C5600;
  margin-bottom: 4px;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .form-card { padding: 30px; }
}
.form-pane { display: none; }
.form-pane.active { display: block; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.req-tag { font-size: 0.66rem; background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 6px; }
.opt-tag { font-size: 0.66rem; background: var(--bg-soft); color: var(--text-sub); padding: 2px 7px; border-radius: 6px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface-sub);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
}
.form-input:focus { border-color: var(--primary); background: #fff; }
.choice-list { display: flex; flex-direction: column; gap: 7px; }
.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}
.choice-item input { accent-color: var(--primary); width: 17px; height: 17px; flex-shrink: 0; }
.form-error {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #D32F2F;
}
.form-error.show { display: block; }
.form-submit {
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.form-submit:hover { background: var(--primary-dark); }
.form-privacy { text-align: center; font-size: 0.74rem; color: var(--text-sub); margin: 10px 0 0; }
.output-box {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--border);
}
.output-box.show { display: block; }
.copy-preview {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.83rem;
  white-space: pre-wrap;
  margin: 10px 0 12px;
}
.copy-feedback {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 8px;
  min-height: 1.2em;
}

/* =========================================================================
   14. つくっている人＆5段フッター
   ========================================================================= */
.maker-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
@media (min-width: 680px) {
  .maker-box { flex-direction: row; text-align: left; gap: 24px; }
}
.maker-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}
.maker-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  background: var(--primary-light);
}
.maker-badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.maker-badge img { width: 26px; height: auto; }

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 46px 18px 50px;
  text-align: center;
}
.footer-inner {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo img { width: 46px; height: auto; margin-bottom: 8px; }
.footer-brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.footer-concept {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.1rem, 4.2vw, 1.36rem);
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 6px;
}
.footer-concept .line-break { display: block; }
@media (min-width: 640px) {
  .footer-concept .line-break { display: inline; }
}
.footer-message {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 20px;
}
.footer-disclaimer {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 0.74rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin: 0 0 16px;
  width: 100%;
  max-width: 560px;
}
.footer-copy { font-size: 0.75rem; color: var(--text-sub); margin: 0; }

/* =========================================================================
   15. サギ撃退トレーニング モーダル＆紙吹雪
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 26, 0.62);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 390px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box.border-warn { border: 4px solid #F4B942; }
.modal-box.border-info { border: 4px solid #45B6FE; }
.modal-box.border-danger { border: 4px solid #E53935; }
.modal-box.border-success { border: 4px solid #179E76; }
.modal-icon { font-size: 2.2rem; margin-bottom: 10px; }
.modal-msg { font-size: 0.94rem; font-weight: 800; line-height: 1.65; margin: 0 0 16px; text-align: left; }
.modal-cvv-input {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 2px solid #DCD9D8;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.35em;
  font-weight: 800;
  margin-bottom: 14px;
  outline: none;
}
.modal-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: none;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 10px;
}
.modal-btn.pink { background: #FF718E; color: #fff; }
.modal-btn.gray { background: #738290; color: #fff; margin-bottom: 0; }
.modal-result-title { font-size: 1.08rem; font-weight: 900; margin: 0 0 10px; }
.modal-result-title.danger { color: #D32F2F; }
.modal-result-title.success { color: #0F7E5D; }
.modal-result-title.info { color: #0277BD; }
.modal-result-body { font-size: 0.86rem; text-align: left; line-height: 1.68; margin: 0 0 12px; }
.modal-tip-box {
  background: #FFFDF2;
  border: 1.5px dashed #E9C46A;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.82rem;
  text-align: left;
  margin: 12px 0;
}
.modal-family-talk { font-size: 0.82rem; font-weight: 800; margin: 0 0 14px; }

.confetti-piece {
  position: fixed;
  top: -12px;
  width: 10px;
  height: 14px;
  z-index: 1200;
  pointer-events: none;
  animation: confettiFall 2.6s linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(620deg); opacity: 0; }
}

/* =========================================================================
   16. 効果音ボタン・ヘッダー右側のまとまり（音つき版で追加）
   ========================================================================= */
.header-actions { display: flex; align-items: center; gap: 8px; }
.sound-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sound-toggle:hover { border-color: var(--primary); transform: translateY(-1px); }
.sound-toggle[aria-pressed="false"] { opacity: 0.7; }
.hero-sound-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
}

/* キーボード操作のフォーカス表示 */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #1B6FD6;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .confetti-piece { animation-duration: 0.01s; }
}

/* =========================================================================
   トップのスイカアニメーション（新ロゴ）
   0.4s〜3.8s ふわっと登場 → 4.2s・4.7s に2口かじる（果汁しぶき＋ゆれ）
   ========================================================================= */
.hero-suika-top {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
@media (min-width: 880px) {
  .hero-suika-top { margin-bottom: 36px; }
  .hero-suika-stage { max-width: 380px; }
}
.hero-suika-stage {
  width: 88%;
  max-width: 310px;
  margin: 0 auto;
  display: block;
  cursor: pointer;
  user-select: none;
  position: relative;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.hero-suika-stage.is-playing {
  animation: suikaEtherealAppear 3.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s forwards;
}

.hero-suika-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: center center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

/* かじりリアクション（4.2s / 4.7s に連動） */
.hero-suika-stage.is-playing .hero-suika-svg {
  animation: suikaBiteShake 5.4s ease-out forwards;
}




/* 新ロゴ：かじられる前の果肉は、かじった瞬間にふっと消える（4.2s / 4.7s） */
.hero-suika-frame {
  position: relative;
  aspect-ratio: 720 / 451;
}
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.bite-chunk-1 { transform-origin: 33.5% 16.9%; }
.bite-chunk-2 { transform-origin: 72.6% 78.1%; }
.hero-suika-stage.is-playing .bite-chunk-1 { animation: chunkAway 0.16s ease-in 4.2s forwards; }
.hero-suika-stage.is-playing .bite-chunk-2 { animation: chunkAway 0.18s ease-in 4.7s forwards; }
@keyframes chunkAway {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

/* 果汁のしぶきパーティクル */
.juice-particle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* 1口目しぶき（4.2s） */
.hero-suika-stage.is-playing .jp-s1 { animation: splashSmall1 0.44s ease-out 4.20s forwards; }
.hero-suika-stage.is-playing .jp-s2 { animation: splashSmall2 0.46s ease-out 4.22s forwards; }
.hero-suika-stage.is-playing .jp-s3 { animation: splashSmall3 0.40s ease-out 4.21s forwards; }

/* 2口目しぶき（4.7s） */
.hero-suika-stage.is-playing .jp-l1 { animation: splashLarge1 0.50s ease-out 4.70s forwards; }
.hero-suika-stage.is-playing .jp-l2 { animation: splashLarge2 0.52s ease-out 4.72s forwards; }
.hero-suika-stage.is-playing .jp-l3 { animation: splashLarge3 0.48s ease-out 4.71s forwards; }
.hero-suika-stage.is-playing .jp-l4 { animation: splashLarge4 0.46s ease-out 4.73s forwards; }
.hero-suika-stage.is-playing .jp-l5 { animation: splashLarge5 0.44s ease-out 4.72s forwards; }

/* 0.4s〜3.8s：淡く幻想的にふわ〜っと現れるキーフレーム */
@keyframes suikaEtherealAppear {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(10px) scale(0.95);
  }
  22% {
    opacity: 0.15;
    filter: blur(3.8px);
    transform: translateY(7.5px) scale(0.962);
  }
  50% {
    opacity: 0.45;
    filter: blur(2.1px);
    transform: translateY(4.2px) scale(0.978);
  }
  78% {
    opacity: 0.80;
    filter: blur(0.8px);
    transform: translateY(1.4px) scale(0.992);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }
}


/* スイカ本体の揺れ（4.2s = 77.78%、4.7s = 87.04% 基準 / 全長5.4s） */
@keyframes suikaBiteShake {
  0%, 77.4%  { transform: scale(1) rotate(0deg); }
  79.0%      { transform: scale(0.975, 1.022) rotate(-1.9deg); }
  82.0%, 86.7% { transform: scale(1) rotate(0deg); }
  88.8%      { transform: scale(0.935, 1.045) rotate(2.8deg); }
  92.5%      { transform: scale(1.02, 0.985) rotate(-1.1deg); }
  96.0%      { transform: scale(0.995) rotate(0.4deg); }
  100%       { transform: scale(1) rotate(0deg); }
}

@keyframes splashSmall1 {
  0%   { opacity: 0.95; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0;    transform: translate(-18px, -24px) scale(1.1); }
}
@keyframes splashSmall2 {
  0%   { opacity: 0.95; transform: translate(0, 0) scale(0.7); }
  100% { opacity: 0;    transform: translate(5px, -28px) scale(1.15); }
}
@keyframes splashSmall3 {
  0%   { opacity: 0.9;  transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0;    transform: translate(20px, -18px) scale(1.0); }
}

@keyframes splashLarge1 {
  0%   { opacity: 0.95; transform: translate(0, 0) scale(0.7); }
  100% { opacity: 0;    transform: translate(28px, 22px) scale(1.25); }
}
@keyframes splashLarge2 {
  0%   { opacity: 0.95; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0;    transform: translate(36px, -2px) scale(1.1); }
}
@keyframes splashLarge3 {
  0%   { opacity: 0.92; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0;    transform: translate(12px, 32px) scale(1.15); }
}
@keyframes splashLarge4 {
  0%   { opacity: 0.88; transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0;    transform: translate(-10px, 26px) scale(1.0); }
}
@keyframes splashLarge5 {
  0%   { opacity: 0.9;  transform: translate(0, 0) scale(0.55); }
  100% { opacity: 0;    transform: translate(30px, 12px) scale(1.05); }
}


@media (prefers-reduced-motion: reduce) {
  .hero-suika-stage { opacity: 1; }
  .hero-suika-stage.is-playing,
  .hero-suika-stage.is-playing .hero-suika-svg { animation: none; }
  .bite-chunk, .juice-particle { display: none; }
}
