/*
Theme Name: 有限会社エス・エス建材
Theme URI: 
Description: 有限会社エス・エス建材のWordPressテーマです。
Author: Gemini CLI
Author URI: 
Version: 1.0.0
*/

/* Global Styles */
:root {
	--color-navy: #0a3563; /* より暗く落ち着いた深いブルーに変更 */
	--color-navy-light: #e1e9f2;
	--color-gold: #c29500; /* 白背景でも見やすいように、やや暗く落ち着いた黄色に変更 */
	--color-text: #333333;
	--color-text-light: #666666;
	--color-bg-gray: #f9f9f9; /* 明るいグレー */
	--color-white: #ffffff;
	--font-main: "Noto Sans JP", sans-serif; /* ゴシック体に変更 */
	--easing: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	color: var(--color-text);
	line-height: 1.8;
	background-color: var(--color-white);
	letter-spacing: 0.05em; /* 明朝体の美しさを引き出す */
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
	transition: all 0.3s var(--easing);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Typography & Utilities */
.section {
	padding: 100px 0;
}

.section__title {
	font-size: 2rem;
	color: var(--color-text);
	text-align: center;
	margin-bottom: 60px;
	font-weight: 700;
	position: relative;
	padding-bottom: 15px;
}

.section__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--color-navy);
}

.section__title--left {
	text-align: left;
}

.section__title--left::after {
	left: 0;
	transform: none;
}

.section__title--mt {
	margin-top: 80px;
}

.btn {
	display: inline-block;
	padding: 15px 40px;
	background-color: var(--color-navy);
	color: var(--color-white);
	font-weight: 700;
	border: 1px solid var(--color-navy);
	cursor: pointer;
	text-decoration: none !important;
}

.btn:hover {
	background-color: var(--color-white);
	color: var(--color-navy);
}

.btn--header {
	padding: 10px 20px;
	font-size: 0.9rem;
}

.btn--large {
	padding: 20px 80px;
	font-size: 1.2rem;
}

.btn--primary {
	background-color: var(--color-navy) !important;
	color: var(--color-white) !important;
	border: 1px solid var(--color-navy) !important;
}

.btn--primary:hover {
	background-color: var(--color-white) !important;
	color: var(--color-navy) !important;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(10, 53, 99, 0.95); /* より暗い青背景に（--color-navyに合わせる） */
	color: var(--color-white);
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	/* 下線は削除 */
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
	width: 90%;
	max-width: 1400px;
	margin: 0 auto;
}

.header__logo a {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-white); /* 青背景に合わせてテキストを白に */
}

/* Mobile Menu Button */
.header__hamburger {
	display: block;
	width: 30px;
	height: 25px;
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	z-index: 1001;
}

.header__hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-white); /* メニュー線を白に */
	position: absolute;
	left: 0;
	transition: 0.3s;
}

.header__hamburger span:nth-child(1) {
	top: 0;
}
.header__hamburger span:nth-child(2) {
	top: 11px;
}
.header__hamburger span:nth-child(3) {
	bottom: 0;
}

.header__hamburger.is-active span:nth-child(1) {
	top: 11px;
	transform: rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
	opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
	bottom: 12px;
	transform: rotate(-45deg);
}

/* Mobile Nav */
.header__nav {
	display: none;
	position: absolute;
	top: 80px;
	left: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.98); /* 白ベース */
	padding: 20px;
	text-align: center;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.header__nav.is-active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 768px) {
	.header__nav,
	.header__nav.is-active {
		display: block;
		position: static;
		width: auto;
		background-color: transparent;
		padding: 0;
		text-align: left;
		border-top: none;
		animation: none;
	}
	.header__list {
		display: flex;
		align-items: center;
		gap: 30px;
	}
	.header__item a {
		font-size: 0.95rem;
		font-weight: 500;
		position: relative;
	}
	.header__item a:not(.btn)::after {
		content: "";
		position: absolute;
		bottom: -5px;
		left: 0;
		width: 0;
		height: 2px;
		background-color: var(--color-navy); /* アクセントを下線のブルーに */
		transition: width 0.3s;
	}
	.header__item a:hover::after {
		width: 100%;
	}
	.header__hamburger {
		display: none;
	}
}

