/* ==========================================
 * Layout CSS
 * ========================================== */

/* Container Standards */
.c_lg_container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.c_md_container {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.c_sm_container {
	width: 100%;
	max-width: 768px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Body Scroll Lock for Drawer */
body.is_locked {
	overflow: hidden;
}

/* Main Content Spacing for Fixed Header */
.l_main {
	padding-top: 100px;
	min-height: 80vh;
	overflow: hidden;
}

/* ==========================================
 * Header Layout (.l_header)
 * ========================================== */
.l_header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	min-height: 100px;
	background-color: rgba(255, 252, 250, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1000;
	transition: var(--transition_base);
	border-bottom: none;

	display: flex;
	align-items: center;
	justify-content: stretch;
}

.l_header.is_scrolled {
	background-color: rgba(255, 252, 250, 0.98);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.l_header_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: auto;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 10px 32px;
}

/* Header Logo */
.l_header_logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	transition: var(--transition_base);
	flex-shrink: 0;
	max-width: 360px;
}

.l_header_logo:hover {
	opacity: 0.7;
}

.l_header_logo_icon {
	width: 106px;
	height: 44px;
	object-fit: contain;
	flex-shrink: 0;
}

.l_header_logo_text {
	width: 235px;
	height: 26px;
	object-fit: contain;
	flex-shrink: 0;
}

/* Header Right (2-column layout: Logo on left, Menu + Tel on right) */
.l_header_right {
	display: flex;
	align-items: center;
	gap: 48px;
}

/* Header Navigation */
.l_header_nav {
	display: flex;
	align-items: center;
	margin: 0;
}

.l_header_menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.l_header_menu_item {
	position: relative;
}

.l_header_menu_link {
	font-family: var(--font_maru_gothic);
	font-size: 1.0625em;
	/* 17px */
	font-weight: 500;
	color: var(--color_black);
	letter-spacing: 0.08em;
	padding: 6px 0;
	display: inline-block;
	transition: var(--transition_base);
	position: relative;
	white-space: nowrap;
}

.l_header_menu_link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color_primary);
	transition: width 0.3s ease;
}

.l_header_menu_link:hover::after,
.l_header_menu_link.is_active::after {
	width: 100%;
}

.l_header_menu_link:hover,
.l_header_menu_link.is_active {
	color: var(--color_black);
}

/* Header Tel Box */
.l_header_tel_box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.l_header_tel_label {
	font-family: var(--font_hiragino_maru, var(--font_maru_gothic));
	font-size: 1.125em;
	/* 18px */
	font-weight: 500;
	color: var(--color_black);
	letter-spacing: 0.05em;
}

/* Hamburger Button */
.l_hamburger_btn {
	display: none;
	width: 48px;
	height: auto;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1002;
}

.l_hamburger_bar {
	width: 28px;
	height: 2.5px;
	background-color: var(--color_primary);
	border-radius: 2px;
	transition: var(--transition_base);
}

.l_hamburger_btn.is_open .l_hamburger_bar:nth-child(1) {
	transform: translateY(8.5px) rotate(45deg);
}

.l_hamburger_btn.is_open .l_hamburger_bar:nth-child(2) {
	opacity: 0;
}

.l_hamburger_btn.is_open .l_hamburger_bar:nth-child(3) {
	transform: translateY(-8.5px) rotate(-45deg);
}


/* Mobile Drawer */
.l_drawer_menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--color_bg);
	z-index: 999;
	padding: auto 20px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition_base);
}

.l_drawer_menu.is_open {
	opacity: 1;
	visibility: visible;
}

.l_drawer_nav_list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	margin-bottom: 32px;
}

.l_drawer_nav_link {
	font-family: var(--font_maru_gothic);
	font-size: 1.25em;
	/* 20px */
	font-weight: 700;
	color: var(--color_black);
	letter-spacing: 0.1em;
	padding: 8px 0;
	display: inline-block;
	position: relative;
	transition: var(--transition_base);
}

.l_drawer_nav_link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color_primary);
	transition: width 0.3s ease;
}

.l_drawer_nav_link:hover::after,
.l_drawer_nav_link.is_active::after {
	width: 100%;
}

.l_drawer_nav_link:hover,
.l_drawer_nav_link.is_active {
	color: var(--color_primary);
}

.l_drawer_tel_box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

/* ==========================================
 * Footer Layout (.l_footer)
 * ========================================== */
.l_footer {
	background-color: var(--color_bg);
	padding-top: 80px;
	padding-bottom: 60px;
	position: relative;
}

/* Footer Top Divider Line on Subpages (Figma 88:919, 107:3932, 103:1489) */
.l_footer_divider {
	width: 100%;
	max-width: 1200px;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.25);
	margin: 0 auto 60px;
}

.l_footer_inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 60px;
}

/* Footer Left: Clinic Info & Hours */
.l_footer_info {
	width: 100%;
	max-width: 468px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.l_footer_nav {
	flex-shrink: 0;
	padding-top: 6px;
}

.l_footer_logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: var(--transition_base);
}

.l_footer_logo:hover {
	opacity: 0.7;
}

.l_footer_logo_icon {
	width: 135px;
	height: 52px;
	object-fit: contain;
}

.l_footer_logo_text {
	width: 313px;
	height: 30px;
	object-fit: contain;
}

