/* メニュー設定 */
#primary-menu.menu {
	width: 100px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0 auto;
}

#primary-menu.menu a {
	color: #fe5126;
}

#primary-menu.menu li {
	margin-bottom: 16px;
}

/* ソーシャルメディアアイコン */
.social-media-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}

.social-icon {
	display: inline-block;
	transition: opacity 0.3s ease;
}

.social-icon:hover {
	opacity: 0.5;
}

.social-icon img {
	width: 14px;
	height: 14px;
	object-fit: contain;
	filter: brightness(0) saturate(100%) invert(38%) sepia(86%) saturate(2461%) hue-rotate(346deg)
		brightness(102%) contrast(99%);
}

/* ハンバーガーメニューボタン（デフォルトで非表示） */
.hamburger-menu {
	display: none;
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 10000;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	width: 40px;
	height: 40px;
}

.hamburger-line {
	display: block;
	width: 100%;
	height: 3px;
	background: #fe5126;
	margin: 6px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

/* ハンバーガーメニューがアクティブ時の×変換 */
.hamburger-menu.active {
	z-index: 10001;
}
.hamburger-menu.active .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
	background: white;
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
	opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
	background: white;
}

/* モーダルメニュー（デフォルトで非表示） */
.menu-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #fe5126;
	backdrop-filter: blur(5px);
}

.menu-modal-content {
	background: #fe5126;
	padding: 30px;
	margin: 50px auto;
	width: 90%;
	max-width: 350px;
	border-radius: 0;
	box-shadow: none;
	position: relative;
}

/* 閉じるボタン */
.menu-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: white;
	padding: 5px;
}

.menu-close:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* モーダル内のメニュー */
#modal-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

#modal-menu li {
	margin-bottom: 15px;
}

#modal-menu a {
	display: block;
	padding: 12px 0;
	color: white;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.3s ease;
}

#modal-menu a:hover {
	color: #fe5126;
	background: white;
	padding-left: 10px;
}

/* モーダルオープン時のbody制御 */
body.modal-open {
	overflow: hidden;
}

/* PDF表示用のスタイル */
.page-content .pdf-block-container {
	width: 100%;
	max-width: 100%; /* ブロックエディターに合わせて100%に変更 */
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.page-content .pdf-block-object {
	width: 100%;
	min-height: 600px; /* functions.phpのデフォルト高さに合わせて調整 */
	border: none;
	display: block;
}

.page-content .pdf-block-fallback {
	width: 100%;
	min-height: 400px; /* 高さを調整してより適切なサイズに */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	padding: 40px 20px;
	border-radius: 8px;
}

.page-content .pdf-block-fallback p {
	margin-bottom: 20px;
	font-size: 14px; /* フォントサイズを調整 */
	line-height: 1.6;
}

/* PDFブロック用のリストスタイル */
.page-content .pdf-block-fallback ul {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%; /* リストの幅を100%に */
	display: flex; /* フレックスボックスに */
	flex-direction: column; /* 縦方向に配置 */
	gap: 15px; /* ボタン間の間隔 */
}

.page-content .pdf-block-fallback li {
	margin-bottom: 0; /* マージンを削除（gapで制御） */
	width: 100%; /* リストアイテムの幅を100%に */
}

.page-content .pdf-block-fallback a {
	display: flex; /* フレックスボックスに */
	align-items: center; /* 縦方向中央揃え */
	justify-content: center; /* 横方向中央揃え */
	width: 100%; /* 幅を100%に */
	padding: 12px 24px; /* パディングを調整 */
	background: #fe5126;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px; /* フォントサイズを調整 */
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	text-align: center; /* テキストを中央揃え */
}

.page-content .pdf-block-fallback a:hover {
	background: #d43d1f;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* PDF表示用のレスポンシブ対応 */
@media (max-width: 768px) {
	.page-content .pdf-block-container {
		max-width: 100%;
		margin: 0;
		border-radius: 0;
	}

	.page-content .pdf-block-object {
		min-height: 500px;
	}

	.page-content .pdf-block-fallback {
		min-height: 300px;
		padding: 30px 15px;
	}
}

@media (max-width: 540px) {
	.page-content .pdf-block-object {
		min-height: 400px;
	}

	.page-content .pdf-block-fallback {
		min-height: 250px;
		padding: 20px 15px;
	}

	.page-content .pdf-block-fallback a {
		padding: 10px 20px;
		font-size: 13px;
	}

	/* スマホサイズでのハンバーガーメニュー表示 */
	.hamburger-menu {
		display: block !important;
		z-index: 10000 !important; /* モーダルより上に表示 */
	}

	/* スマホサイズでのモーダルメニュー表示 */
	.menu-modal {
		z-index: 9999;
	}
}
