@charset "UTF-8";

/* 会社概要ページ */

.company-page {
	padding-bottom: 48px;
}

/* 見出し：取り扱い品目一覧ページと同じサイズ・上下余白 */
.company-page .products-page__header {
	margin: 56px 0 56px;
}

.company-page .products-page__title {
	margin: 0;
	color: var(--color-navy);
	font-size: clamp(3.6rem, 4.4vw, 5.2rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
}

.company-hero .products-hero__catch {
	display: none;
}

/* ヒーロー画像：取り扱い品目一覧と同じサイズ・位置 */
.company-page .products-hero {
	width: 100%;
	margin: 0 0 184px;
}

.company-page .products-hero__inner {
	position: relative;
	width: min(calc(100% - 80px), 1400px);
	margin-inline: auto;
}

.company-page .products-hero__media {
	position: relative;
	width: 78%;
	margin-left: auto;
	margin-right: 0;
	overflow: hidden;
	background: #d8dee3;
	line-height: 0;
}

.company-page .products-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

@media screen and (min-width: 768px) {
	.company-page .products-page__header {
		margin: 64px 0 72px;
	}

	.company-page .products-page__title {
		font-size: clamp(4.2rem, 4.6vw, 5.6rem);
		letter-spacing: 0.14em;
	}

	.company-page .products-hero {
		width: 100%;
		margin: 0 auto 184px;
	}

	.company-page .products-hero__media {
		width: 78%;
		margin-left: auto;
		margin-right: 0;
	}

	.company-section__heading {
		margin: 0 0 56px;
	}
}

.company-section__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin: 0 0 40px;
	text-align: center;
}

