/* =========================================================
   女神クリニック（メガクリ） — 共通スタイル
   ブランド: 透明感×水色（化粧品ブランド調）+ 丸みのある親しみフォント
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f4fbfd;      /* 透き通った淡ブルーホワイト */
  --bg-tint: #e8f6fa;      /* 水色の淡色ブロック背景 */
  --ink: #1f5a72;          /* ディープアクア: 見出し */
  --ink-soft: #3e7288;
  --text: #3b5f6e;
  --muted: #5c7a87;         /* 白背景で4.5:1を満たす濃さ */
  --line: #d8edf4;
  --gold: #5fc6de;         /* アクセント（クリアアクア） */
  --gold-dark: #227e9a;    /* アクセント濃（白背景で4.5:1） */
  --gold-soft: #e0f5fa;    /* パールアクア */
  --cta: #1fb2cf;          /* 予約/CTA（透明感アクア） */
  --cta-dark: #1795b0;
  --line-green: #06c755;   /* LINEブランド */
  --link: #2b8fb5;         /* 医療情報リンク */
  --danger: #c06a54;       /* リスク注記（柔らかめ） */
  --danger-bg: #fdf3f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(47, 130, 160, 0.10);
  --shadow-lg: 0 16px 48px rgba(47, 130, 160, 0.16);
  --maxw: 1080px;
  --serif: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  /* 本文は端末のフォントを使う。iOS/macOSのヒラギノ丸ゴは丸ゴシックなので、見た目の印象を保てる */
  --sans: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #c9f0f8, var(--gold) 58%, var(--gold-dark));
  display: grid; place-items: center; color: #fff; font-family: var(--serif);
  font-weight: 700; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 4px 12px rgba(47,130,160,.25);
}
.brand-name { font-family: var(--serif); color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: .04em; line-height: 1.2; }
.brand-sub { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: .12em; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--gold-dark); text-decoration: none; }

.header-cta { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta { background: linear-gradient(135deg, #29bedb, var(--cta-dark)); color: #fff; box-shadow: 0 6px 18px rgba(31,178,207,.35); }
.btn-cta:hover { background: var(--cta-dark); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 6px 16px rgba(6,199,85,.28); }
.btn-line:hover { background: #05b34c; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(122, 216, 238, .38), transparent 62%),
    radial-gradient(700px 380px at -8% 30%, rgba(190, 236, 248, .5), transparent 60%),
    radial-gradient(500px 300px at 55% 110%, rgba(224, 245, 250, .8), transparent 65%),
    linear-gradient(180deg, #f0fafd, #fff 82%);
  padding: 64px 0 56px;
}
/* 透明感: 水面のようなハイライト */
.hero::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  right: -60px; top: -80px; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--gold-dark); background: var(--gold-soft); padding: 7px 14px; border-radius: 999px;
  letter-spacing: .06em; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); color: var(--ink); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.32; letter-spacing: .01em; margin: 0 0 18px;
}
.hero h1 .accent { color: var(--gold-dark); }
.hero-lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13.5px; color: var(--muted); }
.hero-trust li { list-style: none; display: flex; align-items: center; gap: 6px; }
.hero-trust ul { display: contents; }
.check { color: var(--cta); font-weight: 900; }

.hero-card {
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 26px;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.hero-card h2 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.hero-card .price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.hero-card .price-row:last-of-type { border-bottom: 0; }
.hero-card .dose { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.hero-card .price { margin-left: auto; font-family: var(--serif); font-size: 22px; color: var(--gold-dark); font-weight: 700; }
.hero-card .price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.hero-card .card-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

/* ---------- 汎用セクション ---------- */
section { padding: 62px 0; }
section.soft { background: var(--bg-soft); }
section.tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 44em; margin: 0 auto 40px; }
.section-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .18em; font-weight: 700; color: var(--gold-dark); margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--serif); color: var(--ink); font-weight: 700;
  font-size: clamp(23px, 3.4vw, 33px); line-height: 1.4; margin: 0 0 12px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }
h2 .accent, h3 .accent { color: var(--gold-dark); }

