/* CARAVAN corporate site — Quiet Center v1 */
:root {
  --surface: #FCFCF9;
  --text: #22231F;
  --accent: #A95137;
  --muted: #716C65;
  --divider: #D9D6CF;
  --subtle: #EEE9E0;
  --error: #A95137;

  --pad-x: clamp(28px, 6.67vw, 96px);
  --section-y: clamp(96px, 10.6vw, 152px);
  --gap-lg: 40px;
  --content: 1248px;

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Libre Baskerville", "Times New Roman", serif;
  --font-label: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(56px, 8.9vw, 128px);
  --fs-en: clamp(40px, 4.45vw, 64px);
  --fs-heading: clamp(28px, 2.78vw, 40px);
  --fs-sub: clamp(20px, 1.81vw, 26px);
  --fs-body: clamp(16px, 1.25vw, 18px);
  --fs-small: 14px;
  --fs-label: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: 2;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; outline: 1px solid var(--text); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--content) + var(--pad-x) * 2); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--subtle { background: var(--subtle); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-lg); }
.stack--24 { gap: 24px; }

/* ---------- Typography ---------- */
.label { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: 0.08em; color: var(--muted); font-variation-settings: "opsz" 14; }
.en { font-family: var(--font-en); font-size: var(--fs-en); line-height: 1.25; }
.en em, .display em { font-style: italic; color: var(--accent); }
.heading { font-weight: 300; font-size: var(--fs-heading); line-height: 1.75; }
.sub { font-size: var(--fs-sub); line-height: 1.75; }
.body { font-size: var(--fs-body); line-height: 2; }
.small { font-size: var(--fs-small); line-height: 1.9; }
.muted { color: var(--muted); }
.measure { max-width: 800px; }
.measure-l { max-width: 1000px; }
.nowrap-sp { white-space: nowrap; }

