/**
 * Header & Footer Styles
 *
 * Matching Figma design for recruit site.
 * Header: Desktop 100px, Mobile 68px
 * Footer: Simplified with logo + links + copyright
 *
 * @package Okayama
 */

/* ========================================
   Site Header
   ======================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #fff;
	transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
	box-shadow: var(--wp--preset--shadow--md);
}

.site-header__inner {
	display: flex;
	align-items: center;
	height: 100px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 45px;
	gap: 40px;
}

/* Logo */
.site-header__logo {
	flex-shrink: 0;
}

.site-header__logo-link {
	display: block;
	text-decoration: none;
}

.site-header__logo-img {
	display: block;
	height: 36px;
	width: auto;
	max-width: 100%;
	aspect-ratio: 478 / 55;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	height: 36px;
	width: auto;
}

/* Mobile Menu Toggle */
.site-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #222;
}

.site-header__menu-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 20px;
}

.site-header__menu-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #222;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon span:nth-child(2) {
	opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.site-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.site-header__menu {
	display: flex;
	align-items: center;
	gap: 50px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__menu li {
	margin: 0;
}

.site-header__menu a {
	display: block;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-size: 16px;
	font-weight: 900;
	color: #222;
	text-decoration: none;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.site-header__menu a:hover,
.site-header__menu a:focus {
	color: #6bb529;
}

.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a {
	color: #6bb529;
}

/* CTA Buttons */
.site-header__cta {
	flex-shrink: 0;
	display: flex;
}

.site-header__cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	width: 190px;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-size: 20px;
	font-weight: 900;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.3s ease;
	white-space: nowrap;
}

.site-header__cta-btn:hover {
	opacity: 0.85;
}

.site-header__cta-btn--outline {
	background-color: #fff;
	color: #6bb529;
	border: 1px solid #6bb529;
	border-radius: 30px 0 0 30px;
}

.site-header__cta-btn--filled {
	background-color: #6bb529;
	color: #fff;
	border: 1px solid #6bb529;
	border-radius: 0 30px 30px 0;
}

/* ========================================
   Site Footer
   ======================================== */

.site-footer {
	background-color: #fff;
	border-top: 1px solid #e5e7eb;
}

.site-footer__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 50px 150px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.site-footer__logo {
	flex-shrink: 0;
}

.site-footer__logo-link {
	display: block;
	text-decoration: none;
}

.site-footer__logo-img {
	display: block;
	height: 36px;
	width: auto;
	max-width: 100%;
	aspect-ratio: 478 / 55;
}

.site-footer .custom-logo-link {
	display: block;
}

.site-footer .custom-logo {
	display: block;
	height: 36px;
	width: auto;
}

.site-footer__links {
	display: flex;
	align-items: center;
	gap: 46px;
}

.site-footer__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 22px;
	color: #222;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.site-footer__link:hover {
	opacity: 0.7;
}

.site-footer__link-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
}

.site-footer__bottom {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 150px 30px;
}

.site-footer__copyright {
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-size: 10px;
	font-weight: 500;
	color: #222;
	margin: 0;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
	.site-header__inner {
		padding: 0 30px;
		gap: 20px;
	}

	.site-header__menu {
		gap: 30px;
	}

	.site-header__cta-btn {
		width: 150px;
		font-size: 16px;
	}

	.site-footer__inner {
		padding: 40px 40px 0;
	}

	.site-footer__bottom {
		padding: 15px 40px 25px;
	}
}

@media (max-width: 768px) {
	/* Mobile Header */
	.site-header__inner {
		height: 68px;
		padding: 0 20px;
	}

	.site-header__logo-img,
	.site-header .custom-logo {
		height: 28px;
	}

	.site-header__menu-toggle {
		display: flex;
	}

	.site-header__nav {
		position: fixed;
		top: 68px;
		left: 0;
		right: 0;
		background-color: #fff;
		box-shadow: var(--wp--preset--shadow--lg);
		padding: 20px;
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
		max-height: calc(100vh - 68px);
		overflow-y: auto;
	}

	.site-header__nav.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.site-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header__menu li {
		border-bottom: 1px solid #e5e7eb;
	}

	.site-header__menu li:last-child {
		border-bottom: none;
	}

	.site-header__menu a {
		padding: 16px 0;
		font-size: 16px;
	}

	.site-header__cta {
		display: none;
	}

	/* Mobile Footer */
	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		padding: 40px 20px 0;
		gap: 20px;
	}

	.site-footer__logo-img,
	.site-footer .custom-logo {
		height: 37px;
	}

	.site-footer__links {
		gap: 24px;
	}

	.site-footer__bottom {
		padding: 15px 20px 25px;
		text-align: center;
	}
}

