@charset "UTF-8";
/* =============================================================
   あおば歯科クリニック - 共通スタイルシート
   設計: モバイルファースト / CSSカスタムプロパティによるデザイントークン
   目次:
     1. デザイントークン (:root)
     2. リセット & ベース
     3. タイポグラフィ
     4. レイアウト (container / section)
     5. ボタン
     6. ヘッダー & ナビゲーション (ハンバーガー)
     7. フッター
     8. ヒーロー
     9. セクション見出し / 共通パーツ
    10. カード (特徴 / 診療案内)
    11. ページヘッダー & パンくず
    12. 診療時間テーブル
    13. アクセス / 情報リスト
    14. CTAバンド
    15. フォーム
    16. FAQ アコーディオン
    17. ユーティリティ & アニメーション
    18. レスポンシブ
   ============================================================= */

/* 1. デザイントークン -------------------------------------------------- */
:root {
  /* カラー: 白基調 + ティール(青緑)1色 */
  --c-primary: #2b8c88;
  --c-primary-dark: #1f6f6b;
  --c-primary-light: #4fb3ae;
  --c-primary-50: #eef7f6;
  --c-primary-100: #d9edeb;
  --c-primary-200: #b9ddda;

  --c-heading: #1c2b2a;
  --c-text: #2b3a39;
  --c-text-muted: #5e706e;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f9f8;
  --c-bg-tint: #eef7f6;
  --c-border: #e1ebea;
  --c-white: #ffffff;

  /* 機能色 (装飾ではなくUI用) */
  --c-danger: #c0392b;
  --c-danger-bg: #fcefed;
  --c-success: #1f8a5b;
  --c-success-bg: #e9f6f0;

  /* タイポグラフィ */
  --font-base: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  --lh-base: 1.85;
  --lh-tight: 1.45;

  /* スペーシングスケール */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* レイアウト */
  --container: 1120px;
  --container-narrow: 780px;
  --header-h: 68px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* 影 */
  --shadow-sm: 0 1px 2px rgba(28, 43, 42, 0.06), 0 1px 3px rgba(28, 43, 42, 0.04);
  --shadow: 0 6px 20px rgba(28, 43, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(28, 43, 42, 0.12);

  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. リセット & ベース ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: var(--c-primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-primary);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* スキップリンク (アクセシビリティ) */
.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--c-primary-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 3. タイポグラフィ ---------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--c-heading);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
}
h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

strong {
  font-weight: 700;
  color: var(--c-heading);
}

/* 4. レイアウト -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.section--tint {
  background: var(--c-bg-alt);
}

.section--primary {
  background: var(--c-bg-tint);
}

main {
  display: block;
}

/* 5. ボタン ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(43, 140, 136, 0.28);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(43, 140, 136, 0.34);
}

.btn--outline {
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: inset 0 0 0 2px var(--c-primary-200);
}

.btn--outline:hover {
  color: var(--c-primary-dark);
  box-shadow: inset 0 0 0 2px var(--c-primary);
  background: var(--c-primary-50);
}

.btn--ghost {
  padding-inline: 0.5rem;
  color: var(--c-heading);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* 6. ヘッダー & ナビゲーション ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h); /* JS注入前のレイアウトシフトを防止 */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition),
    background-color var(--transition);
}

/* メニュー展開中は背面スクロールを固定 */
.no-scroll {
  overflow: hidden;
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* ブランド / ロゴ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-heading);
  line-height: 1.2;
  flex: none;
}

.brand:hover {
  color: var(--c-heading);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand__name {
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.brand__sub {
  display: block;
  font-family: var(--font-base);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-primary);
}

/* ナビ本体 */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.5rem 0.95rem;
  color: var(--c-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-list a:hover {
  color: var(--c-primary-dark);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--c-primary-dark);
  font-weight: 700;
}

.nav__cta {
  margin-left: 0.75rem;
}

.nav__tel {
  display: none;
}

/* ハンバーガーボタン */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  flex: none;
}

.nav-toggle:hover {
  background: var(--c-primary-50);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* モバイル時のナビパネル背景 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 43, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}

