/* Google Fonts: Zen Kaku Gothic New */
@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

/* サイト共通フォント */
html, body{
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------------------------------
   変数
--------------------------------- */
:root {
   --font: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
          "Segoe UI","Hiragino Kaku Gothic ProN","Hiragino Sans",
          "Yu Gothic","Meiryo",sans-serif;

  --color-primary: #BA9D04;
  --color-primary-light: #D4B24A;
  --color-dark: #333;
  --color-bg: #fff;
  --color-section: #F8F7F4;
  --max-width: 1160px;
}

/* ---------------------------------
   リセット & 共通
--------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* 全画像を対象にする例 */
.section__inner > img,
.menu-card img,
.about__media > img,
.ba__grid img{
  display: block;      /* インライン → ブロックに変更 */
  margin: 0 auto;      /* 左右マージンを自動計算 = 中央寄せ */
  height: auto;        /* 縦横比を維持して拡大縮小 */
  max-width: 100%;     /* はみ出し防止（任意）*/
}

a { color: inherit; text-decoration: none; }

    /* ===== Buttons ===== */
    .top-bar__cta .btn{border-radius:0;padding:.4rem 1.2rem;}
    .btn--line{background:#06C755;color:#fff;}
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity .2s;
  text-align: center;
}
.btn:hover { opacity: 0.8; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-light); }
.btn--secondary { background: var(--color-primary); color: #fff; }
.btn--secondary:hover { background: var(--color-primary-light); }
.btn--detail { background: var(--color-primary); color: #fff; }
.btn--detail:hover { background: var(--color-primary-light); }

.sp-only { display: none; }
@media (max-width: 640px) { 
.sp-only { display: inline; }
  .top-bar__cta .btn,
  .top-bar__tel{
    display:none;
  } }


/* ---------------------------------
   スティッキー CTA
--------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 0.6rem 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 9999;
  display: flex;
  justify-content: center;
}

/* ---------------------------------
   ヒーロー
--------------------------------- */
.hero {
  background: url("img/hada-siga_image01.jpg")
              center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6.5rem 1rem 8rem;
  position: relative;
}

.hero::after { /* オーバーレイ */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero__logo { width: 180px; margin-inline: auto 0; }

.hero__title {
  font-size: clamp(2.3rem, 5vw + 1rem, 3.4rem);
  line-height: 1.25;
  margin: 1.5rem auto 0.8rem;
  font-weight: 400;
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw + .6rem, 1.2rem);
  margin: 0 0 1.8rem;
}

.hero__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2rem;
}
.hero__benefits li {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.hero__cta { font-size: 1.2rem; }

.hero__note { font-size: .8rem; margin-top: 1rem; }

/* ---------------------------------
   セクション共通
--------------------------------- */
.lp-section { padding: 4.5rem 1rem; background: var(--color-section); }
.lp-section:nth-of-type(even) { background: #fff; }

.section__inner { max-width: var(--max-width); margin: 0 auto; }

.section__title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  text-align: center;
  margin: 0 0 2.8rem;
  position: relative;
}
.section__title::after {
  content: "";
  width: 70px; height: 3px;
  background: var(--color-primary);
  display: block;
  margin: 1rem auto 0;
}

/* ---------------------------------
   メニューカード
--------------------------------- */
.menu-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}
.menu-card:nth-child(even) { direction: rtl; }
.menu-card:nth-child(even) .menu-card__body { direction: ltr; }

.menu-card img { border-radius: 6px; }

.menu-card__body h3 {
  margin: 0 0 .6rem;
  font-size: 1.4rem;
}
.menu-card__body p { margin: 0; }

/* ---------------------------------
   Before / After
--------------------------------- */
/* ===== 症例紹介（Before / After） ===== */
.ba__grid{
  display: flex;              /* 横一列に並べる */
  gap: 2rem;                  /* 画像間のすき間 */
  justify-content: center;    /* セクション中央に寄せる（任意）*/
  flex-wrap: wrap;            /* 画面幅が狭いときは自動で折り返し */
}

.ba__grid figure{
  margin: 0;                  /* figure のデフォルト余白をリセット */
  text-align: center;         /* キャプションを中央寄せ（任意）*/
}

.ba__grid img{
  display: block;             /* 画像をブロック要素化（下に余白が出ない） */
  max-width: 100%;            /* レスポンシブ対応：枠をはみ出さない */
  height: auto;               /* 縦横比を維持して縮小 */
}
@media (min-width:640px){         /* タブレット以上 */
  .ba__grid figure{
    flex: 0 0 30%;               /* 2列レイアウト用：幅50% */
  }
}
/* ---------------------------------
   Voice
--------------------------------- */
.voice__list {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.voice__list blockquote {
  background: #fff;
  border-left: 4px solid var(--color-primary);
  margin: 0;
  padding: 1.5rem 1.2rem;
  border-radius: 4px;
  font-size: .95rem;
}
.voice__list span { font-size: .85rem; color: #666; }

/* ---------------------------------
   Reasons
--------------------------------- */


/* ===== Reasons ===== */
.reasons__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 共通設定 */
.reason{
  position: relative;
  overflow: hidden;
  min-height: 260px;              /* 高さはお好みで */
  padding: 1.5rem;
  color: #fff;
  background-size: cover;
  background-position: center;
}

/* 背景画像 */
.reason--img1{ background-image: url("img/hada-siga_image07.jpg"); }
.reason--img2{ background-image: url("img/hada-siga_image05.jpg"); }
.reason--img3{ background-image: url("img/hada-siga_image06.jpg"); }

/* 文字の上に乗る半透明オーバーレイ */
.reason__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);   /* 透明度は調整可能 */
  z-index: 0;
}

/* テキストを前面に */
.reason h3,
.reason p{
  position: relative;
  z-index: 1;
  margin: 0;
}

.reason h3{
  margin-bottom: .5em;
  font-size: 1.2rem;
  font-weight: 600;
}

.reason p{
  font-size: .9rem;
  line-height: 1.5;
}
/* ===================================================
   Reasons：Enhanced Card Design
   =================================================== */

/* グリッドの左右余白を気持ち広げる例（任意）*/
.reasons__grid.enhanced{
  gap: 2rem;
}

/* --- カード共通 ------------------------------------ */
.reasons__grid.enhanced .reason{
  border:2px solid rgba(255,255,255,.45);
  box-shadow:0 8px 26px rgba(0,0,0,.25);
  transition:transform .45s ease, box-shadow .45s ease;
  padding:2rem 1.6rem 2.4rem;      /* 余白拡張 */
}

/* 背景グラデ & 濃い目オーバーレイ */
.reasons__grid.enhanced .reason__overlay{
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.6) 65%
  );
  transition:background .45s ease;
}

