/* ==========================================================
   日漢堂醫院 テーマスタイル
   トンマナ：水面のターコイズ × ガラスの透明感 × 明朝の品格
   ========================================================== */

:root {
	--ink: #12343B;
	--deep: #0B4F5C;
	--sea: #137A87;
	--aqua: #3FA9B8;
	--foam: #CDECEF;
	--mist: #EEF8F8;
	--paper: #FBFAF7;
	--copper: #B95B31;
	--ember: #D9774B;
	--blush: #FBEDE5;
	--line: rgba(18, 52, 59, .12);
	--radius: 22px;
	--shadow: 0 1px 2px rgba(11, 79, 92, .06), 0 18px 40px -18px rgba(11, 79, 92, .28);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html.fs-lg { font-size: 112.5%; }
body { background: var(--paper); color: var(--ink); line-height: 1.8; letter-spacing: .02em; font-feature-settings: "palt" 0; }
img { max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.font-en, .badge-round, .eyebrow, .timeline__time { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
/* 日本語の改行：見出しは文節で折り返して行の長さを揃え、本文は行末の1〜2文字残りを防ぐ */
h1, h2, h3, blockquote, .open-badge, .hero__event, .timeline li, .entry li, .eyebrow + h1 + p, .water p { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, blockquote { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
.tate { writing-mode: vertical-rl; text-orientation: mixed; }

/* ---------- ターコイズの面（GODIVAの世界観） ---------- */
.water {
	position: relative;
	isolation: isolate;
	background: linear-gradient(160deg, #168896 0%, #137A87 45%, #0B4F5C 100%);
}

/* ---------- ヘッダー ---------- */
.site-header {
	background: rgba(251, 250, 247, .82);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.nav-link { position: relative; padding: 6px 0; color: var(--ink); transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sea); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-link:hover { color: var(--sea); }
.nav-link:hover::after { transform: scaleX(1); }

.fs-toggle {
	display: inline-flex; align-items: center; gap: 6px;
	height: 40px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--line); background: #fff; color: var(--ink);
	transition: background .2s, border-color .2s;
}
.fs-toggle__a { font-size: 11px; font-weight: 700; }
.fs-toggle__A { font-size: 17px; font-weight: 700; margin-left: -3px; }
.fs-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.menu-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: rgba(251, 250, 247, .97); }
.mobile-menu__link { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }

/* ---------- ボタン・ラベル ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: 14px 28px; border-radius: 999px; font-weight: 700; line-height: 1.3;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sea { background: var(--sea); color: #fff; box-shadow: 0 10px 24px -12px rgba(19, 122, 135, .8); }
.btn-sea:hover { background: var(--deep); }
.btn-copper { background: var(--copper); color: #fff; box-shadow: 0 10px 24px -12px rgba(185, 91, 49, .8); }
.btn-copper:hover { background: #9d4a25; }
.btn-white { background: #fff; color: var(--deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }

.tag { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 3px 12px; border-radius: 999px; line-height: 1.6; }
.tag--copper { background: var(--copper); color: #fff; }
.tag--ink { background: var(--ink); color: #fff; }

.chip { font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--deep); border: 1px solid rgba(19, 122, 135, .18); }
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); margin-right: 8px; vertical-align: 2px; }

/* GODIVAの「常温」「冷凍」風の丸ラベル */
.badge-round {
	position: absolute; left: 16px; top: 16px;
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-content: center; text-align: center;
	background: var(--deep); color: #fff;
	font-family: "Cormorant Garamond", serif; font-size: 12px; letter-spacing: .1em; line-height: 1;
	box-shadow: 0 6px 16px -6px rgba(11, 79, 92, .6);
}
.badge-round b { display: block; font-size: 24px; font-weight: 600; margin-top: 2px; }

/* ---------- 見出し ---------- */
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; color: var(--sea); letter-spacing: .08em; text-align: center; margin-bottom: 6px; }
.eyebrow::before, .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin: 0 12px; }
.eyebrow--light { color: var(--foam); }
.section-title { font-family: "Shippori Mincho", serif; font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.25rem); letter-spacing: .14em; line-height: 1.5; text-align: center; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: min(92vh, 860px); overflow: hidden; color: #fff; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -3; transform: scale(1.04); animation: heroIn 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes heroIn { from { transform: scale(1.12); filter: blur(6px); } to { transform: scale(1.04); filter: blur(0); } }
.hero__veil {
	position: absolute; inset: 0; z-index: -2;
	background:
		linear-gradient(180deg, rgba(11, 79, 92, .10) 0%, rgba(11, 79, 92, .05) 35%, rgba(11, 79, 92, .55) 72%, rgba(8, 58, 68, .88) 100%),
		linear-gradient(90deg, rgba(63, 169, 184, .22), rgba(63, 169, 184, 0) 60%);
}
.hero__inner {
	position: relative; max-width: 72rem; margin: 0 auto;
	min-height: inherit; padding: 28px 16px 120px;
	display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 24px;
}
.hero__top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.open-badge {
	display: inline-flex; align-items: center; gap: 12px;
	background: rgba(255, 255, 255, .9); color: var(--deep);
	padding: 8px 18px; border-radius: 999px; font-size: 14px;
	box-shadow: var(--shadow);
}
.open-badge__sep { width: 1px; height: 16px; background: var(--line); }
.hero__event {
	display: inline-flex; align-items: center; gap: 10px;
	background: rgba(18, 52, 59, .55); color: #fff;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .25);
	padding: 8px 18px; border-radius: 999px; font-size: 13px;
	transition: background .2s;
}
.hero__event:hover { background: rgba(18, 52, 59, .75); }
.hero__copy {
	grid-column: 2; grid-row: 2;
	display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 18px;
	padding: 28px 20px; border-radius: 20px;
	background: rgba(251, 250, 247, .72);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .7);
	color: var(--ink);
	align-self: start;
	animation: rise 1.4s .5s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__lead { font-weight: 800; font-size: clamp(1.45rem, 4.2vw, 3.1rem); line-height: 1.45; letter-spacing: .16em; color: var(--deep); }
.hero__sub { font-weight: 600; font-size: clamp(.9rem, 1.6vw, 1.15rem); line-height: 2; letter-spacing: .2em; padding-top: 3.2em; color: var(--ink); }
.hero__mark { grid-column: 1 / -1; grid-row: 3; text-align: center; animation: rise 1.4s .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__name { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: .32em; line-height: 1.2; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); margin-right: -.32em; }
.hero__dept { margin-top: 8px; font-size: 14px; letter-spacing: .14em; color: var(--foam); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
	.hero { min-height: 640px; }
	.hero__img { object-position: 78% 50%; }
	.hero__inner { padding: 20px 16px 104px; gap: 18px; }
	.hero__copy { padding: 20px 14px; gap: 12px; }
	.hero__sub { padding-top: 2.6em; font-size: .82rem; }
	.hero__event { font-size: 12px; }
	.hero__dept .font-en, .hero__dept .mx-2 { display: none; }
}

/* ---------- 今日の情報パネル ---------- */
.quick {
	display: grid; grid-template-columns: 1fr; overflow: hidden;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 768px) { .quick { grid-template-columns: 1fr 1fr; } .quick__item:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); } }
@media (min-width: 1024px) { .quick { grid-template-columns: 1.15fr 1fr 1fr; } .quick__item:first-child { grid-column: auto; border-bottom: 0; } }
.quick__item { display: block; padding: 22px 26px; border-top: 1px solid var(--line); }
.quick__item:first-child { border-top: 0; }
@media (min-width: 768px) { .quick__item { border-top: 0; border-left: 1px solid var(--line); } .quick__item:first-child, .quick__item:nth-child(2) { border-left: 0; } }
@media (min-width: 1024px) { .quick__item:nth-child(2) { border-left: 1px solid var(--line); } }
.quick__item--link { transition: background .2s; }
.quick__item--link:hover { background: var(--mist); }
.quick__label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--sea); margin-bottom: 6px; }

