@charset "utf-8";
/* ==========================================================================
   Layout — コンテナ / ヘッダー / フッター / ドロワー / 追従CTA
   ========================================================================== */

/* ---- コンテナ ---- */
.l-container {
	width: 100%;
	/* --w-container は内寸。左右余白は外側に足すのでデザイン通り 1160px が確保される */
	max-width: calc(var(--w-container) + var(--pad-x) * 2);
	margin-inline: auto;
	padding-inline: var(--pad-x);
}

.l-container--narrow {
	max-width: calc(var(--w-narrow) + var(--pad-x) * 2);
}

.l-section {
	padding-block: var(--sp-sec);
}

.l-main {
	padding-top: var(--h-header);
	/* 背面ウォーターマークや装飾文字は画面外へはみ出す設計（デザイン通り）。
	   縦は切らずに横だけ切って、ページに横スクロールを出さない。 */
	overflow-x: clip;
}

@media (max-width: 767px) {
	.l-main { padding-top: var(--h-header-sp); }
}

/* ---- ヘッダー ---- */
.l-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: var(--z-header);
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--h-header);
	background: var(--c-wh);
	padding-left: 32px;
	transition: transform var(--dur) var(--ease);
}

.l-header__logo {
	flex: none;
}

.l-header__logo img {
	width: 218px;
}

.l-header__nav {
	margin-left: auto;
	/* ロゴと接触しないよう最低の間隔を持たせる */
	padding-left: 24px;
}

.l-header__list {
	display: flex;
	align-items: center;
	gap: 26px;
}

.l-header__nav a {
	font-size: var(--fs-14);
	font-weight: 500;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.l-header__tel {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: 30px;
	padding-right: 20px;
}

.l-header__tel-num {
	display: flex;
	align-items: center;
	gap: 10px;
	/* 折り返すと「03-5401-」「2585」の2行になって崩れる */
	white-space: nowrap;
	font-family: var(--f-en);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.l-header__tel-icon {
	width: 34px;
	height: 34px;
	flex: none;
}

/* ---- グローバルナビ横のWEB予約ボタン ---- */

/* 電話番号の右に据える。ヘッダーの高さいっぱいに取って押しやすくする。 */
.l-header__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: none;
	align-self: stretch;
	padding-inline: 26px;
	background: var(--c-gold-dark);
	color: var(--c-wh);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	white-space: nowrap;
}

.l-header__cta-icon { width: 22px; height: 22px; flex: none; }

/* 書き出しSVGは「金の丸＋白抜きグリフ」。丸は使わず白いグリフだけにする */
.l-header__cta-icon rect { display: none; }
.l-header__cta-icon path { fill: currentColor; }

.l-header__cta-txt { display: flex; flex-direction: column; }

.l-header__cta-note {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.06em;
	opacity: 0.85;
}

.l-header__cta:hover { color: var(--c-wh); }

/* 画面が狭いPCではナビと当たるので詰める */
@media (min-width: 768px) and (max-width: 1200px) {
	.l-header__cta { padding-inline: 16px; font-size: 13px; }
	.l-header__cta-icon { width: 18px; height: 18px; }
	.l-header__cta-note { display: none; }
}

.l-header__tel-note {
	font-size: 11px;
	color: var(--c-txt-sub);
}

/* SP: ハンバーガー */
/* grid + place-items だと行が伸びて線の間隔が広がり、×にしたとき交差しない。
   flex + gap で間隔を固定する。 */
.l-header__burger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: var(--h-header-sp);
	height: var(--h-header-sp);
	flex: none;
	border-left: 1px solid var(--c-gold-dark);
}

