/* AGAメンクリ Mobile LP — Styles (static, full-bleed responsive)
   Mobile-first. On wider viewports the page is centered with a max width,
   mimicking a phone-width column.
   Design language: navy ink + yellow marker accents, hard 2px borders,
   offset "sticker" shadows, diagonal yellow stripe banners. */

:root {
  --c-ink: #0A1730;
  --c-ink-2: #2B3A5B;
  --c-ink-3: #6E7B96;
  --c-accent: #2842E9;
  --c-accent-dark: #1B30B8;
  --c-yellow: #FFD84A;
  --c-yellow-2: #FFD135;
  --c-yellow-pale: #FFF3C4;
  --c-cream: #FFF9E3;
  --c-cream-soft: #FFFDF4;
  --c-green: #12A06B;
  --c-navy-grad: linear-gradient(180deg, #0A1730 0%, #1B2557 100%);
  --c-bg: #FFFFFF;
  --c-line: #DEE3EE;
  --c-line-soft: #ECEFF6;

  --stripes: repeating-linear-gradient(-45deg, var(--c-yellow) 0 16px, var(--c-yellow-2) 16px 32px);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --shadow-sticker: 3px 3px 0 var(--c-yellow);
  --shadow-sticker-lg: 5px 5px 0 var(--c-yellow);
  --shadow-accent: 0 5px 12px rgba(40,66,233,0.35);

  --lp-max: 480px;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-num: "Archivo", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 30% 20%, rgba(245,196,0,0.05), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(30,90,168,0.06), transparent 50%),
    #EEF1F6;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-dark); text-decoration: underline; }

/* Offset in-page anchor jumps so the fixed top bar doesn't cover the target */
[id] { scroll-margin-top: 64px; }

/* Mobile LP column — centered with a phone-like max width on desktop */
.lp {
  background: var(--c-bg);
  color: var(--c-ink);
  position: relative;
  max-width: var(--lp-max);
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(14,27,48,0.10);
  overflow: hidden;
}

/* ───── Top floating bar (fixed, appears on scroll) ───── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--lp-max);
  margin: 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(14,27,48,0.06);
  transition: opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.top-bar.scrolled { opacity: 1; pointer-events: auto; }
.top-bar__logoimg { height: 32px; width: auto; display: block; }
.top-bar__cta {
  background: var(--c-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(40,66,233,0.30);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ───── Hero ───── */
.hero { background: var(--c-bg); position: relative; }
.hero__img { width: 100%; height: auto; display: block; }
.hero__title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  margin: 16px 16px 0;
  color: var(--c-ink);
  text-align: center;
  letter-spacing: 0.005em;
}
.hero__title-mark {
  background: linear-gradient(transparent 60%, var(--c-yellow) 60%);
  padding: 0 4px;
  color: var(--c-accent);
}
.hero__title-sub { font-size: 16.5px; font-weight: 800; color: var(--c-ink-2); }
.hero__cta-area {
  margin-top: 16px;
  background: var(--stripes);
  padding: 20px 16px 24px;
  text-align: center;
}
.hero__cta-badge-wrap { margin-bottom: 6px; }
.hero__cta-badge {
  display: inline-block;
  background: var(--c-ink);
  color: var(--c-yellow);
  font-size: 14px;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(10,23,48,0.35);
}
.hero__cta-headline {
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.5;
  margin: 8px 0 6px;
  color: var(--c-ink);
}
.hero__cta-headline .mark {
  background: #fff;
  border: 2px solid var(--c-ink);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--c-ink);
}
.hero__cta-headline .blue { color: var(--c-accent); }
.hero__cta-refundnote {
  font-size: 12px;
  color: var(--c-ink);
  margin: 0 0 12px;
  line-height: 1.6;
  font-weight: 600;
}
.hero__cta-refundnote a { color: var(--c-accent-dark); text-decoration: underline; }
.hero__cta-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 19px;
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(10,23,48,0.35);
  border: 3px solid #fff;
}
.hero__cta-note {
  font-size: 12.5px;
  color: var(--c-ink);
  font-weight: 700;
  text-align: center;
  margin: 10px 0 0;
}

/* CTA shimmer sweep */
.btn--shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