.company-section__title {
	margin: 0;
	color: var(--color-navy);
	font-size: clamp(2.4rem, 2.8vw, 3.2rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

/* Message */

.company-message {
	margin: 72px 0 96px;
}

.company-message__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 88px;
	align-items: center;
}

.company-message__figure {
	margin: 0;
	background: #e8eef2;
}

.company-message__image {
	display: block;
	width: 100%;
	height: auto;
}

.company-message__content {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	background: transparent;
}

.company-message__text {
	margin: 0;
	color: #333;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	line-height: 2.1;
}

.company-message__sign {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.6em;
	margin: 32px 0 0;
	color: var(--color-navy);
	letter-spacing: 0.06em;
	text-align: right;
}

.company-message__sign-title {
	font-size: 1.5rem;
	font-weight: 700;
}

.company-message__sign-name {
	font-size: 2.2rem;
	font-weight: 700;
}

/* Profile */

.company-profile {
	position: relative;
	z-index: 1;
	margin: 0 0 96px;
}

.company-profile__list {
	width: min(100%, 920px);
	margin: 0 auto;
	padding: 0;
	border: 0;
}

.company-profile__row {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 0 32px;
	padding: 0;
	border: 0;
}

.company-profile__label,
.company-profile__value {
	margin: 0;
	padding: 22px 0;
	border-top: 1px solid #d9e0e5;
	border-bottom: 1px solid #d9e0e5;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	line-height: 1.8;
}

.company-profile__row + .company-profile__row .company-profile__label,
.company-profile__row + .company-profile__row .company-profile__value {
	border-top: 0;
}

.company-profile__label {
	color: var(--color-navy);
	font-weight: 700;
	letter-spacing: 0.06em;
	border-top-color: var(--color-navy);
	border-bottom-color: var(--color-navy);
}

.company-profile__value {
	color: #333;
	font-weight: 400;
	border-top-color: #c5ced4;
	border-bottom-color: #c5ced4;
}

.company-profile__role {
	font-size: 0.88em;
	font-weight: 400;
}

/* Locations */

.company-locations {
	position: relative;
	z-index: 0;
	margin: -40px 0 96px;
	overflow: visible;
}

.company-locations__stage {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	overflow: visible;
}

.company-locations__map-visual {
	position: relative;
	z-index: 0;
	margin: 0;
	width: 100%;
	will-change: transform;
	transform: translate3d(0, var(--company-map-parallax, 0px), 0);
}

.company-locations__map-visual img {
	display: block;
	width: 100%;
	height: auto;
}

.company-locations__heading-wrap {
	position: absolute;
	top: 14%;
	left: 0;
	right: 0;
	z-index: 2;
	pointer-events: none;
}

.company-locations__heading-wrap .company-section__heading {
	pointer-events: auto;
	margin-bottom: 0;
}

.company-locations__list {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: min(420px, 38vw);
}

/* 左上テキストを中央寄りへ */
.company-locations__list--primary {
	top: 22%;
	left: clamp(48px, 22vw, 320px);
}

/* 右下テキスト */
.company-locations__list--secondary {
	right: clamp(48px, 8vw, 120px);
	bottom: 18%;
	text-align: left;
}

.company-locations__item {
	margin: 0;
}

.company-locations__name {
	margin: 0 0 6px;
	color: #222;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.company-locations__line {
	margin: 0;
	color: #333;
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1.75;
}

/* History */

.company-history {
	margin: 48px 0 0;
}

.company-history__stage {
	position: relative;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
}

.company-history__list {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 0 2rem;
	list-style: none;
}

.company-history__rail {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.company-history__line {
	stroke: var(--color-navy);
	stroke-width: 1.5;
	stroke-linecap: round;
}

.company-history__item {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 2.4rem;
	box-sizing: border-box;
	min-height: 1.7rem;
	margin: 0 0 var(--history-gap, 2rem);
	margin-left: var(--history-indent, 0);
	padding: 0 0 0 1.55rem;
	white-space: nowrap;
}

.company-history__dot {
	position: absolute;
	top: 50%;
	left: 3.5px;
	z-index: 1;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-navy);
	transform: translate(-50%, -50%);
}

.company-history__date {
	flex: 0 0 auto;
	min-width: 9.5em;
	color: var(--color-navy);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.7rem;
}

.company-history__text {
	flex: 0 1 auto;
	color: var(--color-navy);
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.7rem;
}

/* 沿革下キャラクター（このページのみ） */
.company-history-character {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	min-height: 0;
	margin-top: 28px;
	margin-bottom: 0;
	padding-right: 0;
	overflow: visible;
	pointer-events: none;
}

.company-history-character__image {
	display: block;
	width: clamp(120px, 10vw, 170px);
	height: auto;
	margin: 0;
	pointer-events: none;
	transform: translate3d(0, 0, 0);
}

.company-history-character__image.is-reveal {
	opacity: 0;
	transform: translate3d(120px, 0, 0);
	transition:
		opacity 0.85s cubic-bezier(0.33, 0, 0.2, 1),
		transform 1.1s cubic-bezier(0.33, 0, 0.15, 1);
	will-change: opacity, transform;
}

.company-history-character__image.is-reveal.is-inview {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
	.company-history-character__image.is-reveal {
		opacity: 1;
		transform: none;
		transition: none;
		will-change: auto;
	}
}

/* iPad: 事業所の左右テキスト位置と、沿革までの余白 */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	.company-locations {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	/* 右テキストのはみ出しを避けつつ、企業情報〜事業所と同程度の空きを確保 */
	.company-locations + .company-page__inner {
		padding-top: 400px;
	}

	.company-history {
		margin-top: 0;
	}

	.company-locations__list {
		max-width: min(440px, 42vw);
	}

	.company-locations__list--primary {
		left: clamp(20px, 5vw, 72px);
	}

	.company-locations__list--secondary {
		top: calc(22% + 56rem);
		bottom: auto;
		right: clamp(24px, 4vw, 56px);
	}
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
	.company-locations + .company-page__inner {
		padding-top: 240px;
	}
}

/* SP */

@media screen and (max-width: 767px) {
	.company-page {
		padding-bottom: 36px;
	}

	.company-page .products-page__header {
		margin: 36px 0 44px;
		padding-top: 20px;
	}

	.company-page .products-page__title {
		font-size: clamp(2.4rem, 7vw, 3.2rem);
		letter-spacing: 0.12em;
	}

	.company-page .products-hero {
		width: 100%;
		margin: 8px 0 36px;
		padding: 0;
		overflow: visible;
	}

	.company-page .products-hero__inner {
		width: 100%;
		margin: 0;
	}

	.company-page .products-hero__media {
		width: 100%;
		margin: 0;
	}

	.company-message {
		margin: 48px 0 64px;
	}

	.company-section__heading {
		gap: 0;
		margin: 0 0 24px;
	}

	.company-section__title {
		font-size: 2rem;
	}

	.company-message__body {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.company-message__content {
		width: 100%;
		margin: 0;
		padding: 0;
		background: transparent;
	}

	.company-message__text {
		font-size: 1.3rem;
		line-height: 1.95;
	}

	.company-message__sign {
		margin-top: 24px;
	}

	.company-message__sign-title {
		font-size: 1.3rem;
	}

	.company-message__sign-name {
		font-size: 1.9rem;
	}

	.company-profile {
		margin: 0 0 64px;
	}

	.company-page {
		overflow-x: clip;
	}

	.company-locations {
		margin: 56px 0 64px;
		padding: 0;
		overflow-x: clip;
		overflow-y: visible;
	}

	.company-profile__list {
		width: 100%;
		border-top: 1px solid #d5dadf;
	}

	.company-profile__row {
		grid-template-columns: minmax(6.2em, 32%) minmax(0, 1fr);
		gap: 0 16px;
		align-items: start;
		border-bottom: 1px solid #d5dadf;
	}

	.company-profile__label,
	.company-profile__value {
		padding: 18px 0;
		border-top: 0;
		border-bottom: 0;
		font-size: 1.25rem;
		line-height: 1.85;
	}

	.company-profile__label {
		position: relative;
		padding-top: 20px;
		color: #222;
		font-weight: 700;
	}

	.company-profile__label::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 1.5px;
		background: #222;
	}

	.company-profile__value {
		padding-top: 20px;
		color: #222;
	}

	.company-profile__role {
		font-size: 0.92em;
	}

	.company-locations__stage {
		position: relative;
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-left: 0;
		padding: 0 20px 48px;
		overflow-x: clip;
		overflow-y: visible;
	}

	.company-locations__heading-wrap {
		position: relative;
		z-index: 2;
		margin: 0 0 28px;
		padding: 0;
	}

	.company-locations__heading-wrap .company-section__heading {
		margin-bottom: 0;
	}

	/* 地図：背景。北海道は切れても可／九州は収める。下寄りに配置 */
	.company-locations__map-visual {
		position: absolute;
		top: 13.5rem;
		left: 0;
		z-index: 0;
		width: 100%;
		height: calc(100% - 11rem);
		max-width: none;
		margin: 0;
		overflow: hidden;
		pointer-events: none;
		will-change: transform;
		transform: translate3d(0, var(--company-map-parallax, 0px), 0);
	}

	.company-locations__map-visual img {
		position: absolute;
		top: 6%;
		left: -6%;
		right: auto;
		display: block;
		width: 128%;
		max-width: none;
		height: auto;
		transform: none;
	}

	.company-locations__list {
		position: relative;
		z-index: 2;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	/* 左上テキスト */
	.company-locations__list--primary {
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
		align-self: flex-start;
		width: min(60%, 245px);
		gap: 28px;
	}

	/* 大阪以降：右下 */
	.company-locations__list--secondary {
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
		align-self: flex-end;
		width: min(82%, 300px);
		margin-top: clamp(56px, 20vw, 120px);
		margin-left: auto;
		margin-right: 0;
		gap: 32px;
		text-align: left;
	}

	.company-locations__name {
		margin: 0 0 8px;
		color: #222;
		font-size: 1.3rem;
		font-weight: 700;
		letter-spacing: 0.03em;
		line-height: 1.55;
	}

	.company-locations__list--secondary .company-locations__name {
		margin-bottom: 12px;
	}

	.company-locations__line {
		margin: 0;
		color: #222;
		font-size: 1.2rem;
		font-weight: 400;
		letter-spacing: 0.02em;
		line-height: 1.7;
	}

	.company-history {
		margin: 32px 0 0;
	}

	.company-history__stage {
		width: 100%;
	}

	.company-history__list {
		width: 100%;
		padding-bottom: 1.5rem;
	}

	.company-history-character {
		min-height: 0;
		margin-top: 16px;
	}

	.company-history-character__image {
		width: clamp(90px, 24vw, 120px);
	}

	.company-history-character__image.is-reveal {
		transform: translate3d(72px, 0, 0);
	}

	.company-history-character__image.is-reveal.is-inview {
		transform: translate3d(0, 0, 0);
	}

	.company-history__rail {
		display: none;
	}

	.company-history__list::before {
		content: "";
		position: absolute;
		top: 0.85em;
		left: 3px;
		z-index: 0;
		width: 1.5px;
		height: calc(100% - 0.85em);
		background: var(--color-navy);
	}

	.company-history__item {
		display: grid;
		grid-template-columns: 1fr;
		align-items: start;
		gap: 4px;
		margin-left: 0;
		margin-bottom: 1.4rem;
		padding: 0 0 0 1.5rem;
		white-space: normal;
	}

	.company-history__dot {
		top: 0.55em;
		left: 0;
		margin-top: 0;
		transform: none;
	}

	.company-history__date {
		min-width: 0;
		font-size: 1.3rem;
	}

	.company-history__text {
		font-size: 1.25rem;
	}
}