/* Textured Backgrounds */
.section {
	position: relative;
	z-index: 1;
	overflow: hidden; /* Ensure background doesn't bleed */
}

.section::before {
	display: none; /* テクスチャ背景をすべて削除 */
}

/* Light Sections (Services, Message) */
.services,
.message {
	background-color: var(--color-bg-gray);
	color: var(--color-text);
}

/* Dark Sections (About, Company, Recruit) - Matching Reference */
.about,
.company,
.recruit {
	background-color: var(--color-white);
}

.about .section__title,
.company .section__title,
.recruit .section__title {
	color: var(--color-navy);
}

.about .section__title::after,
.company .section__title::after,
.recruit .section__title::after {
	background-color: var(--color-gold); /* Gold accent on dark */
}

/* Hero Slider */
.hero {
	height: 100vh;
	min-height: 600px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	background-color: var(--color-navy);
}

.hero__slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 2s ease-in-out; /* Removed zoom effect */
}

.hero__slide.is-active {
	opacity: 1;
}

/* News Section */
.news {
	background-color: var(--color-bg-gray);
}

.news__wrapper {
	max-width: 900px;
	margin: 0 auto;
}

.news__featured {
	background-color: var(--color-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #eee;
	padding: 30px;
}

.news__header {
	margin-bottom: 30px;
	border-bottom: 2px solid var(--color-gold);
	padding-bottom: 15px;
}

.news__main-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.news__img-box {
	width: 100%;
	height: 300px;
	background-color: var(--color-navy);
	background-size: cover;
	background-position: center;
}

.news__body {
	flex: 1;
	font-size: 0.95rem;
	line-height: 2;
	color: var(--color-text);
}

.news__date {
	display: block;
	font-size: 0.9rem;
	color: var(--color-gold);
	font-weight: 700;
	margin-bottom: 5px;
}

.news__item-title {
	font-size: 1.4rem;
	color: var(--color-navy);
	font-weight: 700;
}

@media (min-width: 768px) {
	.news__featured {
		padding: 50px;
	}
	.news__main-content {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}
	.news__img-box {
		width: 40%;
		height: auto;
		min-height: 300px;
	}
}

/* Enhanced Heavy Shadows */
.header {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.about__img,
.message__img,
.recruit__img {
	box-shadow: 10px 10px 0 rgba(0, 86, 179, 0.1); /* ブルー系の軽い影に */
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero__content {
	position: relative;
	z-index: 10;
	color: var(--color-white);
	padding: 0 20px;
	/* Text readability without overlay */
	text-shadow:
		0 4px 10px rgba(0, 0, 0, 0.6),
		0 0 5px rgba(0, 0, 0, 0.3);
}

.hero__title {
	font-size: 3rem;
	font-weight: 900;
	margin-bottom: 30px;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	letter-spacing: 0.1em;
}

.hero__subtitle {
	font-size: 1.2rem;
	font-weight: 500;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* About */
.about__container {
	display: flex;
	flex-direction: column;
	gap: 50px;
	position: relative;
}

.section__text {
	font-size: 1.1rem;
	line-height: 2.2;
	text-align: center;
}

.about__images {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.about__img {
	background-color: #ddd;
	width: 540px;
	height: 320px;
	background-size: cover;
	background-position: center;
}

/* Message */
.message__container {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.message__img-wrapper {
	flex: 0 0 320px; /* Adjusted to 320px as requested */
	display: flex;
	justify-content: center;
}

.message__img {
	max-width: 480px;
	width: 100%;
	height: auto;
	display: block;
}

.message__content {
	flex: 1; /* Take the remaining space */
}

.message__text {
	margin-bottom: 30px;
}

.message__signature-box {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	text-align: right;
}

.message__company {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: 5px;
}

.message__signature {
	font-size: 1.1rem;
	font-weight: 700;
}

.message__name {
	font-size: 1.8rem;
	margin-left: 15px;
	letter-spacing: 0.2em;
	font-family: var(--font-main);
	padding-bottom: 5px;
}

@media (min-width: 900px) {
	.message__container {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px; /* Increased to 40px as requested */
		justify-content: center;
	}
}

/* Company */
.company__table-wrapper {
	max-width: 1160px;
	margin: 0 auto;
	border-top: 2px solid var(--color-navy); /* ブルーラインに */
}

.company__table {
	width: 100%;
	border-collapse: collapse;
}

.company__table th,
.company__table td {
	padding: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* ダークなボーダー */
	text-align: left;
}

.company__business-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.company__business-list li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 10px;
}

.company__business-list li::before {
	content: counter(item) ". ";
	counter-increment: item;
	position: absolute;
	left: 0;
	color: var(--color-gold);
	font-weight: 700;
}

.company__business-list {
	counter-reset: item;
}

.small-info {
	display: block;
	font-size: 0.85rem;
	opacity: 0.8;
	margin-top: 5px;
}

.company__table th {
	background-color: var(--color-navy-light); /* 薄いブルーに */
	width: 120px;
	font-weight: 700;
	color: var(--color-navy); /* フォントカラーをブルーに */
	white-space: nowrap;
}

.company__map {
	margin-top: 20px;
	width: 100%;
	position: relative;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
}

.company__map iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* Sub-section title (used for '当社の強み' etc. on light backgrounds) */
.section__subtitle {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-navy);
	margin-top: 60px;
	margin-bottom: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	letter-spacing: 0.05em;
}

.section__subtitle::before,
.section__subtitle::after {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	background-color: var(--color-navy);
	opacity: 0.4;
}

/* Services */
.services__main {
	text-align: center;
	margin-bottom: 60px;
	background: var(--color-white);
	padding: 40px;
}

.services__subtitle {
	font-size: 1.5rem;
	color: var(--color-navy);
	margin-bottom: 40px;
}

.services__list {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	font-weight: 700;
}

.services__list--column {
	flex-direction: column;
	align-items: center;
	max-width: 800px;
	margin: 0 auto;
	font-weight: 400;
	gap: 20px;
}

.services__list--column li {
	align-items: flex-start;
	width: 100%;
}

.services__list--large li {
	font-size: 1.4rem;
	font-weight: 400;
	gap: 15px;
}

.services__list--large .service-icon {
	width: 56px;
	height: 56px;
	padding: 12px;
}

.services__list-text {
	text-align: left;
	line-height: 1.8;
}

.service-icon .material-symbols-outlined {
	font-size: 28px;
}

.services__list li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.service-icon {
	color: var(--color-gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: rgba(14, 42, 71, 0.05);
	border-radius: 50%;
	padding: 10px;
}

.service-icon svg {
	width: 100%;
	height: 100%;
}

.features {
	display: flex;
	flex-direction: column;
	gap: 80px;
	padding: 20px 0;
}

.feature {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: visible; /* Allow number to protrude */
}

.feature__number {
	position: absolute;
	top: -40px;
	left: -20px;
	font-size: 8rem;
	font-weight: 900;
	color: transparent;
	-webkit-text-stroke: 2px #888;
	line-height: 1;
	font-family: var(--font-main);
	letter-spacing: -0.02em;
	pointer-events: none;
	z-index: 3;
	mix-blend-mode: difference; /* 背景に合わせて色が反転し、確実に見えるように */
	opacity: 0.5; /* 全体の不透明度で強さを調整（白背景では50%のグレーに見える） */
}

.feature--reverse .feature__number {
	left: auto;
	right: -20px; /* Protrude right for reversed items */
}

.feature__img-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.feature__img {
	height: 220px;
	background-color: #f5f5f5;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s ease;
}

.feature:hover .feature__img img {
	transform: scale(1.06);
}

.feature__content {
	position: relative;
	z-index: 2;
	background: var(--color-white);
	padding: 35px 35px 35px 40px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	border-left: 4px solid var(--color-gold);
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.feature__title {
	font-size: 1.4rem;
	color: var(--color-navy);
	margin-bottom: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.feature__title::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background-color: var(--color-gold);
	border-radius: 50%;
	margin-right: 12px;
	vertical-align: middle;
	flex-shrink: 0;
}

.feature__desc {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--color-text-light);
}

@media (min-width: 768px) {
	.feature {
		flex-direction: row;
		align-items: stretch;
		gap: 0;
	}
	.feature__img-wrapper {
		width: 35%; /* Narrower image, more room for text */
		flex-shrink: 0;
	}
	.feature__img {
		height: 100%;
		min-height: 220px;
		max-height: 220px;
	}
	.feature__content {
		width: 65%; /* Wider text area */
		margin-top: 30px;
		margin-bottom: 30px;
		margin-left: -30px;
	}
	.feature--reverse {
		flex-direction: row-reverse;
	}
	.feature--reverse .feature__content {
		margin-left: 0;
		margin-right: -30px; /* Overlap from the other side */
		border-left: none;
		border-right: 4px solid var(--color-gold);
	}
}

.materials {
	margin-top: 100px;
	text-align: center;
}

.materials__title {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: var(--color-navy);
}

.materials__list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
}

.materials__item {
	background-color: var(--color-white);
	padding: 10px 25px;
	border: 1px solid var(--color-navy);
	color: var(--color-navy);
	font-weight: 700;
}

/* Recruit */
.recruit {
	/* Background handled in global section */
	text-align: center;
}

.recruit__lead {
	font-size: 1.1rem;
	margin-bottom: 50px;
}

.recruit__title-box {
	text-align: center;
	margin-bottom: 50px; /* Increased gap */
}

.recruit__title-en {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-gold);
	letter-spacing: 0.1em;
	margin-bottom: 10px;
	font-family: var(--font-main);
	text-transform: uppercase;
}

.recruit__subtitle {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--color-navy); /* 白背景用にダーク文字色へ */
	position: relative;
	display: inline-block;
}

.recruit__subtitle::after {
	content: "";
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 3px;
	background-color: var(--color-gold);
}

.recruit__text {
	/* ... existing styles or adjusted ... */
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 50px;
	text-align: center;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.daily-flow-header {
	margin-top: 80px;
	text-align: center;
}

.daily-flow-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-navy); /* 文字色をネイビーに変更 */
	margin-bottom: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.daily-flow-title::before,
.daily-flow-title::after {
	content: "";
	display: block;
	width: 30px;
	height: 1px;
	background-color: var(--color-navy); /* ラインもネイビーに */
	opacity: 0.4;
}

.daily-flow {
	max-width: 1160px;
	margin: 0 auto 60px;
	position: relative;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
}

/* Vertical line */
.daily-flow::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 24px; /* Center of the 50px circle (width:50px -> center is 25px, minus 1px for line width center) */
	width: 2px;
	background-color: var(--color-navy-light); /* 淡いブルーのライン */
	z-index: 1;
}

@media (min-width: 768px) {
	.daily-flow::before {
		left: 50%;
		transform: translateX(-1px); /* line is 2px wide, so -1px centers it properly */
	}
}

.flow-item {
	display: flex;
	align-items: flex-start;
	position: relative;
	z-index: 2;
	margin-bottom: 40px;
	width: 100%;
}

.flow-item:last-child {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.flow-item {
		width: 50%;
	}
	.flow-item:nth-child(odd) {
		left: 0;
		justify-content: flex-end;
		padding-right: 40px;
	}
	.flow-item:nth-child(even) {
		left: 50%;
		justify-content: flex-start;
		padding-left: 40px;
	}
}

.flow-item__num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background-color: var(--color-navy);
	color: var(--color-white);
	border-radius: 50%;
	font-size: 1.2rem;
	font-weight: 700;
	font-family: var(--font-main);
	line-height: 1;
	box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
}

