/* =========================================================
   ORIGINAL MAT
   page-original-mat.php
========================================================= */

.hmat-page {
	--hmat-navy: #0b2c49;
	--hmat-navy-dark: #071d30;
	--hmat-blue: #246a91;
	--hmat-gold: #b88958;
	--hmat-bg: #f3f5f6;
	--hmat-card: #ffffff;
	--hmat-ink: #23272b;
	--hmat-muted: #6b747c;
	--hmat-line: #dbe0e4;
	--hmat-shadow: 0 16px 36px rgba(17, 41, 60, 0.08);

	color: var(--hmat-ink);
	background: #fff;
	overflow: hidden;
}

.hmat-page *,
.hmat-page *::before,
.hmat-page *::after {
	box-sizing: border-box;
}

.hmat-page img {
	display: block;
	width: 100%;
	height: auto;
}

.hmat-container {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

/* Heading
--------------------------------------------------------- */

.hmat-section-heading {
	margin-bottom: 48px;
	text-align: center;
}

.hmat-section-heading > p {
	margin: 0 0 9px;
	color: var(--hmat-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.24em;
}

.hmat-section-heading h2 {
	margin: 0;
	color: var(--hmat-navy);
	font-size: clamp(29px, 4vw, 44px);
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.hmat-section-heading > span {
	display: block;
	margin-top: 14px;
	color: var(--hmat-muted);
	font-size: 14px;
	line-height: 1.8;
}

.hmat-section-heading--light h2 {
	color: #fff;
}

/* Hero
--------------------------------------------------------- */

.hmat-hero {
	position: relative;
	min-height: 760px;
	display: flex;
	align-items: center;
	isolation: isolate;
}

.hmat-hero__background,
.hmat-hero__overlay {
	position: absolute;
	inset: 0;
}

.hmat-hero__background {
	z-index: -3;
}

.hmat-hero__background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hmat-hero__overlay {
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(5,26,43,0.96) 0%, rgba(5,26,43,0.88) 46%, rgba(5,26,43,0.34) 76%, rgba(5,26,43,0.08) 100%);
}

.hmat-hero__inner {
	padding-block: 105px;
}

.hmat-hero__content {
	width: min(740px, 68%);
	color: #fff;
}

.hmat-hero__eyebrow {
	margin: 0 0 18px;
	color: #d7b38a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.27em;
}

.hmat-hero h1 {
	margin: 0;
	font-family: "Noto Serif JP", "Yu Mincho", serif;
	font-size: clamp(46px, 6vw, 80px);
	font-weight: 500;
	line-height: 1.28;
	letter-spacing: 0.05em;
}

.hmat-hero__text {
	max-width: 650px;
	margin: 28px 0 0;
	color: rgba(255,255,255,0.76);
	font-size: 15px;
	line-height: 2;
}

.hmat-hero__features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 48px;
	border-top: 1px solid rgba(255,255,255,0.18);
	border-bottom: 1px solid rgba(255,255,255,0.18);
}

.hmat-hero-feature {
	padding: 26px 18px;
	text-align: center;
}

.hmat-hero-feature + .hmat-hero-feature {
	border-left: 1px solid rgba(255,255,255,0.18);
}

.hmat-hero-feature__icon {
	display: grid;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	place-items: center;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	color: #d7b38a;
	font-size: 19px;
}

.hmat-hero-feature h2 {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.5;
}

.hmat-hero-feature p {
	margin: 0;
	color: rgba(255,255,255,0.64);
	font-size: 12px;
	line-height: 1.75;
}

/* Mat types
--------------------------------------------------------- */

.hmat-type-section {
	padding: clamp(78px, 9vw, 128px) 0;
	background: #fff;
}

.hmat-type-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.hmat-type-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--hmat-line);
	background: #fff;
	box-shadow: var(--hmat-shadow);
}

.hmat-type-card__head {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 66px;
}

