/* JW INTERNATIONAL — 2026-11 리디자인: 트래버틴(밝은 석재) + 가죽(짙은 갈색) + 브라스 */
:root {
  --stone: #ece5d9;
  --paper: #f7f3ec;
  --ink: #221d18;
  --ink-2: #574e44;
  --ink-3: #7a7064;
  --leather: #2e231b;
  --brass: #9a7440;
  --brass-2: #d0ad74;
  --line: rgba(34, 29, 24, .15);
  --line-dark: rgba(247, 243, 236, .16);
  --display: 'Italiana', 'Times New Roman', serif;
  --logo: 'Marcellus', 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Apple SD Gothic Neo', 'Noto Sans JP', 'Noto Sans KR', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(88px, 11vw, 160px);
}
:lang(ja) { --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; }
:lang(ko) { --serif: 'Nanum Myeongjo', 'AppleMyungjo', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 16px/1.85 var(--sans);
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:lang(ko) { word-break: keep-all; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass-2); color: var(--ink); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 공통 타이포 ---------- */
.h2 { font: 600 clamp(28px, 3.4vw, 46px)/1.3 var(--serif); letter-spacing: .02em; }
.h3 { font: 600 clamp(19px, 1.7vw, 22px)/1.4 var(--serif); letter-spacing: .02em; }
.body { margin-top: 24px; max-width: 34em; color: var(--ink-2); }
.note { margin-top: 28px; max-width: 40em; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
figure { overflow: hidden; background: #d9cfbf; }
figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 0 34px; border: 1px solid var(--ink); border-radius: 2px;
  font: 500 14px/1.2 var(--sans); letter-spacing: .08em; text-decoration: none; color: var(--paper);
  background: var(--ink); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 20px var(--gutter);
  transition: background-color .4s, box-shadow .4s, padding .4s;
}
.site-header.scrolled, .doc .site-header { background: rgba(236, 229, 217, .95); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }
.brand { display: block; line-height: 0; color: var(--ink); margin-right: auto; }
.logo { width: clamp(116px, 12vw, 148px); height: auto; fill: currentColor; overflow: visible; }
.logo text { font-family: var(--logo); }
.nav { display: none; }
@media (min-width: 1120px) {
  .nav { display: block; }
  .nav ul { display: flex; gap: 28px; }
  .nav a { font-size: 13px; letter-spacing: .06em; text-decoration: none; color: var(--ink); padding-block: 6px; background: linear-gradient(var(--brass), var(--brass)) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
  .nav a:hover { color: var(--ink); background-size: 100% 1px; }
}
.lang ul { display: flex; gap: 2px; }
.lang a {
  display: block; padding: 6px 10px;
  font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-decoration: none; color: var(--ink-2);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -1px 0 var(--brass); }

/* ---------- 히어로 ---------- */
.hero { position: relative; background: var(--stone); display: flex; flex-direction: column; }
.hero-copy { order: -1; }
.hero-copy { position: relative; z-index: 1; padding: 112px var(--gutter) 40px; }
.headline { font: 600 clamp(34px, 4.7vw, 72px)/1.32 var(--serif); letter-spacing: .03em; }
:lang(en) .headline { font-weight: 500; line-height: 1.12; letter-spacing: 0; font-size: clamp(38px, 5.2vw, 80px); }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; }
.lead { margin-top: 28px; max-width: 27em; color: var(--ink-2); }
.hero .btn { margin-top: 36px; }
.hero-media { aspect-ratio: 4 / 3; margin-inline: var(--gutter); }
.hero-media img { object-position: 78% 50%; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; padding: 28px var(--gutter) 40px; }
.facts dt { font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.facts dd { font: 600 15px/1.5 var(--serif); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:last-child { grid-column: 1 / -1; } }

@media (min-width: 900px) {
  .hero { min-height: max(640px, 100svh); display: grid; grid-template-rows: 1fr auto; }
  .hero-media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
  .hero-media img { object-position: 70% 50%; }
  .hero-copy { align-self: center; width: min(46%, 640px); padding: 140px 0 40px var(--gutter); }
  .headline { font-size: clamp(34px, 3.5vw, 60px); }
  .headline:not(:lang(en)) .line { white-space: nowrap; }
  :lang(en) .hero-copy { width: min(52%, 720px); }
  .facts { position: relative; z-index: 1; padding-bottom: 36px; }
  .facts::before { content: ''; position: absolute; left: var(--gutter); top: 0; width: 64px; height: 1px; background: var(--brass); }
}

/* 첫 화면 한 번만 움직임: 제목 줄이 올라오고 사진이 천천히 자리 잡는다 */
@media (prefers-reduced-motion: no-preference) {
  .js .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease) calc(var(--i) * .14s + .15s); }
  .js.loaded .line > span { transform: none; }
  .js .hero-media img { transform: scale(1.05); transition: transform 2.4s var(--ease); }
  .js.loaded .hero-media img { transform: none; }
  .js .hero .lead, .js .hero .btn, .js .facts { opacity: 0; transition: opacity 1s var(--ease) .6s; }
  .js.loaded .hero .lead, .js.loaded .hero .btn, .js.loaded .facts { opacity: 1; }
}

/* ---------- 취급 브랜드 ---------- */
.sourcing { padding-block: var(--section); }
.sourcing-grid { display: grid; gap: 48px; align-items: center; }
.sourcing-media { aspect-ratio: 4 / 5; }
.brands { margin-top: 44px; border-top: 1px solid var(--line); }
.brands li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 400 clamp(34px, 4.2vw, 60px)/1.1 var(--display); letter-spacing: .06em;
}
.cats { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 24px; color: var(--ink-2); }
.cats li:not(:last-child)::after { content: '/'; margin-inline: 14px; color: var(--brass); }
@media (min-width: 960px) {
  .sourcing-grid { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 112px); }
}

