@charset "utf-8";
/* オリーブ歯科 子どもの矯正歯科クリニック ｜ 医院紹介・歯並び相談ページ */

:root{
  --green:#73A942;
  --green-bg:#EAF2DC;
  --pale:#F7F8F2;
  --ink:#5b534b;
  --sub:#756D65;
  --muted:#8A8178;
  --border:#e0e4d4;
  --gborder:#cdd8b8;
  --yellow:#F4B000;
  --yellow-dark:#cf9500;
  --yellow-ink:#4A3A10;
  --marker:rgba(115,169,66,.28); /* --green #73A942 を 28%（蛍光イエローは使わない） */
  --header-h:69px; /* .site-header の実高 = padding14×2 + logo40 + border1 */
}

/* ---------- base ---------- */
*{box-sizing:border-box;}
html,body{margin:0;}
body{
  background:#e8ecdf;
  color:var(--ink);
  -webkit-text-size-adjust:100%;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic Medium","Yu Gothic",YuGothic,Meiryo,sans-serif;
  font-weight:400;
}
h1,h2,h3,h4,a{font-family:"MFW-TBChibiRGoPlusKStd-DemiBold","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN","Kosugi Maru",sans-serif;}
img{display:block;}

/* ---------- layout ---------- */
.bg-deco{
  position:fixed;inset:0;z-index:0;
  background:
    repeating-linear-gradient(135deg,rgba(0,0,0,.03) 0 22px,rgba(0,0,0,0) 22px 44px),
    linear-gradient(180deg,#e3ebd4,#d3e0bd);
  filter:blur(10px);
}
.page{
  position:relative;z-index:2;
  width:100%;max-width:430px;margin:0 auto;
  background:#fff;
  box-shadow:0 0 28px rgba(0,0,0,.18);
  min-height:100vh;
  padding-bottom:76px;
  line-height:1.8;letter-spacing:.02em;
}

/* ---------- header ---------- */
.site-header{
  display:flex;align-items:center;
  padding:14px 22px;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.site-header__logo{height:40px;width:auto;object-fit:contain;}

/* ---------- section ---------- */
.section{
  position:relative;
  padding:30px 22px;
  border-bottom:1px solid var(--border);
}
.section--green{background:var(--green-bg);}
.section--pale{background:var(--pale);}
.section--center{text-align:center;}
.section--flush{border-bottom:none;}

/* ---------- shared type ---------- */
.eyebrow{font-size:12px;color:var(--green);letter-spacing:.12em;margin:0 0 8px;}
.eyebrow--center{text-align:center;}
.title{line-height:1.45;margin:0 0 12px;color:var(--ink);}
.title--19{font-size:19px;}
.title--21{font-size:21px;}
.title--22{font-size:22px;}
.lead{font-size:14.5px;color:var(--sub);margin:0 0 18px;}
.text{font-size:14.5px;color:var(--sub);margin:0 0 10px;}
.text:last-child{margin-bottom:0;}
.note{font-size:12.5px;color:var(--muted);margin:10px 0 0;}
.note--center{text-align:center;margin:8px 0 0;}

/* 折り返し制御：意図した位置でのみ改行させる（フレーズ単位で inline-block 化） */
.nw{display:inline-block;}

/* マーカー：文字の下40%に敷く淡いブランドグリーン。<mark> 既定の黄背景・黒文字をリセット */
.marker{
  background:linear-gradient(transparent 60%,var(--marker) 60%);
  color:inherit;
  padding:0 .06em;
}

/* ---------- buttons ---------- */
.cta{margin-top:16px;}
.cta--sm{margin-top:10px;}
.cta--lg{margin-top:14px;}
.cta--xl{margin-top:20px;}
.btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;min-height:54px;padding:13px 20px;
  border-radius:999px;font-size:16px;
  text-decoration:none;cursor:pointer;
}
.btn--outline{background:#fff;color:var(--yellow-ink);border:2px solid var(--green);}
.btn--outline:hover{background:var(--green-bg);}
.btn--primary{background:var(--yellow);color:var(--yellow-ink);border:none;box-shadow:0 4px 0 var(--yellow-dark);}
.btn--primary:hover{background:#f8bd24;}
.btn--md{min-height:52px;font-size:15px;}
.btn--xs{min-height:46px;font-size:14px;padding:11px 16px;}
.btn__arrow{font-size:14px;opacity:.85;}
.btn--xs .btn__arrow{font-size:13px;}

/* ---------- FV / hero ---------- */
/* 末尾の .intro が下線を持つため、.fv 側では余白・下線を重ねない。 */
.fv{position:relative;padding:0;background:#fff;}
.hero{position:relative;background:#e6e3da;border:1px solid var(--gborder);overflow:hidden;height:calc(100svh - var(--header-h));}
@media(min-width:520px){.hero{height:375px;}}
.hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;}
/* スクリムは独立した帯ではなくコピー自身の背景として持たせる。
   帯の高さが文字量に追従するため、塗りすぎも、文字が帯からはみ出すことも起きない。
   緑 α.60＋黒 α.46 の二層。写真側が真っ白でも白文字が AA（4.5:1）を満たす配合。 */
.hero__copy{
  position:absolute;left:0;right:0;top:0;
  padding:22px 22px 56px;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.46) 0%,
      rgba(0,0,0,.42) 72%,
      rgba(0,0,0,0) 100%),
    linear-gradient(180deg,
      rgba(115,169,66,.60) 0%,
      rgba(115,169,66,.54) 72%,
      rgba(115,169,66,0) 100%);
}
.hero__catch{
  margin:0;
  font-size:clamp(20px,6.2vw,26px);
  line-height:1.55;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.hero__catch-sub{
  margin:10px 0 0;
  font-family:"TBChibiRGothicPlusK DB","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN","Kosugi Maru",sans-serif;
  font-size:13px;
  line-height:1.7;
  color:rgba(255,255,255,.92);
  text-shadow:0 1px 6px rgba(0,0,0,.35);
}
.fv__body{padding:0 22px;}
.fv__title{margin:18px 0 0;line-height:1.4;color:var(--ink);}
.fv__title span{font-size:27px;}

/* ---------- intro (導入) ---------- */
.intro{padding:28px 22px 30px;background:#fff;border-bottom:1px solid var(--border);}
.intro__title{font-size:clamp(18px,5.4vw,20px);line-height:1.6;margin:0 0 18px;}
.intro__text{font-size:15px;line-height:1.95;margin-bottom:1.3em;}
/* 末尾に .intro__sign が続くため :last-child ではなく :last-of-type */
.intro__text:last-of-type{margin-bottom:0;}

/* 導入セクションの署名（誰が語っているかを示す） */
.intro__sign{
  display:flex;align-items:center;gap:13px;
  margin-top:26px;
}
.intro__sign-photo{
  position:relative;flex:0 0 auto;
  width:60px;height:60px;border-radius:50%;
  overflow:hidden;background:var(--pale);
  box-shadow:0 0 0 2px var(--green-bg);
}
/* 素材(720×720)は全身寄りで顔が上部にあるため、顔（x50% / y25.7%）が円の中央に
   来るよう拡大配置している。顔中心クロップの intro-doctor を書き出したら、
   この img ルールごと削除して width/height:100% + object-fit:cover に戻せる。 */
.intro__sign-photo img{
  position:absolute;
  width:212%;height:212%;
  left:50%;top:-4.5%;
  transform:translateX(-50%);
}
.intro__sign-name{
  margin:0;
  font-family:"TBChibiRGothicPlusK DB","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN","Kosugi Maru",sans-serif;
  font-size:14.5px;line-height:1.5;color:var(--ink);
}
.intro__sign-role{
  display:block;
  font-size:11px;letter-spacing:.06em;color:var(--muted);
}

/* ---------- hours (診療時間) ---------- */
/* ⑫ 最終セクション（緑面）に置くため、余白はセクション側に任せ、表は白カードに収める。 */
.hours{margin-top:20px;}
.hours__card{background:#fff;border:1px solid var(--gborder);border-radius:10px;overflow:hidden;}
.hours__table{width:100%;border-collapse:collapse;}
.hours__table th,.hours__table td{
  padding:11px 0;text-align:center;font-weight:400;
  font-size:13px;color:var(--sub);
  border-bottom:1px solid var(--border);
}
.hours__table thead th{font-size:12.5px;color:var(--ink);}
.hours__table .hours__time{width:38%;text-align:left;padding-left:12px;white-space:nowrap;}
.hours__table tbody tr:last-child th,
.hours__table tbody tr:last-child td{border-bottom:none;}
.hours__dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--green);}
.hours__tri{display:inline-block;width:11px;height:10px;background:var(--green);clip-path:polygon(50% 0,100% 100%,0 100%);}
.hours__off{color:var(--muted);font-size:12.5px;}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* ---------- info card ---------- */
.info{margin-top:18px;border:1px solid var(--border);border-radius:12px;overflow:hidden;}
.info__row{display:flex;gap:10px;padding:12px 14px;border-bottom:1px solid var(--border);align-items:flex-start;}
.info__row:last-child{border-bottom:none;}
.info__icon{width:20px;flex:0 0 auto;text-align:center;color:var(--muted);}
.info__label{font-size:11px;color:var(--muted);letter-spacing:.04em;}
.info__val{font-size:14px;color:var(--sub);}
.info__val span{color:var(--muted);}

.banner-free{
  margin-top:10px;display:flex;align-items:center;justify-content:center;gap:8px;
  background:var(--green-bg);border:1px solid var(--gborder);border-radius:10px;
  padding:11px;text-align:center;
}
.banner-free strong{font-size:15px;font-weight:700;color:var(--ink);}

/* ---------- clinic photos (院内写真) ---------- */
.clinic-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin:16px 0 16px;}
.clinic-photo{margin:0;}
.clinic-photo__frame{display:block;width:100%;aspect-ratio:4/3;border-radius:10px;border:1px solid var(--gborder);overflow:hidden;background:#fff;padding:0;appearance:none;-webkit-appearance:none;cursor:zoom-in;-webkit-tap-highlight-color:transparent;transition:transform .15s ease;}
.clinic-photo__frame:active{transform:scale(.985);}
.clinic-photo__frame img{width:100%;height:100%;object-fit:cover;}
.clinic-photo__cap{font-size:12px;color:var(--sub);text-align:center;line-height:1.5;margin-top:6px;}

/* ---------- points (通いやすさの3項目) ---------- */
/* カード枠は使わず、見出し＋本文の縦積みのみ。直上の写真グリッドが
   視覚的に強いため、テキスト側は余白だけでリズムを作る。 */
.points{display:flex;flex-direction:column;gap:18px;margin-top:20px;}
.point__title{font-size:15px;line-height:1.5;margin:0 0 5px;color:var(--ink);}
.point__text{font-size:13.5px;line-height:1.75;color:var(--sub);margin:0;}

/* ---------- lightbox ---------- */
body.lb-open{overflow:hidden;}
.lightbox{width:100%;height:100%;max-width:100vw;max-height:100dvh;margin:0;padding:0;border:0;background:transparent;overflow:hidden;}
.lightbox::backdrop{background:rgba(30,28,25,.88);}
.lightbox__inner{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:56px 12px 24px;}
.lightbox__stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;}
.lightbox__img{max-width:min(94vw,900px);max-height:70dvh;width:auto;height:auto;object-fit:contain;border-radius:12px;background:#fff;}
.lightbox__cap{margin:0;font-size:13px;line-height:1.6;color:#fff;text-align:center;}
.lightbox__close{position:absolute;top:12px;right:12px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;color:#fff;background:rgba(255,255,255,.16);border:0;border-radius:50%;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;color:#fff;background:rgba(30,28,25,.45);border:0;border-radius:50%;padding:0 0 3px;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.lightbox__nav--prev{left:4px;}
.lightbox__nav--next{right:4px;}
.lightbox__dots{display:flex;gap:7px;}
.lightbox__dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);}
.lightbox__dots span.is-current{background:var(--green);}
@media (prefers-reduced-motion:no-preference){
  .lightbox[open]{animation:lb-fade .12s ease-out;}
  .lightbox[open]::backdrop{animation:lb-fade .12s ease-out;}
}
@keyframes lb-fade{from{opacity:0;}to{opacity:1;}}

/* ---------- single photo ---------- */
.photo{margin:0 0 14px;height:180px;border-radius:10px;background:#fff;border:1px solid var(--gborder);overflow:hidden;}
.photo__img{width:100%;height:100%;object-fit:cover;object-position:center 38%;}
/* 書き出し済み画像と枠の比率が一致するため、object-position は中央に戻す。 */
.photo--16x9{height:auto;aspect-ratio:16/9;}
.photo--16x9 .photo__img{object-position:center;}

/* ---------- feature cards (Invisalign) ---------- */
.subhead{font-size:14px;color:var(--green);font-weight:700;margin:0 0 12px;}
.subhead2{font-size:16px;margin:0 0 12px;color:var(--ink);}
.features{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.feature{display:flex;flex-direction:column;gap:10px;border-radius:14px;padding:11px;transition:transform .2s ease,box-shadow .2s ease;}
.feature:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.09);}
.feature__img{position:relative;width:100%;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#fff;border:1.5px dashed;display:flex;align-items:center;justify-content:center;}
.feature__img img{width:100%;height:100%;object-fit:contain;display:block;}
.feature__ph{font-size:11px;font-weight:700;line-height:1.5;text-align:center;letter-spacing:.02em;padding:6px;}
.feature__body{display:flex;flex-direction:column;gap:3px;padding:0 3px 3px;}
.feature__title{font-size:14px;font-weight:700;margin:0;display:flex;align-items:center;gap:6px;line-height:1.35;}
.feature__title::before{content:"";width:8px;height:8px;border-radius:50%;flex:0 0 auto;}
.feature__text{font-size:12px;color:var(--sub);margin:0;line-height:1.65;}
.feature--green{border:1px solid rgba(115,169,66,.35);background:rgba(115,169,66,.10);}
.feature--green .feature__img{border-color:rgba(115,169,66,.55);}
.feature--green .feature__ph{color:#5a8a2f;}
.feature--green .feature__title{color:#5a8a2f;}
.feature--green .feature__title::before{background:var(--green);}
.feature--yellow{border:1px solid rgba(244,176,0,.4);background:rgba(244,176,0,.12);}
.feature--yellow .feature__img{border-color:rgba(244,176,0,.6);}
.feature--yellow .feature__ph{color:#b07d00;}
.feature--yellow .feature__title{color:#b07d00;}
.feature--yellow .feature__title::before{background:var(--yellow);}
.feature--blue{border:1px solid rgba(90,169,201,.4);background:rgba(90,169,201,.12);}
.feature--blue .feature__img{border-color:rgba(90,169,201,.6);}
.feature--blue .feature__ph{color:#3f8aa8;}
.feature--blue .feature__title{color:#3f8aa8;}
.feature--blue .feature__title::before{background:#5AA9C9;}
.feature--brown{border:1px solid rgba(168,139,106,.4);background:rgba(168,139,106,.12);}
.feature--brown .feature__img{border-color:rgba(168,139,106,.6);}
.feature--brown .feature__ph{color:#8a6f4f;}
.feature--brown .feature__title{color:#8a6f4f;}
.feature--brown .feature__title::before{background:#A88B6A;}

/* ---------- flow (consultation steps) ---------- */
.flow{display:flex;flex-direction:column;}
.flow__step{display:flex;gap:14px;}
.flow__rail{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;}
.flow__num{
  width:30px;height:30px;border-radius:50%;
  background:var(--green);color:#fff;font-size:14px;
  display:flex;align-items:center;justify-content:center;
  font-family:"TBChibiRGothicPlusK DB","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN","Kosugi Maru",sans-serif;
}
.flow__num--goal{background:var(--yellow);color:var(--yellow-ink);}
.flow__line{flex:1 1 auto;width:0;border-left:2px dashed var(--gborder);margin:4px 0;}
.flow__body{flex:1 1 0;padding-bottom:22px;}
.flow__step:last-child .flow__body{padding-bottom:0;}
.flow__title{font-size:16px;margin:3px 0 4px;color:var(--ink);}
.flow__text{font-size:13.5px;color:var(--sub);margin:0 0 10px;}
.ph{
  width:100%;aspect-ratio:16/9;border-radius:10px;border:1px solid var(--gborder);
  background:#fff;background-image:repeating-linear-gradient(135deg,rgba(115,169,66,.10) 0 10px,rgba(0,0,0,0) 10px 20px);
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-family:ui-monospace,Menlo,monospace;font-size:11px;text-align:center;
}
.ph--yellow{background-image:repeating-linear-gradient(135deg,rgba(244,176,0,.12) 0 10px,rgba(0,0,0,0) 10px 20px);}
.flow__photo{width:100%;aspect-ratio:16/9;border-radius:10px;border:1px solid var(--gborder);overflow:hidden;background:#fff;}
.flow__photo img{width:100%;height:100%;object-fit:cover;display:block;}

/* ---------- ages (年齢帯タイムライン) ---------- */
/* カード間の gap に緑の▼を落として「上→下の時系列」を示す。
   年齢＞補足ラベル＞本文 の順に大きさ・色でヒエラルキーを付けている。 */
.ages{display:flex;flex-direction:column;gap:26px;}
.age{
  position:relative;
  padding:14px 15px;border:1px solid var(--border);border-radius:12px;background:#fff;
}
.age+.age::before{
  content:"";position:absolute;top:-18px;left:50%;transform:translateX(-50%);
  width:15px;height:10px;background:var(--green);clip-path:polygon(0 0,100% 0,50% 100%);
}
.age__head{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;margin-bottom:6px;}
.age__term{
  font-family:"TBChibiRGothicPlusK DB","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN","Kosugi Maru",sans-serif;
  font-size:18px;line-height:1.3;color:var(--green);
}
.age__label{
  font-size:11.5px;line-height:1.5;color:var(--sub);
  background:var(--green-bg);border-radius:999px;padding:3px 10px;white-space:nowrap;
}
.age__text{font-size:13.5px;color:var(--sub);margin:0;}

/* ---------- cares (子どもの歯を守る方法) ---------- */
.cares{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;margin-top:16px;}
.care{display:flex;flex-direction:column;}
.care__title{font-size:14.5px;line-height:1.4;margin:0 0 4px;color:var(--ink);}
.care__text{font-size:12.5px;line-height:1.7;color:var(--sub);margin:0;}

/* ---------- policy (当院の考え方) ---------- */
/* 直後の ③ が section--green のため、セクション面ではなく角丸カードで際立たせる。 */
.policy{
  border:2px solid var(--green);border-radius:14px;background:var(--green-bg);
  padding:18px 16px;
}
.policy .text{font-size:15px;line-height:1.9;}

/* ---------- doctor ---------- */
.doctor{display:flex;gap:16px;align-items:flex-start;}
.doctor+.doctor{margin-top:22px;}
.doctor__avatar{width:120px;height:120px;flex:0 0 auto;border-radius:50%;background:#fff;border:1px solid var(--gborder);overflow:hidden;}
.doctor__avatar img{width:100%;height:100%;object-fit:cover;object-position:center top;}
.doctor__name{font-size:16px;margin:2px 0 6px;}
.doctor__list{margin:0 0 0 18px;padding:0;font-size:13px;color:var(--sub);line-height:1.7;}
.quote{
  margin-top:14px;margin-bottom:28px;padding:14px;background:var(--green-bg);border-radius:10px;
  font-size:13.5px;color:var(--sub);border-left:3px solid var(--green);
}

/* ---------- outline table ---------- */
.outline{border:1px solid var(--border);border-radius:10px;overflow:hidden;}
.outline__row{display:flex;border-bottom:1px solid var(--border);}
.outline__row:last-child{border-bottom:none;}
.outline__head{width:88px;flex:0 0 auto;padding:10px 12px;background:var(--pale);font-size:13px;font-weight:700;color:var(--ink);}
.outline__cell{padding:10px 12px;font-size:13.5px;color:var(--sub);}
.outline__cell a{color:inherit;text-decoration:none;}

/* ---------- access map ---------- */
.map{margin:14px 0;height:200px;border-radius:10px;overflow:hidden;border:1px solid var(--gborder);}
.map iframe{width:100%;height:100%;border:0;display:block;}

/* ---------- final cta ---------- */
.final__hero{position:relative;margin:-30px -22px 14px;aspect-ratio:4/3;background:#fff;overflow:hidden;}
.final__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.final__scrim{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0) 70%);}
.final__title{
  position:absolute;right:18px;bottom:16px;margin:0;
  font-size:20px;line-height:1.5;text-align:right;
  color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.6);
}
.clinic-info{font-size:13px;color:var(--sub);margin-top:18px;line-height:1.9;}
.clinic-info strong{font-weight:700;}
.copyright{font-size:12px;color:var(--muted);text-align:center;margin:18px 0 0;}

/* ---------- sticky bar ---------- */
.sticky-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:10;
  max-width:430px;margin:0 auto;
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--gborder);
  padding:10px 14px;box-shadow:0 -4px 14px rgba(0,0,0,.08);
}
.sticky-bar__row{display:flex;gap:10px;}
.sticky-bar__btn{
  flex:1 1 0;display:flex;align-items:center;justify-content:center;gap:6px;
  min-height:48px;padding:8px;border-radius:999px;
  font-size:13px;text-decoration:none;cursor:pointer;
  text-align:center;line-height:1.3;
}
.sticky-bar__btn--outline{background:#fff;color:var(--yellow-ink);border:2px solid var(--green);}
.sticky-bar__btn--outline:hover{background:var(--green-bg);}
.sticky-bar__btn--primary{background:var(--yellow);color:var(--yellow-ink);border:none;}
.sticky-bar__btn--primary:hover{background:#f8bd24;}
.sticky-bar__icon{font-size:15px;flex:0 0 auto;}