.site-header.is-open ~ .nav-backdrop,
.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* 7. フッター ---------------------------------------------------------- */
.site-footer {
  background: #1a2b2a;
  color: #c9d6d5;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.footer-brand .brand,
.footer-brand .brand__name {
  color: #fff;
}

.footer-brand p {
  margin-top: 1rem;
  color: #9fb2b0;
  max-width: 34ch;
  line-height: 1.9;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links li + li {
  margin-top: 0.6rem;
}

.footer-links a {
  color: #c9d6d5;
}

.footer-links a:hover {
  color: var(--c-primary-light);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: #c9d6d5;
}

.footer-contact .footer-tel {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
}

.footer-hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.86rem;
}

.footer-hours th,
.footer-hours td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.4rem;
  text-align: center;
}

.footer-hours th {
  color: #fff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8ba09e;
}

/* 8. ヒーロー ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-primary-50) 0%, #ffffff 60%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--c-primary-100), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  grid-template-columns: 1fr;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-primary);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--c-primary);
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--c-text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__points svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--c-primary);
  flex: none;
}

/* ヒーロービジュアル */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.hero-visual__blob {
  position: absolute;
  inset: 6% 6% 6% 6%;
  background: linear-gradient(150deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  box-shadow: var(--shadow-lg);
}

.hero-visual__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hero-visual__icon svg {
  width: 48%;
  height: 48%;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  flex: none;
}

.hero-card__icon svg {
  width: 22px;
  height: 22px;
}

.hero-card small {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.74rem;
}

.hero-card strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.hero-card--1 {
  bottom: 8%;
  left: -4%;
}

.hero-card--2 {
  top: 10%;
  right: -2%;
}

/* 9. セクション見出し -------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.section-head--left {
  text-align: left;
  margin-inline: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-primary);
}

.section-head--left .eyebrow {
  justify-content: flex-start;
}

.section-head p {
  margin-top: 1rem;
  color: var(--c-text-muted);
}

/* 10. カード ----------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card-grid--2 {
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--c-primary-100);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--c-text-muted);
  font-size: 0.96rem;
}

/* 番号付きカード (特徴など) */
.card__num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.1em;
}

/* 診療メニューカード (詳細) */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--c-primary-100);
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-primary);
  color: #fff;
  flex: none;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin: 0;
}

.service-card__tag {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--c-primary-dark);
  background: var(--c-primary-50);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-top: 0.2rem;
}

.service-card p {
  color: var(--c-text-muted);
  font-size: 0.96rem;
}

.service-card ul.tick {
  margin-top: 0.5rem;
}

/* チェック付きリスト */
.tick li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}

.tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(-45deg);
}

/* 11. ページヘッダー & パンくず ---------------------------------------- */
.page-header {
  position: relative;
  background: linear-gradient(150deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -40%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  border-radius: 50%;
}

.page-header__inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
}

.page-header__en {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.page-header__lead {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
}

.breadcrumb {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.84rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.85rem;
  color: var(--c-text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-muted);
}

.breadcrumb a:hover {
  color: var(--c-primary-dark);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-heading);
  font-weight: 700;
}

/* 12. 診療時間テーブル ------------------------------------------------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hours-table th,
.hours-table td {
  border: 1px solid var(--c-border);
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.hours-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}

.hours-table thead th.is-holiday {
  background: var(--c-primary-dark);
}

.hours-table tbody th {
  background: var(--c-primary-50);
  color: var(--c-heading);
  font-weight: 700;
  white-space: nowrap;
}

.hours-table .mark {
  color: var(--c-primary);
  font-weight: 700;
}

.hours-table .mark--pm {
  color: var(--c-primary-light);
}

.hours-table .rest {
  color: var(--c-text-muted);
}

.hours-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

.hours-note li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.hours-note li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--c-primary);
}

/* 13. アクセス / 情報リスト -------------------------------------------- */
.info-list {
  border-top: 1px solid var(--c-border);
}

.info-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--c-border);
}

.info-list dt {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-heading);
}

.info-list dd {
  color: var(--c-text);
  margin: 0;
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.access-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

/* 院長プロフィール (about) */
.profile {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.profile__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-primary-light), var(--c-primary));
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.profile__photo svg {
  width: 40%;
  height: 40%;
}