/* 診療状況（JSで更新） */
.status { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.status__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #9aa9ac; flex-shrink: 0; }
.status.is-open .status__dot { background: #1f9d6b; }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #1f9d6b; animation: ping 1.8s ease-out infinite; }
.status.is-soon .status__dot { background: var(--ember); }
.status.is-closed .status__dot { background: #9aa9ac; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@media (max-width: 374px) { .quick .status { font-size: 1rem; } }
.status--pill { font-size: 1rem; background: var(--mist); padding: 6px 14px; border-radius: 999px; }

/* ---------- インフルエンザバナー ---------- */
.flu-banner {
	position: relative; overflow: hidden;
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
	padding: 26px 24px; border-radius: var(--radius);
	background: linear-gradient(120deg, #fff 0%, #fff 55%, var(--blush) 100%);
	border: 1px solid rgba(185, 91, 49, .22);
	box-shadow: var(--shadow);
}
.flu-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--ember), var(--copper)); }
.flu-banner__icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--blush); color: var(--copper); display: grid; place-content: center; }
.flu-banner__icon svg { width: 36px; height: 36px; }
.flu-banner__text { flex: 1 1 calc(100% - 92px); min-width: 0; }
.flu-banner__price { flex-shrink: 0; }
@media (max-width: 1023px) { .flu-banner__price { margin-left: 92px; } }
@media (max-width: 639px) {
	.flu-banner { padding: 22px 20px 22px 24px; gap: 14px; }
	.flu-banner__icon { width: 44px; height: 44px; }
	.flu-banner__icon svg { width: 26px; height: 26px; }
	.flu-banner__text { flex-basis: 100%; order: 1; }
	.flu-banner__icon { order: 0; }
	.flu-banner__price { order: 2; margin-left: 0; }
	.flu-banner .btn { order: 3; }
}
@media (min-width: 1024px) { .flu-banner__text { flex: 1 1 auto; } }
@media (min-width: 768px) { .flu-banner { padding: 30px 36px; } }
@media (min-width: 1024px) { .flu-banner { flex-wrap: nowrap; } }

