/* ========================================================= */
/* 会社概要固有のスタイル (css/company.css) */
/* ========================================================= */

/* 1. 企業理念 */
#company-philosophy {
/* 必須: 背景画像の設定 */
	background-image: url('images/recruit_visual_main.jpg'); /* 生成した画像のパスを指定 */
	background-size: cover;
	background-position: left center; /* 初期位置を左端に設定 */
	background-repeat: no-repeat;/* 画像の繰り返しを禁止 */

	padding: 80px 0; /* 背景がしっかり見えるようにパディングを確保 */

	/* 任意: 画像が暗い場合にテキストを読みやすくするオーバーレイ */
	position: relative; /* ::before擬似要素のために必要 */
	color: #fff; /* テキストの色を白に */
	text-align: center; /* テキストを中央寄せ */
	overflow: hidden;
	position: relative; /* 既存の設定ですが、念のため確認 */
	z-index: 2; /* 他の要素より手前に配置し、::beforeが確実にこの要素内にとどまるようにする */

	/* ★★ 影を追加 ★★ */
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

#company-philosophy:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.1); /* 半透明の黒 (10%の透明度) */
	z-index: 1; /* テキストの下に配置 */
}

#company-philosophy h1 {
	color: #fff; /* 濃い黒系に変更 */
	text-shadow: 1 1 10px rgba(0, 0, 0, 0.7); /* 黒いシャドウで背景から浮き立たせる */
	margin-bottom: 20px;
}

/* テキストをオーバーレイより上に表示させるための設定 */
#company-philosophy .inner-wrap {
	position: relative;
	z-index: 2;
}

#company-philosophy h2 {
	color: #00796b; /* 企業理念のコアカラーを継承 */
	text-shadow:
		1px 1px 2px rgba(255, 255, 255, 0.7), /* 標準的な影 */
		-1px -1px 2px rgba(255, 255, 255, 0.7); /* 上と左にも影を入れ、文字を際立たせる */
}

.philosophy-text {
	/* (既存のスタイル... color: #fff; など) */

	/* ★★ 対策1: 濃い色の文字影を追加 ★★ */
	text-shadow:
		1px 1px 2px rgba(255, 255, 255, 0.7), /* 標準的な影 */
		-1px -1px 2px rgba(255, 255, 255, 0.7); /* 上と左にも影を入れ、文字を際立たせる */
	/* ---------------------------------- */

	color: #000;
	font-size: 18px;
	line-height: 1.8;
	max-width: 700px;
	margin: 0 auto;
	font-weight: 500;
}

/* 企業理念内の3つのポイント */
.philosophy-points {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 50px;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.point-item {
	flex: 1;
	background-color: rgba(255, 255, 255, 0.9);
	padding: 30px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	color: #333; /* 文字を読みやすく */
	text-shadow: none; /* 読みやすさ優先で影を消す */
}

.point-item h3 {
	color: #00796b;
	font-size: 20px;
	margin-bottom: 15px;
	position: relative;
	padding-bottom: 10px;
}

.point-item h3::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 2px;
	background-color: #4db6ac;
}

