/* ==========================================================================
   History timeline — structure based on jmd.co.jp/kaiji80
   ========================================================================== */

.history-page {
	--en: "Jost", "Roboto", sans-serif;
	--history-bg: #071018;
	--history-bg-2: #101820;
	--history-gold: #c4a15a;
	--history-gold-2: #e8d09a;
	--history-line: rgba(196, 161, 90, 0.45);
	--history-paper: #f4efe6;
	color: #e8e4dc;
	background: var(--history-bg);
}

body.page_history,
body.page_history #wrapper,
body.page_history .site-main {
	background: var(--history-bg, #071018);
}

body.page_history #wrapper {
	overflow: visible;
}

.history-shell {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 28px;
}

.history-kicker {
	margin: 0 0 12px;
	font-family: var(--en);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: var(--history-gold);
}

.history-kicker--light {
	color: var(--history-gold-2);
}

.history-h2 {
	margin: 0 0 14px;
	font-size: clamp(2.6rem, 3.4vw, 3.8rem);
	line-height: 1.3;
	font-weight: 800;
	color: #fff;
}

.history-h2--light {
	color: #fff;
}

.history-lead {
	margin: 0;
	max-width: 42em;
	font-size: 1.5rem;
	line-height: 1.9;
	color: #c9c3b8;
}

.history-lead--light {
	color: #d9d3c8;
}

/* Hero */

.history-hero {
	position: relative;
	min-height: min(62vh, 560px);
	display: grid;
	align-items: end;
	overflow: hidden;
	color: #fff;
	background: #0b1822;
}

.history-hero__media {
	position: absolute;
	inset: 0;
}

.history-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.history-hero__img--sp {
	display: none;
}

.history-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 16, 24, 0.88) 0%, rgba(7, 16, 24, 0.58) 52%, rgba(7, 16, 24, 0.28) 100%),
		linear-gradient(0deg, rgba(7, 16, 24, 0.92) 0%, rgba(7, 16, 24, 0.2) 55%);
}

.history-hero__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: 1080px;
	width: 100%;
	margin: 0 auto;
	padding: 80px 28px 56px;
}

.history-hero__brand {
	margin: 0 0 12px;
	font-family: var(--en);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	color: var(--history-gold-2);
}

.history-hero__title {
	margin: 0 0 18px;
	font-size: clamp(3.8rem, 6vw, 6.4rem);
	line-height: 1.1;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.history-hero__lead {
	margin: 0;
	max-width: 34em;
	font-size: 1.6rem;
	line-height: 1.85;
	color: #efeae1;
}

/* Decade index */

.history-index {
	position: sticky;
	top: calc(150px + var(--admin-bar-h));
	z-index: 20;
	background: rgba(7, 16, 24, 0.92);
	border-top: 1px solid rgba(196, 161, 90, 0.25);
	border-bottom: 1px solid rgba(196, 161, 90, 0.25);
	backdrop-filter: blur(8px);
}

.history-index__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 52px;
}

.history-index__label {
	margin: 0;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	color: var(--history-gold);
	white-space: nowrap;
}

.history-index ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
}

.history-index a {
	display: block;
	padding: 10px 14px;
	font-family: var(--en);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #efeae1;
	text-decoration: none;
}

.history-index a:hover {
	opacity: 1;
	color: var(--history-gold-2);
}

/* Timeline */

.history-timeline {
	padding: 72px 0 40px;
	background:
		radial-gradient(circle at 12% 8%, rgba(196, 161, 90, 0.08), transparent 28%),
		var(--history-bg);
}

header.history-timeline__head {
	position: static;
	width: auto;
	height: auto;
	max-width: none;
	margin: 0 0 56px;
	padding: 0 0 28px;
	background: transparent;
	color: inherit;
	border-bottom: 1px solid var(--history-line);
}

header.history-timeline__head h2 {
	position: static;
	left: auto;
	top: auto;
}

.history-decade {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 12px 28px;
	scroll-margin-top: calc(210px + var(--admin-bar-h));
}

.history-decade + .history-decade {
	margin-top: 8px;
}

.history-decade__year {
	margin: 0;
	position: sticky;
	top: calc(214px + var(--admin-bar-h));
	align-self: start;
	padding-top: 8px;
	font-family: var(--en);
	font-size: clamp(3.4rem, 4vw, 5.2rem);
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--history-gold);
}

.history-decade__body {
	position: relative;
	padding: 8px 0 48px 36px;
	border-left: 1px solid var(--history-line);
}

.history-decade__body::before {
	content: "";
	position: absolute;
	top: 18px;
	left: -5px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--history-gold);
	box-shadow: 0 0 0 4px rgba(196, 161, 90, 0.18);
}

/* World / Japan history markers */

.history-marker {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 16px;
	margin: 18px 0 28px;
	padding: 12px 16px 12px 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(196, 161, 90, 0.22);
}

.history-marker::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -41px;
	width: 36px;
	height: 1px;
	background: var(--history-line);
}

