/* ============================================
   Well-bee club — こどものスクール型はいしゃさん
   Design Tokens & Global Styles
   Color: 水色ベース + 黄色アクセント + ポップなデザイン
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&family=Noto+Sans+JP:wght@300;400;500;700;900&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

:root {
  /* Primary — シアン/ターコイズ（Canva準拠） */
  --color-primary: #7AF6EE;
  --color-primary-dark: #4DD9D0;
  --color-primary-light: #D4F9F6;
  --color-primary-bg: #C2F6FF;

  /* Accent — イエロー */
  --color-yellow: #FFF200;
  --color-yellow-dark: #E0D500;
  --color-yellow-light: #FFFDE0;
  --color-yellow-bg: #FFFCE8;

  /* Sub accents（Canva準拠） */
  --color-pink: #FF61A5;
  --color-pink-light: #FFE8F2;
  --color-red: #FF5757;
  --color-green: #00BF63;
  --color-green-light: #E0F8EC;
  --color-orange: #FFB74D;
  --color-muted-green: #A9CA7F;

  /* Text（Canva準拠） */
  --color-text: #231F20;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;

  /* Backgrounds（Canva準拠） */
  --color-bg: #FFFFFF;
  --color-bg-blue: #C2F6FF;
  --color-bg-yellow: #FFFCE8;
  --color-bg-green: #E0F8EC;
  --color-bg-dark: #231F20;

  /* Border & Shadow */
  --color-border: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(126,206,244,0.15);

  /* Radius — 丸みを帯びたこども向けデザイン */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;
  --radius-round: 50%;

  /* Layout */
  --max-width: 960px;
  --section-padding: 64px 0;
  --section-padding-sp: 40px 0;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background: var(--color-bg-blue);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--section-padding);
}
.section--blue { background: var(--color-bg-blue); }
.section--white { background: var(--color-bg); }
.section--yellow { background: var(--color-yellow-bg); }
.section--green { background: var(--color-bg-green); }
.text-center { text-align: center; }

/* ============================================
   Section Heading
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading__title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-text);
}
.section-heading__title em {
  font-style: normal;
  color: var(--color-primary-dark);
}
.section-heading__title .highlight {
  background: linear-gradient(transparent 60%, var(--color-yellow) 60%);
  padding: 0 4px;
}
.section-heading__sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.9;
}

/* 装飾付き見出し（デザイン内でよく使われるスタイル） */
.heading-decorated {
  display: inline-block;
  background: var(--color-yellow);
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 24px;
}
.heading-bubble {
  display: inline-block;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  padding: 10px 28px;
  border-radius: var(--radius-xl);
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 900;
  color: var(--color-text);
  position: relative;
}
.heading-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(77,184,232,0.3);
}
.btn--primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77,184,232,0.4);
}
.btn--yellow {
  background: var(--color-yellow);
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}
.btn--yellow:hover {
  background: var(--color-yellow-dark);
  transform: translateY(-2px);
}
.btn--pink {
  background: var(--color-pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,138,155,0.3);
}
.btn--pink:hover {
  transform: translateY(-2px);
}
.btn--outline {
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  background: transparent;
}
.btn--lg { padding: 18px 40px; font-size: 17px; }
.btn--sm { padding: 10px 20px; font-size: 13px; }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, #7AF6EE 0%, #EAFFFE 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.header__logo:hover {
  transform: translateY(-4px);
}
.header__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* 雲デザインのナビリンク */
.header__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  padding: 8px 18px;
  background: #fff;
  border-radius: 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  /* 雲の柔らかい形状 */
  border: none;
}
.header__link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.header__link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.header__link:hover::before {
  background: var(--color-primary-light);
}
.header__link--line {
  background: #06C755;
  color: #fff;
}
.header__link--line::before {
  background: #06C755;
}
.header__link--line:hover {
  background: #05B04C;
  color: #fff;
}
.header__link--line:hover::before {
  background: #05B04C;
}
.header__link--cta {
  background: var(--color-pink);
  color: #fff;
}
.header__link--cta::before {
  background: var(--color-pink);
}
.header__link--cta:hover {
  background: #FF6B80;
  color: #fff;
}
.header__link--cta:hover::before {
  background: #FF6B80;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
  border-radius: 2px;
}
.header__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.header__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
  .header__nav { display: none; }
  .header__hamburger { display: flex; }
  .header__inner { height: 50px; }
}

