/* TOP（front-page）— セクションごとに幅指定 */

.g-home-page {
	--g-home-fv-width: 90%;
	--g-home-about-width: 90%;
	--g-home-news-width: 100%;
	--g-home-collection-width: 100%;
	/* デザイン想定（layout max）時のみ左右見切れ。大画面ではカードを伸ばさない */
	--g-collection-slide-max: calc(var(--g-layout-max-width) / 2);
	--g-home-trial-width: min(100% - 48px, var(--g-layout-max-width));
}

/* 1. FV — width 90% / 見出し2行 / 下画像 */
.g-hero__inner {
	width: var(--g-home-fv-width);
	max-width: none;
	margin-inline: auto;
	padding-block: 6rem 64px;
}

.g-hero__title {
	margin: 0 0 8rem;
	font-family: var(--g-font-mincho);
	font-size: clamp(1.5rem, 4vw, 4.2rem);
	font-weight: 400;
	line-height: 1.55;
	text-align: center;
}

.g-hero__title-line {
	display: block;
}

.g-hero__media {
	width: 80%;
	margin-inline: auto;
}

.g-hero__image {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--g-color-section);
}

.g-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.g-hero__scroll {
	position: absolute;
	inset: -2% auto auto 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	transform: translate(-50%, -50%);
	text-decoration: none;
	color: var(--g-color-gold);
}

.g-hero__scroll-text {
	font-family: var(--g-color-gold);
	font-size: 0.85rem;
	font-optical-sizing: auto;
	letter-spacing: 0.16em;
	text-transform: lowercase;
}

.g-hero__scroll-lines {
	display: flex;
	gap: 0.35rem;
	height: 2.5rem;
}

.g-hero__scroll-line {
	display: block;
	width: 1px;
	height: 100%;
	background: var(--g-color-gold);
}

/* 2. About — 中央見出し / 左画像・右段落ボックス */
.g-home-about{
	background: var(--g-color-gold);
	margin-top: -220px;
}
.g-home-about__inner {
	width: var(--g-home-about-width);
	max-width: none;
	margin-inline: auto;
	padding-block: 12rem 9rem;
}

.g-home-about__title {
	margin: 0 0 4rem;
	font-family: var(--g-font-mincho);
	font-size: clamp(1.75rem, 6.8vw, 6.8rem);
	font-optical-sizing: auto;
	font-weight: 400;
	text-align: center;
	letter-spacing: 0.04em;
	color: var(--g-color-white);
}

.g-home-about__box {
	display: flex;
	gap: 6rem;
	width:90%;
	margin-inline: auto;
	justify-content: center;
}

.g-home-about__media {
	margin: 0;
	min-height: 280px;
	width: fit-content;
}

.g-home-about__image {
	display: grid;
	place-items: center;
	height: 100%;
	min-height: 280px;
	width: 100%;
	color: var(--g-color-muted);
}

.g-home-about__image-label {
	font-family: var(--g-font-latin);
	font-size: 0.9rem;
	letter-spacing: 0.06em;
}

.g-home-about__body {
	display: grid;
	align-content: center;
	gap: 1rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.g-home-about__text {
	margin: 0;
	font-size: 1.2rem;
	line-height: 2;
	font-family: var(--g-font-mincho);
}

/* 3. News — 左見出し / 右リスト */
.g-home-news__inner {
	width: var(--g-home-news-width);
	max-width: none;
	margin-inline: auto;
	padding-block: 8rem;
	background: var(--g-color-section);
}

.g-home-news__layout {
	width: 80%;
	margin-inline: auto;
	display: grid;
	grid-template-columns:minmax(10rem, 22rem) minmax(0, 1fr);
	gap: 3rem 4rem;
	align-items: start;
}

.g-home-news__title {
	margin: 0 0 1rem;
	font-family: var(--g-font-latin);
	font-size: 6rem;
	font-optical-sizing: auto;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.12em;
	color: var(--g-color-accent-gold);
}

.g-home-news__more {
	font-family: var(--g-font-latin);
	letter-spacing: 0.1em;
}

.g-home-news__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.g-home-news__item {
	position: relative;
	border-top: 1px solid var(--g-color-border);
}

.g-home-news__item::after {
	content: "→";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--g-font-latin);
	font-size: 1rem;
	line-height: 1;
	color: var(--g-color-text);
	pointer-events: none;
}

.g-home-news__item:last-of-type {
	border-bottom: 1px solid var(--g-color-border);
}

.g-news-list-item {
	display: grid;
	grid-template-columns: max-content max-content max-content minmax(0, 1fr);
	gap: 1.25rem;
	align-items: baseline;
	padding-block: 3.15rem;
	padding-right: 2rem;
	text-decoration: none;
}

