/* =========================================================
   SYNQ PRODUCT — site stylesheet
   Layout rule: nothing that carries content is absolutely
   positioned, so copy can never be clipped at any viewport.
   Breakpoints: ≤1024 tablet / ≤768 small tablet / ≤540 phone
   ========================================================= */

:root {
  --ink: #232323;
  --ink-soft: #4b4845;
  --muted: #68645e;            /* ≥4.5:1 on paper and sand */
  --paper: #f4f1ec;
  --sand: #e8e2da;
  --white: #fbfaf8;
  --slate: #2c4352;
  --char: #1f1f1f;
  --char-deep: #171717;
  --kv-dark: #282828;
  --gold: #8e7419;             /* decorative / large text */
  --gold-text: #786215;        /* small text & text-bearing fills (≥4.5:1) */
  --gold-light: #c6ab52;
  --line: rgba(35, 35, 35, .16);
  --line-inv: rgba(255, 255, 255, .2);

  --gutter: clamp(20px, 5.5vw, 80px);
  --section: clamp(96px, 11vw, 168px);
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --f-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-width: 320px;
  font-family: var(--f-ja); font-size: 16px; line-height: 2; letter-spacing: .04em;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); font-size: 14px; }
.skip:focus { top: 16px; }
.nw { display: inline-block; }
.ja-break { word-break: auto-phrase; }
br.sp { display: none; }

/* ---------- Icons (SVG sprite, drawn from images/arrow.png etc.) ---------- */
.i { flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.i * { vector-effect: non-scaling-stroke; }
.i-arrow { width: 40px; height: auto; aspect-ratio: 5 / 1; }
.i-ext { width: 9px; height: 9px; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 52px; padding: 0 28px 0 30px;
  border-radius: 999px; background: var(--ink); color: var(--white);
  font-family: var(--f-en); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn .i-arrow { color: var(--gold-light); transition: transform .5s var(--ease), color .4s; }
.btn:hover { background: var(--gold-text); }
.btn:hover .i-arrow { color: var(--white); transform: translateX(5px); }
.btn--gold { background: var(--gold-text); }
.btn--gold .i-arrow { color: var(--white); }
.btn--gold:hover { background: var(--white); color: var(--ink); }
.btn--gold:hover .i-arrow { color: var(--gold); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-en); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--gold-text);
  padding-bottom: 2px; border-bottom: 1px solid currentColor;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease), height .5s var(--ease);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter); }