/* Mobile Menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.3s;
}
.mobile-overlay.is-open { display: block; opacity: 1; }
.mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px; height: 100vh;
  background: #fff;
  z-index: 1200;
  padding: 72px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}
.mobile-menu.is-open { right: 0; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--color-primary-light); }
.mobile-menu .btn {
  margin-top: 12px;
  text-align: center;
}

/* ============================================
   Hero Section（Canva原画忠実再現）
   ============================================ */
.hero {
  background: linear-gradient(180deg, #C2F6FF 0%, #D6F9FF 60%, #E8FCFF 100%);
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

/* 背景装飾：雲 */
.hero__cloud {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
}
.hero__cloud::before,
.hero__cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.hero__cloud--1 {
  width: 120px; height: 50px;
  top: 100px; left: 5%;
  animation: cloudFloat 20s ease-in-out infinite;
}
.hero__cloud--1::before {
  width: 60px; height: 60px;
  top: -30px; left: 20px;
}
.hero__cloud--1::after {
  width: 80px; height: 50px;
  top: -20px; left: 50px;
}
.hero__cloud--2 {
  width: 100px; height: 40px;
  top: 140px; right: 8%;
  animation: cloudFloat 25s ease-in-out infinite reverse;
}
.hero__cloud--2::before {
  width: 50px; height: 50px;
  top: -25px; left: 15px;
}
.hero__cloud--2::after {
  width: 65px; height: 40px;
  top: -18px; left: 40px;
}
.hero__cloud--3 {
  width: 80px; height: 35px;
  top: 220px; left: 15%;
  animation: cloudFloat 18s ease-in-out infinite 5s;
}
.hero__cloud--3::before {
  width: 40px; height: 40px;
  top: -20px; left: 10px;
}
.hero__cloud--3::after {
  width: 55px; height: 35px;
  top: -15px; left: 30px;
}

@keyframes cloudFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

/* 背景装飾：太陽 */
.hero__sun {
  position: absolute;
  top: 80px;
  right: 6%;
  width: 70px;
  height: 70px;
  background: var(--color-yellow);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255,242,0,0.5);
}
.hero__sun::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  width: 86px; height: 86px;
  border: 3px dashed var(--color-yellow);
  border-radius: 50%;
  animation: sunSpin 30s linear infinite;
}
@keyframes sunSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* キャッチコピー（1行目） */
.hero__catch {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.hero__catch-line1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.8;
}
.text-green {
  color: var(--color-green) !important;
  font-weight: 900;
}
.text-pink {
  color: var(--color-pink) !important;
  font-weight: 900;
}
.hero__catch .text-green,
.hero__catch .text-pink {
  font-size: 1.15em;
}

/* メインテキスト */
.hero__label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(24px, 5.5vw, 38px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
h1.hero__label .hero__label-sub {
  display: block;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 8px;
}

/* ロゴエリア（logo-text.png） */
.hero__logo-area {
  margin: 16px auto 32px;
  position: relative;
  display: block;
  z-index: 1;
}
.hero__logo-img {
  max-width: clamp(280px, 55vw, 460px);
  height: auto;
  margin: 0 auto;
  display: block;
  animation: heroLogoIn 1s ease-out;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 3本柱：木の看板 + キャラクター画像 */
.hero__pillars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 40px);
  max-width: 800px;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
}
.pillar {
  text-align: center;
  flex: 0 1 auto;
}
.pillar__sign-img {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.pillar:hover .pillar__sign-img {
  transform: translateY(-8px);
}

@media (max-width: 767px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero__label { font-size: 22px; }
  .hero__pillars { gap: 8px; }
  .pillar__sign-img { width: clamp(100px, 28vw, 140px); }
  .hero__sun { width: 50px; height: 50px; top: 70px; right: 4%; }
  .hero__sun::before { width: 66px; height: 66px; top: -8px; left: -8px; }
  .hero__cloud--1 { top: 75px; }
  .hero__cloud--2 { top: 95px; }
  .hero__cloud--3 { display: none; }
}

/* ============================================
   Video Section (動画集)
   ============================================ */
.video-section {
  background: var(--color-bg-blue);
  padding-bottom: 56px;
}
.video-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.video-header__icon {
  width: 44px; height: 32px;
  background: #FF0000;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
}
.video-header__title {
  font-size: 18px;
  font-weight: 900;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.video-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.video-card__thumb {
  aspect-ratio: 16/9;
  background: var(--color-primary-light);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.video-card__thumb-placeholder {
  font-size: 40px;
  opacity: 0.5;
}
.video-card__thumb-chara {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}
.video-card__title {
  padding: 8px 8px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.5;
}
.video-card__credit {
  font-size: 9px;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 0 8px 8px;
  line-height: 1.3;
}
.video-card__play {
  position: absolute;
  width: 44px; height: 32px;
  background: #FF0000;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-card:hover .video-card__play {
  background: #CC0000;
  transform: scale(1.1);
}
a.video-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.video-card--playable {
  cursor: pointer;
}
.video-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* モーダル動画プレーヤー */
.video-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.is-active {
  display: flex;
}
.video-modal__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
}
.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 800px;
  padding-bottom: 50.625%; /* 90% * 56.25% = 16:9 ratio */
  z-index: 1;
}
.video-modal__close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}
.video-modal__close:hover {
  transform: scale(1.2);
}
.video-modal__player {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.video-modal__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 767px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-card__title { font-size: 10px; padding: 6px 6px 2px; }
  .video-card__credit { font-size: 8px; padding: 0 6px 6px; }
}

