@charset "UTF-8";

/* =========================================================
   高畠小児科・アレルギー科医院  style.css
   ========================================================= */

/* ---------- 変数 ---------- */
:root {
  --c-text: #4a3f3a;
  --c-text-sub: #6e6560;
  --c-heading: #54463f;
  --c-blue: #2f86d8;
  --c-blue-dark: #1e6fc0;
  --c-blue-pale: #eef6fd;
  --c-blue-line: #d4e4f3;
  --c-coral: #f06868;
  --c-teal: #33ae9a;
  --c-green: #4fb05a;
  --c-leaf: #5cb85c;
  --c-line: #e3eaf0;
  --c-bg: #fff;

  --grad-coral: linear-gradient(180deg, #f67f7f 0%, #ee6464 100%);
  --grad-blue: linear-gradient(180deg, #4aa3ee 0%, #2b84d6 100%);

  --radius: 10px;
  --shadow: 0 2px 10px rgba(47, 94, 140, .08);
  --container: 1120px;
  --gutter: 20px;
  --header-h: 72px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "BIZ UDPGothic", "Meiryo", sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html[data-fontsize="large"] { font-size: 112.5%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
body.is-menu-open { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex-shrink: 0; }

:focus-visible {
  outline: 3px solid #f5b400;
  outline-offset: 2px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  top: -100px; left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--c-blue);
  color: #fff;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* アイコン色 */
.c-blue  { color: var(--c-blue); }
.c-teal  { color: var(--c-teal); }
.c-green { color: var(--c-green); }
.c-coral { color: var(--c-coral); }
.c-leaf  { color: var(--c-leaf); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .55em 1.1em;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, filter .2s;
}
.btn svg { width: 1em; height: 1em; }
.btn .btn__arrow { width: .9em; height: .9em; margin-left: .2em; }
.btn .btn__icon { width: 1.5em; height: 1.5em; margin-right: .3em; }

.btn--outline {
  background: #fff;
  border-color: #8bbcea;
  color: var(--c-blue);
}
.btn--outline:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.btn--coral {
  padding-inline: 1.4em;
  background: var(--grad-coral);
  color: #fff;
}
.btn--blue {
  padding-inline: 1.6em;
  background: var(--grad-blue);
  color: #fff;
  border-radius: 999px;
}
.btn--coral:hover,
.btn--blue:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(40, 80, 130, .22);
}
.btn--pill { border-radius: 999px; }

.circle-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, var(--c-blue));
  color: #fff;
  transition: transform .25s;
}
.circle-arrow svg { width: 12px; height: 12px; margin-left: 1px; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header { background: #fff; }

/* トップバー */
.topbar { font-size: .75rem; color: var(--c-text-sub); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}
.topbar__lead { font-weight: 400; }
.topbar__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.fontsize { display: flex; align-items: center; gap: 4px; }
.fontsize__label { margin-right: 4px; }
.fontsize__btn {
  min-width: 2.4em;
  padding: 0 .5em;
  border: 1px solid #cfd8e0;
  border-radius: 3px;
  background: #fff;
  font-size: .75rem;
  line-height: 1.7;
  transition: background-color .2s, color .2s;
}
.fontsize__btn:hover { background: var(--c-blue-pale); }
.fontsize__btn.is-active {
  background: #607586;
  border-color: #607586;
  color: #fff;
}
/* ロゴ・連絡先 */
.header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 4px 14px;
}
.header-logo { font-weight: inherit; }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.logo__mark { width: 104px; flex-shrink: 0; }
.logo__text { min-width: 0; }
.logo__name {
  display: block;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--c-heading);
}
.logo__en {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  letter-spacing: .2em;
  color: #6d8ba8;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  min-width: 11.5em;
  padding: .22em 1.4em;
  border-radius: 999px;
  background: var(--grad-coral);
  box-shadow: 0 3px 0 rgba(214, 76, 76, .3);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  transition: transform .2s, box-shadow .2s;
}
.tel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(214, 76, 76, .35);
}
.tel-btn__icon { width: .85em; height: .85em; }

.header-hours {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: .9em;
  font-size: .78rem;
  line-height: 1.6;
}
.header-hours > div { display: contents; }
.header-hours dt { text-align: right; }

.header-sp-actions { display: none; }

/* グローバルナビ */
.gnav {
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.gnav__list { display: flex; }
.gnav__list > li { position: relative; flex: 1 1 0; }
.gnav__list > li + li::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  border-left: 1px solid var(--c-line);
}
.gnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 88px;
  padding-inline: 4px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: background-color .2s, border-color .2s;
}
.gnav__link:hover,
.gnav__link[aria-current="page"] {
  background: var(--c-blue-pale);
  border-bottom-color: var(--c-blue);
}
.gnav__icon {
  width: 34px;
  height: 34px;
  transition: transform .25s;
}
.gnav__link:hover .gnav__icon { animation: hop .7s ease; }
.gnav__extra { display: none; }
.gnav__home { display: none; }
.gnav__home + li::before { display: none; }

/* =========================================================
   メインビジュアル
   ========================================================= */
.hero {
  position: relative;
  height: clamp(360px, 34vw, 470px);
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 18%, rgba(205, 234, 180, .75), transparent 28%),
    radial-gradient(circle at 94% 62%, rgba(196, 228, 246, .85), transparent 32%),
    radial-gradient(circle at 58% 88%, rgba(222, 241, 204, .85), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, .9), transparent 22%),
    linear-gradient(90deg, #eaf5e6 0%, #f3faf6 50%, #ecf5fb 100%);
}
.hero__photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 68%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.hero__body {
  width: fit-content;
  max-width: min(47%, 560px);
  padding-bottom: 48px;
  margin-right: calc(-1 * clamp(0px, 3.5vw, 56px));
}
.hero__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .06em;
}
.hero__title > span { display: block; white-space: nowrap; }
.hero__title > span > span { display: inline; }
.hero__title-line1 { color: var(--c-blue); }
.hero__title-line2 { color: var(--c-blue); }
.hero__lead {
  margin-top: 1.1em;
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  line-height: 1.9;
  letter-spacing: .04em;
  text-align: center;
}

