/* ==========================================================================
   まちだ整骨院（架空）｜ポートフォリオ用サンプル
   方針：清潔感と信頼感。中性的なトーンで男女どちらも入りやすく。
        産後セクションのみ、やわらかい色に切り替えて語りかけを変える。
   アイコン：Tabler Icons（MIT License / (c) 2020-2026 Paweł Kuna）
           https://github.com/tabler/tabler-icons
           SVGの実体は index.html 冒頭のスプライトに収録。色は currentColor、
           線の太さは --ico-w で一括変更できる。
   ========================================================================== */
:root{
  --ink:#26333d;          /* 本文 */
  --ink-d:#18242c;        /* 見出し */
  --sub:#5f707c;          /* 補足文 */
  --main:#2a6076;         /* 深い青：信頼感 */
  --main-d:#1c4757;
  --main-l:#eaf2f5;       /* 淡い青の面 */
  --line-g:#06c755;       /* LINEのブランドカラー */
  --line-gd:#05a445;
  --pink:#d97a90;         /* 産後セクション用 */
  --pink-l:#fdf1f3;
  --paper:#ffffff;
  --wash:#f5f8f9;
  --bd:#dfe6ea;
  --shadow:0 6px 20px rgba(30,70,90,.08);
  --ico-w:1.6;            /* アイコンの線の太さ（細め） */
  --ico-soft:rgba(30,70,90,.32);  /* プレースホルダー内のアイコン色 */
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:72px;}
body{
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  color:var(--ink);background:var(--paper);
  line-height:1.9;font-size:16px;
  padding-bottom:0;
}
img{max-width:100%;display:block;}
a{color:inherit;}
.pc{display:inline;}

