/* 01 header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding-left: 16px;
  background: #fcfaf6;
  box-shadow: 0 1px 0 rgba(68, 68, 68, 0.08), 0 2px 8px rgba(68, 68, 68, 0.06);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.bars-hidden .site-header {
  transform: translateY(-100%);
}

.site-header-logo {
  width: 137px;
  max-width: 36%;
  height: auto;
}

.site-header-tag {
  margin-left: 8px;
  font-size: clamp(9px, 2.8vw, 11px);
  line-height: 1.25;
  white-space: nowrap;
}

.header-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 69px;
  height: var(--header-h);
  margin-left: auto;
  flex-shrink: 0;
  background: var(--color-cta);
  color: var(--color-white);
}

.header-book:hover {
  opacity: 0.88;
}

.header-book img {
  width: 16px;
  height: 16px;
}

.header-book span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12px;
}

/* 02 FV */
.fv {
  position: relative;
}

.fv-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 434;
  overflow: hidden;
  background: var(--color-offwhite);
}

/* 写真は Figma の切り抜き（背景＋人物の2層）を合成済みの 3x 画像。枠いっぱいに置く */
.fv-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.fv-lead,
.fv-sub,
.fv-en {
  position: absolute;
  z-index: 1;
  left: calc(50% + 88px);
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 0;
  text-align: center;
  /* 読み込みアニメーション（transform）と打ち消し合わないよう translate で中央寄せ */
  translate: -50% 0;
}

/* Figma 390px 時の位置（50% − 141px = 76px）。KV が縦に伸びる幅でもロゴ・英字と同じく上端基準で固定 */
.fv-lead {
  top: 76px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.fv-sub {
  top: 104px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.6px;
}

.fv-brand {
  position: absolute;
  z-index: 1;
  top: 133px;
  left: clamp(91px, calc(50% + 88px), calc(100% - 91px));
  width: 182px;
  height: 38px;
  margin: 0;
  overflow: hidden;
  translate: -50% 0;
}

.fv-brand img {
  position: absolute;
  width: 118.83%;
  height: 100%;
  left: -18.83%;
  top: 0;
  max-width: none;
}

.fv-en {
  top: 177px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.36px;
  color: var(--color-tan);
}

.fv-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 196px;
  gap: 8px;
  width: calc(100% - 16px);
  min-height: 134px;
  margin: -150px 0 0;
  padding: 16px 10px 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(68, 68, 68, 0.15);
}

.fv-panel-copy {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.75;
}

.fv-gif {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 186px;
  aspect-ratio: 186 / 105;
  overflow: hidden;
  outline: 1px solid var(--color-tan);
  outline-offset: 5px;
}

.fv-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-badges {
  display: flex;
  justify-content: space-between;
  width: 390px;
  max-width: 100%;
  height: 123px;
  margin: 32px auto 14px;
  padding: 0 16px;
}

.fv-badge {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 123px;
}

