/* =========================================================
 * HSPランド オリジナルヘッダー（案D 決定版）
 * 配置先：swell_child/assets/css/hsp-header.css
 * ブレイクポイント：959px以下＝スマホ／タブレット（SWELLに合わせています）
 * ========================================================= */

:root {
	--hh-bg: #fffefb;          /* ヘッダー地（生成り） */
	--hh-tint: #eef7f8;        /* 淡いティール */
	--hh-line: #d6ecee;
	--hh-wave-line: #cfe9eb;
	--hh-main: #51b9c3;        /* サイトのメインカラー */
	--hh-accent: #25808a;      /* ボタン用の濃いティール（白文字でも読める濃さ） */
	--hh-accent-shadow: #1c666e;
	--hh-ink: #2d5d62;         /* ロゴ・リンク文字 */
	--hh-ink-sub: #4d6b6e;
	--hh-font-round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	--hh-font-body: "Noto Sans JP", sans-serif;
	--hh-inner: 1312px;        /* 中身の最大幅 */
}

/* ---------- SWELL標準のヘッダーを隠す ---------- */
#header,
#fix_header,
#sp_menu,
.l-header,
.l-fixHeader,
.p-spMenu {
	display: none !important;
}

/* ---------- 共通 ---------- */
.hh,
.hh-drawer,
.hh-spcta {
	font-family: var(--hh-font-body);
	color: #333;
	-webkit-font-smoothing: antialiased;
}
.hh *,
.hh-drawer *,
.hh-spcta * {
	box-sizing: border-box;
}
.hh a,
.hh-drawer a,
.hh-spcta a {
	color: var(--hh-ink);
	text-decoration: none;
	transition: color .2s, background-color .2s, border-color .2s;
}
.hh ul,
.hh-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hh button,
.hh-drawer button {
	font: inherit;
	cursor: pointer;
}
.hh-ico {
	flex-shrink: 0;
	display: block;
}
.hh-inner {
	max-width: var(--hh-inner);
	margin: 0 auto;
	padding: 0 40px;
}
.hh :focus-visible,
.hh-drawer :focus-visible,
.hh-spcta :focus-visible {
	outline: 3px solid rgba(81, 185, 195, .55);
	outline-offset: 2px;
}
.hh-sp { display: none !important; }

/* ---------- 上段：細い帯 ---------- */
.hh-util {
	background: var(--hh-tint);
	font-size: 12.5px;
	color: var(--hh-ink-sub);
}
.hh-util__inner {
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.hh-util__tagline {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: .06em;
	line-height: 1;
}
.hh-util__tagline .hh-ico { color: var(--hh-main); }
.hh-util__links {
	display: flex;
	gap: 24px;
}
.hh .hh-util__links a { color: var(--hh-ink-sub); }
.hh .hh-util__links a:hover { color: var(--hh-accent); }

/* ---------- 中段 ---------- */
.hh-main { background: var(--hh-bg); }
.hh-main__inner {
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.hh-logo {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}
.hh-logo__img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	display: block;
}
.hh-logo__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.1;
}
.hh-logo__title {
	font-family: var(--hh-font-round);
	font-weight: 900;
	font-size: 27px;
	letter-spacing: .04em;
	color: var(--hh-ink);
}
.hh-logo__sub {
	font-size: 10.5px;
	letter-spacing: .24em;
	color: #3e9ea8;
	font-weight: 700;
}

.hh-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hh-gnav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-right: 6px;
	font-family: var(--hh-font-round);
	font-weight: 700;
	font-size: 15px;
}
.hh .hh-gnav a {
	padding: 10px 14px;
	border-radius: 999px;
}
.hh .hh-gnav a:hover { background: var(--hh-tint); color: var(--hh-accent); }

.hh-iconbtn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--hh-line);
	background: #fff;
	color: var(--hh-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color .2s;
}
.hh-iconbtn:hover,
.hh-iconbtn[aria-expanded="true"] { background: var(--hh-tint); }

