/*
Theme Name: KOSIN Remodelapt
Template: twentytwentyfive
Version: 1.0.0
Text Domain: kosin-remodelapt
*/

/* ---------- base ---------- */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #fff;
	color: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
	-webkit-font-smoothing: antialiased;
}

html {
	scroll-behavior: smooth;
}

img {
	max-width: 100%;
	display: block;
}

section[id] {
	scroll-margin-top: 80px;
}

/* ---------- header ---------- */
.kosin-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 32px;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease, backdrop-filter 0.25s ease;
}

.kosin-header.is-scrolled {
	padding: 16px 32px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	border-bottom-color: #eee;
}

.kosin-logo {
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.04em;
	color: #111;
	text-decoration: none;
}

.kosin-nav a {
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	margin: 0 14px;
}

.kosin-nav a:hover {
	border-bottom-color: #111;
}

.kosin-header-cta {
	border: 1px solid #111;
	padding: 8px 18px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.kosin-header-cta:hover {
	background: #111;
	color: #fff;
}

@media (max-width: 560px) {
	.kosin-header {
		padding: 16px 20px;
	}

	.kosin-header.is-scrolled {
		padding: 12px 20px;
	}

	.kosin-nav a {
		margin: 0 8px;
	}

	.kosin-header-cta {
		padding: 7px 12px;
		font-size: 11px;
		flex-shrink: 0;
		white-space: nowrap;
	}
}

@media (max-width: 420px) {
	.kosin-nav {
		display: none;
	}
}

/* ---------- hero ---------- */
.kosin-hero {
	padding-top: 0;
}

.kosin-hero-grid {
	position: relative;
	max-width: 1600px;
	margin: 0 auto;
	height: clamp(700px, 92vh, 1000px);
}

.kosin-collage-img {
	position: absolute;
	width: 22%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	will-change: transform;
}

.kosin-collage-img.portrait {
	aspect-ratio: 2 / 3;
}

.c1 { top: 8%; left: 2%; width: 23%; }
.c2 { top: 4%; right: 3%; width: 21%; }
.c3 { top: 36%; left: 0%; width: 14%; }
.c4 { top: 30%; right: 1%; width: 15%; aspect-ratio: 3 / 4; }
.c5 { bottom: 6%; left: 9%; width: 20%; aspect-ratio: 3 / 2; }
.c6 { bottom: 4%; right: 10%; width: 19%; aspect-ratio: 3 / 2; }
.c7.accent { top: 3%; left: 30%; width: 12%; aspect-ratio: 3 / 2; }
.c8.accent { bottom: 9%; right: 28%; width: 12%; aspect-ratio: 3 / 2; }

.kosin-hero-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(90%, 640px);
	text-align: center;
	z-index: 3;
	background: radial-gradient(closest-side, #fff 55%, transparent 100%);
	padding: 40px 20px;
}

.kosin-keyword {
	font-size: 13px;
	letter-spacing: 0.3em;
	color: #888;
	margin: 0 0 22px;
	font-weight: 600;
}

.kosin-wordmark {
	font-size: clamp(44px, 8vw, 108px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: 0.01em;
	margin: 0;
}

.kosin-wordmark span {
	display: block;
	font-size: clamp(12px, 1.4vw, 15px);
	font-weight: 500;
	letter-spacing: 0.18em;
	color: #888;
	margin-top: 16px;
}

.kosin-tagline {
	font-size: 16px;
	letter-spacing: 0.04em;
	color: #555;
	margin: 20px 0 28px;
}

.kosin-cta,
.kosin-cta-large {
	display: inline-block;
	border: 1px solid #111;
	padding: 14px 28px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 14px;
	color: #111;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.kosin-cta:hover {
	background: #111;
	color: #fff;
}

@media (max-width: 899px) {
	.kosin-hero-grid {
		height: auto;
		padding: 110px 20px 50px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.kosin-hero-text {
		position: static;
		transform: none;
		grid-column: 1 / 3;
		order: -1;
		width: 100%;
		background: none;
		padding: 0 0 20px;
	}

	.kosin-collage-img {
		position: static;
		width: 100%;
		height: auto;
	}

	.kosin-collage-img.accent {
		display: none;
	}
}

/* ---------- about ---------- */
.kosin-about,
.kosin-portfolio {
	padding: 120px 32px;
}

.kosin-about {
	background: #f7f6f3;
}

.kosin-about-inner,
.kosin-portfolio-inner {
	max-width: 1000px;
	margin: 0 auto;
}

.kosin-index {
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 16px;
}

.kosin-about h2,
.kosin-services h2,
.kosin-portfolio h2,
.kosin-contact h2 {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 28px;
}

.kosin-about-copy {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	max-width: 640px;
}

.kosin-process {
	display: flex;
	gap: 40px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.kosin-process li span {
	display: block;
	font-size: 12px;
	color: #999;
	letter-spacing: 0.1em;
	margin-bottom: 6px;
}

/* ---------- services grid ---------- */
.kosin-services {
	background: #fff;
	padding: 100px 32px 120px;
}

.kosin-services-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.kosin-services-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-top: 44px;
}

.kosin-service-tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	text-decoration: none;
	background: #eee;
}

.kosin-service-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.kosin-service-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%);
	transition: opacity 0.3s ease;
}

.kosin-service-tile:hover img {
	transform: scale(1.07);
}

.kosin-service-tile-label {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 2;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.kosin-service-tile-label em {
	display: block;
	font-style: normal;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.2em;
	opacity: 0.8;
	margin-bottom: 6px;
}

@media (max-width: 900px) {
	.kosin-services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.kosin-services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- portfolio ---------- */
.kosin-portfolio-inner {
	max-width: 1400px;
}

.kosin-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid #e5e5e5;
}

.kosin-portfolio-grid figure {
	margin: 0;
	padding: 20px 20px 0;
	border-left: 1px solid #e5e5e5;
}

.kosin-portfolio-grid figure:first-child {
	border-left: none;
}

.kosin-portfolio-grid img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 16px;
}