/* --- ホバー効果 ------------------------------------ */
@media (hover:hover){              /* タッチ端末は除外 */
  .reasons__grid.enhanced .reason:hover{
    transform:translateY(-6px) scale(1.03);
    box-shadow:0 14px 34px rgba(0,0,0,.3);
  }
  .reasons__grid.enhanced .reason:hover .reason__overlay{
    background:linear-gradient(
      to bottom,
      rgba(0,0,0,.15) 0%,
      rgba(0,0,0,.72) 75%
    );
  }
}

/* --- 見出し & テキスト -------------------------------- */
.reasons__grid.enhanced .reason h3{
  font-size:1.4rem;
  font-weight:700;
  letter-spacing:.02em;
  margin:0 0 .6em;
  text-shadow:0 2px 4px rgba(0,0,0,.4);
  position:relative;
  padding-left:1.4rem;
}
.reasons__grid.enhanced .reason h3::before{  /* 装飾ライン */
  content:'';
  position:absolute;
  left:0; top:50%;
  width:6px; height:70%;
  transform:translateY(-50%);
  background:#BA9D04;            /* 好みで変更 */
}

.reasons__grid.enhanced .reason p{
  font-size:1rem;
  line-height:1.6;
}

/* --- スマホ調整 ------------------------------------- */
@media(max-width:640px){
  .reasons__grid.enhanced{
    gap:1.2rem;
  }
  .reasons__grid.enhanced .reason{
    padding:1.6rem 1.2rem 2rem;
  }
  .reasons__grid.enhanced .reason h3{
    font-size:1.25rem;
  }
}


/* ---------------------------------
   Flow
--------------------------------- */
.flow__list {
  list-style: decimal inside;
  padding: 0;
  margin: 0 auto;
  max-width: 540px;
}
.flow__list li { margin: .8rem 0; }

