@charset "utf-8";
/* Home Main Visual (from files/index.html) */

/* 旧ヒーロー背景を無効化 / テーマ干渉を打ち消し */
#hero {
  width: 100%;
  background: transparent;
  padding: 0;
  margin: 0 auto 1.5em;
}
#hero #heroPc,
#hero h2 img {
  display: none !important;
}
/* style.css の #hero h2 { display:none }（PC）が見出しまで消すため明示的に再表示 */
#hero h2.mv__h1,
#hero h2.s-mv__h1 {
  display: block !important;
  color: var(--c-text);
}
#hero .mv img,
#hero .s-mv img {
  max-width: none;
  height: auto;
}

/* ============================================================
   調整用トークン — レビュー対応はここの数値だけ触れば済みます
   ============================================================ */
.mv-scale {
  --mv-w: 1440px;
  --mv-h: 900px;
  /* 上部の余白を見切る量（設計px）。大きくすると上に詰まる */
  --mv-crop-top: 56px;

  /* 色 */
  --c-orange:        #EE7D15;   /* 見出し・アクセント */
  --c-orange-light:  #F5A93F;
  --c-orange-deep:   #E8730B;
  --c-text:          #3F3E3D;
  --c-text-sub:      #5F5D5B;
  --c-bg-1:          #FDFAF7;
  --c-bg-2:          #FBF2E8;
  --c-pill-bg:       rgba(255,255,255,.55);
  --c-pill-line:     #E4D3C0;

  /* 左カラム */
  --pad-l:           54px;
  --y-ribbon:        169px;
  --y-eyebrow:       250px;
  --y-h1:            306px;
  --y-rule:          527px;
  --y-creds:         556px;
  --y-lead:          608px;
  --y-badges:        684px;
  --y-cta:           750px;

  /* タイポ */
  --fs-h1:           72px;
  --lh-h1:           102px;
  --fs-eyebrow:      20px;
  --fs-lead:         21px;
  --fs-nav:          17px;

  /* 写真の位置（差し替え時はここで調整） */
  --photo-main-x:    620px;
  --photo-main-w:    780px;
  --photo-sub-x:     1216px;
  --photo-sub-w:     224px;
}

.mv-scale, .sp-scale {
  font-family: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--c-text);
}
.mv-scale h2,
.sp-scale h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* ============================================================
   MV 全体
   ============================================================ */