/* ボタン */
.hh-btn {
	height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	border: 1.5px solid transparent;
	line-height: 1;
}
.hh a.hh-btn--base,
.hh-drawer a.hh-btn--base,
.hh-spcta a.hh-btn--base {
	border-color: var(--hh-wave-line);
	background: var(--hh-tint);
	color: var(--hh-accent);
}
.hh a.hh-btn--base:hover,
.hh-drawer a.hh-btn--base:hover,
.hh-spcta a.hh-btn--base:hover { background: #e2f2f4; }

.hh a.hh-btn--shop {
	border-color: #eee3c4;
	background: #fcf8ec;
	color: #7d611c;
}
.hh a.hh-btn--shop:hover { background: #f8f0da; }

.hh .hh-btn--primary,
.hh-spcta .hh-btn--primary {
	background: var(--hh-accent);
	color: #fff;
	padding: 0 22px;
	font-size: 14.5px;
	box-shadow: 0 4px 0 var(--hh-accent-shadow);
	border: none;
}
.hh a.hh-btn--primary,
.hh-spcta a.hh-btn--primary { color: #fff; }
.hh .hh-btn--primary:hover,
.hh-spcta .hh-btn--primary:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 var(--hh-accent-shadow);
}
.hh-btn--primary { transition: transform .15s, box-shadow .15s; }
.hh-btn__tag {
	font-size: 11px;
	font-weight: 500;
	background: rgba(255, 255, 255, .2);
	padding: 3px 8px;
	border-radius: 999px;
}

/* 検索パネル */
.hh-search {
	padding: 4px 0 18px;
}
.hh-search[hidden] { display: none; }
.hh-searchform {
	display: flex;
	gap: 12px;
	max-width: 720px;
	margin-left: auto;
}
.hh-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid var(--hh-line);
	background: #fff;
	margin: 0;
}
.hh-field .hh-ico { color: var(--hh-main); }
.hh-field input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 16px; /* iOSのズーム防止 */
	color: #333;
	padding: 0;
	box-shadow: none;
}
.hh-searchform .hh-btn { height: 48px; box-shadow: none; }

