/* HST header: single language switch, PC nav vs mobile drawer */

/* ── 右エリア: メニュー（PC） / 国旗1組 / ハンバーガー（スマホのみ） ── */
.hst-header-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1;
	min-width: 0;
	gap: clamp(0.875rem, 2.5vw, 1.75rem);
}

/* PC: テキストメニューのみ表示 */
.hst-header-nav-desktop {
	display: none;
	align-items: center;
}

@media (min-width: 48rem) {
	.hst-header-nav-desktop {
		display: flex;
	}
}

.hst-header-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
	row-gap: 0.375rem;
	column-gap: clamp(1.25rem, 2.5vw, 2rem);
}

.hst-header-nav__link {
	white-space: nowrap;
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	color: #0f172a;
	font-weight: 500;
	padding: 0.5rem 0;
	display: inline-flex;
	align-items: center;
	transition: color 0.2s ease;
}

.hst-header-nav__link:hover {
	color: #71717a;
}

/* スマホ: ハンバーガーのみ（PCでは完全非表示） */
.hst-header-mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

@media (min-width: 48rem) {
	.hst-header-mobile-toggle {
		display: none !important;
		position: absolute;
		width: 0;
		height: 0;
		overflow: hidden;
		visibility: hidden;
		pointer-events: none;
	}
}

/* 国旗: ヘッダーに1組のみ（JP + KR を1ブロックとして横並び） */
.hst-lang-switch--header {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	border: none;
	height: auto;
}

@media (min-width: 48rem) {
	.hst-lang-switch--header {
		padding-left: 1.5rem;
		margin-left: 0.25rem;
		border-left: 1px solid #e4e4e7;
		min-height: 2rem;
		gap: 0.75rem;
	}
}

.hst-lang-switch__flag {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	min-width: 1.75rem;
	min-height: 1.75rem;
	border-radius: 9999px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
	flex-shrink: 0;
}

@media (min-width: 48rem) {
	.hst-lang-switch__flag {
		width: 1.625rem;
		height: 1.625rem;
		min-width: 1.625rem;
		min-height: 1.625rem;
	}
}

.hst-lang-switch__flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hst-lang-switch__flag:not(.is-active) {
	opacity: 0.45;
	filter: grayscale(1);
}

.hst-lang-switch__flag:not(.is-active):hover {
	opacity: 1;
	filter: grayscale(0);
}

.hst-lang-switch__flag.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1e293b;
	opacity: 1;
	filter: none;
}

.hst-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0f172a;
	cursor: pointer;
	border-radius: 0.125rem;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.hst-nav-toggle:hover {
	background-color: rgba(15, 23, 42, 0.04);
}

.hst-nav-toggle:focus-visible {
	outline: 2px solid #334155;
	outline-offset: 2px;
}

.hst-nav-toggle__bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 1.375rem;
}

.hst-nav-toggle__bars span {
	display: block;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.2s ease;
}

body.hst-drawer-open .hst-nav-toggle__bars span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

body.hst-drawer-open .hst-nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

body.hst-drawer-open .hst-nav-toggle__bars span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ドロワー内リスト */
.hst-header-nav__list--drawer {
	flex-direction: column;
	align-items: stretch;
	flex-wrap: nowrap;
	row-gap: 0;
	column-gap: 0;
}

.hst-header-nav__link--drawer {
	display: block;
	width: 100%;
	padding: 1rem 0;
	font-size: 1rem;
	letter-spacing: 0.12em;
	color: #0f172a;
	font-weight: 500;
	border-bottom: 1px solid #f4f4f5;
}

.hst-drawer {
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	visibility: hidden;
}

.hst-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.hst-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	opacity: 0;
	transition: opacity 0.35s ease;
	backdrop-filter: blur(2px);
}

.hst-drawer.is-open .hst-drawer__overlay {
	opacity: 1;
}

.hst-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(100%, 20rem);
	max-width: 100vw;
	background: #fff;
	box-shadow: -8px 0 32px rgba(15, 23, 42, 0.08);
	transform: translateX(100%);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hst-drawer.is-open .hst-drawer__panel {
	transform: translateX(0);
}

.hst-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f4f4f5;
	flex-shrink: 0;
}

.hst-drawer__title {
	font-family: "Playfair Display", "Noto Serif JP", serif;
	font-size: 0.75rem;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: #0f172a;
}

.hst-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 2.75rem;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 0.125rem;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.hst-drawer__close:hover {
	color: #0f172a;
	background-color: rgba(15, 23, 42, 0.04);
}

.hst-drawer__scroll {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

body.hst-drawer-open {
	overflow: hidden;
}

@media (min-width: 48rem) {
	.hst-drawer {
		display: none !important;
	}

	body.hst-drawer-open {
		overflow: auto;
	}
}