/* ============================================
   Statistics Section (3人に2人)
   ============================================ */
/* ============================================
   Statistics Section - 3人に2人が「悪い歯ならび」
   ============================================ */
.stats-section {
  background: var(--color-primary-bg);
  padding: 40px 0;
  overflow: hidden;
}
.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

/* 左カラム */
.stats-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stats-heading-img {
  display: flex;
  align-items: center;
  gap: 0;
}
.stats-heading-cloud {
  flex: 1;
  max-width: 68%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.10));
}
.stats-heading-chara {
  width: 32%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  margin-left: -20px;
  flex-shrink: 0;
}
.stats-visual-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-visual-img__pic {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

/* 右カラム: Before/After */
.stats-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-ba {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 72%;
  max-width: 320px;
  margin: 0 auto;
}
.stats-ba__photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.stats-ba__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.stats-ba__item {
  width: 100%;
}
.stats-ba__caption {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
  margin: 10px 4px 0;
  text-align: center;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}
.stats-ba__arrow {
  font-size: 32px;
  color: #FFD600;
  line-height: 1;
  margin: 2px 0;
  z-index: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

@media (max-width: 767px) {
  .stats-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
  .stats-heading-cloud {
    max-width: 70%;
  }
  .stats-heading-chara {
    width: 30%;
    max-width: 100px;
    margin-left: -8px;
  }
}

/* ============================================
   Tooth Trend Section（歯列弓の変化）
   ============================================ */
.tooth-trend-section {
  background: var(--color-primary-bg);
  padding: 0 0 40px;
  overflow: hidden;
}
.tooth-trend {
  max-width: 800px;
  margin: 0 auto;
}
.tooth-trend__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}
.tooth-trend__text-svg {
  max-width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.08));
}
.tooth-trend__chara {
  width: 22%;
  max-width: 130px;
  height: auto;
  object-fit: contain;
  margin-left: -16px;
}
.tooth-trend__photos {
  text-align: center;
}
.tooth-trend__img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
@media (max-width: 767px) {
  .tooth-trend__text-svg {
    max-width: 60%;
  }
  .tooth-trend__chara {
    width: 25%;
    max-width: 100px;
    margin-left: -10px;
  }
  .tooth-trend__img {
    border-radius: 12px;
  }
}

/* ============================================
   Swirl Divider（くるくるデコレーション）
   ============================================ */
.swirl-divider {
  width: 100%;
  height: 30px;
  background-color: var(--color-white);
  background-image: url('../images/swirl-divider.svg');
  background-repeat: repeat-x;
  background-position: center center;
  background-size: auto 30px;
}
.swirl-divider--on-blue {
  background-color: var(--color-primary-bg);
}
.swirl-divider__img {
  display: none; /* 画像タグは非表示、背景画像で繰り返し表示 */
}
@media (max-width: 767px) {
  .swirl-divider {
    height: 24px;
    background-size: auto 24px;
  }
}

/* ============================================
   Cause Section（悪い歯ならびの原因）
   ============================================ */
.cause-section {
  background: var(--color-primary-bg);
  padding: 0 0 40px;
  overflow: hidden;
}
.cause {
  max-width: 800px;
  margin: 0 auto;
}
.cause__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}
.cause__text-svg {
  max-width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.08));
}
.cause__chara {
  width: 20%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  margin-left: -16px;
}
.cause__infographic {
  text-align: center;
}
.cause__img {
  width: 100%;
  max-width: 720px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}