.mv-scale {
  container-type: inline-size;
  width: 90%;              /* 現サイトのコンテンツ列と同じ */
  max-width: 1440px;       /* 設計幅を超えて拡大させない */
  margin: 0 auto;
  /* 上部クロップ分だけ縦を狭くする */
  aspect-ratio: 1440 / calc(900 - 56);
  overflow: hidden;
}
.mv {
  --mv-scale: 1;
  transform-origin: 0 0;
  /* JS(page-mv.js) が --mv-scale をセット。atan2/cqw は iOS Safari で scale(0) になり得る */
  transform: scale(var(--mv-scale)) translateY(calc(var(--mv-crop-top) * -1));
  position: relative;
  width: var(--mv-w);
  height: var(--mv-h);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 42%, #FBEBD8 0%, rgba(251,235,216,0) 62%),
    linear-gradient(158deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
}

/* 装飾レイヤー（背面 / 写真帯 / 前面）*/
.mv__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mv__layer--back   { z-index: 1;  }   /* メインの波・リボン */
.mv__layer--photos { z-index: 10; }   /* 曲線で切り抜いたスポーツ写真 */
.mv__layer--line   { z-index: 15; }   /* 中間の線 — 写真より前面 */
.mv__layer--front  { z-index: 30; }   /* 右下の波 — 院長より手前 */

/* ============================================================
   左カラム — コピー
   ============================================================ */
.mv__copy {
  position: absolute;
  left: var(--pad-l);
  top: 0;
  width: 760px;
  z-index: 30;
}

/* リボン帯 */
.ribbon {
  position: absolute;
  top: var(--y-ribbon);
  left: 0;
  width: 372px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .06em;
  background: linear-gradient(96deg, var(--c-orange-light) 0%, var(--c-orange-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}


/* リード上の一行 */
.eyebrow {
  position: absolute;
  top: var(--y-eyebrow);
  left: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  color: var(--c-text-sub);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* 見出し */
.mv__h1 {
  position: absolute;
  top: var(--y-h1);
  left: 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.mv__h1 .is-accent { color: var(--c-orange); }

/* 区切り線 */
.rule {
  position: absolute;
  top: var(--y-rule);
  left: 4px;
  width: 52px;
  height: 2px;
  background: #B9AFA4;
}

/* リード文 */
.creds {
  position: absolute;
  top: var(--y-creds);
  left: 0;
  font-size: 14px;
  line-height: 23px;
  font-weight: 500;
  color: var(--c-text-sub);
  letter-spacing: .01em;
  white-space: nowrap;
}
.creds .is-name { color: var(--c-text); font-weight: 700; }
.lead {
  position: absolute;
  top: var(--y-lead);
  left: 0;
  font-size: var(--fs-lead);
  line-height: 34px;
  font-weight: 500;
  color: var(--c-text-sub);
  white-space: nowrap;
}
.lead .is-accent { color: var(--c-orange); }

/* バッジ */
.badges {
  position: absolute;
  top: var(--y-badges);
  left: 0;
  display: flex;
  gap: 16px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--c-pill-line);
  border-radius: 12px;
  background: var(--c-pill-bg);
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.badge svg { width: 24px; height: 24px; flex: none; }

/* CTA */
.cta,
.cta:link,
.cta:visited,
.cta:hover {
  position: absolute;
  top: var(--y-cta);
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 400px;
  height: 72px;
  padding: 0 26px;
  border: 2px solid var(--c-orange);
  border-radius: 999px;
  background: #fff;
  color: var(--c-orange);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(238,125,21,.16);
}
.cta__label { flex: 1; text-align: center; color: inherit; }
.cta > svg { flex: none; width: 26px; }
.cta__arrow { flex: none; width: 26px; text-align: right; font-size: 20px; color: inherit; }

/* ============================================================
   右カラム — 写真プレースホルダー
   差し替え時はこの要素の中身を <img> に置き換えるだけ
   ============================================================ */
.ph {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  z-index: 20;
}
.ph--doctor {
  left: var(--photo-main-x);
  top: 40px;
  width: var(--photo-main-w);
  height: 910px;
  object-fit: contain;
  object-position: bottom center;
  z-index: 20;
}
.ph--aligner {
  left: 490px;
  top: 410px;
  width: 226px;
  height: 150px;
  object-fit: contain;
  z-index: 21;
}

/* ドットパターン */
.dots {
  display: none;
  position: absolute;
  left: 1118px;
  top: 286px;
  width: 96px;
  height: 62px;
  background-image: radial-gradient(var(--c-orange-light) 1.6px, transparent 1.7px);
  background-size: 9px 9px;
  opacity: .9;
  z-index: 25;
}

/* 手書き風の一言 */
.handwrite {
  display: none;
  position: absolute;
  left: 1122px;
  top: 330px;
  width: 172px;
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
  color: #4E4036;
  transform: rotate(-4deg);
  z-index: 25;
}
.handwrite::before {
  content: "";
  position: absolute;
  inset: -30px -44px -26px -36px;
  background: radial-gradient(ellipse at 50% 50%,
              rgba(255,255,255,.72) 0%,
              rgba(255,255,255,.44) 38%,
              rgba(255,255,255,0)   70%);
  z-index: -1;
}


.sp-scale { display: none; }
@media (max-width: 767px) {
  .mv-scale { display: none; }
  .sp-scale { display: block; }
}

.sp, .sp-scale {
  --sp-w: 375px;
  --sp-h: 626px;

  --c-orange:      #EE7D15;
  --c-orange-bar:  #F37F05;
  --c-text:        #33302E;
  --c-text-sub:    #5F5D5B;
  --c-pill-line:   #E4D3C0;

  /* 縦位置 */
  --y-bar:       0px;    /* 電話バーの高さ */
  --y-header:    0px;    /* ヘッダーの高さ */
  --y-ribbon:   16px;
  --y-eyebrow:  51px;
  --y-h1:       88px;
  --y-creds:   424px;
  --y-cert:    478px;
  --y-lead:    502px;
  --y-badges:  528px;
  --y-cta:     564px;

  /* タイポ */
  --fs-h1:      37px;
  --lh-h1:      42px;

  /* 写真 */
  --doc-x:     150px;
  --doc-w:     300px;
}

/* ============================================================
   調整用トークン — レビュー対応はここの数値だけ触れば済みます
   ============================================================ */


/* 画面幅に合わせて全体を拡大縮小（JS不要）*/
.sp-scale {
  container-type: inline-size;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 375 / 626;
  overflow: hidden;
}
.sp {
  --mv-scale: 1;
  transform-origin: 0 0;
  transform: scale(var(--mv-scale));
  position: relative;
  width: var(--sp-w);
  height: var(--sp-h);
  overflow: hidden;
  background: #fff;
}

/* ============================================================
   MV
   ============================================================ */
.s-mv {
  position: absolute;
  top: calc(var(--y-bar) + var(--y-header)); left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 88% 30%, #FBE7D2 0%, rgba(251,231,210,0) 62%),
    linear-gradient(168deg, #FDFAF6 0%, #FBEFE2 58%, #FCEEDD 100%);
}
.s-mv__waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.s-copybg {
  position: absolute; left: -40px; top: 0; width: 320px; height: 260px;
  z-index: 5; pointer-events: none;
  background: radial-gradient(58% 52% at 42% 48%,
              rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 46%, rgba(255,255,255,0) 78%);
}
.s-mv__band  { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 25; pointer-events: none; }

/* --- 写真 --- */
.s-ph { position: absolute; }
.s-ph--doctor {
  left: var(--doc-x); top: 8px;
  width: var(--doc-w); height: 387px;
  object-fit: contain; object-position: bottom left;
  z-index: 20;
}
.s-ph--aligner {
  left: 20px; top: 185px; width: 120px; height: 80px;
  object-fit: contain; z-index: 18;
}

/* --- コピー --- */
.s-ribbon {
  position: absolute; top: var(--y-ribbon); left: 12px;
  width: 218px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14.5px; font-weight: 500; letter-spacing: .05em;
  background: linear-gradient(96deg, #F5A93F 0%, #E8730B 100%);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  z-index: 30;
}
.s-eyebrow {
  position: absolute; top: var(--y-eyebrow); left: 19px;
  font-size: 11.5px; font-weight: 500; line-height: 17px;
  color: var(--c-text-sub); letter-spacing: .02em; white-space: nowrap;
  text-shadow: 0 0 10px rgba(255,255,255,.95), 0 0 4px rgba(255,255,255,.9);
  z-index: 30;
}
.s-mv__h1 {
  position: absolute; top: var(--y-h1); left: 17px;
  font-size: var(--fs-h1); line-height: var(--lh-h1);
  font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  text-shadow: 0 0 14px rgba(255,255,255,.9), 0 0 5px rgba(255,255,255,.85);
  z-index: 30;
}
.s-mv__h1 .s-is-accent { color: var(--c-orange); }

/* --- 下部 --- */
.s-creds {
  position: absolute; top: var(--y-creds); left: 0; right: 0;
  text-align: center; font-size: 11px; line-height: 16px;
  font-weight: 500; color: var(--c-text-sub); letter-spacing: 0;
  white-space: nowrap; z-index: 30;
}
.s-creds .s-is-name { color: var(--c-text); font-weight: 700; }
.s-cert {
  position: absolute; top: var(--y-cert); left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12.5px; font-weight: 500; z-index: 30;
}
.s-cert::before, .s-cert::after {
  content: ""; width: 30px; height: 1.5px; background: #B9AFA4;
}
.s-lead {
  position: absolute; top: var(--y-lead); left: 0; right: 0;
  text-align: center; font-size: 13px; font-weight: 500;
  color: var(--c-text); white-space: nowrap; z-index: 30;
}
.s-lead .s-is-accent { color: var(--c-orange); }
.s-badges {
  position: absolute; top: var(--y-badges); left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px; z-index: 30;
}
.s-badge {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px;
  border: 1px solid var(--c-pill-line); border-radius: 8px;
  background: rgba(255,255,255,.6);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.s-badge svg { width: 14px; height: 14px; flex: none; }
.s-cta,
.s-cta:link,
.s-cta:visited,
.s-cta:hover {
  position: absolute; top: var(--y-cta); left: 23px; right: 23px;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F79A2B 0%, #EF7A10 100%);
  color: #fff; font-size: 16px; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 10px rgba(238,125,21,.28);
  z-index: 30;
}
.s-cta__label { flex: 1; text-align: center; color: #fff; }
.s-cta > svg, .s-cta__arrow { flex: none; width: 18px; text-align: right; color: #fff; }
