/* ----------------------------------------
   CSS 変数定義
   他 LP (underbite/crowding 等) と同様、ページラッパーで定義することで
   子孫要素（stats 共通パーツ等）から var(--abc-color-navy) 等が解決可能になる。
   open-mouth.css 内の既存 var(--xxx, fallback) パターンも引き続き有効。
   ---------------------------------------- */
.abc-open-mouth {
  --abc-color-primary: #005bac;
  --abc-color-primary-dark: #004182;
  --abc-color-navy: #002b55;
  --abc-color-gold: #c5a059;
  --abc-color-gold-light: #e6dcc5;
  --abc-color-beige: #f9f8f4;
  --abc-color-text: #333333;
  --abc-color-text-light: #666666;
  --abc-color-white: #ffffff;

  --abc-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --abc-shadow-hover: 0 15px 45px -10px rgba(0, 91, 172, 0.15);
}

.abc-open-mouth a {
  text-decoration: none !important;
  color: var(--abc-color-primary, #005bac);
  transition: color 0.2s ease;
}

.abc-open-mouth a:hover {
  color: var(--abc-color-primary-dark, #004182);
}

.abc-open-mouth p {
  margin-bottom: 1.6em;
  line-height: 1.8;
}

.abc-open-mouth h2 {
  font-size: clamp(20px, 2vw + 10px, 28px);
  line-height: 1.4;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--abc-color-gold, #c5a059);
}

.abc-open-mouth h3 {
  font-size: clamp(16px, 1.5vw + 8px, 20px);
  line-height: 1.6;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  padding-left: 0.8em;
  border-left: 3px solid var(--abc-color-gold, #c5a059);
}

.abc-open-mouth h4 {
  font-size: clamp(15px, 1.2vw + 7px, 18px);
  line-height: 1.6;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.abc-open-mouth .abc-heading-unit {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .abc-open-mouth .abc-heading-unit {
    display: block;
    white-space: normal;
  }
}

.abc-open-mouth ul,
.abc-open-mouth ol {
  margin: 0 0 1.6em;
  padding-left: 1.5em;
  line-height: 1.8;
}

.abc-open-mouth li {
  margin-bottom: 0.4em;
}

.abc-open-mouth li:last-child {
  margin-bottom: 0;
}

.abc-open-mouth figure {
  margin: 0 0 1.6em;
}

.abc-open-mouth figure img {
  width: 100%;
  height: auto;
  display: block;
}

.abc-open-mouth__illust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  margin: 0 0 2em;
}

.abc-open-mouth__illust-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--abc-shadow-soft, 0 10px 40px -10px rgba(0, 0, 0, 0.08));
}

.abc-open-mouth__illust-grid figure img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 601px) {
  .abc-open-mouth__illust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .abc-open-mouth__illust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.abc-open-mouth__section-image {
  margin: 0 0 1.6em;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--abc-shadow-soft, 0 10px 40px -10px rgba(0, 0, 0, 0.08));
}

.abc-open-mouth__section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.abc-open-mouth__section-image figcaption {
  padding: 0.6em 1em;
  font-size: 0.8em;
  color: var(--abc-color-text-light, #666666);
  line-height: 1.5;
}

.abc-open-mouth__preview {
  margin: 1.5em 0 2em;
  padding: 1.2em 1.5em;
  background: var(--abc-color-beige, #f9f8f4);
  border-left: 3px solid var(--abc-color-gold, #c5a059);
  border-radius: 0 4px 4px 0;
}

.abc-open-mouth__preview p {
  font-weight: bold;
  color: var(--abc-color-navy, #002b55);
  margin-bottom: 0.8em;
}

.abc-open-mouth__preview ul {
  margin: 0;
  padding-left: 1.5em;
  line-height: 1.8;
}

.abc-open-mouth__preview li {
  margin-bottom: 0.3em;
  font-size: 0.95em;
}

.abc-open-mouth__preview li:last-child {
  margin-bottom: 0;
}

.abc-open-mouth__question-box {
  margin: 1.5em 0;
  padding: 1.2em 1.5em;
  background: var(--abc-color-beige, #f9f8f4);
  border-radius: 4px;
  border: 1px solid var(--abc-color-gold-light, #e6dcc5);
}

.abc-open-mouth__question-box p {
  margin-bottom: 0.8em;
}

.abc-open-mouth__question-box p:last-child {
  margin-bottom: 0;
}

.abc-open-mouth__manga {
  margin: 1em auto 1.6em;
  max-width: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--abc-shadow-soft, 0 10px 40px -10px rgba(0, 0, 0, 0.08));
}

.abc-open-mouth__manga img {
  width: 100%;
  height: auto;
  display: block;
}

.abc-open-mouth .rank-math-list-item {
  margin-bottom: 1em;
  padding: 1.2em 1.5em;
  background: var(--abc-color-beige, #f9f8f4);
  border-left: 3px solid var(--abc-color-gold, #c5a059);
  border-radius: 0 4px 4px 0;
}

.abc-open-mouth .rank-math-question {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--abc-color-navy, #002b55);
}

.abc-open-mouth .rank-math-answer p {
  margin-bottom: 0.8em;
}

.abc-open-mouth .rank-math-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .abc-open-mouth__preview {
    padding: 1em;
  }

  .abc-open-mouth__question-box {
    padding: 1em;
  }

  .abc-open-mouth__section-image {
    margin: 0 0 1.2em;
  }

  .abc-open-mouth .rank-math-list-item {
    padding: 1em;
  }

  .abc-open-mouth__manga {
    max-width: 100%;
  }
}

.abc-sec--baby-breathing { background: #fff; }

/* ----------------------------------------
   Links Section（補助動線カード・underbite と同型）
   open-mouth.css 既存パターンに合わせ var(--xxx, fallback) 形式で記述
   ---------------------------------------- */
.abc-open-mouth .abc-sec--links {
    background-color: var(--abc-color-white, #ffffff);
    padding: 80px 24px;
}

.abc-open-mouth .abc-sec--links h2 {
    display: block !important;
    text-align: center;
    margin-bottom: 48px !important;
    border-bottom: none;
}

.abc-open-mouth .abc-sec--links h2::after {
    margin-left: auto;
    margin-right: auto;
}

.abc-open-mouth .links-content {
    max-width: 1100px;
    margin: 0 auto;
}

.abc-open-mouth .links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.abc-open-mouth .links-grid--support {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .abc-open-mouth .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .abc-open-mouth .links-grid--support {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .abc-open-mouth .links-grid {
        grid-template-columns: 1fr;
    }

    .abc-open-mouth .links-grid--support {
        grid-template-columns: 1fr;
    }
}

.abc-open-mouth .abc-link-card {
    display: block;
    background: var(--abc-color-white, #ffffff);
    padding: 32px 24px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--abc-color-primary, #005bac);
    box-shadow: var(--abc-shadow-soft, 0 10px 40px -10px rgba(0, 0, 0, 0.08));
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.abc-open-mouth .abc-link-card:hover {
    border-left-color: var(--abc-color-gold, #c5a059);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.abc-open-mouth .abc-link-card h3 {
    font-size: 18px;
    color: var(--abc-color-navy, #002b55);
    margin-top: 0;
    margin-bottom: 12px;
    padding-left: 0;
    border-left: none;
}

.abc-open-mouth .abc-link-card p {
    font-size: 13px;
    color: var(--abc-color-text-light, #666666);
    line-height: 1.6;
    margin-bottom: 0;
}