.fv-badge p {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.fv-badge-frame {
  position: absolute;
  top: 0;
  right: 0;
  width: 104px;
  height: 86px;
  max-width: none;
  pointer-events: none;
}

.fv-badge-frame.flip {
  top: auto;
  right: auto;
  left: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.fv-b1-kicker {
  left: 13px;
  top: 18px;
  width: 87px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.42px;
  text-align: center;
}

.fv-b1-num {
  left: 23px;
  top: 51px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -3.78px;
}

.fv-b1-unit {
  left: 51px;
  top: 83px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}

.fv-b2-total {
  left: 43px;
  top: 13px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.45px;
}

.fv-b2-n {
  left: 7px;
  top: 33px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -3.78px;
}

.fv-b2-dec {
  left: 63px;
  top: 35px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.6px;
}

.fv-b2-tax {
  left: 93px;
  top: 35px;
  width: 11px;
  height: 44px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.3px;
  writing-mode: vertical-rl;
}

.fv-b2-yen {
  left: 63px;
  top: 70px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}

.fv-b2-ok {
  left: 27px;
  top: 92px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.39px;
}

.fv-b3-hard {
  left: 16px;
  top: 13px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #c2b492;
  text-shadow: 0 1px 1px rgba(68, 68, 68, 0.05);
  line-height: 1;
  white-space: nowrap;
}

.fv-b3-hard .l {
  font-size: 32px;
}

.fv-b3-hard .s {
  font-size: 24px;
}

.fv-b3-copy {
  left: 56.5px;
  top: 56px;
  width: max-content;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.33px;
  text-align: center;
  transform: translateX(-50%);
}

/* 03 nav + cta-top */
.site-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fcfaf6;
  box-shadow: 0 -2px 8px rgba(68, 68, 68, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.bars-hidden .site-nav {
  transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
}

.site-nav-inner {
  display: flex;
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  margin: 0 auto;
}

.site-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: var(--nav-h);
  padding: 4px 2px;
  border-right: 1px solid #c7d2d1;
  background: #fcfaf6;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.33px;
  text-align: center;
}

.site-nav a:last-child {
  flex: 0 0 78px;
  border-right: 0;
  background: var(--color-cta);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12px;
}

.site-nav a:last-child:hover,
.site-nav a:hover {
  opacity: 0.88;
}

.site-nav a:last-child img {
  width: 16px;
  height: 16px;
  margin-bottom: 2px;
}

.cta-top {
  padding: 24px 0 80px;
}

.cta-top-row {
  display: flex;
  align-items: flex-start;
  gap: 23px;
  width: calc(100% - 70px);
  margin: 0 auto 24px;
}

.cta-top .btn-note {
  margin-top: 9px;
}

.cta-top-row img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.cta-top-row h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.4px;
}

.figma-photo-frame > img[src$="-figma-3x.webp"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: auto;
}

.photo-frame.figma-photo-frame {
  border: 0; /* The Figma export includes its 1px border. */
}

.message-tile.figma-photo-frame {
  height: auto;
  aspect-ratio: 130 / 97;
}

/* 04 policy */
.banner-promise,
.points-hero {
  height: 293px;
}

.banner-promise img.banner-photo {
  inset: auto;
  max-width: none;
  width: 144.32%;
  height: 128.11%;
  left: -13.15%;
  top: -14.05%;
  object-fit: unset;
}

.banner-promise .banner-dim {
  background: linear-gradient(to right, rgba(40, 40, 40, 0.55) 0%, rgba(40, 40, 40, 0.18) 55%, rgba(40, 40, 40, 0) 100%);
}

.banner-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0.64px;
}

.banner-ja {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0.64px;
}

/* Keep the promise photo/decor visible; reveal only its live text.
   Coordinates follow the 390 × 293 Figma frame and scale with the banner. */
.banner-promise.promise-text-only {
  container-type: inline-size;
  height: auto;
  min-height: 0;
  aspect-ratio: 390 / 293;
}

.promise-text-only .banner-dim {
  background: rgba(68, 68, 68, 0.15);
}

.promise-text-only .banner-stripe {
  width: 100%;
  height: 9.897611%;
  opacity: 1;
}

.promise-text-only .banner-stripe-tan {
  left: -12.792692%;
  top: 1.718601%;
}

.promise-text-only .banner-stripe-gray {
  left: 22.079487%;
  top: 90.455631%;
  right: auto;
  bottom: auto;
}

