/**
 * テンプレート直書きスタイルの移行用CSS
 * header.php, footer.php, page-business.php, front-page.php から移行
 */

/* 和文フォント用ユーティリティ（インライン style 置き換え） */
.font-noto-sans-jp {
	font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* 事業案内ページコンテナ（インライン style 置き換え） */
.business-page-container-bg {
	background-color: #e8f0e8;
}

.pt-15 {
	padding-top: 60px;
}

.pb-15 {
	padding-bottom: 60px;
}

.business-columns-gap {
	--wp--style--block-gap: 30px;
}

/* parts/section.php 背景画像セクション（URL以外をCSS化） */
.section-bg-our-strengths {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	background-size: cover;
	background-position: right;
}

.section-bg-brand-story {
	width: 94%;
}

@media (max-width: 1024px) {
	.section-bg-brand-story {
		width: 90%;
		padding: 60px 15px;
	}
}

/* ブランドストーリーセクション：左右の余白を均一にするための ::before */
.brand-story-section::before {
	content: '';
	display: block;
	flex: 0 0 calc(5% + 15px);
	min-width: 0;
	background-color: #EDF2F3;
}

.brand-story-section .brand-story-vertical-label {
	flex: 0 0 calc(5% + 15px);
}

@media (max-width: 640px) {
	.section-bg-default {
		width: 100%;
	}
}

.section-bg-default {
	margin-left: auto;
	margin-right: 0;
	width: 94%;
	padding: 3rem 0;
}

/* ========== header.php ========== */
body {
	background-color: #EDF2F3;
}

.site-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e0e0e0;
	margin: 1.25rem;
	border-radius: .8rem;
	position: sticky;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	contain: layout style;
	overflow: visible;
}

@media (max-width: 768px) {
	.site-header {
		margin: 1rem;
		top: 1rem;
	}
}

.header-container {
	max-width: 100%;
	margin: 0 auto;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .5rem;
}

.site-logo .logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.logo-img {
	height: auto;
	max-width: 200px;
	display: block;
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	margin-right: 20px;
	position: relative;
	z-index: 1001;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 21px;
	align-items: center;
}

.nav-menu li {
	margin: 0;
	position: relative;
}

.nav-menu>li>.menu-item-label {
	color: #333333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
	padding: 8px 0;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	user-select: none;
}

.nav-menu>li>.menu-item-label:hover {
	color: #4a7c59;
}

.nav-menu>li>.menu-item-label .menu-toggle-icon {
	font-size: 16px;
	font-weight: bold;
	line-height: 1;
	transition: transform 0.3s ease;
	display: inline-block;
	width: fit-content;
	color: #4a7c59;
}

.nav-menu>li.menu-open>.menu-item-label .menu-toggle-icon {
	transform: rotate(45deg);
}

.nav-menu .sub-menu {
	display: block;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: .5rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	list-style: none;
	margin: 0;
	min-width: 180px;
	z-index: 1001;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	visibility: hidden;
}

.nav-menu .menu-item-has-children.menu-open .sub-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	visibility: visible;
}

.nav-menu .sub-menu li {
	margin: 0;
}

