/* ほしのこ小児歯科（デモ）
   色紙の切り絵：線は使わず、色の面と紙の重なりの影（右下2px・20%暗く）だけで描く
   子ども向けの文 = Kiwi Maru ／ 保護者向けの文 = Noto Sans JP */
:root {
  --navy: #2B3A67;
  --navy-d: #222E52;
  --yellow: #F6D55C;
  --yellow-d: #C5AA4A;
  --white: #FFFFFF;
  --cream: #FDF6DA;
  --paper: #F2F4F8;
  --brown: #A6764E;
  --pink: #F2A7A0;
  --blue: #86CBE6;
  --ink: #2B3A67;
  --ink-2: #4A5680;
  --kid: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", serif;
  --par: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --fiber: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'260'%20height%3D'260'%3E%3Cfilter%20id%3D'f'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.012%20.5'%20numOctaves%3D'3'%20seed%3D'4'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%201.4%20-.62'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'260'%20height%3D'260'%20filter%3D'url(%23f)'%20opacity%3D'.1'%2F%3E%3C%2Fsvg%3E");
  --ease: cubic-bezier(.22, .9, .3, 1.15);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--par); font-weight: 400; font-size: clamp(15px, 0.4vw + 13.6px, 17px); line-height: 1.85; color: var(--ink); background: #fff; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
table { border-collapse: separate; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 99px; font-family: var(--kid); text-decoration: none; }
.skip:focus { top: 10px; }