.hmat-type-card__head > span {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: var(--hmat-navy);
	color: #fff;
	font-family: Georgia, serif;
	font-size: 18px;
}

.hmat-type-card__head h3 {
	margin: 0;
	color: var(--hmat-navy);
	font-size: 15px;
	line-height: 1.55;
}

.hmat-type-card__image {
	aspect-ratio: 4 / 3;
	margin-top: 16px;
	overflow: hidden;
	background: #edf0f2;
}

.hmat-type-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hmat-type-card:hover .hmat-type-card__image img {
	transform: scale(1.025);
}

.hmat-type-card > p {
	margin: 18px 0 0;
	color: var(--hmat-muted);
	font-size: 13px;
	line-height: 1.8;
}

.hmat-type-card__label {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 18px;
	color: var(--hmat-blue);
	font-size: 11px;
	font-weight: 700;
}

.hmat-type-note {
	display: flex;
	gap: 9px;
	justify-content: center;
	margin: 28px 0 0;
	color: var(--hmat-muted);
	font-size: 12px;
	line-height: 1.7;
}

.hmat-type-note i {
	margin-top: 2px;
	color: var(--hmat-gold);
}

/* Reasons
--------------------------------------------------------- */

.hmat-reason-section {
	padding: clamp(78px, 9vw, 120px) 0;
	background:
		linear-gradient(135deg, rgba(36,106,145,0.12), transparent 45%),
		var(--hmat-navy-dark);
}

.hmat-reason-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid rgba(255,255,255,0.16);
	border-bottom: 1px solid rgba(255,255,255,0.16);
}

.hmat-reason-item {
	padding: 38px 24px;
	color: #fff;
	text-align: center;
}

.hmat-reason-item + .hmat-reason-item {
	border-left: 1px solid rgba(255,255,255,0.16);
}

.hmat-reason-item__icon {
	display: grid;
	width: 58px;
	height: 58px;
	margin: 0 auto 20px;
	place-items: center;
	border: 1px solid rgba(255,255,255,0.28);
	border-radius: 50%;
	color: #d7b38a;
	font-size: 21px;
}

.hmat-reason-item h3 {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.5;
}

.hmat-reason-item p {
	margin: 0;
	color: rgba(255,255,255,0.65);
	font-size: 13px;
	line-height: 1.8;
}

/* Order flow
--------------------------------------------------------- */

.hmat-order-section {
	padding: clamp(78px, 9vw, 128px) 0;
	background: var(--hmat-bg);
}

.hmat-order-list {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr) 28px
		minmax(0, 1fr) 28px
		minmax(0, 1fr) 28px
		minmax(0, 1fr) 28px
		minmax(0, 1fr);
	align-items: center;
}

.hmat-order-item {
	position: relative;
	min-height: 270px;
	padding: 28px 20px;
	border: 1px solid var(--hmat-line);
	background: #fff;
	text-align: center;
}

.hmat-order-item__number {
	position: absolute;
	top: 12px;
	left: 14px;
	color: #d9dfe4;
	font-family: Georgia, serif;
	font-size: 28px;
}

.hmat-order-item__icon {
	display: grid;
	width: 62px;
	height: 62px;
	margin: 20px auto;
	place-items: center;
	border-radius: 50%;
	background: #edf2f5;
	color: var(--hmat-blue);
	font-size: 22px;
}

.hmat-order-item h3 {
	margin: 0 0 12px;
	color: var(--hmat-navy);
	font-size: 16px;
	line-height: 1.5;
}

.hmat-order-item p {
	margin: 0;
	color: var(--hmat-muted);
	font-size: 13px;
	line-height: 1.8;
}

.hmat-order-arrow {
	color: var(--hmat-gold);
	text-align: center;
	font-size: 14px;
}

/* CTA
--------------------------------------------------------- */

.hmat-cta {
	padding: clamp(68px, 8vw, 100px) 0;
	background: #e8ecef;
}

.hmat-cta__inner {
	display: flex;
	gap: 40px;
	align-items: center;
	justify-content: space-between;
}

