/* =========================================================
   Minatomachi Clinic — main.css
   Palette:
     base       #F7F8F6 (白磁)
     primary    #1E5A5E (深い青緑)
     primary-dk #12393C
     accent     #D9A441 (山吹 — 予約CTA)
     mist       #E6EFEC (淡い青緑)
     ink        #26332F
========================================================= */

:root {
	--c-base: #F7F8F6;
	--c-white: #FFFFFF;
	--c-primary: #1E5A5E;
	--c-primary-dk: #12393C;
	--c-accent: #D9A441;
	--c-accent-dk: #B9852B;
	--c-mist: #E6EFEC;
	--c-ink: #26332F;
	--c-ink-soft: #5C6B67;
	--c-line: #D8E0DD;

	--font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
	--font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;

	--w-wide: 1600px;   /* PCヘッダー：横幅広め */
	--w-container: 1120px;
	--w-narrow: 800px;

	--header-h: 88px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--c-ink);
	background: var(--c-base);
	line-height: 1.9;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: opacity .3s var(--ease), color .3s var(--ease); }
a:hover { opacity: .75; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.skip-link {
	position: absolute; left: -9999px;
	background: var(--c-primary); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { max-width: var(--w-container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--w-narrow); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 28px; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1.4;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn--reserve { background: var(--c-accent); color: #fff; box-shadow: 0 6px 18px rgba(217,164,65,.35); }
.btn--reserve:hover { background: var(--c-accent-dk); box-shadow: 0 10px 24px rgba(217,164,65,.4); }
.btn--tel { background: var(--c-primary); color: #fff; }
.btn--tel:hover { background: var(--c-primary-dk); color: #fff; }
.btn--line { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn--line:hover { background: var(--c-primary); color: #fff; }
.btn--lg { padding: 16px 44px; font-size: 16px; }

/* =========================================================
   Header（PC：横幅広め・トップでは透過→スクロールで白）
========================================================= */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner {
	max-width: var(--w-wide);
	margin: 0 auto;
	height: var(--header-h);
	padding: 0 40px;
	display: flex; align-items: center; gap: 32px;
}
.site-header__brand { flex-shrink: 0; }
.site-header__name {
	font-family: var(--font-display);
	font-size: 22px; font-weight: 700; color: var(--c-ink);
	display: inline-flex; align-items: center; gap: 8px;
}
.site-header__mark { color: var(--c-primary); font-weight: 700; }

.global-nav { margin-left: auto; }
.global-nav__list { display: flex; gap: 4px; }
.global-nav__list a {
	display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--c-ink);
	position: relative;
}
.global-nav__list a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--c-primary); transform: scaleX(0); transform-origin: left;
	transition: transform .35s var(--ease);
}
.global-nav__list a:hover { opacity: 1; color: var(--c-primary); }
.global-nav__list a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-tel { display: flex; flex-direction: column; line-height: 1.3; color: var(--c-ink); }
.header-tel__label { font-size: 11px; color: var(--c-ink-soft); }
.header-tel__number { font-size: 19px; font-weight: 700; font-family: var(--font-display); }

/* ---------- 症状から探す（PCドロップダウン） ---------- */
.symptom-nav { position: relative; flex-shrink: 0; }
.symptom-nav__btn {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1px solid currentColor; background: transparent; cursor: pointer;
	border-radius: 999px; padding: 9px 20px;
	font-family: inherit; font-size: 14px; font-weight: 700; color: var(--c-ink);
	transition: background .3s, color .3s, border-color .3s;
}
.symptom-nav__caret {
	width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease);
}
.symptom-nav.is-open .symptom-nav__caret,
.symptom-nav:hover .symptom-nav__caret { transform: rotate(225deg) translateY(-1px); }
.symptom-nav__panel {
	position: absolute; top: calc(100% + 14px); right: 0; width: 340px;
	background: var(--c-white); border-radius: 16px; padding: 22px 24px;
	box-shadow: 0 18px 48px rgba(18,57,60,.18);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
	z-index: 105;
}
.symptom-nav__panel::before {
	content: ""; position: absolute; top: -6px; right: 44px;
	width: 12px; height: 12px; background: var(--c-white); transform: rotate(45deg);
}
.symptom-nav.is-open .symptom-nav__panel,
.symptom-nav:hover .symptom-nav__panel,
.symptom-nav:focus-within .symptom-nav__panel {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.symptom-nav__lead { font-size: 12px; color: var(--c-ink-soft); margin-bottom: 12px; }
.symptom-nav__list li { border-bottom: 1px solid var(--c-line); }
.symptom-nav__list li:last-child { border-bottom: 0; }
.symptom-nav__list a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 11px 2px; font-size: 14px; font-weight: 500; color: var(--c-ink);
}
.symptom-nav__list a::after { content: "→"; color: var(--c-primary); transition: transform .3s var(--ease); }
.symptom-nav__list a:hover { color: var(--c-primary); opacity: 1; }
.symptom-nav__list a:hover::after { transform: translateX(4px); }

/* ヘッダーの色状態に追従 */
.home .site-header .symptom-nav__btn { color: #fff; }
.site-header.is-scrolled .symptom-nav__btn { color: var(--c-ink); }
.symptom-nav__btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff !important; }

/* トップページ：ヒーローに重ねて透過 */
.home .site-header { background: transparent; }
.home .site-header .site-header__name,
.home .site-header .global-nav__list a,
.home .site-header .header-tel { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.home .site-header .header-tel__label { color: rgba(255,255,255,.85); }
.home .site-header .global-nav__list a::after { background: #fff; }

/* スクロール後・下層ページ：白背景 */
.site-header.is-scrolled,
body:not(.home) .site-header {
	background: rgba(255,255,255,.94);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 16px rgba(18,57,60,.08);
}
.site-header.is-scrolled .site-header__name,
.site-header.is-scrolled .global-nav__list a,
.site-header.is-scrolled .header-tel { color: var(--c-ink); text-shadow: none; }
.site-header.is-scrolled .header-tel__label { color: var(--c-ink-soft); }
.site-header.is-scrolled .global-nav__list a::after { background: var(--c-primary); }

/* ---------- ドロワー（SP） ---------- */
.drawer-toggle {
	display: none;
	width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
	flex-direction: column; justify-content: center; align-items: center; gap: 6px;
	z-index: 130;
}
.drawer-toggle span {
	display: block; width: 26px; height: 2px; background: currentColor;
	transition: transform .35s var(--ease), opacity .3s;
	color: var(--c-ink);
}
.home .drawer-toggle span { background: #fff; }
.site-header.is-scrolled .drawer-toggle span,
.drawer-toggle.is-open span { background: var(--c-ink); }
.drawer-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.drawer-toggle.is-open span:nth-child(2) { opacity: 0; }
.drawer-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
	background: var(--c-white); z-index: 96; /* ヘッダー(100)より下＝ハンバーガーは常に押せる */
	transform: translateX(100%); transition: transform .45s var(--ease);
	padding: 96px 32px 40px; overflow-y: auto;
	box-shadow: -8px 0 32px rgba(18,57,60,.12);
}
.drawer.is-open { transform: translateX(0); }
.drawer__list li { border-bottom: 1px solid var(--c-line); }
.drawer__list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 4px; font-weight: 500; font-size: 15px; color: var(--c-ink);
}
.drawer__list a::after { content: "›"; color: var(--c-primary); font-size: 18px; }
.drawer__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.drawer__group-title {
	margin-top: 28px; margin-bottom: 4px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--c-primary);
	padding-left: 12px; border-left: 3px solid var(--c-accent);
}
.drawer__sublist li { border-bottom: 1px dashed var(--c-line); }
.drawer__sublist a {
	display: block; padding: 12px 4px 12px 12px;
	font-size: 13.5px; color: var(--c-ink-soft);
}
.drawer-overlay {
	position: fixed; inset: 0; background: rgba(18,57,60,.45); z-index: 95;
	opacity: 0; transition: opacity .4s;
}
.drawer-overlay.is-open { opacity: 1; }

/* ドロワー展開中：ヘッダーは背景を消してハンバーガー（×）だけ残す */
.site-header.is-drawer-open { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.site-header.is-drawer-open .drawer-toggle span { background: var(--c-ink); }

/* =========================================================
   Hero（ファーストビュー）
========================================================= */
.hero {
	position: relative; height: 92vh; min-height: 560px; max-height: 1000px;
	display: flex; align-items: center; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero-slider, .hero-static { position: absolute; inset: 0; }
.hero-slider__slide { position: absolute; inset: 0; }
.hero-slider__slide picture, .hero-static picture,
.hero-slider__slide img, .hero-static img {
	width: 100%; height: 100%; object-fit: cover; display: block;
}

/* パターン1：フェード（ふわっと切替＋わずかな引き） */
.hero-slider--fade .hero-slider__slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-slider--fade .hero-slider__slide.is-active { opacity: 1; }
.hero-slider--fade .hero-slider__slide.is-active img { animation: heroSettle 9s ease-out forwards; }

/* パターン2：スライド（横に流れる） */
.hero-slider--slide .hero-slider__slide {
	transform: translateX(100%); z-index: 0;
	transition: transform 1.2s var(--ease);
}
.hero-slider--slide .hero-slider__slide.is-active { transform: translateX(0); z-index: 2; }
.hero-slider--slide .hero-slider__slide.is-prev { transform: translateX(-100%); z-index: 1; }

/* パターン3：ズーム（ゆっくり寄りながらフェード切替） */
.hero-slider--zoom .hero-slider__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slider--zoom .hero-slider__slide.is-active { opacity: 1; }
.hero-slider--zoom .hero-slider__slide.is-active img { animation: heroKen 7s ease-out forwards; }

/* 静止画 */
.hero-static { position: absolute; }
.hero-static img { animation: heroSettle 9s ease-out forwards; }

@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes heroKen { from { transform: scale(1); } to { transform: scale(1.15); } }

.hero__placeholder {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dk) 60%, #0C2A2C 100%);
}
.hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(to right, rgba(12,42,44,.55) 0%, rgba(12,42,44,.15) 55%, rgba(12,42,44,0) 100%);
}

.hero__copy { position: relative; z-index: 2; width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 40px; color: #fff; }
.hero__catch {
	font-family: var(--font-display);
	font-size: clamp(34px, 4.2vw, 62px);
	font-weight: 600; line-height: 1.5; letter-spacing: 0.08em;
	text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__catch-line {
	display: block; opacity: 0; transform: translateY(28px);
	animation: catchIn 1.1s var(--ease) forwards;
	animation-delay: var(--d, .2s);
}
@keyframes catchIn { to { opacity: 1; transform: translateY(0); } }
.hero__sub {
	margin-top: 20px; font-size: clamp(14px, 1.2vw, 17px); letter-spacing: 0.14em;
	opacity: 0; animation: catchIn 1.1s var(--ease) .9s forwards;
}
.hero__cta { margin-top: 36px; opacity: 0; animation: catchIn 1.1s var(--ease) 1.2s forwards; }

.hero__scroll {
	position: absolute; bottom: 0; left: 50%; z-index: 2; color: #fff;
	font-size: 11px; letter-spacing: 0.3em; writing-mode: vertical-rl;
	padding-bottom: 76px;
}
.hero__scroll::after {
	content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 64px;
	background: rgba(255,255,255,.7); transform-origin: top;
	animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   Sections
========================================================= */
.section { padding: 96px 0; }
.section--news { background: var(--c-white); }
.section--about { background: var(--c-mist); }
.section--instagram { background: var(--c-white); }

.section__head { text-align: center; margin-bottom: 48px; }
.section__en {
	font-size: 13px; letter-spacing: 0.32em; color: var(--c-primary); font-weight: 700;
	margin-bottom: 8px;
}
.section__title {
	font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 600;
	letter-spacing: 0.08em;
}
.section__title::after {
	content: ""; display: block; width: 42px; height: 2px; background: var(--c-accent);
	margin: 18px auto 0;
}
.section__more { text-align: center; margin-top: 44px; }

/* ---------- News list ---------- */
.news-list { max-width: var(--w-narrow); margin: 0 auto; }
.news-list__item { border-bottom: 1px solid var(--c-line); }
.news-list__item a {
	display: flex; gap: 24px; align-items: baseline; padding: 18px 8px; color: var(--c-ink);
}
.news-list__item a:hover { background: var(--c-mist); opacity: 1; }
.news-list__item time { color: var(--c-primary); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* ---------- Services ---------- */
.services-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.service-card {
	position: relative; display: block; overflow: hidden;
	background: var(--c-white); border-radius: 16px; padding: 34px 36px 30px;
	box-shadow: 0 8px 28px rgba(18,57,60,.06);
	color: var(--c-ink);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card::after {
	content: ""; position: absolute; right: -40px; top: -40px;
	width: 130px; height: 130px; border-radius: 50%;
	background: var(--c-mist); opacity: .55;
	transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(18,57,60,.12); opacity: 1; }
.service-card:hover::after { transform: scale(1.25); }
.service-card__en {
	position: relative; z-index: 1;
	font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
	color: var(--c-accent-dk); font-weight: 700; margin-bottom: 10px;
}
.service-card__title {
	position: relative; z-index: 1;
	font-family: var(--font-display); font-size: 24px; font-weight: 600;
	color: var(--c-primary-dk); padding-bottom: 14px; margin-bottom: 16px;
}
.service-card__title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 30px; height: 1.5px; background: var(--c-primary);
	transition: width .4s var(--ease);
}
.service-card:hover .service-card__title::after { width: 56px; }
.service-card__text { position: relative; z-index: 1; font-size: 15px; color: var(--c-ink-soft); }
.service-card__more {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: flex-end; gap: 8px;
	margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--c-primary);
}
.service-card__arrow { transition: transform .35s var(--ease); }
.service-card:hover .service-card__arrow { transform: translateX(5px); }

/* ---------- About features（テキスト型・下層用） ---------- */
.about-features { display: grid; gap: 24px; }
.feature {
	background: var(--c-white); border-radius: 16px; padding: 32px 36px;
	display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: center;
}
.feature__num {
	grid-row: span 2; font-family: var(--font-display); font-size: 40px; font-weight: 600;
	color: var(--c-primary); opacity: .35; line-height: 1;
}
.feature__title { font-size: 19px; font-weight: 700; }
.feature__text { font-size: 15px; color: var(--c-ink-soft); }

/* ---------- 当院の特徴（写真つきカード・3つ） ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
	background: var(--c-white); border-radius: 16px; overflow: hidden;
	box-shadow: 0 8px 28px rgba(18,57,60,.06);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(18,57,60,.12); }
.feature-card__img { position: relative; aspect-ratio: 8/5; background: var(--c-mist); overflow: hidden; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature-card:hover .feature-card__img img { transform: scale(1.05); }
.feature-card__noimg {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	color: var(--c-primary); font-size: 40px; opacity: .3;
}
.feature-card__num {
	position: absolute; left: 18px; bottom: -16px;
	font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1;
	color: var(--c-primary); text-shadow: 0 0 12px rgba(255,255,255,.9);
}
.feature-card__body { padding: 30px 24px 28px; }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card__text { font-size: 14px; color: var(--c-ink-soft); }

/* ---------- Access ---------- */
.access-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.access-info__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.access-info p { margin-bottom: 10px; font-size: 15px; }
.access-info__tel { margin-top: 22px; }
.access-info__tel-label { display: block; font-size: 13px; color: var(--c-ink-soft); }
.access-info__tel a { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.access-side { display: flex; flex-direction: column; gap: 24px; }
.access-map iframe { width: 100%; height: 320px; border: 0; border-radius: 16px; }
.access-map__placeholder {
	height: 320px; border-radius: 16px; background: var(--c-mist);
	display: flex; align-items: center; justify-content: center;
	color: var(--c-ink-soft); font-size: 14px; padding: 24px; text-align: center;
}

/* 診療時間テーブル */
.schedule { margin: 20px 0; }
.schedule__table {
	width: 100%; border-collapse: collapse; background: var(--c-white);
	border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(18,57,60,.06);
	font-size: 14px; text-align: center;
}
.schedule__table th, .schedule__table td { padding: 11px 6px; border: 1px solid var(--c-line); }
.schedule__table thead th { background: var(--c-primary); color: #fff; border-color: rgba(255,255,255,.18); font-weight: 700; }
.schedule__table td { color: var(--c-primary); font-weight: 700; }
.schedule__table .schedule__label { background: var(--c-mist); color: var(--c-ink); font-weight: 700; white-space: nowrap; }
.schedule__table thead .schedule__label { background: var(--c-primary-dk); color: #fff; }
.schedule__table .schedule__closed { color: #B9B9B0; font-weight: 400; }
.schedule__table thead .schedule__closed { color: #fff; background: #6E8C8A; }
.schedule__note { font-size: 13px; color: var(--c-ink-soft); margin-top: 10px; }

/* ご来院にあたって */
.access-note {
	background: var(--c-white); border-radius: 16px; padding: 24px 28px;
	box-shadow: 0 4px 16px rgba(18,57,60,.06);
}
.access-note__title {
	font-size: 16px; font-weight: 700; color: var(--c-primary-dk); margin-bottom: 12px;
	padding-left: 14px; border-left: 3px solid var(--c-accent);
}
.access-note__list li {
	position: relative; padding: 6px 0 6px 22px; font-size: 14px; color: var(--c-ink-soft);
}
.access-note__list li::before {
	content: "＋"; position: absolute; left: 0; top: 6px; color: var(--c-primary); font-weight: 700;
}

/* ---------- 院内・外観ギャラリー ---------- */
.section--facility { background: var(--c-white); }
.section__lead { margin-top: 18px; font-size: 15px; color: var(--c-ink-soft); }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.facility-item { margin: 0; }
.facility-item__img {
	aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: var(--c-mist);
	box-shadow: 0 8px 28px rgba(18,57,60,.08);
}
.facility-item__img picture { display: block; width: 100%; height: 100%; }
.facility-item__img img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s var(--ease);
}
.facility-item:hover .facility-item__img picture { display: block; width: 100%; height: 100%; }
.facility-item__img img { transform: scale(1.06); }
.facility-item__img--placeholder {
	display: flex; align-items: center; justify-content: center;
	color: var(--c-primary); font-size: 44px; opacity: .35;
}
.facility-item__cap {
	margin-top: 12px; text-align: center; font-size: 14px; color: var(--c-ink-soft);
}
.facility-item__cap::before { content: "─ "; color: var(--c-accent); }
.facility-item__cap::after { content: " ─"; color: var(--c-accent); }

/* ---------- Card grid（コラム） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
	background: var(--c-white); border-radius: 16px; overflow: hidden;
	box-shadow: 0 8px 28px rgba(18,57,60,.06);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(18,57,60,.12); }
.post-card a { color: var(--c-ink); display: block; }
.post-card a:hover { opacity: 1; }
.post-card__thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--c-mist); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__noimg {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	color: var(--c-primary); font-size: 40px; opacity: .3;
}
.post-card__body { padding: 20px 22px 26px; }
.post-card__body time { font-size: 13px; color: var(--c-primary); font-weight: 700; }
.post-card__title { font-size: 17px; font-weight: 700; margin: 8px 0 10px; line-height: 1.6; }
.post-card__excerpt { font-size: 14px; color: var(--c-ink-soft); }

/* ---------- カテゴリーナビ ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.cat-nav a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 18px; border-radius: 999px;
	background: var(--c-white); border: 1px solid var(--c-line);
	font-size: 14px; font-weight: 500; color: var(--c-ink);
	transition: background .3s, color .3s, border-color .3s;
}
.cat-nav a:hover, .cat-nav .is-current a {
	background: var(--c-primary); color: #fff; border-color: var(--c-primary); opacity: 1;
}
.cat-nav__count { font-size: 12px; opacity: .65; }
.cat-section { margin-bottom: 56px; }
.cat-section__title { text-align: center; font-size: 16px; font-weight: 700; margin-bottom: 18px; color: var(--c-ink-soft); }

/* ---------- Instagram ---------- */
.instagram-feed { max-width: var(--w-container); margin: 0 auto; }

/* ---------- CTA ---------- */
.section--cta { padding-bottom: 120px; }
.cta-box {
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dk) 100%);
	color: #fff; text-align: center; border-radius: 24px; padding: 64px 32px;
}
.cta-box__title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; }
.cta-box__text { margin-top: 16px; font-size: 15px; opacity: .92; }
.cta-box__actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn--tel { background: #fff; color: var(--c-primary); }

/* =========================================================
   下層ページ共通
========================================================= */
.page-hero {
	background: linear-gradient(135deg, var(--c-mist) 0%, #F0F5F3 100%);
	padding: calc(var(--header-h) + 56px) 0 56px;
	text-align: center;
}
.page-hero__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: 0.08em; }
.page-hero__desc { margin-top: 14px; color: var(--c-ink-soft); font-size: 15px; }

.breadcrumb { padding: 20px 0; font-size: 13px; color: var(--c-ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--c-line); }
.single-page .breadcrumb { padding-top: calc(var(--header-h) + 24px); }
.page-hero + .container .breadcrumb,
.page-hero + .container--narrow .breadcrumb { padding-top: 20px; }
main > .section:last-of-type { padding-bottom: 120px; }

.archive-page { padding-bottom: 120px; }
.single-page { padding-bottom: 120px; }

/* ---------- 年別アーカイブ ---------- */
.archive-year { margin: 48px 0; }
.archive-year__title {
	font-family: var(--font-display); font-size: 24px; font-weight: 600;
	padding-bottom: 12px; border-bottom: 2px solid var(--c-primary); margin-bottom: 8px;
}
.archive-year__title span { font-size: 34px; color: var(--c-primary); margin-right: 4px; }
.archive-year__title--toggle {
	cursor: pointer; list-style: none; position: relative; padding-right: 44px;
	border-bottom-color: var(--c-line);
	transition: color .3s;
}
.archive-year__title--toggle::-webkit-details-marker { display: none; }
.archive-year__title--toggle::after {
	content: ""; position: absolute; right: 12px; top: 45%;
	width: 10px; height: 10px; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
	transform: translateY(-50%) rotate(45deg); transition: transform .35s var(--ease);
}
.archive-year--closed[open] .archive-year__title--toggle::after { transform: translateY(-30%) rotate(225deg); }
.archive-year__title--toggle:hover { color: var(--c-primary); }
.archive-year__more { margin-top: 24px; text-align: center; }

/* さらに前の記事（年チップ） */
.archive-older { margin: 56px 0 0; }
.archive-older__title {
	font-family: var(--font-display); font-size: 20px; font-weight: 600;
	color: var(--c-ink-soft); margin-bottom: 18px;
	display: flex; align-items: center; gap: 14px;
}
.archive-older__title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.year-chips {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.year-chips a {
	display: flex; align-items: baseline; justify-content: center; gap: 8px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: 12px;
	padding: 14px 10px; color: var(--c-ink);
	transition: border-color .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.year-chips a:hover {
	opacity: 1; border-color: var(--c-primary); transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(18,57,60,.1);
}
.year-chips__year { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--c-primary); }
.year-chips__year::after { content: "年"; font-size: 13px; margin-left: 2px; color: var(--c-ink); }
.year-chips__count { font-size: 12px; color: var(--c-ink-soft); }

.archive-list__item { border-bottom: 1px solid var(--c-line); }
.archive-list__item a {
	display: flex; gap: 18px; align-items: baseline; padding: 16px 8px; color: var(--c-ink); flex-wrap: wrap;
}
.archive-list__item a:hover { background: var(--c-mist); opacity: 1; }
.archive-list__item time { color: var(--c-primary); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.archive-list__cat {
	font-size: 12px; background: var(--c-mist); color: var(--c-primary-dk);
	border-radius: 999px; padding: 2px 12px; flex-shrink: 0;
}
.archive-list__title { flex: 1; min-width: 200px; }

/* ---------- 記事詳細 ---------- */
.single-article__head { margin-bottom: 32px; }
.single-article__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.single-article__meta time { color: var(--c-primary); font-weight: 700; font-size: 14px; }
.single-article__cat {
	font-size: 12px; background: var(--c-mist); color: var(--c-primary-dk);
	border-radius: 999px; padding: 3px 14px;
}
.single-article__title {
	font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.6;
}
.single-article__thumb { border-radius: 16px; overflow: hidden; margin-bottom: 36px; }

.entry-content { font-size: 16px; }
.entry-content h2 {
	font-family: var(--font-display); font-size: 24px; font-weight: 600;
	margin: 48px 0 20px; padding: 10px 0 10px 18px; border-left: 4px solid var(--c-primary);
	background: var(--c-mist); border-radius: 0 8px 8px 0;
}
.entry-content h3 {
	font-size: 19px; font-weight: 700; margin: 36px 0 14px;
	padding-bottom: 8px; border-bottom: 2px solid var(--c-line);
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 16px 24px; background: var(--c-mist); border-left: 4px solid var(--c-primary); border-radius: 0 8px 8px 0;
}
.entry-content table { border-collapse: collapse; width: 100%; margin-bottom: 1.6em; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 14px; }
.entry-content th { background: var(--c-mist); }

.post-nav {
	display: flex; justify-content: space-between; gap: 16px;
	margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: 14px;
}
.post-nav__next { text-align: right; margin-left: auto; }
.single-back { text-align: center; margin-top: 48px; }

/* ---------- 固定ページ共通 ---------- */
.page-lead { font-size: 16px; margin: 8px 0 48px; }

.service-detail {
	background: var(--c-white); border-radius: 16px; padding: 34px 38px; margin-bottom: 28px;
	box-shadow: 0 8px 28px rgba(18,57,60,.06);
	scroll-margin-top: calc(var(--header-h) + 20px); /* アンカー着地位置の調整 */
}
.service-detail__en {
	font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
	color: var(--c-accent-dk); font-weight: 700; margin-bottom: 8px;
}
.service-detail__title {
	position: relative;
	font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--c-primary-dk);
	padding-bottom: 14px; margin-bottom: 18px;
}
.service-detail__title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 44px; height: 1.5px; background: var(--c-primary);
}
.service-detail__text { font-size: 15px; color: var(--c-ink-soft); margin-bottom: 16px; }
.service-detail__list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-detail__list li {
	font-size: 13px; background: var(--c-mist); color: var(--c-primary-dk);
	border-radius: 999px; padding: 6px 16px;
}

.about-block { margin-bottom: 56px; }
.about-block__title {
	font-family: var(--font-display); font-size: 24px; font-weight: 600;
	padding-bottom: 12px; border-bottom: 2px solid var(--c-primary); margin-bottom: 22px;
}
.about-block p { margin-bottom: 1.2em; font-size: 15px; }
.about-block__sign { text-align: right; font-family: var(--font-display); font-size: 17px; }

.about-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.about-table th, .about-table td { border: 1px solid var(--c-line); padding: 14px 18px; text-align: left; }
.about-table th { background: var(--c-mist); width: 30%; font-weight: 700; }
.about-table td { background: var(--c-white); }

.page-cta {
	margin-top: 64px; text-align: center; background: var(--c-mist);
	border-radius: 20px; padding: 44px 24px;
}
.page-cta p { font-size: 15px; margin-bottom: 24px; }
.page-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; border-radius: 50%;
	background: var(--c-white); border: 1px solid var(--c-line); color: var(--c-ink); font-size: 14px;
}
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination .page-numbers:hover { border-color: var(--c-primary); opacity: 1; }

/* ---------- CF7 フォーム ---------- */
.cf7-row { margin-bottom: 24px; }
.cf7-row label { font-weight: 700; font-size: 15px; display: block; }
.cf7-row .req {
	font-size: 11px; background: #C0564A; color: #fff; border-radius: 4px; padding: 2px 8px; margin-left: 8px;
	font-weight: 500; vertical-align: middle;
}
.cf7-row input[type="text"], .cf7-row input[type="tel"], .cf7-row input[type="email"],
.cf7-row select, .cf7-row textarea {
	width: 100%; margin-top: 8px; padding: 13px 16px;
	border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-white);
	font-family: inherit; font-size: 16px;
	transition: border-color .3s;
}
.cf7-row textarea { min-height: 180px; }
.cf7-row input:focus, .cf7-row select:focus, .cf7-row textarea:focus {
	outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30,90,94,.12);
}
.cf7-submit { text-align: center; margin-top: 36px; }
.cf7-submit input[type="submit"] {
	background: var(--c-accent); color: #fff; border: 0; border-radius: 999px;
	padding: 16px 60px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
	box-shadow: 0 6px 18px rgba(217,164,65,.35);
	transition: background .3s, transform .3s;
}
.cf7-submit input[type="submit"]:hover { background: var(--c-accent-dk); transform: translateY(-2px); }

/* =========================================================
   Footer
========================================================= */
.site-footer { background: var(--c-primary-dk); color: #E8F0EE; }

/* ご予約CTA帯 */
.footer-cta { background: var(--c-primary); }
.footer-cta__inner {
	max-width: var(--w-container); margin: 0 auto; padding: 44px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-cta__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; }
.footer-cta__sub { font-size: 13px; opacity: .85; margin-top: 6px; color: #fff; }
.footer-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--tel-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); font-family: var(--font-display); }
.btn--tel-ghost:hover { background: #fff; color: var(--c-primary); }

.site-footer__inner {
	max-width: var(--w-container); margin: 0 auto; padding: 64px 24px 24px;
	display: grid; grid-template-columns: 1.1fr 1.2fr 0.9fr; gap: 48px;
}
.site-footer__name { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.site-footer__mark {
	width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 17px; color: var(--c-accent); font-weight: 700;
}
.site-footer__tagline { font-size: 13px; letter-spacing: .1em; color: rgba(232,240,238,.75); margin-bottom: 14px; }
.site-footer__depts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.site-footer__depts li {
	font-size: 12px; padding: 4px 14px; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.28); color: rgba(232,240,238,.9);
}
.site-footer__address { font-size: 14px; opacity: .88; margin-bottom: 14px; }
.site-footer__telbox {
	display: inline-flex; align-items: center; gap: 14px;
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
	border-radius: 14px; padding: 14px 20px; margin-bottom: 16px;
	transition: background .3s;
}
.site-footer__telbox:hover { background: rgba(255,255,255,.12); }
.site-footer__telicon {
	width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
	background: var(--c-accent); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.site-footer__telicon svg { width: 20px; height: 20px; stroke: #fff; }
.site-footer__telbody { display: flex; flex-direction: column; line-height: 1.4; }
.site-footer__tellabel { font-size: 11.5px; color: rgba(232,240,238,.75); letter-spacing: .06em; }
.site-footer__telbody a { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: #fff; }
.site-footer__insta { color: #fff; font-size: 14px; text-decoration: underline; }
.site-footer__heading {
	font-size: 14px; font-weight: 700; letter-spacing: .12em; color: #fff;
	padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-footer__heading--sub { margin-top: 26px; }
.site-footer__list a { display: block; padding: 7px 0; color: #E8F0EE; font-size: 14px; }
.site-footer__list a::before { content: "› "; color: var(--c-accent); }

/* フッター内の診療時間表（暗色向けに調整） */
.site-footer__schedule .schedule { margin: 0; }
.site-footer__schedule .schedule__table {
	background: transparent; box-shadow: none; font-size: 12.5px; border-radius: 10px;
}
.site-footer__schedule .schedule__table th,
.site-footer__schedule .schedule__table td { padding: 8px 4px; border-color: rgba(255,255,255,.16); }
.site-footer__schedule .schedule__table td { background: rgba(255,255,255,.05); color: #A9D8D2; }
.site-footer__schedule .schedule__table .schedule__label { background: rgba(255,255,255,.1); color: #E8F0EE; }
.site-footer__schedule .schedule__table .schedule__closed { background: rgba(0,0,0,.14); color: rgba(232,240,238,.35); }
.site-footer__schedule .schedule__table thead th { background: rgba(255,255,255,.14); color: #fff; }
.site-footer__schedule .schedule__table thead .schedule__label,
.site-footer__schedule .schedule__table thead .schedule__closed { background: rgba(255,255,255,.14); color: #fff; }
.site-footer__schedule .schedule__note { color: rgba(232,240,238,.7); font-size: 12px; }

.site-footer__copy {
	text-align: center; font-size: 12px; opacity: .6; padding: 32px 16px;
	border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px;
}

/* =========================================================
   SP追従フッター（予約・電話）
========================================================= */
.sp-fixed-bar {
	display: none;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	box-shadow: 0 -4px 20px rgba(18,57,60,.18);
}
.sp-fixed-bar__item {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 15px 8px calc(15px + env(safe-area-inset-bottom, 0px));
	font-size: 15px; font-weight: 700; color: #fff;
}
.sp-fixed-bar__item--reserve { background: var(--c-accent); }
.sp-fixed-bar__item--tel { background: var(--c-primary); }
.sp-fixed-bar__icon { display: inline-flex; color: #fff; }
.sp-fixed-bar__icon svg { width: 19px; height: 19px; stroke: #fff; }

/* =========================================================
   スクロールアニメーション
========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
	.hero__catch-line, .hero__sub, .hero__cta { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
========================================================= */
@media (min-width: 1101px) and (max-width: 1400px) {
	.header-tel { display: none; } /* 中間幅では電話を隠してナビ優先 */
}

@media (max-width: 1100px) {
	.global-nav, .site-header__actions, .symptom-nav { display: none; }
	.drawer-toggle { display: flex; margin-left: auto; }
	.site-header__inner { padding: 0 20px; height: 68px; }
	:root { --header-h: 68px; }
}

@media (max-width: 767px) {
	body { font-size: 15px; padding-bottom: 64px; /* SP追従バー分 */ }
	.sp-fixed-bar { display: flex; }

	.section { padding: 64px 0; }
	.container { padding: 0 20px; }

	.hero { height: 82vh; min-height: 520px; }
	.hero__copy { padding: 0 24px; }
	.hero__catch { font-size: clamp(28px, 8vw, 36px); }
	.hero__scroll { display: none; }

	.services-grid { grid-template-columns: 1fr; gap: 18px; }
	.service-card { padding: 28px 24px; }
	.service-detail { padding: 26px 22px; }
	.service-detail__title { font-size: 20px; }

	.feature { padding: 24px; grid-template-columns: auto 1fr; }
	.feature__num { font-size: 30px; }

	.features-grid { grid-template-columns: 1fr; gap: 20px; }

	.facility-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.facility-item__cap { font-size: 12.5px; }

	.access-grid { grid-template-columns: 1fr; gap: 28px; }
	.access-map iframe, .access-map__placeholder { height: 260px; }
	.schedule__table { font-size: 12.5px; }
	.schedule__table th, .schedule__table td { padding: 9px 3px; }

	.card-grid { grid-template-columns: 1fr; gap: 20px; }

	.news-list__item a { flex-direction: column; gap: 4px; }

	.archive-list__item a { gap: 10px; padding: 14px 4px; }
	.archive-year__title { font-size: 20px; }
	.archive-year__title span { font-size: 26px; }

	.footer-cta__inner { flex-direction: column; text-align: center; padding: 36px 20px; }
	.footer-cta__actions { width: 100%; flex-direction: column; }
	.footer-cta__actions .btn { width: 100%; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
	.cta-box { padding: 48px 24px; border-radius: 18px; }
	.cta-box__actions .btn { width: 100%; }

	.about-table th { width: 34%; padding: 12px 12px; }
	.about-table td { padding: 12px 12px; }

	.post-nav { flex-direction: column; }
	.post-nav__next { text-align: left; margin-left: 0; }
}

@media (min-width: 768px) and (max-width: 1100px) {
	.services-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
	.facility-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}
