@charset "UTF-8";

/* =========================================================
   みなも歯科・小児歯科（デモサイト）
   Irodori Web / ハナ
   ---------------------------------------------------------
   1本目の工務店とは意図的に別の顔にしている。
   ・明朝 → ゴシック   ・木の色 → くすみブルー
   ・角丸なし → 角丸あり ・PC優先 → スマホ優先
   ========================================================= */

:root {
  --white:  #ffffff;
  --pale:   #f2f5f7;   /* 淡いブルーグレー。セクション背景 */
  --ink:    #333b40;   /* 文字 */
  --ink-sub:#6d777d;   /* 補助テキスト */
  --blue:   #4a7a96;   /* アクセント（くすみブルー） */
  --blue-lt:#dbe7ee;   /* 淡いブルー。帯や囲み */
  --mint:   #7fb3a8;   /* 差し色。小児まわりだけ */
  --line:   #dfe5e9;

  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;

  --pad-section: 100px;
  --wrap: 1120px;
  --wrap-text: 720px;
  --radius: 14px;

  --bar-h: 62px;       /* スマホ下部の固定バーの高さ */
}

/* ---------- リセット ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 共通 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-text { max-width: var(--wrap-text); }
.section { padding-block: var(--pad-section); }
.section--pale { background: var(--pale); }

.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 14px;
}
.heading {
  font-size: 27px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.heading--center { text-align: center; }
.heading small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-sub);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  padding: 17px 40px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 14px rgba(74, 122, 150, 0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74, 122, 150, 0.3); }
.btn--ghost {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--blue-lt); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.more::after { content: "→"; transition: transform 0.3s; }
.more:hover::after { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 2px 12px rgba(51, 59, 64, 0.07); }
.header__logo { font-size: 19px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.3; }
.header__logo span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-sub);
  letter-spacing: 0.16em;
  margin-top: 3px;
}
.header__right { display: flex; align-items: center; gap: 24px; }
.gnav ul { display: flex; gap: 26px; }
.gnav a { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; position: relative; padding-block: 4px; }
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: inline-flex; }
.header__cta .btn { padding: 12px 26px; font-size: 13.5px; }
.burger { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding-top: 74px; }
.hero__img {
  width: 100%;
  height: min(64vh, 560px);
  object-fit: cover;
}
.hero__copy {
  position: absolute;
  left: 6%;
  top: 52%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  padding: 40px 46px;
  border-radius: var(--radius);
  max-width: 560px;
}
.hero__copy h1 {
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.75;
  letter-spacing: 0.04em;
}
.hero__copy p { margin: 16px 0 0; font-size: 15px; color: var(--ink-sub); }

/* 診療時間の要約バー（ヒーロー直下） */
.info-bar {
  background: var(--blue);
  color: var(--white);
}
.info-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  flex-wrap: wrap;
}
.info-bar__item { font-size: 14px; }
.info-bar__item strong { font-size: 16px; letter-spacing: 0.04em; }
.info-bar__item span { opacity: 0.85; margin-right: 10px; font-size: 12px; }

/* ---------- 診療時間表 ---------- */
.hours {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hours th, .hours td {
  padding: 15px 8px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.hours thead th {
  background: var(--blue-lt);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hours tbody th { text-align: left; padding-left: 18px; font-weight: 400; color: var(--ink-sub); white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .off { color: var(--ink-sub); }
.hours-note { font-size: 13px; color: var(--ink-sub); margin-top: 16px; }

/* ---------- 不安リスト（はじめての方へ 誘導） ---------- */
.worry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.worry__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--line);
}
.worry__item p:first-child {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--blue);
}
.worry__item p:last-child { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 1.9; }

/* ---------- 診療案内カード ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
}
a.menu-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(51, 59, 64, 0.09); }
.menu-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--pale); }
.menu-card__img img { width: 100%; height: 100%; object-fit: cover; }
.menu-card__body { padding: 24px 24px 28px; flex: 1; }
.menu-card__title { font-size: 17px; margin-bottom: 10px; }
.menu-card__text { font-size: 13.5px; color: var(--ink-sub); line-height: 1.9; margin: 0; }

/* ---------- 院内のようす（写真グリッド） ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.photo-grid figcaption { font-size: 12.5px; color: var(--ink-sub); margin-top: 9px; }
.photo-grid .span2 { grid-column: span 2; }
.photo-grid .span2 img { aspect-ratio: 3 / 2; }

/* ---------- 考え方（テキストブロック） ---------- */
.policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.policy__item { border-top: 3px solid var(--blue); padding-top: 22px; }
.policy__num { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.16em; }
.policy__title { font-size: 18px; margin: 10px 0 12px; }
.policy__text { font-size: 14px; color: var(--ink-sub); margin: 0; }

/* ---------- アクセス ---------- */
.access { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.access__img img { width: 100%; border-radius: var(--radius); }
.access dl { margin: 0; }
.access dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.14em;
  margin-top: 22px;
}
.access dt:first-child { margin-top: 0; }
.access dd { margin: 6px 0 0; font-size: 15px; }

/* ---------- よくある質問 ---------- */
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 14px;
}
.faq__q {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  gap: 12px;
}
.faq__q::before { content: "Q"; color: var(--blue); font-weight: 700; }
.faq__a { margin: 0; font-size: 14px; color: var(--ink-sub); display: flex; gap: 12px; line-height: 1.95; }
.faq__a::before { content: "A"; color: var(--ink-sub); font-weight: 700; flex-shrink: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__title { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.7; margin-bottom: 18px; }
.cta__text { font-size: 14.5px; color: var(--ink-sub); margin-bottom: 34px; }
.cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 下層ページ ---------- */
.page-head {
  padding: 130px 0 54px;
  background: var(--pale);
  text-align: center;
}
.page-head__en { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--blue); margin-bottom: 12px; }
.page-head__ja { font-size: 28px; letter-spacing: 0.05em; }
.page-head__text { margin: 20px auto 0; max-width: 660px; font-size: 14.5px; color: var(--ink-sub); }

