/* ==========================================================
   index.css（トップページ）
   PC：1500px幅デザイン基準（大きなレイアウトは vw で可変）
========================================================== */

/* ---------- 茶色パネル（KV〜#sec1の左側） ---------- */
.top-wrap { position: relative; }
.top-wrap__panel {
	position: absolute; left: 0; top: 0; z-index: 0;
	width: 40vw; height: 113.9vw;
	background: var(--brown) url("../img/shared/bg.jpg");
}

/* ---------- KV ---------- */
.kv { position: relative; z-index: 2; height: 60vw; }
/* KV画像：3つの枠が同時にフェードで切り替わる */
.kv__slot { position: absolute; z-index: 1; }
.kv__slot--1 { left: 4.8vw;  top: 12.1vw; width: 50vw;   aspect-ratio: 750 / 700; }
.kv__slot--2 { left: 88.6vw; top: 16.1vw; width: 10.6vw; aspect-ratio: 160 / 120; }
.kv__slot--3 { left: 67.9vw; top: 40.5vw; width: 8.7vw;  aspect-ratio: 130 / 110; }
.kv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.kv__img.is-active { opacity: 1; }

.kv__ttl {
	position: absolute; left: 60vw; top: 19vw; z-index: 2;
	font-size: 32px; font-weight: 500; line-height: 2.2; letter-spacing: .3em;
}
.kv__ttl span { display: block; white-space: nowrap; }
.kv__ttl span:nth-child(2) { padding-left: 2.4em; }

/* ---------- #sec1 About ---------- */
.sec1 { position: relative; z-index: 1; height: 63vw; }
.sec1__deco { position: absolute; right: 0; top: -27vw; width: 65vw; z-index: -1; pointer-events: none; }
.sec1__vtxt {
	position: absolute; left: 22.5vw; top: 10.5vw;
	writing-mode: vertical-rl;
	font-size: 28px; line-height: 2.5; letter-spacing: .4em;
	color: var(--text-light);
}
.sec1__body { position: absolute; left: 50vw; top: 15vw; width: 100vw; }
.sec1__lead { font-size: 21px; line-height: 2.3; letter-spacing: .15em; margin-bottom: 1.6em; }
.sec1__txt { font-size: 18px; line-height: 2.1; letter-spacing: .15em; margin-bottom: 25px; }

