@charset "UTF-8";

/* カラーパレット */
:root {
	--main-color: #121A75; /* ロゴの深いブルー系 */
	--accent-color: #f47a1f; /* オレンジ系アクセント */
	--text-color: #333;
	--bg-light: #f9f9f9;
	--font-family: "Yu Gothic UI", "YuGothR", sans-serif;
	--mincho-font: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", "MS Mincho", serif;
}

/* ベース */
body {
	margin: 0;
	font-family: var(--font-family);
	color: var(--text-color);
	background-color: #fff;
	line-height: 1.7;
	padding-top: 77px; /* 固定ヘッダー分の余白 */
}

/* =========================
   ヘッダー・グローバルナビ
   ========================= */

header {
	background-color: var(--main-color);
	color: #fff;
	padding: 10px 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 90%;
	margin: 0 auto;
}

.logo-text {
	height: 50px;
}

/* 通常ナビ（PC） */
nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

nav li {
	margin-left: 20px;
}

nav a {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
}

nav a.active,
nav a:hover {
	color: var(--accent-color);
}

/* ハンバーガーボタン（スマホ用） */
.menu-toggle {
	display: none; /* PC では非表示、スマホで表示 */
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.8);
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
	margin-left: auto;
}

.menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #fff;
	margin: 3px 0;
}

/* ===============
   ヒーローエリア
   =============== */

.hero,
.hero_business {
	position: relative;
	width: 100%;
}

.pageHero {
	position: relative;
	width: 100%;
}

.hero img {
	width: 100%;
	height: auto;
	display: block;
}

.hero_business img {
	width: 100%;
	height: auto;
	display: block;
}

.pageHero img {
	width: 100%;
	height: auto;
	display: block;
}

.hero-text {
	position: absolute;
	top: 80%;
	left: 2%;
	transform: translateY(-50%);
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
	padding: 20px 40px;
	border-left: 5px solid var(--accent-color);
	box-sizing: border-box;
	width: 80%; /* ヒーローの横幅の約半分を使用 */
	max-width: 740px; /* 横幅が広すぎる画面での上限 */
}

.hero-text h1 {
	font-size: 2.7rem;
	margin: 0 0 10px;
}

.hero-text p {
	font-size: 1.5rem;
	margin: 0;
}

/* =========
   セクション
   ========= */

section {
	padding: 80px 0;
}

h2 {
	text-align: center;
	color: var(--main-color);
	margin-bottom: 40px;
}

/* 私たちの強み（アイコン） */

.icons {
	display: flex;
	justify-content: center;
	gap: 40px;
}

.icon-item {
	text-align: center;
}

.icon-item img {
	height: 133px;
}

/* 下部3セクション（会社概要／事業所・センター／採用情報） */
.content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80%;
	margin: 0 auto;
	gap: 40px;
}

.content.reverse {
	flex-direction: row-reverse;
}

.content img {
	width: 26%;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.careers {
	--careers-img-height: 235px;
	--careers-img-pos-y: 30%;

	/* 画像の見え方（必要に応じて cover / contain を切替） */
	--careers-img-fit: cover;
	--careers-img-position: center;

	/* 画像/テキストの並び（0=左,1=右） */
	--careers-img-order: 0;
	--careers-text-order: 1;
	/* 数値を増やすほど「下に」移動します */
	--careers-img-offset-y: 0;
}

/* 画像を右側にしたい場合：<section class="careers is-img-right"> */
.careers.is-img-right {
	--careers-img-order: 1;
	--careers-text-order: 0;
}

/* 画像を上にしたい場合：<section class="careers is-img-top"> */
.careers.is-img-top .content {
	flex-direction: column;
}

.careers .content > img {
	height: var(--careers-img-height);
	object-fit: var(--careers-img-fit);
	object-position: 50% var(--careers-img-pos-y);
	order: var(--careers-img-order);
	transform: translateY(var(--careers-img-offset-y));
}

.careers .content > .text {
	order: var(--careers-text-order);
}
.text {
	width: 50%;
}

.text h2 {
	color: var(--main-color);
	font-size: 2.7rem;
}

.text p {
	margin-bottom: 20px;
	font-size: 1.3rem;
}

/* ボタン */

.btn {
	background-color: var(--accent-color);
	color: #fff;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 5px;
	display: inline-block;
}

.btn:hover {
	background-color: #ff8b33;
}

/* ======
   フッター
   ====== */

footer {
	background-color: var(--main-color);
	color: #fff;
	text-align: center;
	padding: 20px 0;
}

/* フッター内リンクを目立たせる */
footer a {
	color: var(--accent-color);
	font-weight: bold;
	text-decoration: underline;
}

footer a:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.footer-contact {
	margin: 4px 0;
}

.footer-address,
.footer-tel {
	display: inline;
}

/* TEL/FAX は1行で見せたいので、なるべく途中改行させない */
.footer-tel {
	white-space: nowrap;
}

/* ==========================
   下層ページ共通レイアウト
   ========================== */

.subpage-main {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 60px 0 80px;
}

/* 下層ページ内のセクション */
.subpage-main section {
	padding: 40px 0 0;
}

.subpage-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
}