@media (min-width: 768px) {
	.flow-item__num {
		left: auto;
	}
	.flow-item:nth-child(odd) .flow-item__num {
		right: -25px;
	}
	.flow-item:nth-child(even) .flow-item__num {
		left: -25px;
	}
}

.flow-item__content {
	background-color: var(--color-white); /* 白背景に */
	padding: 25px;
	border-radius: 8px; /* 角丸を追加 */
	border: 1px solid rgba(0, 0, 0, 0.05); /* 薄いグレーの枠に */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 影を柔らかく */
	margin-left: 70px;
	flex-grow: 1;
}

@media (min-width: 768px) {
	.flow-item__content {
		margin-left: 0;
		width: 100%;
		max-width: 540px;
	}
	.flow-item .flow-item__content {
		text-align: center;
	}
}

.flow-item__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--color-navy);
}

.flow-item__text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--color-text); /* 白背景用にテキスト色をダークへ */
}

.recruit__table-wrapper {
	max-width: 11600px;
	margin: 0 auto 50px;
	border-top: 2px solid var(--color-navy); /* ブルーのトップボーダーに */
}

.recruit__table {
	width: 100%;
	border-collapse: collapse;
}

.recruit__table th,
.recruit__table td {
	padding: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* ダークなボーダー */
	text-align: left;
}