/* ---------- #sec2 Service ---------- */
.sec2 { padding: 4vw 0 7.5vw; }
.service__viewport { max-width: 1050px; margin: 5.6vw auto 0; overflow: hidden; }
.service__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 90px 30px; }
.service__img { position: relative; aspect-ratio: 330 / 300; background: #a7a7a7; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__ttl { margin: 26px 0 12px; text-align: center; font-size: 20px; font-weight: 500; letter-spacing: .3em; line-height: 1.5; }
.service__txt { padding: 0 14px; font-size: 16px; line-height: 1.95; letter-spacing: .1em; }
.service__arrows { display: none; }

/* ---------- #sec3 Works ---------- */
.sec3 { position: relative; height: 640px; }
.works__panel {
	position: absolute; left: 0; bottom: 0;
	width: 50vw; height: 470px;
	background: var(--brown) url("../img/shared/bg.jpg");
	padding: 90px 0 0 11.3vw;
}
.works__lead { margin-top: 36px; font-size: 18px; line-height: 2; letter-spacing: .12em; color: var(--text-light); opacity: .8;  width: 320px; }
.works__arrows { position: absolute; left: 11.3vw; bottom: 36px; }
.works__viewport { position: absolute; left: 35.7vw; right: 0; top: 0; bottom: 55px; overflow: hidden; z-index: 2; }
.works__list {
	display: flex; align-items: flex-end; gap: 24px; height: 100%;
	transition: transform .8s cubic-bezier(.65, 0, .35, 1);
}
.works__item {
	flex: 0 0 390px; height: 500px;
	transition: flex-basis .8s cubic-bezier(.65, 0, .35, 1), height .8s cubic-bezier(.65, 0, .35, 1);
}
.works__item.is-current { flex-basis: 455px; height: 580px; }
.works__btn { position: relative; display: block; width: 100%; height: 100%; background: #a7a7a7; overflow: hidden; text-align: left; }
.works__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.works__btn:hover img { transform: scale(1.03); }
.works__more {
	position: absolute; right: 22px; top: 18px;
	font-family: var(--ff-en); font-size: 16px; line-height: 1.6; letter-spacing: .08em;
	border-bottom: 1px solid var(--text);
}
.works__list.is-reset, .works__list.is-reset .works__item { transition: none !important; }

/* ---------- #sec4 Contact ---------- */
.sec4 { padding: 150px 20px 160px; }
.contact__lead { margin-top: 36px; text-align: center; font-size: 18px; line-height: 2.1; letter-spacing: .15em; }
.form { max-width: 700px; margin: 60px auto 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { margin-bottom: 30px; }
.form__label { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 18px; line-height: 1.6; letter-spacing: .1em; }
.form__badge {
	display: inline-block; padding: 0 8px; background: var(--point); color: var(--text);
	font-size: 12px; line-height: 20px; letter-spacing: .1em;
}
.form__input {
	display: block; width: 100%; height: 44px; padding: 0 14px;
	border: 0; border-radius: 0; background: #dcdcd2; color: var(--text);
	font: inherit; font-size: 16px; letter-spacing: .06em;
}
.form__input:focus { outline: 2px solid var(--point); outline-offset: 0; background: #e4e4db; }
.form__textarea { height: 300px; padding: 12px 14px; line-height: 1.8; resize: vertical; overflow-y: auto; }

.form__privacy {
	height: 180px; margin-top: 40px; padding: 20px 26px;
	background: var(--text-light); overflow-y: scroll;
	font-size: 14px; line-height: 1.9; letter-spacing: .06em;
	scrollbar-width: thin; scrollbar-color: #b9b9b0 transparent;
}
.form__privacy p + p { margin-top: .8em; }
.form__privacy::-webkit-scrollbar { width: 8px; }
.form__privacy::-webkit-scrollbar-thumb { background: #b9b9b0; border-radius: 4px; }
.form__textarea { scrollbar-width: thin; scrollbar-color: #b9b9b0 transparent; }
.form__textarea::-webkit-scrollbar { width: 8px; }
.form__textarea::-webkit-scrollbar-thumb { background: #b9b9b0; border-radius: 4px; }

.form__agree { display: flex; align-items: center; justify-content: center; gap: 0px; margin-top: 26px; flex-wrap: wrap; }
.form__check { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; letter-spacing: .08em; }
.form__check input { width: 18px; height: 18px; accent-color: var(--text); }
.form__err, .form__hint { font-size: 14px; color: #c4453a; letter-spacing: .08em; }
.form__err[hidden], .form__hint[hidden] { display: none; }
.form__hint { margin-top: 30px; text-align: center; }
.form__submit { margin-top: 12px; text-align: center; }
.form__notice { max-width: 700px; margin: 40px auto 0; padding: 16px 20px; text-align: center; font-size: 16px; line-height: 1.8; }
.form__notice--ok { background: var(--point); }
.form__notice--ng { background: #f1d6d2; color: #8d2b22; }

/* ---------- #sec5 Blog ---------- */
.sec5 { position: relative; padding: 130px 20px 120px; }
.blog__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blog__bg img { width: 100%; height: 100%; object-fit: cover; }
.blog__lead { margin-top: 28px; text-align: center; font-size: 16px; line-height: 2; letter-spacing: .12em; }
.blog__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; max-width: 790px; margin: 60px auto 0; }
.blog__img { aspect-ratio: 240 / 210; background: #a7a7a7; overflow: hidden; }
.blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog__item a:hover .blog__img img { transform: scale(1.04); }
.blog__cat {
	display: inline-block; margin-top: 0; padding: 0 10px;
	background: var(--brown) url("../img/shared/bg.jpg"); color: var(--text-light);
	font-size: 12px; line-height: 22px; letter-spacing: .1em;
}
.blog__ttl { margin-top: 6px; font-size: 15px; line-height: 1.7; letter-spacing: .08em; }
.blog__btn { margin-top: 64px; text-align: center; }

/* ---------- #sec6 News ---------- */
.sec6 { padding: 70px 20px 100px; }
.news__inner { max-width: 1000px; margin: 0 auto; }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; }
.news__all { position: relative; padding-right: 20px; margin-bottom: 8px; font-size: 14px; letter-spacing: .1em; border-bottom: 1px solid var(--text); }
.news__chev {
	position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
	border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
.news__list { margin-top: 36px; border-top: 1px solid rgba(40, 42, 45, .25); }
.news__item { border-bottom: 1px solid rgba(40, 42, 45, .25); }
.news__item a { position: relative; display: flex; gap: 28px; padding: 20px 0 20px 28px; font-size: 16px; line-height: 1.7; letter-spacing: .1em; transition: opacity .3s; }
.news__item a::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--point); }
.news__item a:hover { opacity: .6; }
.news__date { flex: 0 0 auto; font-family: var(--ff-en); }

/* ---------- Closing ---------- */
.closing { padding: 90px 20px 150px; text-align: center; }
.closing__logo { width: 207px; }
.closing__txt { margin-top: 56px; font-size: 18px; line-height: 2; letter-spacing: .15em; }
.closing__txt p + p { margin-top: 1.6em; }

/* ==========================================================
   SP（767px以下／375px幅基準）
========================================================== */
@media (max-width: 767px) {
	/* KV */
	.top-wrap__panel { display: none; }
	.kv { height: auto; padding: 100px 0 66vw; }
	.kv__slot--1 { position: relative; left: auto; top: auto; width: 90vw; margin: 0 auto; }
	.kv__slot--2 { left: 17vw; right: auto; top: auto; bottom: 12vw; width: 37.5vw; }
	.kv__slot--3 { left: auto; right: 12vw; top: auto; bottom: 35vw; width: 24vw; }
	.kv__ttl { position: static; margin-top: 30px; text-align: center; font-size: 22px; line-height: 2; letter-spacing: .25em; }
	.kv__ttl span:nth-child(2) { padding-left: 0; }

	/* sec1 */
	.sec1 { 
		height: auto; 
	}
	.sec1__deco {         
		position: relative;
		right: -20px;
		top: auto;
		display: block;
		width: 100vw; margin: 0 0 0 -4vw; 
	}
	.sec1__vtxt { position: relative; left: auto; top: 14vw; display: block; height: 15em; margin: -10vw auto 0; width: max-content; font-size: 20px; line-height: 2.8; color: var(--text); }
	.sec1__body { position: static; width: auto; margin-top: 0px; padding: 44px 24px 30px;}
	.sec1__lead { font-size: 16px; line-height: 2.1; letter-spacing: .1em; }
	.sec1__txt { font-size: 14px; line-height: 2.2; letter-spacing: .08em; }
	.sec1__txt br { display: none; }

	/* sec2 Service：1枚ずつスライド */
	.sec2 { padding: 40px 0 70px; }
	.service__viewport { margin: 36px 20px 0; max-width: none; }
	.service__list { display: flex; gap: 20px; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
	.service__list.is-reset { transition: none; }
	.service__item { flex: 0 0 100%; }
	.service__img { aspect-ratio: 335 / 300; }
	.service__ttl { margin: 18px 0 10px; font-size: 18px; }
	.service__txt { padding: 0 6px; font-size: 14px; }
	.service__arrows { display: flex; justify-content: center; margin-top: 28px; gap: 20px; }
	.c-arrow { width: 48px; height: 48px; }

	/* sec3 Works */
	.sec3 { position: relative; height: auto; display: flex; flex-direction: column; padding: 60px 20px 50px; background: var(--brown) url("../img/shared/bg.jpg"); }
	.sec3::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; background: url("../img/shared/wave_top.png") repeat-x; }
	.sec3::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 15px; background: url("../img/shared/wave_bottom.png") repeat-x; }
	.works__panel { display: contents; }
	.works__panel .u-wave { display: none; }
	.works__panel .c-ttl { order: 1; }
	.works__lead { order: 2; margin-top: 18px; font-size: 14px; }
	.works__viewport { order: 3; position: static; margin-top: 30px; }
	.works__arrows { order: 4; position: static; justify-content: center; margin-top: 28px; gap: 20px; }
	.works__list { gap: 20px; height: auto; align-items: stretch; }
	.works__item, .works__item.is-current { flex: 0 0 100%; height: auto; aspect-ratio: 335 / 430; }
	.works__more { font-size: 14px; right: 16px; top: 12px; }

	/* sec4 Contact */
	.sec4 { padding: 70px 20px 80px; }
	.contact__lead { margin-top: 24px; font-size: 14px; line-height: 2; letter-spacing: .1em; }
	.form { margin-top: 36px; }
	.form__row { margin-bottom: 22px; }
	.form__label { font-size: 15px; }
	.form__textarea { height: 220px; }
	.form__privacy { height: 150px; padding: 16px 18px; font-size: 13px; }
	.form__check { font-size: 14px; }

	/* sec5 Blog */
	.sec5 { padding: 70px 24px 80px; }
	.blog__lead { font-size: 14px; }
	.blog__list { grid-template-columns: 1fr; gap: 36px; max-width: 300px; margin-top: 36px; }
	.blog__img { aspect-ratio: 300 / 260; }
	.blog__ttl { font-size: 15px; }
	.blog__btn { margin-top: 44px; }
	.c-btn--brown { width: 240px; height: 54px; }

	/* sec6 News */
	.sec6 { padding: 50px 20px 70px; }
	.news__list { margin-top: 24px; }
	.news__item a { flex-direction: column; gap: 0; padding: 16px 0 16px 22px; font-size: 14px; }
	.news__item a::before { top: 28px; margin-top: 0; width: 8px; height: 8px; }
	.news__date { font-size: 13px; }

	/* Closing */
	.closing { padding: 50px 20px 90px; }
	.closing__logo { width: 120px; }
	.closing__txt { margin-top: 32px; font-size: 13px; line-height: 2.2; letter-spacing: .08em; }
}