.page-title {
	margin: 0 0 10px;
	font-size: 2rem;
	color: var(--main-color);
}

.page-lead {
	margin: 0;
	color: #666;
	font-size: 0.95rem;
}

/* セクションブロック（見出し＋内容） */

.section-block {
	margin-bottom: 30px;
}

.section-title {
	margin: 0 0 15px;
	font-size: 1.4rem;
	color: var(--main-color);
	border-left: 4px solid var(--accent-color);
	padding-left: 10px;
	text-align: left;
}

/* 白いカード風のボックス */

.card {
	background: #fff;
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.card p {
	margin-top: 0;
	margin-bottom: 10px;
}

/* 理念リストなど */

.philosophy-list {
	margin: 0;
	padding-left: 1.2em;
}

.philosophy-list li {
	margin-bottom: 6px;
}

/* 情報テーブル（会社概要・車両情報など） */

.info-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.info-table th,
.info-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #ddd;
	font-size: 0.95rem;
}

.info-table th {
	width: 30%;
	background: #f1f5ff;
	text-align: left;
	font-weight: bold;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
	border-bottom: none;
}

/* 沿革タイムライン */

.timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 20px;
	border-left: 2px solid #ddd;
}

.timeline-item {
	position: relative;
	padding-left: 12px;
	margin-bottom: 8px;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--accent-color);
}

.timeline-date {
	font-weight: bold;
	margin-right: 8px;
}

.timeline-text {
}

/* 代表者署名エリア */

.signature {
	margin-top: 20px;
	text-align: right;
	font-size: 0.95rem;
}

/* 事業内容カード */

.business-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.business-card {
	flex: 1 1 280px;
	background: #fff;
	border-radius: 8px;
	padding: 18px 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.business-card h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.1rem;
	color: var(--main-color);
}

.business-card p {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 0.95rem;
	color: #555;
}

.business-card ul {
	margin: 0;
	padding-left: 1.2em;
	font-size: 0.9rem;
}

/* ======================
   事業所・センターページ
   ====================== */

.offices-main {
	/* subpage-main による基本レイアウトを継承 */
}

.office-block {
	/* section-block 相当。必要に応じて個別調整 */
}

.office-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.office-name {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 4px;
}