/* ---------------------------------
   FAQ
--------------------------------- */
.faq__item + .faq__item { margin-top: 1.6rem; }
.faq__item h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.faq__item p { margin: 0; }

/* ---------------------------------
   CTA
--------------------------------- */
.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.cta__catch {
  font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem);
  margin: 0 0 .4rem;
}
.cta__sub { margin: 0 0 2rem; font-size: 1.05rem; }
.cta__btn { font-size: 1.2rem; }
.cta__tel { margin-top: 1.4rem; font-size: .95rem; }

/* ---------------------------------
   フッター
--------------------------------- */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 4.2rem; /* 余白多め＝Sticky CTA と重ならない */
  font-size: .85rem;
}

/* ---------------------------------
   レスポンシブ
--------------------------------- */
@media (max-width: 900px) {
  .menu-card { grid-template-columns: 1fr; }
  .menu-card:nth-child(even) { direction: ltr; }
}
  /* ===== About grid ===== */
    .about__grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:flex-start;}
    .about__media .map{width:100%;height:260px;border:0;margin-top:1rem;}
    @media(max-width:900px){
      .about__grid{grid-template-columns:1fr;}
      .about__media .map{height:220px;}
    }

/* ========= Doctors layout ========= */
.doctor{
  display:flex;
  gap:2rem;
  align-items:center;
  margin-bottom:2.5rem;
}

/* --- 画像を丸く & 固定サイズ ----------------------------------- */
.doctor img{
  flex:0 0 180px;          /* 幅を固定しつつ shrink させない */
  width:180px;
  height:180px;
  object-fit:cover;        /* はみ出しをトリミング */
  border-radius:50%;       /* ← 円形にくり抜くポイント！ */
}

/* --- 偶数行だけ左右入れ替えてジグザグに ------------------------ */
.doctor:nth-child(even){
  flex-direction:row-reverse;
}

/* ========= モバイル（〜640px） ========= */
@media (max-width:640px){
  .doctor{
    flex-direction:column;   /* 画像→テキストの縦並び */
    align-items:center;
    text-align:center;
    gap:1.2rem;
  }
  .doctor img{
    width:160px;             /* 少し小さめに */
    height:160px;
  }
  .doctor:nth-child(even){
    flex-direction:column;   /* 交互レイアウトを解除 */
  }
}

