@charset "UTF-8";

/* ==========================================================
   MASAKI Strings Studio Header
   ========================================================== */

.site-header {
	width: 100%;
	height: var(--header-height, 50px);
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 999999 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: var(--color-white, #fff) !important;
	border-bottom: 1px solid var(--color-border-soft, #c9b9aa);
}

.header-inner {
	width: calc(100% - 2rem);
	max-width: 1200px;
	min-width: 900px;
	height: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

/* Logo */

.header-logo {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-logo img,
.header-logo .custom-logo {
	width: 44px;
	height: auto;
	object-fit: contain;
}

/* Site title */

.header-center {
	height: 100%;
	min-width: 0;
	flex: 1;
	display: flex;
	align-items: center;
}

.site-title {
	margin: 0 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.55em;
	white-space: nowrap;
	font-family: var(--font-base);
	line-height: 1;
}

.site-location {
	margin-left: 0.5rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--color-muted);
	letter-spacing: 0.12em;
}

.site-name {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-brand-dark, #432f2f);
	letter-spacing: 0.08em;
}

/* PC navigation */

.pc-nav {
	width: auto;
	margin-left: 1.4rem;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.pc-nav a {
	position: relative;
	padding: 0 0.2em;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	letter-spacing: 0.07em;
	transition: color 0.25s ease;
}

.pc-nav a + a::before {
	content: "";
	position: absolute;
	left: -0.55rem;
	top: 50%;
	width: 1px;
	height: 14px;
	background: var(--color-border-soft, #c9b9aa);
	transform: translateY(-50%);
}

@media (hover: hover) and (pointer: fine) {
	.pc-nav a:hover {
		color: var(--color-brand-light, #b4866b);
	}
}

/* CTA */

.header-line {
	width: 120px;
	height: 100%;
	flex: 0 0 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.line-btn {
	width: 100px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #06c755;
	color: #fff;
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
	.line-btn:hover {
		color: #fff;
		opacity: 0.88;
		transform: translateY(-1px);
	}
}

/* Mobile elements hidden on PC */

.hamburger,
.sp-nav,
.header-menu-toggle,
.menu-toggle,
.mobile-menu-toggle {
	display: none !important;
}

/* ==========================================================
   Tablet adjustment
   ========================================================== */

@media screen and (max-width: 1100px) and (min-width: 769px) {
	.header-inner {
		width: calc(100% - 1rem);
		min-width: 0;
	}

	.site-location {
		display: none;
	}

	.site-name {
		font-size: 1rem;
	}

	.pc-nav {
		gap: 0.7rem;
		margin-left: 0.8rem;
	}

	.pc-nav a {
		font-size: 0.7rem;
		letter-spacing: 0.04em;
	}

	.header-line {
		width: 105px;
		flex-basis: 105px;
	}

	.line-btn {
		width: 92px;
	}
}

/* ==========================================================
   Smartphone
   ========================================================== */

@media screen and (max-width: 768px) {
	.header-line,
	.pc-nav {
		display: none !important;
	}

	.header-inner {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0;
		display: grid;
		grid-template-columns: 54px 1fr 54px;
		align-items: center;
	}

	.header-logo {
		width: 54px;
		height: 50px;
		padding: 0;
		justify-content: center;
	}

	.header-logo img,
	.header-logo .custom-logo {
		width: 40px;
	}

	.header-center {
		width: 100%;
		height: 50px;
		margin: 0;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.site-title {
		margin: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-location {
		display: none;
	}

	.site-name {
		font-size: clamp(0.9rem, 4vw, 1.12rem);
		letter-spacing: 0.05em;
		white-space: nowrap;
	}

	.hamburger {
		width: 54px;
		height: 50px;
		padding: 0;
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 4px;
		position: static;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.hamburger span {
		width: 22px;
		height: 2px;
		display: block;
		background: var(--color-text);
		transition:
			transform 0.3s ease,
			opacity 0.3s ease;
	}

	.hamburger.is-open span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.hamburger.is-open span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.is-open span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.sp-nav {
		width: 100%;
		position: fixed;
		top: var(--header-height, 50px);
		left: 0;
		z-index: 999998;
		display: none !important;
		flex-direction: column;
		background: var(--color-white, #fff);
		box-shadow: 0 4px 12px rgba(67, 47, 47, 0.14);
	}

	.sp-nav.is-open {
		display: flex !important;
	}

	.sp-nav a {
		display: block;
		padding: 0.9em 1rem;
		color: var(--color-text);
		text-align: center;
		text-decoration: none;
		border-bottom: 1px solid var(--color-border-soft, #c9b9aa);
	}

	.sp-nav .sp-line-btn {
		color: #fff;
		font-weight: 700;
		background: #06c755;
		border-bottom-color: #06c755;
	}
}

html {
	scroll-behavior: smooth;
}

section[id],
div[id] {
	scroll-margin-top: 70px;
}