.l_footer_address {
	font-family: var(--font_hiragino_maru, var(--font_maru_gothic));
	font-size: 1.125em;
	/* 18px - W3 in Figma */
	font-weight: 300;
	color: var(--color_black);
	letter-spacing: 0.1em;
}

/* Footer Center: Navigation Menu */
.l_footer_nav_list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.l_footer_nav_link {
	font-family: var(--font_hiragino_maru, var(--font_maru_gothic));
	font-size: 1.125em;
	/* 18px - W5 in Figma */
	font-weight: 500;
	color: var(--color_black);
	letter-spacing: 0.1em;
	transition: var(--transition_base);
	display: inline-block;
}

.l_footer_nav_link:hover {
	color: var(--color_primary);
	transform: translateX(4px);
}

/* Footer Right: Back to Top & Contact */
.l_footer_action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

/* Footer Page Top Button (.l_footer_top_btn) */
.l_footer_top_btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	transition: var(--transition_base);
	text-decoration: none;
}

.l_footer_top_btn:hover {
	transform: translateY(-4px);
}

.l_page_top_label {
	font-family: var(--font_hiragino_maru, var(--font_maru_gothic));
	font-size: 1.25em;
	/* 20px - W7 in Figma */
	font-weight: 700;
	color: var(--color_primary);
	letter-spacing: 0.05em;
}

.l_page_top_icon {
	width: 260px;
	height: 96px;
	object-fit: contain;
}

.l_footer_tel_box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.l_footer_tel_label {
	font-family: var(--font_hiragino_maru, var(--font_maru_gothic));
	font-size: 1.125em;
	/* 18px - W5 in Figma */
	font-weight: 500;
	color: var(--color_black);
	letter-spacing: 0.05em;
}

.l_footer_copyright {
	font-family: var(--font_en), sans-serif;
	font-size: 0.75em;
	/* 12px - Figma Medium */
	font-weight: 500;
	color: var(--color_black);
	letter-spacing: 0.02em;
	text-align: center;
	margin-top: 4px;
}

/* ==========================================
 * Responsive Breakpoints (1024px & 768px)
 * ========================================== */
@media screen and (max-width: 1440px) {

	.l_header_inner,
	.c_breadcrumbs_container,
	.c_page_banner_container {
		padding: 0 24px;
	}

	.l_header_right {
		gap: 28px;
	}

	.l_header_nav {
		margin: 0;
	}

	.l_header_menu {
		gap: 18px;
	}

	.l_header_menu_link {
		font-size: 1em;
		/* 16px */
	}

	.l_header_logo_icon {
		width: 97px;
		height: 40px;
	}

	.l_header_logo_text {
		width: 216px;
		height: 24px;
	}
}

@media screen and (max-width: 1200px) {

	.l_header_inner,
	.c_breadcrumbs_container,
	.c_page_banner_container {
		padding: 0 16px;
	}

	.l_header_right {
		gap: 16px;
	}

	.l_header_nav {
		margin: 0;
	}

	.l_header_logo_text {
		width: 193px;
		height: 22px;
	}

	.l_header_logo_icon {
		width: 88px;
		height: 35px;
	}

	.l_header_menu {
		gap: 12px;
	}

	.l_header_menu_link {
		font-size: 0.9375em;
		/* 15px */
	}

	.l_header_tel_label {
		font-size: 0.9375em;
	}

	.c_btn_tel {
		width: 210px;
		height: 48px;
	}
}

@media screen and (max-width: 1024px) {
	.l_header {
		height: 90px;
	}

	.l_header_right {
		display: none;
	}

	.l_hamburger_btn {
		display: flex;
	}

	.l_drawer_menu {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.l_footer_inner {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 40px 32px;
		align-items: start;
	}

	.l_footer_action {
		grid-column: 1 / -1;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
	}
}

@media (max-width: 820px) {
	.l_footer_logo {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media screen and (max-width: 768px) {
	.l_header {
		min-height: auto;
	}

	.l_main {
		padding-top: 50px;
	}

	.l_header_logo_icon {
		width: 99px;
		height: 40px;
	}

	.l_header_logo_text {
		width: 198px;
		height: 22px;
	}

	.c_breadcrumbs_container,
	.c_page_banner_container {
		padding: 0 20px;
	}

	/* Footer 768px Mobile Standard per rules */
	.l_footer {
		padding: 50px 0;
	}

	.l_footer_inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 32px;
	}

	.l_footer_nav_list {
		display: none;
		/* Hidden on mobile per rules */
	}

	.l_footer_info {
		align-items: center;
		text-align: center;
	}

	.l_footer_logo {
		align-items: center;
		justify-content: center;
	}

	.l_footer_logo_icon {
		width: 100px;
		height: 40px;
	}

	.l_footer_logo_text {
		width: 220px;
		height: 24px;
	}

	.l_page_top_icon {
		width: 200px;
		height: 74px;
	}
}

@media (max-width: 500px) {
	.l_header {
		padding: 20px 0px;
		height: auto;
	}

	.l_drawer_nav_link {
		font-size: 1em;
	}

	.l_header_logo_icon {
		display: none;
	}

	.l_main {
		padding-top: 50px;
	}

	.l_footer_copyright {
		text-align: center;
	}

	.l_footer_address {
		font-size: 1em;
	}
}

@media (max-width: 350px) {
	.l_drawer_nav_list {
		gap: 0px;
		margin-bottom: 10px;
	}
}

/* ==========================================
 * End of Layout CSS
 * ========================================== */