.g-news-list-item:not(:has(.g-news-list-item__categories)):not(:has(.g-news-list-item__tags)) {
	grid-template-columns: max-content minmax(0, 1fr);
}

.g-news-list-item:has(.g-news-list-item__categories):not(:has(.g-news-list-item__tags)),
.g-news-list-item:not(:has(.g-news-list-item__categories)):has(.g-news-list-item__tags) {
	grid-template-columns: max-content max-content minmax(0, 1fr);
}

.g-news-list-item__date {
	font-family: var(--g-font-latin);
	font-size: 1.2rem;
	font-optical-sizing: auto;
	letter-spacing: 0.04em;
	color: #0A0A0A;
	width: max-content;
}

.g-news-list-item__categories,
.g-news-list-item__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	width: max-content;
}

.g-news-list-item__category {
	font-family: var(--g-font-mincho);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: #0A0A0A;
	border: 1px solid #0A0A0A;
	padding: 0.25rem 1.75rem;
	border-radius: 2rem;
}

.g-news-list-item__tag {
	font-family: var(--g-font-latin);
	font-size: 0.8rem;
	font-optical-sizing: auto;
	letter-spacing: 0.06em;
	color: var(--g-color-accent-gold);
}

.g-news-list-item__title {
	font-family: var(--g-font-mincho);
	font-size: 1rem;
	line-height: 1.7;
}

/* 4. Collection — 中央スライド + 左右見切れ（デザイン幅付近のみ / 最大3枚） */
.g-home-collection {
	overflow: hidden;
}

.g-home-collection__inner {
	width: var(--g-home-collection-width);
	max-width: none;
	margin-inline: auto;
	padding-block: 6rem;
}

.g-home-collection__title {
	margin: 0 0 3rem;
	font-family: var(--g-font-latin);
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-optical-sizing: auto;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-align: center;
	color: var(--g-color-accent-gold);
}

.g-home-collection__slider {
	display: grid;
	gap: 2.5rem;
}

.g-home-collection__viewport {
	overflow: hidden;
	width: 100%;
}

.g-home-collection__track {
	--g-collection-slide-space: 3rem; /* 画像間（左右 padding で確保、gap は使わない） */
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.45s ease;
	will-change: transform;
}

/* gap なし・画像ゾーン + padding-inline で間隔 3rem
   デザイン幅付近: 画像幅 ≈ 50% − 3rem → 中央フル時に左右が半分見切れ
   大画面: --g-collection-slide-max で頭打ち（見切れ維持のために肥大化しない）
   右のテキスト（__body）幅ぶん（--g-collection-body-space）もスライド幅に含める */
.g-home-collection__slide {
	/* __body の max-width 11rem + padding-left 1.5rem */
	--g-collection-body-space: 12.5rem;
	--g-collection-image-zone: min(50%, var(--g-collection-slide-max));
	position: relative;
	flex: 0 0 calc(var(--g-collection-image-zone) + var(--g-collection-body-space));
	width: calc(var(--g-collection-image-zone) + var(--g-collection-body-space));
	max-width: calc(var(--g-collection-image-zone) + var(--g-collection-body-space));
	box-sizing: border-box;
	padding-inline: calc(var(--g-collection-slide-space) / 2);
	opacity: 0.45;
	transition: opacity 0.45s ease;
}

.g-home-collection__slide.is-active {
	z-index: 1;
	opacity: 1;
}

.g-collection-feature {
	width: 100%;
}

.g-collection-feature__box {
	position: relative;
	/* テキスト予約ぶんを除いた画像ゾーン。__body は right 側の予約領域に入る */
	width: calc(100% - var(--g-collection-body-space));
	padding: 0;
	background: transparent;
}

.g-collection-feature__media {
	margin: 0;
	width: 100%;
	height: auto;
}

.g-collection-feature__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 2rem;
	background: #7a3f3a;
}

/* テキストは画像右（スライド幅計算の外） */
.g-collection-feature__body {
	position: absolute;
	left: 100%;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
	width: max-content;
	max-width: 11rem;
	padding: 0 0 0.25rem 1.5rem;
	box-sizing: border-box;
	pointer-events: none;
}

.g-collection-feature__body > * {
	width: fit-content;
}

.g-collection-feature__label {
	margin: 0;
	font-family: var(--g-font-mincho);
	font-size: 0.8rem;
	color: var(--g-color-muted);
}

.g-collection-feature__maker {
	margin: 0 0 0.75rem;
	font-family: var(--g-font-latin);
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 400;
	font-optical-sizing: auto;
	line-height: 1.3;
}