.recruit__table th {
	background-color: var(--color-navy-light); /* 薄いブルーに */
	color: var(--color-navy); /* ダークブルーに変更 */
	width: 140px; /* 少し幅を広げる */
	font-weight: 700;
	white-space: nowrap;
	vertical-align: middle;
}

.recruit__flow-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.recruit__flow-list li {
	margin-bottom: 20px;
}

.recruit__flow-list li:last-child {
	margin-bottom: 0;
}

.recruit__flow-list b {
	display: block;
	color: var(--color-navy);
	font-size: 1rem;
	margin-bottom: 5px;
}

.recruit__table td {
	line-height: 1.8;
}

.recruit__work-flow {
	margin-top: 15px;
}

.recruit__work-flow-title {
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-navy-light);
	font-size: 1rem;
}

.recruit__work-flow dl dt {
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: 5px;
	font-size: 0.95rem;
}

.recruit__work-flow dl dd {
	margin-bottom: 15px;
	font-size: 0.9rem;
	color: var(--color-text);
	padding-left: 1em;
}

.recruit__work-flow dl dd:last-child {
	margin-bottom: 0;
}

.recruit__action {
	margin-top: 50px;
}

.recruit__action .btn {
	background-color: var(--color-navy);
	color: var(--color-white);
	border: 1px solid var(--color-navy);
}

