/*
 * きょう整形外科風ヘッダー / Cocoon用
 * 色・余白・高さは冒頭の変数を調整してください。
 */

:root {
	--kc-navy: #123c5a;
	--kc-blue: #2376aa;
	--kc-pale-blue: #eaf5fa;
	--kc-line: #dce7ec;
	--kc-text: #17384c;
	--kc-header-height: 112px;
	--kc-max-width: 1600px;
}

/* Cocoon標準ヘッダーを非表示 */
#header-container,
.header-container,
#navi,
.navi {
	display: none !important;
}

/* Cocoon側の上余白をリセット */
body {
	margin-top: 0 !important;
}

.kc-header,
.kc-header * {
	box-sizing: border-box;
}

.kc-header {
	position: relative;
	z-index: 9999;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid var(--kc-line);
	font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
	color: var(--kc-text);
}

.kc-header__inner {
	width: min(100%, var(--kc-max-width));
	min-height: var(--kc-header-height);
	margin: 0 auto;
	padding-left: clamp(22px, 3vw, 58px);
	display: flex;
	align-items: stretch;
}

.kc-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 13px;
	padding-right: clamp(22px, 3vw, 50px);
	color: var(--kc-navy);
	text-decoration: none;
}

.kc-header__logo {
	display: block;
	height: auto;
}

.kc-header__media-label {
	margin-top: 26px;
	padding-left: 13px;
	border-left: 1px solid #b7c9d2;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .22em;
	color: #6c8795;
}

.kc-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.kc-header__nav-list {
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: flex-end;
	list-style: none;
}

.kc-header__nav-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.kc-header__nav-item > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 clamp(11px, 1.05vw, 21px);
	color: var(--kc-text);
	text-decoration: none;
	font-size: clamp(12px, .85vw, 15px);
	font-weight: 600;
	white-space: nowrap;
	transition: color .2s ease, background .2s ease;
}

.kc-header__nav-item > a::after {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 0;
	height: 3px;
	background: var(--kc-blue);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .22s ease;
}

.kc-header__nav-item:hover > a::after,
.kc-header__nav-item:focus-within > a::after {
	transform: scaleX(1);
}