.g-collection-feature__year {
	margin: 0 0 1rem;
	font-family: var(--g-font-mincho);
	font-size: 1.15rem;
	font-weight: 400;
}

.g-collection-feature__price {
	margin: 0;
	font-family: var(--g-font-mincho);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.6;
}

.g-home-collection__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: min(100% - 48px, var(--g-layout-max-width));
	margin-inline: auto;
}

.g-home-collection__nav {
	display: flex;
	gap: 0.75rem;
}

.g-home-collection__nav-btn {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--g-color-gold);
	border-radius: 50%;
	background: transparent;
	color: var(--g-color-gold);
	font-family: var(--g-font-latin);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.g-home-collection__nav-btn:hover:not(:disabled) {
	transform: translateX(0.15rem);
}

.g-home-collection__nav-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.g-home-trial__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.g-home-trial {
	background: var(--g-color-section);
}

.g-home-trial__inner {
	width: var(--g-home-trial-width);
}

.g-home-trial__text {
	margin: 0 0 1.5rem;
	max-width: 40rem;
}

/* 5. Concept — 左見出し / ボックス / 右画像 */
.g-home-concept {
	background: var(--g-color-rose);
	margin-top: 12rem;
}

.g-home-concept__inner,
.g-home-salon__inner,
.g-home-voice__inner {
	width: min(90%, var(--g-layout-max-width));
	margin-inline: auto;
	padding-block: 10rem;
}

.g-home-concept__layout,
.g-home-salon__layout,
.g-home-voice__layout {
	display: flex;
	align-items: flex-start;
	gap: 3rem;
	position: relative;
}

.g-home-concept__title,
.g-home-salon__title,
.g-home-voice__title {
	margin: 0;
	font-family: var(--g-font-gloock);
	font-size: clamp(2.25rem, 4.5vw, 4rem);
	font-optical-sizing: auto;
	font-weight: 400;
	letter-spacing: 0.22em;
	line-height: 1;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	flex-shrink: 0;
	color: var(--g-color-red);
}

.g-home-concept__title {
	position: relative;
	top: -17rem;
	z-index: 1;
}
.g-home-salon__title,
.g-home-voice__title {
	color: var(--g-color-gold);
}

.g-home-voice__title {
	font-family: var(--g-font-mincho);
	font-size: 60px;
	font-style: normal;
	font-weight: 600;
	line-height: 43.44px;
	letter-spacing: 0.1em;
	text-align: center;
	vertical-align: middle;
	writing-mode: horizontal-tb;
	color: var(--g-color-black);
	padding-bottom: 10rem;
}

.g-home-concept__content,
.g-home-salon__content,
.g-home-voice__content {
	display: flex;
	flex: 1;
	align-items: end;
	gap: 3rem;
	min-width: 0;
}

.g-home-voice__content {
	display: grid;
    grid-template-columns: auto 1fr;
}

.g-home-concept__box,
.g-home-salon__box,
.g-home-voice__box {
	flex: 1;
	min-width: 0;
	padding: 0;
}

.g-home-concept__text,
.g-home-salon__text,
.g-home-voice__text {
	margin: 0;
	font-family: var(--g-font-mincho);
	font-size: 1.05rem;
	line-height: 2;
	color: #ffffff;
}

.g-home-concept__media,
.g-home-salon__media,
.g-home-voice__media {
	flex: 1.15;
	min-width: 0;
	margin: 0;
}
.g-home-voice__media {
	flex: 1;
	min-width: 0;
	margin: 0;
}
.g-home-voice__text {
	color: var(--g-color-black);
}
.g-home-voice__text-name {
	text-align: right;
	font-family: var(--g-font-mincho);
	font-size: 1.05rem;
	line-height: 2;
	color: var(--g-color-black);
}
.g-home-concept__image,
.g-home-salon__image,
.g-home-voice__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.g-home-concept__image--placeholder,
.g-home-salon__image--placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
}

.g-home-voice__image--placeholder {
	display: grid;
	place-items: center;
	width: fit-content;
}

/* 6. Salon — Concept 反転（左画像 / ボックス / 右見出し） */
.g-home-salon {
	background: var(--g-color-black);
}

/* 7. Voice — Salon レイアウト流用（代表あいさつ） */
.g-home-voice {
	position: relative;
	overflow: hidden;
	background: var(--g-color-white);
}

.g-home-voice::before {
	position: absolute;
	top: 0;
	right: 2%;
	width: clamp(12rem, 30vw, 30rem);
	aspect-ratio: 1;
	background: url("../../img/bg-img.png") top right / contain no-repeat;
	content: "";
	pointer-events: none;
}