.promise-glow {
  position: absolute;
  left: 31.948718%;
  top: 4.641638%;
  width: 43.538462%;
  aspect-ratio: 1;
  background: url("/assets/svg/imgEllipse28.svg") center / contain no-repeat;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.promise-copy {
  position: absolute;
  z-index: 1;
  bottom: 7.8498%; /* Figma 390px での下端からの距離。幅が変わっても下に揃える */
  left: 4.102564%;
}

.promise-copy .banner-en,
.promise-copy .banner-ja {
  font-size: min(32px, 8.20513cqw);
  letter-spacing: min(0.64px, 0.164103cqw);
}

/* Selected banners: static photo/decor with independently revealed live text.
   Photo and decoration (cqw/%) scale with the banner like the Figma 390px frame;
   the text is capped at its Figma px size (column policy: text does not grow up to 480px)
   and only shrinks with the banner below 390px. */
.banner.layered-banner,
.policy-outro.layered-banner {
  container-type: inline-size;
  height: auto;
  min-height: 0;
  aspect-ratio: 390 / 293;
}

.policy-outro.layered-banner {
  aspect-ratio: 390 / 260;
}

.layered-banner .layered-photo,
.layered-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layered-banner .layered-photo {
  max-width: none;
  object-fit: cover;
}

.layered-shade {
  background: rgba(68, 68, 68, 0.18);
  pointer-events: none;
}

.layered-stripe {
  position: absolute;
  width: 100%;
  height: 7.435897cqw;
  transform: rotate(-15deg);
  pointer-events: none;
}

.layered-stripe-tan {
  left: -12.792692%;
  top: 1.291026cqw;
  background: rgba(194, 180, 146, 0.6);
}

.layered-stripe-gray {
  left: 22.079487%;
  bottom: -0.265256cqw;
  background: rgba(158, 170, 177, 0.6);
}

.layered-glow {
  position: absolute;
  aspect-ratio: 1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.layered-copy {
  position: absolute;
  z-index: 1;
  white-space: nowrap;
}

.policy-outro.layered-banner .layered-photo {
  inset: auto;
  width: 102.4%;
  height: 102.307692%;
  left: -25.73%;
  top: 2.692308%;
}

.policy-outro.layered-banner .layered-shade {
  background: linear-gradient(to left, rgba(243, 241, 239, 0.8) 53.947%, rgba(243, 241, 239, 0) 69.487%);
}

.policy-outro.layered-banner .layered-stripe-gray {
  bottom: 2.298846cqw;
}

.policy-outro.layered-banner .layered-copy {
  left: 39.487179%;
  top: 20.384615%;
  font-family: var(--font-serif);
}

.policy-outro.layered-banner .layered-copy p {
  font-size: min(16px, 4.10256cqw);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: min(0.32px, 0.082051cqw);
}

.policy-outro.layered-banner .layered-copy h2 {
  margin-top: min(5.8px, 1.48718cqw);
  font-size: min(24px, 6.15385cqw);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: min(0.48px, 0.123077cqw);
}

.points-hero.layered-banner .layered-photo {
  inset: auto;
  width: 120.88%;
  height: 107.32%;
  left: -10.54%;
  top: -0.16%;
  object-fit: fill;
}

.points-hero.layered-banner .layered-glow {
  left: 54.512821%;
  top: 2.461538cqw;
  width: 43.538462%;
  background-image: url("/assets/svg/imgEllipse27.svg");
}

.points-hero.layered-banner .layered-copy {
  left: 4.102564%;
  bottom: 3.4130%; /* Figma 390px での下端からの距離。幅が変わっても下に揃える */
  padding: 2px 6px;
}

.points-hero.layered-banner .points-hero-brand,
.points-hero.layered-banner .points-hero-brand span,
.points-hero.layered-banner .points-hero-lead {
  font-size: min(24px, 6.15385cqw);
  letter-spacing: min(0.48px, 0.123077cqw);
}

.points-hero.layered-banner .points-hero-count {
  font-size: 0;
  line-height: 0;
}

.points-hero.layered-banner .points-hero-num {
  font-size: min(96px, 24.6154cqw);
  letter-spacing: min(0.64px, 0.164103cqw);
}

.points-hero.layered-banner .points-hero-unit {
  font-size: min(32px, 8.20513cqw);
  letter-spacing: min(0.64px, 0.164103cqw);
}

.banner-flow.layered-banner .layered-shade {
  background: rgba(68, 68, 68, 0.22);
}

.banner-flow.layered-banner .layered-glow {
  left: 34%;
  top: -2.153846cqw;
  width: 59.435897%;
  background-image: url("/assets/svg/imgEllipse26.svg");
}

.banner-flow.layered-banner .layered-copy {
  left: 4.102564%;
  bottom: 4.7782%; /* Figma 390px での下端からの距離。幅が変わっても下に揃える */
  padding: 2px 6px;
  font-family: var(--font-serif);
  font-size: min(32px, 8.20513cqw);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: min(0.64px, 0.164103cqw);
}

.banner-flow.layered-banner .layered-copy p + p {
  font-weight: 700;
}

.policy-list {
  padding: 48px 16px 8px;
}

.policy-outro {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(to left, #e2e2e2, #efeff1);
}

/* 05–07 misconception */
.misconception {
  padding: 80px 0 64px;
  background-color: var(--color-misconception);
  background-image: url("/assets/img/texture.webp");
  background-size: 256px 256px;
}

.about .misconception {
  padding-top: 32px;
}

.misconception-inner {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.misconception .badge-mis {
  display: flex;
  width: fit-content;
  margin: 0 auto 28px;
}

.mis-gold-chevrons {
  display: block;
  width: 21px;
  height: 24px;
  margin: 0 auto 40px;
}

.mis-q,
.mis-a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.mis-q {
  gap: 21px;
}

.mis-q-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.4px;
}

.mis-q-box {
  display: inline-block;
  margin: 0 2px 4px 0;
  border: 1px solid #444;
  padding: 2px 6px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.mis-q-box.lg {
  font-size: 24px;
  letter-spacing: 0.48px;
}

.feature2 .mis-q-text,
.feature3 .mis-q-text {
  white-space: nowrap;
}

.mis-chevron {
  display: block;
  width: 27px;
  height: 56px;
  margin: 8px auto;
  transform: rotate(-90deg);
}

.mis-a-copy {
  font-family: var(--font-serif);
  font-weight: 500;
}

.mis-a-copy .sm {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.6px;
}

.mis-a-copy .lg {
  font-size: 24px;
  line-height: 1.5;
}

.mis-a-copy .lg.u {
  letter-spacing: 0.6px;
}

.mis-body {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.about .mis-a + .mis-body {
  margin-top: 36px;
}

.teeth-6 {
  position: relative;
  width: 100%;
  max-width: 358px;
  height: 201px;
  margin: 20px auto 0;
  border: 1px solid #c2b492;
  background: var(--color-white);
  overflow: hidden;
}

.teeth-6-diagram {
  position: static;
}

.teeth-6-art {
  position: absolute;
  left: 47px;
  top: 33px;
  width: 262px;
  height: 146px;
  max-width: calc(100% - 54px);
  object-fit: contain;
}

.teeth-6-label {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 2;
  margin: 0;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.24px;
  color: #444;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.teeth-6-leader {
  position: absolute;
  left: 50%;
  top: 31px;
  z-index: 1;
  width: 1px;
  height: 28px;
  background: #444;
  transform: translateX(-50%);
}

.teeth-6-box {
  position: absolute;
  left: 87px;
  top: 59px;
  z-index: 1;
  width: 182px;
  height: 65px;
  max-width: calc(100% - 95px);
  border: 2px dashed #de5b52;
  border-radius: 15px;
  background-color: rgba(222, 91, 82, 0.08);
  background-image: url("/assets/img/hatch-red.webp");
  background-size: 128px 128px;
  pointer-events: none;
}

.err-list {
  margin-top: 16px;
}

.err-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.err-list img {
  width: 20px;
  height: 20px;
}

.photo-frame {
  position: relative;
  width: 100%;
  margin-top: 20px;
  aspect-ratio: 358 / 201;
  border: 1px solid var(--color-tan);
  overflow: hidden;
}

.photo-frame img {
  position: absolute;
  display: block;
  max-width: none;
  width: 113.96%;
  height: 135.39%;
  left: -13.96%;
  top: 0;
}

.pa-block {
  margin-top: 0;
  padding: 64px 0 40px; /* 上余白はベージュ地の内側に（FB: 白い隙間を出さない） */
  background: var(--color-beige);
}

.feature2 .pa-block {
  padding-bottom: 64px;
}

.feature3 .pa-block {
  /* Leave 80px of beige below the indicators, separate from the white CTA gap. */
  padding-bottom: 80px;
}

.feature3 .mis-body.w5 {
  font-weight: 400;
}

.feature3 > .cta-card {
  margin-top: 100px;
  margin-bottom: 100px;
}

.pa-heading-wrap {
  position: relative;
  width: calc(100% - 32px);
  max-width: 358px;
  margin: 0 auto;
  padding: 0;
}

.pa-heading-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pa-heading-bracket {
  position: absolute;
  display: block;
  width: 104px;
  height: 86px;
  max-width: none;
  pointer-events: none;
}

.pa-heading-bracket-tr {
  top: -12px;
  right: 0;
}

.pa-heading-bracket-bl {
  left: 0;
  bottom: -13px;
}

.feature2 .pa-heading-bracket-tr,
.feature3 .pa-heading-bracket-tr {
  top: -32px;
}

.feature2 .pa-heading-bracket-bl {
  bottom: -32px;
}

.feature3 .pa-heading-bracket-bl {
  bottom: -22px;
}

.pa-heading {
  position: relative;
  width: auto;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  text-align: center;
}

.pa-heading .sm {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.4px;
}

.about .pa-price-line {
  white-space: nowrap;
}

.about .pa-price-line .lg {
  display: inline;
}

.about .pa-price-line .sm {
  font-size: 13px;
  letter-spacing: 0.39px;
}

.pa-heading .md {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.4px;
}

.pa-heading .lg {
  display: block;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.48px;
}

.feature2 .pa-heading-wrap {
  width: calc(100% - 32px);
  max-width: 358px;
  margin: 0 auto;
}

.feature2 .pa-heading p,
.feature2 .pa-heading .md,
.feature2 .pa-heading .lg {
  white-space: nowrap;
}

.feature2 .pa-heading .md {
  line-height: 1.5;
}

.cases-type {
  width: 100%;
  margin: 28px auto 0;
  padding: 20px 16px 24px;
  border: 1px solid var(--color-tan);
  background: var(--color-white);
}

.pa-block .cases-type {
  width: calc(100% - 32px);
}

.cases-type-label {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.39px;
  color: var(--color-muted);
  text-align: center;
}

.cases-type-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px 16px;
  margin-top: 16px;
}

.cases-type-grid-2x2 {
  display: grid;
  grid-template-columns: 96px 96px;
  gap: 24px;
  width: 216px;
  margin: 16px auto 0;
}

.cases-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 96px;
}

.cases-type-item p {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.39px;
  color: #444;
  text-align: center;
}

.cases-stack {
  width: calc(100% - 32px);
  margin: 36px auto 0;
}

.doctor-slider {
  width: calc(100% - 32px);
  margin: 64px auto 0;
}

.doctor-panel {
  width: 100%;
  margin: 0;
  padding: 19px;
  border: 1px solid var(--color-tan);
  background: var(--color-white);
}

.doctor-slider .slider-dots {
  margin-top: 16px;
}

.doctor-photo {
  display: block;
  width: 100%;
  aspect-ratio: 318 / 239;
  object-fit: cover;
}

.doctor-clinic {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.39px;
  line-height: 1.8;
}

.doctor-name {
  font-size: 16px;
  letter-spacing: 0.48px;
  line-height: 1.8;
}

.doctor-creds {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-tan);
}

.doctor-creds li {
  position: relative;
  display: block;
  min-height: 31px;
  margin: 0;
  padding-left: 21px;
  font-size: 13px;
  letter-spacing: 0.39px;
  line-height: 31px;
}

.doctor-creds li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 11px;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 9px;
  background: var(--color-tan);
}

/* 08 points */
.points-hero img.banner-photo {
  inset: auto;
  max-width: none;
  width: 120.89%;
  height: 107.32%;
  left: -10.54%;
  top: -0.15%;
  object-fit: unset;
}

.points-hero-brand {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.48px;
}

.points-hero-brand span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
}