/* ========================================
   Corporate Header (.corp-header)
   Mobile-first: 400px base → 768px+ desktop
   Figma PC: 294:14516 (1400px)
   Figma SP closed: 403:19744 (400px)
   Figma SP expanded: 322:14508 (400px)
   ======================================== */

.corp-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #fff;
}

.corp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 58px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Logo */
.corp-header__logo {
	flex-shrink: 0;
}

.corp-header__logo-link {
	display: block;
}

.corp-header__logo-img {
	display: block;
	height: 20px;
	width: auto;
	max-width: 100%;
	aspect-ratio: 478 / 55;
}

/* PC Navigation (hidden on mobile) */
.corp-header__nav {
	display: none;
}

.corp-header__menu {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 40px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.corp-header__menu li {
	margin: 0;
}

.corp-header__menu a {
	display: block;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.corp-header__menu a:hover {
	color: #6bb529;
}

/* PC CTA Buttons (hidden on mobile) */
.corp-header__cta {
	display: none;
}

.corp-header__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	height: 30px;
	padding: 0 16px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background-color: #6bb529;
	border: 1px solid #6bb529;
	border-radius: 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.corp-header__cta-btn:hover {
	background-color: #fff;
	color: #6bb529;
}

/* SP Hamburger Toggle */
.corp-header__menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	-webkit-tap-highlight-color: transparent;
}

.corp-header__menu-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
}

.corp-header__menu-icon span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #6bb529;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.corp-header__menu-toggle[aria-expanded="true"] .corp-header__menu-icon span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.corp-header__menu-toggle[aria-expanded="true"] .corp-header__menu-icon span:nth-child(2) {
	opacity: 0;
}

.corp-header__menu-toggle[aria-expanded="true"] .corp-header__menu-icon span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* SP Mobile Menu */
.corp-header__mobile-menu {
	position: fixed;
	top: 58px;
	left: 0;
	right: 0;
	background-color: #fff;
	padding: 0 20px 40px;
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
	max-height: calc(100vh - 58px);
	overflow-y: auto;
	z-index: 999;
}

.corp-header__mobile-menu.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.corp-header__mobile-nav {
	display: flex;
	flex-direction: column;
}

.corp-header__mobile-link {
	display: block;
	padding: 18px 0;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #e5e7eb;
}

.corp-header__mobile-link:first-child {
	border-top: 1px solid #e5e7eb;
}

.corp-header__mobile-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 30px;
	padding: 0;
}

.corp-header__mobile-cta .corp-header__cta-btn {
	display: flex;
	min-width: 0;
	width: 100%;
	height: 40px;
	padding: 0 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	box-sizing: border-box;
}

/* --- Corporate Header Desktop (min-width: 768px) --- */

