/**
 * 全ページ共通スタイル
 * parts/header/sp_menu.php (ドロワーメニュー、全ページのheader.phpから読込まれる) と
 * parts/kaeru-logo-slider.php (ドロワー内・トップページFV内の両方で使われる) に
 * 直書きされていた <style> をここに集約。
 * functions.php から全ページで enqueue される。
 */

/* === parts/header/sp_menu.php: ドロワーメニュー === */

/* ===== ヘッダー全体構造 ===== */
.drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 10000;
	height: 4.5rem;
}
.single .drawer-header {
	border-bottom: 2px solid #272936;
	height: calc(4.5rem + 2px);
}

/* ロゴまわり */
.drawer-logo {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem;
}
.drawer-logo img {
	height: 40px;
	width: auto;
}
@media (max-width: 768px) {
	.drawer-logo img {
		height: 32px;
	}
}
.drawer-logo p {
	font-weight: bold;
	line-height: 1.2;
	color: #d94440;
	margin: 0;
}

/* ハンバーガーボタン（赤背景・白線・角丸） */
.hamburger {
	width: 4.5rem;
	height: calc(4.5rem + 2px);
	background-color: #c0392b;
	position: fixed;
	top: 0px;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10001;
	cursor: pointer;
	border-top: 2px solid #272936;
	border-left: 2px solid #272936;
	border-bottom: 2px solid #272936;
}
.hamburger span {
	position: absolute;
	width: 24px;
	height: 3px;
	background-color: #fff;
	border-radius: 99px;
	transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 1.4rem; }
.hamburger span:nth-child(2) { top: 2rem; }
.hamburger span:nth-child(3) { top: 2.6rem; }

/* アクティブ状態で「×」に変形 */
.hamburger.active span:nth-child(1) {
	top: 2em;
	transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
	opacity: 0;
}
.hamburger.active span:nth-child(3) {
	top: 2rem;
	transform: rotate(-45deg);
}

/* ドロワーメニュー */
.drawer-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 70%;
	height: 100svh;
	background: #fffdf6;
	border: 2px solid #272936;
	transition: right 0.4s ease;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.drawer-list-area {
	padding: 0 2rem 2rem;
	min-height: 82svh;
}
.drawer-menu .drawer-bottom .logo-marquee {
	border-top: 2px solid #000;
	border-bottom: none;
}
@media screen and (max-width: 768px) {
	.drawer-menu {
		width: 95%;
	}
}
.drawer-menu.open {
	right: 0;
}

/* メニュー項目 */
.drawer-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	column-count: 2;     /* 2列に分割 */
	column-gap: 2em;     /* 列の間隔 */
}
.drawer-menu li {
	margin-bottom: 1.5rem;
	break-inside: avoid; /* li が列の途中で分断されないように */
}
.drawer-menu li a {
	font-size: 1rem;
	font-weight: bold;
}
.drawer-menu a {
	text-decoration: none;
	color: #333;
	font-size: 1.2rem;
}

/* === parts/kaeru-logo-slider.php: ロゴマーキー (ドロワー内・トップFV内で共用) === */
.logo-marquee {
	overflow: hidden;
	width: 100%;
	padding-top: .3em;
	padding-left: 40px;
	background: #fffdf6;
	border-bottom: 2px solid #272936;
}
.logo-track {
	display: inline-flex;
	animation: scroll 80s linear infinite;
	width: max-content;
}
.logo-track img {
	width: 120px;
	margin-right: 20px;
	flex-shrink: 0;
}
@keyframes scroll {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}
