/* =====================================================================
   さとみデンタルクリニック 公式サイト  共通スタイル
   ビルド不要・素のCSS / モバイルファースト
   ブランド: 女性院長の安心感 × 清潔感(歯科)
   ===================================================================== */

/* ---------- デザイントークン ---------- */
:root {
  --teal:        #157f86;
  --teal-dark:   #0f5f64;
  --teal-soft:   #e6f2f2;
  --coral:       #e1738f;
  --coral-dark:  #c95576;
  --ink:         #2c3338;
  --muted:       #5d6b72;
  --bg:          #ffffff;
  --bg-soft:     #f1f7f7;
  --line:        #e3ecec;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 6px 24px rgba(21, 127, 134, .10);
  --shadow-sm:   0 2px 10px rgba(21, 127, 134, .08);
  --container:   1080px;
  --header-h:    64px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; margin-bottom: 32px; }
.section__en { display: block; color: var(--coral); font-size: .8rem; letter-spacing: .18em; font-weight: 700; margin-bottom: 6px; }
.section__title { font-size: 1.5rem; }
.section__lead { color: var(--muted); max-width: 640px; margin-inline: auto; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s; text-align: center;
  min-height: 48px; /* タップ領域確保 */
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-tel { background: var(--teal); color: #fff; }
.btn-tel:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); height: var(--header-h);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand__en { font-size: .62rem; letter-spacing: .14em; color: var(--coral); }
.nav { display: none; }
.nav__list { display: flex; gap: 22px; align-items: center; }
.nav__list a { color: var(--ink); font-size: .92rem; font-weight: 500; }
.nav__list a:hover { color: var(--teal-dark); }
.header__cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイル展開メニュー */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; background: #fff; z-index: 40;
  transform: translateX(100%); transition: transform .28s ease; padding: 24px 20px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 16px 8px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; background: linear-gradient(135deg, var(--teal-soft), #fdf0f3);
  overflow: hidden;
}
.hero__inner { display: grid; gap: 24px; padding: 44px 0 48px; }
.hero__catch { font-size: 1.9rem; letter-spacing: .01em; }
.hero__catch .accent { color: var(--coral-dark); }
.hero__sub { color: var(--muted); font-size: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background:
    repeating-linear-gradient(45deg, #dfeeee, #dfeeee 14px, #e9f4f4 14px, #e9f4f4 28px);
  display: grid; place-items: center; color: var(--teal-dark); font-size: .85rem; box-shadow: var(--shadow);
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  background: #fff; color: var(--teal-dark); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-sm);
}

/* ---------- 強み3本柱 ---------- */
.pillars { display: grid; gap: 16px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.pillar__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 12px; }
.pillar__title { font-size: 1.1rem; }
.pillar__title .num { color: var(--coral); font-size: .85rem; margin-right: 6px; }

/* ---------- 診療案内カード ---------- */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-dark); font-size: .8rem; }
.card__body { padding: 18px 20px; flex: 1; }
.card__title { font-size: 1.05rem; margin-bottom: .4em; }
.card__desc { color: var(--muted); font-size: .92rem; margin: 0; }
.card__note { display: inline-block; margin-top: 10px; font-size: .74rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }

/* ---------- 院長紹介 ---------- */
.director { display: grid; gap: 24px; align-items: center; }
.director__photo { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); background: linear-gradient(160deg, #e9f4f4, #fbeef2); display: grid; place-items: center; color: var(--teal-dark); font-size: .85rem; box-shadow: var(--shadow); }
.director__name { font-size: 1.25rem; margin-bottom: .2em; }
.director__role { color: var(--coral-dark); font-weight: 600; font-size: .9rem; margin-bottom: 1em; }

/* ---------- アクセス / 診療時間 ---------- */
.info-grid { display: grid; gap: 24px; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours th, .hours td { border: 1px solid var(--line); padding: 10px 6px; text-align: center; font-size: .9rem; }
.hours thead th { background: var(--teal); color: #fff; font-weight: 600; }
.hours td.off { color: var(--coral-dark); }
.access__map { aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--teal); display: grid; place-items: center; color: var(--teal-dark); font-size: .85rem; text-align: center; padding: 16px; }
.dl-info { margin: 0; }
.dl-info div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl-info dt { flex: 0 0 84px; color: var(--muted); font-size: .88rem; }
.dl-info dd { margin: 0; font-weight: 500; }

/* ---------- 予約・問い合わせフォーム ---------- */
.reserve { background: linear-gradient(135deg, #fdf0f3, var(--teal-soft)); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow); max-width: 640px; margin-inline: auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--coral-dark); font-size: .78rem; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fdfefe;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.form-note { font-size: .8rem; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin-top: 4px; }
.tel-card { text-align: center; margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.tel-card .num { font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); letter-spacing: .02em; }

/* ---------- フッター ---------- */
.footer { background: var(--teal-dark); color: #dceeee; padding: 40px 0 110px; font-size: .9rem; } /* 下の余白はモバイル固定バー分 */
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 24px; }
.footer__name { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .4em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: .78rem; color: #b9dada; }

/* ---------- モバイル固定CTAバー ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.mobile-cta .btn { padding: 12px 8px; font-size: .9rem; min-height: 50px; }

/* ===================================================================
   レスポンシブ（タブレット〜PC）
   =================================================================== */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .section { padding: 80px 0; }
  .section__title { font-size: 1.9rem; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 70px 0; }
  .hero__catch { font-size: 2.6rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .director { grid-template-columns: 320px 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer__grid { grid-template-columns: 2fr 1fr; }
  .footer { padding-bottom: 40px; }

  .nav { display: block; }
  .header__cta { display: inline-flex; gap: 10px; }
  .nav-toggle, .mobile-nav, .mobile-cta { display: none; }
}

@media (min-width: 1024px) {
  .hero__catch { font-size: 2.9rem; }
}

/* アクセシビリティ: モーション低減 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
