/* ===== 書体（使う文字だけの woff2。作り直しは要件定義.md を参照）
   見出し・メニューは参考と同じ Zen Kaku Gothic New 500。本文は参考の秀英丸ゴシック L（有料）にいちばん近い Zen Maru Gothic、
   表や診療の名前は参考の秀英丸ゴシック B の役で Zen Maru Gothic 500。数字は参考と同じ Roboto、ロゴの英字は EB Garamond ===== */
@font-face { font-family: "Shirakashi Kaku"; src: url("../assets/fonts/zenkaku-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Shirakashi Maru"; src: url("../assets/fonts/zenmaru-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Shirakashi Maru"; src: url("../assets/fonts/zenmaru-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Shirakashi Num"; src: url("../assets/fonts/roboto-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Shirakashi Serif"; src: url("../assets/fonts/garamond-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ===== 配色：参考の組み方（白い地・淡い同系色の面・濃い差し色1つ・暖色の小さな差し色1つ・灰色の面）のまま、
   青を常緑の葉の深い緑に、橙を落ち着いた赤茶に替える ===== */
:root {
  --main: #2b6e61;         /* 見出し・ボタン・電話番号（白の上で 6.0、淡い面の上で 5.5） */
  --main-20: rgba(43, 110, 97, 0.2);
  --main-30: rgba(43, 110, 97, 0.3);
  --pale: #f1f6f3;         /* お知らせ・診療のご案内の面 */
  --th: #e8f0ec;           /* 表の見出しの面 */
  --accent: #a8643a;       /* 診療の絵の線・予約の二つ目のボタン（白文字 4.6） */
  --ink: #555555;          /* 本文（白の上で 7.5） */
  --ink-dark: #333333;     /* メニュー */
  --sub: #6b6b6b;          /* 補足の文字（白の上で 5.3、灰色の面の上で 4.9） */
  --date: #8a8a8a;         /* 日付（参考と同じく淡い灰） */
  --gray: #f5f5f3;         /* アクセス・フッターの面 */
  --line: #d4d9d6;
  --line-soft: #e3e3e1;

  --kaku: "Shirakashi Kaku", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --maru: "Shirakashi Maru", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --num: "Shirakashi Num", "Helvetica Neue", Arial, sans-serif;
  --serif: "Shirakashi Serif", "Times New Roman", serif;
  --band: 28px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 参考と同じく html の文字の大きさは PC 16px・スマホ 14px で、寸法は rem と px で決める */
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (max-width: 1080px) { html { scroll-padding-top: 70px; } }
@media (max-width: 767px) { html { font-size: 14px; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--maru);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, dl, dd, figure, table { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
svg use { pointer-events: none; }
.en { font-family: var(--num); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.underline { text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.underline:hover { color: var(--main); }
.txt-note { color: var(--sub); font-size: 0.938rem; }
.bg-pale { background-color: var(--pale); }

/* ===== サンプルの帯 ===== */
.demo {
  position: relative;
  z-index: 10000;
  height: var(--band);
  background: var(--ink-dark);
  color: #fff;
  font-size: 11px;
  line-height: var(--band);
  text-align: center;
  letter-spacing: 0.06em;
}
.demo a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== 段の幅と余白（参考の inner・section_pdg の値） ===== */
.inner { width: 90%; max-width: 1080px; margin-left: auto; margin-right: auto; }
.inner-xxs { max-width: 580px; }
.inner-sm { max-width: 880px; }
.inner-md { max-width: 1200px; }
.inner-lg { max-width: 1440px; }
.inner-xl { max-width: 1600px; }
.section-pdg { padding-top: 80px; padding-bottom: 80px; }
.section-pdg-lg { padding-top: 130px; padding-bottom: 130px; }
@media (max-width: 1080px) { .inner-xl { max-width: 90%; } }
@media (max-width: 767px) {
  .inner { width: 86%; }
  .inner-xl { max-width: 86%; }
  .section-pdg { padding-top: 40px; padding-bottom: 40px; }
  .section-pdg-lg { padding-top: 56px; padding-bottom: 56px; }
}

/* ===== 見出し・本文 ===== */
.section-ttl {
  color: var(--main);
  font-family: var(--kaku);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
}
.ttl-01 {
  color: var(--main);
  font-family: var(--kaku);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
}
.read { font-size: 1.063rem; line-height: 2.4; }
.read + .read { margin-top: 16px; }
@media (max-width: 767px) {
  .section-ttl { font-size: 1.429rem; }
  .ttl-01 { font-size: 2.143rem; }
  .read + .read { margin-top: 8px; }
}

/* ===== ボタン ===== */
/* 塗りの丸いボタン：押すと光の筋が横切る */
.btn-01 a {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  padding: 14px 40px;
  overflow: hidden;
  border-radius: 40px;
  color: #fff;
  text-align: center;
  font-family: var(--kaku);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.btn-01 svg { flex: none; }
.btn-01 a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
  transform: skewX(-25deg);
}
.btn-01 a:hover::after { animation: shine 0.7s; }
@keyframes shine { 100% { left: 125%; } }
.btn-reserve a { background-color: var(--main); border: 2px solid var(--main); }
.btn-accent a { background-color: var(--accent); border: 2px solid var(--accent); }

/* 線のボタン：下線と右の丸い矢印。押すと濃い下線が左から伸びる */
.btn-02 a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 14px 40px 14px 16px;
  overflow: hidden;
  color: var(--sub);
  border-bottom: 1px solid #9a9a9a;
}
.btn-02__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 6px;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: auto;
  border-radius: 20px;
  background-color: var(--main-20);
  color: var(--main);
}
.btn-02 a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  border-bottom: 1px solid var(--ink);
  transition: width 0.8s ease-out;
}
.btn-02 a:hover::after { width: 100%; }
@media (max-width: 767px) {
  .btn-01 a, .btn-02 a { max-width: 100%; }
  .btn-02__arrow { width: 32px; height: 32px; }
}

/* ===== 電話の案内（ヘッダー・医院の情報で共通） ===== */
/* 「TEL.」と番号を1行に、受付時間をその下の右寄せに */
.cta-tel a { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: baseline; color: var(--main); line-height: 1.4; white-space: nowrap; }
.cta-tel__lbl { font-size: 1.5rem; }
.cta-tel__num { font-size: 2rem; font-weight: 500; letter-spacing: 0.04em; }
.cta-tel__hours { grid-column: 1 / -1; text-align: right; font-size: 0.938rem; letter-spacing: 0.05em; }

/* ===== 診療時間の表（参考の time_table） ===== */
.time-table table { width: 100%; font-family: var(--maru); font-weight: 500; }
.time-table th, .time-table td { padding: 0.5em; border: 1px solid var(--line); vertical-align: middle; letter-spacing: 0.05em; text-align: center; }
.time-table th { background-color: var(--th); color: #5a5a5a; font-size: 0.938rem; line-height: 1.2; }
.time-table thead th:first-child, .time-table tbody th { text-align: left; }
.time-table thead th:first-child { width: calc(100% - 11% * 7); }
.time-table thead th:nth-child(n + 2) { width: 10%; padding: 0.5em 0; white-space: nowrap; }
.time-table tbody th { font-size: 1.125rem; font-weight: 400; }
.time-table tbody th small { display: block; margin-top: 4px; font-family: var(--maru); font-size: 0.75rem; }
.time-table td { color: var(--ink); font-weight: 400; }
@media (max-width: 767px) {
  .time-table th, .time-table td { padding: 0.8em 0.4em; }
  .time-table th { font-size: 0.786rem; }
  .time-table thead th:nth-child(n + 2) { width: 11%; }
  .time-table tbody th { font-size: 0.929rem; }
  .time-table tbody th small { font-size: 0.714rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