.nav-menu .sub-menu a {
	color: #333333;
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	padding: 10px 20px;
	display: block;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu .sub-menu a:hover {
	background-color: #f5f5f5;
	color: #4a7c59;
}

.menu-toggle {
	display: flex;
	background-color: #231815;
	border: none;
	width: 50px;
	height: 50px;
	cursor: pointer;
	border-radius: .5rem;
	padding: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.menu-toggle-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
}

.menu-toggle-icon span {
	display: block;
	width: 100%;
	height: 1px;
	background-color: #ffffff;
	border-radius: 2px;
}

@media (max-width: 1024px) {
	.main-navigation {
		display: none;
	}
}

/* ========== parts/header.php ========== */
.site-header .header-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.site-header .header-inner {
	padding: 1rem 0;
}

.logo-box {
	width: 120px;
	height: 50px;
	background-color: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.logo-text {
	color: #ffffff;
	font-size: 14px;
}

.nav-menu a {
	color: #333333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-menu a:hover {
	color: #4a7c59;
}

@media (max-width: 768px) {
	.parts-header .main-navigation {
		display: none;
	}

	.parts-header .menu-toggle {
		display: flex;
	}
}

/* ========== parts/footer.php ========== */
.site-footer.parts-footer {
	background-color: #8b4513;
	color: #ffffff;
	padding: 60px 0 30px;
}

.site-footer.parts-footer .footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-footer.parts-footer .footer-top-boxes {
	width: 80%;
	margin: 0 auto;
	display: flex;
	gap: 20px;
	margin-bottom: 40px;
}

.site-footer.parts-footer .footer-box {
	width: 100%;
	height: 60px;
	background-color: transparent;
	border: 1px solid #ffffff;
	border-radius: 4px;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-footer.parts-footer .footer-links {
	margin-bottom: 50px;
}

.site-footer.parts-footer .footer-columns {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 30px;
}

.site-footer.parts-footer .footer-column-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #ffffff;
}

.site-footer.parts-footer .footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer.parts-footer .footer-menu li {
	margin-bottom: 12px;
}

.site-footer.parts-footer .footer-menu a {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	transition: opacity 0.3s ease;
}

.site-footer.parts-footer .footer-menu a:hover {
	opacity: 0.8;
}

.site-footer.parts-footer .footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer.parts-footer .footer-bottom-left {
	display: flex;
	align-items: center;
	gap: 30px;
}

.site-footer.parts-footer .footer-logo {
	width: 60px;
	height: 60px;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.site-footer.parts-footer .footer-logo-text {
	color: #8b4513;
	font-size: 12px;
	font-weight: 600;
}

.site-footer.parts-footer .footer-contact p {
	margin: 5px 0;
	font-size: 14px;
	color: #ffffff;
}

.site-footer.parts-footer .footer-bottom-right {
	text-align: right;
}

.site-footer.parts-footer .footer-bottom-nav {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.site-footer.parts-footer .footer-bottom-nav a {
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	transition: opacity 0.3s ease;
}

.site-footer.parts-footer .footer-bottom-nav a:hover {
	opacity: 0.8;
}

.site-footer.parts-footer .footer-copyright {
	font-size: 12px;
	color: #ffffff;
	margin: 0;
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.site-footer.parts-footer .footer-columns {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.site-footer.parts-footer .footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer.parts-footer .footer-bottom {
		flex-direction: column;
		gap: 30px;
	}

	.site-footer.parts-footer .footer-bottom-right {
		text-align: left;
	}

	.site-footer.parts-footer .footer-bottom-nav {
		justify-content: flex-start;
	}
}

/* ========== footer.php ========== */
.site-footer {
	background-color: #231815;
	color: #ffffff;
}

.footer-container {
	max-width: 90%;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-top-boxes {
	width: 80%;
	margin: 0 auto;
	display: flex;
	gap: 45px;
}

.footer-box {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #ffffff;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.footer-box-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.footer-links {
	margin-bottom: 50px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 30px;
}

.footer-column-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #ffffff;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	transition: opacity 0.3s ease;
}

.footer-menu a:hover {
	opacity: 0.8;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-top: 40px;
}

.footer-bottom-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-logo {
	display: flex;
	align-items: flex-start;
}

.footer-logo-img {
	height: 30px;
	width: auto;
	display: block;
}

.footer-contact p {
	margin: 5px 0;
	font-size: 14px;
	color: #ffffff;
}

.footer-bottom-right {
	text-align: right;
}

.footer-bottom-nav {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.footer-bottom-nav a {
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	transition: opacity 0.3s ease;
}

.footer-bottom-nav a:hover {
	opacity: 0.8;
}

.footer-copyright {
	font-size: 12px;
	color: #ffffff;
	margin: 0;
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.footer-columns {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.footer-top-boxes {
		flex-direction: column;
		gap: 20px;
	}

	.footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-bottom {
		flex-direction: column;
		gap: 30px;
	}

	.footer-bottom-right {
		text-align: left;
	}

	.footer-bottom-nav {
		justify-content: flex-start;
	}
}

/* ========== page-business.php ========== */
.business-page-main {
	margin-top: 0;
}

.business-page-container {
	width: 100%;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.business-page-container .wp-block-columns.alignwide {
	margin-top: 40px;
}

.business-page-container .wp-block-columns.alignwide:first-of-type {
	margin-top: 0;
}

.business-page-container .wp-block-image.size-full img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.business-page-container .wp-block-columns.is-layout-flex {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.page-header-title {
		font-size: 2.25rem;
	}
}

/* ========== front-page.php ========== */
.news-filter-btn:first-child::after {
	opacity: 0;
}

.news-filter-btn:first-child.news-filter-active::after {
	opacity: 1;
}