.points-hero-lead {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.48px;
}

.points-hero-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: 0.64px;
}

.points-hero-unit {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: 0.64px;
}

.point {
  margin-top: 64px;
  padding: 0 16px 8px;
}

.price-card {
  width: 100%;
  margin: 24px auto 64px;
  padding: 34px 24px 24px;
  border: 1px solid var(--color-tan);
  background: var(--color-white);
}

.price-card-title {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.48px;
  color: var(--color-muted);
  text-align: center;
}

.price-tier {
  position: relative;
  width: 100%;
  max-width: 310px;
  height: 285px;
  margin: 24px auto 0;
  background: #f3fafa;
  text-align: center;
}

.price-tier-art {
  position: absolute;
  top: 43px;
  left: 50%;
  display: block;
  width: 107px;
  height: 53px;
  margin: 0;
  object-fit: contain;
  transform: translateX(-50%);
}

.price-tier h4 {
  position: absolute;
  top: 113px;
  left: 0;
  right: 0;
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.48px;
}

.price-tier p {
  position: absolute;
  top: 140px;
  left: 0;
  right: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.42px;
}

.price-tier::before {
  content: "";
  position: absolute;
  top: 182px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-tan);
}

.price-tier .yen {
  top: 192px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.6px;
}

.price-tier .loan {
  top: 228px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.39px;
  color: var(--color-muted);
}