.recruit__action .btn:hover {
	background-color: var(--color-white);
	color: var(--color-navy);
	border-color: var(--color-navy);
}

/* Contact */
.contact {
	background-color: #ddd; /* Placeholder for image bg */
	background-image: url("images/contact_back.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	position: relative;
	color: var(--color-text);
}

.contact::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent; /* Chosen Glassmorphism style */
}

.contact__glass-card {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 60px 40px;
	position: relative;
	z-index: 10;
	/* max-width: 900px; */
	margin: 0 auto;
}

.contact .container {
	position: relative;
	z-index: 10;
	text-align: center;
}

.contact__desc {
	font-size: 1.1rem;
	margin-bottom: 40px;
}

.contact__buttons {
	display: flex;
	flex-direction: column;
	gap: 20px;
	justify-content: center;
}

.contact__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	background-color: var(--color-white);
	padding: 20px;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	font-size: 1.1rem;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact__btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 15px rgba(0, 86, 179, 0.15); /* ブルーの影に */
}

@media (min-width: 768px) {
	.contact__buttons {
		flex-direction: row;
	}
}

/* Footer Banner (Recruitment) */
.footer__banner {
	width: 100%;
	max-width: 740px;
	height: 180px;
	margin-bottom: 40px;
	background-color: var(--color-navy);
	background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url("images/hero.jpg");
	background-size: cover;
	background-position: center;
	border-left: 4px solid var(--color-gold); /* これもオレンジに */
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition:
		transform 0.3s,
		box-shadow 0.3s;
	display: flex;
}

.footer__banner:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	border-color: rgba(197, 160, 89, 0.8);
}

.footer__banner-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: var(--color-text);
}

.footer__banner-content {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	padding: 0 40px;
	position: relative;
}

.footer__banner-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background-color: rgba(0, 0, 0, 0.75);
	padding: 15px 25px;
	border-radius: 4px;
}

