/* ===== Tamura Kids ===== */
:root {
	--green-900: #2f5d46;
	--green-700: #3f7a5d;
	--green-600: #4e8c6b;
	--green-500: #6aa583;
	--green-300: #b9d6c3;
	--green-100: #e8f1ea;
	--green-50: #f3f8f4;
	--teal: #4f9db3;
	--ink: #3a463f;
	--ink-soft: #66736b;
	--line: #e3ebe5;
	--white: #fff;
	--radius: 20px;
	--shadow: 0 8px 28px rgba(63, 122, 93, .12);
	--shadow-sm: 0 3px 12px rgba(63, 122, 93, .10);
	--font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
	--font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.8;
	letter-spacing: .04em;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }
.section { padding: 56px 0; }

/* ===== Buttons ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 28px; border-radius: 999px; font-weight: 500; font-size: 14px;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-900); transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--green-600); color: var(--green-700); background: transparent; }
.btn--outline:hover { background: var(--green-700); color: #fff; }
.btn--block { display: flex; width: 100%; }

.arrow-btn {
	display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--green-100); color: var(--green-700); font-size: 14px;
	border: 1px solid var(--green-300); transition: .2s;
}
.arrow-btn--sm { width: 24px; height: 24px; font-size: 12px; background: var(--green-500); color: #fff; border: 0; }

/* ===== Header ===== */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, .03);
}
.site-header__inner {
	max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: .12em; color: var(--green-900); }
.brand__sub { font-size: 12px; color: var(--ink-soft); letter-spacing: .1em; }

.gnav { display: flex; align-items: center; gap: 36px; }
.gnav__list { display: flex; gap: 32px; }
.gnav__list a { font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; }
.gnav__list a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
	background: var(--green-500); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.gnav__list a:hover::after { transform: scaleX(1); }
.gnav__cta { padding: 12px 26px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--green-900); border-radius: 2px; transition: .25s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
	position: relative; overflow: hidden; height: 460px; background: #f7fbf8;
}
/* 画像は高さいっぱいに全体を表示（切り取らない）。左端はぼかして背景に溶け込ませる */
.hero::after {
	content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; right: 0;
	aspect-ratio: 1600 / 560; background: var(--hero-img) center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
	mask-image: linear-gradient(90deg, transparent 0, #000 28%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(247, 251, 248, .96) 0%, rgba(247, 251, 248, .8) 26%, rgba(247, 251, 248, 0) 48%);
}
.hero__inner {
	position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 32px; min-height: 460px;
	display: flex; flex-direction: column; justify-content: center;
}
.hero__slide { position: absolute; left: 32px; top: 50%; transform: translateY(-58%); opacity: 0; visibility: hidden; transition: opacity .8s, transform .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: translateY(-62%); }
.hero__title {
	font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 4vw, 46px);
	letter-spacing: .18em; line-height: 1.6; color: var(--green-700); margin-bottom: 24px;
}
.hero__lead { font-size: clamp(14px, 1.5vw, 17px); letter-spacing: .1em; color: var(--ink); }
.hero__dots { position: absolute; left: 32px; bottom: 36px; display: flex; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--green-300); cursor: pointer; transition: .2s; }
.hero__dots button.is-active { background: var(--green-700); transform: scale(1.15); }
.blob { position: absolute; z-index: 1; border-radius: 50%; background: var(--green-100); opacity: .9; }
.blob--tl { width: 220px; height: 200px; left: -90px; top: -60px; }
.blob--bl { width: 150px; height: 170px; left: -80px; bottom: -50px; }

/* ===== Section title ===== */
.sec-title { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-head); font-weight: 500; }
.sec-title::before { content: ""; width: 4px; height: 22px; background: var(--green-500); border-radius: 2px; align-self: center; }
.sec-title__ja { font-size: 20px; letter-spacing: .12em; color: var(--green-900); }
.sec-title__en { font-size: 13px; color: var(--green-500); letter-spacing: .08em; }

/* ===== Cards ===== */
.services { padding-top: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -64px; position: relative; z-index: 2; }
.card {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: var(--shadow);
}
.card__img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--green-100); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__head { display: flex; align-items: center; gap: 14px; margin: -26px 0 10px 10px; position: relative; }
.card__icon {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: var(--green-600); color: #fff; border: 4px solid #fff; flex: none;
}
.card__title { font-family: var(--font-head); font-size: 18px; letter-spacing: .1em; color: var(--green-900); margin-top: 22px; }
.card__text { font-size: 13px; line-height: 1.9; color: var(--ink-soft); padding: 0 10px; }

