/**
 * スーツ詳細ページ
 *
 * このサイトは body に濃い茶色（#47382E）が敷かれており、
 * 各ページがセクションごとに自前の背景で覆う作りになっている。
 * 詳細ページも同様に背景を敷かないと、濃茶の上に文字が乗る。
 *
 * 色は先頭のカスタムプロパティにまとめてあるので、
 * 配色を変えるときはここだけを直せばよい。
 */

.kstc-suit-page {
	/* サイトの配色（サブページのFVと同じベージュ系） */
	--kstc-bg: #eacd94;
	--kstc-fg: #2c241f;
	--kstc-muted: rgba(44, 36, 31, 0.55);
	--kstc-line: rgba(44, 36, 31, 0.25);

	margin: 0;
	padding: 70px 20px 110px;
	background-color: var(--kstc-bg);
	color: var(--kstc-fg);
}

.kstc-suit-page__inner {
	width: 900px;
	max-width: 100%;
	margin: 0 auto;
}

.kstc-suit-page__title {
	margin: 0 0 40px;
	color: var(--kstc-fg);
	font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
	font-size: 2.8rem;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-align: center;
}

/* 写真 ------------------------------------------------------------- */

.kstc-suit__photos {
	margin: 0 0 45px;
}

.kstc-suit__main {
	margin: 0;
}

.kstc-suit__main-img {
	display: block;
	width: 100%;
	height: auto;
}

.kstc-suit__subs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.kstc-suit__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

/* 説明文 ----------------------------------------------------------- */

.kstc-suit__description {
	margin: 0 0 45px;
	font-size: 1.5rem;
	line-height: 2.1;
	letter-spacing: 0.04em;
}

.kstc-suit__description p {
	margin: 0 0 1em;
}

.kstc-suit__description p:last-child {
	margin-bottom: 0;
}

/* 仕様 ------------------------------------------------------------- */

/*
 * ラベル列は中身の長さに合わせる。
 * em で固定すると、親の文字サイズ次第で幅が足りず
 * 「シーン」のような3文字でも折り返してしまう。
 * max-content なら必要なぶんだけ確保され、
 * 余った幅はすべて値の欄に回る。
 */
.kstc-suit__spec {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0;
	margin: 0 0 45px;
	border-top: 1px solid var(--kstc-line);
}

.kstc-suit__spec-label,
.kstc-suit__spec-value {
	margin: 0;
	padding: 15px 4px;
	border-bottom: 1px solid var(--kstc-line);
	font-size: 1.4rem;
	line-height: 1.7;
}

.kstc-suit__spec-label {
	padding-right: 1.5em;
	color: var(--kstc-muted);
	/* 念のため。ラベルは常に1行に収める */
	white-space: nowrap;
}

/* 導線 ------------------------------------------------------------- */

.kstc-suit__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.kstc-suit__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	padding: 15px 26px;
	border: 1px solid var(--kstc-fg);
	color: var(--kstc-fg);
	font-size: 1.3rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.kstc-suit__nav-link:hover,
.kstc-suit__nav-link:focus-visible {
	background-color: var(--kstc-fg);
	color: var(--kstc-bg);
}

/* aspect-ratio 未対応ブラウザ向けの保険 */
@supports not (aspect-ratio: 1) {
	.kstc-suit__sub {
		position: relative;
		padding-top: 133.33%;
	}

	.kstc-suit__sub-img {
		position: absolute;
		inset: 0;
	}
}

@media screen and (max-width: 767px) {
	.kstc-suit-page {
		padding: 45px 20px 75px;
	}

	.kstc-suit-page__title {
		margin-bottom: 28px;
		font-size: 2.1rem;
	}

	.kstc-suit__subs {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.kstc-suit__description {
		font-size: 1.3rem;
		line-height: 2;
	}

	/* 列幅は max-content が決めるので、ここでの指定は不要 */
	.kstc-suit__spec-label,
	.kstc-suit__spec-value {
		padding: 13px 2px;
		font-size: 1.3rem;
	}

	.kstc-suit__spec-label {
		padding-right: 1.2em;
	}

	.kstc-suit__nav-link {
		flex: 1 1 100%;
		min-width: 0;
	}
}
