/* ---------------------------------- */
/* 基本・共通スタイル */
/* ---------------------------------- */
body {
	letter-spacing: 0.2em;
	font-family: 'Roboto', 'Noto Sans JP', sans-serif;
	margin: 0;
	padding-top: 5em;
	background-color: #ffffff;
	color: #222222;
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	color: #1a3a6e;
	text-decoration: none;
	transition: color 0.3s;
}

a:hover {
	color: #121f40;
}

/* ---------------------------------- */
/* アニメーション用キーフレーム */
/* ---------------------------------- */

@keyframes subtle-pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.005);
	}
}

/* ---------------------------------- */
/* ページヒーロー */
/* ---------------------------------- */
.page-hero {
	background-color: #ffffff;
	padding: 110px 50px 20px;
	text-align: center;
	border-bottom: 5px solid #1a3a6e;
}

.page-hero h1 {
	font-size: clamp(2.1rem, 4.5vw, 4rem);
	letter-spacing: 0.1em;
	margin: 0;
	color: #000000;
	text-transform: uppercase;
	opacity: 0;
	animation: slide-in-from-top 1s ease-out forwards;
}

.page-hero p {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	color: #000000;
	margin-top: 15px;
	opacity: 0;
	animation: fade-in-up 1s ease-out 0.5s forwards;
}

/* ---------------------------------- */
/* スクロールアニメーション */
/* ---------------------------------- */
.scroll-fade {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.active {
	opacity: 1;
	transform: translateY(0);
}

/* ---------------------------------- */
/* セクション共通 */
/* ---------------------------------- */
.section {
	padding: 100px 65px;
	text-align: center;
	margin: 50px 50px;
}

.section h2 {
	font-size: clamp(2rem, 3.5vw, 3rem);
	margin-bottom: 30px;
	letter-spacing: 0.1em;
	color: #000000;
	position: relative;
	display: inline-block;
}

.section h2::after {
	content: '';
	display: block;
	width: 50%;
	height: 3px;
	background-color: #1a3a6e;
	margin: 10px auto 0;
	transition: width 0.5s;
}

.section:hover h2::after {
	width: 80%;
}

/* ---------------------------------- */
/* 企業理念 */
/* ---------------------------------- */
.philosophy {
	border-top: 5px solid #1a3a6e;
	box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
	background-color: #ffffff;
	border-radius: 8px;
	padding: 40px 50px;
	transition: transform 0.3s, box-shadow 0.3s;
	max-width: 1400px;
	width: 90%;
	margin: 0 auto 40px;
}

.philosophy:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(26, 58, 110, 0.3);
}

.philosophy h3 {
	font-size: clamp(1.4rem, 2.4vw, 2.4rem);
	font-weight: 900;
	color: #000;
	margin-bottom: 15px;
	text-align: center;
}

.philosophy p {
	font-size: clamp(1.1rem, 2.0vw, 1.6rem);
	color: #333;
	line-height: 1.8;
	text-align: center;
}

.philosophy blockquote {
	font-size: clamp(1.2rem, 2.6vw, 1.8rem);
	font-weight: 300;
	color: #1a3a6e;
	margin: 0 0 30px;
	border-left: 5px solid #1a3a6e;
	padding-left: 30px;
	line-height: 1.5;
	transition: border-color 0.5s;
}

.philosophy blockquote:hover {
	border-left-color: #121f40;
}

/* ---------------------------------- */
/* 会社概要テーブル */
/* ---------------------------------- */
.company-table {
	width: 90%;
	border-radius: 8px;
	box-shadow: 10px 10px 20px 10px rgba(10, 22, 41, 0.2);
	overflow: hidden;
	border-collapse: collapse;
	transition: transform 0.3s, box-shadow 0.3s;
	margin: 40px auto;
	text-align: left;
}

.company-table tr {
	transition: background-color 0.3s;
}

.company-table:hover {
	transform: translateY(-7px);
	background-color: #3c3c5a;
}

.company-table th,
.company-table td {
	font-size: clamp(0.95rem, 1.8vw, 1.3rem);
	padding: 20px;
	border-bottom: 1px solid #3c3c5a;
}

.company-table th {
	width: 25%;
	background-color: #1a3a6e;
	color: #ffffff;
	font-weight: 700;
	position: relative;
}

.company-table th::after {
	content: ':';
	position: absolute;
	right: 15px;
	color: #1a3a6e;
}

.company-table td {
	background-color: #ffffff;
	color: #222222;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
	border-bottom: none;
}