/* ---------- カード ---------- */
.glass-card {
	position: relative;
	min-width: 0;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .9);
	outline: 1px solid var(--line); outline-offset: -1px;
	border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 32px 28px;
}
@media (min-width: 768px) { .glass-card { padding: 40px 36px; } }

/* 写真付きカード（3つの約束・診療内容） */
.photo-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow);
	transition: transform .35s, box-shadow .35s;
}
.photo-card:hover { transform: translateY(-4px); }
.photo-card__media { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.photo-card:hover .photo-card__media img { transform: scale(1.04); }
.photo-card__num {
	position: absolute; left: 14px; bottom: 10px;
	font-size: 46px; font-weight: 600; line-height: 1; color: #fff;
	text-shadow: 0 2px 14px rgba(11, 79, 92, .45);
}
.photo-card .badge-round { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 13px; font-weight: 700; width: 52px; height: 52px; }
.photo-card__body { padding: 24px 26px 30px; }
@media (min-width: 768px) { .photo-card__body { padding: 26px 30px 34px; } }
/* タブレット幅：写真を左、本文を右に並べた横長カードにする */
@media (min-width: 640px) and (max-width: 1023px) {
	.photo-card { flex-direction: row; }
	.photo-card__media { width: 40%; flex-shrink: 0; aspect-ratio: auto; min-height: 220px; }
	.photo-card__body { align-self: center; }
}

.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline__time { flex-shrink: 0; width: 72px; text-align: center; font-size: 18px; font-weight: 600; color: var(--copper); background: var(--blush); border-radius: 8px; padding: 2px 0; }


/* トップページ用イベント（コンパクト版） */
.event-compact {
	display: grid; grid-template-columns: 1fr; overflow: hidden;
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .event-compact { grid-template-columns: 250px 1fr auto; align-items: stretch; } }
.event-compact__head { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; background: linear-gradient(160deg, #168896, #0B4F5C); color: #fff; }
.event-compact__list { list-style: none; margin: 0; padding: 6px 24px; display: flex; flex-direction: column; justify-content: center; }
.event-compact__list li { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; }
.event-compact__list li + li { border-top: 1px solid var(--line); }
.event-compact__date { display: flex; align-items: center; gap: 6px; flex-shrink: 0; width: 6.2em; color: var(--copper); line-height: 1; padding-top: 2px; }
.event-compact__date .font-en { font-size: 28px; font-weight: 600; }
.event-compact__dow { width: 24px; height: 24px; border-radius: 50%; background: var(--ember); color: #fff; display: grid; place-content: center; font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 13px; }
.event-compact__more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; font-weight: 700; color: var(--sea); border-top: 1px solid var(--line); white-space: nowrap; transition: background .2s; }
.event-compact__more:hover { background: var(--mist); }
@media (min-width: 900px) { .event-compact__more { border-top: 0; border-left: 1px solid var(--line); padding: 0 28px; } }
@media (max-width: 480px) { .event-compact__list li { flex-direction: column; gap: 6px; } }

/* レセプションページの日付ピル */
.date-pill {
	display: flex; align-items: center; gap: 12px; text-align: left;
	padding: 14px 18px; border-radius: 18px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	transition: background .2s;
}
.date-pill:hover { background: rgba(255, 255, 255, .24); }
.date-pill__dow { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--ember); display: grid; place-content: center; font-family: "Shippori Mincho", serif; font-weight: 700; }

/* 開催概要 */
.outline { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.outline > div { display: grid; gap: 4px; padding: 20px 24px; border-top: 1px solid var(--line); }
.outline > div:first-child { border-top: 0; }
.outline dt { font-weight: 700; color: var(--sea); letter-spacing: .08em; }
@media (min-width: 640px) { .outline > div { grid-template-columns: 9.5em 1fr; gap: 24px; padding: 24px 32px; } }

/* ---------- 診療時間表 ---------- */
.hours { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.hours__table { width: 100%; border-collapse: collapse; text-align: center; min-width: 300px; }
@media (max-width: 640px) {
	.glass-card:has(.hours) { padding-left: 16px; padding-right: 16px; }
	.hours__table { min-width: 0; table-layout: fixed; }
	.hours__table thead .hours__head { width: 30%; font-size: 11px; letter-spacing: 0; }
	.hours__table th, .hours__table td { padding: 10px 0; }
	.hours__table .hours__head { padding-left: 8px; padding-right: 2px; }
	.hours__table .hours__head .font-en { font-size: 13px; white-space: normal; line-height: 1.3; }
	.mark-open { width: 15px; height: 15px; border-width: 2px; }
}
.hours__table th, .hours__table td { padding: 12px 6px; border-bottom: 1px solid var(--line); position: relative; }
.hours__table tbody tr:last-child th, .hours__table tbody tr:last-child td { border-bottom: 0; }
.hours__table thead th { background: var(--deep); color: #fff; font-weight: 700; font-size: 15px; }
.hours__table .hours__head { text-align: left; padding-left: 16px; padding-right: 10px; }
.hours__table thead .hours__head { font-size: 13px; letter-spacing: .1em; }
.mark-open { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ember); vertical-align: middle; }
.mark-closed { color: #b9c4c6; font-size: 18px; }
.hours__table .is-today { background: rgba(63, 169, 184, .12); }
.hours__table thead .is-today { background: var(--ember); }

/* ---------- アクセス情報 ---------- */
.info-list > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-list > div:first-child { border-top: 0; padding-top: 0; }
.info-list dt { font-size: 12px; font-weight: 700; color: var(--sea); letter-spacing: .14em; padding-top: 4px; }

/* ---------- お知らせ ---------- */
.news { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.news li + li { border-top: 1px solid var(--line); }
.news__item { display: flex; flex-direction: column; gap: 4px; padding: 20px 26px; transition: background .2s; }
@media (min-width: 640px) { .news__item { flex-direction: row; align-items: center; gap: 20px; } }
.news__item:hover { background: var(--mist); }
.news__arrow { display: none; color: var(--sea); transition: transform .2s; }
@media (min-width: 640px) { .news__arrow { display: inline; } }
.news__item:hover .news__arrow { transform: translateX(4px); }

/* ---------- 記事本文 ---------- */
.entry { line-height: 2; }
@media (max-width: 639px) { .entry.glass-card { padding: 24px 18px; } }
.entry > * + * { margin-top: 1.2em; }
.entry h2 { font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 1.4rem; border-left: 3px solid var(--aqua); padding-left: 14px; }
.entry h3 { font-weight: 700; font-size: 1.15rem; }
.entry a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.entry ul { list-style: disc; padding-left: 1.4em; }
.entry ol { list-style: decimal; padding-left: 1.4em; }
.entry img { border-radius: 14px; }

/* ---------- フォーム ---------- */
.field { display: block; border: 1px solid rgba(18, 52, 59, .2); background: #fff; border-radius: 12px; padding: 12px 16px; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(63, 169, 184, .2); }

/* ---------- フッター・ドック ---------- */
.site-footer .invert { filter: invert(1); }
.dock {
	position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
	display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 4px;
	padding: 6px; border-radius: 22px;
	background: rgba(18, 52, 59, .88);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
}
.dock__item { white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 16px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.dock__item svg { width: 22px; height: 22px; }
.dock__item--primary { background: var(--ember); font-size: 13px; }
.dock__item:active { background: rgba(255, 255, 255, .15); }
.dock__item--primary:active { background: var(--copper); }

/* ---------- 画面幅による出し分け（Tailwindの読み込み順に依存しないようここで指定） ---------- */
@media (max-width: 767px) { .header-tel { display: none; } }
@media (min-width: 768px) { .dock { display: none; } }
@media (max-width: 374px) { .dock { left: 6px; right: 6px; gap: 2px; padding: 5px; } .dock__item { font-size: 10px; letter-spacing: 0; } .dock__item--primary { font-size: 12px; } }
@media (min-width: 1024px) { .menu-btn, .mobile-menu { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) { .fs-toggle [data-fs-label] { display: none; } }

/* ---------- スクロール演出 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