/* ---------- 서비스(짙은 가죽색) ---------- */
.services { padding-block: var(--section); background: var(--leather); color: var(--paper); }
.services-grid { display: grid; gap: 48px; }
.services-media { aspect-ratio: 4 / 5; background: #3d2f25; }
.service-list > div { padding: 28px 0 30px; border-top: 1px solid var(--line-dark); }
.service-list > div:last-child { border-bottom: 1px solid var(--line-dark); }
.service-list dt { font: 600 clamp(20px, 2vw, 26px)/1.4 var(--serif); color: var(--paper); }
.service-list dd { margin-top: 10px; max-width: 32em; color: rgba(247, 243, 236, .72); }
@media (min-width: 960px) {
  /* 제목은 윗줄, 사진과 목록은 같은 줄에서 위아래 끝을 맞춘다 */
  .services-grid { grid-template-columns: 5fr 7fr; gap: 56px clamp(56px, 8vw, 128px); }
  .services-title { grid-column: 1 / -1; }
  .services-media { aspect-ratio: auto; } /* 목록이 더 길면 사진이 목록 높이까지 늘어난다 */
  .service-list { display: flex; flex-direction: column; }
  .service-list > div { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- 거래 절차 ---------- */
.process { padding-block: var(--section); }
.process-grid { display: grid; gap: 44px; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no { font: 400 48px/1 var(--display); color: var(--brass); }
.steps h3 { font: 600 20px/1.4 var(--serif); }
.steps p { margin-top: 6px; color: var(--ink-2); }
.process-media { aspect-ratio: 4 / 5; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: 7fr 5fr; gap: 56px clamp(56px, 8vw, 128px); }
  .process-title { grid-column: 1 / -1; }
  .process-media { aspect-ratio: auto; }
  .steps { display: flex; flex-direction: column; }
  .steps li { flex: 1; align-content: center; }
}

/* ---------- 회사 개요 ---------- */
.company { background: var(--paper); padding-bottom: var(--section); }
.company-band { height: clamp(220px, 34vw, 460px); }
.company-grid { display: grid; gap: 64px; padding-top: clamp(64px, 8vw, 112px); }
.profile { margin-top: 36px; border-top: 1px solid var(--line); }
.profile > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.profile dd { overflow-wrap: anywhere; }
.profile a { text-decoration: none; }
.profile a:hover { text-decoration: underline; text-underline-offset: 4px; }
.history { margin-top: 28px; border-left: 1px solid var(--brass); }
.history li { position: relative; display: grid; gap: 2px; padding: 0 0 28px 24px; }
.history li::before { content: ''; position: absolute; left: -4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.history time { font: 400 22px/1.2 var(--display); letter-spacing: .04em; color: var(--brass); }
@media (min-width: 640px) { .profile > div { grid-template-columns: 11em 1fr; gap: 24px; } }
@media (min-width: 960px) {
  .company-grid { grid-template-columns: 7fr 4fr; gap: clamp(56px, 8vw, 128px); }
  .history-wrap { padding-top: 12px; }
}

/* ---------- 문의 ---------- */
.contact { padding-block: var(--section) 0; }
.contact-grid { display: grid; gap: 48px; }
.mails { margin-top: 40px; display: grid; gap: 20px; }
.mails dt { font-size: 13px; color: var(--ink-3); }
.mails dd { font: 500 clamp(17px, 1.6vw, 20px)/1.4 var(--sans); }
.mails a { text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.form { display: grid; gap: 22px; padding: clamp(24px, 3.6vw, 48px); background: var(--paper); border: 1px solid var(--line); }
.row { display: grid; gap: 22px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(34, 29, 24, .35); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 16px/1.6 var(--sans);
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #a2412f; }
.consent { font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.consent a { color: var(--ink-2); text-underline-offset: 3px; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.status { min-height: 1.6em; font-size: 14px; color: var(--ink-2); }
.status.ok { color: #3d6b45; }
.status.fail { color: #a2412f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: clamp(56px, 8vw, 128px); } }

/* ---------- 시그니처 띠와 푸터 ---------- */
.signature {
  margin-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(36px, 5vw, 60px);
  white-space: nowrap; overflow: hidden;
  font: 400 clamp(44px, 7vw, 100px)/1.1 var(--display); letter-spacing: .04em;
  color: #b8935a;
}
.marq { display: inline-block; animation: marq 48s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq { animation: none; } }

.site-footer { background: var(--leather); color: rgba(247, 243, 236, .78); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 14px; line-height: 1.8; }
.foot { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1fr 1.6fr 1.1fr auto; } }
.foot-brand { line-height: 0; color: var(--paper); align-self: start; }
.foot-brand .logo { width: 140px; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 12px; color: rgba(247, 243, 236, .5); }

/* ---------- 개인정보 처리방침 ---------- */
.policy { max-width: 860px; padding-top: 140px; padding-bottom: 40px; }
.policy section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.policy section p { margin-top: 10px; color: var(--ink-2); }
.policy a { text-underline-offset: 3px; }
.doc .signature { display: none; }
.doc .site-footer { margin-top: 96px; }
