/* 写真上のメモは、同梱した日本語の手書き書体で表示する。 */
@font-face { font-family: "Machinoha Hand"; src: url("../assets/fonts/KleeOne-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
/* 元画像の白い余白と色の役割を共通変数で管理する。 */
:root {
  --white: #fff;
  --ink: #374254;
  --blue: #3fa6ee;
  --blue-text: #3fa6ee;
  --coral: #fe9981;
  --yellow: #fee47d;
  --green: #94d399;
  --pale-blue: #f3f9fc;
  --pale-coral: #fff1ea;
  --pale-green: #f0faeb;
  --radius: 17px;
  --gutter: 56px;
  --content: 1328px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 26px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 18px/1.9 var(--font); letter-spacing: .07em; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #1b6793; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 700; }
h2 { font-size: 38px; line-height: 1.6; letter-spacing: .12em; }
.container { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; padding: 10px 20px; z-index: 100; }
.skip-link:focus { top: 10px; }
.chevron { display: inline-block; width: 8px; height: 8px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); flex: none; }
.eyebrow { font-size: 15px; color: var(--blue-text); font-weight: 600; letter-spacing: .14em; }
/* PNGの透明余白を実測し、実際の線画を中央にそろえる。 */
.art { display: block; position: relative; aspect-ratio: var(--art-ratio); overflow: hidden; }
.art img { position: absolute; width: var(--image-w); height: var(--image-h); left: var(--image-x); top: var(--image-y); max-width: none; }
/* 予約と詳細案内を、元画像と同じカプセル形で作る。 */
.booking { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 17px 34px; min-height: 72px; background: var(--coral); color: var(--white); border-radius: 999px; font-size: 18px; font-weight: 700; white-space: nowrap; transition: background .35s, transform .35s; }
.booking .chevron { margin-left: 10px; }
.booking:hover { background: #f1846c; transform: translateY(-2px); }
.calendar-icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.outline { min-height: 66px; padding: 12px 40px; border: 1.5px solid var(--blue); border-radius: 999px; background: white; color: var(--blue-text); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 38px; transition: background .35s; }
.outline:hover { background: #edf8fe; }
.outline .chevron { transition: transform .35s; }
.outline:hover .chevron { transform: translateX(4px) rotate(45deg); }
/* ヘッダーはPCでは横並び、タブレット以下では開閉式にする。 */
.site-header { min-height: 106px; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; position: relative; z-index: 20; background: white; border-radius: 0; isolation: isolate; }
.brand { display: block; flex: none; width: 288px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex: 1; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.site-nav { padding-right: 20px; }
.site-nav > a { padding-block: 12px; white-space: nowrap; transition: color .3s; }
.site-nav > a:hover { color: var(--blue-text); }
.header-reservation { min-height: 72px; padding-inline: 32px; font-size: 17px; }
.menu-toggle, .mobile-reservation { display: none; }
/* FVの右側に写真を置き、左側の文字と自然に重ねる。 */
.hero { --hero-copy-top: clamp(64px, calc(16.4vw - 106px), 130px); height: 705px; position: relative; isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; right: -1px; top: -8px; width: 66%; height: 666px; border-radius: 0; clip-path: url(#hero-photo-mask); overflow: hidden; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, #ffffffbd 10%, #ffffff08 38%, transparent 55%); }
.hero-copy { padding: var(--hero-copy-top) 0 0 max(calc((100vw - var(--content))/2 + 44px), 7.2vw); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 3.68vw, 53px); line-height: 1.67; letter-spacing: .06em; max-width: 730px; }
.hero-lead { margin-top: 16px; font-size: 21px; line-height: 1.8; letter-spacing: .1em; }
.features { display: flex; gap: 10px; margin-top: 34px; }
.feature { width: 187px; height: 187px; border-radius: 50%; border: 4px solid white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; font-size: 15.5px; font-weight: 600; letter-spacing: .025em; line-height: 1.75; }
.feature-coral { background: var(--pale-coral); }
.feature-blue { background: #edf9ff; }
.feature-green { background: var(--pale-green); }
.feature-symbol { display: flex; height: 56px; align-items: center; }
.feature-symbol .art { width: 50px; }

.hero-note { position: absolute; right: 4%; bottom: 32px; font-family: "Bradley Hand", "Segoe Print", cursive; font-size: 23px; line-height: 1.5; letter-spacing: .12em; transform: rotate(-9deg); }
.hero-note span { margin-left: 12px; }

/* お知らせは目立ちすぎない一本の帯にまとめる。 */
.news { display: flex; align-items: center; gap: 22px; padding: 13px 30px; background: #f3f8fb; border-radius: 16px; min-height: 68px; font-size: 15px; letter-spacing: .025em; }
.news-label { padding: 2px 23px; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 700; white-space: nowrap; }
.news time { white-space: nowrap; }
.news-headline { border: 0; background: transparent; text-align: left; font-size: 14px; padding: 8px 0; flex: 1; }
.news-headline:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-more { background: transparent; display: inline-flex; align-items: center; gap: 26px; font-size: 14px; padding: 10px 0 10px 12px; white-space: nowrap; }
.news-more .chevron { color: var(--blue-text); }
/* 当院紹介はテキスト欄を広げ、写真との間に余白を確保する。 */
.about { display: grid; grid-template-columns: 48% 52%; align-items: center; padding: 90px 0 104px; margin-top: 3px; position: relative; isolation: isolate; }
.about-copy { padding: 0 28px 0 max(calc((100vw - var(--content))/2 + 12px), var(--gutter)); }
.about h2 { margin: 8px 0 18px; font-size: clamp(28px, 2.64vw, 38px); }
.about h2 > span { display: block; white-space: nowrap; }
.about-copy > p { margin: 20px 0 32px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.9; letter-spacing: .03em; text-wrap: pretty; }
.about-visual { position: relative; margin-top: 12px; }
/* 当院紹介の写真は角丸の四角で切り抜く。 */
.about-photo { aspect-ratio: 485 / 289; overflow: hidden; border-radius: 28px 0 0 28px; clip-path: none; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.photo-note { position: absolute; z-index: 1; right: 30px; bottom: -100px; width: 260px; aspect-ratio: 1; min-height: 0; padding: 24px; border-radius: 58% 42% 55% 45% / 47% 55% 45% 53%; /* 手描き風にゆるくゆがませた丸 */ background: #fff4d1; /* 下の診療案内の青と分けるため淡い黄色 */ display: flex; flex-direction: column; justify-content: center; text-align: center; font-family: var(--font); font-size: 23px; font-weight: 500; line-height: 1.7; letter-spacing: .08em; transform: none; }
/* 円内の案内は本文と同じ丸ゴシックで、傾けずに表示する。 */
.note-row { display: block; white-space: nowrap; }

/* 診療案内は淡い面の上に、画像素材を使った白いカードを並べる。 */
.care { position: relative; padding: 60px 0 76px; background: var(--pale-blue); border-radius: 42% 0 30% 2% / 9% 0 5% 3%; isolation: isolate; }
.section-heading { position: relative; text-align: center; padding: 0 var(--gutter); }
.section-heading h2 { margin: 0 0 10px; }
.section-heading p { font-size: 18px; margin-bottom: 24px; }
.treatment-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.treatment-card { background: white; border-radius: var(--radius); padding: 24px 12px 42px; position: relative; display: flex; flex-direction: column; align-items: center; min-height: 340px; transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.treatment-card:hover, .treatment-card:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 30px #3742541c, 0 0 0 1px #3fa6ee38; }
.treatment-card .round-arrow { transition: transform .3s ease; }
.treatment-card:hover .round-arrow, .treatment-card:focus-visible .round-arrow { transform: translateX(4px); }
.treatment-symbol { height: 116px; display: flex; align-items: center; justify-content: center; width: 150px; }
.treatment-symbol .art { width: 128px; }
.accent-coral .treatment-symbol .art { width: 147px; }
.treatment-title { font-size: 24px; font-weight: 700; letter-spacing: .1em; margin: 12px 0 10px; }
.treatment-description { font-size: 17px; line-height: 1.8; text-align: center; letter-spacing: .04em; }
.round-arrow { position: absolute; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; right: 16px; bottom: 15px; color: var(--white); background: #b8e1fb; }
.round-arrow .chevron { width: 7px; height: 7px; margin-right: 3px; }
.accent-coral .round-arrow { background: var(--coral); }
.accent-green .round-arrow { background: var(--green); }
.accent-yellow .round-arrow { background: var(--yellow); }

.care-more { text-align: center; margin-top: 46px; }
.care-more .outline { min-height: 62px; padding-inline: 56px; }

/* 写真付きの3カードと、診療時間・アクセスを共通の幅へそろえる。 */
.guides { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding-top: 0; }
.guide-card { transition: transform .3s ease, box-shadow .3s ease; border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 4px 28px #37425409; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #37425414; }
.guide-card button { width: 100%; height: 100%; display: block; text-align: left; padding: 0; background: white; transition: background .35s; }
.guide-card button:hover { background: #f8fcfe; }
.guide-photo { height: 194px; overflow: hidden; display: block; }
.guide-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.guide-card button:hover img { transform: scale(1.025); }
.guide-copy { padding: 20px 68px 22px 32px; min-height: 135px; display: flex; flex-direction: column; position: relative; font-size: 17px; line-height: 1.7; }
.guide-title { font-size: 23px; font-weight: 700; letter-spacing: .06em; margin-bottom: 1px; }
.guide-arrow { position: absolute; width: 34px; height: 34px; right: 24px; top: 46px; border: 1.5px solid var(--blue); border-radius: 50%; display: grid; place-items: center; color: var(--blue-text); }
.guide-arrow .chevron { width: 7px; height: 7px; margin-right: 3px; }
.information { display: grid; grid-template-columns: 1.04fr .96fr; gap: 24px; padding-top: 0; }
.hours-card, .access-card { border: 1px solid #f0f3f5; border-radius: var(--radius); box-shadow: 0 3px 28px #37425405; overflow: hidden; min-height: 304px; }
/* クリーム色の面に白いカードを置き、表は既存の淡いブルーで揃える。 */
.hours-card { padding: 24px 32px; background: #fff; }
.information h2 { font-size: 28px; line-height: 1.6; margin-bottom: 13px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; text-align: center; letter-spacing: .025em; }
th, td { border: 1px solid #dcecf5; padding: 7px 4px; }
/* 表の見出しは案内ボタンと同じ青で塗り、文字を白にする。 */
thead { background: var(--blue); color: var(--white); }
th { font-weight: 600; }
.hours-note { font-size: 16px; line-height: 1.8; margin-top: 9px; }
.access-card { position: relative; isolation: isolate; padding: 24px 30px; }
.access-photo { position: absolute; inset: 0 0 0 21%; z-index: -2; }
.access-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 69% center; }
.access-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,white 12%,#fffffff2 30%,#ffffff70 49%,transparent 70%); z-index: -1; }
.access-copy { width: 60%; }
.access-copy p { font-size: 16px; line-height: 1.8; margin: 12px 0 18px; }
.map-label { display: inline-block; background: var(--blue); color: var(--white); padding: 1px 22px; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.8; }
.access-copy .outline { min-height: 56px; font-size: 16px; padding: 8px 28px; gap: 28px; white-space: nowrap; }
/* 街並みと家族は個別PNGを使い、予約導線の両側に置く。 */
.cta { position: relative; padding: 62px 0 62px; }
.cta-inner { min-height: 158px; display: grid; grid-template-columns: 315px minmax(0,1fr) auto 185px; gap: 24px; align-items: center; }
.town-art { align-self: end; margin-left: -28px; padding-bottom: 8px; }
.town-art .art { width: 340px; }
.family-art { align-self: end; padding-bottom: 0; }
.family-art .art { width: 170px; }
.cta-inner > p { font-size: 20px; line-height: 1.9; letter-spacing: .1em; white-space: nowrap; }
.cta .booking { padding-inline: 30px; min-height: 76px; }
.site-footer { position: relative; padding: 28px 0 36px; overflow: hidden; }
/* 左（ロゴ）と右（SNS）の列を同じ幅にし、真ん中のメニューと住所を画面の中央に置く */
.footer-inner { display: grid; grid-template-columns: var(--footer-side) minmax(0, 1fr) var(--footer-side); --footer-side: 290px; align-items: center; gap: 34px; }
.footer-brand { width: 290px; justify-self: start; }
.footer-information { min-width: 0; text-align: center; }
.footer-information nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 28px; font-size: 12px; font-weight: 600; }
.footer-information nav a { padding-block: 12px; white-space: nowrap; }
.footer-address, .footer-tel { white-space: nowrap; }
.footer-information p { font-size: 14px; margin-top: 7px; letter-spacing: .04em; }
.footer-socials { display: flex; align-items: center; gap: 4px; justify-self: end; }
.social-button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border-radius: 50%; transition: background .3s; }
/* SNSアイコンはホバー時に位置を動かさず、背景色だけ変える。 */
.social-button:hover { background: #eef7fc; }
.social-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-button .instagram-dot { fill: currentColor; stroke: none; }
.social-button .line-icon path { fill: currentColor; stroke: none; }
.social-button .line-icon text { fill: white; stroke: none; font: 700 5.7px Arial, sans-serif; letter-spacing: -.2px; }
/* 画面に見える文字は、どの幅でも12px以上にする。 */
.demo-note { margin: 24px 20px 0; font-size: 12px; color: #607181; text-align: center; letter-spacing: .025em; }

/* 詳細画面と、動きを減らす設定を含む表示アニメーション。 */
.detail-dialog { width: min(560px, calc(100% - 40px)); max-height: min(78vh, 740px); overflow-y: auto; padding: 42px 36px 26px; border: 1px solid #e1eaf0; border-radius: 24px; color: var(--ink); background: white; font: 17px/1.9 var(--font); }
.detail-dialog::backdrop { background: #25374870; backdrop-filter: blur(3px); }
.detail-dialog h2 { font-size: 28px; margin: 10px 0 18px; }
.detail-dialog p { margin: 12px 0; }
.dialog-close { width: 44px; height: 44px; position: absolute; right: 12px; top: 12px; background: #f2f8fc; border-radius: 50%; }
.dialog-close span { display: block; width: 18px; height: 1.5px; border-radius: 999px; background: var(--ink); position: absolute; left: 13px; top: 21px; transform: rotate(45deg); }
.dialog-close span:last-child { transform: rotate(-45deg); }
.dialog-note { border-top: 1px solid #edf1f4; padding-top: 14px; font-size: 12px; color: #647787; }
body.reveal-pending .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
body.reveal-pending .reveal.is-visible { opacity: 1; transform: translateY(0); }
/* 画面幅に合わせて、写真と文章を同じ世界観のまま組み替える。 */
/* スマホ用の改行。普段は隠し、767px以下でだけ使う */
.mobile-break { display: none; }
@media (min-width: 1600px) {
  .hero-copy { padding-left: max(calc((100vw - var(--content))/2 + 44px), 7.2vw); }
  .hero-photo { width: 64%; }
  .about { grid-template-columns: calc((100vw - var(--content))/2 + 545px) minmax(0,1fr); }
}
@media (max-width: 1370px) {
  .site-header { gap: 20px; }
  .brand { width: 258px; }
  .site-nav { gap: 18px; font-size: 14px; }
  .header-reservation { font-size: 15px; padding-inline: 25px; }
  .hero h1 { font-size: clamp(38px, 3.68vw, 53px); }
  .hero-lead { font-size: 19px; }
  .feature { width: 173px; height: 173px; font-size: 14px; }
  .about-copy > p { font-size: clamp(14px, 1.25vw, 18px); }
  .treatment-description { font-size: clamp(12px, 1.18vw, 17px); }
  .guide-copy { padding-left: 24px; padding-right: 58px; font-size: clamp(12px, 1.18vw, 17px); }
  .guide-title { font-size: 21px; }
  .cta-inner { grid-template-columns: 260px minmax(0,1fr) auto 135px; gap: 18px; }
  .cta-inner > p { font-size: 17px; }
  .town-art .art { width: 280px; }
  .family-art .art { width: 135px; }
  .cta .booking { font-size: 16px; padding-inline: 24px; }
  .footer-inner { gap: 20px; --footer-side: 240px; }
  .footer-brand { width: 240px; }
  /* メニューを12pxにしても1段に収まるよう、間隔を詰める。 */
  .footer-information nav { gap: 10px; font-size: 12px; }
  .footer-information p { font-size: 12px; }
}
@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  body { font-size: 16px; }
  .site-header { min-height: 90px; padding-block: 14px; }
  .brand { width: 245px; }
  .header-reservation { margin-left: auto; min-height: 56px; font-size: 14px; padding: 10px 24px; gap: 12px; }
  .header-reservation .calendar-icon { width: 23px; height: 23px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 48px; height: 48px; border-radius: 50%; background: #edf8fe; z-index: 22; flex: none; }
  .menu-toggle span { width: 20px; height: 2px; border-radius: 999px; background: var(--blue-text); transition: transform .3s; }
  .menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; padding: 18px 24px 24px; background: white; border-radius: 0 0 20px 20px; box-shadow: 0 15px 30px #37425415; font-size: 16px; flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { border-bottom: 1px solid #edf3f7; padding: 12px 4px; }
  .mobile-reservation { display: block; text-align: center; margin-top: 22px; }
  .mobile-reservation .booking { min-height: 58px; font-size: 15px; }
  .menu-backdrop { position: fixed; display: block; inset: 0; background: #37425440; z-index: 15; }
  .hero { --hero-copy-top: 65px; height: 635px; }
  .hero-copy { --hero-copy-top: 65px; padding: var(--hero-copy-top) 0 0 6%; }
  .hero-photo { width: 68%; height: 540px; }
  .hero h1 { font-size: clamp(32px, 4.1vw, 42px); }
  .hero-lead { font-size: 17px; margin-top: 18px; }
  .features { margin-top: 34px; gap: 5px; }
  .feature { width: 142px; height: 142px; border-width: 3px; font-size: 12px; gap: 8px; }
  .feature-symbol { height: 42px; }
  .feature-symbol .art { width: 40px; }

  .hero-note { font-size: 18px; bottom: 40px; }
  .news { font-size: 12px; padding: 12px 20px; gap: 15px; }
  .news-label { padding: 3px 18px; }
  .news-headline { font-size: 12px; }
  .news-more { font-size: 12px; gap: 12px; }
  .about { grid-template-columns: 48% 52%; padding-top: 56px; padding-bottom: 66px; }
  h2 { font-size: 30px; }
  .eyebrow { font-size: 12px; }
  .about-copy { padding-left: var(--gutter); }
  .about-copy > p { font-size: 14px; margin-bottom: 24px; }
  .desktop-break { display: none; }
  .about-photo { height: auto; }
  .photo-note { width: 220px; min-height: 0; padding: 20px; font-size: 17px; right: 16px; bottom: -90px; }
  .outline { min-height: 56px; font-size: 14px; padding-inline: 27px; gap: 26px; }
  .section-heading p { font-size: 15px; }
  .treatment-grid { gap: 16px; }
  /* 説明文を12pxにしても3行に収まるよう、カードの左右余白と字間を詰める。 */
  .treatment-card { min-height: 294px; padding: 20px 4px 40px; }
  .treatment-symbol { width: 110px; height: 95px; }
  .treatment-symbol .art { width: 103px; }
  .accent-coral .treatment-symbol .art { width: 110px; }
  .treatment-title { font-size: 19px; }
  .treatment-description { font-size: 12px; letter-spacing: 0; }
  .round-arrow { width: 30px; height: 30px; right: 11px; bottom: 12px; }
  .care-more .outline { min-height: 56px; padding-inline: 35px; }
  .guides { gap: 15px; }
  .guide-photo { height: 145px; }
  .guide-copy { min-height: 124px; padding: 16px 48px 18px 16px; font-size: 12px; }
  .guide-title { font-size: 17px; }
  .guide-arrow { width: 28px; height: 28px; right: 12px; top: 54px; }
  .information { gap: 28px; padding-top: 0; }
  .hours-card { padding: 22px 18px; }
  .information h2 { font-size: 24px; }
  table { font-size: 12px; }
  th, td { padding: 7px 3px; }
  .hours-note { font-size: 13px; }
  .hours-card, .access-card { min-height: 267px; }
  .access-card { padding: 22px 20px; }
  .access-copy { width: 76%; }
  .access-copy p { font-size: 13px; }
  .access-copy .outline { font-size: 12px; gap: 18px; padding-inline: 20px; min-height: 48px; }
  .map-label { font-size: 12px; padding-inline: 18px; }
  .cta-inner { grid-template-columns: 155px minmax(0,1fr) auto 85px; gap: 13px; min-height: 128px; }
  .town-art .art { width: 180px; }
  .family-art .art { width: 85px; }
  .cta-inner > p { font-size: 13px; letter-spacing: .035em; }
  .cta .booking { font-size: 13px; gap: 9px; padding: 12px 18px; min-height: 60px; }
  .cta .calendar-icon { width: 23px; }
  .cta .booking .chevron { margin-left: 0; }
  .footer-brand { width: 160px; }
  .footer-inner { gap: 22px; --footer-side: 160px; }
  /* メニューはリンクの途中で改行させず、入りきらない分は次の段へ送る。 */
  .footer-information nav { gap: 0 12px; font-size: 12px; flex-wrap: wrap; }
  .footer-information nav a { white-space: nowrap; }
  .footer-information p { font-size: 12px; }
  .demo-note { font-size: 12px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --radius: 14px; }
  body { font-size: 15px; letter-spacing: .06em; }
  .site-header { min-height: 78px; padding: 12px 18px; gap: 12px; border-radius: 0; }
  .brand { width: 226px; }
  .header-reservation { display: none; }
  .menu-toggle { margin-left: auto; width: 44px; height: 44px; }
  .site-nav { top: 100%; font-size: 15px; max-height: calc(100svh - 94px); overflow-y: auto; }
  /* スマホは文章→写真→特徴の順にし、写真を小さくしすぎない。 */
  .hero { --hero-copy-top: 24px; height: 665px; }
  .hero-copy { --hero-copy-top: 24px; padding: var(--hero-copy-top) 20px 0; }
  .hero h1 { font-size: 30px; line-height: 1.7; letter-spacing: .08em; }
  .hero-lead { font-size: 14px; line-height: 1.9; letter-spacing: .07em; margin-top: 12px; }
  .hero-photo { width: calc(100% + 24px); height: 295px; top: 218px; right: -12px; border-radius: 0; }
  .hero-photo img { object-position: 67% center; }
  .hero-photo::after { background: linear-gradient(180deg,#ffffffd9 0%,#ffffff05 32%,transparent 56%); }
  .features { position: absolute; top: 518px; left: 16px; right: 16px; margin-top: 0; gap: 3px; justify-content: center; }
  /* 丸の中の文字を12pxにしても縁に掛からないよう、行間と隙間を詰め、下の余白で中身を少し上へ寄せる。 */
  .feature { width: min(116px,calc((100vw - 38px)/3)); height: min(116px,calc((100vw - 38px)/3)); padding-bottom: 26px; font-size: 12px; border-width: 2px; gap: 3px; letter-spacing: .005em; line-height: 1.45; }
  .feature-symbol { height: 32px; }
  .feature-symbol .art { width: 31px; }

  .hero-note { bottom: 164px; right: 6%; font-size: 12px; line-height: 1.5; }
  .news { padding: 12px 15px; gap: 6px 12px; min-height: auto; display: grid; grid-template-columns: auto 1fr; font-size: 12px; border-radius: 12px; }
  .news-label { padding: 2px 15px; justify-self: start; }
  .news-headline { grid-column: 1/-1; font-size: 13px; line-height: 1.8; padding: 3px 0; }
  .news-more { grid-column: 2; justify-self: end; padding: 4px; min-height: 44px; font-size: 12px; }
  .news time { align-self: center; }
  .about { grid-template-columns: 1fr; padding: 64px 0 104px; margin-top: 0; gap: 28px; overflow: clip; }
  .about-copy { padding-inline: var(--gutter); }
  h2 { font-size: 26px; line-height: 1.65; }
  .eyebrow { font-size: 12px; }
  .about h2 { margin-top: 5px; margin-bottom: 14px; font-size: 26px; }
  /* 本文は両端揃えにして、行の右端の余りをなくす。最終行は左揃えのまま。 */
  .about-copy > p { font-size: 14px; line-height: 1.95; margin-top: 15px; margin-bottom: 23px; }
  .outline { min-height: 54px; font-size: 14px; padding: 10px 28px; gap: 34px; }
  .about-visual { margin-left: 28px; margin-top: 0; }
  .about-photo { height: auto; aspect-ratio: 485 / 340; border-radius: 22px 0 0 22px; }
  .about-photo img { object-position: 58% center; }
  .photo-note { width: 180px; min-height: 0; padding: 14px; font-size: 14px; line-height: 1.65; right: 12px; bottom: -84px; }

  .care { padding: 51px 0 58px; border-radius: 42% 0 24% 0 / 3% 0 3% 0; overflow: clip; }
  .section-heading { padding-inline: 24px; }
  .section-heading h2 { margin-bottom: 7px; }
  .section-heading p { font-size: 12px; line-height: 1.9; margin-bottom: 23px; text-wrap: balance; }
  .treatment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .treatment-card { min-height: 274px; padding: 16px 8px 35px; }
  .treatment-symbol { width: 112px; height: 87px; }
  .treatment-symbol .art { width: 98px; }
  .accent-coral .treatment-symbol .art { width: 111px; }
  .treatment-title { font-size: 18px; margin: 10px 0 7px; letter-spacing: .06em; }
  .treatment-description { font-size: 12px; line-height: 1.9; letter-spacing: .015em; text-wrap: balance; }
  .treatment-description br { display: none; }
  .round-arrow { width: 28px; height: 28px; right: 10px; bottom: 10px; }
  .care-more { margin-top: 36px; }
  .care-more .outline { min-height: 54px; font-size: 13px; padding: 9px 28px; gap: 24px; }

  .guides { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .guide-photo { height: auto; aspect-ratio: 2.12; }
  .guide-copy { padding: 18px 62px 20px 22px; min-height: 114px; font-size: 14px; line-height: 1.7; }
  .guide-title { font-size: 20px; margin-bottom: 2px; }
  .guide-arrow { right: 20px; top: 39px; width: 30px; height: 30px; }
  .information { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .hours-card { padding: 22px 17px; min-height: 0; }
  .information h2 { font-size: 24px; margin-bottom: 12px; }
  table { font-size: 12px; letter-spacing: 0; }
  th, td { padding: 7px 3px; }
  .hours-note { font-size: 12px; margin-top: 10px; }
  .access-card { min-height: 256px; padding: 22px; }
  .access-copy { width: 66%; }
  .access-copy p { font-size: 13px; line-height: 1.8; margin: 11px 0 18px; }
  .access-copy .outline { min-height: 48px; font-size: 12px; padding-inline: 19px; gap: 20px; }
  .access-photo { left: 24%; }
  .access-card::after { background: linear-gradient(90deg,white 12%,#fffffff2 30%,#ffffff7d 49%,transparent 78%); }
  .cta { padding: 48px 0 30px; }
  .cta-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: 0; padding-bottom: 124px; position: relative; }
  .cta-inner > p { font-size: 15px; text-align: center; white-space: normal; letter-spacing: .08em; position: relative; z-index: 1; }
  .cta .booking { font-size: 15px; min-height: 62px; padding-inline: 28px; gap: 15px; position: relative; z-index: 2; align-self: center; }
  .cta .calendar-icon { width: 25px; height: 25px; }
  .town-art { position: absolute; left: -8px; bottom: 3px; margin: 0; padding: 0; }
  .town-art .art { width: 180px; }
  .family-art { position: absolute; right: 0; bottom: -4px; padding: 0; }
  .family-art .art { width: 112px; }
  .site-footer { padding: 22px 0 25px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
  .footer-brand { width: 226px; grid-column: 1/-1; justify-self: center; }
  .footer-information { grid-column: 1/-1; grid-row: 2; text-align: center; }
  /* 2段の間が空きすぎないよう、リンクの高さを36pxに詰める（押せる範囲は24px以上を確保） */
  .footer-information nav { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; gap: 0 7px; font-size: 13px; }
  .footer-information nav a { padding: 4px 0; min-height: 36px; }
  /* 住所とTELを2段に分ける */
  .footer-tel { display: block; }
  /* 2段のときは間の空白が余分な行にならないよう消す */
  .footer-sep { display: none; }
  /* ABOUT本文を意味の切れ目で改行する */
  .mobile-break, .keep-mobile { display: inline; }
  .footer-information p { font-size: 12px; line-height: 1.9; margin-top: 15px; letter-spacing: .02em; }
  .footer-socials { grid-column: 1/-1; grid-row: 3; justify-self: center; }

  .demo-note { font-size: 12px; text-align: center; margin: 18px 20px 0; line-height: 1.8; }

  .detail-dialog { padding: 40px 24px 22px; font-size: 15px; }
  .detail-dialog h2 { font-size: 24px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand { width: 208px; }
  .site-header { padding-inline: 14px; gap: 9px; }
  .hero h1 { font-size: 27px; }
  .hero-copy { padding-left: 18px; }
  .feature { font-size: 9px; gap: 4px; }
  .feature > span:last-child { transform: translateY(-3px); }
  .feature-symbol { height: 28px; }
  .feature-symbol .art { width: 27px; }
  .hero { height: 642px; }
  .hero-photo { top: 208px; height: 290px; }
  .features { top: 510px; }
  .hero-note { bottom: 148px; }
  .treatment-title { font-size: 16px; }
  .treatment-description { font-size: 12px; }
  .treatment-symbol { width: 100px; }
  .accent-coral .treatment-symbol .art { width: 100px; }
  .access-copy { width: 75%; }
  .footer-brand { width: 210px; }
  .footer-inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  body.reveal-pending .reveal { opacity: 1; transform: none; }
}

/* 中間幅の文字の収まりと、動きを減らす設定を補完する。 */

@media (min-width: 1024px) and (max-width: 1199px) {
  .cta-inner { grid-template-columns: 180px minmax(0,1fr) 240px 100px; gap: 14px; }
  .town-art .art { width: 210px; }
  .family-art .art { width: 100px; }
  .cta-inner > p { font-size: 15px; }
  .cta .booking { width: 240px; padding-inline: 18px; font-size: 14px; gap: 12px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .about-copy > p br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .treatment-card:hover, .treatment-card:focus-visible, .guide-card:hover, .social-button:hover { transform: none; }
  .treatment-card:hover .round-arrow, .treatment-card:focus-visible .round-arrow { transform: none; }
}

/* メニューの文字を大きくしても中間幅で重ならないよう、専用の配置にする。 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header { padding-inline: 24px; gap: 16px; }
  .site-header .brand { width: 210px; }
  .site-nav { font-size: 13px; gap: 12px; }
  .header-reservation { padding-inline: 20px; font-size: 14px; }
}

@media (max-width: 1023px) { .site-nav { padding-right: 24px; } }

/* 背景の有彩色はブルーとクリームの2色に絞り、白を挟んで配置する。 */
:root {
  --bg-about: #ffffff;
  --bg-care: #edf7fc;
  --bg-guide: #ffffff;
  --bg-information: #fff9ef;
  --bg-cta: #ffffff;
  --bg-footer: #ffffff;
  --wave-height: 72px;
  --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M0%2040C240%2068%20480%2068%20720%2042S1200%2016%201440%2040L1440%200H0Z%22%2F%3E%3C%2Fsvg%3E");
}
.section-band { position: relative; isolation: isolate; background: var(--band-bg); }
.section-band::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: calc(var(--wave-height) + 1px); background: var(--previous-bg); -webkit-mask-image: var(--wave-mask); mask-image: var(--wave-mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; z-index: -1; }
.about { --band-bg: var(--bg-about); --previous-bg: white; margin-top: 0; padding-top: 132px; padding-bottom: 180px; }
.care { --band-bg: var(--bg-care); --previous-bg: var(--bg-about); border-radius: 0; padding-top: 132px; padding-bottom: 88px; }
.guide-section { --band-bg: var(--bg-guide); --previous-bg: var(--bg-care); padding: 132px 0 96px; }
.information-section { --band-bg: var(--bg-information); --previous-bg: var(--bg-guide); padding: 132px 0 96px; }
.cta { --band-bg: var(--bg-cta); --previous-bg: var(--bg-information); padding-top: 132px; }
.site-footer { --band-bg: var(--bg-footer); --previous-bg: var(--bg-cta); padding-top: 108px; }
.care::before, .information-section::before, .site-footer::before { transform: scaleX(-1); }
@media (max-width: 767px) {
  :root { --wave-height: 44px; --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M0%2040C240%2068%20480%2068%20720%2042S1200%2016%201440%2040L1440%200H0Z%22%2F%3E%3C%2Fsvg%3E"); }
  .about { padding-top: 88px; padding-bottom: 150px; }
  .care { padding-top: 88px; padding-bottom: 72px; border-radius: 0; }
  .guide-section, .information-section { padding-top: 88px; padding-bottom: 72px; }
  .cta { padding-top: 88px; }
  .site-footer { padding-top: 88px; }
}
/* 1024〜1199px: フッターのロゴを少し小さくして、真ん中のメニューと住所の幅を確保する */
@media (min-width: 1024px) and (max-width: 1199px) {
  .footer-inner { --footer-side: 200px; }
  .footer-brand { width: 200px; }
}