.l-header__burger span {
	display: block;
	width: 22px;
	height: 1px;
	background: var(--c-ink);
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.is-drawer-open .l-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-drawer-open .l-header__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.is-drawer-open .l-header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   ヘッダーの幅による段階的な組み替え

   PCの実寸は 32(余白) + 218(ロゴ) + ナビ8項目 + 電話 + WEB予約 で約1340px必要（実測）。
   モニター幅がそれを下回ると、電話番号が折り返したりロゴとナビが接触する。
   幅に応じて「詰める → ナビをドロワーに移す」の順で逃がす。
   ========================================================================== */

/* まずは詰めて凌ぐ */
@media (max-width: 1460px) {
	.l-header { padding-left: 24px; }
	.l-header__nav { padding-left: 16px; }
	.l-header__list { gap: 17px; }
	.l-header__tel { margin-left: 18px; padding-right: 14px; }
	.l-header__tel-num { font-size: 22px; }
	.l-header__tel-num .l-header__tel-icon { width: 30px; height: 30px; }
}

/* 入りきらない幅ではナビをドロワーへ。
   従来は 1180px 以下でナビを消しつつハンバーガーは 767px 以下だけ出していたため、
   768〜1180px はどこからもページに移動できない状態だった。 */
@media (max-width: 1340px) {
	.l-header__nav { display: none; }

	.l-header__burger {
		display: flex;
		width: var(--h-header);
		height: var(--h-header);
		border-left: 1px solid var(--c-gold-dark);
	}

	.l-header__tel { margin-left: auto; }
}

@media (max-width: 767px) {
	.l-header {
		height: var(--h-header-sp);
		padding-left: 16px;
	}
	.l-header__logo img { width: 159px; } /* SPモックアップ実測 159x32 */
	.l-header__tel { display: none; }
	.l-header__burger {
		display: flex;
		width: var(--h-header-sp);
		height: var(--h-header-sp);
		/* デザイン実測: 上・左・下に金の罫線（右は画面端） */
		border: 1px solid var(--c-gold-dark);
		border-right: 0;
	}
	.l-header__burger span { width: 22px; }
}

/* ==========================================================================
   ドロワー（SPハンバーガー）
   デザイン: misc__01-index-floating-sp.png（390x812）実測
     左右余白32px / 第二階層は1項目60px / 第三階層は行送り34px・丸矢印20px
     第四階層はさらに16pxインデント / CTAカードは326x88・間12px
   ========================================================================== */

.l-drawer {
	position: fixed;
	inset: var(--h-header-sp) 0 0;
	z-index: var(--z-drawer);
	background: var(--c-base);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
	padding: 34px 32px calc(56px + 40px); /* 下は追従CTAの高さ分よける */
}

.is-drawer-open .l-drawer {
	opacity: 1;
	visibility: visible;
}

/* ---- 第二階層 ---- */
.l-drawer__row {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 60px;
}

.l-drawer__link {
	flex: 1;
	display: block;
	padding-block: 4px;
}

.l-drawer__en {
	display: block;
	font-family: var(--f-en);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.1em;
	line-height: 1.2;
	color: var(--c-gold-dark);
}

.l-drawer__ja {
	display: block;
	margin-top: 6px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.3;
	color: var(--c-ink);
}

/* 右端の細い矢印 */
.l-drawer__arrow {
	flex: none;
	width: 28px;
	height: 1px;
	margin-left: 12px;
	background: var(--c-ink);
	position: relative;
}

.l-drawer__arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: -3px;
	width: 7px;
	height: 7px;
	border-top: 1px solid var(--c-ink);
	border-right: 1px solid var(--c-ink);
	rotate: 45deg;
}

/* 子を持つ項目の ＋ / − */
.l-drawer__toggle {
	flex: none;
	position: relative;
	width: 32px;
	height: 40px;
	margin-left: 16px;
	border-left: 1px solid var(--c-bdr);
}

.l-drawer__toggle::before,
.l-drawer__toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 1px;
	margin-left: 3px;
	background: var(--c-ink);
	translate: -50% -50%;
	transition: rotate var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.l-drawer__toggle::after { rotate: 90deg; }
.l-drawer__toggle[aria-expanded="true"]::after { rotate: 0deg; opacity: 0; }

/* ---- 第三階層 / 第四階層 ---- */
/* 第三階層の行。リンクと開閉ボタンを横に並べる */
.l-drawer__row--child {
	align-items: center;
	gap: 0;
	min-height: 0;
}

.l-drawer__row--child .l-drawer__child { flex: 1; }

/* 第四階層の開閉ボタンは少し小さくする */
.l-drawer__row--child .l-drawer__toggle {
	width: 28px;
	height: 34px;
	margin-left: 12px;
}

/* display 指定が [hidden] の既定（display:none）を上書きしてしまうので明示的に消す。
   これが無いと第三・第四階層が最初から開いた状態になる。 */
.l-drawer__sub[hidden] { display: none; }

.l-drawer__sub {
	display: grid;
	gap: 14px;
	padding: 4px 0 14px 16px;
}

.l-drawer__sub--deep {
	gap: 14px;
	padding: 14px 0 0 16px;
}

.l-drawer__child {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.l-drawer__child::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-pill);
	background: var(--c-gold-dark) var(--icon-arrow-w) center / 11px auto no-repeat;
}

/* ---- ドロワー内のCTAカード ---- */
.l-drawer__cta {
	display: grid;
	gap: 12px;
	margin-top: 26px;
}