.hmat-cta__inner > div > p {
	margin: 0 0 10px;
	color: var(--hmat-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.hmat-cta h2 {
	margin: 0;
	color: var(--hmat-navy);
	font-size: clamp(27px, 3.5vw, 40px);
	line-height: 1.5;
}

.hmat-cta__inner > div > span {
	display: block;
	margin-top: 15px;
	color: var(--hmat-muted);
	font-size: 14px;
}

.hmat-cta__button {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 28px;
	align-items: center;
	justify-content: center;
	min-width: 230px;
	padding: 18px 24px;
	background: var(--hmat-navy);
	color: #fff;
	text-decoration: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.hmat-cta__button:hover {
	color: #fff;
	opacity: 0.88;
	transform: translateY(-2px);
}

/* Tablet
--------------------------------------------------------- */

@media (max-width: 1050px) {
	.hmat-hero__content {
		width: min(760px, 78%);
	}

	.hmat-type-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hmat-reason-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hmat-reason-item:nth-child(4) {
		border-top: 1px solid rgba(255,255,255,0.16);
		border-left: 0;
	}

	.hmat-reason-item:nth-child(5) {
		border-top: 1px solid rgba(255,255,255,0.16);
	}

	.hmat-order-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 14px;
	}

	.hmat-order-arrow {
		display: none;
	}
}

/* Mobile
--------------------------------------------------------- */

@media (max-width: 767px) {
	.hmat-container {
		width: min(100% - 32px, 1180px);
	}

	.hmat-hero {
		min-height: auto;
		align-items: flex-end;
	}

	.hmat-hero__background img {
		object-position: 64% center;
	}

	.hmat-hero__overlay {
		background:
			linear-gradient(180deg, rgba(5,26,43,0.46) 0%, rgba(5,26,43,0.86) 42%, rgba(5,26,43,0.98) 100%);
	}

	.hmat-hero__inner {
		padding-block: 100px 54px;
	}

	.hmat-hero__content {
		width: 100%;
	}
  .hmat-hero h1 {
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.45;
    letter-spacing: .04em;
  }

	.hmat-hero__features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 38px;
	}

	.hmat-hero-feature {
		padding: 22px 14px;
	}

	.hmat-hero-feature:nth-child(3) {
		border-top: 1px solid rgba(255,255,255,0.18);
		border-left: 0;
	}

	.hmat-hero-feature:nth-child(4) {
		border-top: 1px solid rgba(255,255,255,0.18);
	}

	.hmat-type-grid {
		grid-template-columns: 1fr;
	}

	.hmat-reason-grid {
		grid-template-columns: 1fr;
	}

	.hmat-reason-item {
		display: grid;
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 8px 18px;
		padding: 25px 6px;
		text-align: left;
	}

	.hmat-reason-item + .hmat-reason-item,
	.hmat-reason-item:nth-child(4),
	.hmat-reason-item:nth-child(5) {
		border-top: 1px solid rgba(255,255,255,0.16);
		border-left: 0;
	}

	.hmat-reason-item__icon {
		grid-row: span 2;
		width: 54px;
		height: 54px;
		margin: 0;
	}

	.hmat-reason-item h3 {
		margin: 2px 0 0;
	}

	.hmat-order-list {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.hmat-order-item {
		min-height: auto;
		padding: 24px 20px 24px 82px;
		text-align: left;
	}

	.hmat-order-item__number {
		top: 10px;
		right: 14px;
		left: auto;
	}

	.hmat-order-item__icon {
		position: absolute;
		top: 50%;
		left: 18px;
		width: 48px;
		height: 48px;
		margin: 0;
		transform: translateY(-50%);
	}

	.hmat-order-item h3 {
		margin-bottom: 7px;
	}

	.hmat-cta__inner {
		display: block;
	}

	.hmat-cta h2 br {
		display: none;
	}

	.hmat-cta__button {
		width: 100%;
		margin-top: 28px;
	}
}