.header.is-solid, .header--solid {
  background: rgba(244, 241, 236, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(35, 35, 35, .08);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo { flex: none; display: block; }
.header__logo img { width: auto; height: 38px; }
.header__right { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.gnav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.gnav a {
  position: relative; padding-block: 8px;
  font-family: var(--f-en); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  transition: color .4s var(--ease);
}
.gnav a:hover { color: var(--gold-text); }
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.gnav a:hover::after, .gnav a[aria-current="true"]::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header .btn { min-height: 46px; padding: 0 22px 0 26px; }

.burger { display: none; position: relative; width: 48px; height: 48px; margin-right: -12px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .5s var(--ease), background-color .3s, top .5s var(--ease); }
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 28px; }
.is-menu-open .burger span { background: var(--white); }
.is-menu-open .burger span:nth-child(1) { top: 24px; transform: rotate(18deg); }
.is-menu-open .burger span:nth-child(2) { top: 24px; transform: rotate(-18deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  background: var(--char); color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.is-menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu__list { display: grid; gap: 8px; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding-block: 6px; font-family: var(--f-en); font-weight: 200; font-size: clamp(34px, 9vw, 56px); line-height: 1.2; letter-spacing: .01em; }
.menu__list small { font-family: var(--f-ja); font-size: 12px; letter-spacing: .12em; opacity: .55; }
.menu .btn { align-self: flex-start; }
.is-menu-open { overflow: hidden; }
.is-menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.header__logo .logo-light { display: none; }
.is-menu-open .header__logo .logo-dark { display: none; }
.is-menu-open .header__logo .logo-light { display: block; }

/* ---------- Section frame ---------- */
.sec { position: relative; padding-block: var(--section); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: clamp(32px, 4.5vw, 72px); }
.sec-head { align-self: start; }
.label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-en); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1;
  color: var(--gold-text);
}
.label__num::after { content: ""; display: inline-block; width: 24px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; }
.label-ja { margin-top: 16px; font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: .12em; color: var(--muted); }

.display {
  font-family: var(--f-en); font-weight: 200; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(48px, 8.2vw, 128px);
}
.h2 {
  font-family: var(--f-min); font-weight: 500; letter-spacing: .08em; line-height: 1.6;
  font-size: clamp(26px, 3.2vw, 46px);
  font-feature-settings: "palt"; word-break: auto-phrase;
}
.lead {
  font-family: var(--f-min); font-weight: 500; letter-spacing: .08em; line-height: 2;
  font-size: clamp(18px, 1.8vw, 24px);
  font-feature-settings: "palt"; word-break: auto-phrase;
}
.text { font-size: 15px; line-height: 2.1; color: var(--ink-soft); }
.text, .svc__desc, .step__desc, .flow__d, .pillar__ja, .svc__ja { word-break: auto-phrase; }
.text + .text { margin-top: 1.3em; }

/* ---------- Key visual (header + main visual on the top page) ----------
   Grid: [dark rail | stage]. The stage is a grid of [bar / copy / foot] rows,
   so copy, nav and scroll cue each own their row and can never overlap or clip.
   Only decoration (video, outline mark, logo box) is absolutely positioned. */
.kv {
  --rail: clamp(30px, 2.2vw, 40px);
  --logo-w: clamp(112px, 9.2vw, 168px);
  --logo-h: calc(var(--logo-w) * .9);
  --copy-x: clamp(28px, 7.4vw, 150px);
  position: relative; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 94vh; min-height: 94svh;
  background: var(--kv-dark);
}
.kv__logo {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: var(--logo-w); height: var(--logo-h);
  display: grid; place-items: center; background: var(--kv-dark);
}
.kv__logo img { width: 46%; height: auto; opacity: .92; transition: opacity .3s; }
.kv__logo:hover img { opacity: 1; }

.kv__rail {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(40px, 6vh, 88px);
  padding: calc(var(--logo-h) + 32px) 0 32px; color: var(--white); background: var(--kv-dark);
}
.kv__vertical { writing-mode: vertical-rl; font-family: var(--f-en); font-size: 11px; letter-spacing: .12em; opacity: .85; line-height: 1; white-space: nowrap; }
.kv__sns { display: grid; gap: 16px; justify-items: center; }
.kv__sns a { display: grid; place-items: center; width: 28px; height: 28px; opacity: .8; transition: opacity .3s, transform .4s var(--ease); }
.kv__sns a:hover { opacity: 1; transform: translateY(-2px); }
.kv__sns img, .kv__sns svg { width: 15px; height: 15px; }

.kv__stage {
  grid-column: 2; grid-row: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: var(--logo-h) 1fr auto;
  background: #d9d1c7;
}
.kv__media { position: absolute; inset: 0; z-index: -2; }
.kv__media video, .kv__media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 60%; }
.kv__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 241, 236, .38) 0%, rgba(244, 241, 236, .18) 45%, rgba(244, 241, 236, 0) 70%); }
.kv__mark {
  position: absolute; z-index: -1; pointer-events: none;
  left: calc(var(--logo-w) - var(--rail) - 8px); top: 9%;
  height: 78%; aspect-ratio: 1145 / 1400;
}
/* three pre-coloured layers; the one matching the background scene fades in (scene set by main.js).
   Plain <img> layers are used (not a CSS mask) so it also renders when the file is opened locally. */
.kv__mark img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.kv__mark .kv__mark-white { opacity: .8; }
.kv__stage[data-scene="blue"] .kv__mark-white, .kv__stage[data-scene="geo"] .kv__mark-white { opacity: 0; }
.kv__stage[data-scene="blue"] .kv__mark-navy { opacity: .35; }
.kv__stage[data-scene="geo"] .kv__mark-gold { opacity: .4; }
/* horizontally centred on the eyebrow line (centre measured by main.js); vertical position unchanged */
.kv__stage[style*="--mark-cx"] .kv__mark { left: var(--mark-cx); translate: -50% 0; }