.price-card-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.42px;
  color: var(--color-muted);
}

/* 09–10 */
.cta-mid {
  padding: 100px 0;
}

.site-footer {
  padding: 32px 0 24px;
}

.smile {
  position: relative;
  padding: 64px 16px 40px;
  text-align: center;
  overflow: hidden;
}

.smile-deco {
  position: absolute;
  inset: -40px -30px auto;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.smile-deco span {
  position: absolute;
  display: block;
  height: 70px;
  opacity: 0.5;
  transform: rotate(-15deg);
}

.smile-deco span:first-child {
  left: -20px;
  top: 10px;
  width: 430px;
  background: linear-gradient(to right, rgba(194, 180, 146, 0.6), rgba(252, 250, 246, 0.6));
}

.smile-deco span:last-child {
  right: -20px;
  top: 40px;
  width: 416px;
  background: linear-gradient(to right, rgba(252, 250, 246, 0.6), rgba(158, 170, 177, 0.6));
}

.smile h2 {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.48px;
}

.smile-brand {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.5;
}

.smile > h2 + .smile-stat {
  margin-top: 28px;
}

.smile-stat-label {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.4px;
}

.smile-stat-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 70px;
  line-height: 1.35;
  color: var(--color-tan);
}

.smile-stat-unit {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-tan);
}