@media (max-width: 767px) {
  .cause__text-svg {
    max-width: 60%;
  }
  .cause__chara {
    width: 25%;
    max-width: 100px;
    margin-left: -10px;
  }
}

/* ============================================
   Face Change Section（顔が変わる！）
   ============================================ */
.face-change-section {
  background: var(--color-primary-bg);
  padding: 24px 0 56px;
  overflow: hidden;
}
.face-change {
  max-width: 1100px;
  margin: 0 auto;
}
.face-change__header {
  text-align: center;
  margin-bottom: 32px;
}
.face-change__text-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.08));
}

/* 上段：呼吸パターン別イラスト */
.face-change__illust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.face-change__illust-card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid transparent;
}
.face-change__illust-card--ideal { border-color: #7fcfe6; }
.face-change__illust-card--risk  { border-color: #f5b1b7; }
.face-change__illust-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 10px;
}
.face-change__illust-card--ideal .face-change__illust-label { background: #d6eef7; color: #1a6b85; }
.face-change__illust-card--risk  .face-change__illust-label { background: #fde2e4; color: #9b2b36; }
.face-change__illust-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 下段：実写比較カード */
.face-change__photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.face-pattern {
  background: var(--color-white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.face-pattern__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.face-pattern__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.face-pattern__badge--risk  { background: #fde2e4; color: #c0392b; }
.face-pattern__badge--ideal { background: #d7f5de; color: #1e8a4a; }
.face-pattern__title {
  font-size: 18px;
  font-weight: 800;
}
.face-pattern__title--risk  { color: #c0392b; }
.face-pattern__title--ideal { color: #1e8a4a; }
.face-pattern__photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.face-pattern__body { margin-top: 14px; }
.face-pattern__subtitle {
  font-weight: 800;
  font-size: 15px;
  color: #1f2937;
  margin: 0 0 8px;
}
.face-pattern__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}
.face-pattern__list li {
  padding-left: 22px;
  position: relative;
}
.face-pattern__list--risk li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: #c0392b;
}
.face-pattern__list--ideal li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e8a4a;
  font-weight: 800;
}
@media (max-width: 767px) {
  .face-change-section { padding: 16px 0 40px; }
  .face-change__text-svg { max-width: 80%; }
  .face-change__illust-row,
  .face-change__photo-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .face-change__illust-card { padding: 10px; }
  .face-change__illust-label { font-size: 11px; padding: 3px 8px; margin-bottom: 6px; }
  .face-pattern { padding: 10px; }
  .face-pattern__head { gap: 6px; margin-bottom: 8px; }
  .face-pattern__badge { font-size: 10px; padding: 3px 8px; }
  .face-pattern__title { font-size: 13px; }
  .face-pattern__subtitle { font-size: 13px; }
  .face-pattern__list { font-size: 12px; line-height: 1.6; }
  .face-pattern__list li { padding-left: 18px; }
}

/* ============================================
   Golden Time Section（10歳までが顎を拡げるゴールデンタイム）
   ============================================ */
.golden-section {
  background: var(--color-primary-bg);
  padding: 24px 0 56px;
  overflow: hidden;
}
.golden {
  max-width: 1100px;
  margin: 0 auto;
}
.golden__header {
  text-align: center;
  margin-bottom: 28px;
}
.golden__text-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.08));
}
.golden__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: end;
}
.golden__card--photo {
  align-self: end;
}
.golden__card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.golden__card--photo { background: #0b1740; padding: 0; overflow: hidden; }
.golden__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.golden__card--photo .golden__img { border-radius: 14px; }

@media (max-width: 767px) {
  .golden-section { padding: 16px 0 40px; }
  .golden__text-svg { max-width: 80%; }
  .golden__grid {
    grid-template-columns: 2fr 1fr;
    gap: 8px;
  }
  .golden__card { padding: 8px; }
}

/* ============================================
   Flow Section（入学から卒業・クラス・検診）
   ============================================ */
.flow-section {
  background: var(--color-white);
  padding: 56px 0;
}
.flow {
  max-width: 1200px;
  margin: 0 auto;
}
.flow__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.flow__card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flow__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  object-fit: contain;
}
.flow__img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 767px) {
  .flow-section { padding: 24px 0; }
  .flow__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============================================
   About Section（Well-bee club について）
   ============================================ */
.about-section {
  background: var(--color-white);
  padding: 64px 0;
}
.about {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about__title {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 12px;
}
.about__subtitle {
  font-size: 17px;
  font-weight: 600;
  color: #334155;
  line-height: 1.8;
  margin: 0 0 24px;
}
@media (max-width: 767px) {
  .about__subtitle { font-size: 14px; text-align: left; }
}
.about__lead {
  font-size: 16px;
  line-height: 2;
  color: #334155;
  margin: 0 0 20px;
}
.about__goals {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.about__goals li {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about__compare {
  margin: 32px auto 0;
  text-align: center;
}
.about__compare-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.about__goal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-primary, #7fcfe6);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
@media (max-width: 767px) {
  .about-section { padding: 40px 0; }
  .about__title { font-size: 22px; }
  .about__lead { font-size: 14px; line-height: 1.9; text-align: left; }
  .about__goals li { font-size: 15px; }
}

/* ============================================
   Gummy Smile Section
   ============================================ */
.gummy-section {
  background: var(--color-yellow-bg);
  padding: var(--section-padding);
}
.gummy-title {
  text-align: center;
  margin-bottom: 32px;
}
.gummy-title__badge {
  display: inline-block;
  background: var(--color-pink);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}
.gummy-title__main {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  line-height: 1.5;
}
.gummy-title__main .small { font-size: 0.75em; }

/* 世代グリッド */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.gen-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.gen-card__img {
  aspect-ratio: 1;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; opacity: 0.4;
}
.gen-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.gen-card__label {
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}
.gen-card__label .gen-name {
  display: block;
  font-size: 13px;
  color: var(--color-primary-dark);
}
.gen-card__label .gen-era {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* 矢印表示 */
.arrow-down {
  text-align: center;
  font-size: 36px;
  color: var(--color-pink);
  margin: 20px 0;
  animation: arrowPulse 1.5s infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.6; }
}

@media (max-width: 767px) {
  .gen-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Causes Section (悪い歯ならびの原因)
   ============================================ */
.causes-section {
  background: var(--color-bg-blue);
  padding: var(--section-padding);
}
.causes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* 円グラフ (CSS) */
.pie-chart-wrap {
  text-align: center;
}
.pie-chart {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  /* 円グラフはconic-gradientで描画 */
  background: conic-gradient(
    #4DB8E8 0deg 76deg,    /* 口呼吸 21% */
    #FF8A9B 76deg 127deg,  /* 舌・唇の癖 14% */
    #FFD54F 127deg 183deg, /* 頬杖/爪噛み/食事の与え方 17% (位置が前なので修正) */
    #81C784 183deg 226deg, /* 遺伝 12% */
    #FFB74D 226deg 270deg, /* 虫歯 12% */
    #B39DDB 270deg 316deg, /* 指しゃぶり 12% */
    #90A4AE 316deg 360deg  /* その他 12% */
  );
  box-shadow: var(--shadow-md);
}
.pie-chart__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.4;
}
.pie-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 12px;
  max-width: 280px;
  margin: 0 auto;
}
.pie-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pie-legend__color {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* フロー図 */
.causes-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cause-flow-item {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}
.cause-flow-item--pink { border-left-color: var(--color-pink); }
.cause-flow-item--yellow { border-left-color: var(--color-yellow-dark); }
.cause-flow-item__title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--color-text);
}
.cause-flow-item__text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}
.cause-flow-arrow {
  text-align: center;
  font-size: 24px;
  color: var(--color-primary);
}
.cause-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cause-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-primary-light);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; opacity: 0.4;
  position: relative;
}
.cause-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.cause-photo__label {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
  .causes-content { grid-template-columns: 1fr; }
  .pie-chart { width: 180px; height: 180px; }
}