/* ───── Stats circles ───── */
.stats { background: var(--c-bg); padding: 22px 14px; border-bottom: 1px solid var(--c-line-soft); }
.stats__grid { display: flex; justify-content: center; gap: 14px; }
.stats__circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 6px 16px rgba(10,23,48,0.25);
}
.stats__inner { font-size: 12px; font-weight: 800; line-height: 1.4; }
.stats__num { font-family: var(--font-num); font-size: 28px; color: var(--c-yellow); }
.stats__num--sm { font-size: 24px; }
.stats__suf { color: var(--c-yellow); font-weight: 900; font-size: 15px; }
.stats__suf--sm { font-size: 14px; }
.stats__big { font-size: 23px; color: var(--c-yellow); font-weight: 900; }
.stats__small { font-size: 9.5px; opacity: 0.85; }

/* ───── Anchor nav ───── */
.anchor-nav { background: var(--c-ink); padding: 18px 16px 20px; }
.anchor-nav__title {
  font-size: 13px;
  font-weight: 900;
  color: var(--c-yellow);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.anchor-nav__chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.anchor-nav__chips a {
  background: #fff;
  color: var(--c-ink);
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
}
.anchor-nav__chips a.is-accent { background: var(--c-yellow); font-weight: 900; }

/* ───── Section scaffolding ───── */
.sec { padding: 44px 16px; background: var(--c-bg); }
.sec--cream { background: var(--c-cream); }
.sec-head { margin-bottom: 24px; text-align: center; }
.sec-eyebrow {
  display: inline-block;
  background: var(--c-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.sec-eyebrow--yellow { background: var(--c-yellow); color: var(--c-ink); }
.sec-title { font-size: 27px; font-weight: 900; line-height: 1.45; margin: 0 0 10px; color: var(--c-ink); }
.sec-head .sec-title:last-child { margin-bottom: 0; }
.sec-title .accent { color: var(--c-accent); }
.sec-title .hl { background: linear-gradient(transparent 60%, var(--c-yellow) 60%); padding: 0 4px; }
.sec-lede { font-size: 16.5px; color: var(--c-ink); margin: 0; line-height: 1.75; font-weight: 500; }
.sec-lede--sm { font-size: 15px; color: var(--c-ink-2); line-height: 1.7; }

/* ───── お悩みから探す (Plan Navi) ───── */
.concerns__list { display: flex; flex-direction: column; gap: 9px; }
.concern {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-md);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sticker);
  text-align: left;
  width: 100%;
}
.concern__text { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.5; color: var(--c-ink); }
.concern__plan {
  background: var(--c-ink);
  color: var(--c-yellow);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.concerns__more { text-align: center; margin-top: 16px; }
.concerns__more a { font-size: 14px; font-weight: 800; color: var(--c-accent); }

/* ───── AGA basics ───── */
.basics__diagram {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 20px;
  display: block;
  border: 2px solid var(--c-ink);
}
.basics__lede { font-size: 17px; color: var(--c-ink); line-height: 1.95; margin: 10px 0 0; font-weight: 500; }
.basics__lede strong { color: var(--c-accent); font-weight: 900; }

/* ───── Mid CTA banner ───── */
.cta-banner { padding: 26px 18px; background: var(--stripes); text-align: center; }
.cta-banner__box {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 20px;
  font-weight: 900;
  color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
  margin-bottom: 14px;
  line-height: 1.5;
}
.cta-banner__btn {
  width: 100%;
  background: var(--c-accent);
  color: #fff;
  padding: 17px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(10,23,48,0.3);
  border: 3px solid #fff;
}

/* ───── Cases ───── */
.cstudy {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sticker-lg);
}
.cstudy__head {
  text-align: center;
  font-weight: 900;
  font-size: 17px;
  color: var(--c-ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--c-line-soft);
}
.cstudy__ba { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 14px; }
.cstudy__rows { display: flex; flex-direction: column; gap: 10px; }
.cstudy__row { background: var(--c-cream); border-radius: 10px; padding: 12px 14px; }
.cstudy__label {
  font-weight: 900;
  font-size: 14.5px;
  color: var(--c-ink);
  margin-bottom: 6px;
  padding-left: 9px;
  border-left: 4px solid var(--c-yellow);
  line-height: 1.1;
}
.cstudy__list { margin: 0; padding-left: 18px; }
.cstudy__list li { font-size: 15px; font-weight: 700; color: var(--c-ink); line-height: 1.7; }
.cstudy__cost {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 22px;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cstudy__tax { font-family: var(--font-jp); font-size: 12px; font-weight: 700; color: var(--c-ink-3); margin-left: 3px; }
.cstudy__dur { font-family: var(--font-num); font-weight: 900; font-size: 22px; color: var(--c-ink); }
.cstudy__side { margin-top: 12px; padding: 14px; background: #EEF4FF; border-radius: 10px; }
.cstudy__side-title { font-weight: 900; font-size: 14.5px; color: var(--c-accent-dark); margin-bottom: 8px; }
.cstudy__side-list { margin: 0; padding-left: 18px; }
.cstudy__side-list li { font-size: 13.5px; color: var(--c-ink-2); line-height: 1.7; }
.cstudy__side-list li + li { margin-top: 4px; }
.cstudy__side-list strong { color: var(--c-ink); font-weight: 800; }
.cstudy__disc { font-size: 11.5px; color: var(--c-ink-3); line-height: 1.7; margin: 12px 0 0; }
.cstudy__disc + .cstudy__disc { margin-top: 6px; }

/* ───── Plans ───── */
.plans__perks { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.plans__perks span {
  background: var(--c-ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
}
.plans__topbanner {
  background: var(--c-ink);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  text-align: center;
  font-weight: 900;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.plans__topbanner .yellow { color: var(--c-yellow); }
.plans__topbanner-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 14px;
  row-gap: 2px;
}
.plans__topbanner-sub span { white-space: nowrap; }

.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.plan-chip {
  background: #fff;
  border: 1.5px solid var(--c-ink);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sticker-lg);
  transition: box-shadow 0.4s;
}
/* Flash highlight after jumping from a concern / plan chip */
.plan-card.is-hl { box-shadow: 0 0 0 4px var(--c-yellow), 0 10px 28px rgba(245,196,0,0.5); }
.plan-card__head {
  background: var(--c-ink);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  /* 名前が長いプランで、狭い画面ではバッジを下段に折り返す。
     バッジと横幅を奪い合うとタイトル枠が潰れ、keep-all の効いた
     プラン名が枠外へはみ出してバッジに重なるため(iOSで発生)。 */
  flex-wrap: wrap;
  gap: 12px;
}
.plan-card__num {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 900;
  color: var(--c-yellow);
  line-height: 1;
  flex-shrink: 0;
}
/* min-width でタイトルの最小幅を確保し、これを下回る場合は
   バッジ側が次の行へ折り返される(潰れて重なるのを防ぐ) */
.plan-card__titles { flex: 1; min-width: 200px; }
.plan-card__tag { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.75); line-height: 1.4; }
.plan-card__name { font-weight: 900; font-size: 19px; line-height: 1.35; word-break: keep-all; }
.plan-card__badges { display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; }
.plan-badge {
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: transparent;
  color: var(--c-yellow);
  border: 1.5px solid var(--c-yellow);
}
.plan-badge--filled { background: var(--c-yellow); color: var(--c-ink); }
.plan-card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.plan-card__concept { font-size: 14.5px; color: var(--c-ink-2); line-height: 1.7; margin: 0; }

.plan-forwho { background: var(--c-cream); border-radius: 10px; padding: 12px 14px; }
.plan-forwho__title { font-weight: 900; font-size: 13.5px; color: var(--c-ink); margin-bottom: 6px; }
.plan-forwho__list { display: flex; flex-direction: column; gap: 4px; }
.plan-forwho__item {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ink-2);
  line-height: 1.6;
}
.plan-forwho__item .check { color: var(--c-accent); font-weight: 900; flex-shrink: 0; }

.med-set { border: 1.5px solid var(--c-ink); border-radius: var(--r-md); overflow: hidden; }
.med-set__head { padding: 12px 14px 10px; border-bottom: 1px solid var(--c-line-soft); }
.med-set__titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.med-set__origin {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #fff;
}
.med-set__origin--overseas { background: var(--c-accent); }
.med-set__origin--domestic { background: var(--c-green); }
.med-set__name { font-weight: 900; font-size: 16.5px; color: var(--c-ink); line-height: 1.3; }
.med-set__drugs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.med-set__dose { font-size: 11px; font-weight: 700; color: var(--c-ink-3); white-space: nowrap; }
.drug-chip {
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--c-cream-soft);
}
.med-set__rows { padding: 14px 12px 12px; }

/* 定期コース 3 / 6 / 12ヶ月 の比較グリッド */
.price-grid { border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.price-grid__row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.price-grid__row--head { background: #F4F6FB; border-bottom: 1px solid var(--c-line); }
.price-grid__cell { padding: 9px 6px 10px; text-align: center; }
.price-grid__cell + .price-grid__cell { border-left: 1px solid var(--c-line-soft); }
.price-grid__term { font-size: 12.5px; font-weight: 900; color: var(--c-ink); }
.price-grid__kind { font-size: 10px; font-weight: 800; color: var(--c-ink-3); margin-left: 3px; }
.price-grid__amount { line-height: 1; white-space: nowrap; }
.price-grid__num {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.price-grid__yen { font-size: 11px; font-weight: 800; color: var(--c-ink); }
.price-grid__per { font-size: 9.5px; font-weight: 700; color: var(--c-ink-3); }
/* Design column is 480px wide, where each note fits on one line; on narrower
   phones let it wrap rather than clip inside the rounded grid. */
.price-grid__sub { font-size: 9.5px; font-weight: 500; color: var(--c-ink-3); margin-top: 3px; }
.price-grid__sub + .price-grid__sub { margin-top: 1px; }

/* 24ヶ月 買い切り */
.buyout {
  border: 1.5px solid var(--c-ink);
  background: var(--c-cream);
  border-radius: 10px;
  margin-top: 7px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.buyout__left { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.buyout__term { font-size: 13px; font-weight: 900; color: var(--c-ink); white-space: nowrap; }
.buyout__pill {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-yellow);
  white-space: nowrap;
}
.buyout__right { flex: 1; text-align: center; }
.buyout__amount {
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}
.buyout__num {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.buyout__yen { font-size: 13px; font-weight: 800; color: var(--c-ink); }
.buyout__per { font-size: 10.5px; font-weight: 700; color: var(--c-ink-3); }
.buyout__tax { font-size: 12px; font-weight: 500; color: var(--c-ink-3); }
.buyout__total { font-size: 10.5px; font-weight: 500; color: var(--c-ink-3); margin-top: 4px; }

/* Prices are sized for the 480px design column — ease them down on smaller phones */
@media (max-width: 430px) {
  .price-grid__cell { padding: 9px 4px 10px; }
  .price-grid__num { font-size: 18px; }
  .buyout { padding: 10px; }
  .buyout__num { font-size: 24px; }
}

/* 定期 / 買い切りの説明 */
.course-notes { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.course-note { background: #fff; border: 1.5px solid var(--c-ink); border-radius: var(--r-md); padding: 14px; }
.course-note__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.course-note__pill { font-size: 11.5px; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.course-note__pill--sub { background: var(--c-accent); color: #fff; }
.course-note__pill--buyout { background: var(--c-yellow); color: var(--c-ink); }
.course-note__term { font-weight: 900; font-size: 14.5px; color: var(--c-ink); }
.course-note p { font-size: 13px; color: var(--c-ink-2); line-height: 1.7; margin: 0; }
.course-note p strong { color: var(--c-ink); }
.course-note--dark { background: var(--c-ink); border: none; color: #fff; }
.course-note--dark .course-note__term { color: #fff; }
.course-note--dark p { color: rgba(255,255,255,0.85); }
.course-note--dark p strong { color: var(--c-yellow); }

/* 海外製(国内未承認)医薬品の重要事項 (collapsible) */
.unapproved {
  margin-top: 14px;
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-md);
  overflow: hidden;
}
.unapproved__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 14px;
  text-align: left;
}
.unapproved__title {
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ink);
  line-height: 1.4;
  padding-left: 10px;
  border-left: 4px solid var(--c-ink);
  flex: 1;
  min-width: 0;
}
.unapproved__chev { transition: transform 0.25s; color: var(--c-ink); font-weight: 900; flex-shrink: 0; }
.unapproved.open .unapproved__chev { transform: rotate(180deg); }
.unapproved__list { display: none; margin: 0; padding: 0 14px 16px 32px; flex-direction: column; gap: 8px; }
.unapproved.open .unapproved__list { display: flex; }
.unapproved__list li { font-size: 13.5px; color: var(--c-ink-2); line-height: 1.75; }
.unapproved__list strong { color: var(--c-ink); }

/* 副作用・自由診療 legal boxes */
.legal-box { margin-top: 12px; background: #fff; border: 1.5px solid var(--c-ink); border-radius: var(--r-md); padding: 16px 14px; }
.legal-box__title {
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ink);
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 4px solid var(--c-accent);
  line-height: 1.4;
}
.legal-box__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.legal-box__list li { font-size: 13.5px; color: var(--c-ink-2); line-height: 1.75; }
.legal-box__list strong { color: var(--c-ink); }
.legal-box__text { font-size: 13.5px; color: var(--c-ink-2); line-height: 1.75; margin: 0; }

/* お支払い方法 */
.pay { margin-top: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--c-ink); border-radius: var(--r-md); }
.pay__title {
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ink);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--c-accent);
  line-height: 1.2;
}
.pay__list { display: flex; flex-direction: column; gap: 8px; }
.pay__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--c-cream);
  border-radius: var(--r-sm);
}
.pay__name { font-weight: 800; font-size: 15px; color: var(--c-ink); }
.pay__sub { font-size: 11px; font-weight: 700; color: var(--c-ink-3); letter-spacing: 0.02em; }
.pay__fee {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.plans__drugslink { margin-top: 14px; }
.plans__drugslink a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--c-ink);
  text-decoration: none;
}

.plans__disc {
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #E3D9AE;
  border-radius: var(--r-md);
  font-size: 11.5px;
  color: var(--c-ink-3);
  line-height: 1.7;
}

/* ───── Voices ───── */
.voices__list { display: flex; flex-direction: column; gap: 12px; }
.voice {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 3px 3px 0 rgba(10,23,48,0.12);
}
.voice__title { font-weight: 900; font-size: 16px; margin: 0 0 8px; line-height: 1.5; color: var(--c-ink); }
.voice__text { font-size: 14.5px; color: var(--c-ink-2); margin: 0 0 14px; line-height: 1.7; }
.voice__meta { display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--c-line-soft); }
.voice__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-yellow);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.voice__profile { font-size: 12.5px; color: var(--c-ink-3); line-height: 1.4; }
.voice__profile strong { display: block; color: var(--c-ink); font-size: 13.5px; font-weight: 800; }
.voices__disc { font-size: 11.5px; color: var(--c-ink-3); line-height: 1.7; margin: 14px 0 0; text-align: center; }

/* ───── Flow ───── */
.flow { display: flex; flex-direction: column; }
.flow__step {
  background: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sticker);
}
.flow__icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--c-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.flow__num {
  position: absolute;
  top: -9px;
  left: -9px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.flow__body { flex: 1; min-width: 0; }
.flow__time {
  display: inline-block;
  font-size: 11.5px;
  background: var(--c-yellow-pale);
  color: var(--c-ink);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.flow__title { font-weight: 900; font-size: 17px; margin: 0 0 3px; line-height: 1.4; color: var(--c-ink); }
.flow__desc { font-size: 14.5px; color: var(--c-ink-2); margin: 0; line-height: 1.6; }
.flow__arrow { display: flex; justify-content: center; padding: 7px 0; }
.flow__arrow::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 12px solid var(--c-ink);
}

/* ───── FAQ ───── */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff;
  border: 2px solid #E8DFB8;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--c-ink); box-shadow: var(--shadow-sticker); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  text-align: left;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--c-ink);
  line-height: 1.5;
}
.faq-item__qmark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c-yellow);
  color: var(--c-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.faq-item__qtext { flex: 1; min-width: 0; }
.faq-item__chev { transition: transform 0.25s; color: var(--c-ink-3); flex-shrink: 0; }
.faq-item.open .faq-item__chev { transform: rotate(180deg); color: var(--c-ink); }
.faq-item__a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.open .faq-item__a-wrap { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; }
.faq-item__a { padding: 0 16px 18px 56px; font-size: 14.5px; color: var(--c-ink-2); line-height: 1.75; }

/* ───── Drug list (全価格一覧) ───── */
.drugs { padding: 44px 0 44px 16px; background: #F4F6FB; }
.drugs__head { margin-bottom: 18px; padding-right: 16px; }
.drugs__title { font-size: 24px; font-weight: 900; line-height: 1.45; margin: 0 0 8px; color: var(--c-ink); }
.drugs__title-sub { font-size: 15px; font-weight: 800; color: var(--c-ink-3); }
.drugs__lede { font-size: 12.5px; color: var(--c-ink-3); margin: 0; line-height: 1.7; }
.drugs__scrollwrap { position: relative; }
/* 横スクロールするペイン。全行を一度に表示し(縦スクロールなし)、
   薬剤列(左)は sticky で固定される。枠線と角丸はテーブルではなくこの
   ペインに置く(テーブル側に overflow を持たせると sticky の基準が
   テーブルになり固定が効かなくなるため)。 */
.drugs__scroll {
  overflow-x: auto;
  margin-right: 16px;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}
.drugs__inner { min-width: 660px; }

/* Swipe hint — fades out once the table has been scrolled */
.drugs__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drugs__hint.is-hidden { opacity: 0; }
.drugs__hint-circle {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(10,23,48,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(14,27,48,0.25);
}
.drugs__hint-arrows { display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 900; line-height: 1; }
.drugs__hint-arrows span { width: 0; }
.drugs__hint-circle svg { animation: swipeLR 1.4s ease-in-out infinite; margin-top: -4px; }
.drugs__hint-text { font-size: 11px; font-weight: 800; line-height: 1.35; max-width: 86px; }
@keyframes swipeLR {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

.drug-table {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr 1.15fr;
  background: #fff;
}
.drug-table__th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--c-ink);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  border-bottom: 1.5px solid var(--c-ink);
  text-align: center;
}
.drug-table__th--name {
  left: 0;
  z-index: 4;
  background: #F4F6FB;
  color: var(--c-ink);
  padding: 10px 10px;
  text-align: left;
  display: flex;
  align-items: center;
}
.drug-table__th--buyout { background: var(--c-yellow); color: var(--c-ink); }
.drug-table__th-sub { font-size: 9.5px; font-weight: 700; opacity: 0.7; }
.drug-table__th--buyout .drug-table__th-sub { font-weight: 800; opacity: 1; }
.drug-table__name {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 10px 10px;
  background: #F4F6FB;
  border-bottom: 1px solid var(--c-line-soft);
  border-right: 1px solid var(--c-line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* バッジと薬剤名は常に2行に分ける(名前の長さで並びが揺れないように) */
.drug-table__namerow { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.drug-table__origin {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
  color: #fff;
}
.drug-table__origin--overseas { background: var(--c-accent); }
.drug-table__origin--domestic { background: var(--c-green); }
.drug-table__drug { font-size: 12.5px; font-weight: 900; color: var(--c-ink); line-height: 1.4; word-break: keep-all; }
.drug-table__note { font-size: 10px; font-weight: 700; color: var(--c-ink-3); margin-top: 2px; }
.drug-table__cell {
  padding: 10px 8px;
  text-align: center;
  background: #fff;
  border-left: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}
.drug-table__cell--buyout { background: var(--c-cream); }
.drug-table__name.is-last, .drug-table__cell.is-last { border-bottom: none; }
.drug-table__amount { line-height: 1; white-space: nowrap; }
.drug-table__num {
  font-family: var(--font-num);
  font-size: 17.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.drug-table__yen { font-size: 10px; font-weight: 800; color: var(--c-ink); }
.drug-table__per { font-size: 8.5px; font-weight: 700; color: var(--c-ink-3); }
.drug-table__sub { font-size: 9px; font-weight: 500; color: var(--c-ink-3); margin-top: 3px; white-space: nowrap; }
.drug-table__sub + .drug-table__sub { margin-top: 1px; }
.drugs__disc { font-size: 11px; color: var(--c-ink-3); line-height: 1.7; margin: 14px 16px 0 0; }

/* ───── Form ───── */
.form-section { background: var(--c-navy-grad); color: #fff; padding: 32px 16px; }
.form-section .sec-title { color: #fff; }
.form-embed {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.form-embed iframe { width: 100%; border: 0; display: block; min-height: 600px; }

/* embeddable:false の予約システム用フォールバック(iframeの代わりに外部リンクボタン) */
.form-embed__fallback {
  padding: 40px 24px;
  text-align: center;
}
.form-embed__fallback-text {
  font-size: 14.5px;
  color: var(--c-ink-2);
  margin: 0 0 16px;
}
.form-embed__fallback-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 17px;
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  border: none;
}

/* ───── Footer ───── */
.footer { background: var(--c-ink); color: rgba(255,255,255,0.7); padding: 28px 16px 120px; }
.footer__logoimg { height: 24px; width: auto; display: block; margin-bottom: 14px; }
.footer__desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; margin: 0 0 20px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer__col h4 { color: var(--c-yellow); font-size: 13px; font-weight: 800; margin: 0 0 8px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__col a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ───── Sticky bottom CTA bar ───── */
/* ファーストビューでは隠し、スクロール後に下からせり上がって表示する
   (表示切替は app.js が .is-visible を付け外しする) */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--lp-max);
  margin: 0 auto;
  background: transparent;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.bottom-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bottom-cta__btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 8px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(10,23,48,0.35);
  border: 3px solid #fff;
}
.bottom-cta__small { font-size: 12px; opacity: 0.9; font-weight: 600; display: block; margin-top: 2px; }

/* ───── Scroll reveal ───── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  /* せり上がりは省くが、表示/非表示の切り替え自体は維持する */
  .bottom-cta { transition: none; transform: none; }
  .bottom-cta:not(.is-visible) { visibility: hidden; }
}