.profile__photo span {
  position: absolute;
  bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.signature {
  margin-top: 1.5rem;
  font-family: var(--font-head);
}

.signature small {
  display: block;
  color: var(--c-text-muted);
  font-family: var(--font-base);
}

.signature strong {
  font-size: 1.35rem;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.profile-table th {
  width: 7rem;
  font-family: var(--font-head);
  color: var(--c-heading);
  font-weight: 700;
  white-space: nowrap;
}

/* 統計 / 数値 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--c-primary);
  line-height: 1.1;
}

.stat__label {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* 14. CTAバンド -------------------------------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(150deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band::before {
  width: 280px;
  height: 280px;
  top: -120px;
  left: -60px;
}

.cta-band::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  right: -80px;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin: 1rem auto 2rem;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.cta-band .btn--primary:hover {
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
}

.cta-band .btn--outline {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.cta-band .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.cta-tel {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-tel strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
}

/* 15. フォーム --------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 0.5rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.badge--required {
  background: var(--c-danger-bg);
  color: var(--c-danger);
}

.badge--optional {
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition),
    background-color var(--transition);
}

.form-control::placeholder {
  color: #9aa9a7;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-100);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232b8c88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* バリデーション状態 */
.form-control[aria-invalid="true"] {
  border-color: var(--c-danger);
  background: var(--c-danger-bg);
}

.form-control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.field-error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  color: var(--c-danger);
  font-size: 0.85rem;
  font-weight: 500;
}

.field-error::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--c-danger);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
}

.form-row.has-error .field-error {
  display: flex;
}

/* チェックボックス (同意) */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.form-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--c-primary);
  flex: none;
}

.form-check label {
  font-size: 0.92rem;
  color: var(--c-text);
}

.form-row.has-error .form-check {
  border-color: var(--c-danger);
  background: var(--c-danger-bg);
}

/* 送信後メッセージ */
.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-status.is-visible {
  display: flex;
}

.form-status--success {
  background: var(--c-success-bg);
  color: #14633f;
  border: 1px solid #bfe3d1;
}

.form-status svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* 16. FAQ アコーディオン ----------------------------------------------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-heading);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--c-primary-50);
}

.faq-item summary::before {
  content: "Q";
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  flex: none;
}

.faq-item summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  margin-left: auto;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex: none;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item .faq-body {
  padding: 0 1.5rem 1.5rem 4.4rem;
  color: var(--c-text-muted);
}

/* 17. ユーティリティ & アニメーション ---------------------------------- */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.lead {
  font-size: 1.08rem;
  color: var(--c-text-muted);
}

.flow > * + * {
  margin-top: 1.15em;
}

.badge-soft {
  display: inline-block;
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
}

.divider {
  height: 1px;
  background: var(--c-border);
  border: 0;
  margin-block: var(--space-7);
}

/* スクロール出現アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 画像プレースホルダ (写真の代わりのビジュアル) */
.thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--c-primary-100), var(--c-primary-200));
  display: grid;
  place-items: center;
  color: var(--c-primary-dark);
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.thumb svg {
  width: 32%;
  height: 32%;
  opacity: 0.85;
}

.thumb__label {
  position: absolute;
}

.facility-card {
  padding: 1.25rem;
}

.facility-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.facility-card p {
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

/* 診療科目への chip ナビ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--c-border);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-text);
}

.chips a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
  background: var(--c-primary-50);
}

/* 引用・院長メッセージ */
.message-mark {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ステップ (治療の流れ) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.step p {
  color: var(--c-text-muted);
  font-size: 0.94rem;
}

/* 18. レスポンシブ ----------------------------------------------------- */

/* タブレット以上 */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .form-grid-2 .form-row {
    margin-bottom: 0;
  }
  .info-list > div {
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
  }
}

/* デスクトップ: ナビ展開 (ハンバーガー非表示) */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .nav__tel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--c-primary-dark);
    margin-right: 0.25rem;
  }
  .nav__tel svg {
    width: 1.1rem;
    height: 1.1rem;
  }
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .access-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.4fr;
  }
}

@media (min-width: 1100px) {
  .card-grid--3 {
    gap: 2rem;
  }
}

/* モバイル: ナビをパネル化 */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem 1.75rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-115%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease,
      visibility 0.3s ease;
  }
  .site-header.is-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid var(--c-border);
  }
  .nav-list a {
    padding: 0.95rem 0.5rem;
    border-radius: 0;
  }
  .nav-list a::after {
    display: none;
  }
  .nav-list a[aria-current="page"] {
    color: var(--c-primary-dark);
  }
  .nav-list a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.1rem;
    background: var(--c-primary);
    border-radius: 2px;
  }
  .nav__cta {
    margin: 1rem 0 0;
  }
  .nav__cta .btn {
    width: 100%;
  }
}

/* 動きを減らす設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