.hero__deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
/* 葉の向きは rotate、揺れは transform（アニメーション）で付けるので、別々のプロパティにしている */
.hero__deco--leaf1 { top: -26px; right: -18px; width: 140px; rotate: 8deg; }
.hero__deco--leaf2 { bottom: -18px; right: 2%; width: 78px; rotate: 150deg; opacity: .9; }
.hero__deco--leaf3 { top: -10px; left: -30px; width: 92px; rotate: -105deg; opacity: .85; }
.hero__deco--leaf4 { bottom: 4px; left: 57%; width: 54px; rotate: 200deg; opacity: .9; }
.hero__deco--bird {
  right: 17%;
  bottom: 3%;
  z-index: 1;
  width: clamp(96px, 11vw, 150px);
  animation: bird 4s ease-in-out infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bird {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* =========================================================
   お知らせ
   ========================================================= */
.news { margin-top: 12px; }
.news__box {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-blue-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 10px 14px 10px 16px;
  background: linear-gradient(90deg, #e9f3fd, #f4f9fe);
  border-bottom: 1px solid var(--c-blue-line);
}
.news__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--c-blue);
  letter-spacing: .08em;
}
.title-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
}
.title-icon svg { width: 60%; height: 60%; }
.news__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.news__item {
  display: grid;
  grid-template-columns: 7em 6.5em 1fr 1rem;
  align-items: center;
  gap: 16px;
  padding: .55em 1.6em;
  border-bottom: 1px solid var(--c-line);
  transition: background-color .2s;
}
.news__list > li:last-child .news__item { border-bottom: 0; }
.news__item:hover { background: #f6fafe; }
.news__item:hover .news__text { color: var(--c-blue); text-decoration: underline; }
.news__date { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.news__chev { width: 1rem; height: 1rem; color: #8a96a2; }

.tag {
  display: inline-block;
  padding-inline: .5em;
  border: 1px solid;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
}
.tag--pink  { color: #e4566a; border-color: #f4b4bc; background: #fff6f7; }
.tag--blue  { color: var(--c-blue); border-color: #a8cdf0; background: #f3f9fe; }
.tag--green { color: #27a078; border-color: #9ed8c2; background: #f1faf6; }

/* =========================================================
   ご案内メニュー（5カード）
   ========================================================= */
.features { margin-top: 16px; }
.features__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 20px 12px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(60, 80, 110, .1);
}
.feature:hover .circle-arrow { transform: translateX(3px); }
.feature__icon {
  width: 64px;
  height: 64px;
  color: var(--icon, var(--accent));
}
.feature__title {
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--accent);
}
.feature__text {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
  line-height: 1.7;
}
.feature .circle-arrow { margin-top: auto; }

.feature--blue   { --accent: #2f7fd3; --bg: #eaf3fc; --icon: #3a8fe0; }
.feature--green  { --accent: #25a07a; --bg: #e7f6f0; --icon: #3db69f; }
.feature--pink   { --accent: #ec5f60; --bg: #fdeeee; --icon: #f07575; }
.feature--yellow { --accent: #e0900a; --bg: #fdf5e0; --icon: #f5b820; }
.feature--purple { --accent: #5f56c8; --bg: #efeefb; --icon: #8d86e0; }

/* =========================================================
   ピックアップ
   ========================================================= */
.pickup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.photo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f2f6f9;
  transition: box-shadow .25s;
}
.photo-card:hover { box-shadow: 0 10px 20px rgba(60, 80, 110, .12); }
.photo-card__img {
  aspect-ratio: 302 / 163;
  overflow: hidden;
}
.photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.photo-card:hover .photo-card__img img { transform: scale(1.05); }
.photo-card__body {
  position: relative;
  flex: 1;
  padding: 12px 52px 14px 14px;
}
.photo-card__title { font-size: 1.05rem; letter-spacing: .04em; }
.photo-card__text {
  margin-top: 2px;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--c-text-sub);
}
.photo-card .circle-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 26px;
  height: 26px;
  margin-top: -13px;
}
.photo-card:hover .circle-arrow { transform: translateX(3px); }

/* こどもの救急 */
.qq-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #f4a4a4;
  border-radius: var(--radius);
  background: #fff;
}
.qq-card__head {
  position: relative;
  min-height: 94px;
  padding: 36px 16px 12px;
  background: linear-gradient(100deg, #fbac88 0%, #fbc8bb 55%, #fde6e3 100%);
}
.qq-card__online {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 16px 3px 14px;
  border-bottom-right-radius: 8px;
  background: #f7916c;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
}
.qq-card__title {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: .06em;
  color: #fff;
  text-shadow:
    2px 0 0 #ee6d6d, -2px 0 0 #ee6d6d, 0 2px 0 #ee6d6d, 0 -2px 0 #ee6d6d,
    2px 2px 0 #ee6d6d, -2px 2px 0 #ee6d6d, 2px -2px 0 #ee6d6d, -2px -2px 0 #ee6d6d,
    0 4px 6px rgba(200, 70, 70, .35);
}
.qq-card__doctor {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
  width: auto;
  height: 128px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 54% at 50% 48%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 54% at 50% 48%, #000 55%, transparent 100%);
}
.qq-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px 14px;
}
.qq-card__text {
  align-self: stretch;
  padding-right: 80px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.6;
}
.qq-card__btn {
  width: 80%;
  margin-top: 12px;
  font-size: 1rem;
}
.qq-card__url {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qq-card__url:hover { text-decoration: none; }

/* =========================================================
   ごあいさつ・診療時間・アクセス
   ========================================================= */
.info {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.panel {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
}
.panel--cream { background: #fcf9f1; border: 1px solid #f1eadb; }
.panel--blue  { background: #eef5fc; border: 1px solid #dde9f5; }
.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--c-heading);
}
.panel__title svg { width: 1.6rem; height: 1.6rem; }
.panel--blue .panel__title { color: var(--c-blue); }
.panel__action {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 16px;
}
.panel__action .btn { min-width: 64%; }

.greeting__text {
  margin-top: 16px;
  font-size: .92rem;
  line-height: 1.95;
}

.schedule__table-wrap { margin-top: 12px; overflow-x: auto; }
.schedule__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
  text-align: center;
}
.schedule__table th,
.schedule__table td {
  padding: .55em .3em;
  border: 1px solid #d3e1ee;
}
.schedule__table thead th { background: #f7fbff; font-weight: 700; }
.schedule__table thead td { background: #f7fbff; }
.schedule__table tbody th {
  padding-inline: .6em;
  font-size: .8rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.mark {
  display: inline-block;
  width: .95em;
  height: .95em;
  border-radius: 50%;
  background: var(--c-blue);
  vertical-align: middle;
}
.mark--off {
  width: 1em;
  height: 1.1em;
  border-radius: 0;
  background: linear-gradient(to bottom right,
    transparent calc(50% - .6px), #97a4b0 calc(50% - .6px),
    #97a4b0 calc(50% + .6px), transparent calc(50% + .6px));
}
.schedule__note { margin-top: 10px; font-size: .88rem; }

.access__address { margin-top: 10px; font-size: .9rem; }
.access__map {
  height: 130px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  margin-top: 24px;
  padding-block: 26px 30px;
  border-top: 1px solid var(--c-line);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo--footer { gap: 10px; flex-shrink: 0; }
.logo--footer .logo__mark { width: 80px; }
.logo--footer .logo__name { font-size: 1.25rem; }
.logo--footer .logo__en { font-size: .66rem; letter-spacing: .16em; }
.footer__info { flex: 1; text-align: center; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
  font-size: .78rem;
}
.footer__nav li + li::before {
  content: "|";
  margin-inline: .6em;
  color: #aab4bd;
}
.footer__nav a:hover { color: var(--c-blue); text-decoration: underline; }
.footer__address { margin-top: 10px; font-size: .8rem; }
.footer__sep { display: inline-block; width: 1.2em; }
.footer__copy { margin-top: 6px; font-size: .75rem; color: var(--c-text-sub); }
.footer__copy small { font-size: inherit; }

.pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #9fd8ad;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background-color .2s;
}
.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: #7fc990; }
.pagetop svg { width: 20px; height: 20px; margin-bottom: 1px; }

/* =========================================================
   レスポンシブ
   ========================================================= */

/* ---- 〜1023px（タブレット） ---- */
@media (max-width: 1023px) {
  .topbar__lead { display: none; }
  .topbar__inner { justify-content: flex-end; }

  .logo__mark { width: 80px; }
  .logo__name { font-size: 1.35rem; }
  .logo__en { font-size: .7rem; }
  .header-hours { display: none; }
  .tel-btn { font-size: 1.6rem; }

  .gnav__link { height: 80px; font-size: .78rem; }
  .gnav__icon { width: 30px; height: 30px; }

  .hero__body { max-width: 45%; }

  .features__list { grid-template-columns: repeat(2, 1fr); }

  .pickup { grid-template-columns: 1fr 1fr; }
  .qq-card { grid-column: 1 / -1; }
  .qq-card__head { padding-right: 120px; }
  .qq-card__text { padding-right: 0; text-align: center; }
  .qq-card__btn { width: min(320px, 100%); }

  .info { grid-template-columns: 1fr 1fr; }
  .greeting { grid-column: 1 / -1; }

  .footer__inner { flex-direction: column; gap: 16px; }
}

/* ---- 〜767px（スマートフォン） ---- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  /* ヘッダー */
  .topbar { display: none; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  }
  .header-main {
    flex-wrap: nowrap;
    gap: 8px;
    padding-block: 8px;
  }
  .logo { gap: 6px; }
  .logo__mark { width: 44px; }
  .logo__name { font-size: clamp(.8rem, 3.6vw, 1.05rem); letter-spacing: .02em; }
  .logo__en { font-size: .55rem; letter-spacing: .12em; }
  .header-contact { display: none; }

  .header-sp-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  .sp-tel,
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff;
  }
  .sp-tel { background: var(--grad-coral); }
  .sp-tel svg { width: 22px; height: 22px; }
  .menu-toggle {
    gap: 4px;
    padding: 0;
    background: var(--c-blue);
  }
  .menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s, opacity .3s;
  }
  .menu-toggle__label { margin-top: 1px; font-size: .55rem; line-height: 1; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ドロワーメニュー */
  .gnav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    overflow-y: auto;
    padding-block: 16px 40px;
    border: 0;
    border-top: 1px solid var(--c-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, visibility .3s, transform .3s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .gnav__list > li + li::before { display: none; }
  .gnav__home { display: block; grid-column: 1 / -1; }
  .gnav__link {
    height: auto;
    padding: 14px 6px;
    margin: 0;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font-size: .88rem;
  }
  .gnav__link:hover { border-color: var(--c-blue); }
  .gnav__extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 18px 12px;
    border-radius: var(--radius);
    background: var(--c-blue-pale);
  }
  .gnav__extra .tel-btn { min-width: 0; width: 100%; font-size: 1.6rem; }
  .gnav__extra .header-hours { display: grid; font-size: .8rem; }

  /* メインビジュアル */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .hero__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .hero__photo img {
    object-position: 50% 45%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero__inner {
    justify-content: flex-start;
    height: auto;
    margin-top: -24px;
    padding-bottom: 40px;
  }
  .hero__body { width: 100%; max-width: none; margin-right: 0; padding-bottom: 0; text-align: center; }
  .hero__title { font-size: clamp(24px, 7.4vw, 36px); }
  .hero__lead { font-size: .88rem; }
  .hero__lead br:not(:first-of-type) { display: none; }
  .hero__deco--leaf1 { width: 90px; }
  .hero__deco--leaf2,
  .hero__deco--leaf4 { display: none; }
  .hero__deco--leaf3 { width: 64px; }
  .hero__deco--bird { right: 12px; bottom: 6px; width: 72px; }

  /* お知らせ */
  .news { margin-top: 20px; }
  .news__head { flex-direction: column; align-items: stretch; padding: 12px; }
  .news__title { font-size: 1.2rem; }
  .news__actions { gap: 8px; }
  .news__actions .btn { flex: 1 1 auto; padding-inline: .6em; font-size: .85rem; }
  .news__item {
    grid-template-columns: auto auto 1fr 1rem;
    grid-template-areas:
      "date tag . ."
      "text text text chev";
    gap: 4px 10px;
    padding: .8em 1em;
  }
  .news__date { grid-area: date; font-size: .85rem; }
  .news__item .tag { grid-area: tag; font-size: .72rem; }
  .news__text { grid-area: text; font-size: .92rem; }
  .news__chev { grid-area: chev; }

  /* ご案内メニュー */
  .features__list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 16px 8px 14px; }
  .feature__icon { width: 50px; height: 50px; }
  .feature__title { font-size: 1rem; }
  .feature__title br { display: none; }
  .feature__text { font-size: .78rem; }

  /* ピックアップ */
  .pickup { grid-template-columns: 1fr; gap: 14px; }
  .qq-card__head { padding-right: 100px; }
  .qq-card__title { font-size: 1.75rem; }
  .qq-card__text { padding-right: 70px; text-align: left; }
  .qq-card__btn { width: 100%; }

  /* ごあいさつ・診療時間・アクセス */
  .info { grid-template-columns: 1fr; gap: 14px; }
  .greeting { grid-column: auto; }
  .panel { padding: 16px; }
  .access__map { height: 200px; }

  /* フッター */
  .site-footer { padding-bottom: 90px; }
  .footer__nav { font-size: .75rem; }
  .footer__sep { display: block; width: auto; }
  .pagetop { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* =========================================================
   下層ページ
   ========================================================= */
.c-orange { color: #f0a716; }
.c-purple { color: #7d75d8; }

.page-main + .site-footer { margin-top: 0; }

section[id],
article[id] { scroll-margin-top: 16px; }

/* ---------- ページタイトル ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 30%, rgba(205, 234, 180, .7), transparent 26%),
    radial-gradient(circle at 90% 70%, rgba(196, 228, 246, .85), transparent 30%),
    radial-gradient(circle at 60% 10%, rgba(255, 255, 255, .9), transparent 24%),
    linear-gradient(90deg, #eaf5e6 0%, #f3faf6 50%, #ecf5fb 100%);
}
.page-head__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding-block: 32px;
  text-align: center;
}
.page-head__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(47, 94, 140, .12);
}
.page-head__icon svg { width: 38px; height: 38px; }
.page-head__en {
  margin-top: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--c-blue);
}
.page-head__title {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--c-heading);
}
.page-head__deco { position: absolute; pointer-events: none; user-select: none; }
.page-head__deco--leaf1 { top: -24px; right: -14px; width: 120px; rotate: 8deg; }
.page-head__deco--leaf2 { bottom: -34px; left: -18px; width: 100px; rotate: -150deg; opacity: .85; }

/* ---------- パンくず ---------- */
.breadcrumb { font-size: .78rem; color: var(--c-text-sub); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: .42em;
  height: .42em;
  margin: 0 .8em .12em .5em;
  border-top: 1.5px solid #9aa6b1;
  border-right: 1.5px solid #9aa6b1;
  transform: rotate(45deg);
}
.breadcrumb a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { text-decoration: none; }

/* ---------- ページ内リンク ---------- */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .5em 1.2em;
  border: 1.5px solid #8bbcea;
  border-radius: 999px;
  background: #fff;
  color: var(--c-blue);
  font-size: .9rem;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
.page-nav a:hover { background: var(--c-blue); color: #fff; }
.page-nav svg { width: .9em; height: .9em; }

/* ---------- セクション・見出し ---------- */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section--tint { background: #f5f9fd; }
.section--cream { background: #fcf9f1; }
.section--first { padding-top: clamp(28px, 4vw, 44px); }

.heading {
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  color: var(--c-heading);
}
.heading__en {
  display: block;
  margin-bottom: 4px;
  font-size: .72rem;
  letter-spacing: .26em;
  color: var(--c-blue);
}
.heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 8px;
  margin: 12px auto 0;
  background:
    radial-gradient(circle, #2f86d8 3.5px, transparent 4px) left center / 8px 8px no-repeat,
    radial-gradient(circle, #5cb85c 3.5px, transparent 4px) center center / 8px 8px no-repeat,
    radial-gradient(circle, #f06868 3.5px, transparent 4px) right center / 8px 8px no-repeat;
}

.subheading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--c-heading);
}
.subheading::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 1.3em;
  border-radius: 3px;
  background: linear-gradient(var(--c-blue), #74c3f0);
}
* + .subheading { margin-top: 40px; }

.lead {
  max-width: 780px;
  margin: 0 auto clamp(28px, 3vw, 40px);
  line-height: 2;
  text-align: center;
}
.prose { line-height: 2; }
.prose--tight { line-height: 1.7; }
.prose p + p { margin-top: 1em; }
.prose--tight p + p { margin-top: .45em; }
.text-note { margin-top: 10px; font-size: .85rem; color: var(--c-text-sub); }
.text-note + .text-note { margin-top: 2px; }
.link {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { text-decoration: none; }
.link svg { width: .9em; height: .9em; margin-left: .2em; vertical-align: -.05em; }

.btn--lg { padding: .85em 2em; font-size: 1.05rem; }
.center { text-align: center; }
.mt-l { margin-top: clamp(28px, 4vw, 44px); }
.mt-m { margin-top: 14px; }

/* ---------- 画像＋テキスト ---------- */
.media {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.media__img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* ごあいさつ：写真を小さめにして中央配置、テキストを上に詰める（PC） */
.media--photo-last .media__img img { display: block; width: 62%; max-width: 280px; margin-inline: auto; }
.media--photo-last .media__caption--note { text-align: center; }
.media__caption { margin-top: 8px; font-size: .8rem; color: var(--c-text-sub); text-align: center; }
.media__caption--note { margin-top: 12px; font-size: .9rem; line-height: 1.8; color: var(--c-text); text-align: left; }
.media__caption--note strong { display: block; }
.media__img img + img { margin-top: 16px; }
.signature { margin-top: 1.5em; font-weight: 700; text-align: right; }

/* ---------- カード ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card--center { text-align: center; }
.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--icon-bg, var(--c-blue-pale));
}
.card__icon svg { width: 34px; height: 34px; }
.card__title {
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--c-heading);
}
.card__text { margin-top: 10px; font-size: .9rem; line-height: 1.85; }
.card--center .card__text { text-align: left; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  margin-top: 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-blue);
}
.card__link svg { width: .8em; height: .8em; }
.card__link:hover { text-decoration: underline; }

/* ---------- ギャラリー ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.gallery figure {
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery figcaption {
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* ---------- 表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-top: 1px solid var(--c-blue-line);
}
.data-table th,
.data-table td {
  padding: 1em 1.2em;
  border-bottom: 1px solid var(--c-blue-line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  width: 26%;
  background: var(--c-blue-pale);
  font-weight: 700;
  color: var(--c-heading);
}
.data-table a[href^="tel:"] { color: var(--c-blue); font-weight: 700; }

.table-wrap {
  max-width: 760px;
  margin-inline: auto;
  overflow-x: auto;
}
.table-wrap .schedule__table { font-size: 1rem; }
.table-wrap .schedule__table th,
.table-wrap .schedule__table td { padding: .8em .4em; }
.table-wrap .schedule__table tbody th { font-size: .9rem; }
.schedule__table .doctor-name { font-weight: 700; color: var(--c-heading); white-space: nowrap; }
.schedule__table .doctor-name small { display: block; font-size: .72rem; font-weight: 500; color: var(--c-text-sub); }

/* ---------- リスト ---------- */
.check-list li {
  position: relative;
  padding-left: 1.9em;
  line-height: 1.8;
}
.check-list li + li { margin-top: .5em; }
.check-list li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: 0;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: var(--c-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.check-list--green li::before { background-color: #4fb05a; }

.dot-list li {
  position: relative;
  padding-left: 1.2em;
  line-height: 1.8;
}
.dot-list li + li { margin-top: .4em; }
.dot-list li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: .2em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--c-blue);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: .45em 1.1em;
  border: 1px solid #f4b4bc;
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  font-weight: 700;
  color: #d9505f;
}
.chips--blue li { border-color: #a8cdf0; color: var(--c-blue-dark); }

/* ---------- 注意書きボックス ---------- */
.note {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid #f3dfb2;
  border-radius: 12px;
  background: #fff9ec;
}
.note > svg { width: 1.5rem; height: 1.5rem; margin-top: .15em; color: #eea21a; }
.note__title { font-size: 1.05rem; color: var(--c-heading); }
.note__body { flex: 1; min-width: 0; }
.note__body > * + * { margin-top: 8px; }
.note--blue { border-color: var(--c-blue-line); background: var(--c-blue-pale); }
.note--blue > svg { color: var(--c-blue); }
.note--pink { border-color: #f5c3c3; background: #fff5f5; }
.note--pink > svg { color: var(--c-coral); }

/* ---------- 医師紹介 ---------- */
.doctor {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.doctor + .doctor { margin-top: 24px; }
.doctor__profile { text-align: center; }
.doctor__avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--c-blue-pale);
  color: #9cc6ec;
}
.doctor__avatar svg { width: 64px; height: 64px; }
.doctor__role {
  display: inline-block;
  margin-top: 14px;
  padding: .1em 1em;
  border-radius: 999px;
  background: var(--c-blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.doctor__name {
  margin-top: 8px;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: .14em;
  color: var(--c-heading);
}
.doctor__kana { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--c-text-sub); }
.doctor__field { margin-top: 12px; font-size: .85rem; line-height: 1.7; }
.doctor__field strong { display: block; color: var(--c-blue); }
.doctor__message {
  position: relative;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fcf9f1;
  font-size: .9rem;
  line-height: 1.8;
  text-align: left;
}
.doctor__message::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top: 0;
  border-bottom-color: #fcf9f1;
}
.doctor__detail h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--c-blue);
}
.doctor__detail h4:not(:first-child) { margin-top: 22px; }

.history {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .45em 1.2em;
  font-size: .92rem;
  line-height: 1.7;
}
.history__plain { grid-column: 2; }
.history dt { font-weight: 700; color: var(--c-heading); font-variant-numeric: tabular-nums; }

.history--dot dt { position: relative; padding-left: 1.2em; }
.history--dot dt::before {
  content: "";
  position: absolute;
  top: .6em;
  left: .2em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--c-blue);
}

.doctor__detail .dot-list { font-size: .92rem; }

/* ---------- タイムライン ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: #cfe2f4;
}
.timeline li { position: relative; }
.timeline li + li { margin-top: 24px; }
.timeline li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: -32px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--c-blue);
  border-radius: 50%;
  background: #fff;
}
.timeline__year {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-blue);
}
.timeline__text { margin-top: 2px; line-height: 1.85; }

/* ---------- スペック ---------- */
.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.spec--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec__item {
  padding: 20px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--c-line);
  text-align: center;
}
.spec__label { font-size: .8rem; color: var(--c-text-sub); letter-spacing: .1em; }
.spec__value { margin-top: 4px; font-size: 1.35rem; font-weight: 700; color: var(--c-blue); line-height: 1.4; }

/* ---------- アクセス ---------- */
.map-large {
  height: clamp(280px, 40vw, 420px);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: #fff;
}
.map-large iframe { display: block; width: 100%; height: 100%; border: 0; }
.access-list { display: grid; gap: 14px; }
.access-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--c-line);
}
.access-list svg { width: 1.8rem; height: 1.8rem; color: var(--c-blue); }
.access-list strong { display: block; color: var(--c-heading); }

/* ---------- お知らせ一覧 ---------- */
.news-archive {
  max-width: 860px;
  margin-inline: auto;
}
.news-archive article {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}
.news-archive article:first-child { padding-top: 0; }
.news-archive__meta { display: flex; align-items: center; gap: 12px; }
.news-archive__meta .tag { padding-inline: .9em; }
.news-archive__title {
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--c-heading);
}
.news-archive__body { margin-top: 12px; line-height: 2; }
.news-archive__body p + p { margin-top: .8em; }

/* ---------- プライバシーポリシー ---------- */
.policy { max-width: 860px; margin-inline: auto; }
.policy h2 {
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-blue-line);
  font-size: 1.15rem;
  color: var(--c-heading);
}
.policy p,
.policy ul,
.policy ol { margin-top: 12px; line-height: 1.95; }
.policy ol { padding-left: 1.5em; }
.policy .dot-list { margin-top: 12px; }
.policy__date { margin-top: 40px; text-align: right; }

/* ---------- 電話案内 ---------- */
.tel-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  text-align: center;
}
.tel-box__title { font-size: 1.2rem; color: var(--c-heading); }
.tel-box__hours { font-size: .9rem; line-height: 1.8; }

/* ---------- フォーム ---------- */
.form { max-width: 800px; margin-inline: auto; }
.form__row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
}
.form__row:first-of-type { border-top: 1px solid var(--c-line); }
.form__label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: .6em;
  font-weight: 700;
  color: var(--c-heading);
}
.req,
.opt {
  flex-shrink: 0;
  padding: .1em .6em;
  border-radius: 4px;
  font-size: .7rem;
  line-height: 1.7;
}
.req { background: var(--c-coral); color: #fff; }
.opt { background: #e8edf1; color: var(--c-text-sub); }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: .75em .9em;
  border: 1px solid #c6d4e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--c-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 134, 216, .2);
}
.form .is-invalid { border-color: #e25555; background: #fff7f7; }
.form__hint { margin-top: 6px; font-size: .8rem; color: var(--c-text-sub); }
.form__error { margin-top: 6px; font-size: .85rem; font-weight: 700; color: #d64545; }
.form__error:empty { display: none; }
.form__agree { margin-top: 28px; text-align: center; }
.form__agree label {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 700;
  cursor: pointer;
}
.form__agree input { width: 1.2em; height: 1.2em; accent-color: var(--c-blue); }
.form__submit { margin-top: 24px; text-align: center; }
.form__submit .btn { min-width: 280px; border: 0; cursor: pointer; }
.form__submit .btn:disabled { opacity: .6; cursor: wait; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.8;
}
.form-status[hidden] { display: none; }
.form-status--success { background: #eaf7ef; border: 1px solid #a9dcbc; color: #1f7a45; }
.form-status--error { background: #fff3f3; border: 1px solid #f2b6b6; color: #c43d3d; }

/* ---------- お問い合わせ導線 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 64px);
  background: linear-gradient(135deg, #e8f3fd 0%, #f2f9ee 100%);
}
.cta__inner { position: relative; z-index: 1; text-align: center; }
.cta__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: .08em; color: var(--c-heading); }
.cta__text { margin-top: 8px; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.cta__hours { margin-top: 16px; font-size: .85rem; line-height: 1.8; }
.cta__deco { position: absolute; pointer-events: none; }
.cta__deco--leaf { top: -30px; right: -20px; width: 130px; rotate: 20deg; opacity: .8; }

/* ---------- 補助 ---------- */
.nowrap { display: inline-block; }
.narrow { max-width: 760px; margin-inline: auto; }
.narrow--s { max-width: 440px; }
.gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-inline: auto;
}
.media--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.media--reverse .media__img { order: 2; }
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}
.policy .subheading { margin-top: 24px; margin-bottom: 0; font-size: 1rem; }

/* ---------- 下層ページ：レスポンシブ ---------- */
@media (max-width: 1023px) {
  .grid--4,
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor { grid-template-columns: 1fr; gap: 24px; }
  .doctor__profile { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 767px) {
  section[id],
  article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

  .page-head__inner { min-height: 160px; padding-block: 24px; }
  .page-head__icon { width: 56px; height: 56px; }
  .page-head__icon svg { width: 30px; height: 30px; }
  .page-head__deco--leaf1 { width: 84px; }
  .page-head__deco--leaf2 { display: none; }

  .page-nav { gap: 8px; }
  .page-nav a { padding: .45em 1em; font-size: .82rem; }

  .lead { text-align: left; }
  .lead br { display: none; }

  .media,
  .media--reverse,
  .access-grid { grid-template-columns: 1fr; }
  .media--reverse .media__img { order: 0; }
  .media--photo-last .media__img { order: 2; }
  .media__img:not(.narrow) { max-width: 420px; margin-inline: auto; }
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery { gap: 12px; }
  .gallery figcaption { padding: 8px; font-size: .8rem; }
  .card { padding: 22px 18px; }
  .grid--4 .card { padding: 18px 12px; }
  .grid--4 .card__icon { width: 52px; height: 52px; }
  .grid--4 .card__icon svg { width: 28px; height: 28px; }
  .grid--4 .card__title { font-size: .95rem; }
  .grid--4 .card__text { font-size: .8rem; }

  .table-wrap .schedule__table th,
  .table-wrap .schedule__table td { padding-inline: .15em; }
  .table-wrap .schedule__table tbody th { padding-inline: .4em; font-size: .78rem; }
  .schedule__table .doctor-name { font-size: .88rem; }
  .schedule__table .doctor-name small { font-size: .6rem; letter-spacing: 0; }

  .data-table th,
  .data-table td { display: block; width: 100%; }
  .data-table th { padding-block: .6em; }
  .data-table td { padding-block: .8em 1.1em; }

  .doctor { padding: 24px 18px; }
  .history { grid-template-columns: 1fr; gap: 0; }
  .history__plain { grid-column: auto; }
  .history__plain + .history__plain { margin-top: .3em; }
  .history__plain + dt { margin-top: .6em; }
  .history dd + dt { margin-top: .6em; }

  .spec { grid-template-columns: 1fr; }
  .note { padding: 16px; gap: 10px; }

  .form__row { grid-template-columns: 1fr; padding: 16px 0; }
  .form__label { justify-content: flex-start; padding-top: 0; }
  .form__submit .btn { width: 100%; min-width: 0; }

  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta .tel-btn { min-width: 0; font-size: 1.6rem; }
  .cta__deco--leaf { width: 90px; }
}

/* =========================================================
   動き（アニメーション）
   ・位置の動きは translate / scale / rotate（個別プロパティ）で付け、
     ホバー時の transform とぶつからないようにしている
   ・「動きを減らす」設定の人には、下の prefers-reduced-motion ですべて止める
   ========================================================= */

/* ---------- メインビジュアル ---------- */
.hero__photo img { animation: hero-zoom 14s cubic-bezier(.2, .6, .3, 1) both; }
.hero__title-line1 { animation: fade-up .9s .2s both; }
.hero__title-line2 { animation: fade-up .9s .45s both; }
.hero__lead { animation: fade-up .9s .7s both; }

/* 光の粒。文字（.hero__inner）より下、写真より上に重なる */
.hero::after {
  content: "";
  position: absolute;
  inset: -40px 0 0 45%;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, .75) 0, rgba(255, 255, 255, 0) 14px),
    radial-gradient(circle at 38% 74%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 10px),
    radial-gradient(circle at 64% 16%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 18px),
    radial-gradient(circle at 84% 58%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 12px),
    radial-gradient(circle at 93% 90%, rgba(255, 255, 255, .65) 0, rgba(255, 255, 255, 0) 9px),
    radial-gradient(circle at 24% 92%, rgba(226, 244, 204, .9) 0, rgba(226, 244, 204, 0) 16px),
    radial-gradient(circle at 52% 46%, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 7px);
  animation: drift 9s ease-in-out infinite alternate;
}

/* 葉っぱがゆれる（向きは rotate で別に付けてある） */
.hero__deco--leaf1,
.hero__deco--leaf2,
.hero__deco--leaf3,
.hero__deco--leaf4,
.page-head__deco,
.cta__deco--leaf {
  transform-origin: 8% 72%;
  animation: sway 6s ease-in-out infinite;
}
.hero__deco--leaf2 { animation-duration: 7.5s; animation-delay: -2s; }
.hero__deco--leaf3 { animation-duration: 8s; animation-delay: -4s; }
.hero__deco--leaf4 { animation-duration: 5.5s; animation-delay: -1s; }
.page-head__deco--leaf2 { animation-duration: 7.5s; animation-delay: -3s; }
.cta__deco--leaf { animation-duration: 7s; }

/* ---------- 下層のページタイトル ---------- */
.page-head__icon { animation: pop-in .7s .1s both; }
.page-head__en { animation: fade-up .7s .3s both; }
.page-head__title { animation: fade-up .8s .4s both; }

/* ---------- 電話ボタンに光が走る ---------- */
.tel-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tel-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  translate: -120% 0;
  pointer-events: none;
  animation: shine 6s ease-in-out 2s infinite;
}

/* ---------- マウスを乗せたとき ---------- */
.feature:hover .feature__icon { animation: hop .7s ease; }
.btn .btn__arrow,
.card__link svg,
.news__chev { transition: translate .25s, color .25s; }
.btn:hover .btn__arrow,
.card__link:hover svg { translate: 3px 0; }
.news__item:hover .news__chev { translate: 4px 0; color: var(--c-blue); }
.gallery img { transition: scale .6s; }
.gallery figure:hover img { scale: 1.06; }
.pagetop:hover svg { animation: float 1s ease-in-out infinite; }
.qq-card__doctor { animation: float 3.5s ease-in-out infinite; }

/* ---------- スクロールで表示（js/main.js が .reveal と .is-inview を付ける） ---------- */
.is-motion .reveal { opacity: 0; }
.is-motion .reveal.is-inview {
  animation: reveal-up .9s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s) both;
}
/* 見出しの 3 色の点が広がる */
.is-motion .heading.reveal.is-inview::after {
  animation: dots-in .6s calc(var(--reveal-delay, 0s) + .35s) both;
}
/* 診療時間の表の「●」「／」が順番に弾む（番号 --i は JS が付ける） */
.is-motion .reveal.is-inview .mark {
  animation: pop .45s calc(.35s + var(--i, 0) * 45ms) both;
}
/* 年表の丸が弾む */
.is-motion .timeline li.reveal.is-inview::before {
  animation: pop .5s calc(var(--reveal-delay, 0s) + .25s) both;
}

/* ---------- キーフレーム ---------- */
@keyframes hero-zoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
@keyframes drift {
  0%   { translate: 0 0; opacity: .5; }
  50%  { opacity: 1; }
  100% { translate: 0 -30px; opacity: .6; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
@keyframes pop-in {
  0%   { opacity: 0; scale: .5; }
  70%  { opacity: 1; scale: 1.08; }
  100% { opacity: 1; scale: 1; }
}
@keyframes shine {
  0%        { translate: -120% 0; }
  18%, 100% { translate: 260% 0; }
}
@keyframes hop {
  0%, 100% { translate: 0 0; }
  30%      { translate: 0 -6px; }
  55%      { translate: 0 0; }
  75%      { translate: 0 -2px; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}
@keyframes reveal-up {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes dots-in {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes pop {
  0%   { scale: 0; }
  70%  { scale: 1.25; }
  100% { scale: 1; }
}

/* ---- 動きを減らす設定 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- 印刷 ---- */
@media print {
  .topbar, .gnav, .header-sp-actions, .pagetop, .hero__deco { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  /* まだスクロールしていない部分も印刷されるように */
  .is-motion .reveal { opacity: 1 !important; animation: none !important; }
}

/* ---------- ポップアップ ---------- */
.modal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--c-text);
  box-shadow: 0 12px 40px rgba(20, 40, 70, .28);
  overflow: auto;
}
.modal:focus, .modal:focus-visible { outline: none; }
.modal::backdrop { background: rgba(30, 45, 60, .55); }
.modal .doctor--modal {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 32px 32px 8px;
}
.modal__close--x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef3f8;
  color: #4b5a68;
  cursor: pointer;
}
.modal__close--x:hover { background: #dfe8f1; }
.modal__close--x svg { width: 20px; height: 20px; }
.modal__foot { padding: 8px 32px 28px; text-align: center; }
@media (max-width: 720px) {
  .modal .doctor--modal { grid-template-columns: 1fr; padding: 28px 18px 4px; }
  /* スマホのブラウザ下部バーに「閉じる」が隠れないよう、下の余白を広げる */
  .modal__foot { padding-bottom: 72px; }
}

/* スマホ：スクロールが長くならないよう、全体的に行間を詰める */
@media (max-width: 767px) {
  body { line-height: 1.55; }
  .hero__lead { line-height: 1.6; }
  .lead { line-height: 1.65; }
  .greeting__text { line-height: 1.6; }
  .feature__text { line-height: 1.5; }
  .prose,
  .prose--tight { line-height: 1.6; }
  .prose p + p,
  .prose--tight p + p { margin-top: .5em; }
  .card__text { line-height: 1.6; }
  .check-list li,
  .dot-list li { line-height: 1.55; }
  .doctor__message { line-height: 1.6; }
  .history { line-height: 1.55; }
  .timeline__text { line-height: 1.6; }
  .news-archive__body { line-height: 1.7; }
  .policy ol { line-height: 1.7; }
  .tel-box__hours,
  .cta__hours { line-height: 1.6; }
  .media__caption--note { line-height: 1.6; }
}

/* スマホ：ブロック同士の余白も詰める */
@media (max-width: 767px) {
  .section { padding-block: 30px; }
  .section--first { padding-top: 20px; }
  .heading { margin-bottom: 16px; }
  .heading::after { margin-top: 8px; }
  .lead { margin-bottom: 16px; }
  .mt-l { margin-top: 20px; }
  * + .subheading { margin-top: 28px; }
  .page-nav { margin-top: 18px; }
  .grid { gap: 12px; }
  .card { padding: 18px 16px; }
  .policy__date { margin-top: 28px; }
  .cta { padding-block: 36px; }
  .info,
  .pickup { gap: 14px; margin-top: 14px; }
  .doctor { gap: 16px; padding: 18px 14px; }
  .doctor + .doctor { margin-top: 14px; }
  /* ごあいさつの縦長写真はスマホでは小さめに */
  .media--photo-last .media__img img { display: block; width: 68%; max-width: none; margin-inline: auto; }
  .media--photo-last .media__caption--note { text-align: left; }
}

/* スマホ：ゆうびん車のあゆみ（データ3項目）を横に3つ並べる */
@media (max-width: 767px) {
  .spec--keep { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .spec--keep .spec__item { padding: 12px 4px; }
  .spec--keep .spec__label { font-size: .7rem; letter-spacing: 0; }
  .spec--keep .spec__value { font-size: 1.05rem; }
}