/* ---------- 下段：4つの入り口 ---------- */
.hh-cats__inner {
	position: relative;
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--hh-font-round);
	font-weight: 700;
	font-size: 15.5px;
}
.hh-cats__inner::before { /* 点線の区切り */
	content: "";
	position: absolute;
	top: 0;
	left: 40px;
	right: 40px;
	height: 1px;
	background-image: linear-gradient(to right, #d3e9eb 50%, transparent 50%);
	background-size: 8px 1px;
}
.hh-cats__list {
	display: flex;
	gap: 10px;
}
.hh-cat {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 20px 0 8px;
	border-radius: 999px;
	border: 1.5px solid transparent;
}
.hh-cat__ico {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hh a.hh-cat--blue,   .hh-drawer a.hh-cat--blue   { background: #eef4f8; color: #3d6f8c; }
.hh a.hh-cat--yellow, .hh-drawer a.hh-cat--yellow { background: #faf5e6; color: #86661a; }
.hh a.hh-cat--pink,   .hh-drawer a.hh-cat--pink   { background: #fbeff1; color: #9a4859; }
.hh a.hh-cat--green,  .hh-drawer a.hh-cat--green  { background: #ebf6ef; color: #357553; }
.hh-cat--blue   .hh-cat__ico { color: #4f86a6; }
.hh-cat--yellow .hh-cat__ico { color: #a57f22; }
.hh-cat--pink   .hh-cat__ico { color: #b35a6c; }
.hh-cat--green  .hh-cat__ico { color: #3f8a61; }
.hh a.hh-cat:hover,
.hh a.hh-cat.is-current { border-color: currentColor; }

.hh-cats__sub {
	display: flex;
	gap: 4px;
}
.hh .hh-cats__sub a {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 16px;
	border-radius: 999px;
}
.hh .hh-cats__sub a:hover { background: var(--hh-tint); }
.hh-cats__sub .hh-ico { color: var(--hh-main); }

/* ---------- 波 ---------- */
.hh-wave {
	display: block;
	width: 100%;
	height: 34px;
	margin-top: -1px;
}

/* ---------- スマホ用パーツ（PCでは非表示） ---------- */
.hh-drawer,
.hh-spcta { display: none; }

/* =========================================================
 * タブレット幅（1180px以下）：PCの中段を少し詰める
 * ========================================================= */
@media (max-width: 1180px) and (min-width: 960px) {
	.hh-inner { padding: 0 24px; }
	.hh-cats__inner::before { left: 24px; right: 24px; }
	.hh-actions { gap: 8px; }
	.hh-gnav { margin-right: 0; }
	.hh .hh-gnav a { padding: 10px 10px; }
	.hh-btn { padding: 0 14px; }
	.hh-btn__tag { display: none; }
	.hh-cat { padding-right: 14px; }
}

/* =========================================================
 * スマホ・タブレット（959px以下）
 * ========================================================= */
@media (max-width: 959px) {
	.hh-pc { display: none !important; }
	.hh-sp { display: flex !important; }
	.hh-logo__sub.hh-sp { display: block !important; }

	.hh {
		position: sticky;
		top: 0;
		z-index: 100;
	}
	.hh-util { display: none; }
	.hh-inner { padding: 0 12px 0 16px; }
	.hh-main__inner { height: 64px; gap: 8px; }

	.hh-logo { gap: 10px; min-width: 0; }
	.hh-logo__img { width: 38px; height: 38px; }
	.hh-logo__title { font-size: 21px; }
	.hh-logo__sub {
		font-size: 10px;
		letter-spacing: .04em;
		color: var(--hh-ink-sub);
		font-weight: 400;
		white-space: nowrap;
	}
	.hh-actions { gap: 6px; }
	.hh-iconbtn { width: 44px; height: 44px; }

	.hh-menubtn {
		width: 50px;
		height: 50px;
		border-radius: 16px;
		border: none;
		background: var(--hh-tint);
		color: var(--hh-ink);
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		padding: 0;
	}
	.hh-menubtn__label {
		font-size: 9.5px;
		font-weight: 700;
		line-height: 1;
	}

	.hh-search { padding: 0 0 12px; }
	.hh-search .hh-inner { padding: 0 12px; }
	.hh-searchform .hh-btn { padding: 0 18px; }

	.hh-wave { height: 22px; }

	/* 画面下の固定ボタン */
	.hh-spcta {
		display: flex !important;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom));
		z-index: 90;
		gap: 8px;
		padding: 8px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .95);
		border: 1px solid #e2f1f2;
		box-shadow: 0 8px 24px rgba(81, 185, 195, .16);
	}
	.hh-spcta .hh-btn { height: 48px; font-size: 13.5px; }
	.hh-spcta .hh-btn--base { flex: 1; }
	.hh-spcta .hh-btn--primary { flex: 1.5; box-shadow: none; }
	.hh-spcta .hh-btn__tag { font-size: 10.5px; padding: 2px 7px; }
	body { padding-bottom: 96px; }
	/* SWELLの「ページトップへ」ボタンが固定ボタンと重ならないように */
	.p-fixBtnWrap { bottom: 104px !important; }

	/* メニュー（展開時） */
	.hh-drawer:not([hidden]) {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: #f7fbfb;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.hh-menu-open,
	.hh-menu-open body { overflow: hidden; }
	.hh-menu-open .hh-spcta { display: none !important; }

	.hh-drawer__head {
		flex-shrink: 0;
		height: 64px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 12px 0 16px;
		background: var(--hh-bg);
		border-bottom: 1.5px solid var(--hh-wave-line);
		border-radius: 0 0 28px 28px;
	}
	.hh-drawer .hh-menubtn { display: flex; }
	.hh-drawer__body {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
	}
	.hh-field--drawer { flex: none; }
	.hh-drawer__block {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.hh-drawer__label {
		margin: 0;
		font-size: 11px;
		letter-spacing: .18em;
		color: #3e9ea8;
		font-weight: 700;
	}
	.hh-drawer__cats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		font-family: var(--hh-font-round);
		font-weight: 700;
		font-size: 14.5px;
	}
	.hh-drawer .hh-cat {
		height: 54px;
		padding: 0 12px 0 8px;
		gap: 8px;
	}
	.hh-drawer .hh-cat__ico { width: 36px; height: 36px; }
	.hh-drawer__pills {
		display: flex;
		gap: 8px;
		font-size: 13px;
		font-weight: 500;
	}
	.hh-drawer__pills li { flex: 1; }
	.hh-drawer__pills a {
		height: 44px;
		border-radius: 999px;
		background: #fff;
		border: 1px solid #e3eff0;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
	}
	.hh-drawer__pills .hh-ico { color: var(--hh-main); }

	/* HSP診断カード */
	.hh-drawer a.hh-testcard {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 16px 18px 16px 14px;
		border-radius: 22px;
		background: var(--hh-accent);
		color: #fff;
		box-shadow: 0 4px 0 var(--hh-accent-shadow);
	}
	.hh-testcard__ico {
		width: 48px;
		height: 48px;
		flex-shrink: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, .18);
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.hh-testcard__body {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 3px;
	}
	.hh-testcard__title {
		font-family: var(--hh-font-round);
		font-weight: 900;
		font-size: 18px;
		letter-spacing: .04em;
		line-height: 1.3;
	}
	.hh-testcard__lead { font-size: 11.5px; color: #e6f5f6; }
	.hh-testcard__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
	.hh-testcard__tags span {
		font-size: 10px;
		background: rgba(255, 255, 255, .18);
		padding: 2px 8px;
		border-radius: 999px;
	}

	.hh-drawer__nav {
		display: flex;
		flex-direction: column;
		background: #fff;
		border-radius: 20px;
		border: 1px solid #e8f2f3;
		font-size: 14.5px;
		font-weight: 500;
		overflow: hidden;
	}
	.hh-drawer__nav > a {
		height: 48px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 18px;
		border-bottom: 1px solid #f0f5f5;
	}
	.hh-drawer__nav > a .hh-ico { color: #7fbcc2; }
	.hh-drawer__minor {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		font-size: 12.5px;
	}
	.hh-drawer .hh-drawer__minor a {
		height: 46px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: var(--hh-ink-sub);
	}
	.hh-drawer__minor a + a { border-left: 1px solid #f0f5f5; }
	.hh-btn--wide {
		width: 100%;
		height: 52px;
		margin-top: auto;
	}
}

/* 動きを減らす設定の方には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
	.hh *,
	.hh-drawer *,
	.hh-spcta * {
		transition: none !important;
	}
}
/* ---------- パンくずリスト（ヘッダーの波になじませる） ---------- */
#breadcrumb.p-breadcrumb {
	background: transparent !important;
	box-shadow: none !important;
	padding: 6px 0 0 !important;
	margin-top: -6px;
	position: relative;
}
#breadcrumb .p-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 2px;
	font-size: 12px;
	line-height: 1.6;
}
#breadcrumb .p-breadcrumb__item { color: #4d6b6e; }
#breadcrumb .p-breadcrumb__item::after {
	color: #9fcfd4 !important;
	opacity: 1 !important;
}
#breadcrumb a.p-breadcrumb__text {
	color: #4d6b6e;
	padding: 4px 6px;
	border-radius: 999px;
	transition: background-color .2s, color .2s;
}
#breadcrumb a.p-breadcrumb__text:hover {
	background: #eef7f8;
	color: #25808a;
}
#breadcrumb .p-breadcrumb__item:last-child .p-breadcrumb__text {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: #eef7f8;
	color: #2d5d62;
	font-weight: 700;
}
/* ---------- パンくずリスト（ヘッダーの波になじませる） ---------- */
#breadcrumb.p-breadcrumb {
	background: transparent !important;
	box-shadow: none !important;
	padding: 6px 0 0 !important;
	margin-top: -6px;
	position: relative;
}
#breadcrumb .p-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 2px;
	font-size: 12px;
	line-height: 1.6;
}
#breadcrumb .p-breadcrumb__item { color: #4d6b6e; }
#breadcrumb .p-breadcrumb__item::after {
	color: #9fcfd4 !important;
	opacity: 1 !important;
}
#breadcrumb a.p-breadcrumb__text {
	color: #4d6b6e;
	padding: 4px 6px;
	border-radius: 999px;
	transition: background-color .2s, color .2s;
}
#breadcrumb a.p-breadcrumb__text:hover {
	background: #eef7f8;
	color: #25808a;
}
#breadcrumb .p-breadcrumb__item:last-child .p-breadcrumb__text {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: #eef7f8;
	color: #2d5d62;
	font-weight: 700;
}