@charset "UTF-8";
/* ============================================================
   Smile Dental Clinic - style.css
   構成:
     1. 変数・リセット
     2. 共通(ボタン / セクション / ユーティリティ)
     3. ヘッダー・ナビゲーション
     4. ヒーロー
     5. 医院紹介(features)
     6. 診療内容(cards)
     7. 院長紹介(doctor)
     8. 院内紹介(gallery)
     9. 診療時間(hours)
    10. アクセス(access)
    11. お問い合わせCTA(contact)
    12. フッター
    13. 固定CTA・ページトップ
    14. アニメーション
   ※ モバイルファーストで記述し、768px / 1024px で拡張
============================================================ */

/* ------------------------------
   1. 変数・リセット
------------------------------ */
:root {
  /* カラー:白基調 × 淡いブルー・グレー・ネイビー */
  --color-white: #ffffff;
  --color-blue-pale: #eaf3fa;   /* 淡いブルー(背景) */
  --color-blue-light: #bcd8ec;  /* 淡いブルー(装飾) */
  --color-blue: #4a8fc2;        /* メインブルー */
  --color-blue-dark: #2f6f9f;   /* ホバー用 */
  --color-navy: #1e4e79;        /* ネイビー(見出し・強調) */
  --color-navy-deep: #16324a;   /* フッターなど */
  --color-gray-bg: #f6f8fa;     /* グレー(背景) */
  --color-gray-border: #dde5ec;
  --color-text: #333e48;
  --color-text-sub: #6b7885;
  --color-accent: #e8618c;      /* 電話CTAのみ差し色 */

  /* タイポグラフィ */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", sans-serif;

  /* レイアウト */
  --width-content: 1080px;
  --notice-height: 40px; /* デモサイト注記バー(スマホは2行想定) */
  --header-height: 64px;
  --fixed-cta-height: 60px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(30, 78, 121, 0.08);
  --shadow-hover: 0 8px 28px rgba(30, 78, 121, 0.16);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 固定の注記バー+ヘッダーの高さぶんアンカー位置を下げる */
  scroll-padding-top: calc(var(--notice-height) + var(--header-height) + 12px);
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  /* スマホの固定CTAに隠れないよう余白を確保 */
  padding-bottom: var(--fixed-cta-height);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

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

/* ------------------------------
   2. 共通
------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pc-only {
  display: none;
}

.section {
  padding: 64px 0;
}

.section--bg {
  background-color: var(--color-gray-bg);
}

.section__inner,
.hero__inner,
.contact__inner,
.footer__inner,
.header__inner {
  width: min(92%, var(--width-content));
  margin-inline: auto;
}

.section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
}

.section__title-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.section__title::after {
  content: "";
  width: 44px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-light));
}

.section__lead {
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-text-sub);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}

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

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background-color: var(--color-blue-dark);
}

.btn--outline {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn--outline:hover {
  background-color: var(--color-blue-pale);
}

.btn--cta {
  background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.btn--tel {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-gray-border);
  font-family: var(--font-en);
  font-size: 18px;
}

.btn--small {
  min-width: 0;
  padding: 10px 22px;
  font-size: 14px;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ------------------------------
   3. デモサイト注記・ヘッダー・ナビゲーション
------------------------------ */
/* デモサイト注記:ページ最上部に常時表示する帯 */
.demo-notice {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--notice-height);
  padding: 0 12px;
  background-color: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.header {
  position: fixed;
  top: var(--notice-height);
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.header.is-scrolled {
  box-shadow: 0 2px 12px rgba(30, 78, 121, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-navy);
}

.header__logo-mark {
  width: 34px;
  height: 34px;
  color: var(--color-blue);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header__logo-en {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header__logo-ja {
  font-size: 10px;
  color: var(--color-text-sub);
}

/* ハンバーガーボタン(モバイル) */
.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-navy);
}

.menu-btn__bar {
  position: relative;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: background-color 0.25s;
}

.menu-btn__bar::before,
.menu-btn__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s;
}

.menu-btn__bar::before { top: -7px; }
.menu-btn__bar::after  { top: 7px; }

.menu-btn[aria-expanded="true"] .menu-btn__bar {
  background-color: transparent;
}

.menu-btn[aria-expanded="true"] .menu-btn__bar::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-btn__label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ナビ(モバイル:ドロワー) */
.gnav {
  position: fixed;
  top: calc(var(--notice-height) + var(--header-height));
  right: 0;
  z-index: 99;
  width: min(78%, 320px);
  height: calc(100vh - var(--notice-height) - var(--header-height));
  padding: 32px 24px;
  background-color: var(--color-white);
  box-shadow: -4px 0 24px rgba(30, 78, 121, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}

.gnav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.gnav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gnav__link {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-gray-border);
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.25s;
}

.gnav__link:hover {
  color: var(--color-blue);
}

.gnav__cta {
  margin-top: 20px;
  text-align: center;
}

/* ------------------------------
   4. ヒーロー
------------------------------ */
.hero {
  position: relative;
  padding: calc(var(--notice-height) + var(--header-height) + 48px) 0 96px;
  background: linear-gradient(160deg, #f4f9fd 0%, var(--color-blue-pale) 55%, #dcebf7 100%);
  overflow: hidden;
}

/* 背景コラージュ:院内シーンのコラージュ画像を敷き、上の白レイヤーで透かせる */
.hero__collage {
  position: absolute;
  /* 回転させても端が見えないよう大きめに配置 */
  inset: -10%;
  z-index: 0;
  transform: rotate(-4deg);
}

.hero__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 透かし用オーバーレイ(この上に文字が乗る) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(244, 249, 253, 0.92) 0%,
    rgba(234, 243, 250, 0.86) 55%,
    rgba(220, 235, 247, 0.88) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.hero__content {
  text-align: center;
}

.hero__lead {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 18px;
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-blue-dark);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.hero__title {
  margin-bottom: 20px;
  font-size: clamp(30px, 7.2vw, 48px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.hero__text {
  margin-bottom: 32px;
  color: var(--color-text-sub);
  font-size: 15px;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__visual {
  width: min(68%, 300px);
}

.hero__visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* ------------------------------
   5. 医院紹介(features)
------------------------------ */
.features {
  display: grid;
  gap: 24px;
}

.features__item {
  padding: 32px 24px;
  border-radius: var(--radius);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  box-shadow: var(--shadow);
  text-align: center;
}

.features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: var(--color-blue-pale);
  color: var(--color-navy);
}

.features__icon svg {
  width: 38px;
  height: 38px;
}

.features__title {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--color-navy);
}

.features__text {
  font-size: 14px;
  color: var(--color-text-sub);
  text-align: left;
}

/* ------------------------------
   6. 診療内容(cards)
------------------------------ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background-color: var(--color-white);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-blue);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-blue-pale), #dcebf7);
  color: var(--color-navy);
}

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

.card__title {
  margin-bottom: 10px;
  font-size: 19px;
  color: var(--color-navy);
}

.card__text {
  font-size: 14px;
  color: var(--color-text-sub);
  text-align: left;
}

/* ------------------------------
   7. 院長紹介(doctor)
------------------------------ */
.doctor {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doctor__photo {
  width: min(70%, 280px);
  margin-inline: auto;
}

.doctor__photo img {
  width: 100%;
  /* 横長写真でも人物中心の縦構図にトリミングして表示する */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 30% center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doctor__position {
  font-size: 14px;
  color: var(--color-blue);
  font-weight: 700;
}

.doctor__name {
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
}

.doctor__name-en {
  margin-left: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text-sub);
}

.doctor__message {
  margin-bottom: 24px;
  font-size: 15px;
}

.doctor__history {
  padding: 20px 24px;
  border-radius: var(--radius);
  background-color: var(--color-gray-bg);
  font-size: 14px;
}

.doctor__history dt {
  font-weight: 700;
  color: var(--color-navy);
}

.doctor__history dt:not(:first-child) {
  margin-top: 14px;
}

.doctor__history li {
  padding-left: 1em;
  text-indent: -1em;
}

.doctor__history li::before {
  content: "・";
  color: var(--color-blue);
}

/* ------------------------------
   8. 院内紹介(gallery)
------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery__item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery__caption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
}

/* ------------------------------
   9. 診療時間(hours)
------------------------------ */
.hours {
  max-width: 760px;
  margin-inline: auto;
}

/* 表が狭い画面で崩れないよう横スクロールを許可 */
.hours__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hours__table {
  min-width: 560px;
  background-color: var(--color-white);
  font-size: 14px;
}

.hours__table th,
.hours__table td {
  padding: 14px 8px;
  border: 1px solid var(--color-gray-border);
  text-align: center;
}

.hours__table thead th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-weight: 500;
}

.hours__table tbody th {
  background-color: var(--color-blue-pale);
  color: var(--color-navy);
  font-weight: 700;
  white-space: nowrap;
}

.hours__open { color: var(--color-blue); font-weight: 700; }
.hours__sat  { color: var(--color-accent); font-weight: 700; }
.hours__closed { color: #b6c2cd; }

.hours__notes {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.hours__notes li {
  padding-left: 1em;
  text-indent: -1em;
}

/* ------------------------------
   10. アクセス(access)
------------------------------ */
.access {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.access__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* iframeの縦横比を固定 */
  aspect-ratio: 4 / 3;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.access__list {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 24px;
}

.access__row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-border);
  font-size: 14px;
}

.access__row:last-child {
  border-bottom: none;
}

.access__row dt {
  flex-shrink: 0;
  width: 3.5em;
  font-weight: 700;
  color: var(--color-navy);
}

.access__tel {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
}

/* ------------------------------
   11. お問い合わせCTA(contact)
------------------------------ */
.contact {
  padding: 64px 0;
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-blue-dark) 100%);
  color: var(--color-white);
  text-align: center;
}

.contact__title {
  margin-bottom: 16px;
  font-size: 24px;
}

.contact__text {
  margin-bottom: 28px;
  font-size: 15px;
  opacity: 0.92;
}

.contact__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact .btn--cta {
  background: var(--color-white);
  color: var(--color-navy);
}

.contact .btn--tel {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.contact__note {
  font-size: 12px;
  opacity: 0.8;
}

/* ------------------------------
   12. フッター
------------------------------ */
.footer {
  background-color: var(--color-navy-deep);
  color: var(--color-white);
  padding: 48px 0 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.footer__logo-en {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
}

.footer__logo-ja {
  font-size: 12px;
  opacity: 0.7;
}

.footer__address {
  font-size: 13px;
  opacity: 0.85;
}

.footer__address a {
  color: inherit;
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}

.footer__list a:hover {
  color: var(--color-white);
}

.footer__bottom {
  width: min(92%, var(--width-content));
  margin-inline: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer__note {
  margin-bottom: 8px;
  font-size: 11px;
  opacity: 0.6;
}

.footer__copy {
  font-size: 12px;
  opacity: 0.7;
}

/* ------------------------------
   13. 固定CTA・ページトップ
------------------------------ */
/* スマホ:画面下部の固定バー */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  width: 100%;
  height: var(--fixed-cta-height);
  box-shadow: 0 -4px 16px rgba(30, 78, 121, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.fixed-cta.is-visible {
  transform: translateY(0);
}

.fixed-cta__tel,
.fixed-cta__web {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.fixed-cta__tel {
  width: 40%;
  background-color: var(--color-white);
  color: var(--color-navy);
}

.fixed-cta__web {
  width: 60%;
  background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
  color: var(--color-white);
}

.fixed-cta__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ページトップへ戻る */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--fixed-cta-height) + 16px);
  z-index: 90;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-navy);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background-color: var(--color-blue-dark);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ------------------------------
   14. 予約・電話モーダル(デモ)
------------------------------ */
body.is-modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* display: flex が hidden 属性より優先されるのを防ぐ */
.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(22, 50, 74, 0.6);
}

.modal__panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background-color: var(--color-white);
  box-shadow: 0 16px 48px rgba(22, 50, 74, 0.3);
}

.modal__panel--small {
  width: min(100%, 400px);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-gray-bg);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.modal__close:hover {
  background-color: var(--color-blue-pale);
  color: var(--color-navy);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
}

.modal__lead {
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}

.modal__lead-sub {
  font-size: 12px;
  color: var(--color-text-sub);
}

.modal__note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--color-text-sub);
  text-align: center;
}