/* === Fixed Top Bar === */
.top-bar {
  position: sticky; top: 0; width: 100%; z-index: 10000;
  background: #ffffffcc; backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e5e5;
  padding: .4rem 1rem .2rem;
}
.top-bar__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:1160px;margin:0 auto;}
.top-bar__logo img{height:38px;}
.top-bar__cta{display:flex;gap:.6rem;}
.top-bar__tel a{font-weight:700;font-size:.95rem;color:#333;}
.top-bar__note{font-size:.75rem;color:#666;margin:.2rem 0 0;text-align:center;}
body{padding-top:72px;}

/* ヒーローがバーと重ならないよう余白追加 */
.hero{padding-top:calc(6.5rem + 50px);} /* 50px はバー高に合わせ調整 */
@media(max-width:640px){.hero{padding-top:calc(6.5rem + 60px);} }



/* =========  クリニック情報セクション  ========= */
.clinic-info{max-width:970px; margin:0 auto; padding:3rem 1rem; text-align:center;}

/* --- TEL バナー ------------------------------------------------------- */
.contact-banner{
  background:var(--color-banner);
  padding:1.4rem 1rem;
  margin-bottom:2rem;
  display:inline-block;
  color:#fff;
}

.contact-label{
  position:relative;
  font-size:.9rem;
  letter-spacing:.15em;
  margin-right:1rem;
}
.contact-label::before,
.contact-label::after{
  content:"";
  display:inline-block;
  width:60px;
  height:1px;
  background:var(--color-white);
  vertical-align:middle;
  margin:0 .5rem;
}

.tel{font-size:1.85rem; font-weight:700; letter-spacing:.07em;}
.tel a{white-space:nowrap;}

/* --- 予約ボタン ------------------------------------------------------- */
.contact-buttons{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1.25rem;
  margin:0 0 2.5rem;
  padding:0;
  list-style:none;
color:#fff;
}

/* 個別色 */
.btn--line{background:var(--color-line);}
.btn--web{background:linear-gradient(135deg,var(--color-web-grad-from),var(--color-web-grad-to));}
.btn--caution{background:linear-gradient(135deg,var(--color-caution-grad-from),var(--color-caution-grad-to));}

.btn__icon{margin-right:.4em;}

/* --- 診療時間表 ------------------------------------------------------- */
.hours-box{
  border:1px solid ;
  padding:2rem 1rem;
  margin-bottom:3rem;
}

.hours-table{
  width:100%;
  border-collapse:collapse;
  color:var(--color-white);
  margin-bottom:1.2rem;
}
.hours-table th,
.hours-table td{
  padding:.8rem .2rem;
  font-weight:400;
}
.hours-table thead th{
  font-weight:600;
  border-bottom:1px solid var(--color-white);
}
.hours-table th:first-child,
.hours-table td:first-child{
}

.hours-table td,
.hours-table th{ text-align:center; }

.dot{font-size:1.1rem;}

/* --- Notes ------------------------------------------------------------ */
.hours-note{margin:0; font-size:.9rem; line-height:1.7;}

/* --- 所在地テーブル --------------------------------------------------- */
.info-table{
  width:100%;
  border-collapse:collapse;
  margin-top:3rem;
  font-size:.95rem;
}
.info-table th,
.info-table td{
  padding:.8rem .6rem;
  vertical-align:top;
}
.info-table th{
  width:6em;
  text-align:left;
  font-weight:600;
  letter-spacing:.1em;
}
.info-table tr+tr td{border-top:1px solid rgba(255,255,255,.2);}
.info-table tr+tr th{border-top:1px solid rgba(255,255,255,.2);}

/* --- 料金表タイトル --------------------------------------------------- */
.table-title{text-align:center;}
.table-title h3 {
  position: relative;
  display: inline-block;
  padding: 0 55px;
}

.table-title h3:before, .table-title h3:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}

.table-title h3:before {
  left:0;
}
.table-title h3:after {
  right: 0;
}

/* ===== 支払方法カード ===== */
.payment-list{
  display:flex;
  gap:2rem;                 /* カード間スペース */
  justify-content:center;
  padding:2.5rem 1rem 0;
  margin:0;
  list-style:none;

  /* スマホで横幅が足りないときに横スクロール */
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.payment-card{
  min-width:180px;          /* アイテム幅（必要に応じて調整） */
  flex:0 0 auto;            /* 折り返さず 1 行に並べる */
  text-align:center;
}
/* アイコン（figure）と中の画像を強制的に中央寄せ */
.payment-card__icon{
  margin: 0 auto 1rem;   /* ← 左右 auto で figure 自体を中央に */
}

.payment-card__icon img{
  display: block;        /* 余白の原因になる行内ベースラインを排除 */
  margin: 0 auto;        /* 念のため画像も中央に */
}
.payment-card__title{
  font-size:1.1rem;
  font-weight:600;
  margin:0 0 .3rem;
}
.payment-card__text{
  margin:0;
  font-size:.9rem;
  line-height:1.5;
}

/* =========================
   スマホ表示（〜640px 幅）
   ========================= */
@media (max-width:640px){
  /* 支払カードを縦並びに */
  .payment-list{
    flex-direction: column;  /* ← 横並び → 縦並び */
    overflow-x: visible;     /* 横スクロールを無効化 */
    gap: 1.5rem;             /* カード間の余白を少し狭く */
  }

  /* カードの幅を親いっぱい or 好きな幅に */
  .payment-card{
    min-width: 0;            /* 横幅制限を解除 */
    width: 100%;             /* 1 枚ずつフル幅に広げる */
    max-width: 380px;        /* 任意：広がり過ぎ防止 */
    margin: 0 auto;          /* 中央寄せ（max‑width 設定時）*/
  }
}


/* ===== 任意：PC で中央 970px 幅に合わせている場合は保護 ===== */
.lp-section.payment .section__inner{
  max-width:970px;
  margin:0 auto;
}

/* ===== 料金表を全幅に ===== */
.full-width-table{
  width:100%;            /* 親要素いっぱいに伸ばす */
  table-layout:fixed;    /* 列幅を均等に計算して崩れを防止（任意）*/
}