.office-detail-list {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.office-detail-list li {
	margin-bottom: 4px;
}

.office-detail-label {
	font-weight: bold;
	margin-right: 4px;
}

.office-description {
	font-size: 0.95rem;
	color: #555;
}

/* 所沢冷凍倉庫の設備説明用 */

.warehouse-notes {
	margin-top: 8px;
	font-size: 0.9rem;
	color: #666;
}

/* Google マップ埋め込み */

.office-map {
	margin-top: 15px;
}

.office-map iframe {
	width: 100%;
	max-width: 100%;
	height: 260px;
	border: 0;
}

/* 倉庫事業ページ 画像ギャラリー */

.warehouse-gallery {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.warehouse-item {
	flex: 1 1 48%;
	max-width: 48%;
}

.warehouse-item img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 5px;
}

.warehouse-item-title {
	margin-top: 6px;
	font-size: 1.6rem;
	text-align: center;
	color: #555;
	font-weight: bold;
}

.warehouse-item-note {
	margin-top: 2px;
	font-size: 1rem;
	text-align: center;
	color: #777;
}

/* ===========
   お問い合わせ
   =========== */

.contact-main {
	width: 90%;
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 0 80px;
}

.contact-heading {
	margin-bottom: 24px;
}

.contact-heading h1 {
	margin: 0 0 8px;
	font-size: 2rem;
	color: var(--main-color);
}

.contact-heading p {
	margin: 0;
	font-size: 0.95rem;
	color: #666;
}

.contact-form {
	background: #fff;
	border-radius: 8px;
	padding: 24px 24px 28px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.form-row {
	margin-bottom: 16px;
}

.form-row label {
	display: block;
	font-size: 0.95rem;
	font-weight: bold;
	margin-bottom: 4px;
}

.form-row .required-badge {
	color: #c00;
	font-size: 0.8rem;
	margin-left: 4px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 0.95rem;
}

.form-row textarea {
	min-height: 160px;
	resize: vertical;
}

.form-actions {
	margin-top: 10px;
	text-align: right;
}

/* メッセージ表示 */

.form-error {
	margin-bottom: 16px;
	padding: 10px 12px;
	background: #ffecec;
	color: #b10000;
	border-radius: 4px;
	font-size: 0.9rem;
}

.form-success {
	margin-bottom: 16px;
	padding: 10px 12px;
	background: #e7ffef;
	color: #007726;
	border-radius: 4px;
	font-size: 0.9rem;
}

.field-error {
	color: #c00;
	font-size: 0.8rem;
	margin-top: 2px;
}

/* 任意の要素を明朝体にする汎用クラス */
.font-mincho {
	font-family: var(--mincho-font);
}

/* ==================
   レスポンシブ対応
   ================== */

/* タブレット以上：事業所カードを左右並びに */
@media (min-width: 768px) {
	.office-card {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}

	.office-map iframe {
		height: 320px;
	}
}

/* タブレット以下：カード系を縦並びに */
@media (max-width: 768px) {
	.business-grid {
		flex-direction: column;
	}

	.warehouse-gallery {
		flex-direction: column;
	}

	.warehouse-item {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* スマホ幅（600px以下） */
@media (max-width: 600px) {

	/* 固定ヘッダー周りをコンパクトに */
	header {
		padding: 6px 0;
	}

	body {
		padding-top: 80px; /* スマホでのヘッダー高さに合わせて調整 */
	}

	/* ヘッダー内レイアウト：ロゴ＋ハンバーガー＋縦ナビ */
	.header-content {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		flex-wrap: wrap;
		width: 90%;
		margin: 0 auto;
		gap: 6px;
	}

	.logo-text {
		height: 42px;
	}

	/* スマホではハンバーガーボタンを表示 */
	.menu-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		margin-left: auto;
	}

	/* ナビゲーションを一段下に縦並びで配置、デフォルトは非表示 */
	header nav {
		width: 100%;
		margin-top: 6px;
	}

	header nav ul {
		list-style: none;
		margin: 0;
		padding: 8px 0 0;
		display: none; /* 初期状態は閉じる */
		flex-direction: column;
		gap: 6px;
	}

	header nav li {
		margin: 0;
	}

	header nav a {
		display: block;
		padding: 6px 0;
		font-size: 0.9rem;
	}

	/* nav に .nav-open が付いたときだけメニューを表示 */
	#global-nav.nav-open ul {
		display: flex;
	}

	/* ヒーローエリア：テキストを横幅いっぱいに */
	.hero-text {
		left: 5%;
		width: 90%;
		max-width: none;
		padding: 12px 16px;
	}

	.hero-text h1 {
		font-size: 1.6rem;
		line-height: 1.4;
	}

	.hero-text p {
		font-size: 0.95rem;
	}

	/* セクションの余白を少し詰める */
	section {
		padding: 40px 0;
	}

	/* 「私たちの強み」アイコンを折り返して表示 */
	.icons {
		flex-wrap: wrap;
		gap: 16px;
	}

	.icon-item {
		flex: 1 1 45%;
	}

	.icon-item img {
		height: 80px;
	}

	/* 下部3セクションを縦並びに */
	.content {
		flex-direction: column;
		width: 90%;
		gap: 20px;
	}

	.content.reverse {
		flex-direction: column;
	}

	.content img {
		width: 100%;
	}

	.careers {
		--careers-img-height: 240px;
	}

	.text {
		width: 100%;
	}

	.text h2 {
		font-size: 1.6rem;
	}

	.text p {
		font-size: 0.95rem;
	}

	.site-footer .container {
		width: 90%;
		margin: 0 auto;
		padding: 0 10px;
		box-sizing: border-box;
	}

	.site-footer p {
		margin: 4px 0;
		font-size: 0.8rem;
		line-height: 1.6;
		word-break: keep-all;
	}

	.vehicle-table th {
		/* 車種の列を広くして改行を減らす */
		width: 70%;
	}

	.vehicle-table td {
		/* 台数の列を狭くして余白を減らす */
		width: 30%;
		text-align: center;
	}

	.footer-contact {
		text-align: center;
	}

	.footer-address,
	.footer-tel {
		display: block; /* 住所 → 改行 → TEL/FAX になる */
	}

	.footer-tel {
		margin-top: 4px;
		white-space: nowrap; /* TEL/FAX の途中では改行しない */
	}
}
