@charset "UTF-8";
/* =========================================================
   common.css … 全ページ共通
     1. 色・文字の設定（変数）
     2. リセット・基本
     3. 便利クラス（改行・文字色など）
     4. ボタン
     5. ページ上部の h1
     6. ヘッダー・メニュー
     7. 下層ページの上部（ページ名・パンくず・写真）
     8. 診療時間表
     9. フッター
    10. スマホの予約ボタン（画面下に固定）
   画面幅の区切り：スマホ ～767px ／ タブレット 768～1024px ／ PC 1025px～
   ========================================================= */


/* ---------------------------------------------------------
   1. 色・文字の設定
   --------------------------------------------------------- */
:root {
  --color-primary: #3daaf4;   /* メインの青（ボタン・見出しの青文字） */
  --color-light:   #aad5f9;   /* 薄い青（フッター・背景） */
  --color-pale:    #f1f8ff;   /* ごく薄い青（箱の地） */
  --color-text:    #303030;   /* 本文 */
  --color-orange:  #ff9e57;   /* オレンジ（パンくずのホーム・日祝） */
  --grad-button:   linear-gradient(90deg, #3daaf4 0%, #96cbf7 100%);  /* 丸ボタンの地 */
  --font-base:  'Zen Kaku Gothic Antique', sans-serif;  /* 本文・見出し */
  --font-round: 'M PLUS Rounded 1c', sans-serif;        /* メニュー・ボタン・数字 */
}


/* ---------------------------------------------------------
   2. リセット・基本
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, video, svg { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-base); font-weight: 700; line-height: 1.5; color: var(--color-text); }
button { font-family: inherit; cursor: pointer; }
i[class*="fa-"] { font-style: normal; }

@media screen and (max-width: 767px) {
  body { font-size: 15px; }
}


/* ---------------------------------------------------------
   3. 便利クラス
   --------------------------------------------------------- */
/* 改行：<br class="sp_only"> スマホだけ改行 ／ <br class="pc_only"> PCだけ改行（画像・ボタンにも使える） */
.sp_only { display: none; }
.pc_only { display: block; }
@media (max-width: 768px) {
  .sp_only { display: block; }
  .pc_only { display: none !important; } /* 他のクラスで display を指定していても隠す */
}

/* 文字色 */
.txt-blue   { color: var(--color-primary); }
.txt-orange { color: var(--color-orange); }

/* 画面には出さず、読み上げだけする文字 */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------------------------------------------------------
   4. ボタン
   --------------------------------------------------------- */
/* 丸いボタン（ヘッダー・フッター・スマホの予約ボタン） */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 100px; background: var(--grad-button); box-shadow: 0 0 5px rgba(0, 0, 0, .44);
  font-family: var(--font-round); font-size: 20px; letter-spacing: .18em; line-height: 1; color: #fff; white-space: nowrap;
  transition: filter .2s;
}
.btn-pill:hover { filter: brightness(1.06); }
.btn-pill i { font-size: .95em; letter-spacing: 0; }
.btn-pill--large { min-height: 45px; padding: 0 16px 0 22px; font-size: 27px; letter-spacing: .05em; }
.btn-pill--large i { margin-left: 6px; font-size: 20px; }