.point-item p {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

/* 会社概要下のシールエリア */
.company-seal-area {
	margin-top: 30px;
	text-align: center; /* 中央寄せ */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.company-seal-area .security-seal {
	background-color: #fff; /* 背景が薄緑(#e8f5e9)なので、シール周りを白くすると目立ちます */
	padding: 10px 20px;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.seal-caption {
	font-size: 13px;
	color: #666;
	margin: 0;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
	.philosophy-points {
		flex-direction: column;
		padding: 0 20px;
	}

	.point-item {
		margin-bottom: 20px;
	}

	.company-seal-area {
		margin-top: 20px;
		padding: 0 10px;
	}

	.seal-caption {
		font-size: 12px;
		line-height: 1.4;
	}
}

/* 2. 代表挨拶 */
#company-message {
	background-color: #fff;
	padding: 80px 0;
}

.message-container {
	display: flex;
	max-width: 1000px;
	margin: 0 auto;
	align-items: flex-start; /* 上揃え */
	gap: 40px;
}

.representative-photo {
	flex-shrink: 0; /* 縮小しない */
	text-align: center;
	width: 200px;
}

.representative-photo img {
	width: 100%;
	height: auto;
	border-radius: 50%; /* 丸い写真 */
	margin-bottom: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.representative-photo figcaption {
	font-weight: bold;
	color: #444;
}

.message-text-area {
	flex-grow: 1;
	text-align: left;
}

.message-text-area p {
	margin-bottom: 1.5em;
}

.message-text-area .greeting {
	font-weight: bold;
	font-size: 17px;
}

.message-text-area .signature-date {
	text-align: right;
	font-weight: 500;
	margin-top: 30px;
}

/* 3. 会社概要（基本情報） */
#company-info {
	background-color: #e8f5e9; /* 薄い緑色 */
}

.info-table {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	border-collapse: collapse;
	font-size: 15px;
}

.info-table th, .info-table td {
	padding: 15px;
	border: 1px solid #c8e6c9; /* 淡い緑の枠線 */
}

.info-table th {
	width: 30%;
	background-color: #4db6ac; /* 統一されたアクア色 */
	color: #fff;
	font-weight: 500;
	text-align: center;
}

.info-table tr:nth-child(even) td {
	background-color: #f0f4f0; /* 偶数行の背景 */
}

/* 4. アクセス・地図情報 */
#company-map {
	text-align: center;
	background-color: #fff;
}

.map-area {
	margin: 20px auto 0;
	width: 100%;
	height: 400px; /* 地図エリアの高さ */
	border: 1px solid #ddd;
	background-color: #eee;
}
@media (max-width: 768px) {
	#company-philosophy {
		background-size: auto 100%; 	 /* 高さを100%に固定し、幅は自動調整（横スクロールのために重要） */
		/* 👈 新規追加: アニメーションを適用 */
		animation: background-scroll 30s linear infinite alternate; /* 30秒かけて線形に往復（alternate）で無限に繰り返す */
	}
	/* 背景画像を横に移動させるアニメーションを定義 */
	@keyframes background-scroll {
		0% {
			/* アニメーション開始時: 背景画像の左端をコンテナの左端に合わせる */
			background-position: left center;
		}
		100% {
			/* アニメーション終了時: 背景画像を右端に移動させる */
			/* 例: 画像の幅がコンテナの幅より20%分だけ大きいと仮定し、20%分右に移動 */
			background-position: right center;
		}
	}


	/* 共通設定の調整 */
	section {
		padding: 40px 0;
	}
	h2 {
		font-size: 24px;
	}

	.philosophy-text {
		font-size: 18px;
	}

	/* 企業理念 */
	#company-philosophy {
		padding: 60px 0;
	}

	/* 代表挨拶 */
	.message-container {
		flex-direction: column;
		gap: 20px;
		text-align: center; /* 代表写真の下のメッセージ部分を中央揃えに */
	}

	.representative-photo {
		width: 150px; /* 写真を小さく */
		margin: 0 auto;
	}

	.message-text-area {
		text-align: left; /* テキストエリア内の文章は左寄せに戻す */
	}

	/* 会社概要表をリスト形式に変換 (テーブルレスポンシブ化) */
	#company-info .inner-wrap {
		overflow-x: hidden; /* 横スクロールを無効化 */
		padding: 0 10px; /* 左右の余白を調整 */
	}
	.info-table {
		min-width: unset; /* 最小幅設定を解除 */
		border: none;
		margin-bottom: 0;
	}

	/* thとtdをブロック要素にして縦並びにする */
	.info-table tbody, .info-table tr {
		display: block;
		width: 100%;
	}
	.info-table tr {
		margin-bottom: 15px; /* 各項目間に隙間を設ける */
		border: 1px solid #c8e6c9; /* 項目全体に枠線 */
		border-radius: 4px;
		overflow: hidden;
	}

	.info-table th {
		display: block; /* <th>を項目名としてブロック化 */
		width: 100%;
		text-align: left;
		padding: 10px 15px;
		background-color: #4db6ac;
		color: #fff;
		border-bottom: 1px solid #c8e6c9;
	}

	.info-table td {
		display: block; /* <td>を内容としてブロック化 */
		width: 100%;
		padding: 10px 15px;
		background-color: #fff; /* 内容の背景色を白に統一 */
		border: none;
	}

	/* 偶数行の背景色の設定をリセット（trに背景色が付くため） */
	.info-table tr:nth-child(even) td {
		background-color: #fff;
	}

	/* アクセス・地図情報 */
	.map-area {
		height: 300px; /* 地図の高さを調整 */
	}
}