.history-marker time {
	font-family: var(--en);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--history-gold-2);
	white-space: nowrap;
}

.history-marker p {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 700;
	color: #fff;
}

/* Company milestones */

.history-entry {
	margin: 0 0 48px;
	padding: 28px 28px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-entry__date {
	margin: 0 0 8px;
	font-family: var(--en);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--history-gold);
}

.history-entry__title {
	margin: 0 0 22px;
	font-size: clamp(2.2rem, 3vw, 3rem);
	line-height: 1.35;
	font-weight: 800;
	color: #fff;
}

.history-entry__sub {
	display: block;
	margin-top: 0.12em;
	font-size: clamp(1.25rem, 5.6vw, 1em);
	line-height: 1.35;
	white-space: nowrap;
}

.history-entry__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
	gap: 24px 28px;
	align-items: start;
}

.history-entry__copy p {
	margin: 0 0 14px;
	font-size: 1.5rem;
	line-height: 1.9;
	color: #d4cfc4;
}

.history-entry__copy p:last-child {
	margin-bottom: 0;
}

.history-entry__fig {
	margin: 0;
	background: #000;
	border: 1px solid rgba(196, 161, 90, 0.28);
}

.history-entry__fig img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.history-entry__fig figcaption {
	padding: 10px 12px 12px;
	font-size: 1.2rem;
	color: var(--history-gold-2);
	background: rgba(0, 0, 0, 0.35);
}

.history-related {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(196, 161, 90, 0.2);
}

.history-related__label {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--history-gold);
}

.history-related ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.history-related a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.history-related a::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--history-gold);
	border-bottom: 2px solid var(--history-gold);
	transform: rotate(-45deg);
}

.history-related a:hover {
	opacity: 1;
	color: var(--history-gold-2);
}

/* Future */

.history-future {
	padding: 80px 0;
	background:
		linear-gradient(135deg, rgba(124, 62, 141, 0.35), transparent 46%),
		linear-gradient(180deg, #0f2430, #0a1a24);
}

.history-future .history-lead {
	margin-bottom: 32px;
}

.history-future__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
}

.history-future__links a {
	display: grid;
	gap: 8px;
	min-height: 140px;
	padding: 22px 22px 20px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-decoration: none;
}

.history-future__links a:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.1);
}

.history-future__links span {
	font-size: 1.8rem;
	font-weight: 800;
}

.history-future__links small {
	font-size: 1.3rem;
	line-height: 1.6;
	color: #d9d3c8;
}

@media screen and (max-width: 900px) {
	.history-entry__grid,
	.history-future__links {
		grid-template-columns: 1fr;
	}

	.history-decade {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.history-decade__year {
		position: relative;
		top: auto;
		padding: 18px 0 8px;
		background: var(--history-bg);
	}

	.history-index {
		top: calc(60px + 9.4vw + var(--admin-bar-h));
	}

	.history-decade {
		scroll-margin-top: calc(120px + 9.4vw + var(--admin-bar-h));
	}
}

@media screen and (max-width: 767px) {
	.history-shell,
	.history-hero__inner {
		padding-left: 4.5vw;
		padding-right: 4.5vw;
	}

	.history-hero {
		min-height: 52vh;
	}

	.history-hero__img--pc {
		display: block;
	}

	.history-hero__img--sp {
		display: none;
	}

	.history-hero__brand {
		font-size: 1.2rem;
		letter-spacing: 0.16em;
	}

	.history-hero__title {
		font-size: 3rem;
	}

	.history-hero__lead {
		font-size: 1.35rem;
		line-height: 1.7;
	}

	.history-hero__br {
		display: none;
	}

	.history-kicker {
		font-size: 1.15rem;
	}

	.history-h2 {
		font-size: 2.2rem;
	}

	.history-lead {
		font-size: 1.35rem;
		line-height: 1.75;
	}

	.history-decade__year {
		font-size: 2.8rem;
	}

	.history-marker time {
		font-size: 1.15rem;
	}

	.history-marker p {
		font-size: 1.3rem;
	}

	.history-entry__date {
		font-size: 1.2rem;
	}

	.history-entry__title {
		font-size: 1.9rem;
	}

	.history-entry__copy p {
		font-size: 1.35rem;
		line-height: 1.75;
	}

	.history-future__links span {
		font-size: 1.6rem;
	}

	.history-future__links small {
		font-size: 1.2rem;
	}

	.history-index__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.history-index a {
		padding: 8px 10px;
	}

	.history-decade__body {
		padding-left: 22px;
		padding-bottom: 32px;
	}

	.history-marker::before {
		left: -27px;
		width: 22px;
	}

	.history-entry {
		padding: 20px 16px 18px;
	}

	.history-timeline,
	.history-future {
		padding: 48px 0;
	}

	.history-entry__title--fit {
		font-size: 1.72rem;
		white-space: nowrap;
	}
}

@media screen and (max-width: 1279px) {
	.history-index {
		top: calc(60px + var(--admin-bar-h, 0px));
	}
}