/* 高さは components.css のSPブロックで指定（読み込み順の都合） */
.c-cta--card { gap: 4px; }

/* ==========================================================================
   追従CTA（SP・常時固定）
   デザイン: 高さ56px / 3等分 / 電話=白地に金、WEB=金地に白、LINE=濃色地に白
   ========================================================================== */

.l-float {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--z-float);
	display: flex;
	height: 56px;
}

.l-float__btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px; /* デザイン実測: アイコン20px + 6px + ラベル13px */
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.l-float__icon { width: 20px; height: 20px; flex: none; }

/* 書き出しSVGは「金の丸（rect）＋グリフ（path）」の構成。
   追従CTAでは丸は使わず、地色に応じてグリフだけ塗り替える。 */
.l-float__btn--tel  { background: var(--c-wh); color: var(--c-gold-dark); }
.l-float__btn--tel .l-float__icon rect { display: none; }
.l-float__btn--tel .l-float__icon path { fill: var(--c-gold-dark); }

.l-float__btn--web  { background: var(--c-gold); color: var(--c-wh); }
.l-float__btn--web .l-float__icon rect { display: none; }
.l-float__btn--web .l-float__icon path { fill: var(--c-wh); }

/* LINEは「グレーの角丸 + 白いLINEマーク」。SVGの1つ目のpathが角丸、残りが文字。 */
.l-float__btn--line { background: #443f47; color: var(--c-wh); }
.l-float__btn--line .l-float__icon rect { display: none; }
.l-float__btn--line .l-float__icon path { fill: var(--c-wh); }
.l-float__btn--line .l-float__icon path:first-of-type { fill: #78747a; }

.l-float__btn:hover { color: inherit; opacity: 0.88; }

/* ---- フッター ---- */
.l-footer {
	position: relative;
	margin-top: 121px; /* デザイン: RESERVATION 下端 19692 → フッター上端 19813 */
	background: var(--c-ink);
	color: var(--c-wh);
	padding-block: 64px 24px;
	min-height: 608px;
}

/* 上の余白を明るい地色で塗る（body の地色に依存させない） */
.l-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -121px;
	height: 121px;
	background: var(--c-base);
}

.l-footer a:hover { color: var(--c-gold-light); }

.l-footer__inner {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 48px;
}

.l-footer__brand-logo {
	width: 208px;
	margin-bottom: 12px;
}

.l-footer__brand-name {
	font-size: var(--fs-13);
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 20px;
}

.l-footer__brand-addr {
	font-size: var(--fs-13);
	line-height: var(--lh-normal);
}

/* ---- 公式SNS（フッター / ドロワー） ---- */

/* デザインには枠が無いので、既存の文字組みに馴染む控えめな行で置く */
.c-sns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 18px;
}

.c-sns__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--f-en);
	font-size: 13px;
	letter-spacing: 0.1em;
	line-height: 1;
}

.c-sns__icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.c-sns__link:hover { color: var(--c-gold); }

/* ドロワー内はCTAカードの下に置くので、地の色に合わせる */
.c-sns--drawer {
	justify-content: center;
	margin-top: 22px;
	color: var(--c-ink);
}

.c-sns--drawer .c-sns__link:hover { color: var(--c-gold-dark); }

.l-footer__nav {
	font-size: var(--fs-13);
}

.l-footer__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 24px;
	align-content: start;
}

.l-footer__heading {
	margin-top: 32px;
	margin-bottom: 16px;
	font-size: var(--fs-14);
	font-weight: 700;
}

.l-footer__copy {
	margin-top: 48px;
	text-align: center;
	font-family: var(--f-en);
	font-size: var(--fs-11);
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
	/* デザイン: 256px。ロゴ・医院名・住所・コピーライトのみを中央に置く */
	.l-footer {
		min-height: 256px;
		margin-top: 62px;
		padding-block: 40px 26px;
	}

	.l-footer::before { top: -62px; height: 62px; }

	.l-footer__inner {
		grid-template-columns: 1fr;
		gap: 0;
		text-align: center;
	}

	.l-footer__brand-logo { width: 199px; margin: 0 auto 10px; }
	.l-footer__brand-name { margin-bottom: 14px; font-size: 12px; }
	.l-footer__brand-addr { font-size: 13px; }
	.c-sns { justify-content: center; margin-top: 16px; }

	/* SPデザインにフッターナビは無い（同じ導線はドロワーが担当する） */
	.l-footer__nav { display: none; }

	.l-footer__copy { margin-top: 20px; }
}