/* 本文の丸いボタン（「〇〇はこちら」）。右に ➔ アイコン */
.btn-round {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 260px; min-height: 46px; padding: 0 26px;
  border: 0; border-radius: 100px; background: var(--grad-button); box-shadow: 0 0 5px rgba(0, 0, 0, .44);
  font-family: var(--font-round); font-size: 20px; letter-spacing: .12em; color: #fff; text-decoration: none;
  transition: filter .2s;
}
.btn-round::after { content: "\f138"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 18px; }
.btn-round:hover { color: #fff; filter: brightness(1.06); }

@media screen and (max-width: 767px) {
  .btn-round { width: 100%; min-width: 0; max-width: 320px; font-size: 17px; }
}


/* ---------------------------------------------------------
   5. ページ上部の h1（画面の一番上の小さな文字）
   --------------------------------------------------------- */
.header-h1 {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1001;
  height: 16px; padding: 0 30px;
  color: var(--color-light); font-size: 11px; line-height: 11px; letter-spacing: .13em;
}
.header-h1 h1 { display: inline; font-size: inherit; font-weight: 400; line-height: inherit; color: inherit; }

@media screen and (max-width: 1024px) {
  .header-h1 { display: none; }
}


/* ---------------------------------------------------------
   6. ヘッダー・メニュー
   --------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 1000; background: #fff; }
.header__inner {
  display: flex; align-items: center;
  min-height: 138px; padding: 16px clamp(20px, 8vw, 110px) 0 31px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { width: auto; height: 53px; }

/* メニュー（PC：横並び） */
.gnav { margin: 0 clamp(20px, 6.6vw, 90px) 0 auto; }
.gnav__list { display: flex; align-items: center; }
.gnav__item { position: relative; }
.gnav__item > a {
  display: block; padding: 18px 7.5px;
  font-family: var(--font-round); font-size: clamp(16px, 1.54vw, 21px); letter-spacing: .124em; color: #000; white-space: nowrap;
  transition: color .2s;
}
.gnav__item > a:hover { color: var(--color-primary); }
.gnav__toggle, .gnav__close, .header__menu-btn { display: none; }

/* 子メニュー（PC：マウスを乗せると下に開く） */
@media screen and (min-width: 1025px) {
  .gnav__sub {
    position: absolute; top: calc(100% - 13px); left: 7.5px; z-index: 20;
    width: 300px; background: rgba(61, 170, 244, .8); border-radius: 0 0 10px 10px; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s;
  }
  .gnav__item:hover .gnav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .gnav__sub li { border-bottom: 1px solid rgba(255, 255, 255, .26); }
  .gnav__sub li:last-child { border-bottom: 0; }
  .gnav__sub a { display: block; padding: 15px 35px 15px 15px; font-family: var(--font-round); font-size: 19px; line-height: 1.6; letter-spacing: 4px; color: #fff; white-space: nowrap; }
  .gnav__sub a:hover { background: rgba(61, 170, 244, .35); }
}

/* 予約ボタン（PC：右端に縦2つ） */
.header__btns { display: flex; flex-direction: column; gap: 20px; }
.header__btns .btn-pill { width: 174px; padding: 0 12px; }

/* PC（狭め：1025～1199px） */
@media screen and (min-width: 1025px) and (max-width: 1199px) {
  .header__inner { padding-left: 20px; padding-right: 20px; }
  .header__logo img { height: 46px; }
  .gnav__item > a { font-size: 15px; letter-spacing: .1em; }
  .header__btns { gap: 12px; }
  .header__btns .btn-pill { width: 150px; min-height: 40px; font-size: 17px; letter-spacing: .12em; }
}

/* タブレット・スマホ（～1024px）：右上の ≡ ボタンでメニューを開く */
@media screen and (max-width: 1024px) {
  .header__inner { min-height: 78px; padding: 0 15px; }
  .header__logo img { height: 47px; }
  .header__btns { display: none; }

  .header__menu-btn {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: none;
  }
  .header__menu-btn span { display: block; width: 30px; height: 4px; border-radius: 4px; background: var(--color-primary); transition: .25s; }
  .header__menu-btn.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .header__menu-btn.is-open span:nth-child(2) { opacity: 0; }
  .header__menu-btn.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .gnav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
    width: min(84%, 340px); margin: 0; padding: 70px 0 40px;
    background: #fff; box-shadow: -8px 0 30px rgba(0, 0, 0, .15); overflow-y: auto;
    transform: translateX(100%); transition: .3s;
  }
  .gnav.is-open { transform: translateX(0); }
  .gnav__close {
    display: block; position: absolute; top: 12px; right: 18px; z-index: 2;
    width: 44px; height: 44px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--color-text);
  }
  .gnav__list { flex-direction: column; align-items: stretch; }
  .gnav__item > a { padding: 14px 56px 14px 24px; border-bottom: 1px solid #eef2f6; font-size: 16px; letter-spacing: .1em; }
  .gnav__toggle { display: block; position: absolute; top: 0; right: 0; width: 52px; height: 52px; border: 0; background: none; }
  .gnav__toggle::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
    border-right: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text);
    transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s;
  }
  .gnav__item.is-expanded > .gnav__toggle::before { transform: translate(-50%, -30%) rotate(-135deg); }
  .gnav__sub { display: none; padding: 0 0 8px; background: #eef7fe; }
  .gnav__item.is-expanded > .gnav__sub { display: block; }
  .gnav__sub a { display: block; padding: 10px 38px; font-size: 14px; }
}


/* ---------------------------------------------------------
   7. 下層ページの上部（左：小見出し・ページ名・パンくず／右：写真）
   --------------------------------------------------------- */