/* ---------------------------------- */
/* タイムライン						   */
/* ---------------------------------- */
.timeline {
	position: relative;
	max-width: 1500px;
	margin: 60px auto;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 0;
	left: 40%;
	transform: translateX(-50%);
	width: 5px;
	height: 100%;
	background: linear-gradient(to bottom, #1a3a6e, #6fa8dc);
	border-radius: 3px;
}

.timeline-hover-zone {
	position: relative;
	width: 100%;
	height: 120px;
	margin-top: -40px;
	cursor: default;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-hover-zone.active {
	opacity: 1;
	transform: translateY(0);
}

.timeline-hover-zone::after {
	content: "To Be Continued...";
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	font-size: clamp(1.2rem, 2.4vw, 1.8rem);
	font-weight: 600;
	color: #1a3a6e;
	opacity: 1;
}

.timeline-row {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 100px 0;
	position: relative;
}

.timeline-row:first-child {
	margin-top: 10px;
}

.timeline-year {
	width: 30%;
	text-align: right;
	font-size: clamp(1.5rem, 3.2vw, 3rem);
	font-weight: 700;
	background: linear-gradient(90deg, #1a3a6e, #6fa8dc);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-dot {
	width: 27px;
	height: 27px;
	background-color: #1a3a6e;
	border-radius: 50%;
	border: 4px solid #fff;
	margin: 0 60px;
	box-shadow: 0 0 0 4px rgba(26, 58, 110, 0.3);
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-text {
	width: 50%;
	font-size: clamp(1rem, 2.2vw, 1.6rem);
	line-height: 1.6;
	color: #222;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-row.active .timeline-year,
.timeline-row.active .timeline-dot,
.timeline-row.active .timeline-text {
	opacity: 1;
	transform: translateY(0) scale(1);
}


/* ---------------------------------- */
/* スマホ対応（768px以下） */
/* ---------------------------------- */
@media (max-width: 768px) {

	/* ページタイトル */
	.page-hero {
		padding: 120px 20px 20px;
	}

	.page-hero h1 {
		font-size: 2.1em;
	}

	.page-hero p {
		font-size: 1em;
	}

	/* セクション全体 */
	.section {
		padding: 40px 15px;
		margin: 30px 0;
	}

	.section h2 {
		font-size: 2em;
	}

	/* 企業理念 */
	.philosophy {
		width: 94%;
		padding: 20px 10px;
		box-shadow: 0 3px 10px rgba(26, 58, 110, 0.15);
	}

	.philosophy h3 {
		font-size: 1.4em;
		line-height: 1.4;
	}

	.philosophy p {
		font-size: 0.9em;
		line-height: 1.8;
	}

	.philosophy blockquote {
		font-size: 1.2em;
		padding-left: 15px;
	}

	/* 会社概要テーブル */
	.company-table,
	.company-table tbody,
	.company-table tr,
	.company-table th,
	.company-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.company-table {
		width: 95%;
		margin: 30px auto;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	}

	.company-table th {
		background-color: #1a3a6e;
		color: #fff;
		text-align: center;
		padding: 10px;
		font-size: 1em;
		border-radius: 4px 4px 0 0;
	}

	.company-table th::after {
		content: '';
	}

	.company-table td {
		background: #fff;
		color: #222;
		font-size: 0.95em;
		padding: 12px;
		border-bottom: 1px solid #eee;
	}

	/* タイムライン全体 */
	.timeline {
		position: relative;
		padding: 0 9px;
	}

	/* 中央の縦線 */
	.timeline::before {
		left: 39%;
		transform: translateX(-50%);
	}

	/* 1行をグリッドで再構成 */
	.timeline-row {
		display: grid;
		grid-template-columns: 1fr 24px 1fr;
		/* 左｜線・ドット｜右 */
		align-items: start;
		column-gap: 8px;
		margin-bottom: 32px;
	}

	/* 年（左） */
	.timeline-year {
		text-align: right;
		font-size: 1.3em;
		font-weight: 600;
		line-height: 1.4;
		width: 35vw;
	}

	/* ドット（中央） */
	.timeline-dot {
		justify-self: center;
		transform: translateX(-2px);
		margin-top: 4px;
		width: 10px;
		height: 10px;
	}

	/* テキスト（右） */
	.timeline-text {
		font-size: 0.8em;
		line-height: 1.7;
		word-break: break-word;
		width: 55vw;
	}

	/* ダミー行（棒の長さ調整用）はSPでは消す */
	.timeline-row:last-child {
		display: none;
	}

	/* 表示されるテキスト */
	.timeline-hover-zone.active {
		opacity: 1;
		transform: translateY(0);
	}

	.timeline-hover-zone::after {
		width: 90vw;
		content: "To Be Continued...";
		position: absolute;
		top: 30px;
		left: 50%;
		transform: translateX(-50%);
		font-size: 1.2em;
		font-weight: 600;
		color: #1a3a6e;
		opacity: 1;
	}

}