/* 11 cases */
.cases {
  background: #fff;
}

.cases-bar {
  height: 4px;
  background: #c7d2d1;
}

.cases-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px;
  margin-bottom: 0;
  scrollbar-width: none;
}

#cases .cases-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: #fff;
  transition: top 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.bars-hidden #cases .cases-tabs {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav,
  #cases .cases-tabs {
    transition: none;
  }
}

.cases-tabs::-webkit-scrollbar {
  display: none;
}

.cases-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
}

.cases-tab.is-active {
  border-color: #1f6f68;
  background: #1f6f68;
  color: var(--color-white);
}

.cases-tab-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cases-tab-caret {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-tan);
}

.cases-tab-icon {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50px;
  background: transparent;
}

.cases-tab-icon img {
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: contain;
  margin: 0;
}

.cases-tab p {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.42px;
  color: var(--color-muted);
  white-space: nowrap;
}

.cases-tab.is-active p {
  color: var(--color-white);
}

.cases-tab.is-active .cases-tab-caret {
  border-top-color: var(--color-white);
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px 16px 100px;
  background: var(--color-white);
}

/* 12 standards + flow */
.standards {
  position: relative;
  overflow: hidden;
  padding: 180px 16px 60px;
  background-color: #e3d5c1;
  background-image: url("/assets/img/texture.webp");
  background-size: 204.8px 204.8px;
  background-position: top left;
}

