@charset "UTF-8";
/* ==========================================================================
   会社概要ページ(Figma VD 7/3 > 会社概要 準拠)
   ========================================================================== */

/* --------------------------------------------------------------------------
   MESSAGE 代表メッセージ
   -------------------------------------------------------------------------- */
.message {
	padding-block: 80px;
}

.message__heading {
	margin-top: 48px;
	font-size: 32px;
	font-weight: 700;
	line-height: 44px;
	color: var(--color-heading);
}

.message__lead {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	margin-top: 50px;
}

.message__lead-body {
	max-width: 560px;
	padding-top: 24px;
}

.message__president {
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	color: var(--color-heading);
}

.message__president::after {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin-top: 24px;
	background: var(--color-accent);
}

.message__text {
	font-size: 16px;
	line-height: 26px;
	color: var(--color-heading);
	text-align: justify;
}

.message__text--lead {
	margin-top: 20px;
	line-height: 32px;
}

.message__subhead {
	margin-top: 56px;
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	color: var(--color-accent);
}

.message__subhead + .message__text {
	margin-top: 8px;
}

.message__photo {
	flex: 0 0 333px;
}

.message__photo img {
	width: 333px;
	height: 281px;
	object-fit: none;
	object-position: 15% 22%;
}

/* --------------------------------------------------------------------------
   CORPORATE PROFILE 会社情報
   -------------------------------------------------------------------------- */
.profile {
	padding-block: 80px;
}

.profile__table {
	width: 100%;
	margin-top: 48px;
	border-collapse: collapse;
}

.profile__table tr + tr {
	border-top: 1px solid rgba(196, 199, 199, 0.3);
}

.profile__table th {
	width: 261px;
	padding: 26px 0 26px 32px;
	text-align: left;
	vertical-align: top;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #444748;
}

.profile__table td {
	padding: 24px 24px 24px 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #1b1c1c;
}

.profile__table .profile__company-name {
	font-weight: 700;
}

.profile__table td li + li {
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   HISTORY 沿革(年代アコーディオン)
   -------------------------------------------------------------------------- */
.history {
	padding-block: 80px;
}

.history__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 48px;
}

/* 年代バー(summary) */
.history-era__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 73px;
	padding-inline: 28px;
	background: #ffffff;
	border: 1px solid var(--color-heading);
	border-radius: 6px;
	font-size: 24px;
	font-weight: 700;
	line-height: 29px;
	color: var(--color-heading);
	cursor: pointer;
	list-style: none;
}

.history-era__bar::-webkit-details-marker {
	display: none;
}

.history-era__bar::after {
	content: "＋";
}

.history-era[open] > .history-era__bar {
	background: var(--color-heading);
	color: #ffffff;
}

.history-era[open] > .history-era__bar::after {
	content: "−";
}

/* 開いた中身: 縦線+年ごとのブロック
   左右に 20px の余白を取り、左はさらに大年号+縦線のスペースを足す */
.history-era__content {
	position: relative;
	margin-top: 36px;
	padding-inline: 20px;
	padding-left: 200px;
}

.history-era__content::before {
	content: "";
	position: absolute;
	left: 180px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #cccece;
}

.history-year {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.history-year + .history-year {
	margin-top: 30px;
}

/* 節目の大きな年号(縦線の左側) */
.history-year__marker {
	position: absolute;
	top: -4px;
	right: calc(100% + 35px);
	font-family: var(--font-en);
	font-size: 40px;
	font-weight: 700;
	line-height: 48px;
	color: #a71427;
	white-space: nowrap;
}

.history-year__label {
	flex: 0 0 150px;
	font-size: 15px;
	font-weight: 500;
	line-height: 26px;
	color: #a71427;
}

.history-year__rows {
	flex: 1;
	min-width: 0;
}

.history-year__rows li {
	display: flex;
	gap: 20px;
}

.history-year__rows li + li {
	margin-top: 12px;
}

.history-year__date {
	flex: 0 0 92px;
	font-size: 15px;
	font-weight: 500;
	line-height: 25px;
	color: #444647;
}

.history-year__rows p {
	font-size: 15px;
	line-height: 25px;
	color: #444647;
	text-align: justify;
}

/* --------------------------------------------------------------------------
   CTAバナー配置
   -------------------------------------------------------------------------- */
.cta-section {
	padding-block: 80px;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	/* 本文と顔写真の2カラム → 写真を上に置いた縦積み */
	.message__lead {
		flex-direction: column-reverse;
		gap: 32px;
	}

	.message__lead-body {
		max-width: none;
		padding-top: 0;
	}

	.message__photo {
		flex: none;
	}

	/* 縦積みでは固定幅333pxが取り残されて見えるため全幅に伸ばす
	   (PCは原寸トリミングだが、伸ばす側では cover に切り替える) */
	.message__photo img {
		width: 100%;
		height: 300px;
		object-fit: cover;
	}

	/* 沿革: 縦線の左に置いた大年号のスペースを詰める */
	.history-era__content {
		padding-left: 150px;
	}

	.history-era__content::before {
		left: 130px;
	}

	.history-year__marker {
		right: calc(100% + 24px);
		font-size: 30px;
		line-height: 36px;
	}
}

@media (max-width: 768px) {
	.message,
	.profile,
	.history,
	.cta-section {
		padding-block: 48px;
	}

	.message__heading {
		margin-top: 32px;
		font-size: 24px;
		line-height: 36px;
	}

	.message__lead {
		margin-top: 32px;
	}

	.message__photo img {
		height: 240px;
	}

	.message__text,
	.message__subhead {
		font-size: 15px;
	}

	.message__subhead {
		margin-top: 36px;
	}

	/* 会社情報: 項目名を上、内容を下の縦積みに(2カラムだと内容側が狭すぎる) */
	.profile__table {
		margin-top: 32px;
	}

	.profile__table th,
	.profile__table td {
		display: block;
		width: auto;
		padding: 0;
	}

	.profile__table th {
		padding-top: 20px;
		font-size: 13px;
	}

	.profile__table td {
		padding: 4px 0 20px;
		font-size: 15px;
	}

	/* 沿革: 縦線と大年号はSPでは成立しないので落とし、年ラベルを見出し扱いにする */
	.history__body {
		margin-top: 32px;
	}

	/* 大年号+縦線を落とすので左のスペースも不要。左右20pxの余白だけ残す */
	.history-era__content {
		margin-top: 24px;
		padding-left: 20px;
	}

	.history-era__content::before,
	.history-year__marker {
		display: none;
	}

	.history-year {
		flex-direction: column;
		gap: 4px;
	}

	.history-year__label {
		flex: none;
		font-weight: 700;
	}

	.history-era__bar {
		min-height: 60px;
		padding-inline: 16px;
		font-size: 18px;
		line-height: 26px;
	}
}

@media (max-width: 480px) {
	.message__heading {
		font-size: 20px;
		line-height: 32px;
	}

	.message__photo img {
		height: 200px;
	}

	.history-era__bar {
		font-size: 16px;
	}

	.history-year__rows li {
		gap: 12px;
	}

	.history-year__date {
		flex-basis: 76px;
		font-size: 14px;
	}

	.history-year__rows p {
		font-size: 14px;
		line-height: 23px;
	}
}