/* ============================================
   Growth Section (スキャモン発育曲線)
   ============================================ */
.growth-section {
  background: var(--color-bg-green);
  padding: var(--section-padding);
}
.growth-title {
  text-align: center;
  margin-bottom: 36px;
}
.growth-title__badge {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}
.growth-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.growth-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.growth-compare-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.growth-compare-card--bad {
  border: 2px solid var(--color-pink);
}
.growth-compare-card--good {
  border: 2px solid var(--color-green);
}
.growth-compare-card__icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.growth-compare-card__chara {
  width: 72px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}
.growth-compare-card__title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}
.growth-compare-card--bad .growth-compare-card__title { color: var(--color-pink); }
.growth-compare-card--good .growth-compare-card__title { color: var(--color-green); }
.growth-compare-card__text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ゴールデンタイムバッジ */
.golden-time {
  text-align: center;
  margin: 32px 0;
}
.golden-time__badge {
  display: inline-block;
  background: var(--color-yellow);
  padding: 16px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.golden-time__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.golden-time__age {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 900;
  color: var(--color-pink);
  font-family: 'Inter', sans-serif;
}

/* SVGチャートエリア */
.growth-chart {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.growth-chart__title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--color-text);
}
.growth-chart svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (max-width: 767px) {
  .growth-content { grid-template-columns: 1fr; }
  .growth-comparison { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Class Info Section (入学〜卒業)
   ============================================ */
.class-section {
  background: var(--color-bg);
  padding: var(--section-padding);
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.class-card {
  background: var(--color-bg);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.class-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.class-card__icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.class-card__chara {
  width: 80px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}
.class-card__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}
.class-card__text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.9;
}
.class-card__tag {
  display: inline-block;
  margin-top: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 767px) {
  .class-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Comparison Section (矯正 vs Well-bee)
   ============================================ */
.compare-section {
  background: var(--color-bg);
  padding: var(--section-padding);
}
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.compare-table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
  background: var(--color-text);
}
.compare-table thead th:nth-child(2) {
  background: var(--color-pink);
}
.compare-table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
  background: var(--color-primary-dark);
}
.compare-table tbody td:first-child {
  font-weight: 700;
  text-align: left;
  background: var(--color-primary-light);
}
.compare-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-md);
}
.compare-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-md) 0;
}
.compare-table tbody tr:hover td {
  background-color: var(--color-yellow-light);
}
.compare-table tbody tr:hover td:first-child {
  background-color: var(--color-primary-light);
}

