/**
 * Header — PC: Figma 133:2301 / SP bar: 201:3268 / SP menu: 201:3316
 */

.hds-header {
	position: relative;
	z-index: 100;
	width: 100%;
	background-color: transparent;
}

.hds-header__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	padding: 12px 16px;
	max-width: none;
	box-sizing: border-box;
}

.hds-header__logo {
	display: block;
	flex-shrink: 0;
	width: 37px;
	height: 39px;
	line-height: 0;
}

.hds-header__logo img {
	display: block;
	width: 37px;
	height: 39px;
}

.hds-header__nav {
	flex: 0 1 auto;
}

.hds-header__nav .wp-block-navigation__container,
.hds-header__nav .wp-block-navigation {
	gap: 12px;
}

.hds-header__nav .wp-block-navigation-item__content {
	color: #231815;
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
}

.hds-header__nav .wp-block-navigation-item__content:hover,
.hds-header__nav .wp-block-navigation-item__content:focus {
	opacity: 0.65;
}

.hds-header__menu-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 17px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	outline: none;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
}

.hds-header__menu-toggle:focus,
.hds-header__menu-toggle:focus-visible,
.hds-header__menu-toggle:active {
	outline: none;
	box-shadow: none;
}

.hds-header__menu-icon {
	display: block;
	width: 25px;
	height: 17px;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.hds-header__drawer {
	display: none;
}

.hds-header__drawer-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hds-header__drawer-link {
	color: #333333;
	font-family: "Cormorant Garamond", "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(18px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.hds-header__drawer-link:hover,
.hds-header__drawer-link:focus {
	opacity: 0.65;
}

.hds-header__drawer-close {
	display: none;
}

.hds-header__drawer-brands {
	display: none;
}

@media screen and (max-width: 781px) {
	.hds-header {
		position: sticky;
		top: 0;
		background-color: transparent;
	}

	.hds-header__inner {
		justify-content: space-between;
		gap: 0;
		min-height: 67px;
		padding: 14px 32px;
	}

	.hds-header__nav {
		display: none;
	}

	.hds-header__menu-toggle {
		display: inline-flex;
	}

	.hds-header.is-menu-open .hds-header__inner {
		visibility: hidden;
		pointer-events: none;
	}

	/* Figma 201:3316 — フルスクリーンメニュー */
	.hds-header__drawer {
		position: fixed;
		inset: 0;
		z-index: 200;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 0 24px;
		box-sizing: border-box;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background-color: #f3f2ef;
		background-image: url("../../images/back.jpg");
		background-repeat: repeat-y;
		background-position: top center;
		background-size: 100% auto;
		background-attachment: fixed;
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.hds-header.is-menu-open .hds-header__drawer {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.hds-header__drawer[hidden] {
		display: flex;
	}

	.hds-header__drawer-close {
		position: absolute;
		top: 6px;
		right: 38px;
		z-index: 3;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
		line-height: 0;
	}

	.hds-header__drawer-close img {
		display: block;
		width: 18px;
		height: 18px;
	}

	.hds-header__drawer-nav {
		position: relative;
		z-index: 2;
		width: 100%;
		max-width: none;
		padding: 0;
		box-sizing: border-box;
	}

	.hds-header__drawer-list {
		align-items: center;
		width: 100%;
	}

	.hds-header__drawer-item {
		width: 100%;
		text-align: center;
	}

	.hds-header__drawer-link {
		display: block;
		text-align: center;
	}

	.hds-header__drawer-brands {
		display: none;
	}

	.hds-header__drawer-brands-paper {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: flex-start;
		justify-content: center;
		pointer-events: none;
		z-index: 0;
	}

	.hds-header__drawer-brands-paper img {
		display: block;
		width: 245px;
		max-width: 100%;
		height: auto;
		object-fit: contain;
		object-position: top center;
		filter: drop-shadow(1px 2px 2px rgba(35, 24, 21, 0.12));
	}

	.hds-header__drawer-brands-content {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 32px;
		width: calc(162px * 245 / 297);
		margin: 0 auto;
		padding-top: calc(110px * 245 / 297);
		box-sizing: border-box;
		pointer-events: auto;
	}

	.hds-header__drawer-brands-title {
		margin: 0;
		color: #231815;
		font-family: "Cormorant Garamond", "EB Garamond", "Noto Serif JP", serif;
		font-size: 22px;
		font-weight: 400;
		line-height: 1;
		letter-spacing: 0;
		text-align: center;
	}

	.hds-header__drawer-brands-actions {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: calc(16px * 245 / 297);
		width: 100%;
	}

	.hds-header__drawer-brands-all {
		display: block;
		margin: 0;
		color: #231815;
		font-family: "EB Garamond", "Noto Serif JP", serif;
		font-size: calc(14.67px * var(--hds-type-scale, 1));
		font-weight: 400;
		line-height: 1;
		text-align: center;
		text-decoration: none;
	}

	.hds-header__drawer-brands-all:hover,
	.hds-header__drawer-brands-all:focus {
		opacity: 0.65;
	}

	.hds-header__drawer-brands-list {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: calc(1.375px * 245 / 297);
		margin: 0;
		padding: 0;
		list-style: none;
		width: calc(83.67px * 245 / 297);
	}

	.hds-header__drawer-brand {
		margin: 0;
		width: calc(83.67px * 245 / 297);
		height: calc(64.84px * 245 / 297);
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 1;
		transition: opacity 0.2s ease;
	}

	.hds-header__drawer-brand:hover,
	.hds-header__drawer-brand:focus-within {
		opacity: 0.65;
	}

	.hds-header__drawer-brand a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}

	.hds-header__drawer-brand img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

body.hds-header-menu-open {
	overflow: hidden;
}

@media screen and (min-width: 782px) {
	.hds-header__menu-toggle,
	.hds-header__drawer {
		display: none !important;
	}
}