/* TL;DR / 定義ボックス (LLMO) */
.tldr {
  border: 1px solid var(--gold); border-left-width: 5px; background: #fffdf8;
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 8px;
}
.tldr .tldr-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--gold-dark); margin-bottom: 8px; }
.tldr p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.def-box {
  background: var(--bg-tint); border-radius: var(--radius); padding: 22px 24px; margin: 22px 0;
}
.def-box dt { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.def-box dd { margin: 0 0 14px; color: var(--ink-soft); }
.def-box dd:last-child { margin-bottom: 0; }

/* お悩みチェック */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { font-family: var(--serif); color: var(--ink); font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ステップ */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
.step h3 { margin: 4px 0 6px; font-size: 17px; color: var(--ink); font-family: var(--serif); }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* テーブル */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table.data { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; font-size: 15px; }
table.data caption { text-align: left; font-size: 13px; color: var(--muted); padding: 12px 16px 0; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data .price { font-family: var(--serif); color: var(--gold-dark); font-weight: 700; }
.table-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* 比較（○△×） */
.mark-o { color: var(--cta); font-weight: 800; }
.mark-t { color: var(--gold-dark); font-weight: 800; }
.mark-x { color: var(--muted); font-weight: 800; }

/* リスク・注意ブロック */
.notice {
  background: var(--danger-bg); border: 1px solid #e7c3b1; border-left: 5px solid var(--danger);
  border-radius: var(--radius); padding: 22px 24px; margin: 22px 0;
}
.notice h3 { color: var(--danger); font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { margin-bottom: 6px; font-size: 14.5px; color: var(--ink-soft); }

/* コンプラ（限定解除）ボックス */
.compliance {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
}
.compliance h3 { font-size: 16px; color: var(--ink); margin: 0 0 14px; }
.compliance dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.compliance dt { font-weight: 700; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.compliance dd { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* FAQ アコーディオン */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 16px;
  padding: 20px 54px 20px 22px; position: relative; line-height: 1.6;
}
.faq-q::before { content: "Q"; color: var(--gold-dark); font-family: var(--serif); margin-right: 10px; }
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--gold); font-weight: 400; transition: transform .2s;
}
.faq-item[open] .faq-q::after, .faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a { padding: 0 22px 22px; color: var(--ink-soft); font-size: 15px; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* details ネイティブ利用時 */
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* 医師監修 / 院長 */
.doctor { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; }
.doctor-photo {
  aspect-ratio: 1; border-radius: 16px; background: linear-gradient(135deg, var(--bg-tint), var(--gold-soft));
  display: grid; place-items: center; color: var(--gold-dark); font-family: var(--serif); border: 1px solid var(--line);
}
.doctor h3 { font-family: var(--serif); color: var(--ink); font-size: 22px; margin: 0 0 4px; }
.doctor .role { color: var(--gold-dark); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.doctor .credentials { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doctor .credentials li { background: var(--bg-tint); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; color: var(--ink-soft); }
.supervise-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft);
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.supervise-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }

/* 最終CTA */
.cta-band {
  background: linear-gradient(135deg, #2b87a6, #55c0da 55%, #7fd4e8);
  color: #fff; border-radius: 26px; padding: 46px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 260px at 82% -10%, rgba(255,255,255,.42), transparent 60%); pointer-events: none; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; position: relative; }
.cta-band p { color: #eefbff; margin: 0 auto 26px; max-width: 40em; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* パンくず */
.breadcrumb { font-size: 12.5px; color: var(--muted); padding: 14px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }

/* 記事本文 */
.article { max-width: 820px; margin-inline: auto; }
/* H2：セクションの始まりが一目でわかるよう、帯＋左のアクセントバーにする */
.article h2 {
  position: relative;
  font-family: var(--serif); color: var(--ink);
  font-size: 22px; line-height: 1.5;
  margin: 52px 0 18px; padding: 14px 18px 14px 20px;
  border: 0; border-radius: 12px;
  background: linear-gradient(90deg, #eaf6fa 0%, #f6fbfd 100%);
}
.article h2::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 5px; border-radius: 3px; background: var(--gold-dark);
}
/* H3：H2と混ざらないよう、背景は持たせず細いバーだけにする */
.article h3 {
  font-family: var(--serif); color: var(--ink);
  font-size: 18px; line-height: 1.55;
  margin: 32px 0 10px; padding-left: 15px;
  border-left: 3px solid var(--gold);
}
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .lead { font-size: 17px; color: var(--ink-soft); }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 34px; }
.toc strong { font-family: var(--serif); color: var(--ink); display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; }
.toc li { margin-bottom: 6px; }
@media (max-width: 640px){ .toc ol { columns: 1; } }

/* フッター */
.site-footer { background: var(--ink); color: #d3ecf5; padding: 54px 0 30px; margin-top: 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.footer-grid h2 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .05em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #d3ecf5; }
.footer-grid a:hover { color: var(--gold); text-decoration: none; }
.footer-brand .brand-name { color: #fff; }
.footer-nap { font-style: normal; line-height: 1.9; color: #b5d8e4; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 12px; color: #aed0dc; line-height: 1.85; }
.footer-legal p { margin: 0 0 8px; }
.footer-bottom { text-align: center; font-size: 12px; color: #aed0dc; margin-top: 18px; }

/* 追従CTA (モバイル) */
.mobile-cta { display: none; }

/* ユーティリティ */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.small { font-size: 13px; color: var(--muted); }
.stack-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .doctor { grid-template-columns: 1fr; text-align: center; }
  .doctor-photo { max-width: 200px; margin-inline: auto; }
  .doctor .credentials { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-cta .btn:not(.btn-line) { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--bg-soft); }
  section { padding: 46px 0; }
  .cta-band { padding: 34px 22px; }
  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; }
  body { padding-bottom: 72px; }
}

/* =========================================================
   モーション & メガミちゃん（女神感・希望の演出）
   ========================================================= */

/* ふわふわ浮遊 */
@keyframes mg-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
/* 光の粒（水中の気泡） */
@keyframes mg-bubble {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: .75; }
  100% { transform: translateY(-560px) scale(1.35); opacity: 0; }
}
/* CTAの光沢スイープ */
@keyframes mg-shine {
  0% { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}
/* きらめき */
@keyframes mg-twinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* スクロール連動フェードイン（JSが .reveal を付与） */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ヒーローの光の粒 */
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bubbles span {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95), rgba(159,226,242,.5));
  box-shadow: 0 0 14px rgba(127,212,232,.45);
  animation: mg-bubble linear infinite;
}
.hero-bubbles span:nth-child(1) { left: 8%;  width: 14px; height: 14px; animation-duration: 11s; }
.hero-bubbles span:nth-child(2) { left: 22%; width: 8px;  height: 8px;  animation-duration: 14s; animation-delay: 2.5s; }
.hero-bubbles span:nth-child(3) { left: 38%; width: 11px; height: 11px; animation-duration: 12s; animation-delay: 5s; }
.hero-bubbles span:nth-child(4) { left: 55%; width: 7px;  height: 7px;  animation-duration: 15s; animation-delay: 1.2s; }
.hero-bubbles span:nth-child(5) { left: 70%; width: 13px; height: 13px; animation-duration: 10s; animation-delay: 3.8s; }
.hero-bubbles span:nth-child(6) { left: 84%; width: 9px;  height: 9px;  animation-duration: 13s; animation-delay: 6.5s; }
.hero-bubbles span:nth-child(7) { left: 93%; width: 6px;  height: 6px;  animation-duration: 16s; animation-delay: .6s; }

/* 希望タグライン（グラデ文字） */
.hero-tagline {
  font-family: var(--serif); font-weight: 700; font-size: clamp(15px, 2vw, 18px);
  background: linear-gradient(90deg, var(--gold-dark), #7fd4e8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 10px; letter-spacing: .05em;
}

/* CTAボタンの光沢 */
.btn-cta { position: relative; overflow: hidden; }
.btn-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: mg-shine 3.2s ease-in-out infinite;
}

/* メガミちゃん配置 */
.megami { display: block; animation: mg-bob 4.5s ease-in-out infinite; filter: drop-shadow(0 10px 22px rgba(47,130,160,.25)); }
.hero-card { position: relative; }
.megami-peek { position: absolute; top: -96px; right: 14px; width: 118px; z-index: 1; }
.megami-cta { width: 140px; margin: -10px auto 6px; position: relative; }
.megami-inline { width: 150px; flex: none; }

/* 希望ストリップ（美しくなる期待感・断定なし） */
.hope-strip {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(700px 300px at 20% -20%, rgba(159,226,242,.5), transparent 60%),
    radial-gradient(700px 300px at 85% 120%, rgba(224,245,250,.9), transparent 60%),
    linear-gradient(135deg, #f4fbfd, #e8f6fa);
}
.hope-strip .hope-inner { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; }
.hope-strip h2 {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(22px, 3.4vw, 32px); line-height: 1.7; margin: 0;
}
.hope-strip h2 .glow { background: linear-gradient(90deg, var(--gold-dark), #6cc9e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hope-strip .hope-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.hope-strip .spark { position: absolute; font-size: 18px; color: var(--gold); animation: mg-twinkle 3s ease-in-out infinite; }

/* 動きを抑えたい環境への配慮 */
@media (prefers-reduced-motion: reduce) {
  .megami, .hero-bubbles span, .btn-cta::after, .hope-strip .spark { animation: none; }
  .hero-bubbles { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  .megami-peek { top: -78px; width: 96px; }
  .megami-inline { width: 120px; }
}

/* ---------- アイコン画像・イラスト ---------- */
.card .ico { background: transparent; width: 52px; height: 52px; }
.card .ico img { width: 48px; height: 48px; }
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: center; }
.about-grid .illust, .flow-illust { border-radius: 20px; overflow: hidden; }
.flow-illust { max-width: 380px; margin: 0 auto 30px; }
.section-illust-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
/* コラムカード */
.column-card .cat { font-size: 11.5px; font-weight: 700; color: var(--gold-dark); letter-spacing: .08em; margin-bottom: 8px; }
.column-card h3 { line-height: 1.55; }
.column-card h3 a { color: var(--ink); }
.column-card .date { margin-top: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .illust { max-width: 340px; margin-inline: auto; }
}

/* =========================================================
   WordPress 互換・テーマ固有スタイル
   ========================================================= */

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--maxw); }
.entry-content > .alignfull { max-width: none; }
.entry-content img.aligncenter { margin-inline: auto; }

/* 表：見出し行に色を入れ、1行おきに薄い帯を敷いて横に目線が滑らないようにする */
.wp-block-table { margin: 26px 0; }
.wp-block-table table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #cfe4ec; border-radius: 12px; overflow: hidden;
  font-size: 14.5px;
}
.wp-block-table thead th {
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; line-height: 1.45; text-align: left;
  padding: 12px 14px; border: 0; border-right: 1px solid rgba(255,255,255,.18);
}
.wp-block-table thead th:last-child { border-right: 0; }
.wp-block-table tbody th,
.wp-block-table tbody td {
  padding: 12px 14px; border: 0;
  border-top: 1px solid #e3eff4; border-right: 1px solid #e3eff4;
  vertical-align: top; line-height: 1.65;
}
.wp-block-table tbody th:last-child,
.wp-block-table tbody td:last-child { border-right: 0; }
.wp-block-table tbody tr:nth-child(even) { background: #f5fafc; }
/* 1列目は行の見出しとして扱う */
.wp-block-table tbody tr > *:first-child { font-weight: 700; color: var(--ink); }
/* 表タイトルは表の上に、控えめに */
.wp-block-table caption {
  caption-side: top; text-align: left;
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 0 0 8px; line-height: 1.6;
}
.wp-block-table figcaption { padding: 10px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
/* 日本語の改行位置を文節で切る（対応ブラウザのみ。非対応でも従来どおり） */
.article p, .article li, .wp-block-table td, .wp-block-table th { word-break: auto-phrase; }

@media (max-width: 600px) {
  .article h2 { font-size: 19.5px; margin: 40px 0 14px; padding: 12px 14px 12px 17px; }
  .article h2::before { top: 9px; bottom: 9px; }
  .article h3 { font-size: 16.5px; margin: 26px 0 8px; padding-left: 13px; }
  .wp-block-table table { font-size: 13.5px; }
  .wp-block-table thead th { font-size: 13px; padding: 10px; }
  .wp-block-table tbody th,
  .wp-block-table tbody td { padding: 10px; }
}
.wp-block-quote { border-left: 4px solid var(--gold); background: var(--bg-soft); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); max-width: 160px; }
.wp-block-button__link { border-radius: 999px; font-weight: 700; }
.is-style-megacli-cta .wp-block-button__link { background: linear-gradient(135deg, #29bedb, var(--cta-dark)); color: #fff; }
.is-style-megacli-line .wp-block-button__link { background: var(--line-green); color: #fff; }
.is-style-megacli-gold .wp-block-button__link { background: var(--gold); color: #fff; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- コラム一覧 ---------- */
.column-lead { max-width: 820px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.list-title, .ranking-title {
  max-width: 820px; margin: 0 auto 16px; font-family: var(--serif); color: var(--ink);
  font-size: 20px; display: flex; align-items: center; gap: 10px;
}
.list-title::before, .ranking-title::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--cta); flex: none;
}
.ranking { max-width: 820px; margin: 0 auto 44px; }
.ranking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.ranking-item a {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.ranking-item a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ranking-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--gold-soft); color: var(--gold-dark);
}
/* 実際の閲覧数で並んでいるときだけ、上位を色で強調する */
.ranking-views .ranking-item:nth-child(1) .ranking-num { background: var(--cta); color: #fff; }
.ranking-views .ranking-item:nth-child(2) .ranking-num,
.ranking-views .ranking-item:nth-child(3) .ranking-num { background: var(--gold-dark); color: #fff; }
/* 新着表示のときは順位に見えないよう番号を出さない */
.ranking-recent .ranking-num { display: none; }
.ranking-thumb { flex: none; width: 76px; }
.ranking-thumb img {
  display: block; width: 76px; height: 51px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.ranking-text { font-size: 15px; line-height: 1.6; font-weight: 600; }

.post-list { display: grid; gap: 18px; max-width: 820px; margin-inline: auto; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.post-card.has-thumb { display: flex; gap: 20px; padding: 18px; align-items: flex-start; }
.post-card-thumb { flex: none; width: 200px; }
.post-card-thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
}
.post-card-body { min-width: 0; }
.post-card h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 8px; line-height: 1.55; }
.post-card h3 a { color: var(--ink); }
.post-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.post-card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

@media (max-width: 700px) {
  .post-card.has-thumb { flex-direction: column; gap: 14px; }
  .post-card-thumb { width: 100%; }
  .post-card h3 { font-size: 17px; }
  .ranking-item a { gap: 11px; padding: 10px 12px; }
  .ranking-thumb { width: 62px; }
  .ranking-thumb img { width: 62px; height: 42px; }
  .ranking-text { font-size: 14px; }
}
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }

.entry-header { max-width: 820px; margin: 10px auto 26px; }
.entry-header h1 { font-family: var(--serif); color: var(--ink); font-size: clamp(26px, 4vw, 38px); line-height: 1.4; margin: 6px 0 12px; }
.entry-meta { font-size: 13px; color: var(--muted); }

/* 画像最適化プラグインの Picture WebP は <img> を <picture> で包む。
   包まれても崩れないように、picture を block にしておく */
.entry-thumb picture, .post-card-thumb picture, .ranking-thumb picture { display: block; }

/* 記事上部のアイキャッチ。3:2 を固定してCLSを出さない */
.entry-thumb { max-width: 820px; margin: 0 auto 30px; }
.entry-thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .entry-thumb { margin-bottom: 22px; }
  .entry-thumb img { border-radius: 10px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; text-align: center; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); }
.stat .num { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); color: var(--gold-dark); font-weight: 700; line-height: 1.2; }
.stat .num small { font-size: .45em; color: var(--ink-soft); }
.stat .label { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.stats-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

.editor-styles-wrapper { font-family: var(--sans); }

/* =========================================================
   SP堅牢化 — 長いサイト名/キャッチフレーズでも崩れない
   ========================================================= */
body { overflow-x: clip; }
.header-inner { flex-wrap: nowrap; min-width: 0; }
.brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.brand > span:last-child { min-width: 0; overflow: hidden; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav, .header-cta, .nav-toggle { flex: none; }

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 16.5px; }
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }
  .header-inner { height: 60px; gap: 10px; }
  html { scroll-padding-top: 72px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .header-cta .btn-sm { padding: 9px 12px; font-size: 12px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 25.5px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  section { padding: 40px 0; }
  .section-head h2 { font-size: 22px; }
  .card { padding: 20px; }
  .hero-card { padding: 20px; }
  .step { padding: 18px; grid-template-columns: 44px 1fr; gap: 12px; }
  .cta-band { padding: 30px 18px; }
  .compliance, .notice, .tldr, .def-box { padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .megami-inline { width: 104px; }
  .hope-strip h2 { font-size: 19px; }
}

/* SP: メガミちゃんとヒーロー本文の重なり防止 */
@media (max-width: 760px) {
  .hero-card { margin-top: 92px; }
}

/* =========================================================
   SP微調整 v1.1.2 — 改行制御・アイコン横並び・ヘッダー全文表示
   ========================================================= */
/* SPのみ有効になる改行 */
.br-sp { display: none; }
/* アイブロウ帯を最前面レイヤーへ */
.hero-eyebrow { position: relative; z-index: 5; }
/* 女神ちゃんを少し下げる（デスクトップ） */
.megami-peek { top: -84px; }

@media (max-width: 760px) {
  .br-sp { display: inline; }

  /* ヘッダー: クリニック名・キャッチコピーを省略せず全文表示 */
  .header-inner { height: auto; min-height: 58px; padding-block: 8px; gap: 10px; }
  .brand-name { font-size: 16px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
  .brand-sub { display: block; white-space: normal; overflow: visible; text-overflow: clip; font-size: 9.5px; letter-spacing: .05em; line-height: 1.4; margin-top: 2px; }
  html { scroll-padding-top: 88px; }

  /* アイコン付きカードはアイコンを左横に */
  .icon-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; }
  .icon-card .ico { grid-row: 1 / span 2; width: 46px; height: 46px; margin: 2px 0 0; }
  .icon-card .ico img { width: 44px; height: 44px; }
  .icon-card h3 { margin: 0 0 6px; font-size: 16.5px; }
  .icon-card p { font-size: 13.5px; }

  /* 女神ちゃんを少し下げ、カードの上端に乗せる（SP） */
  .megami-peek { top: -56px; width: 86px; }
  .hero-card { margin-top: 62px; }
}

@media (max-width: 480px) {
  /* 「マンジャロのオンライン診療。」(14文字)がSPで改行しないサイズ */
  .hero h1 { font-size: clamp(19px, calc((100vw - 40px) / 14), 25px); letter-spacing: 0; }
}

/* =========================================================
   v1.2.0 UI最大化 & お得感（コンプラ内: キャンペーン表現なし）
   ========================================================= */
/* タイポグラフィ・スケールアップ */
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.28; }
.hero-tagline { font-size: clamp(16px, 2.2vw, 20px); }
.section-head h2 { font-size: clamp(25px, 3.8vw, 38px); }
.btn-lg { padding: 19px 36px; font-size: 17.5px; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); }
.cta-band { padding: 56px 46px; }

/* 特典バッジ（事実ベースのみ・キャンペーン文言禁止） */
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.perk {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fffdf6, #fdf6e6);
  border: 1.5px solid var(--goldTrue, #e2c078); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 800; color: #9a7a2f;
  box-shadow: 0 3px 10px rgba(226,192,120,.25);
}
.perk .v { color: var(--cta-dark); font-size: 14px; }

/* ヒーロー料金カードの価格を大きく */
.hero-card .price { font-size: 28px; }
.hero-card .price-row { margin: 16px 0; }

/* プランカード（お得感の主役） */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: stretch; margin-bottom: 26px; }
.plan-card {
  position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: 22px; padding: 30px 24px 26px; text-align: center;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 6px;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  border: 2.5px solid var(--gold); box-shadow: 0 18px 50px rgba(47,130,160,.2);
  background: linear-gradient(180deg, #fdfeff, #f0fafd);
}
.plan-ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #e8c375, #cfa14e); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em;
  padding: 6px 20px; border-radius: 999px; box-shadow: 0 6px 14px rgba(207,161,78,.4);
  white-space: nowrap;
}
.plan-card .plan-dose { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); margin-top: 4px; }
.plan-card .plan-pos { font-size: 12.5px; color: var(--muted); }
.plan-card .plan-price { font-family: var(--serif); font-weight: 700; color: var(--gold-dark); font-size: clamp(34px, 4.4vw, 44px); line-height: 1.15; margin: 8px 0 2px; }
.plan-card .plan-price small { font-size: .34em; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; margin: 8px 0 14px; padding: 0; font-size: 13px; color: var(--ink-soft); display: grid; gap: 5px; }
.plan-card ul .check { margin-right: 5px; }
.plan-card .btn { margin-top: auto; }
.plan-note { text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .plan-cards { grid-template-columns: 1fr; gap: 26px; }
  .plan-card { padding: 26px 20px 22px; }
  .cta-band { padding: 38px 20px; }
}

/* PC専用改行（SPでは非表示 = SPは1行のまま） */
.br-pc { display: inline; }
@media (max-width: 760px) { .br-pc { display: none; } }

/* 価格の単位表記を折り返さない */
.plan-card .plan-price small { white-space: nowrap; display: inline-block; }

/* =========================================================
   v1.3.0 まとめてプラン & LINE訴求セクション
   ========================================================= */
/* プランカード内の「3ヶ月まとめて」表示（事実ベース） */
.plan-bulk {
  background: var(--bg-tint); border-radius: 12px; padding: 10px 12px;
  font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 10px; line-height: 1.6;
}
.plan-bulk b { color: var(--gold-dark); font-family: var(--serif); font-size: 16px; white-space: nowrap; }

/* LINE訴求セクション */
.line-panel {
  display: grid; grid-template-columns: 1fr 280px; gap: 34px; align-items: center;
  background: #fff; border: 1.5px solid #b9e7c9; border-radius: 26px;
  padding: 40px 44px; box-shadow: 0 14px 44px rgba(6,199,85,.12);
}
.line-panel h2 { font-family: var(--serif); color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.line-panel h2 .ln { color: #06a94a; }
.line-merits { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 11px; }
.line-merits li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.line-merits .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--line-green); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}
.line-qr { text-align: center; }
.line-qr .qr-box {
  width: 180px; height: 180px; margin: 0 auto 10px;
  background: var(--bg-soft); border: 2px dashed #9ed8b4; border-radius: 18px;
  display: grid; place-items: center; color: var(--muted); font-size: 12px; padding: 12px; line-height: 1.6;
}
.line-qr img { width: 180px; height: 180px; border-radius: 18px; margin: 0 auto 10px; }
.switch-note {
  margin-top: 18px; padding: 14px 18px; background: var(--bg-soft);
  border-left: 4px solid var(--gold); border-radius: 10px; font-size: 13px; color: var(--ink-soft);
}
@media (max-width: 760px) {
  .line-panel { grid-template-columns: 1fr; padding: 28px 20px; gap: 22px; }
  .line-qr { order: -1; }
}

/* =========================================================
   v1.3.1 QR削除・固定フッターCTA吹き出し
   ========================================================= */
/* LINEパネルは1カラムに（QR廃止） */
.line-panel { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }

/* 固定フッターCTAの吹き出しバッジ */
.mobile-cta { padding-top: 16px; }
.mobile-cta .cta-col { flex: 1; position: relative; display: flex; }
.mobile-cta .cta-col .btn { flex: 1; }
.cta-pop {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 1;
  background: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 2.5px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
  box-shadow: 0 3px 8px rgba(22,60,80,.18); pointer-events: none;
}
.cta-pop.pop-line { color: #06a94a; border: 1.5px solid #58d68d; }
.cta-pop.pop-cta { color: var(--cta-dark); border: 1.5px solid #7fd4e8; }

/* =========================================================
   v1.4.0 フロート女神ちゃん（LINE誘導・✕で非表示）
   ========================================================= */
.megami-float {
  position: fixed; right: 16px; bottom: 96px; z-index: 70; width: 134px;
  opacity: 0; pointer-events: none; transform: translateY(-52px);
  transition: opacity .55s ease, transform .7s cubic-bezier(.34,1.4,.5,1);
}
.megami-float.show { opacity: 1; pointer-events: auto; transform: none; }
.megami-float-link { display: block; position: relative; text-decoration: none; }
.megami-float-link:hover { text-decoration: none; }
.megami-float-link > img {
  width: 106px; height: auto; margin: 0 auto; display: block;
  animation: mg-bob 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(47,130,160,.32));
}
.megami-float-bubble {
  display: block; position: relative; margin-bottom: 9px;
  background: #fff; border: 2px solid var(--line-green); color: #068a3f;
  font-size: 11.5px; font-weight: 800; line-height: 1.5; text-align: center;
  border-radius: 14px; padding: 7px 9px;
  box-shadow: 0 6px 16px rgba(6,199,85,.25);
}
.megami-float-bubble::after {
  content: ""; position: absolute; bottom: -8px; left: 50%;
  width: 12px; height: 12px; background: #fff;
  border-right: 2px solid var(--line-green); border-bottom: 2px solid var(--line-green);
  transform: translateX(-50%) rotate(45deg);
}
.megami-float-close {
  position: absolute; top: -8px; right: -8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1;
  cursor: pointer; box-shadow: 0 3px 9px rgba(22,60,80,.2);
}
.megami-float .fspark { position: absolute; font-size: 15px; color: #f0c96e; animation: mg-twinkle 2.6s ease-in-out infinite; pointer-events: none; }
@media (min-width: 761px) {
  .megami-float { right: 26px; bottom: 30px; width: 150px; }
  .megami-float-link > img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .megami-float { transition: opacity .3s; transform: none; }
  .megami-float-link > img, .megami-float .fspark { animation: none; }
}

/* フロート女神ちゃん: タップ訴求バッジ */
@keyframes mg-tap-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(6,199,85,.35); }
  50% { transform: scale(1.07); box-shadow: 0 6px 18px rgba(6,199,85,.55); }
}
.megami-float-tap {
  display: block; margin: 7px auto 0; width: fit-content;
  background: linear-gradient(135deg, #06c755, #05a94a); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1.4;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  animation: mg-tap-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .megami-float-tap { animation: none; } }

/* タップバッジの収まり調整 */
.megami-float { width: 148px; right: 14px; }
.megami-float-tap { font-size: 10.5px; padding: 5px 11px; letter-spacing: .02em; }

/* =========================================================
   v1.4.2 フロート女神ちゃんのコンパクト化
   （タップバッジをキャラ足元にオーバーレイ）
   ========================================================= */
@keyframes mg-tap-pulse-c {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 12px rgba(6,199,85,.35); }
  50% { transform: translateX(-50%) scale(1.06); box-shadow: 0 6px 16px rgba(6,199,85,.55); }
}
.megami-float { width: 140px; }
.megami-float-bubble { margin-bottom: 5px; font-size: 11px; padding: 6px 8px; }
.megami-float-link { padding-bottom: 10px; }
.megami-float-link > img { width: 98px; margin-bottom: 0; }
.megami-float-tap {
  position: absolute; left: 50%; bottom: 0; margin: 0;
  animation: mg-tap-pulse-c 1.6s ease-in-out infinite;
}
@media (min-width: 761px) {
  .megami-float { width: 152px; }
  .megami-float-link > img { width: 108px; }
}
@media (prefers-reduced-motion: reduce) { .megami-float-tap { animation: none; transform: translateX(-50%); } }

/* =========================================================
   v1.4.3 メガミちゃんネームタグ & SP見出し1行修正
   ========================================================= */
/* 希望ストリップ: キャラ名タグ */
.megami-fig { margin: 0; flex: none; text-align: center; }
.megami-name {
  display: inline-block; margin-top: 2px;
  background: #fff; border: 1.5px solid var(--gold); color: var(--gold-dark);
  font-family: var(--serif); font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  border-radius: 999px; padding: 4px 16px;
  box-shadow: 0 3px 10px rgba(47,130,160,.15);
}
/* SP: 「マンジャロのオンライン診療。」(14文字)を必ず1行に
   ※UI最大化(clamp 30px〜)より後に定義して上書き */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(19px, calc((100vw - 40px) / 14), 26px); letter-spacing: 0; }
}

/* =========================================================
   v1.5.0 見出しをSPで1行に収める
   ========================================================= */
@media (max-width: 480px) {
  /* 「マンジャロ（チルゼパチド）とは」「ご検討の前に必ずお読みください」(15文字) */
  .section-head h2 { font-size: min(25px, calc((100vw - 40px) / 15)); }
  /* 「その一歩に、女神のようにそっと寄り添う。」(20文字) */
  .hope-strip h2 { font-size: min(19px, calc((100vw - 44px) / 20)); }
}

/* =========================================================
   v1.6.0 量産用パターン部品（ランキング・おすすめな方）
   ========================================================= */
/* 院内実績ランキング */
.rank-list { display: grid; gap: 14px; }
.rank-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 18px 22px; box-shadow: var(--shadow);
}
.rank-item .rank-no {
  margin: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #e8c375, #cfa14e); }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #c9d3da, #9fb0bc); }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #d9a988, #b97f5c); }
.rank-item:nth-child(n+4) .rank-no { background: var(--gold); }
.rank-item h3 { margin: 0; font-size: 17px; font-family: var(--serif); color: var(--ink); }
.rank-item p { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.rank-item .rank-val { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--gold-dark); font-size: 18px; white-space: nowrap; }
.rank-basis { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ご検討いただける方／注意が必要な方 の2カラム */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-col { border-radius: var(--radius); padding: 22px 24px; }
.fit-col.ok { background: #f2fbf6; border: 1.5px solid #bfe8cd; }
.fit-col.ng { background: var(--danger-bg); border: 1.5px solid #e7c3b1; }
.fit-col h3 { margin: 0 0 12px; font-size: 16px; }
.fit-col.ok h3 { color: #0b8a46; }
.fit-col.ng h3 { color: var(--danger); }
.fit-col ul { margin: 0; padding-left: 20px; }
.fit-col li { margin-bottom: 7px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .fit-grid { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 44px 1fr; padding: 16px 16px; }
  .rank-item .rank-val { grid-column: 2; }
}

/* =========================================================
   v1.7.0 シンプル化 & 価格事実訴求
   ========================================================= */
/* 価格ハイライト帯（事実の単価表示） */
.price-highlight {
  margin: 10px 0 4px; padding: 11px 14px; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, #fff8e8, #fdeecd); border: 1.5px solid #e2c078;
  color: #8a6a20; font-weight: 800; font-size: 13.5px; line-height: 1.7;
}
.price-highlight .num { font-family: var(--serif); font-size: 1.5em; color: #a4771c; white-space: nowrap; }
.price-highlight-center { max-width: 620px; margin: 0 auto 24px; font-size: 15px; }
.plan-bulk.half { background: #fff6e6; }

/* 重要事項コンパクト版 */
.compliance.compact { font-size: 13px; padding: 20px 22px; }
.compliance.compact .comp-intro { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.8; }
.compliance.compact dl { gap: 8px; }
.compliance.compact dt { font-size: 13px; margin-bottom: 0; }
.compliance.compact dd { font-size: 12.5px; }

/* =========================================================
   v1.7.1 価格訴求の強化（事実表示ベース）
   ========================================================= */
.price-highlight .ph-label {
  display: inline-block; background: #b8860b; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  border-radius: 999px; padding: 3px 12px; margin-bottom: 7px;
}
.price-highlight .num { font-size: 1.9em; }
.price-highlight .ph-sub { display: block; font-size: 11.5px; color: #8a6a20; font-weight: 700; margin-top: 5px; }
.price-highlight-center .num { font-size: 2.2em; }
.price-highlight-center .ph-sub { font-size: 13px; }
.price-reason { text-align: center; font-size: 13px; color: var(--ink-soft); max-width: 560px; margin: -12px auto 26px; }

/* =========================================================
   v1.7.2 価格カウントダウン演出
   ========================================================= */
@keyframes mg-price-land {
  0% { transform: scale(1.3); text-shadow: 0 0 16px rgba(240,201,110,.95); }
  60% { transform: scale(.96); }
  100% { transform: scale(1); text-shadow: none; }
}
.price-highlight .num { display: inline-block; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: center; }
.price-highlight .num.landed { animation: mg-price-land .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .price-highlight .num.landed { animation: none; } }

/* =========================================================
   v1.8.2 料金カード: メガミちゃんを見出し横に（セリフ付き）
   ========================================================= */
.hero-card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.megami-side { margin: 0; flex: none; width: 96px; text-align: center; }
.megami-side img { width: 90px; height: auto; margin: 0 auto; animation: mg-bob 4.5s ease-in-out infinite; }
.megami-side .mini-bubble {
  display: inline-block; background: #fff; border: 1.5px solid var(--gold);
  color: var(--gold-dark); font-size: 9.5px; font-weight: 800; line-height: 1.4;
  border-radius: 999px; padding: 3px 9px; margin-bottom: 2px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(47,130,160,.15);
}
@media (prefers-reduced-motion: reduce) { .megami-side img { animation: none; } }
/* キャラがカード内に収まったため、SPの上余白は不要に */
@media (max-width: 760px) {
  .hero-card { margin-top: 24px; }
}

/* =========================================================
   v1.8.3 ブランドアイコン = メガミちゃん
   ========================================================= */
.brand-mark-img {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, var(--gold-soft) 70%);
  object-fit: contain; padding: 3px;
  border: 1.5px solid var(--gold-soft);
  box-shadow: 0 4px 12px rgba(47,130,160,.2);
}
@media (max-width: 760px) { .brand-mark-img { width: 36px; height: 36px; } }

/* =========================================================
   v1.9.0 TOPバナー画像スロット & 枠数の事実表示
   ========================================================= */
.top-banner { padding: 26px 0 8px; }
.top-banner > .wrap > a, .top-banner .tb-inner { display: block; max-width: 880px; margin: 0 auto; }
.top-banner .banner-slide img, .top-banner > .wrap > a > img, .top-banner .tb-inner > img {
  width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(47,130,160,.2);
  border: 1px solid rgba(255,255,255,.8);
  transition: transform .15s ease, box-shadow .2s ease;
}
.top-banner a.banner-slide:hover img, .top-banner > .wrap > a:hover > img { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(47,130,160,.28); }
/* 枠数の事実表示（ヒーローCTA直下） */
.capacity-note {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 2px 0 14px; padding: 7px 14px;
  background: #fff8e8; border: 1.5px solid #e2c078; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #8a6a20;
}
.capacity-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e8a825; flex: none;
  animation: mg-twinkle 2s ease-in-out infinite; }
@media (max-width: 760px) {
  .top-banner { padding: 18px 0 4px; }
  .top-banner .banner-slide img, .top-banner > .wrap > a > img, .top-banner .tb-inner > img { border-radius: 14px; }
  .capacity-note { font-size: 11.5px; }
}

/* =========================================================
   v1.9.2 TOPバナーカルーセル（3枠・キャッチコピー付き）
   ========================================================= */
.banner-carousel { position: relative; max-width: 880px; margin: 0 auto; }
.banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-radius: 20px;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: center; text-decoration: none; display: block; }
.banner-slide:hover { text-decoration: none; }
.banner-slide img {
  width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(47,130,160,.2);
  border: 1px solid rgba(255,255,255,.8);
}
.bn-caption { text-align: center; padding: 14px 12px 2px; }
.bn-catch { font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 2.4vw, 22px); color: var(--ink); line-height: 1.5; }
.bn-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.banner-dots { display: flex; justify-content: center; gap: 0; margin-top: 6px; }
/* 見た目は10pxの丸のまま、指で押せる範囲だけ24px確保する */
.banner-dots button {
  width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.banner-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #b3d4e0; transition: background .2s, transform .2s;
}
.banner-dots button.on::before { background: var(--gold-dark); transform: scale(1.25); }
@media (max-width: 760px) {
  .banner-slide img { border-radius: 14px; }
  .banner-track { border-radius: 14px; }
  .bn-catch { font-size: 16px; }
  .bn-sub { font-size: 12px; }
}

/* =========================================================
   v1.9.2b バナーを3Dコーバーフロー型に
   （中央1枚＋両サイドが奥に傾いて見え、円を描くように回転）
   ========================================================= */
.banner-stage { position: relative; height: min(430px, 56vw); perspective: 1300px; }
.banner-carousel .banner-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .75s cubic-bezier(.22,.8,.3,1), opacity .75s, filter .75s;
  will-change: transform; text-decoration: none;
}
.banner-carousel .banner-slide img {
  max-height: 100%; max-width: 74%; width: auto; border-radius: 20px;
  box-shadow: 0 18px 48px rgba(31,90,114,.28); border: 1px solid rgba(255,255,255,.8);
}
.banner-slide.pos-c { transform: translateX(0) scale(1) rotateY(0deg); z-index: 3; opacity: 1; }
.banner-slide.pos-l { transform: translateX(-37%) scale(.76) rotateY(40deg); z-index: 2; opacity: .55; filter: brightness(.9); cursor: pointer; }
.banner-slide.pos-r { transform: translateX(37%) scale(.76) rotateY(-40deg); z-index: 2; opacity: .55; filter: brightness(.9); cursor: pointer; }
.banner-slide.pos-hidden { transform: scale(.5); opacity: 0; pointer-events: none; }
.banner-carousel .bn-caption { transition: opacity .35s; min-height: 3.2em; }
/* v1.9.34 SPでバナーが小さすぎたので、画面いっぱいまで拡大
   （左右の余白を外して全幅にし、中央を88vwに。両サイドは端で覗く程度に） */
@media (max-width: 760px) {
  .top-banner > .wrap { padding-left: 0; padding-right: 0; }
  .banner-carousel { max-width: 100%; }
  .banner-stage { height: min(430px, 96vw); }
  /* width:auto だと選ばれた候補画像の実寸で止まるため、幅を明示して確実に広げる */
  .banner-carousel .banner-slide img { width: 88vw; max-width: 88vw; height: auto; max-height: 100%; border-radius: 16px; }
  .banner-slide.pos-l { transform: translateX(-49%) scale(.60) rotateY(46deg); opacity: .38; }
  .banner-slide.pos-r { transform: translateX(49%) scale(.60) rotateY(-46deg); opacity: .38; }
  .banner-dots { margin-top: 12px; }
  /* v1.9.36 左右のスライドが画面外へはみ出して横スクロールが出ていたので切り取る
     （overflow-x:clip 未対応のブラウザは hidden にフォールバック） */
  .top-banner { overflow-x: hidden; overflow-x: clip; }
}
@media (max-width: 400px) {
  .banner-carousel .banner-slide img { width: 90vw; max-width: 90vw; }
  .banner-stage { height: min(430px, 98vw); }
}
@media (prefers-reduced-motion: reduce) {
  .banner-carousel .banner-slide { transition: opacity .3s; }
}

/* v1.9.3 料金セクション: 表を画像スロットに置換 */
.price-image { max-width: 800px; margin: 0 auto 22px; }
.price-image img {
  width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(47,130,160,.18);
  border: 1px solid rgba(255,255,255,.8);
}
@media (max-width: 760px) { .price-image img { border-radius: 14px; } }

/* =========================================================
   v1.9.4 SPのメガミちゃんサイズ調整（全箇所ひと回り縮小）
   ========================================================= */
@media (max-width: 760px) {
  /* 料金カードの見出し横 */
  .megami-side { width: 76px; }
  .megami-side img { width: 70px; }
  .megami-side .mini-bubble { font-size: 8.5px; padding: 2.5px 8px; }
  /* フロートウィジェット */
  .megami-float { width: 118px; right: 12px; bottom: 92px; }
  .megami-float-link > img { width: 76px; }
  .megami-float-bubble { font-size: 10px; padding: 5px 7px; }
  .megami-float-tap { font-size: 9px; padding: 4px 9px; }
  .megami-float-close { width: 22px; height: 22px; font-size: 11px; }
  /* CTAバンド */
  .megami-cta { width: 100px; margin: -6px auto 4px; }
  /* 希望ストリップ */
  .megami-inline { width: 92px; }
  .megami-name { font-size: 11px; padding: 3px 12px; }
}

/* v1.9.4b SPでボタンが画面幅を超えないように（横スクロール防止） */
@media (max-width: 760px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; }
}

/* v1.9.4c SPのヒーローカード上メガミちゃん（peek）も縮小 */
@media (max-width: 760px) {
  .megami-peek { top: -46px; width: 70px; }
}

/* =========================================================
   v1.9.7 ヒーロー右カードの画像差し替え（タップ遷移対応）
   ========================================================= */
.hero-card.hero-card-image { padding: 14px 14px 12px; }
.hero-card-image > a { display: block; border-radius: 16px; }
.hero-card-image img { width: 100%; height: auto; display: block; border-radius: 16px; }
.hero-card-image > a { transition: transform .15s ease, filter .2s ease; }
.hero-card-image > a:hover { transform: translateY(-3px); filter: brightness(1.03); }
.hero-card-image .card-note { margin-top: 10px; padding: 0 4px; }
@media (max-width: 760px) {
  .hero-card.hero-card-image { padding: 10px 10px 9px; }
  .hero-card-image img, .hero-card-image > a { border-radius: 13px; }
}

/* v1.9.8 特商法ページの表 */
.tokushoho-table th { background: var(--bg-soft); width: 32%; text-align: left; font-weight: 700; color: var(--ink); vertical-align: top; }
.tokushoho-table td { background: #fff; }
@media (max-width: 600px) {
  .tokushoho-table th { width: 38%; font-size: 13px; }
  .tokushoho-table td { font-size: 13.5px; }
}

/* v1.9.10 TOP FAQセクション下のFAQページ遷移ボタン */
.faq-more { text-align: center; margin-top: 26px; }
.faq-more .btn { min-width: 300px; }
.faq-more-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 760px) {
  .faq-more { margin-top: 20px; }
  .faq-more .btn { min-width: 0; width: 100%; }
  .faq-more-note { font-size: 11.5px; }
}

/* ===== 用量×期間の料金表（v1.9.32） ===== */
.price-table-head{margin:34px 0 12px;font-size:1.12rem;font-weight:800;color:var(--ink);text-align:center}
.price-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px;
  border:1px solid rgba(31,90,114,.16);background:#fff;box-shadow:0 2px 14px rgba(16,32,54,.06)}
.price-table-wrap:focus-visible{outline:3px solid var(--gold-dark);outline-offset:2px}
.price-table{border-collapse:collapse;width:100%;min-width:640px;font-size:.94rem}
.price-table th,.price-table td{padding:12px 14px;text-align:center;border-bottom:1px solid rgba(31,90,114,.12);white-space:nowrap}
.price-table thead th{background:var(--ink);color:#fff;font-weight:700;font-size:.9rem;position:sticky;top:0}
.price-table thead th span{display:block;font-size:.72rem;font-weight:500;opacity:.85}
.price-table tbody th{text-align:left;font-weight:800;color:var(--ink);background:rgba(31,90,114,.05)}
.price-table tbody th span{display:block;font-size:.74rem;font-weight:500;color:var(--muted)}
.price-table tbody tr:last-child th,.price-table tbody tr:last-child td{border-bottom:0}
.price-table td span{display:block;font-size:.74rem;color:var(--muted);font-weight:500}
.price-table td.na{color:var(--muted)}
.price-table-oral{min-width:420px}
.price-table-oral tbody th{white-space:normal}
@media (max-width:760px){
  .price-table{font-size:.88rem}
  .price-table th,.price-table td{padding:10px 10px}
  /* v1.9.36 内服・併売品は3列なのでSPでも横スクロールなしで収める */
  .price-table-oral{min-width:0}
  .price-table-oral th,.price-table-oral td{white-space:normal;padding:10px 8px}
  .price-table-oral td:last-child{white-space:nowrap}
}

/* ===== コラム内CTAバナー（v1.9.37） ===== */
.cta-banner { margin: 34px auto; max-width: 820px; }
.cta-banner a { display: block; border-radius: 16px; overflow: hidden; text-decoration: none;
  box-shadow: 0 10px 30px rgba(31,90,114,.18); transition: transform .25s, box-shadow .25s; }
.cta-banner a:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(31,90,114,.26); }
.cta-banner a:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.cta-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .cta-banner { margin: 26px auto; }
  .cta-banner a { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner a { transition: none; }
  .cta-banner a:hover { transform: none; }
}

/* ===== BMI計算ウィジェット（v1.9.38） ===== */
.bmi-calc{max-width:660px;margin:30px auto;padding:24px 22px;border-radius:18px;
  background:linear-gradient(180deg,#f4fafd 0%,#e9f4fa 100%);
  border:1px solid rgba(31,90,114,.18);box-shadow:0 4px 18px rgba(16,32,54,.07)}
.bmi-title{margin:0 0 16px;font-size:1.12rem;font-weight:800;color:var(--ink);text-align:center}
.bmi-fields{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.bmi-field{display:flex;align-items:center;gap:8px;background:#fff;border:2px solid rgba(31,90,114,.2);
  border-radius:12px;padding:10px 14px;flex:1 1 220px}
.bmi-field:focus-within{border-color:var(--gold-dark)}
.bmi-field>span{font-weight:700;color:var(--ink);white-space:nowrap;font-size:.95rem}
.bmi-field>em{font-style:normal;color:var(--muted);font-weight:700}
.bmi-field input{flex:1;min-width:0;border:0;outline:0;font-size:1.35rem;font-weight:800;
  color:var(--ink);text-align:right;background:transparent;-moz-appearance:textfield}
.bmi-field input::-webkit-outer-spin-button,.bmi-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bmi-go{display:block;width:100%;max-width:280px;margin:16px auto 0;padding:13px 20px;border:0;
  border-radius:30px;background:var(--cta);color:#fff;font-size:1rem;font-weight:800;cursor:pointer;
  transition:transform .2s,box-shadow .2s}
.bmi-go:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(16,32,54,.2)}
.bmi-go:focus-visible{outline:3px solid var(--gold-dark);outline-offset:3px}
.bmi-out{margin-top:20px;padding:18px 16px;border-radius:14px;background:#fff;border-left:7px solid var(--muted)}
.bmi-out.bmi-tone-low{border-left-color:#7aa7c7}
.bmi-out.bmi-tone-ok{border-left-color:#3fae7a}
.bmi-out.bmi-tone-w1{border-left-color:#e8b33c}
.bmi-out.bmi-tone-w2{border-left-color:#e2823a}
.bmi-out.bmi-tone-w3{border-left-color:#d9534f}
.bmi-out.bmi-tone-err{border-left-color:#d9534f}
.bmi-num{margin:0 0 6px;text-align:center;line-height:1.15}
.bmi-num .bmi-label{display:block;font-size:.82rem;color:var(--muted);font-weight:700;margin-bottom:2px}
.bmi-num strong{font-size:2.6rem;font-weight:900;color:var(--ink);letter-spacing:.02em}
.bmi-judge{margin:0 0 10px;text-align:center;font-size:1.1rem;color:var(--ink)}
.bmi-judge strong{font-size:1.25rem;font-weight:900}
.bmi-note{margin:0 0 12px;font-size:.95rem;color:var(--ink)}
.bmi-detail{margin:0 0 12px;padding-left:1.2em;font-size:.93rem;color:var(--ink)}
.bmi-detail li{margin-bottom:5px}
.bmi-disc{margin:0;padding-top:12px;border-top:1px dashed rgba(31,90,114,.25);
  font-size:.85rem;line-height:1.7;color:var(--muted)}
.bmi-err{margin:0;font-size:.95rem;color:#b13c38;font-weight:700}
.bmi-priv{margin:14px 0 0;font-size:.8rem;color:var(--muted);text-align:center}
@media (max-width:520px){
  .bmi-calc{padding:20px 16px}
  .bmi-field{flex:1 1 100%}
  .bmi-num strong{font-size:2.2rem}
}
@media (prefers-reduced-motion:reduce){.bmi-go{transition:none}.bmi-go:hover{transform:none}}