.kv__bar { grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px; }
.kv__nav { grid-column: 2; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); min-height: clamp(44px, 3.4vw, 56px); transform: translateX(calc(clamp(60px, 7vw, 100px) - var(--rail) / 2)); }
.kv__nav a {
  position: relative; padding-block: 6px;
  font-family: var(--f-en); font-size: clamp(11px, .8vw, 12.5px); font-weight: 400; letter-spacing: .16em; line-height: 1; color: var(--ink);
  transition: color .4s var(--ease);
}
.kv__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.kv__nav a:hover { color: var(--gold-text); }
.kv__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.kv__actions { grid-column: 3; justify-self: end; display: flex; }
.kv__contact {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: clamp(148px, 11vw, 196px); min-height: clamp(44px, 3.4vw, 56px); padding: 0 20px;
  background: var(--kv-dark); color: var(--gold-light);
  font-family: var(--f-en); font-size: clamp(11px, .8vw, 12.5px); letter-spacing: .16em; line-height: 1;
  transition: background-color .4s var(--ease), color .4s;
}
.kv__contact .i-arrow { width: 32px; transition: transform .5s var(--ease); }
.kv__contact:hover { background: var(--gold-text); color: var(--white); }
.kv__contact:hover .i-arrow { transform: translateX(6px); }
.kv__burger { display: none; position: relative; width: clamp(44px, 3.4vw, 56px); height: clamp(44px, 3.4vw, 56px); background: var(--kv-dark); }
.kv__burger span { position: absolute; left: 30%; right: 30%; height: 1px; background: var(--white); }
.kv__burger span:nth-child(1) { top: 44%; }
.kv__burger span:nth-child(2) { top: 56%; }

.kv__copy { grid-row: 2; align-self: center; padding: 32px var(--gutter) 32px var(--copy-x); }
.kv__eyebrow { font-family: var(--f-en); font-size: clamp(13px, 1.3vw, 24px); line-height: 1.6; letter-spacing: .02em; color: #7a6416; }
.kv__title {
  margin-top: clamp(16px, 2vw, 40px);
  font-family: var(--f-min); font-weight: 500; line-height: 1.42; letter-spacing: .06em;
  font-size: clamp(34px, 4.75vw, 92px); color: var(--ink);
  font-feature-settings: "palt";
}
.kv__lead { margin-top: clamp(20px, 2.4vw, 44px); font-size: clamp(14px, 1.25vw, 22px); line-height: 1.95; letter-spacing: .06em; color: #2f2c29; }

.kv__foot { grid-row: 3; padding: 0 0 clamp(28px, 3.6vw, 56px) calc(var(--copy-x) - clamp(20px, 3.6vw, 60px)); }
.kv__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; color: var(--ink); }
.kv__scroll-txt { writing-mode: vertical-rl; font-family: var(--f-en); font-size: 12px; font-weight: 500; letter-spacing: .24em; line-height: 1; }
.kv__scroll-line { position: relative; display: block; width: 2px; height: clamp(80px, 7.5vw, 120px); background: rgba(35, 35, 35, .2); overflow: hidden; }
.kv__scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--gold); transform: translateY(-100%);
  animation: scrollLine 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(250%); } }

/* compact header that slides in after the key visual */
.header--kv:not(.is-shown) { transform: translateY(-100%); pointer-events: none; }
.header--kv { box-shadow: 0 1px 0 rgba(35, 35, 35, .08); }
body.is-menu-open .header.header--kv { transform: none; pointer-events: auto; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 48px); background: var(--kv-dark); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__item {
  flex: none; display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--f-en); font-weight: 200; font-size: clamp(36px, 6vw, 88px); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap;
  color: rgba(244, 241, 236, .2);
}
.marquee__item i { font-style: normal; color: var(--gold-light); opacity: .75; font-size: .4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { overflow-x: clip; } /* the Venn circles start offset outward before their entrance animation */
.about__title .gold { color: var(--gold); }
.about__grid {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5.5vw, 88px); align-items: center;
}
.about__grid .lead { margin-bottom: 32px; }