@media (min-width: 768px) {
	.corp-header__inner {
		height: 80px;
		padding: 0 var(--corp-pad-side);
		gap: clamp(12px, 1.5vw, 24px);
	}

	.corp-header__logo-img {
		height: 34px;
	}

	.corp-header__nav {
		display: flex;
		align-items: center;
		min-width: 0;
	}

	.corp-header__cta {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.corp-header__menu-toggle {
		display: none;
	}

	.corp-header__mobile-menu {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1400px) {
	.corp-header__nav {
		flex: 1;
		min-width: 0;
		overflow: hidden;
	}

	.corp-header__menu {
		gap: clamp(10px, 1.5vw, 24px);
	}

	.corp-header__menu a {
		font-size: clamp(12px, 1.1vw, 16px);
	}

	.corp-header__cta {
		flex-shrink: 0;
	}

	.corp-header__cta-btn {
		min-width: 0;
		padding: 0 10px;
		font-size: clamp(11px, 1vw, 14px);
	}
}

/* ========================================
   Corporate Footer (.corp-footer)
   Mobile-first: 400px base → 768px+ desktop
   Figma PC: 183:8098 (1400px)
   Figma SP: 217:9173 / 194:11629 (400px)
   ======================================== */

.corp-footer {
	background-color: #f9f7ef;
}

/* --- Banner Section (White top area) --- */

.corp-footer__banners {
	background-color: #fff;
	border-radius: 20px 20px 0 0;
	padding: 40px 5% 60px;
}

.corp-footer__banners-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

.corp-footer__banner-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.corp-footer__banner-link {
	display: block;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	transition: opacity 0.3s ease;
}

.corp-footer__banner-link:hover {
	opacity: 0.85;
}

.corp-footer__banner-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 360 / 201;
	object-fit: cover;
}

.corp-footer__banner-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #333;
	line-height: 1.6;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.corp-footer__banner-label:hover {
	opacity: 0.7;
}

.corp-footer__banner-label .link-arrow__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.corp-footer__banner-label .link-arrow__icon circle {
	fill: var(--link-arrow-fill, #53bde5);
}

.corp-footer__banner-label .link-arrow__icon path {
	stroke: var(--link-arrow-stroke, #fff);
}

/* --- Back to Top Button --- */
/* Straddles the white/gray boundary: ~85% in white banner area, ~15% in gray bottom */

.corp-footer__top-btn-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	background: linear-gradient(to bottom, #fff 85%, #eaeaea 85%);
	position: relative;
	z-index: 2;
}

.corp-footer__top-btn {
	display: block;
	width: 150px;
	height: 150px;
	transition: opacity 0.3s ease;
}

.corp-footer__top-btn:hover {
	opacity: 0.8;
}

.corp-footer__top-btn-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* --- Bottom Section (gray background) --- */

.corp-footer__bottom {
	background-color: #eaeaea;
	padding: 40px 5% 30px;
}

/* Group Company Banners */
.corp-footer__group-banners {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin-bottom: 30px;
}

.corp-footer__group-banner {
	display: block;
	width: 100%;
	transition: opacity 0.3s ease;
}

.corp-footer__group-banner:hover {
	opacity: 0.85;
}

.corp-footer__group-banner-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 360 / 64;
	object-fit: contain;
}

/* Footer Info (Logo + Links + Copyright) */
.corp-footer__info {
	text-align: center;
	padding-top: 20px;
}

.corp-footer__logo {
	margin-bottom: 16px;
}

.corp-footer__logo-link {
	display: inline-block;
}

.corp-footer__logo-img {
	display: block;
	height: clamp(40px, 8vw, 60px);
	width: auto;
	max-width: 100%;
	aspect-ratio: 478 / 55;
	margin: 0 auto;
}

.corp-footer__meta {
	text-align: center;
}

.corp-footer__links {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 16px;
}

.corp-footer__link {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.corp-footer__link:hover {
	opacity: 0.7;
}

.corp-footer__copyright {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 10px;
	font-weight: 400;
	color: #333;
	line-height: normal;
	margin: 0;
}

/* --- Corporate Footer Desktop (min-width: 768px) --- */

@media (min-width: 768px) {
	.corp-footer__banners {
		border-radius: 40px 40px 0 0;
		padding: 100px 150px 90px;
	}

	.corp-footer__banners-inner {
		flex-direction: row;
		justify-content: center;
		gap: 19px;
		max-width: 1100px;
		margin: 0 auto;
	}

	.corp-footer__banner-item {
		max-width: 353px;
		flex: 1;
		gap: 20px;
	}

	.corp-footer__banner-img {
		aspect-ratio: 353 / 196;
	}

	.corp-footer__banner-label {
		font-size: clamp(16px, 1.6vw, 24px);
		white-space: nowrap;
	}

	.corp-footer__top-btn-wrap {
		padding: 0;
		background: linear-gradient(to bottom, #fff 85%, #eaeaea 85%);
	}

	.corp-footer__top-btn {
		width: 189px;
		height: 189px;
	}

	.corp-footer__bottom {
		padding: 50px 150px 40px;
	}

	.corp-footer__group-banners {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
		max-width: 1100px;
		margin: 0 auto 40px;
	}

	.corp-footer__group-banner-img {
		aspect-ratio: 340 / 60;
	}

	.corp-footer__info {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		max-width: 1100px;
		margin: 0 auto;
		padding-top: 0;
		text-align: left;
	}

	.corp-footer__logo {
		margin-bottom: 0;
	}

	.corp-footer__logo-img {
		margin: 0;
	}

	.corp-footer__meta {
		text-align: right;
	}

	.corp-footer__links {
		justify-content: flex-end;
		margin-bottom: 8px;
		gap: 32px;
	}

	.corp-footer__copyright {
		font-size: 14px;
	}
}