.standards-deco {
  position: absolute;
  left: -155px;
  top: -41px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 816.7px;
  height: 816.7px;
  pointer-events: none;
}

.standards-deco-rot {
  position: relative;
  flex: none;
  width: 519px;
  height: 636px;
  transform: rotate(-45deg);
}

.standards-deco-rot img {
  position: absolute;
  left: -8.36%;
  top: -6.19%;
  width: 116.72%;
  height: 113.64%;
  max-width: none;
}

.standards > *:not(.standards-deco) {
  position: relative;
  z-index: 1;
}

.standards-kicker {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.32px;
  text-align: center;
}

.standards h2 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.48px;
  text-align: center;
}

.std-block {
  margin-top: 20px;
  padding: 0;
  border-bottom: 0;
}

.std-block + .std-block {
  margin-top: 64px;
}

.std-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 5px 8px;
  border-bottom: 1px solid var(--color-tan);
}

.std-head h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.4px;
}

.std-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.36px;
  color: var(--color-gold-soft);
}

.std-block li {
  position: relative;
  padding-left: 18px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.std-block ul {
  margin-top: 16px;
}

.std-block li:first-child {
  margin-top: 0;
}

.std-block li .dot-gold {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 16px 100px;
}

.flow-step {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #c2b492;
  background: var(--color-white);
  padding: 20px 23px;
}

.flow-step-head {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr);
  align-items: flex-start;
  gap: 0;
}

.flow-step p.flow-no {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  color: #c2b492;
  flex-shrink: 0;
}

.flow-step h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.4px;
}

.flow-step img.flow-photo {
  display: block;
  width: 310px;
  max-width: 100%;
  aspect-ratio: 310 / 174;
  margin: 16px auto;
  object-fit: cover;
  object-position: 50% 50%;
}

.flow-step p {
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.flow-step .btn {
  width: 100%;
  margin-top: 16px;
}

.flow-arrow {
  display: block;
  width: 8px;
  height: 19px;
  margin: 0 auto;
  transform: rotate(-90deg);
}

/* 13 message */
.message-photos {
  display: flex;
  gap: 0;
  width: 100%;
  margin: 0;
}

.message-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 97px;
  overflow: hidden;
}

.message-tile img {
  position: absolute;
  max-width: none;
}

.message-tile-1 img {
  width: 205.8%;
  height: 182.65%;
  left: -78.84%;
  top: -18.34%;
}

.message-tile-2 img {
  width: 131.48%;
  height: 117.52%;
  left: -31.59%;
  top: -17.52%;
}

.message-tile-3 img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.message {
  position: relative;
  padding: 0 0 48px;
  background: #fcfaf6;
}

.message-bg {
  position: absolute;
  left: 0;
  top: 97px;
  width: 100%;
  height: 582px;
  object-fit: cover;
  pointer-events: none;
}

.message-body {
  position: relative;
  z-index: 1;
  padding: 32px 16px 0;
}

.message h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.48px;
  text-align: center;
}

.message-lead {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.message-body p + p,
.message-body p + ul,
.message-body ul + p {
  margin-top: 12px;
}

.message-victims {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.message-victims li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.message-victims .dot-gold {
  width: 6px;
  height: 6px;
  margin-top: 9px;
}

.message-close {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

/* 14 clinics */
.clinics {
  padding: 40px 16px 32px;
}

.clinics h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.48px;
  text-align: center;
}

.clinics-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.36px;
  color: var(--color-tan);
  text-align: center;
}

.clinics-lead {
  margin: 32px 0 24px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.45px;
}

.pref-select-wrap {
  position: relative;
}

.pref-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 24px;
  background: url("/assets/svg/imgWeuiArrowOutlined1.svg") center / contain no-repeat;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
}

.pref-select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 44px 0 20px;
  border: 1px solid #999;
  border-radius: 2px;
  background: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.72px;
  color: var(--color-muted);
  appearance: none;
}

.clinic-card {
  padding: 48px 0 8px;
}

.clinic-card.is-hidden {
  display: none;
}

