@charset "UTF-8";

/* ============================================================
	創業者 早川徳次ページのスタイル

	対象      : /corporate/info/history/founder/
	依存       : /assets/templates/2026/global.css
	読み込み順 : global.css → history.css → founder.css
 ============================================================ */

/* ====================================
	セクション見出し
 ==================================== */
.founder-heading {
	padding-block: 3rem;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

/* ====================================
	年代ブロック
 ==================================== */
.founder-era {
	margin-block-start: 4rem;
}

.founder-era+.founder-era {
	margin-block-start: 5rem;
}

.founder-era__heading {
	display: grid;
	grid-template-columns: 6px 1fr;
	grid-template-areas:
		"bar years"
		"bar label";
	gap: .4rem 1.6rem;
	padding: 1rem 1.4rem;
	background: var(--gray-100);
}

/* 年代の左に立てる赤いバー */
.founder-era__heading::before {
	content: '';
	grid-area: bar;
	background: var(--sharp-red);
}

.founder-era__years {
	grid-area: years;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.5;
}

.founder-era__label {
	grid-area: label;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.5;
}

/* ====================================
	ストーリーカード
 ==================================== */
.founder-list {
	display: grid;
	gap: 2rem;
	margin-block-start: 2rem;
}

.founder-card {
	display: grid;
	grid-template-columns: 45% 1fr;
	gap: 0 2rem;
	align-items: start;
}

.founder-card__body {
	display: grid;
	gap: .8rem;
	align-content: start;
}

.founder-card__year {
	font-size: 1.8rem;
	font-weight: 500;
	line-height: 1.6;
}

.founder-card__title {
	font-size: 1.4rem;
	line-height: 1.6;
	text-decoration: underline;
}

@media (hover:hover) and (pointer: fine) {
	.founder-card:hover,
	.founder-card:hover .founder-card__title {
		text-decoration: none;
	}

	.founder-card:hover>img {
		opacity: .7;
	}
}

/* ====================================
	漫画
 ==================================== */
.founder-manga {
	padding-block: 5rem;
}

.founder-manga__list {
	display: grid;
	gap: 4rem;
	margin-block-start: 4rem;
}

.founder-manga__item {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-inline-size: 560px;
	margin-inline: auto;
}

/* 項目間の区切り（1カラムのときのみ） */
.founder-manga__item:not(:last-child) {
	padding-block-end: 4rem;
	border-block-end: 1px dashed var(--gray-300);
}

.founder-manga__title {
	font-size: 1.8rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
}

.founder-manga__lead {
	font-size: 1.5rem;
	line-height: 1.5;
}

.founder-manga__figure {
	display: grid;
	place-items: center;
	padding: 1rem 3rem;
	background: var(--gray-100);
}

.founder-manga__figure img {
	inline-size: auto;
	max-block-size: 30rem;
	border: 1px solid var(--gray-300);
	box-shadow: 2px 2px 4px rgb(0 0 0 / .25);
}

.founder-manga__download {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.5;
}

@media (hover:hover) and (pointer: fine) {
	.founder-manga__download a:hover {
		color: var(--sharp-red);
		text-decoration: underline;
	}
}

/* ====================================
	物語
 ==================================== */
.founder-story {
	padding-block: 3rem 5rem;
}

.founder-story__heading {
	display: grid;
	gap: .8rem;
}

.founder-story__years {
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.5;
}

.founder-story__title {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.5;
}

.founder-story__body {
	display: grid;
	gap: 4rem;
	margin-block-start: 3rem;
}

.founder-story__text {
	display: grid;
	gap: 1.8rem;
	font-size: 1.5rem;
	line-height: 1.8;
}

.founder-story__figure img {
	inline-size: 100%;
	block-size: auto;
}

.founder-story__figure figcaption {
	margin-block-start: .5em;
	font-size: 1.2rem;
	line-height: 1.5;
}

/* ====================================
	ページャー

	中身は /assets/pages/founder/founder.js が index.html から組み立てる。
 ==================================== */
.founder-pager {
	padding-block-end: 6rem;
}

.founder-pager>.layout-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	/* 読み込み前の高さを確保する */
	min-block-size: calc(1.8em + 2rem);
	padding: .6rem .8rem;
	background: var(--gray-100);
	font-size: 1.4rem;
	line-height: 1.8;
}

.founder-pager__step {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	padding: .4rem .6rem;
	font-weight: 500;
}

.founder-pager__step--prev::before,
.founder-pager__step--next::after {
	content: '';
	flex: none;
	inline-size: .75em;
	block-size: 1.2em;
	background: url('/assets/common/images/chevron-right-solid.svg') no-repeat center / contain;
}

.founder-pager__step--prev::before {
	scale: -1 1;
}

/* 移動先が無い側 */
.founder-pager__step.is-disabled {
	visibility: hidden;
}

/* ------------------------------------
	768px 境界
------------------------------------ */
@media print,
screen and (width >=768px) {
	.founder-heading {
		font-size: 3.4rem;
	}

	.founder-era+.founder-era {
		margin-block-start: 8rem;
	}

	/* 年代と説明を1行に並べる */
	.founder-era__heading {
		grid-template-columns: 6px auto 1fr;
		grid-template-areas: "bar years label";
		align-items: center;
		gap: 2rem;
		padding: 2rem 1.4rem;
	}

	.founder-era__heading::before {
		block-size: 21px;
	}

	.founder-era__years {
		font-size: 2.8rem;
	}

	.founder-era__label {
		font-size: 2.2rem;
	}

	.founder-list {
		grid-template-columns: repeat(4, 1fr);
		gap: 5rem clamp(2rem, 3.4vw, 4rem);
		margin-block-start: 4rem;
	}

	/* 画像の下にテキストを積む */
	.founder-card {
		grid-template-columns: 1fr;
		gap: 2rem;
		align-content: start;
	}

	.founder-card__body {
		gap: 1.2rem;
	}

	.founder-card__year {
		font-size: 2rem;
		line-height: 1.5;
	}

	.founder-card__title {
		font-size: 1.6rem;
		line-height: 1.5;
	}

	.founder-manga {
		padding-block: 10rem 8rem;
	}

	.founder-manga__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8rem;
		max-inline-size: 1200px;
		margin: 8rem auto 0;
	}

	/* 1件のときは中央に置く */
	.founder-manga__list:has(> :only-child) {
		grid-template-columns: minmax(0, 560px);
		justify-content: center;
	}

	.founder-manga__item {
		gap: 3rem;
	}

	.founder-manga__item:not(:last-child) {
		padding-block-end: 0;
		border-block-end: none;
	}

	.founder-manga__title {
		font-size: 2.4rem;
	}

	.founder-manga__lead {
		font-size: 1.6rem;
	}

	.founder-manga__figure img {
		max-block-size: 40rem;
	}

	.founder-manga__download {
		font-size: 2rem;
	}

	.founder-story {
		padding-block: 6rem 8rem;
	}

	.founder-story__heading {
		gap: 1.2rem;
	}

	.founder-story__title {
		font-size: 3.2rem;
	}

	.founder-story__body {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 6rem;
		margin-block-start: 6rem;
	}

	.founder-story__text {
		gap: 2.2rem;
		font-size: 1.6rem;
	}

	.founder-story__figure figcaption {
		font-size: 1.4rem;
	}

	.founder-pager {
		padding-block-end: 8rem;
	}

	.founder-pager>.layout-inner {
		justify-content: center;
		gap: 6rem;
		min-block-size: calc(1.8em + 3.6rem);
		padding: 1.4rem .8rem;
		font-size: 1.6rem;
	}
}