.venn { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.venn__c { position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(35, 35, 35, .5); border-radius: 50%; transition: transform 1.6s var(--ease) .15s, opacity 1.2s var(--ease) .15s; }
.venn__c--1 { left: 19%; top: 0; }
.venn__c--2 { left: 0; top: 33%; }
.venn__c--3 { left: 38%; top: 33%; }
.venn__t { position: absolute; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; white-space: nowrap; }
.venn__t small { display: block; font-family: var(--f-en); font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--muted); }
.venn__t--1 { left: 50%; top: 13%; transform: translateX(-50%); }
.venn__t--2 { left: 9%; top: 69%; }
.venn__t--3 { right: 9%; top: 69%; }
.venn__core {
  position: absolute; left: 50%; top: 53%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; padding-left: .2em; background: var(--gold-text); color: var(--white);
  font-family: var(--f-en); font-size: 15px; font-size: clamp(13px, 3.9cqi, 16px); font-weight: 500; letter-spacing: .2em; line-height: 1;
  transition: transform 1s var(--ease) 1.1s, opacity 1s var(--ease) 1.1s;
}
.js .venn:not(.is-in) .venn__c--1 { transform: translateY(-14%); opacity: 0; }
.js .venn:not(.is-in) .venn__c--2 { transform: translate(-14%, 10%); opacity: 0; }
.js .venn:not(.is-in) .venn__c--3 { transform: translate(14%, 10%); opacity: 0; }
.js .venn:not(.is-in) .venn__core { transform: translate(-50%, -50%) scale(.4); opacity: 0; }

.pillars { margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); }
.pillar { border-top: 1px solid var(--line); padding-top: 32px; text-align: center; }
.pillar__icon { width: auto; height: 40px; margin-inline: auto; opacity: .85; }
.pillar__en { margin-top: 28px; font-family: var(--f-en); font-size: 13px; font-weight: 500; letter-spacing: .2em; line-height: 1.6; color: var(--gold-text); }
.pillar__ja { margin-top: 4px; font-size: 18px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; }
.pillar .text { max-width: 24em; margin: 16px auto 0; font-size: 14px; line-height: 2; text-wrap: balance; word-break: auto-phrase; }

/* ---------- Service ---------- */
.service { background: var(--sand); }
.service__intro .text { margin-top: 28px; max-width: 36em; }
.service__body {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 5.5vw, 88px); align-items: start;
}
.service__visual { position: sticky; top: calc(var(--header-h) + 32px); }
.service__visual .frame { aspect-ratio: 4 / 5; }
.service__visual figcaption { margin-top: 16px; font-family: var(--f-en); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame picture { display: block; width: 100%; height: 100%; }

.svc { border-bottom: 1px solid var(--line); }
.svc__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; padding-block: clamp(28px, 3.2vw, 44px); border-top: 1px solid var(--line); }
.svc__num { font-family: var(--f-en); font-size: 13px; font-weight: 500; letter-spacing: .16em; line-height: 2.4; color: var(--gold-text); }
.svc__en { font-family: var(--f-en); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: .01em; }
.svc__ja { margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; }
.svc__desc { margin-top: 6px; font-size: 14px; line-height: 2; color: var(--ink-soft); }