.page-hero { background: linear-gradient(90deg, #fff 0%, #cae1f5 100%); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 43.5%) 1fr; align-items: center; min-height: 367px; }
.page-hero__text { padding: 0 20px 0 clamp(24px, 16vw, 300px); }
.page-hero__label {
  display: inline-block; margin: 0 0 4px; padding-bottom: 2px; border-bottom: 1px solid var(--color-primary);
  font-weight: 700; font-size: 21px; line-height: 1.6; letter-spacing: .2em; color: var(--color-primary);
}
.page-hero__title { margin: 0 0 40px; font-weight: 700; font-size: clamp(32px, 3.45vw, 54px); line-height: 1.2; letter-spacing: .06em; color: #000; }
.page-hero__img { padding: 30px 0; }
.page-hero__img img { display: block; width: 100%; height: 307px; object-fit: cover; border-radius: 40px 0 0 40px; }

/* パンくずリスト */
.breadcrumb { font-family: var(--font-round); font-size: 15px; letter-spacing: .1em; }
.breadcrumb a { color: var(--color-orange); }
.breadcrumb__sep { margin: 0 14px; color: #888; }

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .page-hero__inner { min-height: 300px; }
  .page-hero__img img { height: 250px; }
}
@media screen and (max-width: 767px) {
  .page-hero { background: linear-gradient(75deg, #fff 0%, #cae1f5 100%); }
  .page-hero__inner { display: flex; flex-direction: column-reverse; min-height: 367px; }
  .page-hero__img { width: 100%; padding: 0; }
  .page-hero__img img { height: 197px; border-radius: 0 0 60px 0; }
  .page-hero__text { padding: 26px 14px 30px; text-align: center; }
  .page-hero__label { font-size: 16px; }
  .page-hero__title { margin-bottom: 16px; font-size: 34px; }
}


/* ---------------------------------------------------------
   8. 診療時間表（parts/hours-table.php）
   --------------------------------------------------------- */
.hours { font-family: var(--font-round); color: #6ab8f2; }
.hours__table { width: 100%; border-collapse: collapse; font-size: 13px; letter-spacing: .05em; }
.hours__table th, .hours__table td { padding: 6px 2px; border-bottom: 1px solid #e3eef8; font-weight: 400; text-align: center; color: #6ab8f2; }
.hours__table thead th:first-child { padding-right: 8px; text-align: right; }
.hours__table tbody th { text-align: left; white-space: nowrap; }
.hours__table tbody td { font-size: 12px; color: #9fcdf3; }
.hours__table tbody td.is-off { font-size: inherit; }
.hours__table tbody td.is-mark { font-size: inherit; color: #6ab8f2; }
.hours__table .is-holiday { color: var(--color-orange); }
.hours__table tbody tr:last-child th, .hours__table tbody tr:last-child td { border-bottom: 0; }
.hours__note { margin-top: 6px; font-size: 11px; line-height: 1.5; letter-spacing: .05em; }


/* ---------------------------------------------------------
   9. フッター
   --------------------------------------------------------- */
.footer { padding: 77px 0 0; background: var(--color-light); color: var(--color-primary); }
.footer__inner {
  display: grid; grid-template-columns: 383px 1fr; grid-template-areas: "logo btns" "cards map";
  column-gap: 56px; row-gap: 28px;
  max-width: 1000px; margin: 0 auto 57px; padding: 0 15px;
}
.footer__logo { grid-area: logo; justify-self: center; }
.footer__logo img { width: 262px; height: auto; }
.footer__btns { grid-area: btns; display: flex; align-items: center; gap: 26px; }
.footer__btns .btn-pill--large { width: 273px; }
.footer__btns .btn-pill--large:last-child { width: 223px; letter-spacing: .2em; }
.footer__cards { grid-area: cards; display: flex; flex-direction: column; gap: 10px; }
.footer__card { padding: 18px; border-radius: 16px; background: #fff; }
.footer__hours { padding: 14px 10px 12px; }
.footer-info { display: flex; flex-direction: column; gap: 14px; }
.footer-info__row { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; align-items: center; }
.footer-info__row img { grid-row: 1 / 3; width: 54px; height: 54px; }
.footer-info__row dt { font-weight: 700; font-size: 20px; line-height: 1.6; letter-spacing: .09em; }
.footer-info__row dd { font-size: 18px; line-height: 1.6; letter-spacing: .01em; }
.footer__map { grid-area: map; min-height: 430px; }
.footer__map iframe { display: block; width: 100%; height: 100%; min-height: 430px; border: 0; border-radius: 16px; }
.footer__copyright { padding: 4px 0 6px; background: #fff; font-family: var(--font-round); font-size: 14px; letter-spacing: .06em; color: #858585; text-align: center; }

@media screen and (max-width: 1199px) {
  .footer__inner { grid-template-columns: minmax(320px, 383px) 1fr; column-gap: 32px; padding: 0 24px; }
  .footer__btns { flex-wrap: wrap; gap: 14px; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__btns .btn-pill--large, .footer__btns .btn-pill--large:last-child { width: 100%; font-size: 22px; }
}
@media screen and (max-width: 767px) {
  .footer { padding-top: 50px; }
  .footer__inner { grid-template-columns: 1fr; grid-template-areas: "logo" "btns" "cards" "map"; row-gap: 20px; padding: 0 15px; }
  .footer__logo img { width: 276px; }
  .footer__btns { flex-direction: column; flex-wrap: nowrap; gap: 20px; }
  .footer__btns .btn-pill--large, .footer__btns .btn-pill--large:last-child { width: 276px; font-size: 25px; }
  .footer__map, .footer__map iframe { min-height: 400px; }
  .footer__copyright { margin-top: 40px; }
}


/* ---------------------------------------------------------
   10. スマホの予約ボタン（画面下に固定。PCはヘッダーにあるので出さない）
   --------------------------------------------------------- */
.fixed-cta { display: none; }

@media screen and (max-width: 767px) {
  .fixed-cta {
    display: flex; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 11px; z-index: 1100; padding: 0 8px;
  }
  .fixed-cta .btn-pill { flex: 1; min-height: 43px; padding: 0 8px; font-size: 21px; letter-spacing: .15em; }
}
