/* ================= 共通リセット ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #f2f2f2; /* ページ外側の背景。mobile-pageの外枠が分かりやすいように仮でグレーにしています */
  font-family: 'Inter', sans-serif;
}

/* =================================================
   Mobile Page(iPhone 17 = 402px幅を基準にした親コンテナ)
   ================================================= */
.mobile-page {
  position: relative;
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  min-height: 13000px; /* 前セクション合計10801(概算) + FAQ(概算)700。セクションを追加するたびに更新してください */
  --worries-height: 600px; /* お悩みセクションの高さ。SASセクションのtop計算で参照するため変数化(モバイル既定値) */
  --fv-offset: 1159px; /* .worries以降の全セクションの基準となるFV下端位置。デスクトップでFVが伸びた分をここで吸収する */
  --nlabout-offset: 3830px; /* .nl-features以降の基準となる.nl-about下端位置(モバイル既定値) */
  background: #ffffff;
  overflow-x: clip; /* 人物画像のはみ出し部分をここでクリップ(Figmaの Clip content と同じ役割)。hiddenだと縦方向も独自スクロールになってしまうためclipを使用 */
}

/* ================= 固定ヘッダー ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  height: 96px;
  background: #ffffff;
  z-index: 999;
}

.header-logo {
  position: absolute;
  left: 19px;
  top: 34px;
  width: 106px;
  height: 55px;
}
.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-phone {
  position: absolute;
  left: 265px;
  top: 34px;
  width: 50px;
  height: 50px;
  display: block;
}
.header-phone img { width: 100%; height: 100%; }

.header-menu-btn {
  position: absolute;
  left: 327px;
  top: 37px;
  width: 45px;
  height: 43px;
  background: #13294b;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.header-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* デスクトップ用ナビ・CTAは、モバイルでは常に非表示(基本ルール) */
.header-nav-desktop,
.header-cta-desktop {
  display: none;
}

/* ×に変形：1本目は下に移動して45度回転、2本目は透明化、3本目は上に移動して-45度回転 */
.header-menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.header-menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}

/* =================================================
   FVセクション
   Figma上の「FV」フレーム(幅729.443px)をそのままのサイズで配置し、
   親(.mobile-page)の overflow-x:hidden ではみ出し部分を隠しています。
   ================================================= */
.fv {
  position: absolute;
  left: -297px;
  top: 96px;
  width: 729.443px;
  height: 1063px;
}

.fv-gradient-bg {
  position: absolute;
  left: 297px;
  top: -1px;
  width: 402px;
  height: 226px;
  background: linear-gradient(to bottom, #eaf3f8 0%, #f7fafc 50%, #ffffff 100%);
}



.fv-photo {
  position: absolute;
  left: 22.99px;
  top: 290.2px;
  width: 683.464px;
  height: 381.468px;
}
.fv-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---- 見出しテキスト ---- */
.fv-text {
  position: absolute;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  color: #13294b;
  white-space: nowrap;
  line-height: normal
}
.fv-text--sono      { left: 319.03px; top: 24px;    font-size: 42px; }

/* ---- トップバッジ：「睡眠の質を改善」 ---- */
.fv-top-badge {
  position: absolute;
  left: 503px;
  top: 43px;
  z-index: 4;
  padding: 8px 20px;
  background: linear-gradient(135deg, #f5d47a 0%, #d9b55a 60%, #b8873a 100%);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(184, 135, 58, 0.5);
  transform: rotate(15deg);
  opacity: 0;
  animation:
    fvTopBadgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    fvTopBadgePulse 2s ease-in-out 0.8s infinite;
}

@keyframes fvTopBadgePulse {
  0%, 100% { transform: rotate(15deg) scale(1); }
  50%      { transform: rotate(15deg) scale(1.08); }
}

@keyframes fvTopBadgePop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(15deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) rotate(15deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(15deg);
  }
}

.fv-top-badge span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  white-space: nowrap;
}