.footer__banner-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-gold);
	letter-spacing: 0.1em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer__banner-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--color-white);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer__banner-arrow {
	position: absolute;
	right: 30px;
	color: var(--color-gold);
	font-weight: 900;
	font-size: 1.5rem;
	transition: transform 0.3s;
}

.footer__banner:hover .footer__banner-arrow {
	transform: translateX(10px);
}

.sp-only {
	display: none;
}

@media (max-width: 768px) {
	.footer__banner {
		height: auto;
		min-height: 120px;
		margin-bottom: 30px;
		padding: 20px 0;
	}
	.footer__banner-content {
		padding: 0 20px;
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
	.footer__banner-title {
		font-size: 1.1rem;
	}
	.footer__banner-text {
		font-size: 0.85rem;
	}
	.footer__banner-arrow {
		display: none;
	}
	.sp-only {
		display: inline;
	}
}

/* Footer */
.footer {
	background-color: var(--color-navy);
	color: var(--color-white);
	padding-top: 60px;
	position: relative;
}

.footer__container {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-bottom: 40px;
}

.footer__logo-text h4 {
	font-size: 1.2rem;
	margin-bottom: 10px;
}

.footer__logo-text p {
	font-size: 0.9rem;
	opacity: 0.8;
}

.footer__nav {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

@media (min-width: 768px) {
	.footer__container {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}
	.footer__links {
		width: 100%;
		max-width: 740px;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}
	.footer__nav {
		flex-direction: row;
		gap: 30px;
	}
}

.footer__copyright {
	background-color: rgba(0, 0, 0, 0.2);
	padding: 20px 0;
	text-align: center;
	font-size: 0.8rem;
}

.floating-recruit-wrapper {
	position: fixed;
	top: 50%; /* Exactly half way down the window */
	right: 0;
	width: 0;
	height: 0;
	z-index: 100;
}

@keyframes recruit-pulse {
	0% {
		box-shadow:
			0 -4px 10px rgba(0, 0, 0, 0.1),
			0 0 0 0 rgba(10, 53, 99, 0.3);
	}
	70% {
		box-shadow:
			0 -4px 10px rgba(0, 0, 0, 0.1),
			-2px 0 15px 10px rgba(10, 53, 99, 0);
	}
	100% {
		box-shadow:
			0 -4px 10px rgba(0, 0, 0, 0.1),
			0 0 0 0 rgba(10, 53, 99, 0);
	}
}

.floating-recruit {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: var(--color-white); /* 白ベース */
	color: var(--color-navy); /* 青文字 */
	border: 2px solid var(--color-navy); /* 青ボーダー */
	border-bottom: none;
	padding: 15px 30px;
	font-size: 1.05rem;
	font-weight: 900;
	text-decoration: none;
	letter-spacing: 0.15em;
	box-shadow: 0 -4px 15px rgba(10, 53, 99, 0.15); /* 影も青みがかった色に変更 */
	transform-origin: bottom right;
	transform: rotate(-90deg) translateX(50%) translateY(1px);
	white-space: nowrap;
	transition: all 0.3s ease;
	border-radius: 8px 8px 0 0;
	animation: recruit-pulse 2s infinite;
}

.floating-recruit::before {
	content: "▶";
	font-size: 0.8rem;
	transform: rotate(90deg);
	display: inline-block;
}

.floating-recruit:hover {
	background-color: var(--color-navy);
	color: var(--color-white);
	border-color: var(--color-navy);
}

/* Contact Section Enhancements */
.contact__buttons {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 50px;
	flex-wrap: wrap;
}

.contact__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 40px;
	background: var(--color-white);
	color: var(--color-navy);
	border: 1px solid rgba(14, 42, 71, 0.1);
	border-radius: 0;
	text-decoration: none;
	width: 340px;
	transition: all 0.3s var(--easing);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact__btn:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(14, 42, 71, 0.12);
	border-color: var(--color-gold);
}

.contact__icon {
	font-size: 3rem !important; /* Material symbol size */
	color: var(--color-gold);
	transition: transform 0.3s var(--easing);
}

.contact__btn:hover .contact__icon {
	transform: scale(1.1);
}

.contact__btn-text {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

@media (max-width: 768px) {
	.contact__buttons {
		gap: 20px;
	}
	.contact__btn {
		width: 100%;
		padding: 30px;
	}
}

.scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background-color: var(--color-navy); /* Solid background for visibility */
	color: var(--color-white); /* 矢印アイコンを白に変更 */
	border: 1px solid var(--color-white);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	border-radius: 4px;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition:
		background-color 0.3s,
		color 0.3s,
		transform 0.3s,
		opacity 0.3s,
		visibility 0.3s;
	cursor: pointer;
	text-decoration: none;
}

.scroll-top::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(-45deg);
	margin-top: 8px;
	transition: transform 0.3s;
}