.clinic-area {
  display: inline-flex;
  padding: 0 6px;
  background: var(--color-mint-deep);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.39px;
}

.clinic-name {
  margin: 8px 0 16px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.clinic-slider .slider-viewport {
  width: 320px;
  max-width: calc(100% - 38px);
  margin: 0 auto;
}

.clinic-slider {
  position: relative;
}

.clinic-slider .slider-arrow {
  width: 12px;
  height: 21px;
  color: transparent;
  font-size: 0;
}

.clinic-slider .slider-arrow img {
  display: block;
  width: 12px;
  height: 21px;
  max-width: none;
}

.clinic-slider .slider-arrow-prev {
  left: 0;
}

.clinic-slider .slider-arrow-next {
  right: 0;
}

.clinic-slider .slider-arrow-prev img {
  transform: scaleY(-1);
}

.clinic-slider .slider-arrow-next img {
  transform: rotate(180deg);
}

.clinic-slider .slider-dots {
  margin-top: 12px;
  margin-bottom: 32px;
}

.clinic-slider .slider-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 320 / 241;
  object-fit: cover;
  object-position: 50% 50%;
}

.clinic-card .pill-map {
  display: flex;
  width: fit-content;
  margin: 0 0 0 109px;
}

.clinic-spec .spec-row {
  grid-template-columns: 109px 1fr;
  align-items: start;
  gap: 0;
  height: 36px;
  border-bottom: 0;
  padding: 0;
  margin: 0;
}

.clinic-spec .spec-row:first-child {
  height: 58px;
}

.clinic-spec .spec-row dt {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.28px;
  color: #777;
}

.clinic-spec .spec-row dd {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

/* Figma: 実績数の値は 2 行ラベルの上端から 9px 下 */
.clinic-spec .spec-row:first-child dd {
  margin-top: 9px;
}

.clinic-card .btn {
  width: calc(100% - 38px);
  margin-top: 32px;
}

.clinic-note {
  margin-top: 12px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.26px;
  color: var(--color-muted);
  text-align: center;
}

.clinic-rule {
  width: 100%;
  height: 1px;
  margin: 40px 0 0;
  background: #c2b492;
}

.copyright {
  margin-top: 48px;
  padding: 0 16px 40px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.26px;
  text-align: center;
}

.banner-flow {
  margin-top: 100px;
}

.banner-flow .banner-photo {
  object-fit: cover;
  object-position: 50% 50%;
}

.banner-flow .banner-dim {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 60%);
}

.banner-flow .banner-ja {
  font-weight: 600;
}

@media (max-width: 389px) {
  .fv-badges {
    zoom: 0.82;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .fv-panel {
    grid-template-columns: 1fr;
  }

  /* 06/07 の質問文は 320px では nowrap を解除して自然に折り返し、大きい囲み語は 20px に */
  .feature2 .mis-q-text,
  .feature3 .mis-q-text {
    white-space: normal;
  }

  .mis-q-box.lg {
    font-size: 20px;
    letter-spacing: 0.4px;
  }

  /* 「Prime Alignでは〜」見出し（06 は 340px 固定）を列幅に収める */
  .pa-heading-wrap {
    max-width: 100%;
  }

  .pa-heading-wrap > * {
    max-width: 100%;
    white-space: normal;
  }

  .fv-gif {
    max-width: 186px;
    margin-left: auto;
  }

  .teeth-6-art {
    left: 24px;
    width: min(262px, calc(100% - 36px));
  }

  .teeth-6-box {
    left: 48px;
    width: min(182px, calc(100% - 60px));
  }
}

/* アクセスが複数行のとき（ポータルの掲載データ）は行の高さを内容に合わせる */
.clinic-spec .spec-row-multi {
  height: auto;
  min-height: 36px;
  padding-bottom: 8px;
}

/* 住所は〒の行＋住所（2行＝48px）が基本。3行以上に折り返してもマップのボタンと重ならないよう高さを内容に合わせる */
.clinic-spec .spec-row:last-child {
  height: auto;
  min-height: 48px;
}