.fv-text--houchi    { left: 319.03px; top: 158px; font-size: 36px; }
.fv-text--karanai {
  left: 367px;
  top: 237px;
  font-size: 25px;
}
.fv-text--karanai-bg {
  display: inline-block;
  padding: 4px 10px;
  background-color: #13294b;
  color: #ffffff;
}
.fv-text--nightlase {
  left: 318px;
  top: 274px;
  font-size: 58px;
  background: #b6394a;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fv-text--ibiki     { left: 314.06px; top: 81.98px; font-size: 78px; line-height: 59px; }
.fv-text--ibiki-accent {
  color: #b6394a;
  font-weight: 900;
}

/* ---- 見出しテキスト:下から12pxスライドしながらフェードイン(0.15s刻み) ---- */
.fv-text--sono,
.fv-text--ibiki,
.fv-text--houchi,
.fv-text--karanai,
.fv-text--nightlase {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fv-text--sono.is-visible,
.fv-text--ibiki.is-visible,
.fv-text--houchi.is-visible,
.fv-text--karanai.is-visible,
.fv-text--nightlase.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fv-text--sono.is-visible      { transition-delay: 0s; }
.fv-text--ibiki.is-visible     { transition-delay: 0.15s; }
.fv-text--houchi.is-visible    { transition-delay: 0.3s; }
.fv-text--karanai.is-visible   { transition-delay: 0.45s; }
.fv-text--nightlase.is-visible { transition-delay: 0.6s; }

/* ---- FVカード共通 ---- */
.fv-cards {
  position: absolute;
  top: 667px;
  left: 323px;
  width: 350px;
  display: grid;
  grid-template-columns: 171px 171px;
  gap: 8px;
}
.fv-card {
  position: relative;
  width: 171px;
  height: 60px;
  background: #fffefb;
  border: 1.25px solid #c7a954;
  border-radius: 8.006px;
  box-shadow: 0px 0px 3.079px 0px rgba(0,0,0,0.4);
  font-family: 'LINE Seed JP', 'Inter', sans-serif;
  font-weight: 700;
  color: #13294b;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fv-card--1 p, .fv-card--3 p {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}
.fv-card--3 p { font-size: 18px; line-height: 18.4px; }

/* ---- 中央カード(約15分/短時間治療)：文字の重なりを防ぐため flex で1行ずつ積む ---- */
.fv-card2-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.fv-card2-unit {
  font-size: 14.397px;
  line-height: 1;
}
.fv-card2-num {
  font-size: 25.709px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(to bottom, #c7a954 50%, #a67c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fv-card2-title {
  font-size: 18px;
  line-height: 1.2;
  margin-top: 4px;
  white-space: nowrap;
}

/* ---- CTAボタン ---- */
.fv-cta {
  position: absolute;
  left: 310px;
  top: 969px;
  width: 365px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(to right, #f6a253, #ffa366);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(246, 162, 83, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fv-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(246, 162, 83, 0.45);
}
.fv-cta:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(246, 162, 83, 0.35);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

/* ---- CTAボタン：わずかな呼吸するようなbox-shadowの明滅(pulse) ---- */
.fv-cta {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(246, 162, 83, 0.35);
  }
  50% {
    box-shadow: 0 6px 28px rgba(246, 162, 83, 0.85);
  }
}

.fv-cta-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18.78px;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
}
.fv-cta-icon-calendar {
  width: 29.5px;
  height: 27.7px;
  flex: none;
  display: block;
}

/* ---- 初回限定価格ブロック ---- */
.fv-price-block {
  position: absolute;
  left: 310px;
  top: 815px;
  width: 365px;
  padding: 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.fv-price-badge {
  position: absolute;
  right: -15px;
  top: -5px;
  width: 153px;
  padding: 10px 6px;
  background: #13294b;
  color: #ffffff;
  text-align: center;
  transform: rotate(20deg);
  box-shadow: 0 4px 10px rgba(19, 41, 75, 0.5);
  border: 2px solid #d9b55a;
  border-radius: 4px;
  z-index: 5;
}
.fv-price-badge span {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fv-price-label-badge {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #ff3355 0%, #d90429 100%);
  text-align: center;
  border-radius: 12px 12px 0 0;
}
.fv-price-label-badge span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.fv-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 16px 12px;
}

.fv-price-original-wrap {
  text-align: center;
}
.fv-price-original-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #999999;
  margin: 0 0 2px 0;
}
.fv-price-original {
  margin: 0;
  color: #999999;
}
.fv-price-original-yen {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
}
.fv-price-original-num {
  font-family: 'Arial', sans-serif;
  font-style: italic;
  font-size: 18px;
  margin: 0 1px;
}
.fv-price-original-tax {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 6px;
}

.fv-price-arrow {
  font-size: 24px;
  color: #d90429;
  font-weight: 700;
}

.fv-price-now {
  margin: 0;
  color: #d90429;
  font-weight: 900;
}
.fv-price-yen {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
}
.fv-price-num {
  font-family: 'Arial', sans-serif;
  font-style: italic;
  font-size: 40px;
  margin: 0 2px;
}
.fv-price-tax {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
}

/* =================================================
   お悩みセクション
   ================================================= */
.worries {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--fv-offset, 1159px) + var(--worries-gap, 40px));
  width: 330px;
  height: 600px;
  z-index: 1;
  font-family: 'Inter', sans-serif;
}

.worries-heading {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  color: #102340;
  white-space: nowrap;
  line-height: 1.25;
}
.worries-heading-line1 { display: block; font-size: 32px; }
.worries-heading-line2 { display: block; font-size: 42px; letter-spacing: 0.1em; }

.worries-item {
  position: absolute;
  left: 0;
  width: 100%;
  height: 24px;
}
.worries-item--1 { top: 136px; }
.worries-item--2 { top: 191px; }
.worries-item--3 { top: 246px; }
.worries-item--4 { top: 301px; }
.worries-item--5 { top: 356px; }
.worries-item--6 { top: 411px; }

.worries-icon {
  position: absolute;
  left: 11px;
  top: 0;
  width: 24px;
  height: 24px;
}
.worries-text {
  position: absolute;
  left: 44px;
  top: 2px;
  font-size: 19px;
  font-weight: 700;
  color: #102340;
  white-space: nowrap;
}

.worries-divider {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 293px;
  height: auto;
}
.worries-divider--1 { top: 175px; }
.worries-divider--2 { top: 230px; }
.worries-divider--3 { top: 285px; }
.worries-divider--4 { top: 340px; }
.worries-divider--5 { top: 395px; }
.worries-divider--6 { top: 450px; }

.worries-lead {
  position: absolute;
  left: 23px;
  top: 466px;
  font-size: 23px;
  font-weight: 700;
  color: #13294b;
  white-space: nowrap;
}
.worries-lead--2 { left: 27px; top: 551px; }

.worries-highlight-wrap {
  position: absolute;
  left: 11px;
  top: 502px;
  font-size: 34px;
  font-weight: 700;
  color: #13294b;
  white-space: nowrap;
}
.worries-highlight-mark {
  position: absolute;
  left: 21px;
  top: 29px;
  width: 126px;
  height: 10px;
  background: #f6a253;
  opacity: 0.7;
  z-index: 0;
}
.worries-highlight-text {
  position: relative;
  z-index: 1;
}
.worries-highlight-ga {
  position: relative;
  z-index: 1;
  font-size: 23px;
  margin-left: 2px;
}

/* =================================================
   睡眠時無呼吸症候群(SAS)セクション
   ================================================= */
.sas {
  position: absolute;
  left: 0;
  top: calc(var(--fv-offset, 1159px) + var(--worries-gap, 40px) + var(--worries-height, 600px) + 50px);
  width: 100%;
  height: 1077px;
  z-index: 2;
}
/* =================================================
   健康リスクの警告ブロック
   ================================================= */
.sas-warning {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 340px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #d90429 0%, #8f0016 100%);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(217, 4, 41, 0.35);
  z-index: 3;
}

.sas-warning-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.sas-warning-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sas-warning-item {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  white-space: nowrap;
}

/* ---- SAS警告ブロック：お悩みテキストの後にライズ ---- */
.sas-warning {
  opacity: 0;
  transform: translateX(-50%) translateY(35px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.sas-warning.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =================================================
   睡眠時無呼吸症候群 タイトル
   ================================================= */
.sas-ruby,
.sas-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(
    to bottom,
    #cdba87 0%,
    #c7a954 50%,
    #a67c00 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 2;
}

.sas-ruby {
  top: 281px;
  font-size: 18px;
}

.sas-title {
  top: 301px;
  font-size: 36px;
}

.sas-title--sas {
  top: 350px;
  background: linear-gradient(
    to bottom,
    #e8d7a8 0%,
    #c7a954 50%,
    #a67c00 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* =================================================
   説明文
   ================================================= */
.sas-text {
  position: absolute;
  left: calc(26.8px + var(--sas-text-offset, 20px));
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 30px;
  color: #13294b;
  z-index: 2;
}

.sas-text p {
  margin: 0;
}

.sas-text strong {
  font-weight: 800;
}

.sas-text--1 {
  top: 436px;
}


/* =================================================
   説明文の区切り線
   ================================================= */
.sas-divider {
  position: absolute;
  left: 45px;
  top: 592px;
  width: 266.5px;
  height: auto;
  z-index: 2;
}


/* =================================================
   説明文2
   ================================================= */
.sas-text--2 {
  top: 628px;
}


/* =================================================
   人物写真
   ================================================= */
.sas-photo {
  position: absolute;
  left: 50%;
  top: 227px; /* .sas-warningの下端(0+198)から開始。警告ブロックの背景には写真を重ねない */
  transform: translateX(-50%);
  width: 345px;
  height: 800px; /* 下端(1090px)を維持したまま、topを上げた分だけ高さを拡張(720→198の差分522pxを加算) */
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

.sas-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* =================================================
   「切らずに改善を目指せます」セクション
   ================================================= */
.cut-free {
  position: absolute;
  left: 0;
  top: calc(2599px + var(--cutfree-gap, 30px)); /* header96+FV786+余白40+お悩み600+SAS800 + 上余白 */
  width: 100%;
  height: 700px; /* 写真598 + 波型・説明文ぶん拡張 */
}
.cut-free-photo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 191px;
  width: 100%;
  max-width: 390px;
  height: 407px;
  z-index: 2; /* waveより手前(上のレイヤー)に表示 */
}
.cut-free-wave {
  position: absolute;
  left: 50%;
  top: calc(570px + var(--cutfree-wave-offset, 0px)); /* テキストの背後にくる位置 */
  transform: translateX(-50%) rotate(180deg);
  width: 508px;
  max-width: none;
  height: 157.065px;
  z-index: 1; /* 写真・テキストより背面(下のレイヤー) */
}
.cut-free-lead {
  position: absolute;
  left: 50%;
  top: 607px;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  color: #13294b;
  white-space: nowrap;
  z-index: 3;
}
.cut-free-lead p { margin: 0; }
.cut-free-lead strong { font-weight: 700; color: #a67c00; }
.cut-free-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  color: #13294b;
  white-space: nowrap;
}
.cut-free-text--1 { top: 0;    font-size: 30px; }
.cut-free-text--2 { top: 123px; font-size: 31px; }
.cut-free-text--gradient {
  top: 27px;
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(to bottom, #cdba87 0%, #c7a954 50%, #a67c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cut-free-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================================
   ナイトレーズとは？ セクション(幅390pxで中央配置)
   ================================================= */
.nl-about {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(3329px + var(--nlabout-gap, 10px)); /* これまでの累計の高さ + 上余白 */
  width: 100%;
  height: 650px;
  background: #ffffff;
  overflow: hidden;
}

.nl-blob { position: absolute; }
.nl-blob img { display: block; width: 100%; height: 100%; }
.nl-blob--1 { left: 33px;  top: 36px;  width: 350px; height: 350px; }
.nl-blob--2 { left: 201px; top: 59px;  width: 250px; height: 250px; }
.nl-blob--3 { left: -49px; top: 236px; width: 250px; height: 250px; }

.nl-wave { position: absolute; max-width: none; }
.nl-wave--1 { left: -30px;  top: 0;   width: 576px; height: 90px; }
.nl-wave--2 { left: -104px; top: 7px; width: 576px; height: 90px; }
.nl-wave--3 { left: -38px; top: 420px; width: 576px; height: 90px; transform: rotate(180deg); }
.nl-wave--4 { left: -38px; top: 386px; width: 576px; height: 90px; transform: rotate(180deg); }

.nl-badge {
  position: absolute;
  left: 91px;
  top: 25px;
  width: 210px;
  height: 34px;
  background: #ffffff;
  border: 1px solid #d9b55a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.nl-badge span {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 18px;
  color: #b58a32;
  white-space: nowrap;
}

.nl-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 63px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 34px;
  color: #13294b;
  white-space: nowrap;
  z-index: 2;
  margin: 0;
}

.nl-machine-photo {
  position: absolute;
  left: 234px;
  top: 130px;
  width: 137px;
  height: 352px;
  overflow: hidden;
  z-index: 10;
}
.nl-machine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.nl-body {
  position: absolute;
  left: 34px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 20.38px;
  line-height: 35.96px;
  color: #13294b;
  margin: 0;
  z-index: 2;
}
.nl-body--1 { top: 198px; }
.nl-body--2 { top: 270px; }
.nl-body--3 { top: 342px; left: 33px; }
.nl-hl { color: #288673; font-size: 23.97px; }
.nl-hl--big { font-size: 28.77px; }
.nl-note {
  position: absolute;
  left: 33px;
  top: 465px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 20px;
  color: #13294b;
  margin: 0;
  z-index: 2;
}

.nl-divider {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 117px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.nl-divider-line { width: 91px; height: 1px; display: block; }
.nl-divider-star { font-size: 12.308px; color: #d9b55a; font-weight: 700; }
.nl-divider--features { position: absolute; left: 50%; transform: translateX(-50%); top: 96px; }

/* =================================================
   ナイトレーズの特長 セクション
   ================================================= */
.nl-features {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--nlabout-offset, 3830px) + var(--nlabout-gap, 10px)); /* nl-about開始(2997+余白) + 501(Figma指定のオフセット) */
  width: 100%;
  height: 490px;
  background: #f4f9fd;
  overflow: hidden;
}
.nl-features .nl-title { top: 42px; }

.nl-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.25);
  text-align: center;
}
.nl-card--1 { left: 36px;  top: 130px; width: 160px; height: 155px; }
.nl-card--2 { left: 210px; top: 130px; width: 160px; height: 155px; }
.nl-card--3 { left: 36px;  top: 299px; width: 334px; height: 155px; }

.nl-card-icon {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
}
.nl-card-icon--clock { top: 20px; width: 40px; height: 40px; }
.nl-card-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 63px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 19px;
  color: #000000;
  white-space: nowrap;
  margin: 0;
}
.nl-card--3 .nl-card-title { top: 75px; }
.nl-card-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 15px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
  margin: 0;
  line-height: 1.4;
}
.nl-card--3 .nl-card-caption { top: 108px; }

/* =================================================
   なぜいびきの改善を目指せるの？セクション(メカニズム)
   ================================================= */
.mech {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(4350px + var(--mech-gap, -30px)); /* nl-features終了位置 + 上余白 */
  width: 100%;
  height: 1160px;
  background: #ffffff;
  overflow: hidden;
}

.mech-blob {
  position: absolute;
  left: -83px;
  top: -80px;
  width: 300px;
  height: 300px;
}
.mech-blob img { width: 100%; height: 100%; display: block; }

.mech-divider { top: 145px; }

.mech-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 9px;
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 38px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.mech-title span { display: block; }

.mech-sub {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 159px;
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 26px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
  z-index: 2;
}
.mech-sub span { display: block; }
.mech-highlight {
  position: absolute;
  left: 93px;
  top: 201px;
  width: 178px;
  height: 9px;
  background: #f5e7b8;
  opacity: 0.7;
  border-radius: 2px;
  z-index: 1;
}

/* ---- カード共通 ---- */
.mech-card {
  position: absolute;
  left: 36px;
  width: 330px;
  height: 230px;
  background: #f5f9fd;
  border-radius: 16px;
}
.mech-card--1 { top: 227px; }
.mech-card--2 { top: calc(227px + 230px + var(--mech-card-gap, 40px)); }
.mech-card--3 { top: calc(227px + 2 * (230px + var(--mech-card-gap, 40px))); }

.mech-photo { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; }
.mech-photo img { width: 100%; height: 100%; object-fit: cover; }
.mech-photo--laser img { object-fit: cover; }

.mech-badge {
  position: absolute;
  left: 13px;
  top: 19px;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  white-space: nowrap;
}
.mech-badge--dark { background: #52677f; }
.mech-badge--gold { background: #d9b55a; }

.mech-callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.mech-callout--1 { left: 202px; top: 34px; }
.mech-callout--2 { left: 198px; top: 19px; }
.mech-callout-arrow--1 { width: 46px; height: 27px; transform: rotate(-8.79deg); }
.mech-callout-arrow--2 { width: 46px; height: 27px; transform: rotate(-8.79deg); }
.mech-callout-text {
  background: #52677f;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.04px;
  line-height: 20.28px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 11.7px;
  white-space: nowrap;
  position: relative;
}
.mech-callout-text--1 { top: -23px; left: -48px; }
.mech-callout-text--2 { top: -13px; left: -43px; }

.mech-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.mech-arrow--1 { top: calc(227px + 230px + var(--mech-card-gap, 40px) / 2 - 12px); } /* card1とcard2の隙間の中央 */
.mech-arrow--2 { top: calc(227px + 2 * (230px + var(--mech-card-gap, 40px)) - var(--mech-card-gap, 40px) / 2 - 12px); } /* card2とcard3の隙間の中央 */

.mech-footer {
  position: absolute;
  left: 39%;
  transform: translateX(-50%);
  top: 1015px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mech-footer-line { width: 53px; height: 1px; display: block; }
.mech-footer-text {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
  white-space: nowrap;
}

.mech-final {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 1042px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 30.273px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.mech-final-small { font-size: 21.864px; }

/* =================================================
   3ステップ(診る/見極める/照射する)セクション
   ================================================= */
.step {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(5510px + var(--step-gap, -50px));
  width: 100%;
  height: 602px; /* カード190 x3 + 隙間14 x2 + 下端の線が隠れないよう4px追加 */
  background: #ffffff;
}

.step-card {
  position: relative;
  width: 350px;
  max-width: calc(100% - 26px);
  height: 190px;
  margin: 0 auto 14px auto;
  box-shadow: 0 0 0 1px #dde7f0;
  border-radius: 16px;
  overflow: hidden;
}

.step-bar {
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 120px;
  background: #d9b55a;
  border-radius: 3px;
}

.step-label {
  position: absolute;
  left: 30px;
  top: 5px;
  transform: rotate(-8.91deg);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  color: #d9b55a;
  z-index: 10;
}

.step-num {
  position: absolute;
  left: 40px;
  top: 28px;
  width: 43.5px;
  height: 43.5px;
}
.step-num img { width: 100%; height: 100%; display: block; }
.step-num span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19.575px;
  color: #ffffff;
}

.step-watermark {
  position: absolute;
  opacity: 0.5;
}
.step-card:nth-child(1) .step-watermark { left: 232px; top: 22px; width: 90px; height: 112px; }
.step-card:nth-child(2) .step-watermark { left: 221px; top: 38px; width: 106px; height: 106px; }
.step-card:nth-child(3) .step-watermark { left: 219px; top: 38px; width: 114px; height: 114px; }

.step-title {
  position: absolute;
  left: 50%;
  top: 49.75px; /* step-numの縦の中心(top28px + 高さ43.5pxの半分)に合わせる */
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 26px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.step-card:nth-child(1) .step-title { transform: translate(calc(-50% - 54px), -50%); } /* 診る */
.step-card:nth-child(2) .step-title { transform: translate(calc(-50% - 30px), -50%); } /* 見極める */
.step-card:nth-child(3) .step-title { transform: translate(calc(-50% - 30px), -50%); } /* 照射する */
.step-subtitle {
  position: absolute;
  left: 50%;
  top: 79px;
  transform: translateX(calc(-50% + 4px));
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 22px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.step-desc {
  position: absolute;
  left: 50%;
  top: 120px;
  transform: translateX(calc(-50% + 14px));
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  color: #13294b;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

/* =================================================
   ドクター施術セクション
   ================================================= */
.doctor-treatment {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(6108px + var(--doctor-treatment-gap, 0px)); /* JS読み込み前の仮位置。実際はJSで自動計算されます */
  width: 100%;
  padding: 50px 0 40px;
  background: #ffffff;
  text-align: center;
}

.doctor-treatment-overlay {
  width: 90%;
  max-width: 340px;
  margin: 28px auto 0;
  padding: 20px;
  background: linear-gradient(135deg, #ff3355 0%, #d90429 100%);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(217, 4, 41, 0.35);
  text-align: center;
}

.doctor-treatment-badge {
  display: inline-block;
  padding: 10px 28px;
  margin: 0 0 12px 0;
  background: #ffffff;
  border-radius: 6px;
}
.doctor-treatment-badge span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #d90429;
  white-space: nowrap;
}

.doctor-treatment-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}
.doctor-treatment-text strong {
  font-weight: 900;
  color: #ffe066;
  font-size: 18px;
}
.doctor-treatment-photo {
  width: 345px;
  max-width: calc(100% - 40px);
  height: 300px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #d9b55a;
}
.doctor-treatment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* =================================================
   何が違うの？(比較)セクション
   ================================================= */
.compare {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(6058px + var(--compare-gap, 0px)); /* 3ステップセクション終了位置(5128) + 高さ598 + 上余白 */
  width: 100%;
  height: 1045px;
  background: #ffffff;
}

.compare-kicker {
  position: absolute;
  left: calc(50% - 149px);
  top: var(--kicker-shift, 15px);
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 30px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.compare-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(30px + var(--title-shift, 15px));
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 34px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.compare-divider { top: calc(87px + var(--divider-shift, 15px)); }

.compare-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 210px;
  background: #fdfeff;
  border: 1px solid #e1e7ed;
  border-radius: 16px;
  box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.25);
  overflow: hidden;
}
.compare-card--highlight {
  top: calc(108px + var(--cards-down-shift, 40px));
  background: #fffefd;
  border-color: #d9b55a;
  overflow: visible; /* バッジがカードの外(上)にはみ出すため */
}
.compare-recommend-badge {
  position: absolute;
  left: 20px;
  top: 0;
  transform: translateY(-50%);
  width: 200px;
  height: 34px;
  background: #d9b55a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
  white-space: nowrap;
  z-index: 5;
}
.compare-card--cpap { top: calc(373px + var(--cards-down-shift, 40px)); }
.compare-card--mouthpiece { top: calc(373px + var(--cards-down-shift, 40px) + 210px + var(--compare-card-gap, 20px)); }
.compare-card--surgery { top: calc(373px + var(--cards-down-shift, 40px) + 2 * (210px + var(--compare-card-gap, 20px))); }

.compare-card-title {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 36px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}
.compare-card-title--nightlase { top: 28px; left: 113px; transform: none; font-size: 33px; }
.compare-card-en {
  position: absolute;
  left: 165.8px;
  top: 68px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 17.6px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
}

.compare-photo {
  position: absolute;
  overflow: hidden;
}
.compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.compare-photo--nightlase { left: 28px; top: 3px; width: 79px; height: 202px; }
.compare-photo--cpap { left: 15px; top: 83px; width: 109px; height: 79px; border-radius: 16px; background: #ffffff; }
.compare-photo--mouthpiece { left: 15px; top: 75px; width: 109px; height: 79px; border-radius: 16px; background: #ffffff; }
.compare-photo--surgery { left: 15px; top: 87px; width: 109px; height: 79px; border-radius: 16px; background: #ffffff; }

.compare-tag {
  position: absolute;
  left: 143px;
  width: 175px;
  height: 42px;
  border-radius: 8px;
  background: #e1e7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.compare-tag span {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  color: #000000;
  white-space: nowrap;
  position: relative;
  top: var(--compare-tag-text-offset, -2px);
}
.compare-tag-icon { width: 20px; height: 20px; display: block; position: relative; top: var(--compare-tag-icon-offset, 0px); }
.compare-tag--1 { top: 85px; }
.compare-tag--2 { top: 130px; }
.compare-card--highlight .compare-tag--1 { top: 104px; }
.compare-card--highlight .compare-tag--2 { top: 149px; }
.compare-tag--highlight { left: 124px; background: #fff6de; }

.compare-vs {
  position: absolute;
  left: 0;
  top: calc(318px + var(--cards-down-shift, 40px)); /* 強調カード(top108+高さ210)の下端 */
  width: 100%;
  height: 55px; /* 強調カード下端(318)からCPAPカード上端(373)までの隙間 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 42.947px;
  color: #636465;
  margin: 0;
}

/* =================================================
   症例(BEFORE/AFTER)セクション
   ================================================= */
.case {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(7103px + var(--case-gap, 60px));
  width: 100%;
  height: var(--case-height, 420px);
  background-image: url('../images/case/case-bg.jpeg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.case::before,
.case::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--case-fade-height, 100px);
  pointer-events: none;
  z-index: 1;
}
.case::before {
  top: 0;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 100%);
}
.case::after {
  bottom: 0;
  background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.case-blob { position: absolute; z-index: 0; }
.case-blob--1 { left: -120px; top: -80px; width: 280px; height: 220px; z-index: -1; }
.case-blob--2 { left: 227px; top: calc(var(--case-height, 420px) - 197px); width: 280px; height: 220px; }

.case-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 58px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 34px;
  color: #13294b;
  white-space: nowrap;
  margin: 0;
  z-index: 2;
}
.case-divider { top: 108px; z-index: 2; }

.case-card {
  position: absolute;
  left: 20px;
  top: 166px;
  width: 350px;
  height: 152px;
  border: 1px solid #e5c76b;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  z-index: 2;
}
.case-photo { position: absolute; left: 12px; top: 10px; width: 326px; height: 133px; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }

.case-label {
  position: absolute;
  top: 10px;
  width: 67px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
}
.case-label--before { left: 12px; background: #13294b; }
.case-label--after { left: 176px; background: #d9b55a; }

/* =================================================
   期間限定価格(料金表)セクション
   ================================================= */
.price {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(7103px + var(--case-gap, 60px) + var(--case-height, 420px) + var(--price-gap, 10px));
  width: 100%;
  padding-bottom: 40px;
  background: #ffffff;
}

.price-kicker {
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 12px;
  color: #fe517b;
  margin: 0 0 4px 0;
}
.price-title {
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 20px 0;
}
.price-star { font-size: 14px; }

.price-card {
  position: relative;
  width: 345px;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #f1a9c0;
  border-radius: 12px;
  padding: 17px 22px;
}


.price-deadline-badge span {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.price-row--main { padding-right: 22px; }

.price-row-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #333333;
  margin: 0;
}
.price-row-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #333333;
  margin: 2px 0 0 0;
}
.price-row-sub-inline { font-size: 15px; margin-left: 6px; }

.price-row-price { text-align: right; }
.price-now { margin: 0; color: #fe517b; font-weight: 700; white-space: nowrap; }
.price-yen { font-family: 'Noto Sans JP', sans-serif; font-size: 14px; }
.price-num { font-family: 'Arial', sans-serif; font-style: italic; font-size: 22px; margin: 0 2px; }
.price-tax { font-family: 'Noto Sans JP', sans-serif; font-size: 10px; }
.price-original {
  margin: 2px 0 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #7b7b7b;
  white-space: nowrap;
}

.price-list__trigger {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #fe517b;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.price-more {
  display: flex;
  flex-direction: column;
}

/* =================================================
   料金セクション：FV期間限定価格カードとトンマナ統一
   ================================================= */

.price {
  background: #ffffff;
}

/* 上部英字 */
.price-kicker {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #13294b;
  letter-spacing: 0.08em;
  margin: 0 0 6px 0;
}

/* 「期間限定価格」 */
.price-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 30px;
  color: #13294b;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  margin: 0 0 26px 0;
}

/* 星 */
.price-star {
  font-size: 14px;
  color: #d9b55a;
}

/* 料金カード */
.price-card {
  position: relative;
  width: 345px;
  max-width: calc(100% - 20px);
  margin: 0 auto;

  /* 赤帯ぶん上側の余白を確保 */
  padding: 26px 20px 20px;

  background: #ffffff;
  border: 1px solid #d9b55a;
  border-radius: 14px;

  box-shadow:
    0 5px 18px rgba(19, 41, 75, 0.10);

  overflow: visible;
}

/* FVと同じ「初回限定価格」の赤帯 */
.price-card-head {
  position: absolute;
  left: -1px;
  top: -1px;

  width: calc(100% + 2px);
  padding: 11px 0;

  background: linear-gradient(
    135deg,
    #ff3355 0%,
    #d90429 100%
  );

  border-radius: 14px 14px 0 0;

  text-align: center;

  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #ffffff;

  z-index: 2;
}

/* FVと同じネイビー×ゴールドの期限バッジ */
.price-deadline-badge {
  position: absolute;
  top: -22px;
  right: -10px;

  width: 82px;
  min-height: 64px;
  padding: 8px 6px;

  border-radius: 6px;

  background: #13294b;
  border: 2px solid #d9b55a;

  color: #ffd76a;

  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: rotate(10deg);

  box-shadow:
    0 5px 14px rgba(19, 41, 75, 0.28);

  z-index: 5;
}

/* 各料金行 */
.price-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 0;

  border-bottom: 1px solid #edf0f4;
}

.price-row:last-child {
  border-bottom: none;
}

/* 初回価格 */
.price-row--main {
  padding-top: 12px;
  padding-right: 28px;
}

/* メニュー名 */
.price-row-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #13294b;
  margin: 0;
}

/* 麻酔付き等 */
.price-row-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #52677f;
  margin: 4px 0 0 0;
}

/* 横並び補足 */
.price-row-sub-inline {
  font-size: 12px;
  color: #52677f;
  margin-left: 6px;
}

/* 価格側 */
.price-row-price {
  text-align: right;
}

/* 現在価格 */
.price-now {
  margin: 0;
  color: #d90429;
  font-weight: 900;
  white-space: nowrap;
}

/* ￥ */
.price-yen {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
}

/* 金額 */
.price-num {
  font-family: 'Arial', sans-serif;
  font-style: italic;
  font-size: 25px;
  font-weight: 900;
  margin: 0 2px;
}

/* 税込 */
.price-tax {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 8px;
  color: #d90429;
}

/* 通常価格 */
.price-original {
  margin: 4px 0 0 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: #999999;
  white-space: nowrap;
}

/* 料金表内の＋ボタンが残っている場合 */
.price-list__trigger {
  color: #d90429;
}

/* =================================================
   院長紹介セクション(絶対座標の枠で全体を包む)
   ================================================= */
.doctor-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(7103px + var(--case-gap, 60px) + var(--case-height, 420px) + var(--price-gap, 10px) + var(--doctor-gap, 250px));
  /* 料金表アコーディオンが開いた状態でも重ならないよう、余裕を持たせた仮の余白(700px)にしています */
  width: 100%;
}

/* ===== Doctor Section (いただいたCSSそのまま) ===== */

.doctor {
  padding: 8px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.doctor-card {
  width: 333px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0px 4px 13px rgba(155, 222, 212, 0.25);
  padding: 24px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doctor-title {
  width: 333px;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 28px;
  text-align: center;
  background: linear-gradient(to right, #3A987A 26%, #248F6D 85%, #0A7855 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.doctor-title-line {
  width: 333px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.doctor-title-line-bar {
  flex: 1;
  height: 0;
  border-top: 1px solid #248F6D;
}

.doctor-title-icon {
  width: 12px;
  height: auto;
  flex-shrink: 0;
  font-size: 12px;
  color: #248F6D;
  text-align: center;
}

.doctor-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctor-photo {
  width: 136px;
  height: 132px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}

.doctor-name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctor-clinic-name {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 11px;
  color: #F46B8A;
  margin: 0;
  white-space: nowrap;
}

.doctor-name {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: 28px;
  color: #333333;
  margin: 0;
}

.doctor-catch {
  width: calc(100% - 32px);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 20px;
  color: #0A7878;
  background: #F4FBFA;
  border-radius: 3px;
  padding: 6px 10px;
  margin: 0 auto;
  text-align: center;
}

.doctor-desc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: center;
}

.doctor-desc-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 37px;
  flex-shrink: 0;
  background-image: url('../images/doctor/icon-heartplus.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.doctor-desc-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.doctor-desc-text {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 9px;
  line-height: 14.3px;
  color: #333333;
  margin: 0;
  width: 212px;
}

.doctor-career-box,
.doctor-qualification-box {
  width: 280px;
  background: #F4FBFA;
  border: none;
  border-radius: 3px;
  margin: 0 auto;
  padding: 10px 12px;
}

.doctor-section-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.doctor-heading-line {
  flex: 1;
  height: 0;
  border-top: 0.5px solid #0A7878;
}

.doctor-heading-text {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  color: #0A7878;
  white-space: nowrap;
}

.doctor-timeline {
  display: grid;
  grid-template-columns: 45px 16px 1fr;
  position: relative;
}

.doctor-timeline::before {
  content: "";
  position: absolute;
  left: calc(45px + 8px);
  top: 10px;
  bottom: 10px;
  width: 0.5px;
  background: #000000;
  transform: translateX(-50%);
}

.doctor-timeline-row {
  display: contents;
}

.doctor-timeline-year {
  font-family: "Shippori Mincho", serif;
  font-size: 9px;
  color: #0A7878;
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.doctor-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0A7878;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.doctor-timeline-item {
  font-family: "Shippori Mincho", serif;
  font-size: 9px;
  color: #333333;
  display: flex;
  align-items: center;
  padding: 6px 0 6px 8px;
}

.doctor-qualification-box .doctor-section-heading {
  margin-bottom: 2px;
}

.doctor-qualification-text {
  font-family: "Shippori Mincho", serif;
  font-size: 6px;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  width: 242px;
}

.doctor-message-card {
  width: 300px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 auto;
}

.doctor-message-icon {
  width: 28px;
  height: 26px;
  flex-shrink: 0;
}

.doctor-message-text {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 14.3px;
  color: #000000;
  margin: 0;
  width: 228px;
}

/* =================================================
   クリニック紹介セクション
   ================================================= */
.clinic-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(6771px + var(--case-gap, 60px) + var(--case-height, 420px) + var(--price-gap, 10px) + var(--doctor-gap, 250px) + 1300px); /* JS読み込み前の仮位置。実際はJSで自動計算されます */
  width: 100%;
  max-width: 402px;
  padding: 40px 0 40px;
  background: #ffffff;
}

.clinic-title-block {
  position: relative;
  text-align: center;
}
.clinic-title-en {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 26px;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.clinic-title-ja {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 12px;
  color: #333333;
  margin: 4px 0 0 0;
}
.clinic-title-line-under {
  width: 60px;
  height: 1px;
  background: #de4c6f;
  margin: 8px auto 0;
}
.clinic-title-catch {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 12px;
  color: #333333;
  line-height: 1.6;
  margin: 16px 0 0 0;
}
.clinic-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.clinic-divider-line { width: 91px; height: 1px; background: #de4c6f; display: block; }
.clinic-divider-star {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.clinic-gallery { margin-top: 23px; }
.clinic-photo-row {
  display: flex;
}
.clinic-photo {
  width: 50%;
  height: 125px;
  overflow: hidden;
}
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.clinic-caption-row {
  display: flex;
  padding: 5px 8px 14px;
}
.clinic-caption {
  width: 50%;
  text-align: center;
  padding: 0 6px;
}
.clinic-tag {
  display: inline-block;
  background: #f6c8d3;
  color: #de4c6f;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  padding: 4px 14px;
  border-radius: 18px;
  margin-bottom: 8px;
}
.clinic-caption p {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 10.5px;
  color: #333333;
  line-height: 1.4;
  margin: 0;
}

.clinic-features {
  width: 350px;
  max-width: calc(100% - 20px);
  margin: 23px auto 0;
  background: #fff9fb;
  border: 1px solid #ffdae5;
  border-radius: 12px;
  display: flex;
  padding: 16px 0;
}
.clinic-feature {
  flex: 1;
  text-align: center;
  padding: 0 4px;
}
.clinic-feature-icon { width: 34px; height: 34px; margin: 0 auto; display: block; }
.clinic-feature-icon--calendar { transform: scale(var(--clinic-icon-shrink-calendar, 0.85)); }
.clinic-feature-icon--pin { transform: scale(var(--clinic-icon-shrink-pin, 0.85)); }
.clinic-feature-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: #333333;
  margin: 8px 0 4px 0;
}
.clinic-feature-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 7.5px;
  color: #000000;
  line-height: 1.3;
  margin: 0;
}
.clinic-feature-divider {
  width: 1px;
  background: #ffdae5;
  margin: 6px 0;
}

/* =================================================
   アクセスセクション
   ================================================= */
.access-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(6771px + var(--case-gap, 60px) + var(--case-height, 420px) + var(--price-gap, 10px) + var(--doctor-gap, 250px) + 1300px + 840px); /* JS読み込み前の仮位置。実際はJSで自動計算されます */
  width: 100%;
  max-width: 402px;
  padding: 40px 0 40px;
  background: #ffffff;
}

.access-title-block { text-align: center; }
.access-title-en {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 4px 0;
  letter-spacing: 0.1em;
}
.access-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.access-title-line { width: 60px; height: 1px; background: #de4c6f; display: block; }
.access-title-ja {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.access-title-clinic {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 15px;
  color: #333333;
  margin: 8px 0 0 0;
}

.access-map {
  width: 100%;
  aspect-ratio: 493 / 267;
  margin-top: 15px;
  overflow: hidden;
}
.access-map iframe { width: 100%; height: 100%; border: none; display: block; }

.access-info-card {
  width: 345px;
  max-width: calc(100% - 20px);
  margin: 15px auto 0;
  background: #ffffff;
  border: 1px solid #ffdae5;
  border-radius: 12px;
  box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.25);
  padding: 12px 20px;
}
.access-info-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}
.access-info-icon { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.access-info-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #de4c6f;
  width: 60px;
  flex-shrink: 0;
  padding-top: 3px;
}
.access-info-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #333333;
  line-height: 1.7;
  margin: 0;
}

.access-cta {
  width: 365px;
  max-width: calc(100% - 20px);
  margin: 25px auto 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}
.access-cta-main { position: static; margin: 0 auto; }
.access-cta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 80px;
  background: #ffffff;
  border: 2px solid #06c755;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---- LINE予約ボタン：CTAボタンと同じ呼吸するようなbox-shadowの明滅(pulse) ---- */
.access-cta-line {
  animation: lineCtaPulse 2.4s ease-in-out infinite;
}

@keyframes lineCtaPulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.15);
  }
  50% {
    box-shadow: 0 8px 34px rgba(6, 199, 85, 0.2);
  }
}

.access-cta-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(6, 199, 85, 0.3);
}
.access-cta-line:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.2);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}
.access-cta-line-icon { width: 32px; height: 32px; flex: none; }
.access-cta-line-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 18.78px;
  color: #06c755;
  white-space: nowrap;
}

/* =================================================
   よくある質問(FAQ)セクション
   ================================================= */
.faq-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(6771px + var(--case-gap, 60px) + var(--case-height, 420px) + var(--price-gap, 10px) + var(--doctor-gap, 250px) + 1300px + 840px + 700px); /* JS読み込み前の仮位置 */
  width: 100%;
  max-width: 402px;
  padding: 40px 0 40px;
  background: #ffffff;
}

.faq-title-block { text-align: center; margin-bottom: 20px; }
.faq-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 27px;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.faq-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.faq-divider-line { width: 91px; height: 1px; background: #de4c6f; display: block; }
.faq-divider-star {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(to bottom, #fe517b 61%, #ce4264 92%, #983049 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-list {
  width: 345px;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #f1dde3;
  border-radius: 12px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-q {
  font-family: 'Anonymous Pro', monospace;
  font-weight: 700;
  font-size: 22px;
  color: #fe517b;
  flex-shrink: 0;
}
.faq-question {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
}
.faq-icon {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fe517b;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding-top: 17px;
  padding-bottom: 17px;
}
.faq-answer p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #333333;
  line-height: 1.7;
  margin: 0;
  padding-left: 33px;
}
.faq-a {
  font-family: 'Anonymous Pro', monospace;
  font-weight: 700;
  font-size: 15px;
  color: #52677f;
  margin-right: 6px;
}

/* =================================================
   固定フッター(LINE予約/web予約)
   ================================================= */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  height: 64px;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.footer-btn-icon { width: 24px; height: 24px; flex: none; }

.footer-btn--line {
  background: #ffffff;
  color: #06c755;
  border: 1px solid #06c755;
  border-bottom: none;
}
.footer-btn--web {
  background: linear-gradient(to right, #f6a253, #ffa366);
  color: #ffffff;
}

/* 固定フッターの下に隠れないよう、ページ全体に余白を確保 */
.mobile-page { padding-bottom: 64px; }

@media (min-width: 768px) {
  .site-footer {
    display: none;
  }
  .mobile-page {
    padding-bottom: 0;
  }
}


/* =================================================
   ハンバーガーメニュー(オーバーレイパネル)
   ================================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(19, 41, 75, 0.55);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__inner {
  position: relative;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: #ffffff;
  padding: 32px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-overlay.is-open .nav-overlay__inner {
  transform: translateX(0);
}

.nav-overlay__close {
  position: absolute;
  right: 20px;
  top: 24px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay__close-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #13294b; /* ハンバーガーメニューと同じネイビーに統一 */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav-overlay__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: #d9b55a;
  margin: 0 0 24px 0;
}

.nav-overlay__list {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
}
.nav-overlay__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f5;
}
.nav-overlay__list li img { flex: none; }
.nav-overlay__list li a {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 15px;
  color: #13294b;
  text-decoration: none;
}

/* ---- ハンバーガーメニュー：リスト項目が開いたら順番にフェードイン(stagger) ---- */
.nav-overlay__list li {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav-overlay.is-open .nav-overlay__list li {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay.is-open .nav-overlay__list li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(2) { transition-delay: 0.18s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(3) { transition-delay: 0.26s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(4) { transition-delay: 0.34s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(5) { transition-delay: 0.42s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(6) { transition-delay: 0.5s; }

/* メニュー内のCTAボタンだけ、一覧と同じ明朝体に変更(サイズも枠に収まるよう調整) */
.nav-overlay__btn-web .fv-cta-text,
.nav-overlay__btn-line .access-cta-line-text {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.nav-overlay__btn-web {
  position: static;
  width: 100%;
  height: 56px;
  margin-bottom: 12px;
}
.nav-overlay__btn-line {
  position: static;
  width: 100%;
  height: 56px;
}

/* パネルを開いている間、背面をスクロールさせない */
body.nav-open {
  overflow: hidden;
}

/* ---- お悩み項目のスクロールアニメーション ---- */
.worries-item {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.worries-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}
/* 6項目が上から順にワンテンポずれて現れるように、遅延を個別指定 */
.worries-item--1.is-visible { transition-delay: 0s; }
.worries-item--2.is-visible { transition-delay: 0.12s; }
.worries-item--3.is-visible { transition-delay: 0.24s; }
.worries-item--4.is-visible { transition-delay: 0.36s; }
.worries-item--5.is-visible { transition-delay: 0.48s; }
.worries-item--6.is-visible { transition-delay: 0.6s; }

/* ---- 「もしかすると〜」テキスト：左からパンイン ---- */
.worries-lead,
.worries-highlight-wrap,
.worries-lead--2 {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.worries-lead.is-visible,
.worries-highlight-wrap.is-visible,
.worries-lead--2.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.worries-lead.is-visible { transition-delay: 0s; }
.worries-highlight-wrap.is-visible { transition-delay: 0.15s; }
.worries-lead--2.is-visible { transition-delay: 0.3s; }

/* ---- 「いびき」下のアンダーライン：テキストの後、左から右に伸びる ---- */
.worries-highlight-mark {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
  transition-delay: 0s;
}
.worries-highlight-wrap.is-visible .worries-highlight-mark {
  transform: scaleX(1);
  transition-delay: 0.7s; /* テキストが出た後(0.15s+0.7s目安)に追いかけて伸びる */
}

/* ---- メカニズムセクション：3枚カードが順番にフェードイン ---- */
.mech-card,
.mech-arrow {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mech-card.is-visible,
.mech-arrow.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mech-card--1.is-visible { transition-delay: 0s; }
.mech-arrow--1.is-visible { transition-delay: 0.15s; }
.mech-card--2.is-visible { transition-delay: 0.3s; }
.mech-arrow--2.is-visible { transition-delay: 0.45s; }
.mech-card--3.is-visible { transition-delay: 0.6s; }

/* ---- 比較セクション：カードのフェードイン ---- */
.compare-card {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.compare-card.is-visible {
  opacity: 1;
}

/* 強調カード(ナイトレーズ)：少し縮んだ状態から拡大しながら現れる */
.compare-card--highlight {
  transform: translateX(-50%) scale(0.9);
}
.compare-card--highlight.is-visible {
  transform: translateX(-50%) scale(1);
}

/* 通常カード(CPAP/マウスピース/外科的治療)：フェードインのみ(拡大なし) */
.compare-card--cpap,
.compare-card--mouthpiece,
.compare-card--surgery {
  transform: translateX(-50%) translateY(20px);
}
.compare-card--cpap.is-visible,
.compare-card--mouthpiece.is-visible,
.compare-card--surgery.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* 上から順に少しずつずらす */
.compare-card--highlight.is-visible { transition-delay: 0s; }
.compare-card--cpap.is-visible { transition-delay: 0.15s; }
.compare-card--mouthpiece.is-visible { transition-delay: 0.3s; }
.compare-card--surgery.is-visible { transition-delay: 0.45s; }

/* ---- 症例セクション：写真が左からスライドイン、ラベルは少し遅れてフェードイン ---- */
.case-photo {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.case-photo.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.case-label {
  opacity: 0;
  transition: opacity 0.5s ease;
  transition-delay: 0.5s; /* 写真のスライドが落ち着いた後に現れる */
}
.case-label.is-visible {
  opacity: 1;
}


/* ---- 料金表：割引バッジが画面に入ったら軽く脈打つ(pulse) ---- */
.price-deadline-badge.is-visible {
  animation: priceBadgePulse 1.8s ease-in-out infinite;
}

@keyframes priceBadgePulse {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50%      { transform: rotate(12deg) scale(1.18); }
}

/* ---- FV価格ブロックのバッジ：画面に入ったら軽く脈打つ(pulse) ---- */
.fv-price-badge.is-visible {
  animation: fvPriceBadgePulse 1.8s ease-in-out infinite;
}

@keyframes fvPriceBadgePulse {
  0%, 100% { transform: rotate(20deg) scale(1); }
  50%      { transform: rotate(20deg) scale(1.18); }
}

/* ---- ドクター施術セクション：カードが画面に入ったら軽く脈打つ(pulse) ---- */
.doctor-treatment-overlay.is-visible {
  animation: doctorTreatmentPulse 1.8s ease-in-out infinite;
}

@keyframes doctorTreatmentPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* =================================================
   レスポンシブ化：ベース設定
   ================================================= */
@media (min-width: 768px) {
  .mobile-page {
    max-width: 1440px;
  }

}

/* =================================================
   クロージングCTAセクション
   ================================================= */
.closing-cta {
  position: absolute;
  left: 0;
  top: 0; /* JS読み込み前の仮位置。実際はJSで自動計算されます */
  width: 100%;
  padding: 48px 24px 56px;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  text-align: center;
}

.closing-cta-text {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.8;
  color: #13294b;
  margin: 0 0 28px 0;
}

.closing-cta-price {
  position: relative;
  width: 90%;
  max-width: 345px;
  margin: 0 auto 28px;
  background: #ffffff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.closing-cta-price-badge {
  position: absolute;
  right: -15px;
  top: -22px;
  width: 120px;
  padding: 10px 6px;
  background: #13294b;
  color: #ffffff;
  text-align: center;
  transform: rotate(20deg);
  box-shadow: 0 4px 10px rgba(19, 41, 75, 0.5);
  border: 2px solid #d9b55a;
  border-radius: 4px;
  z-index: 5;
}
.closing-cta-price-badge span {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.closing-cta-price-label-badge {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #ff3355 0%, #d90429 100%);
  text-align: center;
  border-radius: 12px 12px 0 0;
}
.closing-cta-price-label-badge span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.closing-cta-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
}

.closing-cta-price-original-wrap {
  text-align: center;
}
.closing-cta-price-original-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 9px;
  color: #999999;
  margin: 0 0 2px 0;
}
.closing-cta-price-original {
  margin: 0;
  color: #999999;
}
.closing-cta-price-original-yen {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
}
.closing-cta-price-original-num {
  font-family: 'Arial', sans-serif;
  font-style: italic;
  font-size: 14px;
  margin: 0 1px;
}
.closing-cta-price-original-tax {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 6px;
}

.closing-cta-price-arrow {
  display: flex;
  align-items: center;
}

.closing-cta-price-now {
  margin: 0;
  color: #d90429;
  font-weight: 900;
}
.closing-cta-price-yen {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
}
.closing-cta-price-num {
  font-family: 'Arial', sans-serif;
  font-style: italic;
  font-size: 40px;
  margin: 0 2px;
}
.closing-cta-price-tax {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
}

.closing-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 90%;
  max-width: 365px;
  height: 80px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(to right, #f6a253, #ffa366);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(246, 162, 83, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.closing-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(246, 162, 83, 0.45);
}
.closing-cta-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(246, 162, 83, 0.35);
}

@media (min-width: 768px) {
.site-header {
  width: 100%;
  max-width: 100%;
  left: 0;
  transform: none;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center; /* 全体を中央寄せにする */
  gap: 60px;
  padding: 0 32px;
  border-bottom: 1px solid #eef1f5;
}
  .header-line { display: none; } /* モバイル用の下線装飾→border-bottomに置き換え */

  .header-logo,
  .header-phone,
  .header-menu-btn {
    position: static;
  }
  .header-logo { width: 130px; height: auto; }

  .header-nav-desktop,
  .header-cta-desktop {
    display: none; /* 1024px未満ではまだ非表示 */
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .site-header {
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: none;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid #eef1f5;
  }
  .header-line { display: none; } /* モバイル用の下線装飾→border-bottomに置き換え */

  .header-logo,
  .header-phone,
  .header-menu-btn {
    position: static;
  }
  .header-logo { width: 130px; height: auto; }

  .header-nav-desktop,
  .header-cta-desktop {
    display: none; /* 1024px未満ではまだ非表示 */
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .site-header { padding: 0 48px; }

  .header-nav-desktop { display: block; }
  .header-nav-desktop ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .header-nav-desktop a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #13294b;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-nav-desktop a:hover { color: #d9b55a; }

  .header-cta-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border-radius: 24px;
    background: linear-gradient(to right, #f6a253, #ffa366);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .header-cta-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(246, 162, 83, 0.4);
  }

  .header-phone,
  .header-menu-btn {
    display: none; /* デスクトップではナビ+CTAに置き換えるため非表示 */
  }
}

/* ---- デスクトップ用見出し(モバイルでは非表示) ---- */
.fv-heading-desktop { display: none; }

@media (min-width: 768px) {
  .site-header {
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: none;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 0 32px;
    border-bottom: 1px solid #eef1f5;
  }
  .header-line { display: none; }

  .header-logo,
  .header-phone,
  .header-menu-btn {
    position: static;
  }
  .header-logo { width: 130px; height: auto; }

  .header-nav-desktop,
  .header-cta-desktop {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* トップバッジ：見出しの上に水平配置(デスクトップ) */
  .fv-top-badge {
    position: absolute;
    left: 126px;
    top: calc(38% - 72px);
    transform: none;
  }
}
@media (min-width: 1024px) {
  .site-header { padding: 0 48px; }

  .header-nav-desktop { display: block; }
  .header-nav-desktop ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .header-nav-desktop a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #13294b;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-nav-desktop a:hover { color: #d9b55a; }

  .header-cta-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border-radius: 24px;
    background: linear-gradient(to right, #f6a253, #ffa366);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .header-cta-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(246, 162, 83, 0.4);
  }

  .header-phone,
  .header-menu-btn {
    display: none; /* デスクトップではナビ+CTAに置き換えるため非表示 */
  }

  .fv-top-badge {
    left: 120px;
    top: 11%;
    padding: 12px 36px;
    transform: none;
    animation:
      fvTopBadgePopFlat 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
      fvTopBadgePulseFlat 2s ease-in-out 0.8s infinite;
  }

  .fv-top-badge span {
    font-size: 42px;
  }

  @keyframes fvTopBadgePulseFlat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
  }

  @keyframes fvTopBadgePopFlat {
    0% {
      opacity: 0;
      transform: scale(0.3);
    }
    60% {
      opacity: 1;
      transform: scale(1.15);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
}
/* =================================================
   FVセクション(デスクトップ：写真を背景に、テキスト類を重ねる)
   ================================================= */
@media (min-width: 768px) {
  .fv {
    position: relative;
    left: auto;
    top: 0;
    width: 100%;
    height: 950px;
    padding: 0;
    overflow: hidden;
  }

  .fv-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 960px;
    border-radius: 0;
    overflow: hidden;
  }
  .fv-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  /* 白グラデーションの範囲を広げ、カードが写真(顔)に重ならないようにする */
  .fv-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 960px;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 32%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0) 75%);
    z-index: 2;
  }

  .fv-heading-mobile { display: none; }
  .fv-heading-desktop {
    display: block;
    position: absolute;
    left: 48px;
    top: 56px;
    transform: none;
    z-index: 3;
    max-width: 500px;
  }

  /* タブレット用にフォントサイズを縮小(3行改行を防ぐ) */
  .fv-heading-desktop-line1 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 800;
    font-size: 44px;
    line-height: 1.3;
    color: #13294b;
    margin: 0 0 16px 0;
  }
  .fv-heading-desktop-line2 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.4;
    color: #13294b;
    margin: 0 0 16px 0;
    white-space: nowrap;
  }
  .fv-heading-desktop-gold {
    background: linear-gradient(to bottom, #cdba87 0%, #c7a954 50%, #a67c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* カード：タブレットでは2列×2行にして横幅を抑え、写真との重なりを回避 */
  .fv-cards {
    position: absolute;
    left: 48px;
    top: 270px;
    width: 340px;
    bottom: auto;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  .fv-card {
    position: relative;
    width: calc(50% - 7px);
    height: 108px;
    flex: none;
  }
  .fv-card--1 p, .fv-card--3 p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
  .fv-card2-unit { font-size: 13px; }
  .fv-card2-num { font-size: 24px; }
  .fv-card2-title { font-size: 14px; margin-top: 4px; }

  /* 初回限定価格ブロック：カードとの間隔を広げ、回転バッジの重なりを解消 */
  .fv-price-block {
    position: absolute;
    left: 48px;
    top: 580px;
    width: 340px;
    z-index: 3;
  }

  .fv-cta {
    position: absolute;
    top: 770px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 90%;
    max-width: 420px;
    height: 84px;
  }
  .fv-cta .fv-cta-text {
    font-size: 18px;
  }
  .fv-cta .fv-cta-icon-calendar {
    width: 30px;
    height: 28px;
  }
  .fv-cta:hover {
    transform: translateX(-50%) translateY(-3px);
  }
  .fv-cta:active {
    transform: translateX(-50%) translateY(0px);
  }
}

/* タブレット幅のみ：固定ヘッダー(88px)にFV見出しが隠れないよう縦位置を調整 */
@media (min-width: 768px) and (max-width: 1023px) {
  .fv-heading-desktop {
    top: 110px;
  }

  .fv-cards {
    top: 353px;
  }

  .fv-price-block {
    top: 620px;
  }

  .fv-cta {
    top: 790px;
  }
}

@media (min-width: 1024px) {
  .fv {
    height: 1420px;
    overflow: hidden;
  }

  .fv-heading-desktop {
    left: 105px;
    top: 258px;
    transform: none;
    max-width: 900px;
  }
  .fv-heading-desktop-line1 { font-size: 79px; }
  .fv-heading-desktop-line2 { font-size: 43px; }

  /* デスクトップでは1列4枚に戻す */
  .fv-cards {
    left: 50%;
    top: 850px;
    transform: translateX(-50%);
    width: auto;
    flex-wrap: nowrap;
    gap: 24px;
  }
  .fv-card {
    width: 220px;
    height: 150px;
  }
  .fv-card--2 {
    flex-direction: column;
  }
  .fv-card--1 p {
    font-size: 24px;
    line-height: 1.5;
    white-space: normal;
    width: 85%;
  }
  .fv-card--3 p,
  .fv-card--4 p {
    font-size: 23px;
    line-height: 1.5;
    white-space: normal;
    width: 85%;
  }
  .fv-card2-unit {
    font-size: 20px;
  }
  .fv-card2-num {
    font-size: 42px;
  }
  .fv-card2-title {
    font-size: 24px;
    margin-top: 10px;
  }

  .fv-price-block {
    left: 154px;
    top: 596px;
    width: 497px;
  }
  .fv-price-label-badge span { font-size: 22px; }
  .fv-price-badge span { font-size: 16px; }
  .fv-price-original-num { font-size: 22px; }
  .fv-price-num { font-size: 48px; }
  .fv-price-yen { font-size: 24px; }
  .fv-price-tax { font-size: 11px; }

  .fv-cta {
    top: 1134px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    height: 96px;
  }
  .fv-cta:hover {
    transform: translateX(-50%) translateY(-3px);
  }
  .fv-cta:active {
    transform: translateX(-50%) translateY(0px);
  }
}


/* =================================================
   お悩みセクション(タブレット・デスクトップ)
   ================================================= */
@media (min-width: 768px) {
  .mobile-page {
    --worries-height: 610px;
    --fv-offset: 1400px; /* デスクトップ版.fvの高さ拡張ぶんを吸収 */
  }

  .worries {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: var(--worries-height, 610px);
  }

  .worries-heading-line1 { font-size: 34px; }
  .worries-heading-line2 { font-size: 44px; }

  .worries-item {
    width: calc(50% - 20px);
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    background: #f8fafc;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
  }
  .worries-item--1 { left: 0;               top: 130px; }
  .worries-item--2 { left: calc(50% + 20px); top: 130px; }
  .worries-item--3 { left: 0;               top: 220px; }
  .worries-item--4 { left: calc(50% + 20px); top: 220px; }
  .worries-item--5 { left: 0;               top: 310px; }
  .worries-item--6 { left: calc(50% + 20px); top: 310px; }

  .worries-item .worries-icon {
    position: static;
    width: 24px;
    height: 24px;
    flex: none;
  }
  .worries-item .worries-text {
    position: static;
    font-size: 17px;
    white-space: normal;
  }

  .worries-divider {
    display: none;
  }

  .worries-lead {
    left: 50%;
    top: 402px;
    transform: translateX(-50%);
  }
  .worries-highlight-wrap {
    left: 50%;
    top: 438px;
    transform: translateX(-50%);
  }
  .worries-lead--2 {
    left: 50%;
    top: 494px;
    transform: translateX(-50%);
  }
}

/* タブレット幅のみ：FV終了直後の余白を詰める */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-page {
    --fv-offset: 950px;
  }
}

/* タブレット幅のみ：「もしかすると〜」「いびき」「が原因〜」を1行に配置(デスクトップと同じ考え方) */
@media (min-width: 768px) and (max-width: 1023px) {

  .worries-lead,
  .worries-highlight-wrap,
  .worries-lead--2 {
    top: 430px;
    transform: none;
    white-space: nowrap;
  }

  .worries-lead,
  .worries-lead--2 {
    font-size: 19px;
  }

  .worries-lead {
    left: 50%;
    transform: translateX(-305px);
  }

  .worries-highlight-wrap {
    left: 50%;
    top: 415px;
    transform: translateX(-95px);
    font-size: 34px;
  }

  .worries-highlight-ga {
    font-size: 19px;
  }

  .worries-lead--2 {
    left: 50%;
    transform: translateX(75px);
  }

  .worries-highlight-mark {
    left: 21px;
    top: 34px;
    width: 126px;
  }

  /* スクロールアニメーション(.is-visible)付与後も横位置が保たれるよう、
     モバイル基本ルールの .worries-lead.is-visible 等(詳細度0,2,0)と
     同じ詳細度で、より後方に上書き指定する(!important不要) */
  .worries-lead.is-visible {
    transform: translateX(-305px);
  }
  .worries-highlight-wrap.is-visible {
    transform: translateX(-95px);
  }
  .worries-lead--2.is-visible {
    transform: translateX(75px);
  }
}

@media (min-width: 1024px) {
  .mobile-page {
    --worries-height: 540px;
    --fv-offset: 1322px; /* デスクトップ版.fvの高さ拡張ぶんを吸収 */
    --nlabout-offset: 3619px; /* .nl-aboutのデスクトップ版height(560px)に合わせて調整 */
  }

  .worries {
    max-width: 1100px;
  }

  .worries-heading-line1 { font-size: 36px; }
  .worries-heading-line2 { font-size: 48px; }

  .worries-item {
    width: calc(33.333% - 20px);
    height: 74px;
  }
  .worries-item--1 { left: 0;                    top: 140px; }
  .worries-item--2 { left: calc(33.333% + 10px); top: 140px; }
  .worries-item--3 { left: calc(66.666% + 20px); top: 140px; }
  .worries-item--4 { left: 0;                    top: 234px; }
  .worries-item--5 { left: calc(33.333% + 10px); top: 234px; }
  .worries-item--6 { left: calc(66.666% + 20px); top: 234px; }

  /* 3つのテキストを横一列に配置(同じtopに揃え、実際の文字幅から算出したleftで左から右に並べる) */
  .worries-lead,
  .worries-highlight-wrap,
  .worries-lead--2 {
    transform: none;
  }
  .worries-lead,
  .worries-lead--2 {
    top: 378px;
    font-size: 28px;
  }
  .worries-lead { left: 98px; }
  .worries-highlight-wrap {
    left: 408px;
    top: 346px;
    font-size: 60px;
  }
  .worries-highlight-mark {
    left: 37px; /* モバイル基準値21px(font-size:34px時)を、60/34倍で拡大 */
    top: 61px; /* 文字位置はそのまま、下線だけをさらに下に調整(51px+10px) */
    width: 223px; /* 「いびき」のfont-sizeが60pxになったため、下線幅も同比率で拡大(前回42px時156px × 60/42 ≈ 223px) */
  }
  .worries-highlight-ga { font-size: 28px; }
  .worries-lead--2 { left: 694px; }
}

/* タブレット幅のみ：SAS説明文が中央配置の背景写真より左にずれるのを修正 */
@media (min-width: 768px) and (max-width: 1023px) {

  .sas-text {
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
  }

  .sas-text--1 {
    left: 50%;
  }

  .sas-text--2 {
    left: 50%;
  }
}

@media (min-width: 1024px) {
  .sas {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 720px;
    overflow: hidden;
  }

  /* 写真：セクション全体を覆う背景(.fv-photoと同じ考え方) */
  .sas-photo {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 1;
  }
  .sas-photo img {
    object-position: center bottom;
    height: 143%;
  }

  /* タイトル(ルビー＋見出し)：左上に配置 */
  .sas-ruby,
  .sas-title {
    left: 91px;
    transform: none;
    text-align: left;
    z-index: 3;
  }
  .sas-ruby {
    top: 56px;
    font-size: 36px;
  }
  .sas-title {
    top: 91px;
    font-size: 72px;
  }
  .sas-title--sas {
    top: 187px;
    left: 313px;
    font-size: 42px;
  }

  /* 説明文：タイトルの下、1ブロックに見えるよう縦に連続配置(HTML構造は維持) */
  .sas-text {
    position: absolute;
    left: 91px;
    font-size: 23px;
    line-height: 34px;
    width: 700px;
  }
  .sas-text--1 {
    top: 258px;
  }
  .sas-text--2 {
    top: 396px;
    left: 113px;
  }

  .sas-divider {
    display: none;
  }

  /* 警告ブロック：写真の上に重ねて配置 */
  .sas-warning {
    left: 50%;
    transform: translateX(-50%) !important;
    top: 529px;
    width: 970px;
    z-index: 10;
  }
  .sas-warning-title {
    font-size: 32px;
    white-space: nowrap;
  }
  .sas-warning-title br {
    display: none;
  }
  .sas-warning-item {
    font-size: 23px;
  }
  .sas-warning-list {
    gap: 23px;
  }
}

/* タブレット幅のみ：モバイルの縦構成を維持したまま中央に整列 */
@media (min-width: 768px) and (max-width: 1023px) {

  .cut-free {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: 700px;
  }

  .cut-free-text--1 {
    left: 50%;
    transform: translateX(-50%);
  }

  .cut-free-text--gradient {
    left: 50%;
    transform: translateX(-50%);
  }

  .cut-free-text--2 {
    left: 50%;
    transform: translateX(-50%);
  }

  .cut-free-photo {
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    max-width: 390px;
  }

  .cut-free-lead {
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    max-width: calc(100% - 40px);
    text-align: center;
  }

  .cut-free-wave {
    width: 390px;
    max-width: 390px;
  }
}

@media (min-width: 1024px) {
  .cut-free {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
  }

  /* 見出し：1行に並べる */
  .cut-free-text {
    left: 64px;
    transform: none;
    text-align: left;
    display: inline-block;
    white-space: nowrap;
  }
  .cut-free-text--1 {
    top: 63px;
    font-size: 49px;
  }
  .cut-free-text--gradient {
    top: 132px;
    left: 66px;
    font-size: 75px;
  }
  .cut-free-text--2 {
    top: 156px;
    left: 378px;
    font-size: 49px;
  }

  /* 説明文：見出しの下 */
  .cut-free-lead {
    left: 81px;
    transform: none;
    text-align: left;
    top: 261px;
    font-size: 32px;
    line-height: 45px;
    white-space: normal;
    width: 670px;
  }

  /* 写真：右側、中央寄りに配置しバランスを整える */
  .cut-free-photo {
    left: auto;
    right: 150px;
    transform: none;
    top: 40px;
    width: 380px;
    max-width: 380px;
    height: 340px;
    z-index: 1;
    border-radius: 16px;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 30px rgba(19, 41, 75, 0.18);
    overflow: hidden;
  }
  .cut-free-photo img {
    width: 172%;
    height: 135%;
    object-fit: cover;
    border-radius: 12px;
  }

  /* 波型装飾：写真の下 */
  .cut-free-wave {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(180deg);
    top: 380px;
    width: 100%;
    max-width: none;
  display: none;
}
}

@media (min-width: 1024px) {
  .nl-about {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 1120px;
    overflow: visible;
  }
}

/* タブレット幅のみ：無理に2カラムにせず、タイトル→本文→機械画像の縦構成に整理 */
@media (min-width: 768px) and (max-width: 1023px) {

  .nl-about {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: 680px;
    overflow: visible;
  }

  .nl-badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .nl-title {
    left: 50%;
    transform: translateX(-50%);
  }

  .nl-divider {
    left: 50%;
    transform: translateX(-50%);
  }

  .nl-body {
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    max-width: calc(100% - 60px);
    text-align: left;
  }

  .nl-body--1 {
    left: 50%;
  }

  .nl-body--2 {
    left: 50%;
  }

  .nl-body--3 {
    left: 50%;
  }

  .nl-note {
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    max-width: calc(100% - 60px);
  }

  .nl-machine-photo {
    left: 50%;
    top: 220px;
    transform: translateX(35px);
    width: 115px;
    height: 270px;
    overflow: visible;
  }

  .nl-machine-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  /* 背景装飾：中央基準に揃え、コンテナ幅が変わっても偏りが出ないようにする */
  .nl-blob--1 {
    left: 50%;
    transform: translateX(7px);
  }
  .nl-blob--2 {
    left: 50%;
    transform: translateX(125px);
  }
  .nl-blob--3 {
    left: 50%;
    transform: translateX(-125px);
  }

  .nl-wave {
    left: 50%;
    width: 390px;
    max-width: none;
  }
  .nl-wave--1,
  .nl-wave--2 {
    transform: translateX(-50%);
  }
  .nl-wave--3,
  .nl-wave--4 {
    transform: translateX(-50%) rotate(180deg);
  }
}

@media (min-width: 1024px) {
  /* バッジ：左上 */
  .nl-badge {
    left: 81px;
    top: 56px;
    width: 315px;
    height: 51px;
  }
  .nl-badge span {
    font-size: 27px;
  }

  /* タイトル：バッジの下、左寄せ(.nl-about内のみに限定。.nl-titleは.nl-featuresでも共通利用されているため) */
  .nl-about .nl-title {
    left: 81px;
    transform: none;
    top: 118px;
    font-size: 56px;
  }

  /* 区切り線：タイトルの下(.nl-about内のみに限定。.nl-dividerは他セクションでも共通利用されているため) */
  .nl-about .nl-divider {
    left: 81px;
    transform: none;
    top: 175px;
    display: none;
  }

  /* 本文テキスト：3ブロックが縦に隙間なく連続し、1つの文章に見えるよう配置 */
  .nl-body {
    position: absolute;
    left: 81px;
    font-size: 29px;
    line-height: 50px;
    white-space: normal;
    width: 650px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 600;
    color: #13294b;
  }
  .nl-hl {
    font-size: 32px;
  }
  .nl-hl--big {
    font-size: 37px;
  }
  .nl-body br {
    display: none;
  }
  .nl-body--1 {
    top: 230px; /* 幅650px内に1行(50px)で収まる想定 */
  }
  .nl-body--2 {
    top: 280px; /* nl-body--1が1行(50px)のため、230+50=280 */
    left: 81px;
  }
  .nl-body--3 {
    top: 330px; /* nl-body--2も1行(50px)のため、280+50=330 */
    left: 81px;
  }
  .nl-note {
    left: 81px;
    top: 392px; /* nl-body--3も1行(50px)のため330+50=380に余白12pxを加算 */
  }

  /* 機器写真：右側に配置 */
  .nl-machine-photo {
    left: auto;
    right: 164px;
    top: 40px;
    width: 304px;
    height: 920px;
    overflow: visible;
  }
  .nl-machine-photo img {
    object-fit: contain;
    object-position: center center;
  }

  /* 背景装飾：画面幅いっぱいに広がるよう調整 */
  .nl-blob--1 {
    left: 5%;
    top: 30px;
  }
  .nl-blob--2 {
    left: 30%;
    top: 50px;
  }
  .nl-blob--3 {
    left: -5%;
    top: 250px;
  }

  .nl-wave--1 {
    display: none;
  }

  .nl-wave--2,
  .nl-wave--3,
  .nl-wave--4 {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nl-about .nl-title--features {
    position: absolute;
    top: 460px;
    left: 81px;
    width: 650px;
    text-align: left;
    transform: none;
  }

  .nl-about .nl-divider--features {
    position: absolute;
    top: 512px;
    left: 81px;
    transform: none;
  }

  .nl-about .nl-card--1,
  .nl-about .nl-card--2,
  .nl-about .nl-card--3 {
    position: absolute;
    top: 565px;
    width: 270px;
    height: 160px;
    transform: none;
  }
  .nl-about .nl-card--1 { left: 81px; }
  .nl-about .nl-card--2 { left: 371px; }
  .nl-about .nl-card--3 { left: 661px; }
}

/* タブレット幅のみ：横幅を390px基準に統一(縦構成は維持) */
@media (min-width: 768px) and (max-width: 1023px) {

  .nl-features {
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    max-width: 390px;
  }

  .mech {
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    max-width: 390px;
  }

  /* カードが390px幅の中央に来るよう、transformではなくleftのみ調整
     (.mech-card は .is-visible のtranslateYアニメーションとtransformを共有しているため、
     transform:translateX()を追加するとアニメーション後に位置が戻ってしまう) */
  .mech-card {
    left: 30px;
  }
}

@media (min-width: 1024px) {
  .nl-features {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 50px;
    background: #ffffff;
  }

  .nl-features .nl-title {
    top: 48px;
  }

  /* .nl-card--3だけ個別調整されていたtitle/captionの位置を、他と揃える */
  .nl-card--3 .nl-card-title {
    top: 63px;
  }
  .nl-card--3 .nl-card-caption {
    top: 100px;
    white-space: normal;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .mech {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 620px;
  }

  /* タイトル：1行に */
  .mech-title {
    top: 24px;
    font-size: 47px;
    white-space: nowrap;
  }
  .mech-title span {
    display: inline;
  }

  /* サブタイトル */
  .mech-sub {
    top: 84px;
    font-size: 23px;
  }
  .mech-sub span {
    display: inline;
  }
  /* 「睡眠中の気道の狭まりです」の実際の表示位置に合わせて配置(23px×12文字≈276px、前半11文字+空白の幅≈259pxを踏まえた概算) */
  .mech-highlight {
    left: 50%;
    transform: translateX(-9px);
    top: 106px;
    width: 276px;
  }

  /* カード3枚を横並びに */
  .mech-card {
    left: 50%;
    width: 300px;
    height: 280px;
    top: 154px;
  }
  .mech .mech-card--1 {
    transform: translateX(calc(-50% - 370px)) !important;
  }
  .mech .mech-card--2 {
    transform: translateX(-50%) !important;
  }
  .mech .mech-card--3 {
    transform: translateX(calc(-50% + 370px)) !important;
  }

  /* 矢印：カードの間、横向きに */
  .mech-arrow {
    top: 282px;
  }
  .mech .mech-arrow--1 {
    transform: translateX(calc(-50% - 185px)) rotate(-90deg) !important;
  }
  .mech .mech-arrow--2 {
    transform: translateX(calc(-50% + 185px)) rotate(-90deg) !important;
  }

  /* フッター・最終テキスト */
  .mech-footer {
    left: 50%;
    transform: translateX(-50%);
    top: 484px;
  }
  .mech-footer-text {
    font-size: 26px;
  }
  .mech-final {
    top: 534px;
    font-size: 39px;
  }

  .mech-badge {
    font-size: 23px;
  }
  .mech-callout-text {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .step {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding-top: 40px;
  }

  .step-card {
    position: relative;
    width: 320px;
    max-width: 320px;
    height: 300px;
    margin: 0;
    flex: none;
    padding: 30px 24px;
  }

  .step-bar {
    left: 21px;
    top: 24px;
    transform: none;
    height: 250px;
  }

  .step-label {
    left: 46px;
    top: 24px;
  }

  .step-num {
    left: 46px;
    top: 44px;
  }

  .step-title {
    left: 46px;
    top: 100px;
    transform: none;
    font-size: 28px;
    text-align: left;
  }
  /* モバイル用の個別transform(:nth-child)は詳細度が高く上書きされないため、明示的に打ち消す */
  .step-card:nth-child(1) .step-title,
  .step-card:nth-child(2) .step-title,
  .step-card:nth-child(3) .step-title {
    transform: none;
  }

  .step-subtitle {
    left: 46px;
    top: 145px;
    transform: none;
    font-size: 20px;
    text-align: left;
  }

  .step-desc {
    left: 46px;
    top: 185px;
    transform: none;
    font-size: 17px;
    line-height: 26px;
    text-align: left;
    white-space: normal;
    width: 240px;
  }

  .step-watermark {
    width: 90px;
    height: auto;
    right: 20px;
    left: auto;
  }
}

@media (min-width: 1024px) {
  .doctor-treatment {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
  }

  .doctor-treatment-photo {
    width: 420px;
    max-width: 420px;
    height: 340px;
    margin: 0;
    flex: none;
  }

  .doctor-treatment-overlay {
    width: 380px;
    max-width: 380px;
    margin: 0;
    padding: 32px;
  }

  .doctor-treatment-badge span {
    font-size: 24px;
  }

  .doctor-treatment-text {
    font-size: 16px;
    line-height: 1.9;
  }
  .doctor-treatment-text strong {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
  .compare {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 820px;
  }

  .compare-kicker {
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
  }
  .compare-title {
    top: 65px;
    font-size: 40px;
  }
  .compare-divider {
    top: 130px;
  }

  /* 強調カード：上部中央に単独配置、少し大きめに */
  .compare-card--highlight {
    left: 50%;
    top: 180px;
    width: 420px;
    height: 250px;
  }
  .compare-card-title--nightlase {
    font-size: 38px;
  }

  /* VS */
  .compare-vs {
    top: 450px;
    height: 60px;
  }

  /* 下段3枚：横並び(is-visible付与後もtransformが保たれるよう!important) */
  .compare-card--cpap,
  .compare-card--mouthpiece,
  .compare-card--surgery {
    top: 530px;
    width: 320px;
    height: 200px;
  }
  .compare-card--cpap {
    left: 50%;
    transform: translateX(calc(-50% - 340px)) !important;
  }
  .compare-card--mouthpiece {
    left: 50%;
    transform: translateX(-50%) !important;
  }
  .compare-card--surgery {
    left: 50%;
    transform: translateX(calc(-50% + 340px)) !important;
  }
}

@media (min-width: 1024px) {
  .compare-card--highlight .compare-recommend-badge {
    left: 30px;
    top: 0;
    width: 220px;
    height: 40px;
    font-size: 18px;
  }

  .compare-card--highlight .compare-photo--nightlase {
    left: 36px;
    top: 30px;
    width: 100px;
    height: 190px;
  }

  .compare-card--highlight .compare-card-title--nightlase {
    left: 160px;
    top: 40px;
    font-size: 40px;
  }

  .compare-card--highlight .compare-card-en {
    left: 165px;
    top: 90px;
    font-size: 20px;
  }

  .compare-card--highlight .compare-tag {
    left: 160px;
    width: 210px;
    height: 46px;
  }
  .compare-card--highlight .compare-tag--1 {
    top: 130px;
  }
  .compare-card--highlight .compare-tag--2 {
    top: 182px;
  }
}

@media (min-width: 1024px) {
  .compare-card--highlight .compare-photo--nightlase img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  /* タイトル：カード上部中央 */
  .compare-card--cpap .compare-card-title,
  .compare-card--mouthpiece .compare-card-title,
  .compare-card--surgery .compare-card-title {
    top: 20px;
    font-size: 22px;
  }

  /* 写真：左側 */
  .compare-card--cpap .compare-photo,
  .compare-card--mouthpiece .compare-photo,
  .compare-card--surgery .compare-photo {
    left: 24px;
    top: 80px;
    width: 110px;
    height: 90px;
  }

  /* タグ：右側、写真と縦の中心を揃える */
  .compare-card--cpap .compare-tag,
  .compare-card--mouthpiece .compare-tag,
  .compare-card--surgery .compare-tag {
    left: 154px;
    width: 142px;
    height: 38px;
  }
  .compare-card--cpap .compare-tag span,
  .compare-card--mouthpiece .compare-tag span,
  .compare-card--surgery .compare-tag span {
    font-size: 15px;
  }
  .compare-card--cpap .compare-tag--1,
  .compare-card--mouthpiece .compare-tag--1,
  .compare-card--surgery .compare-tag--1 {
    top: 82px;
  }
  .compare-card--cpap .compare-tag--2,
  .compare-card--mouthpiece .compare-tag--2,
  .compare-card--surgery .compare-tag--2 {
    top: 130px;
  }
}

/* タブレット幅のみ：症例写真カードを中央揃えに */
@media (min-width: 768px) and (max-width: 1023px) {
  .case-card {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .mobile-page {
    --case-height: 560px;
  }

  .case {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
  }

  .case-title {
    top: 70px;
    font-size: 42px;
  }
  .case-divider {
    top: 130px;
  }

  .case-card {
    left: 50%;
    transform: translateX(-50%);
    top: 190px;
    width: 800px;
    height: 340px;
  }
  .case-photo {
    left: 20px;
    top: 20px;
    width: 760px;
    height: 300px;
  }

  .case-label {
    width: 90px;
    height: 30px;
    font-size: 16px;
    top: 20px;
  }
  .case-label--before {
    left: 20px;
  }
  .case-label--after {
    left: auto;
    right: 20px;
  }
}

@media (min-width: 1024px) {
  .price {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    padding-bottom: 80px;
  }

  .price-kicker {
    font-size: 15px;
  }
  .price-title {
    font-size: 42px;
    margin: 0 0 40px 0;
  }
  .price-star {
    font-size: 20px;
  }

  .price-card {
    width: 700px;
    max-width: 700px;
    padding: 40px 48px 32px;
    border-radius: 20px;
  }

  .price-card-head {
    font-size: 22px;
    padding: 16px 0;
  }

  .price-deadline-badge {
    width: 110px;
    min-height: 84px;
    font-size: 17px;
    top: -30px;
    right: -20px;
  }

  .price-row {
    padding: 26px 0;
  }
  .price-row--main {
    padding-top: 20px;
    padding-right: 40px;
  }

  .price-row-name {
    font-size: 26px;
  }
  .price-row-sub {
    font-size: 17px;
  }

  .price-now {
    font-size: 1.3em;
  }
  .price-yen {
    font-size: 18px;
  }
  .price-num {
    font-size: 34px;
  }
  .price-tax {
    font-size: 12px;
  }
  .price-original {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .doctor-wrap {
    max-width: 402px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 1024px) {
  .doctor-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
  }

  .doctor {
    padding: 48px 0 80px;
  }

  .doctor-title {
    width: 700px;
    max-width: calc(100vw - 80px);
    font-size: 40px;
  }

  .doctor-title-line {
    width: 700px;
    max-width: calc(100vw - 80px);
    gap: 12px;
    margin-top: 14px;
  }

  .doctor-card {
    width: 700px;
    max-width: calc(100vw - 80px);
    padding: 42px 48px 44px;
    border-radius: 24px;
    gap: 28px;
  }

  .doctor-profile {
    gap: 36px;
  }

  .doctor-photo {
    width: 240px;
    height: 232px;
  }

  .doctor-name-block {
    gap: 8px;
  }

  .doctor-clinic-name {
    font-size: 15px;
  }

  .doctor-name {
    font-size: 42px;
  }

  .doctor-catch {
    width: calc(100% - 40px);
    font-size: 17px;
    line-height: 1.7;
    padding: 12px 18px;
  }

  .doctor-desc {
    gap: 16px;
  }

  .doctor-desc-text {
    width: 100%;
    font-size: 16px;
    line-height: 1.9;
  }

  .doctor-career-box,
  .doctor-qualification-box {
    width: 100%;
    max-width: 604px;
    padding: 24px 28px;
  }

  .doctor-section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .doctor-timeline {
    grid-template-columns: 70px 24px 1fr;
  }

  .doctor-timeline::before {
    left: calc(70px + 12px);
  }

  .doctor-qualification-box .doctor-section-heading {
    margin-bottom: 8px;
  }

  .doctor-qualification-text {
    width: 100%;
    font-size: 14px;
    line-height: 1.8;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .clinic-wrap {
    max-width: 402px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 1024px) {

  .clinic-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    padding: 70px 0 90px;
  }

  .clinic-title-block {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 0 auto;
  }

  .clinic-title-en {
    font-size: 38px;
  }

  .clinic-title-ja {
    font-size: 18px;
    margin-top: 8px;
  }

  .clinic-title-line-under {
    width: 90px;
    margin-top: 12px;
  }

  .clinic-title-catch {
    font-size: 17px;
    line-height: 1.8;
    margin-top: 22px;
  }

  .clinic-title-divider {
    gap: 14px;
    margin-top: 18px;
  }

  .clinic-divider-line {
    width: 130px;
  }

  .clinic-divider-star {
    font-size: 18px;
  }

  .clinic-gallery {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 36px auto 0;
  }

  .clinic-photo-row {
    display: flex;
    gap: 20px;
  }

  .clinic-photo {
    width: calc(50% - 10px);
    height: 230px;
    border-radius: 14px;
  }

  .clinic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .clinic-caption-row {
    display: flex;
    gap: 20px;
    padding: 12px 0 30px;
  }

  .clinic-caption {
    width: calc(50% - 10px);
    padding: 0 10px;
  }

  .clinic-tag {
    font-size: 15px;
    padding: 6px 20px;
    margin-bottom: 10px;
  }

  .clinic-caption p {
    font-size: 15px;
    line-height: 1.7;
  }

  .clinic-features {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 36px auto 0;
    padding: 26px 0;
    border-radius: 16px;
  }

  .clinic-feature {
    padding: 0 14px;
  }

  .clinic-feature-icon {
    width: 48px;
    height: 48px;
  }

  .clinic-feature-title {
    font-size: 15px;
    margin: 12px 0 7px;
  }

  .clinic-feature-desc {
    font-size: 12px;
    line-height: 1.6;
  }

  .clinic-feature-divider {
    margin: 10px 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .access-wrap {
    max-width: 402px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .access-cta .access-cta-main {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {

  .access-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    padding: 70px 0 90px;
  }

  .access-title-block {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 0 auto;
  }

  .access-title-en {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .access-title-row {
    gap: 18px;
  }

  .access-title-line {
    width: 100px;
  }

  .access-title-ja {
    font-size: 42px;
  }

  .access-title-clinic {
    font-size: 18px;
    margin-top: 12px;
  }

  .access-map {
    width: 700px;
    max-width: calc(100vw - 80px);
    aspect-ratio: 16 / 7;
    margin: 32px auto 0;
    border-radius: 16px;
    overflow: hidden;
  }

  .access-info-card {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 28px auto 0;
    padding: 22px 38px;
    border-radius: 16px;
  }

  .access-info-row {
    gap: 18px;
    padding: 18px 0;
  }

  .access-info-icon {
    width: 34px;
    height: 34px;
    margin-top: 2px;
  }

  .access-info-label {
    width: 90px;
    font-size: 15px;
    padding-top: 5px;
  }

  .access-info-text {
    font-size: 15px;
    line-height: 1.8;
  }

  .access-cta {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 36px auto 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
  }

  .access-cta .access-cta-main {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: calc(50% - 10px);
    max-width: none;
    height: 82px;
    margin: 0;
  }

  .access-cta .access-cta-line {
    width: calc(50% - 10px);
    max-width: none;
    height: 82px;
    margin: 0;
  }

  .access-cta .access-cta-main:hover {
    transform: translateY(-3px);
  }

  .access-cta .access-cta-main:active {
    transform: translateY(0);
  }

  .access-cta-main .fv-cta-text {
    font-size: 17px;
  }

  .access-cta-line-text {
    font-size: 17px;
  }

  .access-cta-line-icon {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .faq-wrap {
    max-width: 402px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 1024px) {

  .faq-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    padding: 70px 0 100px;
  }

  .faq-title-block {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 0 auto 36px;
  }

  .faq-title {
    font-size: 42px;
  }

  .faq-title-divider {
    gap: 14px;
    margin-top: 16px;
  }

  .faq-divider-line {
    width: 130px;
  }

  .faq-divider-star {
    font-size: 18px;
  }

  .faq-list {
    width: 700px;
    max-width: calc(100vw - 80px);
    margin: 0 auto;
    gap: 18px;
  }

  .faq-item {
    border-radius: 16px;
  }

  .faq-trigger {
    gap: 18px;
    padding: 24px 30px;
  }

  .faq-q {
    font-size: 30px;
  }

  .faq-question {
    font-size: 17px;
    line-height: 1.7;
  }

  .faq-icon {
    font-size: 24px;
  }

  .faq-answer {
    padding: 0 30px;
  }

  .faq-answer p {
    padding-top: 22px;
    padding-bottom: 24px;
    padding-left: 48px;
    font-size: 15px;
    line-height: 1.9;
  }

  .faq-a {
    font-size: 20px;
    margin-right: 8px;
  }
}