.scroll-top::after {
	content: "TOP";
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	font-family: var(--font-main);
}

.scroll-top:hover {
	background-color: var(--color-navy-light); /* ブルーの薄い色に */
	color: var(--color-navy);
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Multi-Step Progress Bar */
.form-steps {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-bottom: 40px;
	padding: 0;
	list-style: none;
}

/* CF7が自動挿入するタグがレイアウトを壊さないように設定 */
.form-steps br {
	display: none !important;
}
.form-steps p {
	display: contents !important; /* タグ自体のレイアウトを無効化し、子要素(step)を直接flexの子にする */
}

.form-steps .step {
	flex: 1;
	max-width: 160px;
	height: 44px;
	display: flex !important; /* 確実に表示 */
	align-items: center;
	justify-content: center;
	background-color: #eee;
	color: #999;
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
}

.form-steps .step.is-active {
	background-color: var(--color-navy);
	color: var(--color-white);
}

@media (max-width: 480px) {
	.form-steps {
		gap: 5px;
	}
	.form-steps .step {
		font-size: 0.75rem;
		height: 36px;
	}
}

/* Confirmation Screen Styles */
.confirm-notice {
	text-align: center;
	margin-bottom: 30px;
	color: var(--color-text-light);
}

.confirm-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 40px;
	border-top: 2px solid var(--color-navy);
}

.confirm-table th,
.confirm-table td {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.confirm-table th {
	background-color: var(--color-bg-gray);
	width: 30%;
	color: var(--color-navy);
	font-weight: 700;
}

.confirm-buttons {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
	position: relative; /* スピナーの基準点 */
}

/* CF7が挿入するラッパーを無効化してボタンを直接並べる */
.confirm-buttons p,
.confirm-buttons span.wpcf7-form-control-wrap {
	display: contents !important;
}

/* スピナーがレイアウトを崩さないように調整 */
.wpcf7-spinner {
	position: absolute;
	right: -40px; /* ボタンの外側に配置 */
	margin: 0 !important;
}

.btn-back,
.entry-form .wpcf7-submit {
	height: 60px;
	padding: 0 40px !important;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	line-height: 1;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	margin: 0 !important;
	min-width: 200px;
	position: relative;
}

.btn-back {
	background-color: #999;
	color: var(--color-white);
	border: 1px solid #999;
}

.btn-back:hover {
	background-color: #666;
	border-color: #666;
}

.entry-form .wpcf7-submit {
	background-color: var(--color-navy);
	color: var(--color-white);
	border: 1px solid var(--color-navy);
}

@media (max-width: 480px) {
	.confirm-buttons {
		flex-direction: column !important;
		gap: 10px;
	}
	.btn-back,
	.entry-form .wpcf7-submit {
		width: 100%;
		min-width: none;
	}
}

/* File Upload Styling */
.custom-file-upload {
	background-color: var(--color-bg-gray);
	padding: 20px;
	border: 2px dashed #ddd;
	text-align: center;
	transition: all 0.3s;
}

.custom-file-upload:hover {
	border-color: var(--color-navy);
	background-color: var(--color-navy-light);
}

.custom-file-upload input[type="file"] {
	font-family: var(--font-main);
	cursor: pointer;
}

/* Contact Form 7 Custom Styles */
.entry-form {
	max-width: 800px;
	margin: 0 auto;
	text-align: left;
}

.form-row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.form-row .form-group {
	flex: 1;
	min-width: 280px;
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--color-navy);
	font-size: 0.95rem;
}