/* ============================================
   Philosophy / CTA Section
   ============================================ */
.philosophy-section {
  background: var(--color-bg-blue);
  padding: 80px 0;
  text-align: center;
}
.philosophy__quote {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 900;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 640px;
  margin: 0 auto 12px;
}
.philosophy__quote .accent {
  color: var(--color-primary-dark);
}
.philosophy__sub {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
}

.cta-box {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.cta-box__chara {
  max-width: 240px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}
.cta-box__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--color-text);
}
.cta-box__sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}
.cta-box__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer__logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  /* フッターは暗い背景なので白っぽい背景を足す */
  background: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}
.footer__desc {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
}
.footer__heading {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--color-yellow); }
.footer__bottom {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 767px) {
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }

/* placeholder for images */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}
.img-placeholder--wide {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-md);
}
.img-placeholder--sm {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  font-size: 11px;
}

/* Active nav link */
.header__link--active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.header__link--active::before {
  background: var(--color-primary-light);
}


/* ============================================
   Page Hero（サブページ共通）
   ============================================ */
.page-hero {
  background: var(--color-bg-blue);
  padding: 100px 0 48px;
  text-align: center;
}
.page-hero--pink {
  background: linear-gradient(180deg, var(--color-pink-light) 0%, #fff 100%);
}
.page-hero__chara {
  width: 80px;
  height: auto;
  margin: 0 auto 16px;
}
.page-hero__title {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 8px;
}
.page-hero__sub {
  font-size: 15px;
  color: var(--color-text-secondary);
}


/* ============================================
   Roadmap Section（年齢別メニュー）
   ============================================ */
.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.roadmap-card {
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.roadmap-card--blue { background: linear-gradient(135deg, #C2F6FF, #A0E8FF); }
.roadmap-card--green { background: linear-gradient(135deg, #D4F9E8, #A8EDCB); }
.roadmap-card--yellow { background: linear-gradient(135deg, #FFFCE0, #FFE082); }
.roadmap-card--pink { background: linear-gradient(135deg, #FFE8F2, #FFB5D0); }
.roadmap-card__age {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 6px;
}
.roadmap-card__title {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 800;
}
.roadmap-card__sub {
  font-size: clamp(13px, 2.5vw, 16px);
  color: var(--color-text-secondary);
  margin-top: 6px;
  font-weight: 600;
}
.roadmap-illustration { margin-top: 24px; }

/* 年齢別メニュー：画像コンテンツ共通 */
.age-content-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.age-img-block {
  text-align: center;
}

/* 年齢別メニュー：キャラクターデコレーション */
.age-section--deco {
  position: relative;
  overflow: visible;
}
.age-section--deco > .container {
  position: relative;
}
.age-deco {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  width: 80px;
  height: auto;
}
.age-deco--roadmap { top: 20px; right: 0; }
.age-deco--cavity  { top: 10px; left: 2%; width: 100px; }
.age-deco--menu    { top: 10px; left: 10%; width: 120px; }
@media (min-width: 768px) {
  .age-deco { width: 100px; }
  .age-deco--roadmap { top: 10px; right: 10px; }
  .age-deco--cavity  { top: 10px; left: 5%; width: 130px; }
  .age-deco--menu    { top: 10px; left: 12%; width: 160px; }
}
@media (max-width: 767px) {
  .age-deco { width: 60px; }
  .age-deco--cavity  { top: 5px; left: 5%; width: 80px; }
  .age-deco--menu    { top: 5px; left: 5%; width: 100px; }
}
/* 年齢別メニューページ：画像セクション間の余白を詰める（PC） */
#growth-timeline.section,
#mutans.section,
#age-detail.section,
#age-compare.section {
  padding: 12px 0;
}
#roadmap.section { padding-bottom: 12px; }

@media (max-width: 767px) {
  .roadmap-cards { grid-template-columns: repeat(2, 1fr); }
  .age-content-img { border-radius: 8px; box-shadow: none; }
  /* 年齢別メニューページ：画像セクション間の余白を詰める */
  #growth-timeline.section,
  #mutans.section,
  #age-detail.section,
  #age-compare.section {
    padding: 8px 0;
  }
  .roadmap-illustration { margin-top: 12px; }
  #roadmap.section { padding-bottom: 8px; }
}


/* ============================================
   Age Menu Detail（年令別のメニュー詳細）
   ============================================ */
.age-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.age-menu-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
}
.age-menu-item__header {
  padding: 10px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
}
.age-menu-item__header--red { background: #FF5757; }
.age-menu-item__header--orange { background: #FFB74D; }
.age-menu-item__header--green { background: #00BF63; }
.age-menu-item__header--blue { background: #4DD9D0; }
.age-menu-item__body {
  padding: 16px 12px;
  font-size: 13px;
  line-height: 1.7;
}
.age-menu-item__age {
  padding: 8px 12px;
  text-align: center;
  background: #f9f9f9;
  font-size: 13px;
}
.age-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.age-tag--red { background: #FF5757; }
.age-tag--orange { background: #FFB74D; }
.age-tag--green { background: #00BF63; }
.age-tag--blue { background: #4DD9D0; }

.age-menu-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
}
.age-menu-bottom__label {
  display: inline-block;
  margin-top: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 767px) {
  .age-menu-grid { grid-template-columns: 1fr 1fr; }
  .age-menu-bottom { grid-template-columns: 1fr; }
}


/* ============================================
   Mutans Section（ミュータンス感染予防）
   ============================================ */
.mutans-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.mutans-note {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-align: center;
}
.mutans-stats { display: flex; flex-direction: column; gap: 16px; }
.mutans-stat-row { display: flex; flex-direction: column; gap: 12px; }
.mutans-stat-item { display: flex; align-items: center; gap: 12px; }
.mutans-stat-label { min-width: 80px; font-size: 13px; text-align: right; }
.mutans-stat-bar {
  flex: 1;
  height: 32px;
  background: #f0f0f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.mutans-stat-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}
.mutans-stat-fill--red { background: linear-gradient(90deg, #FF8A9B, #FF5757); }
.mutans-stat-fill--green { background: linear-gradient(90deg, #A8EDCB, #00BF63); }
.mutans-stat-caption {
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--color-text);
}
.mutans-stat-note {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .mutans-content { grid-template-columns: 1fr; }
}


/* ============================================
   Check Sheet（口腔機能チェックシート）
   ============================================ */
.check-sheet {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-category {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.check-category__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}
.check-category__label--pink { background: var(--color-pink); }
.check-category__label--blue { background: #4DB8E8; }
.check-category__label--green { background: var(--color-green); }
.check-category__items {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check-item__box { font-size: 18px; color: var(--color-text-muted); }


/* ============================================
   3-column compare table
   ============================================ */
.compare-table--3col th:nth-child(3),
.compare-table--3col td:nth-child(3) {
  background: rgba(77,217,208,0.08);
}
.compare-table__highlight {
  background: rgba(77,217,208,0.08);
  font-weight: 700;
}


/* ============================================
   Gummy Page - Explain & Cases
   ============================================ */
.gummy-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.gummy-explain__text {
  font-size: 15px;
  line-height: 2;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}
.gummy-explain__photos {
  min-width: 0;
}
.gummy-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gummy-photo-grid .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}

/* ガミースマイル: テキスト + 症例写真 + 動画 レイアウト */
.gummy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.gummy-layout__text {
  font-size: 15px;
  line-height: 1.9;
}
.gummy-layout__text p + p { margin-top: 12px; }
.gummy-layout__media {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: end;
}
.gummy-layout__photo,
.gummy-layout__video {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.gummy-layout__photo .gummy-media-img {
  height: 320px;
  width: auto;
  object-fit: contain;
}
.gummy-layout__video .gummy-media-video {
  height: 320px;
  width: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .gummy-layout__photo .gummy-media-img {
    height: 380px;
  }
  .gummy-layout__video .gummy-media-video {
    height: 380px;
  }
}
.gummy-media-img {
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  object-fit: cover;
}
.gummy-media-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.gummy-media-video {
  width: 100%;
  border-radius: var(--radius-md);
  background: #000;
}

/* インビザライン動画セクション */
.invisalign-video-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.invisalign-video {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: #000;
}

/* 治療の流れ: 画像2枚レイアウト */
.treatment-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.treatment-img {
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.treatment-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
@media (max-width: 767px) {
  .treatment-img-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.gummy-media-caption {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
@media (max-width: 767px) {
  .gummy-layout__media {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .gummy-explain { grid-template-columns: 1fr; }
}

/* SNSページ */
.sns-handle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.sns-feed {
  max-width: 960px;
  margin: 0 auto;
}

/* Case blocks */
.case-block {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.case-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
}
.case-block__badge {
  background: var(--color-pink);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 14px;
}
.case-block__cost {
  font-size: 14px;
  color: var(--color-text);
}
.case-block__cost strong {
  font-size: 20px;
  color: var(--color-pink);
}
.case-block__photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.case-block__photos--quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.case-photo {
  position: relative;
  flex: 1;
}
.case-photo .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}
.case-photo__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-photo__img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.case-photo__arrow {
  font-size: 28px;
  color: var(--color-yellow);
  font-weight: 900;
}
.case-photo__label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.case-block__photos--quad .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}

@media (max-width: 767px) {
  .case-block__photos { flex-direction: column; }
  .case-photo__arrow { transform: rotate(90deg); }
}


/* ============================================
   Treatment Flow（治療の流れ）
   ============================================ */
.treatment-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.treatment-flow { display: flex; flex-direction: column; gap: 0; }
.treatment-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.treatment-step:last-child { border-bottom: none; }
.treatment-step__num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}
.treatment-step__content h4 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}
.treatment-step__content p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Aligner info */
.aligner-info {
  background: var(--color-bg-blue);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.aligner-info__title {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}
.aligner-info__title small {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.aligner-goods {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.aligner-good {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.aligner-usage h4 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}
.aligner-usage p {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.aligner-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.aligner-usage-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}
.aligner-usage-item__label {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.aligner-usage-item__value {
  font-size: 15px;
  font-weight: 900;
  color: var(--color-primary-dark);
}

@media (max-width: 767px) {
  .treatment-flow-grid { grid-template-columns: 1fr; }
  .aligner-usage-grid { grid-template-columns: 1fr; }
}


/* ============================================
   NAVI CARDS（ホームページ → サブページ導線）
   ============================================ */
.navi-cards-section {
  padding: 80px 0;
  background: var(--color-bg-blue);
}

.navi-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.navi-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
}

.navi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.navi-card--blue:hover { border-color: var(--color-primary); }
.navi-card--pink:hover { border-color: var(--color-pink); }

.navi-card__icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navi-card__chara {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navi-card__body {
  flex: 1;
}

.navi-card__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.navi-card--blue .navi-card__title { color: var(--color-primary-dark); }
.navi-card--pink .navi-card__title { color: var(--color-pink); }

.navi-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 12px;
}

.navi-card__link {
  font-size: 14px;
  font-weight: 700;
}

.navi-card--blue .navi-card__link { color: var(--color-primary-dark); }
.navi-card--pink .navi-card__link { color: var(--color-pink); }

@media (max-width: 767px) {
  .navi-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .navi-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .navi-card__icon {
    width: 80px;
    height: 80px;
  }
  .navi-card__title { font-size: 20px; }
}