.g-home-voice__inner {
	position: relative;
	z-index: 1;
}

/* 8. Instagram */
.g-home-instagram {
	background: var(--g-color-rose-light);
}

.g-home-instagram__title {
	position: relative;
	z-index: 0;
	isolation: isolate;
	margin: 0;
	font-family: var(--g-font-gloock);
	font-size: clamp(3rem, 7vw, 6rem);
	font-weight: 400;
	line-height: 1;
	color: var(--g-color-red);
	letter-spacing: 0.08em;
	text-align: center;
}

.g-home-instagram__title::before {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: clamp(10rem, 25vw, 20rem);
	aspect-ratio: 1;
	background: url("../../img/bg-img3.png") center / contain no-repeat;
	content: "";
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.g-home-instagram__actions {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
}

.g-button--instagram {
	min-width: 12rem;
	justify-content: center;
	font-size: 1.8rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
	box-shadow: 0 0.5rem 1.5rem rgb(79 91 213 / 20%);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.g-button--instagram:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.75rem 1.75rem rgb(79 91 213 / 30%);
}

.g-button__text{
	padding-right: .5rem;
}

/* 9. Access / Company */
.g-home-access {
	background: var(--g-color-white);
	padding-block: 10rem;
}

.g-home-access__title {
	margin: 0 0 3rem;
	font-family: var(--g-font-gloock);
	font-size: clamp(1.1rem, 5.5vw, 5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-align: center;
	white-space: nowrap;
	color: var(--g-color-gold-2);
}

.g-home-access__map {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 7;
	background: var(--g-color-section);
}

.g-home-access__map iframe,
.g-home-access__map-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 0;
	color: var(--g-color-muted);
	font-family: var(--g-font-latin);
	font-size: 1.25rem;
	letter-spacing: 0.08em;
}

.g-home-access__boxes {
	display: flex;
	gap: 2rem;
	margin-top: 3rem;
}

.g-home-access-box {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	min-height: 18rem;
	background: var(--g-color-white);
}

.g-home-access-box__image {
	flex: 0 0 22%;
	min-width: 7rem;
	background: url("../../img/bg-img.webp") center / contain no-repeat;
}

.g-home-access-box__title {
	margin: 0;
	padding: 2rem 1.25rem;
	font-family: var(--g-font-mincho);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.1em;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	color: var(--g-color-rose);
}

.g-home-access-box__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1rem;
	min-width: 0;
	padding: 2rem;
}

.g-home-access-box__content p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 2;
}

.g-home-access-box__address {
	line-height: 2.2;
}

.g-home-access-box__label {
	color: var(--g-color-gold);
}

@media (max-width: 900px) {
	.g-home-access__boxes {
		flex-direction: column;
	}
}

@media (max-width: 767px) {
	.g-home-about__box {
		grid-template-columns: 1fr;
		width: 90%;
	}

	.g-home-about__media {
		min-height: 200px;
	}

	.g-home-about__image {
		min-height: 200px;
		aspect-ratio: 4 / 3;
	}

	.g-home-news__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.g-news-list-item {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.g-collection-feature__box {
		position: relative;
		/* SP はテキストが画像下に回るため予約不要 */
		width: 100%;
	}

	.g-collection-feature__body {
		position: static;
		max-width: none;
		padding: 1rem 0 0;
		pointer-events: auto;
	}

	.g-home-collection__slide {
		/* SP はビューポート比率のまま（大画面肥大化の問題は出ない）。テキストは画像下なので予約なし */
		--g-collection-body-space: 0px;
		flex-basis: 70%;
		width: 70%;
		max-width: 70%;
		padding-inline: 0.75rem;
	}

	.g-home-concept__layout,
	.g-home-salon__layout,
	.g-home-voice__layout,
	.g-home-concept__content,
	.g-home-salon__content,
	.g-home-voice__content {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.g-home-concept__title,
	.g-home-salon__title,
	.g-home-voice__title {
		writing-mode: horizontal-tb;
		letter-spacing: 0.1em;
	}

	.g-home-concept__title {
		top: 0;
	}

	.g-home-voice__content {
		grid-template-columns: 1fr;
	}

	.g-home-access__map {
		aspect-ratio: 4 / 3;
	}

	.g-home-access-box {
		min-height: 14rem;
	}

	.g-home-access-box__image {
		flex-basis: 25%;
		min-width: 5rem;
	}

	.g-home-access-box__title,
	.g-home-access-box__content {
		padding: 1.25rem;
	}

	.g-home-collection__footer {
		width: calc(100% - 32px);
	}
}
