/* VCP JAPON — shared styles */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --ink: #1d1a17;
  --ink-2: #3a342e;
  --muted: #6b6259;
  --line: #dcd2c2;
  --amber: #93561f;
  --amber-2: #c48a45;
  --night: #1d1a17;
  --night-2: #2a2520;
  --night-text: #efe8dc;
  --night-muted: #b3a894;

  --serif: "Cormorant Garamond", "Shippori Mincho", "Yu Mincho", serif;
  --serif-jp: "Shippori Mincho", "Yu Mincho", serif;
  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

html[lang="ja"] body { line-height: 1.95; letter-spacing: 0.02em; }

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--amber); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--ink); }

.lang { display: flex; gap: 2px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.lang a {
  font-size: 12px; letter-spacing: 0.08em; text-decoration: none; color: var(--muted);
  padding: 4px 7px; border: 0; border-radius: var(--radius);
}
.lang a[aria-current="true"] { color: var(--paper); background: var(--ink); }
.lang a:hover { color: var(--amber); }
.lang a[aria-current="true"]:hover { color: var(--paper); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--amber); }
  .lang { margin: 16px 0 0; padding: 0; border: 0; gap: 8px; }
  .lang a { padding: 8px 12px; border: 1px solid var(--line); font-size: 13px; }
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; color: var(--ink); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: var(--serif-jp); line-height: 1.45; letter-spacing: 0.04em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 40em; }

p { margin: 0 0 1em; }

.nw { white-space: nowrap; }
@media (max-width: 359px) { .nw { white-space: normal; } }
@media (max-width: 640px) { .sp-none { display: none; } }

/* ---------- Buttons ---------- */

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: 0.06em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
  font-family: var(--sans);
}
.btn:hover { background: var(--amber); border-color: var(--amber); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.on-night .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-night .btn:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--ink); }
.on-night .btn.ghost { background: transparent; color: var(--paper); border-color: var(--night-muted); }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.01em; margin-bottom: 28px; }
html[lang="ja"] .hero h1 { font-size: clamp(27px, 4.6vw, 54px); letter-spacing: 0.06em; }
.hero h1 em { font-style: italic; color: var(--amber); }
html[lang="ja"] .hero h1 em { font-style: normal; }
.hero-art { justify-self: end; width: 100%; height: auto; max-width: 500px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 190px; order: -1; margin-bottom: -8px; }
}

.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 20px; }
html[lang="ja"] .page-hero h1 { font-size: clamp(28px, 3.8vw, 44px); }

.edu { font-size: 13px; color: var(--muted); margin: 14px 0 0; max-width: 46em; }
.who { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.who .eyebrow { margin-bottom: 10px; }
.who h1 { margin-bottom: 0; }
.portrait { width: 112px; height: 112px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 560px) { .who { gap: 16px; } .portrait { width: 80px; height: 80px; } }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--paper-2); border-top: 0; }
.section.alt + .section { border-top: 0; }

.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-bottom: 56px; align-items: end; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
html[lang="ja"] .section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }

.on-night { background: var(--night); color: var(--night-text); }
.on-night h1, .on-night h2, .on-night h3 { color: var(--night-text); }
.on-night .eyebrow { color: var(--amber-2); }
.on-night .section-head p, .on-night .muted { color: var(--night-muted); }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.c2, .grid.c4 { grid-template-columns: 1fr; } }

/* 3-col grid with 5, 8… cards: stretch the last card so no empty cell shows */
@media (min-width: 961px) { .grid.c3 > .card:last-child:nth-child(3n + 2) { grid-column: span 2; } }

a.tl { color: inherit; text-decoration: underline; text-decoration-color: var(--amber-2); text-underline-offset: 4px; }
a.tl:hover { color: var(--amber-2); }
a.tl::after { content: " ↗"; color: var(--amber-2); }