/* カレンダー */
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar__month {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: background-color 0.25s;
}

.calendar__nav:hover:not(:disabled) {
  background-color: var(--color-blue-pale);
}

.calendar__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.calendar__nav svg {
  width: 18px;
  height: 18px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar__weekday {
  padding: 4px 0;
  font-size: 12px;
  color: var(--color-text-sub);
  text-align: center;
}

.calendar__day {
  height: 40px;
  border: none;
  border-radius: 8px;
  background-color: var(--color-white);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.calendar__day:hover:not(:disabled) {
  background-color: var(--color-blue-pale);
}

.calendar__day:disabled {
  color: #c3ccd4;
  cursor: default;
}

.calendar__day.is-today {
  box-shadow: inset 0 0 0 1px var(--color-blue-light);
}

.calendar__day.is-selected {
  background-color: var(--color-blue);
  color: var(--color-white);
  font-weight: 700;
}

/* 時間枠 */
.booking-slots {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-border);
}

.booking-slots__label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}

.booking-slots__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.booking-slots__slot {
  padding: 8px 0;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  background-color: var(--color-white);
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.booking-slots__slot:hover {
  border-color: var(--color-blue);
  background-color: var(--color-blue-pale);
  color: var(--color-navy);
}

/* 予約完了(デモ) */
.booking-done {
  padding: 8px 0;
  text-align: center;
}

.booking-done__icon {
  margin-bottom: 12px;
  color: var(--color-blue);
}

.booking-done__icon svg {
  width: 48px;
  height: 48px;
}

.booking-done__text {
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
}

.booking-done__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* 電話モーダル */
.tel-modal__number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 600;
  color: var(--color-navy);
}