.kosin-portfolio-grid figcaption {
	font-size: 13px;
	letter-spacing: 0.02em;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 20px;
}

.kosin-portfolio-grid figcaption .code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	color: #999;
	letter-spacing: 0.04em;
}

@media (max-width: 900px) {
	.kosin-portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kosin-portfolio-grid figure:nth-child(2n+1) {
		border-left: none;
	}
}

/* ---------- photo grid ---------- */
.kosin-gallery {
	background: #fff;
	padding: 120px 32px;
}

.kosin-gallery-tint {
	background: #f7f6f3;
}

.kosin-gallery-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.kosin-photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-top: 40px;
}

.kosin-photo-grid img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.kosin-photo-grid img:hover {
	transform: scale(1.03);
}

@media (max-width: 700px) {
	.kosin-photo-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- trust / philosophy ---------- */
.kosin-trust {
	background: #fff;
	padding: 120px 32px;
}

.kosin-trust-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.kosin-trust-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.kosin-trust-copy blockquote {
	margin: 0 0 36px;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.5;
}

.kosin-stats {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 24px 0 0;
	border-top: 1px solid #e5e5e5;
}

.kosin-stats li {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.kosin-stats strong {
	font-size: 15px;
	min-width: 100px;
	flex-shrink: 0;
}

.kosin-stats span {
	font-size: 13px;
	color: #777;
}

@media (max-width: 800px) {
	.kosin-trust-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ---------- contact ---------- */
.kosin-contact {
	text-align: center;
	padding: 140px 32px;
	background: #111;
	color: #fff;
}

.kosin-contact .kosin-index {
	color: #888;
}

.kosin-cta-large {
	border-color: #fff;
	color: #fff;
	font-size: clamp(26px, 5vw, 44px);
	font-weight: 800;
	padding: 20px 40px;
	margin: 8px 0 20px;
}

.kosin-cta-large:hover {
	background: #fff;
	color: #111;
}

.kosin-cta-large.kosin-cta-dark {
	border-color: #111;
	color: #111;
}

.kosin-cta-large.kosin-cta-dark:hover {
	background: #111;
	color: #fff;
}

.kosin-address {
	font-size: 14px;
	color: #aaa;
	margin: 0;
}

/* ---------- footer ---------- */
.kosin-footer {
	border-top: 1px solid #eee;
}

.kosin-footer-nav {
	background: #f7f6f3;
	padding: 48px 32px;
	display: flex;
	justify-content: center;
	gap: 100px;
	flex-wrap: wrap;
}

.kosin-footer-nav-group p {
	font-size: 12px;
	letter-spacing: 0.1em;
	color: #999;
	margin: 0 0 14px;
}

.kosin-footer-nav-group a {
	display: block;
	font-size: 14px;
	color: #111;
	text-decoration: none;
	margin-bottom: 10px;
}

.kosin-footer-nav-group a:hover {
	text-decoration: underline;
}

.kosin-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 28px 32px;
	font-size: 12px;
	color: #555;
}

.kosin-footer-biz p {
	margin: 0 0 4px;
}

.kosin-footer-biz a {
	color: #555;
}

.kosin-footer-links a {
	margin-left: 16px;
	color: #111;
	text-decoration: none;
}

/* ---------- contact page ---------- */
.kosin-page-hero {
	text-align: center;
	padding: 170px 32px 90px;
	background: #fff;
}

.kosin-page-hero h1 {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	margin: 0 0 16px;
}

.kosin-service-body {
	background: #fff;
	padding: 70px 32px 30px;
}

.kosin-service-body-inner {
	max-width: 720px;
	margin: 0 auto;
}

.kosin-service-body-inner p {
	font-size: 16px;
	line-height: 1.9;
	color: #333;
	margin: 0 0 24px;
}

.kosin-checklist {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 40px 0 0;
	padding: 32px 0 0;
	border-top: 1px solid #e5e5e5;
	list-style: none;
}

.kosin-checklist li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kosin-checklist strong {
	font-size: 14px;
	letter-spacing: 0.04em;
}

.kosin-checklist span {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

@media (max-width: 600px) {
	.kosin-checklist {
		grid-template-columns: 1fr;
	}
}

.kosin-services-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.kosin-services-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.kosin-form-section {
	background: #f7f6f3;
	padding: 80px 32px;
}

.kosin-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.kosin-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.kosin-form label {
	display: block;
	font-size: 13px;
	color: #555;
	margin-bottom: 20px;
}

.kosin-form-full {
	grid-column: 1 / -1;
}

.kosin-form label span {
	color: #b33;
}

.kosin-form input,
.kosin-form textarea {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	background: #fff;
	font-size: 15px;
	font-family: inherit;
	color: #111;
}

.kosin-form input:focus,
.kosin-form textarea:focus {
	outline: none;
	border-color: #111;
}

.kosin-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kosin-form button {
	border: 1px solid #111;
	background: #111;
	color: #fff;
	padding: 14px 32px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.kosin-form button:hover {
	background: #333;
}

.kosin-form-msg {
	max-width: 640px;
	margin: 24px auto 0;
	text-align: center;
	font-size: 14px;
}

.kosin-contact-info {
	text-align: center;
	padding: 60px 32px;
	font-size: 14px;
	color: #555;
}

.kosin-contact-info p {
	margin: 0 0 6px;
}

@media (max-width: 600px) {
	.kosin-form-row {
		grid-template-columns: 1fr;
	}
}