/* ===== News ===== */
.news { background: var(--green-50); border-radius: var(--radius); padding: 28px 32px 12px; box-shadow: var(--shadow-sm); }
.news__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.more-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list li:last-child { border-bottom: 0; }
.news__list a { display: flex; align-items: center; gap: 22px; padding: 18px 4px; font-size: 14px; transition: background .2s, padding .2s; }
.news__list a:hover { color: var(--green-700); padding-left: 10px; }
.news__list time { color: var(--ink-soft); font-size: 13px; width: 92px; flex: none; }
.news__title { flex: 1; }
.chev { color: var(--ink-soft); font-size: 20px; }
.news__empty { padding: 20px 4px 28px; color: var(--ink-soft); }
.tag { display: inline-block; min-width: 68px; text-align: center; padding: 1px 12px; font-size: 11px; color: #fff; border-radius: 4px; background: var(--green-500); flex: none; }
.tag--1 { background: var(--teal); }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr .8fr; gap: 40px; align-items: center; }
.about__photo { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__catch { font-family: var(--font-head); font-size: 22px; line-height: 1.8; letter-spacing: .1em; color: var(--green-900); margin: 14px 0 12px; }
.about__text { font-size: 13px; color: var(--ink-soft); line-height: 2; margin-bottom: 22px; }
.about__doctors { text-align: center; }
.about__doctors-img { width: min(260px, 100%); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50% 46% 52% 48%; background: var(--green-100); overflow: hidden; }
.about__doctors-img img { width: 100%; height: 100%; object-fit: cover; }
.about__doctors-link { font-size: 13px; letter-spacing: .08em; }
.about__doctors-link:hover { color: var(--green-700); }

/* ===== Info ===== */
.info { background: var(--green-50); padding: 48px 0 56px; margin-top: 24px; }
.info__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
.hours { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 13px; text-align: center; }
.hours th { font-weight: 500; color: var(--ink-soft); padding: 4px; }
.hours tbody th { text-align: left; color: var(--ink); font-size: 12px; line-height: 1.5; padding-right: 10px; }
.hours td { background: #fff; padding: 12px 0; }
.hours tbody tr td:first-of-type { border-radius: 10px 0 0 10px; }
.hours tbody tr td:last-child { border-radius: 0 10px 10px 0; }
.sym { color: var(--green-600); font-size: 15px; font-weight: 700; }
.sym--w { color: #d58a2f; }
.sym--x { color: #9aa6a0; font-weight: 500; }
.hours td.txt { font-size: 11px; color: var(--green-700); line-height: 1.4; padding: 8px 2px; }
.hours td.off { background: #fff; }
.hours td small { display: block; font-size: 10px; color: var(--ink-soft); line-height: 1.2; }
.note { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

.access__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0 20px; align-items: center; }
.access__map { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); border: 4px solid #fff; }
.access__map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.access__list { display: grid; gap: 12px; font-size: 13px; }
.access__list li { display: flex; align-items: center; gap: 10px; }
.access__list svg { color: var(--green-600); flex: none; width: 20px; height: 20px; }
.access__tel { font-family: var(--font-head); font-size: 26px !important; font-weight: 500; color: var(--green-700); letter-spacing: .06em; }
.access__tel a { font-size: 26px; }

/* ===== Footer ===== */
.site-footer { background: #fff; padding: 36px 0 24px; position: relative; overflow: hidden; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-nav ul { display: flex; gap: 0; font-size: 11px; color: var(--ink-soft); }
.footer-nav li + li::before { content: "|"; margin: 0 16px; color: var(--green-300); }
.footer-nav a:hover { color: var(--green-700); }
.site-footer__copy { text-align: center; font-size: 11px; color: var(--ink-soft); margin-top: 22px; }

.fab-reserve { display: none; }

/* ===== Sub pages ===== */
.page-hero { background: var(--green-50); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(22px, 3vw, 32px); letter-spacing: .12em; color: var(--green-900); line-height: 1.6; }
.page-hero__meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.page-body { padding: 48px 0 72px; }
.entry { line-height: 2; }
.entry h2 { font-family: var(--font-head); font-size: 22px; color: var(--green-900); border-left: 4px solid var(--green-500); padding-left: 14px; margin: 2.2em 0 1em; }
.entry h3 { font-family: var(--font-head); font-size: 18px; color: var(--green-700); margin: 1.8em 0 .8em; }
.entry p { margin-bottom: 1.2em; }
.entry a { color: var(--green-700); text-decoration: underline; }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; }
.entry th { background: var(--green-50); }
.entry__back { margin-top: 48px; }
.pagination { margin-top: 32px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: var(--green-50); font-size: 14px; }
.pagination .current { background: var(--green-700); color: #fff; }

/* ===== Doctors page ===== */
.page-hero__en { font-family: var(--font-head); font-size: 13px; letter-spacing: .2em; color: var(--green-500); margin-bottom: 4px; }
.doctors__lead { text-align: center; color: var(--ink-soft); margin-bottom: 40px; }
.doctors__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 880px; margin-inline: auto; }
.doctor { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.doctor__photo { background: var(--green-100); height: 190px; display: grid; place-items: end center; padding-top: 18px; }
.doctor__photo img { height: 100%; width: auto; aspect-ratio: 1; border-radius: 50% 50% 0 0; background: var(--green-50); object-fit: cover; object-position: top; }
.doctor__body { padding: 26px 30px 32px; }
.doctor__role { display: inline-block; font-size: 12px; letter-spacing: .15em; color: #fff; background: var(--green-600); border-radius: 999px; padding: 2px 16px; }
.doctor__name { font-family: var(--font-head); font-weight: 500; font-size: 28px; letter-spacing: .2em; color: var(--green-900); margin: 10px 0 16px; }
.doctor__bio { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.doctor__bio li { position: relative; padding-left: 22px; }
.doctor__bio li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green-300); }
.doctors__entry { margin-top: 48px; max-width: 820px; margin-inline: auto; }
.cta { background: var(--green-50); padding: 48px 0; text-align: center; }
.cta__text { font-family: var(--font-head); font-size: 20px; letter-spacing: .12em; color: var(--green-900); margin-bottom: 20px; }
.cta__buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) {
	.doctors__grid { grid-template-columns: 1fr; }
	.doctor__name { font-size: 24px; }
}

.hours thead th:first-child, .hours tbody th { width: 27%; }

/* ===== Schedule page ===== */
.schedule__card { background: var(--green-50); border-radius: var(--radius); padding: 14px 28px 4px; box-shadow: var(--shadow-sm); }
.hours--lg { font-size: 15px; border-spacing: 0 8px; }
.hours--lg thead th { color: var(--green-900); font-family: var(--font-head); font-size: 16px; padding: 8px 4px; }
.hours--lg tbody th { font-size: 14px; color: var(--green-900); }
.hours--lg td { padding: 16px 4px; }
.hours--lg .sym { font-size: 20px; }
.hours--lg td small { font-size: 11px; }
.hours--lg td.txt { font-size: 12px; }
.schedule .note { margin: 4px 4px 0; }
.schedule__card .note { padding: 6px 4px 20px; line-height: 1.9; }
.schedule__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.schedule__legend .sym { margin-right: 6px; font-size: 16px; }
@media (max-width: 860px) {
	.schedule__card { padding: 10px 12px 2px; }
	.hours--lg { font-size: 13px; }
	.hours--lg td { padding: 12px 0; }
	.hours--lg tbody th { font-size: 12px; }
	.hours thead th:first-child, .hours tbody th { width: 25%; }
	.hours--lg td.txt { font-size: 10px; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.gnav__list { gap: 20px; }
	.about__grid { grid-template-columns: 1fr 1fr; }
	.about__doctors { grid-column: 1 / -1; }
	.info__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
	:root { --header-h: 68px; }
	.site-header__inner { padding: 0 16px; }
	.brand__name { font-size: 18px; }
	.brand__logo { width: 42px; height: 42px; }
	.nav-toggle { display: block; }
	.gnav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 12px 24px 28px; box-shadow: 0 16px 24px rgba(0, 0, 0, .08);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
	}
	.gnav.is-open { transform: none; opacity: 1; visibility: visible; }
	.gnav__list { flex-direction: column; gap: 0; }
	.gnav__list a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); }
	.gnav__list a::after { display: none; }
	.gnav__cta { margin-top: 20px; }

	.hero, .hero__inner { height: 460px; }
	.hero::after { top: auto; height: 250px; -webkit-mask-image: none; mask-image: none; }
	.hero::before { background: linear-gradient(180deg, rgba(247, 251, 248, .92) 0%, rgba(247, 251, 248, .7) 55%, rgba(247, 251, 248, .1) 100%); }
	.hero__inner { padding: 0 20px; justify-content: flex-start; }
	.hero__slide { left: 20px; right: 20px; top: 36px; transform: none; }
	.hero__slide.is-active { transform: none; }
	.hero__title { letter-spacing: .1em; margin-bottom: 14px; }
	.hero__dots { left: 20px; bottom: 24px; }

	.cards { grid-template-columns: 1fr; margin-top: -40px; }
	.news { padding: 22px 18px 8px; }
	.news__list a { flex-wrap: wrap; gap: 6px 12px; }
	.news__title { flex-basis: 100%; order: 3; }
	.chev { display: none; }
	.about__grid { grid-template-columns: 1fr; gap: 28px; }
	.access__row { grid-template-columns: 1fr; }
	.site-footer__inner { flex-direction: column; align-items: flex-start; padding: 0 20px; }
	.site-footer { padding-bottom: 84px; }

	.fab-reserve {
		display: flex; align-items: center; justify-content: center; position: fixed; z-index: 90;
		left: 16px; right: 16px; bottom: 14px; height: 52px; border-radius: 999px;
		background: var(--green-700); color: #fff; font-weight: 700; letter-spacing: .15em; box-shadow: 0 8px 22px rgba(47, 93, 70, .35);
	}
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