.tag-required {
	background-color: #e74c3c;
	color: #fff;
	font-size: 0.7rem;
	padding: 2px 8px;
	border-radius: 2px;
	margin-left: 10px;
	vertical-align: middle;
}

.entry-form input[type="text"],
.entry-form input[type="email"],
.entry-form input[type="tel"],
.entry-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	background-color: #fff;
	font-size: 1rem;
	font-family: var(--font-main);
	transition: all 0.3s;
}

.entry-form input:focus,
.entry-form textarea:focus {
	outline: none;
	border-color: var(--color-navy);
	box-shadow: 0 0 0 3px rgba(10, 53, 99, 0.1);
}

.entry-form .wpcf7-list-item {
	margin-left: 0;
	margin-right: 20px;
}

.entry-form .wpcf7-list-item-label {
	font-weight: 400;
	color: var(--color-text);
}

.form-submit {
	text-align: center;
	margin-top: 40px;
}

.entry-form .wpcf7-submit {
	background-color: var(--color-navy);
	color: var(--color-white);
	border: 1px solid var(--color-navy);
	padding: 18px 80px;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
}

.entry-form .wpcf7-submit:hover {
	background-color: var(--color-white);
	color: var(--color-navy);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Response message styling */
.wpcf7-response-output {
	margin-top: 20px !important;
	padding: 15px !important;
	border-radius: 4px;
	font-size: 0.9rem;
}

/* Privacy Policy Styles */
.privacy-content h2 {
	font-size: 1.5rem;
	color: var(--color-navy);
	margin-top: 80px;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--color-navy-light);
	position: relative;
	font-weight: 700;
}

.privacy-content h2::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background-color: var(--color-gold);
}

.privacy-content p {
	margin-bottom: 1.5em;
	text-align: justify;
}

.privacy-content ul {
	margin: 30px 0 40px;
	padding: 25px 30px;
	background-color: var(--color-bg-gray);
	border-radius: 4px;
	list-style: none;
}

.privacy-content li {
	margin-bottom: 15px;
	padding-left: 1.5em;
	position: relative;
}

.privacy-content li:last-child {
	margin-bottom: 0;
}

.privacy-content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 8px;
	height: 8px;
	background-color: var(--color-gold);
	border-radius: 50%;
}

.privacy-content hr {
	margin: 80px 0 60px;
	border: 0;
	border-top: 1px solid #ddd;
}

.privacy-content .has-text-align-right {
	margin-top: 60px;
	line-height: 2.2;
	font-weight: 500;
}

.privacy-content a {
	color: var(--color-navy);
	text-decoration: underline;
	font-weight: 700;
	transition: opacity 0.3s;
}

.privacy-content a:hover {
	opacity: 0.7;
	color: var(--color-gold);
}

@media (max-width: 768px) {
	.privacy-content {
		padding: 20px 0;
	}
	.privacy-content h2 {
		font-size: 1.3rem;
		margin-top: 60px;
		margin-bottom: 20px;
	}
	.privacy-content ul {
		padding: 20px;
	}
}

.entry-content {
	line-height: 2.2;
	color: var(--color-text);
	text-align: justify;
}

.entry-content h2 {
	font-size: 1.4rem;
	color: var(--color-navy);
	margin-top: 60px;
	margin-bottom: 25px;
	padding-left: 15px;
	border-left: 4px solid var(--color-gold);
	font-weight: 700;
	line-height: 1.4;
}

.entry-content p {
	margin-bottom: 2em;
}

.entry-content ul {
	margin-bottom: 3em;
	padding-left: 1.5em;
	list-style: disc;
}

.entry-content li {
	margin-bottom: 10px;
}

.entry-content hr {
	margin: 60px 0;
	border: 0;
	border-top: 1px solid #eee;
}

.entry-content .has-text-align-right {
	margin-top: 40px;
	line-height: 2;
}

.entry-content a {
	color: var(--color-navy);
	text-decoration: underline;
	font-weight: 700;
}

.entry-content a:hover {
	color: var(--color-gold);
}

/* Scroll Animations */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}
