/* Header: ロゴ左・CTA右配置 */
#main .fv .header {
  background: #fff;
  padding: min(20px, 2.4vw) 0;
}
#main .fv .header .logo__img {
  width: min(156px, 20vw);
}

#main .fv .header .header_cta .logo__cta {
  width: min(230px, 27.6666666667vw);
  aspect-ratio: 800 / 240;
  height: auto;
}

/* ヒーロー全体をヘッダー高さ分だけ押し下げ（初期描画から反映） */
#main .fv {
  padding-top: calc(min(230px, 27.6666666667vw) * 0.3 + min(20px, 2.4vw) * 2);
}

.fv .header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.fv .header .logo__img,
.fv .header .header_cta .logo__cta {
  display: block;
}

.fv .header .logo__img {
  margin-left: 30px;
}

.fv .header .header_cta {
  margin-right: 30px;
}

.fv .header .header_cta { 
  margin-left: auto; 
}

.fv_cta .fv_cta_text {
  width: 60%;
  margin: 2rem auto;
  margin-bottom: 1rem;
}

.fv_cta .fv_cta_btn {
  width: 80%;
  margin:0 auto;
  margin-bottom: 1rem;
}

.fv_cta_btn {
  width: 300px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fv_cta_btn::before {
  content: "";
  width: 30px;
  height: 100%;
  background-color: #fff;
  animation: shine 3s ease-in-out infinite;
  position: absolute;
  top: -180px;
  left: 0;
  opacity: 0;
  transform: rotate(45deg);
}

@keyframes shine {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/* ====== NAV CTA（Tailwind置き換え） ====== */
.lp-cta-in-nav {
  /* 画面幅いっぱいに拡張 */
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* 初期表示でナビの一部（リボン画像の上端）が見切れるため、
   スライド前のオフセット量を少し増やして完全に非表示にする */
.lp-l-nav {
  transform: translateY(calc(100% + 3.5rem));
}

.lp-cta-btn {
  display: block;
  position: relative;
}

.lp-cta-btn-box {
  position: relative;
  width: 100%;
  max-width: none; /* 親（100vw）に追従 */
  margin: 0 auto;
}

.lp-cta-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-cta-ribbon-wrap {
  position: absolute;
  top: -2rem;
  left: 43%;
  transform: translateX(-50%);
  width: 75%;
  z-index: 10;
  /* リボンに対する相対フォント基準（比率維持） */
  font-size: clamp(8px, 1.6vw, 18px);
}

.lp-cta-ribbon-img {
  display: block;
  width: 120%;
  height: auto;
}

.lp-cta-ribbon-wrap .lp-cta-timer {
  position: absolute;
  top: 48%;
  right: -14%;
  transform: translateY(-50%);
  font-size: 1em; /* 基準サイズ（比率は子要素で制御） */
  font-weight: 700;
  color: #FF0004;
  z-index: 20;
  white-space: nowrap;
}

.lp-cta-timer__big { font-size: 2.8em; }
.lp-cta-timer__small { font-size: 1.9em; }

@media screen and (min-width: 768px) {
  .lp-cta-btn:hover { filter: brightness(1.05); }
}

/* iPhone SE(375px幅)での文字サイズ微調整 */
@media screen and (max-width: 380px) {
  .lp-cta-ribbon-wrap .lp-cta-timer {
      top: 46%;
  }
  .lp-cta-ribbon-wrap {
    font-size: 7px; /* 既定(約8px)からやや縮小 */
  }
}

/* PCビュー(>=1024px)での文字サイズ拡大 */
@media screen and (min-width: 1024px) {
  .lp-cta-ribbon-wrap {
    top: -4rem;
    left: 44%;
  }
  .lp-cta-ribbon-wrap .lp-cta-timer {
    top: 48%;
    right: -14%;
  }
  .lp-p-cta__inner {
    padding: 0;
  }
  .lp-cta-timer__big { font-size: 2.2em; }
  .lp-cta-timer__small { font-size: 1.4em; }
  .lp-cta-in-nav {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
  .lp-cta-btn-box {
    max-width: 100%;
  }
  /* PC幅ではリボンのはみ出しが大きいため、隠れる量も増やす */
  .lp-l-nav {
    transform: translateY(calc(100% + 7rem));
  }
}

.force-recommend__text {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: serif;
  color: #c01919;
  line-height: 1.625;
}

.force-recommend__text .force-recommend__sub {
  font-size: 1.1rem;
  color: #404040;
}

/* 12月の帯「12月は平日がお得」（価格バナーの上）。掲載をやめるときは index.html の .fv_limited と一緒に消す */
.fv_limited {
  width: 92%;
  margin: min(16px, 2.4vw) auto 0;
  padding: min(10px, 1.8vw) 0;
  background: linear-gradient(90deg, #f2407f 0%, #fb5f9c 100%);
  border-radius: 999px;
  text-align: center;
}

.fv_limited__txt {
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: min(24px, 4.8vw);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* スマホでFV（1画面目）に予約ボタン（.fv_cta_btn）まで収める（2026-11-10 C3案: CTAは元サイズ、写真と症例数画像を70%）
   並び順は変えず、各要素を比率を保って縮小し、症例数画像の上下の余白だけ切り落とす。PC（768px以上）は変更なし */
@media (max-width: 767px) {
  #main .fv .header { padding: 1.4vw 0; }
  #main .fv { padding-top: calc(min(230px, 27.6666666667vw) * 0.3 + 1.4vw * 2); }
  .fv-img-1 { display: block; width: 70%; margin: 0 auto; }
  .fv_limited { width: 70%; margin: 0.6vw auto 0; padding: 0.7vw 0; }
  .fv_limited__txt { font-size: 3.1vw; }
  .fv_banner-1 img { display: block; width: 80%; margin: 0 auto; }
  .fv_banner-2 { width: 70%; margin: 0 auto; aspect-ratio: 3000 / 980; overflow: hidden; }
  .fv_banner-2 img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .fv_cta .fv_cta_text { width: 60%; margin: 1.4vw auto 0.8vw; }
  .fv_cta .fv_cta_btn { width: 80%; }
}