.card { background: var(--paper); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.section.alt .card { background: var(--paper-2); }
.card .num { font-family: var(--serif); font-size: 15px; color: var(--amber); letter-spacing: 0.1em; margin-bottom: 20px; }
.card h3 { font-size: clamp(22px, 2.2vw, 26px); margin-bottom: 14px; }
html[lang="ja"] .card h3 { font-size: clamp(18px, 1.8vw, 21px); }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.card .more { margin-top: auto; padding-top: 24px; font-size: 14px; letter-spacing: 0.04em; color: var(--amber); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

.on-night .grid { background: #3b342d; border-color: #3b342d; }
.on-night .card { background: var(--night); }
.on-night .card p { color: var(--night-muted); }
.on-night .card .num { color: var(--amber-2); }

/* Pillars on home: big link cards */
.pillar { background: var(--paper); padding: clamp(28px, 4vw, 56px); text-decoration: none; display: flex; flex-direction: column; min-height: 320px; transition: background .25s; }
.pillar:hover { background: #fffdf8; }
.pillar .tag { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.pillar h3 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 16px; }
html[lang="ja"] .pillar h3 { font-size: clamp(22px, 2.4vw, 28px); }
.pillar p { color: var(--ink-2); margin: 0 0 24px; }
.pillar .go { margin-top: auto; font-size: 14px; letter-spacing: 0.06em; color: var(--ink); display: inline-flex; gap: 10px; }
.pillar:hover .go { color: var(--amber); }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { font-size: clamp(30px, 4vw, 46px); }
html[lang="ja"] .split h2 { font-size: clamp(24px, 3vw, 34px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Spec lists ---------- */

.specs { margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { text-align: right; }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.steps li { counter-increment: s; border-top: 1px solid currentColor; padding-top: 20px; }
.on-night .steps li { border-top-color: #4a4239; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: block;
  font-family: var(--serif); font-size: 34px; color: var(--amber-2); line-height: 1; margin-bottom: 14px;
}
.steps h3 { font-size: 22px; margin-bottom: 8px; }
html[lang="ja"] .steps h3 { font-size: 18px; }
.steps p { font-size: 15px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Notes / callouts ---------- */

.note {
  border-left: 2px solid var(--amber); padding: 18px 24px; background: rgba(147, 86, 31, 0.06);
  font-size: 15px; color: var(--ink-2); margin-top: 40px;
}
.note strong { color: var(--ink); }

.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.check li:last-child { border-bottom: 1px solid var(--line); }
.check li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 1px; background: var(--amber); }

/* ---------- Timeline (about) ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--serif); font-size: 24px; color: var(--amber); line-height: 1.3; }
.timeline h3 { font-size: 20px; margin-bottom: 6px; }
html[lang="ja"] .timeline h3 { font-size: 17px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

.quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; margin: 0 0 16px;
}
.quote-sub { color: var(--night-muted); margin: 0; }

/* ---------- Fees table ---------- */

.fees { width: 100%; border-collapse: collapse; font-size: 15px; }
.fees th, .fees td { text-align: left; padding: 16px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.fees tr:last-child td { border-bottom: 1px solid var(--line); }
.fees th { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; }
.fees td:last-child { white-space: nowrap; text-align: right; font-weight: 500; }
@media (max-width: 560px) { .fees td:last-child { white-space: normal; } }

/* ---------- Form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.field .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fffdf9; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; cursor: pointer; color: var(--ink); }
.chips input { width: auto; min-height: 0; accent-color: var(--amber); margin: 0; }
.chips label:has(input:checked) { border-color: var(--amber); background: rgba(147, 86, 31, 0.08); }
.form .hp { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.form-foot p { font-size: 13px; color: var(--muted); margin: 0; max-width: 34em; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-aside h3 { font-size: 22px; margin-bottom: 12px; }
.contact-aside a { color: var(--amber); }
.contact-aside dl { margin: 24px 0 0; font-size: 15px; }
.contact-aside dt { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 18px; }
.contact-aside dd { margin: 4px 0 0; }

/* ---------- Legal ---------- */

.prose { max-width: 46em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 16px; }
html[lang="ja"] .prose h2 { font-size: 21px; }
.prose h2:first-child { margin-top: 0; }
.prose dl { display: grid; grid-template-columns: 180px 1fr; margin: 0; border-top: 1px solid var(--line); }
.prose dt, .prose dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.prose dt { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- CTA band ---------- */

.cta { padding: clamp(64px, 9vw, 104px) 0; text-align: center; }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 16px; }
html[lang="ja"] .cta h2 { font-size: clamp(22px, 3vw, 34px); }
.cta p { color: var(--night-muted); margin: 0 auto; max-width: 36em; }
.cta .btns { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night-2); color: var(--night-muted); font-size: 14px; padding: 56px 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #3b342d; }
.site-footer .brand svg { height: 40px; color: var(--night-text); }
.site-footer h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--night-text); margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; color: var(--night-muted); }
.site-footer a:hover { color: var(--amber-2); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 12px; }
.site-footer .warn { color: var(--night-text); }
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Instagram link */
a.ig { display: inline-flex; align-items: center; gap: 8px; }
a.ig svg { flex: none; }

/* Instagram in header: icon on desktop, labelled row in the mobile menu */
.nav a.ig-top { padding: 6px 2px; border-bottom: 0; color: var(--ink-2); }
.nav a.ig-top:hover { color: var(--amber); }
.ig-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .nav a.ig-top { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ig-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