.kc-header__chevron {
	width: 6px;
	height: 6px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.kc-header__submenu {
	position: absolute;
	z-index: 10;
	top: calc(100% - 1px);
	left: 50%;
	width: 270px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	background: #fff;
	border-top: 3px solid var(--kc-blue);
	box-shadow: 0 14px 35px rgba(18, 60, 90, .15);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.kc-header__nav-item:hover .kc-header__submenu,
.kc-header__nav-item:focus-within .kc-header__submenu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.kc-header__submenu a {
	display: block;
	padding: 11px 22px;
	border-bottom: 1px solid #edf2f5;
	color: var(--kc-text);
	text-decoration: none;
	font-size: 13px;
	line-height: 1.55;
}

.kc-header__submenu li:last-child a {
	border-bottom: 0;
}

.kc-header__submenu a:hover,
.kc-header__submenu a:focus {
	background: var(--kc-pale-blue);
	color: var(--kc-blue);
}

.kc-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: stretch;
	margin-left: 6px;
}

.kc-header__phone {
	min-width: 164px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 18px;
	color: var(--kc-navy);
	text-align: center;
	text-decoration: none;
	border-left: 1px solid var(--kc-line);
}

.kc-header__phone-caption {
	margin-bottom: 3px;
	font-size: 11px;
	letter-spacing: .08em;
}

.kc-header__phone strong {
	font-family: Arial, sans-serif;
	font-size: 19px;
	letter-spacing: .03em;
}

.kc-header__reserve {
	width: 112px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	color: #fff;
	text-decoration: none;
	background: var(--kc-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	transition: filter .2s ease;
}

.kc-header__reserve:hover {
	filter: brightness(.92);
	color: #fff;
}

.kc-header__reserve-icon {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255,255,255,.75);
	border-radius: 50%;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
}

.kc-header__menu-button {
	width: 112px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 9px;
	border: 0;
	border-radius: 0;
	background: var(--kc-navy);
	color: #fff;
	font: inherit;
	font-size: 11px;
	letter-spacing: .16em;
	cursor: pointer;
}

.kc-header__menu-lines {
	width: 30px;
	display: grid;
	gap: 6px;
}

.kc-header__menu-lines i {
	display: block;
	height: 1px;
	background: #fff;
	transition: transform .2s ease, opacity .2s ease;
}

.kc-header__nav-item:hover > a,
.kc-header__nav-item:focus-within > a {
	color: var(--kc-blue);
	background: #f7fbfd;
}

/* 全画面メニュー */
.kc-mobile-menu {
	position: fixed;
	z-index: 10001;
	top: 0;
	right: 0;
	width: min(540px, 92vw);
	height: 100dvh;
	overflow-y: auto;
	background: #fff;
	box-shadow: -20px 0 50px rgba(14, 43, 61, .2);
}

.kc-mobile-menu__overlay {
	position: fixed;
	z-index: 10000;
	inset: 0;
	background: rgba(9, 33, 49, .55);
}

.kc-mobile-menu__head {
	height: 82px;
	padding: 0 28px 0 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--kc-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
}

.kc-mobile-menu__close {
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 36px;
	font-weight: 200;
	line-height: 1;
	cursor: pointer;
}

.kc-mobile-menu__body {
	padding: 28px 34px 50px;
}

.kc-mobile-menu__home,
.kc-mobile-menu__parent {
	display: block;
	padding: 15px 0;
	border-bottom: 1px solid var(--kc-line);
	color: var(--kc-navy);
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
}

.kc-mobile-menu__group {
	margin-top: 10px;
}

.kc-mobile-menu__group ul {
	margin: 4px 0 16px;
	padding: 4px 0 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 22px;
	list-style: none;
}

.kc-mobile-menu__group li a {
	display: block;
	position: relative;
	padding: 9px 0 9px 15px;
	color: #486574;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.45;
}

.kc-mobile-menu__group li a::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 16px;
	width: 5px;
	height: 5px;
	border-top: 1px solid var(--kc-blue);
	border-right: 1px solid var(--kc-blue);
	transform: rotate(45deg);
}

.kc-mobile-menu__buttons {
	margin-top: 28px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.kc-mobile-menu__buttons a {
	min-height: 58px;
	display: grid;
	place-items: center;
	padding: 10px;
	background: var(--kc-navy);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
}

.kc-mobile-menu__buttons a:last-child {
	background: var(--kc-blue);
}

body.kc-menu-open {
	overflow: hidden;
}

/* タブレット */
@media (max-width: 1280px) {
	.kc-header__nav {
		display: none;
	}

	.kc-header__inner {
		padding-left: 26px;
	}

	.kc-header__brand {
		margin-right: auto;
	}

	.kc-header__phone {
		min-width: 155px;
	}
}

/* スマートフォン */
@media (max-width: 767px) {
	:root {
		--kc-header-height: 76px;
	}

	.kc-header__inner {
		min-height: var(--kc-header-height);
		padding-left: 16px;
	}

	.kc-header__brand {
		gap: 7px;
		padding-right: 10px;
	}

	.kc-header__logo {
		width: min(48vw, 205px);
	}

	.kc-header__media-label {
		display: none;
	}

	.kc-header__phone {
		display: none;
	}

	.kc-header__reserve,
	.kc-header__menu-button {
		width: 72px;
		font-size: 9px;
	}

	.kc-header__reserve-icon {
		width: 23px;
		height: 23px;
		font-size: 16px;
	}

	.kc-header__menu-lines {
		width: 25px;
		gap: 5px;
	}

	.kc-mobile-menu__body {
		padding: 22px 22px 42px;
	}

	.kc-mobile-menu__group ul {
		grid-template-columns: 1fr;
	}

	.kc-mobile-menu__buttons {
		grid-template-columns: 1fr;
	}
}
/* スマホでは電話番号を非表示 */
@media screen and (max-width: 767px) {
	.kc-clinic-footer .ft_right .tel {
		display: none !important;
	}
}