.tel-modal__number:hover {
  color: var(--color-blue-dark);
}

.tel-modal__icon {
  width: 26px;
  height: 26px;
  color: var(--color-blue);
}

.tel-modal__hours {
  font-size: 13px;
  color: var(--color-text-sub);
}

/* ------------------------------
   15. アニメーション
------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   タブレット(768px〜)
============================================================ */
@media (min-width: 768px) {
  :root {
    --notice-height: 32px; /* 注記が1行に収まるため低くする */
  }

  .demo-notice {
    font-size: 12px;
  }

  .pc-only {
    display: inline;
  }

  .section {
    padding: 88px 0;
  }

  .section__title {
    font-size: 30px;
  }

  .hero {
    padding: calc(var(--notice-height) + var(--header-height) + 72px) 0 120px;
  }

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__buttons {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero__visual {
    width: 320px;
    flex-shrink: 0;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .doctor {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .doctor__photo {
    width: 280px;
    flex-shrink: 0;
    margin-inline: 0;
  }

  .doctor__body {
    flex: 1;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .access {
    flex-direction: row;
    align-items: stretch;
  }

  .access__map {
    flex: 1.2;
    aspect-ratio: auto;
    min-height: 340px;
  }

  .access__info {
    flex: 1;
  }

  .contact__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  /* 固定CTA:タブレット以上ではフロートボタン化 */
  body {
    padding-bottom: 0;
  }

  .fixed-cta {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
    height: auto;
    flex-direction: column;
    gap: 10px;
    box-shadow: none;
    transform: translateY(0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .fixed-cta.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .fixed-cta__tel {
    display: none;
  }

  .fixed-cta__web {
    width: auto;
    padding: 14px 24px;
    border-radius: 999px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.25s;
  }

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

  .to-top {
    right: 24px;
    bottom: 88px;
  }
}

/* ============================================================
   PC(1024px〜)
============================================================ */
@media (min-width: 1024px) {
  /* ハンバーガーを隠して横並びナビに */
  .menu-btn {
    display: none;
  }

  .gnav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
  }

  .gnav__list {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .gnav__link {
    padding: 8px 12px;
    border-bottom: none;
    font-size: 14px;
    position: relative;
  }

  .gnav__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background-color: var(--color-blue);
    transform: scaleX(0);
    transition: transform 0.25s;
  }

  .gnav__link:hover::after {
    transform: scaleX(1);
  }

  .gnav__cta {
    margin: 0 0 0 10px;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__visual {
    width: 380px;
  }
}
