/* =========================================================
   Sky Dental Clinic  サイト枠組み
   配色: パンフレット準拠（紺・スカイブルー基調 × コーラル差し色）
   条件: 色 / 構成 / スマホ対応（モバイルファースト）
   ========================================================= */

/* ---------- カラー変数（パンフレット抽出色） ---------- */
:root {
  --navy: #26295b;        /* ナス紺：濃い紺（やや紫み）— 見出し・締め */
  --navy-dark: #1b1d45;   /* さらに濃いナス紺 */
  --sky: #33a7dd;         /* スカイブルー：明るい青（メインアクセント） */
  --sky-dark: #1f90c8;
  --cerulean: #1c7cc2;    /* セルリアンブルー：水色の役割・中間の青 */
  --sky-light: #7ec6ec;   /* スカイブルーの淡い版 */
  --sky-pale: #cbe6f7;    /* ごく淡いブルー */
  --tint: #eaf4fb;        /* 背景用の淡いブルー */
  --coral: #EA6464;       /* 差し色：CTA・強調 */
  --coral-dark: #d84f4f;
  --cream: #F3EFDE;

  --text: #34434b;
  --text-light: #6c7a82;
  --white: #ffffff;
  --border: #e3ebef;

  /* ロゴ用の明朝体（Mac/iPhone→ヒラギノ明朝、Windows→游明朝、その他→Noto Serif JP） */
  --font-mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho,
                 "Noto Serif JP", "MS PMincho", serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(63, 109, 137, 0.10);
  --shadow-sm: 0 4px 14px rgba(63, 109, 137, 0.08);
  --max-width: 1100px;
  --header-h: 70px;
}

/* ---------- リセット / 基本 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 46px); }
body {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "M PLUS Rounded 1c",
               "Kosugi Maru", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 22px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--cta { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(234,100,100,.32); }
.btn--cta:hover { background: var(--coral-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--light { background: #fff; color: var(--navy); }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* ロゴはすべて明朝体（ヘッダー・フッター共通） */
.brand__name, .brand__sub,
.footer__brand strong, .footer__brand p {
  font-family: var(--font-mincho);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 52px; width: auto; display: block; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-size: 24px; color: var(--navy); letter-spacing: .04em; }
.brand__sub { font-size: 11px; color: var(--text-light); }

.header__contact { display: flex; align-items: center; gap: 18px; }
.header__tel { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.header__tel-label { font-size: 11px; color: var(--text-light); }
.header__tel-num { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }

/* ---------- グローバルナビ ---------- */
.gnav { border-top: 1px solid var(--border); background: #fff; }
.gnav__list { display: flex; justify-content: center; gap: 2px; }
.gnav__list a {
  display: block; padding: 14px 15px; font-size: 14px; font-weight: 600; color: var(--text);
  position: relative; transition: color .15s;
}
.gnav__list a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 8px; height: 2px;
  background: var(--sky); transform: scaleX(0); transition: transform .2s; border-radius: 2px;
}
.gnav__list a:hover { color: var(--sky); }
.gnav__list a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .25s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--sky) 0%, var(--cerulean) 50%, var(--navy) 100%);
  color: #fff; padding: 70px 0 90px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero__lead {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  background: rgba(255,255,255,.18); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero__title { font-size: 34px; line-height: 1.55; margin-bottom: 20px; font-weight: 800; }
.hero__desc { font-size: 16px; opacity: .96; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media-ph {
  aspect-ratio: 4 / 3; background: rgba(255,255,255,.16);
  border: 2px dashed rgba(255,255,255,.6); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700;
}
.hero__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 18px 40px rgba(20,60,80,.28);
}
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  line-height: 0; pointer-events: none;
}
.hero__wave svg { display: block; width: 100%; height: 72px; }