/* 手順（はじめての方へ） */
.steps { counter-reset: step; }
.steps__item {
  position: relative;
  padding: 0 0 42px 62px;
  border-left: 2px solid var(--blue-lt);
  margin-left: 18px;
}
.steps__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps__item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -19px; top: -4px;
  width: 36px; height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.steps__title { font-size: 18px; margin-bottom: 10px; }
.steps__text { font-size: 14px; color: var(--ink-sub); margin: 0; }

/* 持ち物・箇条書き */
.checklist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.checklist li { position: relative; padding-left: 28px; font-size: 15px; margin-bottom: 12px; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

/* 注記ボックス */
.note-box {
  background: var(--blue-lt);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.95;
}
.note-box strong { color: var(--blue); }

/* 料金表 */
.price-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 18px 20px; font-size: 14.5px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { background: var(--blue-lt); font-size: 13px; letter-spacing: 0.06em; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }

/* フォーム */
.form-note {
  background: var(--blue-lt);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 13.5px;
  line-height: 1.95;
  margin-bottom: 48px;
}
.form-row { margin-bottom: 30px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.form-row .req {
  font-size: 10.5px;
  background: var(--blue);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: 2px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 122, 150, 0.12);
}
.form-submit { text-align: center; margin-top: 44px; }

/* ---------- フッター ---------- */
.footer { background: var(--pale); padding: 64px 0 32px; font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__logo { font-size: 19px; font-weight: 700; }
.footer__addr { margin-top: 14px; color: var(--ink-sub); font-size: 13.5px; line-height: 1.95; }
.footer__nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__nav a { font-size: 13.5px; }

.demo-note {
  margin-top: 30px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-sub);
}
.demo-note strong { color: var(--ink); }
.copyright { margin-top: 24px; font-size: 11px; color: var(--ink-sub); text-align: center; letter-spacing: 0.08em; }

/* ---------- スマホ下部の固定バー（今回いちばんの見せ場） ---------- */
.fixed-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--white);
  box-shadow: 0 -2px 14px rgba(51, 59, 64, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.fixed-bar ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.fixed-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--bar-h);
  font-size: 11.5px;
  font-weight: 700;
  border-right: 1px solid var(--line);
}
.fixed-bar li:last-child a { border-right: 0; }
.fixed-bar .ico { width: 21px; height: 21px; }
.fixed-bar .is-primary { background: var(--blue); color: var(--white); }
.fixed-bar .is-line { background: var(--mint); color: var(--white); }

/* ---------- スクロールで浮かび上がる ---------- */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   スマートフォン
   ========================================================= */
@media (max-width: 900px) {
  :root { --pad-section: 60px; }

  body { font-size: 15px; padding-bottom: var(--bar-h); }  /* 固定バーの分だけ空ける */

  .header { padding: 12px 18px; }
  .header__logo { font-size: 17px; }
  .header__right { gap: 12px; }
  .header__cta { display: none; }   /* スマホは下の固定バーに任せる */

  .burger {
    display: block;
    width: 26px; height: 17px;
    position: relative;
    background: none; border: 0; padding: 0;
    z-index: 110;
    cursor: pointer;
  }
  .burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s, opacity 0.25s; }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: 50%; }
  .burger span:nth-child(3) { bottom: 0; }
  .burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(22deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-22deg); }

  .gnav {
    position: fixed;
    inset: 0 0 var(--bar-h) 0;
    background: var(--white);
    display: grid;
    place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    z-index: 105;
  }
  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 26px; text-align: center; }
  .gnav a { font-size: 16px; }

  .hero { padding-top: 58px; }
  .hero__img { height: 46vh; min-height: 260px; }
  .hero__copy {
    position: static;
    transform: none;
    max-width: none;
    margin: -40px 18px 0;
    padding: 26px 24px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(51, 59, 64, 0.08);
  }
  .hero__copy h1 { font-size: 21px; line-height: 1.8; }

  /* スマホでは診療時間の帯が折り返して窮屈になるので、文字を少し小さくする */
  .info-bar .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 16px; }
  .info-bar__item { font-size: 12.5px; line-height: 1.7; }
  .info-bar__item strong { font-size: 13.5px; }
  .info-bar__item span { display: inline-block; min-width: 4.5em; font-size: 11px; margin-right: 6px; }

  .worry, .menu-grid, .policy { grid-template-columns: 1fr; gap: 16px; }
  .policy { gap: 28px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-grid .span2 { grid-column: span 2; }
  .access { grid-template-columns: 1fr; gap: 28px; }

  .hours th, .hours td { padding: 12px 4px; font-size: 13px; }
  .hours tbody th { padding-left: 10px; font-size: 12.5px; }

  .heading { font-size: 21px; margin-bottom: 24px; }
  .page-head { padding: 96px 0 40px; }
  .page-head__ja { font-size: 22px; }

  .steps__item { padding-left: 46px; margin-left: 14px; }
  .checklist { padding: 22px 24px; }
  .price-table th, .price-table td { padding: 14px 12px; font-size: 13.5px; }

  .fixed-bar { display: block; }   /* ← スマホでだけ出す */

  .footer { padding-bottom: 24px; }
  .footer__top { flex-direction: column; gap: 24px; }
}