/* ---------- Anchor links on headings ---------- */
h1[id], h2[id], h3[id] { scroll-margin-top: 32px; }
.anchor { margin-left: .4em; color: var(--muted); font-size: .7em; text-decoration: none; opacity: 0; transition: opacity .2s ease; vertical-align: middle; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--accent); }
@media (hover: none) { .anchor { display: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { height: 112px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; width: 176px; color: var(--text); }
.logo img { width: 100%; height: auto; }
.nav { display: flex; gap: 36px; font-size: 14px; line-height: 1.5; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; font-size: 14px; line-height: 1.5; cursor: pointer; }

@media (max-width: 760px) {
  .site-header .wrap { height: 88px; }
  .logo { width: 126px; }
  .menu-btn { display: block; }
  .nav { display: none; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; gap: 24px;
    position: absolute; top: 88px; left: 0; right: 0;
    padding: 24px var(--pad-x) 40px; background: var(--surface);
    border-bottom: 1px solid var(--divider); font-size: 18px;
  }
}

/* ---------- Footer ---------- */
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.site-footer .rule { height: 1px; background: var(--divider); }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-main .logo { width: 160px; }
.footer-nav, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; line-height: 1.9; }
.footer-legal { color: var(--muted); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .footer-main { flex-direction: column; }
  .footer-nav, .footer-legal { flex-direction: column; gap: 8px; }
}

/* ---------- Text link ---------- */
.tlink { display: inline-flex; flex-direction: column; gap: 12px; padding-bottom: 4px; min-width: 220px; font-size: 14px; line-height: 1.9; cursor: pointer; background: none; border: 0; padding-left: 0; padding-right: 0; text-align: left; }
.tlink__row { display: flex; justify-content: space-between; gap: 56px; }
.tlink__arrow { color: var(--accent); transition: transform .35s ease; }
.tlink__rule { height: 1px; background: var(--divider); position: relative; overflow: hidden; }
.tlink__rule::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.tlink:hover .tlink__arrow { transform: translate(2px, -2px); }
.tlink:hover .tlink__rule::after { transform: scaleX(1); }
.tlink[disabled], .tlink[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }

/* Space above quiet text links so they don't stick to the content above */
.stack > .tlink, .about-pair__story > .tlink { margin-top: 24px; }

/* ---------- Buttons (actions people must press) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 280px; min-height: 60px; padding: 0 28px; border: 1px solid var(--text); background: var(--text); color: var(--surface); font-size: 15px; line-height: 1.5; letter-spacing: .04em; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; text-align: left; }
.btn__arrow { color: #E9B6A2; transition: transform .35s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover .btn__arrow { color: var(--surface); transform: translate(2px, -2px); }
.btn--sub { background: transparent; color: var(--text); border-color: var(--text); }
.btn--sub .btn__arrow { color: var(--accent); }
.btn--sub:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn--sub:hover .btn__arrow { color: #E9B6A2; }
.btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.form .btn { margin-top: 8px; }
@media (max-width: 760px) { .btn { width: 100%; min-width: 0; } }

/* ---------- Page title ---------- */
.page-title .wrap { display: flex; flex-direction: column; gap: var(--gap-lg); }
.page-title .ja { font-size: var(--fs-sub); line-height: 1.75; }

/* ---------- Top: first view & reveal ---------- */
.fv { min-height: calc(100vh - 112px); min-height: calc(100svh - 112px); display: flex; align-items: center; justify-content: center; text-align: center; }
.display { font-family: var(--font-en); font-size: var(--fs-display); line-height: 1.2; letter-spacing: -0.04em; display: flex; flex-direction: column; align-items: center; }
.reveal { min-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 64px; text-align: center; padding: var(--section-y) var(--pad-x); }
.reveal__lead { font-weight: 300; font-size: var(--fs-heading); line-height: 1.75; }
.reveal__text { font-size: var(--fs-body); line-height: 2; }
.reveal__line { width: 1px; height: 56px; background: var(--accent); }
@media (max-width: 760px) {
  .fv { min-height: calc(100svh - 88px); }
  .reveal { min-height: 0; gap: 48px; }
}

/* Scroll-driven motion (enabled by JS only when motion is allowed) */
.motion .story { position: relative; height: 320vh; margin-top: -112px; }
.motion .story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .story__stage .fv, .motion .story__stage .reveal { position: absolute; inset: 0; min-height: 0; padding-top: 0; padding-bottom: 0; }
.motion .story__stage .fv { padding-top: 112px; }
.motion [data-m] { will-change: opacity, transform, filter; }
@media (max-width: 760px) { .motion .story { margin-top: -88px; } .motion .story__stage .fv { padding-top: 88px; } }

/* ---------- Business ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; width: 100%; }
.col { display: flex; flex-direction: column; gap: 24px; }
.rule { height: 1px; background: var(--divider); width: 100%; }
.rule--accent { background: var(--accent); }
.expertise { width: 100%; background: var(--subtle); padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.expertise__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expertise__item { display: flex; flex-direction: column; gap: 16px; font-size: var(--fs-sub); line-height: 1.75; }
.expertise .label { margin-bottom: -8px; }
.soon { width: 100%; border: 1px solid var(--divider); background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.soon .badge { align-self: flex-start; font-family: var(--font-label); font-size: 12px; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--accent); padding: 4px 12px; }
@media (max-width: 760px) { .soon { padding: 28px 24px; } }
.soon--secret { flex-direction: row; align-items: center; gap: 16px; padding: 24px 28px; }
.work-row { display: grid; grid-template-columns: 400px 1fr; gap: 64px; width: 100%; }
.work-row__body { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1100px) {
  .work-row { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 56px; }
  .expertise { padding: 28px 24px; }
  .expertise__items { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about-pair { display: grid; grid-template-columns: 560px 560px; justify-content: space-between; gap: 64px; width: 100%; }
.about-pair__story { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
@media (max-width: 1240px) { .about-pair { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .about-pair { grid-template-columns: 1fr; gap: 32px; } }
.mission { display: flex; flex-direction: column; gap: 8px; }
.profile { width: 100%; }
.profile__row { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 40px 0; border-top: 1px solid var(--divider); }
.profile__row:first-child { border-top: 1px solid var(--divider); }
.profile__row dt { font-size: 14px; line-height: 1.9; color: var(--muted); }
.profile__row dd { margin: 0; font-size: var(--fs-body); line-height: 2; }
@media (max-width: 760px) { .profile__row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } }

/* ---------- Legal ---------- */
.legal { max-width: 900px; }
.legal .page-en { font-family: var(--font-en); font-size: var(--fs-en); line-height: 1.25; }
.legal .page-ja { font-size: var(--fs-sub); line-height: 1.75; margin-top: var(--gap-lg); margin-bottom: calc(var(--section-y) * .6); }
.legal h2 { font-size: 20px; line-height: 1.75; margin-top: 56px; margin-bottom: 16px; padding-top: 32px; border-top: 1px solid var(--divider); }
.legal p { font-size: 16px; line-height: 2; margin-bottom: 8px; }
.legal dl.def { margin: 0 0 40px; }
.legal dl.def > div { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 28px 0; border-top: 1px solid var(--divider); }
.legal dl.def > div:last-child { border-bottom: 1px solid var(--divider); }
.legal dt { font-size: 14px; line-height: 1.9; color: var(--muted); }
.legal dd { margin: 0; font-size: 16px; line-height: 2; }
@media (max-width: 760px) { .legal dl.def > div { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; } }

/* ---------- Forms ---------- */
.form { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 40px; }
.field { display: flex; flex-direction: column; gap: 16px; }
.field label { font-size: 14px; line-height: 1.9; }
.field .req { color: var(--accent); margin-left: .5em; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--divider); border-radius: 0;
  padding: 14px 20px; font-size: 16px; line-height: 1.75; min-height: 56px; appearance: none;
  transition: border-color .3s ease;
}
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--error); }
.field__error { font-size: 14px; line-height: 1.9; color: var(--error); min-height: 0; }
.field__hint { font-size: 12px; line-height: 1.6; color: var(--muted); text-align: right; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.9; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--accent); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: 14px; line-height: 1.9; color: var(--error); }
.form-status[data-kind="info"] { color: var(--muted); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Contact state pages */
.state .wrap { max-width: calc(960px + 480px); padding-left: clamp(28px, 16.7vw, 240px); padding-right: clamp(28px, 16.7vw, 240px); }
.state { padding-top: var(--section-y); padding-bottom: calc(var(--section-y) + 24px); }
.is-loading { opacity: .5; pointer-events: none; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