/* ---------- セクション共通 ---------- */
.section { padding: 74px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.section__head { text-align: center; margin-bottom: 46px; }
.section__en { color: var(--sky); font-weight: 800; letter-spacing: .14em; font-size: 12px; }
.section__head--light .section__en { color: var(--sky-light); }
.section__title { font-size: 27px; color: var(--navy); margin-top: 8px; font-weight: 800; }
.section__head--light .section__title { color: #fff; }
.section__note { font-size: 13px; color: var(--text-light); margin-top: 14px; max-width: 640px; margin-inline: auto; }
.section__note--light { color: rgba(255,255,255,.85); }

/* ---------- ご挨拶 / 本文ブロック ---------- */
.greeting { max-width: 780px; margin-inline: auto; text-align: center; }
.greeting__catch { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.7; margin-bottom: 24px; }
.greeting__text { font-size: 16px; color: var(--text); margin-bottom: 16px; text-align: left; }
.greeting__text strong { color: var(--coral); }
.greeting__figure { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.greeting__figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

/* ---------- カード ---------- */
.cards { display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 26px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border); position: relative;
}
.card__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--cerulean)); color: #fff;
  font-size: 20px; font-weight: 800; margin-bottom: 14px;
}
.card__title { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.card__text { font-size: 15px; color: var(--text-light); text-align: left; }

/* ---------- 保険 vs 自費 比較 ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.compare__col { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.compare__col--accent { border: 2px solid var(--sky); }
.compare__name { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.compare__note { font-size: 14px; color: var(--text-light); margin-bottom: 18px; }
.compare__list li { position: relative; padding: 8px 0 8px 30px; font-size: 15px; border-bottom: 1px dashed var(--border); }
.compare__list li::before { position: absolute; left: 0; top: 8px; font-weight: 800; }
.compare__list li.is-pro::before { content: "◎"; color: var(--sky); }
.compare__list li.is-con::before { content: "△"; color: var(--coral); }

/* ---------- 危険性セクションの写真 ---------- */
.risk__figure { max-width: 620px; margin: 0 auto 34px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.risk__figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

/* ---------- 危険性カード（濃色背景上） ---------- */
.risk-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 30px 26px; }
.risk-card__title { font-size: 18px; color: #fff; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.22); }
.risk-card__text { font-size: 15px; color: rgba(255,255,255,.9); }

/* ---------- 料金カード ---------- */
.price-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.price-card__thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; background: var(--tint); }
.price-card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.price-card__name { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.price-card__price { font-size: 28px; font-weight: 800; color: var(--coral); margin-bottom: 16px; }
.price-card__price span { font-size: 14px; font-weight: 600; color: var(--text-light); }
.price-card__list li { position: relative; padding: 6px 0 6px 22px; font-size: 15px; color: var(--text); }
.price-card__list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

/* ---------- GDS ---------- */
.gds { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.gds__intro {
  background: linear-gradient(135deg, var(--sky) 0%, var(--cerulean) 50%, var(--navy) 100%); color: #fff;
  border-radius: var(--radius); padding: 38px 32px; box-shadow: var(--shadow);
}
.gds__badge { display: inline-block; background: var(--coral); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; }
.gds__lead { font-size: 16px; line-height: 1.9; margin-bottom: 22px; }
.gds__price { font-size: 30px; font-weight: 800; }
.gds__price span { font-size: 15px; font-weight: 600; opacity: .9; }
.gds__points { display: grid; gap: 18px; }
.gds__points li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.gds__num { flex: none; font-size: 24px; font-weight: 800; color: var(--sky); line-height: 1; }
.gds__points h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.gds__points p { font-size: 15px; color: var(--text-light); }

/* ---------- 院長プロフィール ---------- */
.doctor { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.doctor__photo-ph {
  aspect-ratio: 3 / 4; background: var(--tint); border: 2px dashed var(--sky-light);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--text-light); font-weight: 700;
}
.doctor__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.doctor__role { font-size: 14px; color: var(--sky); font-weight: 700; }
.doctor__name { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 22px; }
.doctor__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.doctor__h { font-size: 16px; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--sky-pale); }
.doctor__list li { font-size: 15px; padding: 5px 0; color: var(--text); }

/* ---------- アクセス ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.access__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.access__table th, .access__table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.access__table th { width: 32%; background: var(--tint); color: var(--navy); font-weight: 700; }
.access__table a { color: var(--sky); font-weight: 800; }
.access__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.access__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- 自費診療のリスク・副作用 ---------- */
.risks { display: grid; gap: 18px; max-width: 900px; margin-inline: auto; }
.risks__block {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.risks__block--common { background: var(--tint); border-color: var(--sky-pale); }
.risks__block--alert { border-color: var(--coral); }
.risks__title {
  font-size: 18px; color: var(--navy); margin-bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.risks__price { font-size: 13px; font-weight: 700; color: var(--coral); }
.risks__list li { position: relative; padding: 7px 0 7px 20px; font-size: 15px; color: var(--text); line-height: 1.85; }
.risks__list li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sky);
}
.risks__block--alert .risks__list li::before { background: var(--coral); }
.risks__list strong { color: var(--navy); font-weight: 700; }
.risks__note {
  max-width: 900px; margin: 26px auto 0; text-align: center;
  font-size: 14px; color: var(--text-light); line-height: 2;
}
.risks__note a { color: var(--sky); font-weight: 800; }

/* ---------- 関連サイトバナー ---------- */
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.banner {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.banner:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(63,109,137,.16); border-color: var(--sky); }
.banner__icon {
  flex: none; width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--cerulean));
  box-shadow: 0 6px 16px rgba(28,124,194,.28);
}
.banner__icon svg { width: 32px; height: 32px; }
.banner__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.banner__label { font-size: 12px; font-weight: 700; color: var(--sky); letter-spacing: .05em; }
.banner__title { font-size: 17px; color: var(--navy); margin: 2px 0 4px; }
.banner__desc { font-size: 13px; color: var(--text-light); }
.banner__arrow { flex: none; font-size: 20px; color: var(--sky); font-weight: 800; transition: transform .15s ease; }
.banner:hover .banner__arrow { transform: translateX(4px); }