/* ---- サンプル注記 ---- */
.samplenote{
  background:#2b3a44;color:#dfe7ec;font-size:12px;line-height:1.7;
  text-align:center;padding:8px 16px;
}
.samplenote b{color:#fff;}

/* ---- 共通 ---- */
.sec{padding:84px 24px;}
.inner{max-width:1040px;margin:0 auto;}
.sec__en{
  font-size:12px;letter-spacing:.28em;color:var(--main);font-weight:700;
  text-align:center;margin-bottom:8px;
}
.sec__ttl{
  font-size:30px;line-height:1.5;font-weight:800;color:var(--ink-d);
  text-align:center;margin-bottom:16px;
}
.sec__lead{text-align:center;color:var(--sub);font-size:15px;margin-bottom:44px;}
.sec__lead b{color:var(--ink);}
.cau{
  font-size:13px;line-height:1.85;color:var(--sub);
  background:var(--wash);border-left:3px solid var(--bd);
  padding:12px 14px;border-radius:0 6px 6px 0;margin-top:14px;
}
.cau b{color:var(--ink);}
.cau--center{text-align:center;border-left:none;border-radius:6px;margin-top:26px;}

/* ---- ボタン ---- */
.btn{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  font-weight:800;text-decoration:none;text-align:center;line-height:1.4;
  padding:15px 30px;border-radius:10px;transition:filter .15s,transform .15s;
}
.btn small{font-size:11px;font-weight:600;opacity:.9;margin-top:3px;}
.btn:hover{filter:brightness(1.06);transform:translateY(-1px);}
.btn--line{background:var(--line-g);color:#fff;box-shadow:0 4px 0 var(--line-gd);}
.btn--line:hover{box-shadow:0 3px 0 var(--line-gd);}
.btn--ghost{background:#fff;color:var(--main-d);border:2px solid var(--main);}
.btn--sm{padding:9px 16px;font-size:13px;border-radius:8px;}
.btn--lg{padding:19px 44px;font-size:18px;}
/* ---- アイコン（Tabler Icons・MIT。定義は index.html 冒頭のスプライト） ---- */
.sprite{display:none;}
.ico{
  width:1.15em;height:1.15em;flex:none;
  stroke:currentColor;fill:none;
  stroke-width:var(--ico-w);stroke-linecap:round;stroke-linejoin:round;
}
.ico--btn{width:21px;height:21px;margin-bottom:2px;}

/* ---- 写真プレースホルダー共通 ---- */
.ph__label{
  position:absolute;top:10px;left:12px;z-index:2;
  font-size:10px;font-weight:700;letter-spacing:.06em;line-height:1.5;
  color:rgba(30,60,75,.5);
}
.ph__deco{
  position:relative;z-index:1;width:92px;height:92px;margin-bottom:9%;
  stroke:var(--ico-soft);fill:none;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.head{
  position:sticky;top:0;z-index:60;background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--bd);
}
.head__inner{
  max-width:1120px;margin:0 auto;padding:11px 20px;
  display:flex;align-items:center;gap:22px;
}
.logo{display:flex;align-items:center;gap:9px;text-decoration:none;}
.logo__mark{
  width:30px;height:30px;border-radius:8px;flex:none;color:#fff;
  background:linear-gradient(150deg,var(--main),#3d8199);
  display:flex;align-items:center;justify-content:center;
}
.logo__mark .ico{width:19px;height:19px;}
.logo__txt{font-size:17px;font-weight:800;color:var(--ink-d);line-height:1.25;}
.logo__txt small{display:block;font-size:10px;font-weight:600;color:var(--sub);letter-spacing:.02em;}
.gnav{display:flex;gap:20px;margin-left:auto;}
.gnav a{text-decoration:none;font-size:14px;font-weight:700;color:var(--ink);}
.gnav a:hover{color:var(--main);}

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero{
  display:grid;grid-template-columns:1fr 1fr;align-items:stretch;
  background:linear-gradient(160deg,#f7fbfc,#e8f1f4);
}
.hero__photo img,.symcard__ph img,.pp__photo img,.doctor__photo img,.access__ph img{
  width:100%;height:100%;object-fit:cover;display:block;
  /* AI生成画像はカットごとに明るさ・鮮やかさがばらつくため、
     サイト全体で軽くそろえる。数値は控えめ（やりすぎると不自然になる） */
  filter:saturate(0.94) brightness(1.02) contrast(1.02);
}
/* AI生成であることの表示（各写真の隅に小さく） */
.ainote{
  position:absolute;right:8px;bottom:8px;z-index:3;
  font-size:10px;font-weight:700;letter-spacing:.04em;
  color:#fff;background:rgba(25,45,58,.55);
  padding:3px 7px;border-radius:4px;pointer-events:none;
}
.hero__photo{
  position:relative;min-height:460px;order:2;
  background:
    radial-gradient(110% 80% at 70% 20%, rgba(120,175,195,.5), transparent 60%),
    linear-gradient(155deg,#cfe0e7 0%,#a9c6d1 60%,#8fb2c0 100%);
  display:flex;align-items:flex-end;justify-content:center;overflow:hidden;
}
.hero__photo::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size:15px 15px;
  -webkit-mask-image:linear-gradient(120deg, transparent 50%, #000 90%);
  mask-image:linear-gradient(120deg, transparent 50%, #000 90%);
}
.hero__body{order:1;padding:60px 44px 56px;display:flex;flex-direction:column;justify-content:center;}
.hero__sub{
  display:inline-block;align-self:flex-start;font-size:12px;font-weight:700;
  color:var(--main-d);background:#fff;border:1px solid var(--bd);
  padding:5px 13px;border-radius:999px;margin-bottom:18px;
}
.hero__catch{font-size:40px;line-height:1.45;font-weight:900;color:var(--ink-d);margin-bottom:18px;letter-spacing:.01em;}
.hero__lead{font-size:15px;color:var(--sub);margin-bottom:26px;}
.hero__lead b{color:var(--ink);}
.hero__cta{display:flex;gap:12px;flex-wrap:wrap;}
.hero__note{font-size:13px;color:var(--sub);margin-top:18px;}
.hero__note b{color:var(--main-d);}

/* ==========================================================================
   症状別
   ========================================================================== */
.sym{background:var(--wash);}
.symgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.symcard{
  background:#fff;border:1px solid var(--bd);border-radius:14px;overflow:hidden;
  box-shadow:var(--shadow);display:flex;flex-direction:column;
}
.symcard__ph{
  position:relative;aspect-ratio:4/3;
  background:
    radial-gradient(100% 80% at 30% 15%, rgba(140,185,205,.45), transparent 60%),
    linear-gradient(165deg,#dbe8ed,#b9d0da);
}
.symcard__body{padding:20px 20px 22px;flex:1;display:flex;flex-direction:column;}
.symcard__ttl{
  font-size:19px;font-weight:800;color:var(--main-d);margin-bottom:12px;line-height:1.5;
  padding-bottom:10px;border-bottom:2px solid var(--main-l);
}
.checks{list-style:none;display:flex;flex-direction:column;gap:7px;margin-bottom:14px;}
.checks li{display:flex;gap:9px;align-items:flex-start;font-size:14.5px;}
.ico--chk{width:19px;height:19px;color:var(--main);margin-top:.3em;}
.symcard__note{font-size:13px;color:var(--sub);margin-top:auto;}
.symcard--link{
  grid-column:span 3;flex-direction:row;align-items:center;
  background:var(--main-l);border-color:#cfe0e6;
}
.symcard--link .symcard__body{flex-direction:row;align-items:center;gap:18px;flex-wrap:wrap;}
.symcard--link .symcard__ttl{border:none;padding:0;margin:0;}
.symcard--link .symcard__note{margin:0;}
.inlink{
  margin-left:auto;font-weight:800;color:var(--main-d);font-size:14px;
  border-bottom:2px solid var(--main);text-decoration:none;padding-bottom:2px;white-space:nowrap;
}

/* ==========================================================================
   産後（トーンを切り替える）
   ========================================================================== */
.pp{background:var(--pink-l);padding:84px 24px;}
.pp__inner{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;}
.pp__en{font-size:12px;letter-spacing:.28em;color:var(--pink);font-weight:700;margin-bottom:8px;}
.pp__ttl{font-size:30px;line-height:1.55;font-weight:800;color:#8c4655;margin-bottom:18px;}
.pp__lead{font-size:15.5px;color:#6b5257;margin-bottom:22px;}
.pp__list{list-style:none;display:flex;flex-direction:column;gap:12px;margin-bottom:18px;}
.pp__list li{
  background:#fff;border-radius:10px;padding:13px 16px 13px 44px;position:relative;
  font-size:14.5px;color:#5d4a4e;box-shadow:0 3px 10px rgba(180,120,135,.1);
}
.pp__list li::before{
  content:"";position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;border-radius:50%;background:var(--pink);
}
.pp__list b{color:#8c4655;}
.pp__cau{font-size:12.5px;color:#8a7176;margin-bottom:22px;}
.pp .btn--line{align-self:flex-start;}
.pp__photo{
  position:relative;aspect-ratio:9/11;border-radius:16px;overflow:hidden;
  background:
    radial-gradient(110% 80% at 65% 18%, rgba(240,180,195,.6), transparent 60%),
    linear-gradient(160deg,#f7dfe4 0%,#eec4cd 60%,#e3adba 100%);
  box-shadow:0 14px 30px rgba(180,120,135,.18);
}
.pp__photo .ph__label{color:rgba(120,60,75,.5);}

/* ==========================================================================
   施術の流れ
   ========================================================================== */
.flow{background:#fff;}
.flowlist{list-style:none;max-width:780px;margin:0 auto;position:relative;}
.flowlist::before{
  content:"";position:absolute;left:21px;top:20px;bottom:26px;width:2px;background:var(--main-l);
}
.flowitem{display:flex;gap:20px;position:relative;padding-bottom:26px;}
.flowitem:last-child{padding-bottom:0;}
.flowitem__no{
  flex:none;width:44px;height:44px;border-radius:50%;
  background:var(--main);color:#fff;font-weight:900;font-size:18px;
  display:flex;align-items:center;justify-content:center;position:relative;z-index:1;
  box-shadow:0 0 0 5px #fff;
}
.flowitem__ttl{font-size:18px;font-weight:800;color:var(--ink-d);margin-bottom:4px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.flowitem__time{
  font-size:12px;font-weight:700;color:var(--main-d);
  background:var(--main-l);padding:3px 10px;border-radius:999px;
}
.flowitem p{font-size:14.5px;color:var(--sub);}

/* ==========================================================================
   料金
   ========================================================================== */
.price{background:var(--wash);}
.pricebox{
  background:#fff;border:1px solid var(--bd);border-radius:14px;
  padding:26px 26px 24px;margin-bottom:20px;box-shadow:var(--shadow);
}
.pricebox__ttl{font-size:20px;font-weight:800;color:var(--ink-d);margin-bottom:10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.pricebox__desc{font-size:14.5px;color:var(--sub);margin-bottom:14px;}
.pricebox__desc b{color:var(--ink);}
.tag{font-size:12px;font-weight:800;color:#fff;padding:4px 12px;border-radius:999px;white-space:nowrap;}
.tag--ins{background:var(--main);}
.tag--self{background:#8a7a5e;}
.tag--acc{background:#3f7f5c;}
.ptable{width:100%;border-collapse:collapse;font-size:15px;}
.ptable th,.ptable td{border-bottom:1px solid var(--bd);padding:12px 6px;text-align:left;vertical-align:top;}
.ptable th{width:42%;font-weight:700;color:var(--ink-d);}
.ptable th span{display:inline-block;font-size:12px;font-weight:600;color:var(--sub);margin-left:8px;}
.ptable td small{display:block;font-size:12.5px;color:var(--sub);}
.pricebox--acc{background:linear-gradient(160deg,#f3f9f5,#fff);}

/* ==========================================================================
   院長紹介
   ========================================================================== */
.doctor{background:#fff;}
.doctor__inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:44px;align-items:start;}
.doctor__photo{
  position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;
  background:
    radial-gradient(110% 80% at 35% 12%, rgba(140,185,205,.5), transparent 60%),
    linear-gradient(160deg,#dce9ee,#b4ccd6);
  display:flex;align-items:flex-end;justify-content:center;
  box-shadow:0 12px 26px rgba(40,80,100,.14);
}
.doctor__imgnote{
  position:absolute;right:9px;bottom:8px;z-index:2;
  font-size:10.5px;font-weight:700;color:#fff;
  background:rgba(30,60,75,.55);padding:3px 8px;border-radius:4px;
}
.doctor__inner .sec__en,.doctor__inner .sec__ttl{text-align:left;}
.doctor__name{
  font-size:26px;font-weight:900;color:var(--ink-d);margin-bottom:16px;
  padding-bottom:14px;border-bottom:1px solid var(--bd);
}
.doctor__name span{display:block;font-size:13px;font-weight:600;color:var(--sub);margin-top:4px;}
.doctor__msg{font-size:15px;color:var(--ink);margin-bottom:22px;}
.doctor__msg b{color:var(--main-d);}
.spec{display:flex;flex-direction:column;gap:1px;background:var(--bd);border:1px solid var(--bd);border-radius:10px;overflow:hidden;}
.spec > div{display:flex;background:#fff;}
.spec dt{flex:none;width:150px;background:var(--main-l);padding:11px 14px;font-size:13.5px;font-weight:700;color:var(--main-d);}
.spec dd{padding:11px 14px;font-size:14px;}

/* ==========================================================================
   お客様の声
   ========================================================================== */
.voice{background:var(--wash);}
.vgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.vcard{background:#fff;border:1px solid var(--bd);border-radius:14px;padding:22px;box-shadow:var(--shadow);}
.vcard__head{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.vcard__av{
  width:42px;height:42px;border-radius:50%;flex:none;
  background:linear-gradient(160deg,#dce9ee,#b4ccd6);
  display:flex;align-items:center;justify-content:center;color:rgba(30,70,90,.5);
}
.vcard__av .ico{width:22px;height:22px;}
.vcard__meta{font-size:13px;font-weight:700;color:var(--ink-d);}
.vcard__txt{font-size:14px;color:var(--sub);}

/* ==========================================================================
   アクセス
   ========================================================================== */
.access{background:#fff;}
.access__grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;}
.itable{width:100%;border-collapse:collapse;font-size:14.5px;margin-bottom:26px;}
.itable th,.itable td{border-bottom:1px solid var(--bd);padding:12px 6px;text-align:left;vertical-align:top;}
.itable th{width:100px;font-weight:700;color:var(--main-d);}
.htable{width:100%;border-collapse:collapse;font-size:14px;text-align:center;}
.htable caption{font-weight:800;color:var(--ink-d);text-align:left;margin-bottom:8px;font-size:15px;}
.htable th,.htable td{border:1px solid var(--bd);padding:9px 4px;}
.htable thead th{background:var(--main);color:#fff;font-weight:700;}
.htable tbody th{background:var(--main-l);color:var(--main-d);font-weight:700;white-space:nowrap;font-size:13px;}
.htable td{font-weight:700;color:var(--main-d);}
.htable .half{color:#b06a2c;}
.htable__note{font-size:12.5px;color:var(--sub);margin-top:8px;}
.mapph{
  position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;margin-bottom:18px;
  background:linear-gradient(160deg,#eef3f5,#dbe6ea);
  border:1px dashed #b9c9d0;display:flex;align-items:center;justify-content:center;
}
.mapph__ico{
  width:54px;height:54px;
  stroke:var(--ico-soft);fill:none;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;
}
.access__ph{
  position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;
  background:
    radial-gradient(100% 80% at 60% 20%, rgba(140,185,205,.45), transparent 60%),
    linear-gradient(165deg,#dbe8ed,#b9d0da);
}

/* ==========================================================================
   予約CTA
   ========================================================================== */
.reserve{background:linear-gradient(160deg,var(--main),#1b4a5c);color:#fff;padding:80px 24px;}
.reserve__inner{text-align:center;}
.reserve__en{font-size:12px;letter-spacing:.28em;color:#a9d3e0;font-weight:700;margin-bottom:8px;}
.reserve__ttl{font-size:32px;font-weight:900;margin-bottom:14px;}
.reserve__lead{font-size:15.5px;color:#d6e7ed;margin-bottom:32px;}
.reserve__btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.reserve .btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.7);}
.reserve__note{font-size:12px;color:#a9c6d1;margin-top:18px;}

/* ---- フッター ---- */
.foot{background:#1a262e;color:#93a4ae;text-align:center;padding:34px 24px 40px;}
.foot__name{font-size:15px;font-weight:800;color:#e2eaee;margin-bottom:10px;}
.foot__name span{font-size:12px;font-weight:600;color:#93a4ae;}
.foot__txt{font-size:12px;line-height:1.9;margin-bottom:12px;}
.foot__credit{font-size:11px;color:#7d8f9a;margin-bottom:6px;}
.foot__credit a{color:inherit;}
.foot__copy{font-size:11px;color:#6f818c;}

/* ==========================================================================
   スマホ用・画面下固定バー（PCでは出さない）
   ========================================================================== */
.fixbar{display:none;}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width:900px){
  .symgrid{grid-template-columns:repeat(2,1fr);}
  .symcard--link{grid-column:span 2;}
  .vgrid{grid-template-columns:1fr;max-width:520px;margin:0 auto;}
  .access__grid{grid-template-columns:1fr;}
  .doctor__inner{grid-template-columns:1fr;gap:28px;}
  .doctor__photo{max-width:300px;}
  .pp__inner{grid-template-columns:1fr;gap:30px;}
  .pp__photo{max-width:320px;margin:0 auto;order:-1;}
}
@media (max-width:768px){
  .pc{display:none;}
  .gnav{display:none;}
  .head__inner{padding:9px 14px;gap:10px;justify-content:space-between;}
  .logo__txt{font-size:15px;}
  .sec{padding:56px 18px;}
  .sec__ttl,.pp__ttl{font-size:23px;}
  .sec__lead{margin-bottom:30px;}

  .hero{grid-template-columns:1fr;}
  .hero__photo{order:1;min-height:230px;aspect-ratio:16/10;}
  .hero__body{order:2;padding:32px 18px 36px;}
  .hero__catch{font-size:29px;}
  .hero__cta{flex-direction:column;}
  .hero__cta .btn{width:100%;}

  .symgrid{grid-template-columns:1fr;}
  .symcard--link{grid-column:span 1;}
  .symcard--link .symcard__body{flex-direction:column;align-items:flex-start;gap:10px;}
  .inlink{margin-left:0;}

  .spec > div{flex-direction:column;}
  .spec dt{width:100%;}

  .reserve{padding:60px 18px;}
  .reserve__ttl{font-size:24px;}
  .reserve__btns{flex-direction:column;}
  .reserve .btn{width:100%;}

  /* 下固定バーのぶん、本文の下に余白を作る */
  body{padding-bottom:88px;}   /* 下固定バー(約74px)より必ず大きく */
  .fixbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:rgba(255,255,255,.97);border-top:1px solid var(--bd);
    padding:8px 10px;gap:8px;box-shadow:0 -3px 14px rgba(30,60,75,.12);
    padding-bottom:calc(8px + env(safe-area-inset-bottom));
  }
  .fixbar__tel,.fixbar__line{
    display:flex;align-items:center;justify-content:center;gap:6px;
    text-decoration:none;font-weight:800;border-radius:9px;padding:12px 8px;font-size:15px;
  }
  .fixbar__tel{flex:0 0 32%;background:#fff;color:var(--main-d);border:2px solid var(--main);}
  .fixbar__line{flex:1;background:var(--line-g);color:#fff;box-shadow:0 3px 0 var(--line-gd);}
  .fixbar .ico{width:19px;height:19px;}
  .fixbar .ico--btn{margin-bottom:0;}
}
