/* header-patient.css — .itdm-patient-header 配下限定 */

.itdm-patient-header {
	box-sizing: border-box;
	width: 100%;
	background-color: #fff;
	border-bottom: 1px solid #e0e8f0;
}

.itdm-patient-header *,
.itdm-patient-header *::before,
.itdm-patient-header *::after {
	box-sizing: inherit;
}

.itdm-patient-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding: 12px 16px;
}

/* -----------------------------------------------
   ブランド・サイト名
----------------------------------------------- */
.itdm-patient-header__brand {
	flex-shrink: 0;
}

.itdm-patient-header__site-name {
	font-size: 1rem;
	font-weight: 700;
	color: #1a3a5c;
	line-height: 1.3;
}

/* -----------------------------------------------
   ナビゲーション
----------------------------------------------- */
.itdm-patient-header__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.itdm-patient-header__nav-link {
	display: inline-block;
	padding: 11px 16px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
	white-space: nowrap;
	color: #1a6eb0;
	border: 1px solid #c5d5e8;
	background-color: #f0f4f8;
	transition: opacity 0.15s;
	touch-action: manipulation;
}

.itdm-patient-header__nav-link:hover,
.itdm-patient-header__nav-link:visited {
	color: #1a6eb0;
	text-decoration: none;
}

.itdm-patient-header__nav-link:hover {
	opacity: 0.8;
}

.itdm-patient-header__nav-link--primary {
	background-color: #1a6eb0;
	color: #fff;
	border-color: #1a6eb0;
}

.itdm-patient-header__nav-link--primary:hover,
.itdm-patient-header__nav-link--primary:visited {
	color: #fff;
}

/* -----------------------------------------------
   スマホ（折り返し）
----------------------------------------------- */
@media (max-width: 479px) {
	.itdm-patient-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.itdm-patient-header__nav {
		width: 100%;
	}

	.itdm-patient-header__nav-link {
		flex: 1;
		text-align: center;
	}
}