/* ---------- Approach ---------- */
.approach { background: var(--slate); color: var(--white); overflow: clip; }
.approach .label { color: var(--gold-light); }
.approach .label-ja { color: rgba(255, 255, 255, .62); }
.approach .text { margin-top: 28px; max-width: 34em; color: rgba(255, 255, 255, .78); }
.approach__ring { position: absolute; z-index: 0; right: -8%; top: -6%; width: min(52vw, 660px); opacity: .12; pointer-events: none; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.approach .container { position: relative; z-index: 1; }
.approach__visual { margin-top: clamp(56px, 7vw, 104px); aspect-ratio: 21 / 8; }
.process { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.step { position: relative; border-top: 1px solid var(--line-inv); padding-top: 28px; }
.step::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }
.step__num { font-family: var(--f-en); font-size: 11px; font-weight: 500; letter-spacing: .22em; line-height: 1.6; color: var(--gold-light); }
.step__en { margin-top: 10px; font-family: var(--f-en); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.step__ja { margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; }
.step__desc { margin-top: 14px; font-size: 13px; line-height: 2; color: rgba(255, 255, 255, .7); }

/* ---------- News ---------- */
.news { background: var(--sand); padding-block: calc(var(--section) * .72); }
.news__list { border-bottom: 1px solid var(--line); }
.news__item { border-top: 1px solid var(--line); }
.news__link {
  display: grid; grid-template-columns: 108px 96px minmax(0, 1fr) auto; align-items: center; column-gap: 24px;
  padding: 26px 4px; transition: background-color .4s var(--ease), padding .4s var(--ease);
}
.news__date { font-family: var(--f-en); font-size: 14px; letter-spacing: .08em; color: var(--ink-soft); }
.news__cat {
  justify-self: start; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; line-height: 1.5; letter-spacing: .1em; color: var(--ink-soft);
}
.news__title { font-size: 15px; line-height: 1.8; letter-spacing: .06em; word-break: auto-phrase; }
.news__link .i-arrow { width: 28px; color: var(--gold); transition: transform .5s var(--ease); }
.news__link:hover { background-color: rgba(251, 250, 248, .55); padding-inline: 16px; }
.news__link:hover .news__title { color: var(--gold-text); }
.news__link:hover .i-arrow { transform: translateX(6px); }
.news__more { margin-top: 32px; text-align: right; }
.news-page { padding-bottom: var(--section); }
.news-page .news__link:hover { background-color: rgba(232, 226, 218, .5); }

/* article */
.article { padding-bottom: var(--section); }
.article__inner { max-width: 820px; }
.article__meta { display: flex; align-items: center; gap: 16px; font-family: var(--f-en); font-size: 14px; letter-spacing: .08em; color: var(--ink-soft); }
.article__title {
  margin-top: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line);
  font-family: var(--f-min); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.7; letter-spacing: .06em;
  font-feature-settings: "palt"; word-break: auto-phrase;
}
.article__body { margin-top: 40px; }
.article__body > p { font-size: 15px; line-height: 2.2; color: var(--ink-soft); word-break: auto-phrase; }
.article__body > p + p { margin-top: 1.4em; }
.article__dl { margin-top: 48px; }
.article__link { margin-top: 40px; }
.article__pager {
  margin-top: clamp(64px, 8vw, 104px); padding-top: 32px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  font-size: 13px; line-height: 1.7;
}
.article__pager small { display: block; font-family: var(--f-en); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.article__next { text-align: right; }
.article__index { font-family: var(--f-en); font-size: 12px; letter-spacing: .16em; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s; }
.article__index:hover { border-color: var(--ink); }
.article__prev:hover, .article__next:hover { color: var(--gold-text); }

/* ---------- Company ---------- */
.company__visual { aspect-ratio: 21 / 9; }
.dl { margin-top: clamp(48px, 5.5vw, 80px); border-bottom: 1px solid var(--line); }
.dl__row { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 32px; padding-block: 26px; border-top: 1px solid var(--line); }
.dl dt { font-size: 14px; font-weight: 500; letter-spacing: .1em; line-height: 1.9; }
.dl dd { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
/* reading of the company name */
.kana { display: block; font-size: 11px; line-height: 1.6; letter-spacing: .24em; color: var(--muted); }
.footer__addr .kana { margin-bottom: 6px; color: rgba(255, 255, 255, .55); }
.biz { display: grid; grid-template-columns: repeat(3, max-content); gap: 2px 2.2em; }
.biz li { display: flex; align-items: center; gap: .7em; white-space: nowrap; }
.biz li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.dl .textlink { margin-top: 8px; }

/* ---------- CTA ---------- */
.cta { background: var(--char); color: var(--white); }
.cta__link { display: block; padding-block: clamp(104px, 12.5vw, 184px); }
.cta .label { color: var(--gold-light); }
.cta__title { margin-top: 28px; font-family: var(--f-en); font-weight: 200; font-size: clamp(60px, 12.5vw, 196px); line-height: 1; letter-spacing: -.03em; transition: color .6s var(--ease); }
.cta__row { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta__text { font-size: 15px; line-height: 2.1; color: rgba(255, 255, 255, .72); }
.cta__circle {
  flex: none; width: 128px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  display: grid; place-items: center; color: var(--gold-light);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), color .4s;
}
.cta__circle .i-arrow { width: 44px; transition: transform .6s var(--ease); }
.cta__link:hover .cta__title { color: var(--gold-light); }
.cta__link:hover .cta__circle { background: var(--gold); border-color: var(--gold); color: var(--white); }
.cta__link:hover .cta__circle .i-arrow { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer { background: var(--char-deep); color: rgba(255, 255, 255, .72); padding-top: clamp(72px, 8.5vw, 120px); overflow: clip; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.footer__logo img { width: 190px; height: auto; }
.footer__addr { margin-top: 28px; font-size: 13px; line-height: 2; }
.footer__sns { display: flex; gap: 12px; margin-top: 24px; }
.footer__sns a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: var(--white); opacity: .8; transition: opacity .3s, border-color .3s, background-color .3s; }
.footer__sns a:hover { opacity: 1; border-color: var(--gold-light); background-color: rgba(198, 171, 82, .12); }
.footer__sns img, .footer__sns svg { width: 15px; height: 15px; }
.footer__h { font-family: var(--f-en); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1.6; color: var(--gold-light); }
.footer__list { margin-top: 18px; display: grid; gap: 8px; }
.footer__list a { font-family: var(--f-en); font-size: 14px; letter-spacing: .06em; line-height: 1.9; transition: color .3s; }
.footer__list a:hover { color: var(--white); }
.footer__bottom {
  margin-top: clamp(64px, 8vw, 112px); padding-block: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--f-en); font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .5);
}
.footer__bottom a:hover { color: var(--white); }
.footer__mark { font-family: var(--f-en); font-weight: 200; letter-spacing: -.03em; white-space: nowrap; line-height: .78; font-size: min(11vw, 164px); color: rgba(255, 255, 255, .05); margin-bottom: -.1em; user-select: none; }

/* ---------- Sub pages ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(48px, 6.5vw, 96px); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; line-height: 1.6; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.page-hero .display { margin-top: 28px; }
.page-hero h1 { margin-top: 14px; font-size: 15px; font-weight: 500; letter-spacing: .2em; line-height: 1.6; }

.contact { padding-bottom: var(--section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(48px, 7vw, 104px); align-items: start; }
.contact__aside .text { margin-top: 24px; }
.flow { margin-top: 44px; border-bottom: 1px solid var(--line); }
.flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding-block: 18px; border-top: 1px solid var(--line); }
.flow__num { font-family: var(--f-en); font-size: 12px; font-weight: 500; letter-spacing: .16em; line-height: 2; color: var(--gold-text); }
.flow__t { font-size: 15px; font-weight: 500; line-height: 1.8; }
.flow__d { font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.note { margin-top: 28px; font-size: 12px; line-height: 2; color: var(--muted); }

.form { background: var(--white); padding: clamp(28px, 4.5vw, 64px); border-radius: 4px; }
.field + .field { margin-top: 32px; }
.field__label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.tag { font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .1em; padding: 5px 8px; border-radius: 2px; }
.tag--req { background: var(--gold-text); color: var(--white); }
.tag--opt { border: 1px solid var(--line); color: var(--muted); }
.input, .textarea {
  display: block; width: 100%; margin-top: 12px;
  font-size: 16px; letter-spacing: .04em; color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-radius: 4px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.input { height: 56px; padding: 0 18px; }
.textarea { min-height: 220px; padding: 16px 18px; line-height: 1.9; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #a8a199; }
.input:focus, .textarea:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(142, 116, 25, .12); }
.is-invalid .input, .is-invalid .textarea { border-color: #b3452f; background: #fbf3f1; }
.field__err { display: none; margin-top: 8px; font-size: 12px; line-height: 1.6; color: #b3452f; }
.is-invalid .field__err { display: block; }
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; line-height: 1.6; transition: all .3s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.agree { margin-top: 36px; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.agree a { border-bottom: 1px solid currentColor; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: 36px; }
.form__actions .btn { min-height: 64px; width: min(100%, 320px); justify-content: space-between; padding: 0 30px 0 34px; font-size: 14px; }
.form__actions .btn[disabled] { opacity: .5; pointer-events: none; }
.form__msg { display: none; margin-top: 20px; padding: 16px 18px; border-radius: 4px; background: #fbf3f1; color: #8a3524; font-size: 14px; line-height: 1.8; }
.form__msg.is-show { display: block; }

.simple { padding-bottom: var(--section); }
.simple__box { max-width: 760px; }
.simple__box .text { margin-top: 24px; }
.simple__box .btn { margin-top: 40px; }

.policy { padding-bottom: var(--section); }
.policy__body { max-width: 820px; }
.policy__body > p { font-size: 15px; line-height: 2.1; color: var(--ink-soft); }
.policy__body h2 { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; letter-spacing: .08em; line-height: 1.8; }
.policy__body h2 + p, .policy__body h2 + ul { margin-top: 14px; }
.policy__body ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; font-size: 15px; line-height: 2.1; color: var(--ink-soft); }
.policy__body .sign { margin-top: 56px; text-align: right; }

/* ---------- Motion ---------- */
.js [data-reveal] { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(32px); }
.js [data-reveal="fade"]:not(.is-in) { opacity: 0; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"]:not(.is-in) .mask > span { transform: translateY(110%); }
.js .frame[data-reveal] img { transition: transform 2s var(--ease), opacity 1.4s var(--ease); }
.js .frame[data-reveal]:not(.is-in) img { transform: scale(1.12); opacity: 0; }


.js [data-load] { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js body:not(.is-loaded) [data-load="up"] { opacity: 0; transform: translateY(24px); }
.js body:not(.is-loaded) [data-load="down"] { opacity: 0; transform: translateY(-100%); }
.js body:not(.is-loaded) [data-load="fade"] { opacity: 0; }
.js body:not(.is-loaded) [data-load="mask"] .mask > span { transform: translateY(110%); }
.js .kv__media { transition: opacity 1.8s var(--ease); }
.js body:not(.is-loaded) .kv__media { opacity: 0; }
.js .kv__mark { transition: opacity 2s var(--ease) .3s, transform 2.4s var(--ease) .3s; }
.js body:not(.is-loaded) .kv__mark { opacity: 0; transform: scale(.94) rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal] *, .js [data-load], .js [data-load] *, .js .kv__media, .js .kv__mark { opacity: 1 !important; transform: none !important; }
}

/* ---------- ≤1024 ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 32px; }
  .gnav, .header .btn { display: none; }
  .burger { display: block; }

  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { margin-bottom: 40px; }

  .service__body { grid-template-columns: minmax(0, 1fr); }
  .service__visual { position: static; }
  .service__visual .frame { aspect-ratio: 16 / 9; }

  .process { grid-template-columns: minmax(0, 1fr); gap: 0; margin-left: 3px; border-left: 1px solid var(--line-inv); }
  .step { border-top: 0; padding: 0 0 44px 32px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -4px; top: 7px; }

  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- ≤768 ---------- */
@media (max-width: 768px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .venn { width: min(100%, 340px); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .biz { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 1.6em; }
  .biz li { white-space: normal; }
}

/* ---------- ≤540 ---------- */
@media (max-width: 540px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; }
  .header__logo img { height: 28px; }
  br.sp { display: inline; }
  br.pc { display: none; }


  /* tighter vertical rhythm on phones */
  :root { --section: 80px; }
  .sec-head { margin-bottom: 32px; }
  .display { font-size: 13vw; }
  .text { font-size: 14px; }
  .about__grid { margin-top: 40px; gap: 48px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 64px; }
  .pillar { padding-block: 28px; }
  .pillar__en { margin-top: 18px; }
  .service__body { margin-top: 48px; gap: 32px; }
  .approach__visual, .process { margin-top: 48px; }
  .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1em; }
  .biz li { white-space: normal; }
  .svc__item { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .approach__visual { aspect-ratio: 4 / 3; }
  .company__visual { aspect-ratio: 4 / 3; }
  .dl__row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding-block: 20px; }
  .news__link { grid-template-columns: max-content max-content 1fr auto; grid-template-areas: "date cat . ." "title title title arrow"; row-gap: 8px; column-gap: 14px; padding: 20px 2px; }
  .news__date { grid-area: date; font-size: 13px; }
  .news__cat { grid-area: cat; }
  .news__title { grid-area: title; font-size: 14px; }
  .news__link .i-arrow { grid-area: arrow; width: 22px; }
  .news__link:hover { padding-inline: 2px; }
  .article__pager { grid-template-columns: 1fr; text-align: center; }
  .article__next { text-align: center; }
  .article__pager > span:empty { display: none; }
  .cta__circle { width: 88px; }
  .cta__circle .i-arrow { width: 32px; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }

  .form { margin-inline: calc(var(--gutter) * -1); padding: 32px 20px; border-radius: 0; }
  .form__actions .btn { width: 100%; }
}

/* key visual: tablet */
@media (max-width: 1024px) {
  .kv__nav { display: none; }
  .kv__burger { display: block; }
}
/* key visual: phones and portrait tablets
   - first view = key visual + the marquee band peeking in at the bottom (no dead space)
   - copy centred vertically; video framed on the calm left side of each scene, under a light wash
   - outline mark centred behind the copy */
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
  .kv { --logo-w: clamp(88px, 20vw, 132px); --copy-x: var(--gutter); --mq-h: 76px; min-height: calc(100vh - var(--mq-h)); min-height: calc(100svh - var(--mq-h)); }
  .kv__stage { grid-template-rows: var(--logo-h) 1fr auto; }
  /* artwork shows at the top / bottom / right edges; the band behind the copy is washed for legibility */
  .kv__media video, .kv__media img { object-position: 68% 50%; }
  .kv__media::after { background: linear-gradient(180deg, rgba(244, 241, 236, .15) 0%, rgba(244, 241, 236, .55) 18%, rgba(244, 241, 236, .8) 32%, rgba(244, 241, 236, .8) 66%, rgba(244, 241, 236, .45) 82%, rgba(244, 241, 236, .2) 100%); }
  .kv__mark { left: 50%; top: 50%; height: 64%; translate: -50% -50%; }
  /* centred on the copy block (eyebrow + title + lead) both ways — centre measured by main.js */
  .kv__stage[style*="--mark-cx"] .kv__mark { translate: -50% -50%; }
  .kv__stage[style*="--mark-cy"] .kv__mark { left: var(--mark-cx); top: var(--mark-cy); }
  /* bottom margin lifts the optical centre slightly above the middle */
  .kv__copy { grid-row: 2; align-self: center; padding-top: 24px; padding-bottom: 24px; margin-bottom: clamp(48px, 10svh, 112px); }
  .kv__title { font-size: clamp(28px, 6.4vw, 56px); }
  .kv__eyebrow, .kv__lead { text-wrap: balance; word-break: auto-phrase; }
  .kv__foot { grid-row: 3; padding-left: var(--gutter); }
  .marquee { padding-block: 20px; }
  .marquee__item { font-size: 32px; line-height: 36px; }
}
@media (max-width: 768px) {
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv__rail { display: none; }
  .kv__stage { grid-column: 1; }
  .kv__contact { display: none; }
  .kv__burger { width: 56px; height: 56px; }
  .kv__bar { align-items: flex-start; }
}
@media (max-width: 540px) {
  .kv__eyebrow { font-size: 12px; }
  .kv__title { font-size: 7.4vw; line-height: 1.6; }
  .kv__lead { font-size: 14px; }
  .kv__foot { display: none; }
}