/* ---------- よくある質問（FAQ） ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__q {
  list-style: none; cursor: pointer; padding: 20px 52px 20px 22px; position: relative;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before { content: "Q"; color: var(--sky); font-weight: 800; margin-right: 10px; }
.faq__q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--sky); font-weight: 400; transition: transform .2s;
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 22px 22px 22px; font-size: 15px; color: var(--text-light); line-height: 1.9; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--cerulean) 55%, var(--sky) 100%); color: #fff; padding: 66px 0; text-align: center; }
.cta__title { font-size: 27px; margin-bottom: 12px; font-weight: 800; }
.cta__text { opacity: .96; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- 追従ネット予約ボタン（FAB） ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--coral); color: #fff; font-weight: 800;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(234,100,100,.45);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fab:hover { transform: translateY(-3px); background: var(--coral-dark); box-shadow: 0 14px 30px rgba(234,100,100,.5); }
.fab__icon { font-size: 24px; line-height: 1; }
.fab__text { font-size: 14px; line-height: 1.25; }

/* ---------- フッター ---------- */
.footer { background: var(--navy-dark); color: #cdd9e0; padding: 50px 0 22px; }
.footer__inner { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.footer__brand strong { color: #fff; font-size: 20px; display: block; margin-bottom: 10px; letter-spacing: .04em; }
.footer__brand p { font-size: 14px; }
.footer__nav { display: grid; gap: 9px; }
.footer__nav a { font-size: 14px; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__copy { text-align: center; font-size: 12px; color: #8ba0ac; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }

/* =========================================================
   レスポンシブ（スマホ対応）
   ========================================================= */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .banners { grid-template-columns: 1fr; }
  .gds { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 300px; margin-inline: auto; }
}

@media (max-width: 680px) {
  /* ヘッダー */
  .header__inner { flex-wrap: wrap; }
  .header__contact .btn--cta { display: none; }
  .header__tel-label { display: none; }
  .header__tel-num { font-size: 18px; }
  .nav-toggle { display: flex; }
  .brand__sub { display: none; }
  .brand__logo { height: 44px; }
  .brand__name { font-size: 20px; }

  /* ナビをドロワー化 */
  .gnav { position: absolute; left: 0; right: 0; top: 100%; display: none; box-shadow: var(--shadow); }
  .gnav.is-open { display: block; }
  .gnav__list { flex-direction: column; gap: 0; padding: 0; }
  .gnav__list li { border-bottom: 1px solid var(--border); }
  .gnav__list a { padding: 16px 22px; }
  .gnav__list a::after { display: none; }

  /* 余白・文字 */
  .section { padding: 50px 0; }
  .hero { padding: 46px 0 64px; }
  .hero__wave svg { height: 42px; }
  .hero__title { font-size: 26px; }
  .section__title { font-size: 22px; }
  .greeting__catch { font-size: 18px; }

  /* グリッドを1列に */
  .cards--3, .cards--2, .compare, .access, .doctor__cols, .banners { grid-template-columns: 1fr; }

  /* ボタン全幅 */
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; }

  /* 追従ボタンはスマホでコンパクトに */
  .fab { right: 14px; bottom: 14px; padding: 12px 18px; gap: 8px; }
  .fab__icon { font-size: 21px; }
  .fab__text { font-size: 12.5px; }
}