/* 子ども向けの文：ひらがな・分かち書き。ことばの区切り（空白）でだけ改行する */
.kid { font-family: var(--kid); font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; letter-spacing: .04em; line-height: 1.6; }
.prose p, .phead__par, .hero__par, .note p, .tag__text, .parents__list p, .koma__par, .steps p, .line p, .faq dd, .faq dt, .rooms p, .grow__text p, .hours__text p, .greet__words p, .band__par, .news__list p, .shin__item p, .ptable td, .hs2__mark span { word-break: auto-phrase; text-wrap: pretty; }
.small { font-size: .86em; color: var(--ink-2); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.wrap--mid { max-width: 980px; }

/* 紙：背景を ::before に敷き、切り口と重なりの影は filter（文字にはかけない） */
.paper { position: relative; isolation: isolate; }
.paper::before, .note::before, .tag a::before, .parents__list li::before, .hs2__card::before, .hs3__paper::before, .line::before, .say::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; filter: url(#cutL);
}

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; }
.hd__in { display: flex; align-items: center; gap: 18px; max-width: 1360px; margin: 0 auto; padding: 10px 28px; min-height: 78px; }
.brand { display: block; flex: none; text-decoration: none; }
.logo { width: 232px; height: auto; }
.logo__name { font-family: var(--kid); font-weight: 500; font-size: 25px; letter-spacing: .04em; }
.logo--navy .logo__name { fill: var(--navy); }
.logo--white .logo__name { fill: #fff; }
.demo { font-family: var(--par); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--ink-2); background: var(--paper); padding: 1px 7px; border-radius: 4px; align-self: center; margin-left: -6px; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.gnav a { position: relative; display: block; padding: 8px 2px; font-family: var(--kid); font-size: 15.5px; text-decoration: none; letter-spacing: .03em; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .3s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scale(1); }
.gnav a[aria-current="page"]::after { background: var(--yellow); box-shadow: 2px 2px 0 var(--yellow-d); }
.gnav__tel { display: none; }
.hd__cta { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.hd__tel { display: flex; align-items: center; gap: 6px; font-family: var(--kid); font-size: 19px; text-decoration: none; letter-spacing: .03em; white-space: nowrap; }
.ico-tel { width: 18px; height: 18px; flex: none; }
.hd__yoyaku { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hd__closed { font-size: 11px; line-height: 1.3; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.hd__closed:hover { text-decoration: underline; }
.btn-yoyaku { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 99px; background: var(--yellow); color: var(--navy); box-shadow: 2px 2px 0 var(--yellow-d); font-family: var(--kid); font-size: 16px; letter-spacing: .06em; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease); }
.btn-yoyaku:hover { transform: translate(-1px, -2px); }
.btn-yoyaku--lg { min-height: 56px; padding: 0 34px; font-size: 18px; }
.menu { display: none; margin-left: 4px; width: 52px; height: 52px; border: 0; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: 2px 2px 0 var(--navy-d); cursor: pointer; padding: 6px 0 4px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu__bars { display: grid; gap: 4px; }
.menu__bars i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.menu__label { font-size: 9px; font-weight: 700; letter-spacing: .12em; line-height: 1; }
.is-menu .menu__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.is-menu .menu__bars i:nth-child(2) { opacity: 0; }
.is-menu .menu__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1240px) {
  .menu { display: flex; }
  .gnav { position: fixed; left: 0; right: 0; top: 78px; bottom: 0; margin: 0; background: var(--navy) var(--fiber); padding: 28px 24px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
  .is-menu .gnav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { color: #fff; font-size: 20px; padding: 16px 4px; }
  .gnav a::after { left: auto; right: 6px; top: 50%; margin-top: -5px; width: 10px; height: 10px; }
  .gnav__tel { display: block; margin-top: 24px; }
  .gnav__tel a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--kid); font-size: 22px; text-decoration: none; }
  .hd__cta { margin-left: auto; }
}
@media (max-width: 760px) {
  .hd__in { padding: 8px 14px; gap: 10px; min-height: 66px; }
  .gnav { top: 66px; }
  .logo { width: 172px; }
  .hd__tel { display: none; }
  .btn-yoyaku { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  .hd__closed { display: none; }
  .menu { width: 46px; height: 46px; }
  .demo { font-size: 9px; padding: 0 5px; }
}
@media (max-width: 400px) {
  .logo { width: 150px; }
  .hd__in { gap: 8px; padding-inline: 10px; }
}

/* ---------- 夜空の区画（子ども向け：紺の地＋紙の繊維） ---------- */
.night { position: relative; background: var(--navy) var(--fiber); color: #fff; }
.sky { position: absolute; left: 0; right: 0; top: 0; height: 260px; pointer-events: none; overflow: hidden; }
.sky__s { position: absolute; height: auto; filter: url(#cutS); }
.edge { position: absolute; left: 0; width: 100%; height: 60px; pointer-events: none; z-index: 2; }
.edge--bottom { bottom: -1px; }
.edge--top { top: -1px; }

.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 26px; border-radius: 99px; font-family: var(--kid); font-size: 16.5px; letter-spacing: .04em; text-decoration: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translate(-1px, -2px); }
.btn__arw { position: relative; width: 20px; height: 20px; border-radius: 50%; flex: none; }
.btn__arw::after { content: ""; position: absolute; left: 6px; top: 6px; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 2px 2px 0 var(--navy-d); }
.btn--navy .btn__arw { background: rgba(255,255,255,.16); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 2px 2px 0 #CCCCCC; }
.btn--white .btn__arw { background: var(--paper); }
.btn--star { background: var(--yellow); color: var(--navy); box-shadow: 2px 2px 0 var(--yellow-d); }
.btn--star .btn__arw { background: rgba(255,255,255,.4); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

.h2 { display: flex; align-items: center; gap: .42em; font-family: var(--kid); font-weight: 500; font-size: clamp(25px, 1.6vw + 18px, 38px); line-height: 1.35; letter-spacing: .04em; margin-bottom: 26px; }
.hstar { width: .9em; height: auto; flex: none; filter: url(#cutS); transform: rotate(-8deg); }
.h2--night { color: #fff; justify-content: center; }
.h3 { font-family: var(--kid); font-size: clamp(21px, 1vw + 16px, 27px); letter-spacing: .04em; margin-bottom: 14px; }

/* ---------- 最初の画面 ---------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 92px; overflow: hidden; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 40fr 60fr; align-items: center; gap: clamp(16px, 3vw, 48px); width: min(100% - 40px, 1280px); margin: 0 auto; }
.hero__title { font-size: clamp(44px, 4.5vw, 74px); white-space: nowrap; line-height: 1.16; letter-spacing: .06em; margin-bottom: 22px; }
.hero__title span { display: block; }
.hero__title span + span { padding-left: .5em; }
.hero__kid { color: var(--yellow); font-size: clamp(18px, 1vw + 13px, 25px); margin-bottom: 14px; }
.hero__par { font-size: clamp(15px, .3vw + 14px, 17px); color: #fff; max-width: 30em; margin-bottom: 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art .art { width: 100%; max-width: 760px; margin-left: auto; overflow: visible; }

@media (max-width: 860px) {
  .hero { padding-bottom: 76px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin: -4px auto -12px; width: min(100%, 400px); }
  .hero__title { font-size: clamp(40px, 11vw, 58px); margin-bottom: 14px; }
  .hero__title span + span { padding-left: .4em; }
}

/* 動き（JS があって、動きを減らす設定でないときだけ） */
.js .hero__text > * { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.js .hero__text > :nth-child(2) { animation-delay: .15s; }
.js .hero__text > :nth-child(3) { animation-delay: .28s; }
.js .hero__text > :nth-child(4) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .sky__s { animation: tw 3.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes tw { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.8) rotate(8deg); opacity: .6; } }
.js .float { animation: float 5.5s ease-in-out infinite; animation-delay: calc(var(--d) * -1); transform-box: fill-box; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(6deg); } }
.js .rock { animation: rock 7s ease-in-out infinite; transform-box: view-box; transform-origin: 320px 430px; }
@keyframes rock { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.js .scrub { animation: scrub .5s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 386px 324px; }
@keyframes scrub { from { transform: rotate(-5deg); } to { transform: rotate(4deg); } }
.js .scrub2, .js .scrub3 { animation: scrub2 .45s ease-in-out infinite alternate; }
@keyframes scrub2 { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
.js .wave { animation: wave 1.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 30% 95%; }
@keyframes wave { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
.js .give { animation: give 2.6s ease-in-out infinite; }
@keyframes give { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(7px, -3px); } }
.js .walk { animation: walk 1.6s ease-in-out infinite; }
@keyframes walk { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.js .fade { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .fade.is-in { opacity: 1; transform: none; }

/* ---------- お知らせ ---------- */
.news { padding: 26px 0 30px; }
.news__in { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px 32px; align-items: start; }
.news__h { font-family: var(--kid); font-size: 22px; letter-spacing: .06em; padding-top: 2px; }
.news__list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 7px 0; }
.news__list time { font-family: var(--kid); font-size: 15px; color: var(--ink-2); letter-spacing: .04em; }
.news__list p { margin: 0; font-size: 15px; line-height: 1.7; }
.more { font-family: var(--kid); font-size: 15px; text-decoration: none; white-space: nowrap; padding-top: 6px; }
.more:hover { text-decoration: underline; }
.news--page { padding: 0; }
.news--page .news__list li { padding: 12px 0; }
@media (max-width: 860px) {
  .news__in { grid-template-columns: 1fr; }
  .news__list li { grid-template-columns: 1fr; gap: 0; }
  .more { justify-self: end; }
}

/* ---------- はじめての日（4コマ） ---------- */
.first { padding: 120px 0 128px; }
.first .wrap { position: relative; z-index: 1; }
.lead-kid { text-align: center; font-size: clamp(17px, .8vw + 13px, 22px); margin-bottom: 40px; }
.koma { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 30px); counter-reset: k; }
.koma__i { position: relative; }
.koma__no { position: absolute; z-index: 3; left: -6px; top: -10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); box-shadow: 2px 2px 0 var(--yellow-d); font-family: var(--kid); font-size: 19px; }
.koma .art { width: 100%; overflow: visible; }
.koma__kid { margin: 14px 4px 0; font-size: clamp(15px, .5vw + 13px, 18px); text-align: center; }
.koma__n { font-family: var(--kid); font-size: 24px; fill: var(--yellow); }
.koma__par { margin: 8px 4px 0; color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.8; }
.koma--big { grid-template-columns: repeat(2, 1fr); gap: 46px 40px; max-width: 1000px; margin: 44px auto 0; }
.koma--big .koma__kid { text-align: left; font-size: clamp(17px, .7vw + 14px, 21px); }
.koma--big .koma__no { width: 46px; height: 46px; font-size: 23px; }
.js .koma .koma__i { opacity: 0; transform: translateY(-22px) rotate(-5deg); transition: opacity .6s ease, transform .9s var(--ease); transition-delay: calc(var(--i) * .16s); }
.js .koma.is-in .koma__i { opacity: 1; transform: none; }
.js .pop { animation: pop 2.8s var(--ease) infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } }
.note { position: relative; isolation: isolate; max-width: 780px; margin: 46px auto 0; padding: 22px 30px; color: var(--navy); border-radius: 6px; transform: rotate(-.6deg); }
.note::before { background: #fff; }
.note p { margin: 0; font-size: 16px; line-height: 1.85; }
@media (max-width: 860px) {
  .first { padding: 96px 0 104px; }
  .koma { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .koma--big { grid-template-columns: 1fr; gap: 40px; }
  .koma--big .art { max-width: 420px; }
  .note { padding: 18px 20px; }
}

/* ---------- 白の区画 ---------- */
.sec { padding: clamp(64px, 7vw, 104px) 0; }
.sec + .sec { padding-top: clamp(16px, 3vw, 40px); }
.sec--tint { background: #fff; }

.grow__in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.grow__text p { margin-bottom: 28px; }
@media (max-width: 960px) { .grow__in { grid-template-columns: 1fr; } }

/* 年齢ごとの歯の生え方 */
.hs2 { margin: 0; }
.hs2__card { position: relative; isolation: isolate; border-radius: 26px; padding: 34px clamp(16px, 2.4vw, 34px) 26px; color: #fff; }
.hs2__card::before { background: var(--navy) var(--fiber); }
.hs2__card .sky { height: 70px; }
.hs2__card .sky__s { width: 12px !important; }
.hs2__list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr) 30px repeat(2, .9fr); column-gap: 0; row-gap: 0; }
.hs2--mini .hs2__list { grid-template-columns: repeat(5, 1fr); }
.hs2__st:nth-child(6) { grid-column: 7; }
.hs2__st { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; text-align: center; }
.hs2__jaw { width: 100%; padding: 0 6px 10px; }
.hs2__jaw .art { width: 100%; max-width: 118px; margin: 0 auto; }
.hs2__age { position: relative; width: 100%; margin: 0; padding: 7px 2px; background: #fff; color: var(--navy); font-family: var(--kid); font-size: 15px; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 0 #CCCCCC; }
.hs2__st:first-child .hs2__age, .hs2__st:nth-child(6) .hs2__age { border-radius: 99px 0 0 99px; }
.hs2__st:nth-child(5) .hs2__age, .hs2__st:last-child .hs2__age { border-radius: 0 99px 99px 0; box-shadow: 2px 2px 0 #CCCCCC; }
.hs2--mini .hs2__st:last-child .hs2__age { border-radius: 0 99px 99px 0; }
.hs2__mark { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 12px 0 0; padding: 0 4px; font-size: 13px; line-height: 1.5; word-break: auto-phrase; }
.hs2__mstar { width: 24px; height: auto; filter: url(#cutS); }
.hs2__key { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 26px; font-size: 13.5px; }
.hs2__key li { display: flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 14px; border-radius: 4px; box-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.sw--w { background: #fff; } .sw--y { background: var(--yellow); } .sw--b { background: var(--blue); }
.sw__star { width: 18px; height: auto; filter: url(#cutS); }
.hs2__note { position: relative; z-index: 1; margin: 10px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.78); }
.js .hs2 .hs2__jaw, .js .hs2 .hs2__mark:not(.is-empty) { opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .5s ease, transform .7s var(--ease); transition-delay: calc(var(--i) * .12s + .1s); }
.js .hs2 .hs2__mark { transition-delay: calc(var(--i) * .12s + .5s); }
.js .is-in .hs2 .hs2__jaw, .js .is-in .hs2 .hs2__mark, .js .hs2.is-in .hs2__jaw, .js .hs2.is-in .hs2__mark { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .hs2__list, .hs2--mini .hs2__list { grid-template-columns: 1fr; row-gap: 12px; }
  .hs2__st:nth-child(6) { grid-column: auto; }
  .hs2__st { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 14px; align-items: center; }
  .hs2__jaw { grid-row: 1 / 3; padding: 0; }
  .hs2__age, .hs2__st:first-child .hs2__age, .hs2__st:nth-child(5) .hs2__age, .hs2__st:nth-child(6) .hs2__age, .hs2__st:last-child .hs2__age, .hs2--mini .hs2__st:last-child .hs2__age { width: auto; border-radius: 99px; padding: 4px 14px; box-shadow: 2px 2px 0 #CCCCCC; align-self: end; }
  .hs2__mark { flex-direction: row; margin: 6px 0 0; padding: 0; text-align: left; align-self: start; }
  .hs2__mark.is-empty { display: none; }
  .hs2__st:has(.is-empty) .hs2__age { grid-row: 1 / 3; align-self: center; }
}

/* 診療のこと：4つの札 */
.tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 70px; }
.tag:nth-child(odd) a { transform: rotate(-1.2deg); }
.tag:nth-child(even) a { transform: rotate(1deg) translateY(14px); }
.tag a { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; padding: 74px 22px 22px; border-radius: 10px; text-decoration: none; transition: transform .35s var(--ease); }
.tag a::before { background: var(--paper); }
.tag a:hover { transform: rotate(0) translateY(-6px); }
.tag__art { position: absolute; left: 50%; top: -52px; width: 112px; margin-left: -56px; }
.tag__name { font-family: var(--kid); font-size: 20px; letter-spacing: .03em; margin-bottom: 10px; text-align: center; }
.tag__text { font-size: 15px; line-height: 1.8; flex: 1; }
.tag__arw { align-self: flex-end; margin-top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 2px 2px 0 var(--navy-d); font-size: 16px; line-height: 1; transition: transform .3s var(--ease); }
.tag a:hover .tag__arw { transform: translateX(4px); }
.care__narabi { margin-top: 40px; text-align: center; font-size: 15px; }
.care__narabi a { text-underline-offset: 4px; }
@media (max-width: 1000px) { .tags { grid-template-columns: repeat(2, 1fr); row-gap: 76px; } }
@media (max-width: 560px) {
  .tags { gap: 58px 12px; margin-top: 56px; }
  .tag:nth-child(even) a { transform: rotate(1deg) translateY(10px); }
  .tag a { padding: 50px 13px 14px; }
  .tag__art { width: 84px; margin-left: -42px; top: -40px; }
  .tag__name { font-size: 14.5px; letter-spacing: 0; word-break: keep-all; }
  .tag__text { font-size: 13.5px; line-height: 1.7; }
  .tag__arw { width: 30px; height: 30px; }
}

/* 保護者の方へ（星の黄のごく薄い地） */
.parents { background: var(--cream); padding-top: clamp(64px, 7vw, 100px) !important; }
.parents__in { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.parents__head .btn { margin-top: 6px; }
.parents__list { display: grid; gap: 22px; }
.parents__list li { position: relative; isolation: isolate; display: grid; grid-template-columns: 104px 1fr; gap: 22px; align-items: center; padding: 18px 26px 18px 18px; border-radius: 12px; }
.parents__list li::before { background: #fff; }
.parents__list li:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.parents__list li:nth-child(3) { margin-left: clamp(0px, 2vw, 24px); }
.parents__list h3 { font-family: var(--kid); font-size: 20px; margin-bottom: 4px; }
.parents__list p { margin: 0; font-size: 15.5px; line-height: 1.8; }
@media (max-width: 860px) {
  .parents__in { grid-template-columns: 1fr; }
  .parents__list li { grid-template-columns: 78px 1fr; gap: 14px; padding: 14px 18px 14px 14px; }
  .parents__list li:nth-child(n) { margin-left: 0; }
}
.parents__title-sp { display: none; }

/* 診療時間の表 */
.hours__in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hours__text p { margin-bottom: 28px; }
.hs3 { margin: 0; }
.hs3__paper { position: relative; isolation: isolate; border-radius: 22px; padding: clamp(16px, 2.4vw, 30px); color: #fff; }
.hs3__paper::before { background: var(--navy) var(--fiber); }
.hs3__t { width: 100%; border-spacing: 5px 8px; table-layout: fixed; }
.hs3__t th { font-family: var(--kid); font-weight: 500; font-size: 16px; text-align: center; letter-spacing: .02em; }
.hs3__t thead th { padding-bottom: 4px; }
.hs3__t thead th:first-child { width: 31%; }
.hs3__t tbody th { text-align: left; white-space: nowrap; font-size: 15.5px; padding: 8px 10px; background: rgba(255,255,255,.08); border-radius: 8px; }
.hs3__t td { text-align: center; height: 50px; }
.mk { display: inline-grid; place-items: center; }
.mk__star { width: 30px; height: auto; filter: url(#cutS); }
.mk--off { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 2px 2px 0 #CCCCCC; }
.mk--no { color: rgba(255,255,255,.5); font-size: 15px; }
.hs3__note { margin: 10px 4px 0; font-size: 13.5px; color: rgba(255,255,255,.8); }
.hs3--big .hs3__t td { height: 62px; }
.hs3--big .mk__star { width: 38px; }
.hs3--big .hs3__t th { font-size: 18px; }
.js .hs3 td .mk { opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .4s ease, transform .6s var(--ease); transition-delay: calc(var(--i) * .035s); }
.js .is-in .hs3 td .mk, .js .hs3.is-in td .mk { opacity: 1; transform: none; }
@media (max-width: 960px) { .hours__in { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hs3__paper { padding: 12px 8px; border-radius: 16px; }
  .hs3__t { border-spacing: 2px 6px; }
  .hs3__t thead th:first-child { width: 29%; }
  .hs3__t th, .hs3--big .hs3__t th { font-size: 12.5px; }
  .hs3__t thead th { white-space: nowrap; letter-spacing: -.06em; font-size: 11.5px !important; }
  .hs3__t tbody th { font-size: 11.5px; padding: 6px 4px; letter-spacing: 0; }
  .hs3__t td, .hs3--big .hs3__t td { height: 40px; }
  .mk__star, .hs3--big .mk__star { width: 22px; }
  .hs3__note { font-size: 12.5px; }
}

/* ---------- 各ページの最後の帯・フッター ---------- */
.band { position: relative; background: var(--navy) var(--fiber); color: #fff; padding: 132px 20px 70px; text-align: center; overflow: hidden; }
.band__in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.band__kid { font-size: clamp(38px, 4vw + 16px, 70px); letter-spacing: .1em; margin-bottom: 16px; }
.band__par { margin-bottom: 30px; }
.band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ft { background: var(--navy) var(--fiber); color: #fff; padding: 46px 0 28px; }
.ft__in { width: min(100% - 40px, var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-top: 40px; background: radial-gradient(circle, rgba(255,255,255,.35) 1.4px, transparent 1.6px) 0 0 / 22px 6px repeat-x; }
.ft__logo { display: inline-block; margin-bottom: 18px; }
.ft__info { display: grid; gap: 8px; font-size: 14px; line-height: 1.75; }
.ft__info div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
.ft__info dt { font-family: var(--kid); color: rgba(255,255,255,.72); }
.ft__info a { color: #fff; }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; align-content: start; font-family: var(--kid); font-size: 15px; }
.ft__nav a { text-decoration: none; display: inline-block; padding: 6px 0; }
.ft__nav a:hover { text-decoration: underline; }
.ft__copy { text-align: center; margin: 36px 0 0; color: rgba(255,255,255,.65); font-size: 12px; }
@media (max-width: 760px) {
  .ft__in { grid-template-columns: 1fr; }
  .band { padding-top: 110px; }
}

/* ---------- 下層ページの頭 ---------- */
.crumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-bottom: 18px; }
.crumb li + li::before { content: "／"; margin-right: 6px; opacity: .6; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.night .crumb { color: rgba(255,255,255,.8); }
.phead { position: relative; padding: clamp(36px, 5vw, 64px) 0 120px; overflow: hidden; }
.phead__in { position: relative; z-index: 1; }
.phead__h { font-size: clamp(38px, 3.6vw + 18px, 68px); letter-spacing: .08em; line-height: 1.25; margin-bottom: 18px; }
.phead__kid { font-size: clamp(18px, .9vw + 14px, 25px); color: var(--yellow); margin-bottom: 12px; }
.phead__par { max-width: 36em; text-wrap: balance; }
.night .phead__par { color: #fff; }
.phead--day { padding-bottom: clamp(40px, 5vw, 70px); }
.phead--day .phead__h { color: var(--navy); }
.phead__in--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.phead__art .art { width: 100%; max-width: 480px; margin-left: auto; overflow: visible; }
.phead__art--jaw .art { max-width: 360px; }
.phead--house .phead__h { text-align: center; }
.phead--house .crumb ol { justify-content: center; }
.phead__art--house .art { max-width: 640px; margin: 10px auto -40px; }
.js .phead__in > *, .js .phead__in--split > div > * { animation: rise .9s var(--ease) both; }
.js .phead__in--split > * { animation: none; }
.js .phead__in > :nth-child(2), .js .phead__in--split > div > :nth-child(2) { animation-delay: .12s; }
.js .phead__in > :nth-child(3), .js .phead__in--split > div > :nth-child(3) { animation-delay: .22s; }
.js .phead__in > :nth-child(4), .js .phead__in--split > div > :nth-child(4) { animation-delay: .32s; }
.js .phead .koma { animation: none; }
@media (max-width: 860px) {
  .phead__in--split { grid-template-columns: 1fr; }
  .phead__art .art { margin: 0 auto; max-width: 360px; }
  .phead { padding-bottom: 96px; }
  .phead--day { padding-bottom: 36px; }
}

.prose p { margin-bottom: 1em; }
.ptable { width: 100%; border-spacing: 0 8px; font-size: 15.5px; }
.ptable thead th { text-align: left; font-family: var(--kid); font-weight: 500; font-size: 14px; color: var(--ink-2); padding: 0 18px 2px; }
.ptable tbody tr > * { padding: 14px 18px; vertical-align: top; text-align: left; line-height: 1.75; background: var(--paper); box-shadow: 0 2px 0 #C2C3C6; }
.ptable tbody th { font-weight: 700; white-space: nowrap; width: 1%; border-radius: 10px 0 0 10px; }
.ptable tbody td:last-child { border-radius: 0 10px 10px 0; box-shadow: 2px 2px 0 #C2C3C6; }
.ptable--3 tbody td:nth-child(2) { width: 30%; }
.tbl-wrap { margin-top: 40px; }
@media (max-width: 640px) {
  .ptable { font-size: 14.5px; }
  .ptable tbody th { white-space: nowrap; width: 1%; padding-right: 10px; }
  .ptable--3 thead { display: none; }
  .ptable--3 tbody tr { display: grid; grid-template-columns: 1fr; margin-bottom: 10px; }
  .ptable--3 tbody tr > * { width: auto !important; border-radius: 0; padding: 8px 16px; }
  .ptable--3 tbody th { border-radius: 10px 10px 0 0; padding-top: 14px; }
  .ptable--3 tbody td:last-child { border-radius: 0 0 10px 10px; padding-bottom: 14px; }
  .ptable--3 tbody td:nth-child(2) { font-weight: 700; }
}

/* はじめての日：ページの頭にコマを並べる */
.p-hajimete .phead { padding-bottom: 130px; }
.p-hajimete .phead__h, .p-hajimete .phead__kid, .p-hajimete .phead__par, .p-hajimete .crumb { text-align: center; margin-inline: auto; }
.p-hajimete .crumb ol { justify-content: center; }

/* 歯が生える順番 */
.visit__kid { font-size: clamp(22px, 1.4vw + 16px, 34px); color: var(--navy); margin-bottom: 22px; }

/* 診療のこと */
.shin { display: grid; grid-template-columns: 230px 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.shin__idx { position: sticky; top: 104px; }
.shin__idx ul { display: grid; gap: 4px; }
.shin__idx a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 99px; font-family: var(--kid); font-size: 16px; text-decoration: none; transition: background .2s; }
.shin__idx a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 2px 2px 0 var(--yellow-d); flex: none; }
.shin__idx a:hover { background: var(--paper); }
.shin__body { display: grid; gap: clamp(56px, 6vw, 84px); }
.shin__item { display: grid; grid-template-columns: 120px 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; scroll-margin-top: 100px; }
.shin__art .art { width: 100%; }
.say { position: relative; isolation: isolate; display: inline-block; margin-top: 8px; padding: 14px 22px; border-radius: 22px; color: var(--navy); font-size: clamp(17px, .6vw + 14px, 21px); }
.say::before { background: var(--cream); }
@media (max-width: 860px) {
  .shin { grid-template-columns: 1fr; }
  .shin__idx { position: static; }
  .shin__idx ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .shin__idx a { background: var(--paper); padding: 8px 14px; font-size: 14.5px; }
  .shin__item { grid-template-columns: 76px 1fr; }
}

/* 保護者の方へ */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: var(--paper); box-shadow: 2px 2px 0 #C2C3C6; font-family: var(--kid); font-size: 15px; text-decoration: none; transition: transform .25s var(--ease); }
.jump a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.jump a:hover { transform: translateY(-2px); }
.p-hogosha .phead__h { font-family: var(--kid); }
.migaki__top { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.migaki__brushes .art { width: 100%; max-width: 300px; margin-left: auto; transform: rotate(3deg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); margin-top: 48px; }
.steps__i { position: relative; }
.steps__no { position: absolute; z-index: 2; left: -8px; top: -10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); box-shadow: 2px 2px 0 var(--yellow-d); font-family: var(--kid); font-size: 19px; }
.steps .art { width: 100%; }
.steps p { margin: 14px 2px 0; font-size: 15px; line-height: 1.8; }
.js .steps .steps__i.fade { transition-delay: calc(var(--i) * .15s); }
@media (max-width: 860px) {
  .migaki__top { grid-template-columns: 1fr; }
  .migaki__brushes .art { margin: 0 auto; max-width: 240px; }
  .steps { grid-template-columns: 1fr; gap: 34px; max-width: 420px; margin-inline: auto; }
}
.yoyaku { scroll-margin-top: 90px; }
.yoyaku__in { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.yoyaku__art .art { width: 100%; max-width: 300px; margin: 30px auto 0; transform: rotate(-3deg); }
.line { position: relative; isolation: isolate; margin-top: 28px; padding: 24px 28px; border-radius: 16px; }
.line::before { background: var(--cream); }
.line .btn { margin: 4px 0 14px; }
.line .small { margin: 0; }
@media (max-width: 860px) {
  .yoyaku__in { grid-template-columns: 1fr; }
  .yoyaku__art { order: 2; }
  .yoyaku__art .art { max-width: 220px; margin-top: 0; }
  .line { padding: 20px 18px; }
}
.faq { display: grid; gap: 16px; }
.faq__i { padding: 4px 0 18px; }
.faq dt { display: flex; gap: 12px; font-weight: 700; font-size: 16.5px; line-height: 1.7; margin-bottom: 8px; }
.faq dd { display: flex; gap: 12px; line-height: 1.85; }
.faq__q, .faq__a { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-family: var(--kid); font-weight: 500; font-size: 15px; margin-top: -2px; }
.faq__q { background: var(--navy); color: #fff; box-shadow: 2px 2px 0 var(--navy-d); }
.faq__a { background: var(--paper); color: var(--navy); box-shadow: 2px 2px 0 #C2C3C6; }

/* 医院の案内 */
.access { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.access__map .art { width: 100%; }
.map__txt text { font-family: var(--par); font-size: 18px; font-weight: 700; }
.map__txt .t-n { fill: var(--navy); }
.map__txt .t-w { fill: #fff; }
.map__txt .t-y { fill: var(--yellow); font-family: var(--kid); font-weight: 500; font-size: 18px; }
.map__txt .t-b { font-family: var(--kid); font-weight: 500; font-size: 18px; }
.map__txt .t-p { fill: var(--navy); font-size: 19px; }
.access__t th { width: 34%; }
@media (max-width: 960px) { .access { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .map__txt text, .map__txt .t-y { font-size: 22px; } }
.greet__in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.greet__art .art { width: 100%; max-width: 340px; margin: 0 auto; transform: rotate(-2deg); }
.greet__words p { font-size: clamp(16px, .3vw + 15px, 18px); line-height: 2; }
.greet__name { margin-top: 22px; font-family: var(--kid); font-size: 17px; }
@media (max-width: 860px) { .greet__in { grid-template-columns: 1fr; } .greet__art .art { max-width: 260px; } }
.career th { font-family: var(--kid); font-weight: 500 !important; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 20px; }
.rooms li:nth-child(2) { margin-top: 48px; }
.rooms .art { width: 100%; margin-bottom: 16px; }
.rooms li:nth-child(1) .art { transform: rotate(-1.5deg); }
.rooms li:nth-child(3) .art { transform: rotate(1.5deg); }
.rooms h3 { font-family: var(--kid); font-size: 20px; margin-bottom: 4px; }
.rooms p { font-size: 15px; line-height: 1.8; margin: 0; }
@media (max-width: 860px) { .rooms { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .rooms li:nth-child(2) { margin-top: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.nw { white-space: nowrap; }
.phead--house { padding-top: clamp(56px, 6vw, 80px); }
.wrap--mid > p { margin-top: 16px; }
