/* ============================================================
   J-wire — shared styles (all pages)
   ink × paper × lime / condensed display type / GSAP driven
   ============================================================ */

:root {
  --ink: #141518;
  --ink-2: #1d1f24;
  --ink-3: #2a2c33;
  --paper: #f0f0eb;
  --paper-2: #e4e4dd;
  --lime: #d4ff3a;
  --mute: #8b8d93;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(20, 21, 24, .14);

  --f-en: "Barlow Condensed", "Montserrat", sans-serif;
  --f-sub: "Montserrat", "Noto Sans JP", sans-serif;
  --f-ja: "Noto Sans JP", "Hiragino Sans", sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-ja);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- shared atoms ---------- */
.secLabel {
  display: flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--f-sub); letter-spacing: .18em;
  color: var(--ink); margin-bottom: clamp(32px, 5vw, 64px);
}
.secLabel span {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-size: 11px; letter-spacing: 0;
}
.secLabel--dark { color: var(--paper); }
.secLabel--dark span { background: var(--lime); color: var(--ink); }
.secLabel--ink span { background: var(--ink); color: var(--lime); }

.kicker {
  font: 700 clamp(16px, 1.6vw, 20px)/1 var(--f-en); letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--lime { color: var(--lime); }

.h2 { font: 900 clamp(28px, 3.6vw, 52px)/1.35 var(--f-ja); letter-spacing: .02em; margin-bottom: 28px; }
.body { font-size: 15px; line-height: 2.05; max-width: 34em; margin-bottom: 36px; opacity: .85; }
.body b { color: inherit; background: linear-gradient(transparent 62%, var(--lime) 62%); }

.arrow {
  position: relative; display: inline-block; width: 18px; height: 18px; flex: none;
}
.arrow::before, .arrow::after { content: ""; position: absolute; background: currentColor; }
.arrow::before { left: 0; right: 2px; top: 50%; height: 2px; margin-top: -1px; }
.arrow::after {
  right: 1px; top: 50%; width: 9px; height: 9px; background: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* flip (rolling text) button */
.flip { display: inline-flex; align-items: center; gap: 14px; position: relative; }
.flip_in { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.flip_in > span { display: block; transition: transform .55s var(--ease); white-space: nowrap; }
.flip_in > span:nth-child(2) { position: absolute; left: 0; top: 100%; font-family: var(--f-en); font-weight: 700; letter-spacing: .12em; }
.flip:hover .flip_in > span, .menuBtn:hover .flip_in > span { transform: translateY(-100%); }

.flip--pill {
  padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 14px;
  overflow: hidden; isolation: isolate;
}
.flip--pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.flip--pill:hover::before { transform: scaleX(1); transform-origin: left; }
.flip--pill .flip_in > span:nth-child(2) { width: 100%; text-align: center; }
.flip--lime { background: var(--lime); color: var(--ink); }
.flip--lime::before { background: var(--paper); }
.flip--ink { background: var(--ink); color: var(--paper); }
.flip--ink::before { background: var(--lime); }
.flip--ink:hover { color: var(--ink); }

.flip--line {
  font-weight: 700; font-size: 15px; padding-bottom: 10px;
  border-bottom: 2px solid currentColor;
}
.flip--line .arrow { transition: transform .5s var(--ease); }
.flip--line:hover .arrow { transform: translateX(6px); }

/* split letters */
.char { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; }

/* ---------- page transition wipe ---------- */
.pwipe { position: fixed; inset: 0; z-index: 950; pointer-events: none; }
.pwipe i { position: absolute; inset: 0; transform: translateY(-101%); }
.pwipe i:nth-child(1) { background: var(--lime); }
.pwipe i:nth-child(2) { background: var(--ink); }
.pwipe.is-cover i { transform: none; animation: pwipe-out .8s 2.5s var(--ease) forwards; }
@keyframes pwipe-out { to { transform: translateY(-101%); } }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--lime); mix-blend-mode: difference; opacity: 0;
  display: grid; place-items: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .3s;
}
.cursor_label { font: 700 13px/1 var(--f-en); letter-spacing: .12em; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; }
.cursor.is-label .cursor_label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--paper);
  transition: transform .6s var(--ease), color .4s;
}
.hdr.is-hidden { transform: translateY(-110%); }
.hdr_logo img { height: 24px; width: auto; transition: filter .4s; }
.hdr[data-tone="light"] { color: var(--ink); }
.hdr[data-tone="light"] .hdr_logo img { filter: invert(1); }
.hdr[data-tone="light"] .flip--lime { background: var(--ink); color: var(--lime); }
body.menu-open .hdr { color: var(--paper); }
body.menu-open .hdr .hdr_logo img { filter: none; }
.hdr_right { display: flex; align-items: center; gap: 12px; }
.hdr_cta { padding: 13px 24px; font-size: 13px; }
.menuBtn {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid currentColor;
  font: 700 14px/1 var(--f-en); letter-spacing: .16em;
}
.menuBtn_txt .flip_in > span:nth-child(2) { font-family: inherit; }
.menuBtn_bars { display: grid; gap: 5px; width: 22px; }
.menuBtn_bars i { display: block; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
body.menu-open .menuBtn_bars i:first-child { transform: translateY(3.5px) rotate(20deg); }
body.menu-open .menuBtn_bars i:last-child { transform: translateY(-3.5px) rotate(-20deg); }
body.menu-open .menuBtn_txt .flip_in > span { transform: translateY(-100%); }
body.menu-open .hdr_cta { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  .hdr_cta { display: none; }
  .hdr_logo img { height: 18px; }
}

/* ---------- fullscreen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 400; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu_bg { position: absolute; inset: 0; }
.menu_bg i { position: absolute; inset: 0; transform: translateY(-101%); }
.menu_bg i:nth-child(1) { background: var(--lime); }
.menu_bg i:nth-child(2) { background: var(--ink-3); }
.menu_bg i:nth-child(3) { background: var(--ink); }
.menu_inner {
  position: relative; height: 100%; overflow-y: auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 120px var(--gutter) 60px;
}
.menu_list li { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.menu_list a {
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0;
  transition: color .3s, padding-left .5s var(--ease);
}
.menu_list a:hover { color: var(--lime); padding-left: 16px; }
.menu_list small { font: 600 12px/1 var(--f-sub); color: var(--mute); }
.menu_list span { font: 800 clamp(48px, 7.4vw, 112px)/1 var(--f-en); letter-spacing: -.01em; }
.menu_list em { font-style: normal; font-size: 13px; color: var(--mute); margin-left: auto; }
.menu_side { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.menu_side a { opacity: .8; transition: opacity .3s, color .3s; width: fit-content; }
.menu_side a:hover { opacity: 1; color: var(--lime); }
.menu_head { font: 700 13px/1 var(--f-sub); letter-spacing: .2em; color: var(--lime); margin: 26px 0 10px; }
.menu_head:first-child { margin-top: 0; }
.menu_list li > a, .menu_side > * { will-change: transform; }
@media (max-width: 900px) {
  .menu_inner { grid-template-columns: 1fr; align-items: start; }
  .menu_list em { display: none; }
}

/* ---------- shift (layered section transition) ---------- */
.shift { position: relative; height: 22vh; min-height: 140px; overflow: hidden; }
.shift i { position: absolute; inset: 0; transform: translateY(100%); }
.shift[data-from="ink"] { background: var(--ink); }
.shift[data-from="paper"] { background: var(--paper); }
.shift[data-from="ink"] i:nth-child(1) { background: var(--lime); }
.shift[data-from="ink"] i:nth-child(2) { background: var(--paper-2); }
.shift[data-from="paper"] i:nth-child(1) { background: var(--lime); }
.shift[data-from="paper"] i:nth-child(2) { background: var(--ink-3); }
.shift[data-from="paper"][data-to="lime"] i:nth-child(1) { background: var(--ink); }
.shift[data-from="paper"][data-to="lime"] i:nth-child(2) { background: var(--ink-3); }
.shift[data-to="ink"] i:nth-child(3) { background: var(--ink); }
.shift[data-to="paper"] i:nth-child(3) { background: var(--paper); }
.shift[data-to="lime"] i:nth-child(3) { background: var(--lime); }

/* ---------- marquee titles ---------- */
.mq { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.mq_track { display: flex; width: max-content; will-change: transform; }
.mq_track span {
  font: 800 clamp(96px, 17vw, 300px)/.85 var(--f-en); letter-spacing: -.01em; padding-right: .25em;
  text-transform: uppercase;
}
.mq_track .o { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.mq--ink .mq_track span { color: var(--ink); }
.mq--ink .mq_track .o { color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- CONTACT ---------- */
.contact { background: var(--lime); color: var(--ink); padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.contact_big { display: block; width: fit-content; margin-bottom: 40px; }
.contact_row { display: flex; align-items: center; gap: .1em; overflow: hidden; font: 800 clamp(96px, 20vw, 340px)/.84 var(--f-en); letter-spacing: -.02em; }
.contact_big .splitme { display: inline-block; transition: transform .6s var(--ease); }
.contact_big:hover .splitme { transform: skewX(-8deg); }
.contact_arrow {
  display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--ink); position: relative; flex: none;
  transition: transform .6s var(--ease);
}
.contact_arrow::before, .contact_arrow::after { content: ""; position: absolute; background: var(--lime); }
.contact_arrow::before { left: 28%; right: 28%; top: 50%; height: 4%; transform: translateY(-50%); }
.contact_arrow::after {
  right: 28%; top: 50%; width: 22%; height: 22%; background: none;
  border-top: .025em solid var(--lime); border-right: .025em solid var(--lime);
  transform: translate(-6%, -50%) rotate(45deg);
}
.contact_big:hover .contact_arrow { transform: rotate(-45deg) scale(1.05); }
.contact_lead { font: 700 clamp(15px, 1.4vw, 19px)/1.9 var(--f-ja); margin-bottom: 48px; }
.contact_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cc {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 32px;
  border-radius: 16px; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out);
}
.cc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.cc:hover { color: var(--ink); transform: translateY(-4px); }
.cc:hover::before { transform: translateY(0); }
.cc_en { font: 700 13px/1 var(--f-en); letter-spacing: .16em; color: var(--lime); transition: color .4s; }
.cc:hover .cc_en { color: var(--ink); }
.cc b { font-size: 20px; font-weight: 900; }
.cc span:not(.cc_en) { font-size: 13px; opacity: .75; }
.cc .arrow { position: absolute; right: 26px; top: 28px; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.cc:hover .arrow { transform: rotate(0); }
@media (max-width: 860px) { .contact_cards { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.ftr { background: var(--ink); color: var(--paper); padding: clamp(60px, 8vw, 110px) 0 28px; overflow: hidden; }
.ftr_top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr_brand img { height: 30px; width: auto; margin-bottom: 22px; }
.ftr_brand address { font-size: 13px; line-height: 1.9; opacity: .7; }
.ftr_col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ftr_col a { opacity: .75; width: fit-content; transition: opacity .3s, color .3s; }
.ftr_col a:hover { opacity: 1; color: var(--lime); }
.ftr_col span { opacity: .5; }
.ftr_h { font: 700 13px/1 var(--f-sub); letter-spacing: .2em; color: var(--lime); margin-bottom: 10px; }
.ftr_giant {
  font: 800 clamp(120px, 27vw, 460px)/.8 var(--f-en); letter-spacing: -.03em; text-align: center;
  margin: clamp(40px, 6vw, 90px) 0 clamp(20px, 3vw, 40px);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22);
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 100% 0%;
  -webkit-background-clip: text; background-clip: text;
}
.ftr_bottom {
  display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font: 600 12px/1 var(--f-sub); letter-spacing: .12em; opacity: .7;
}
.ftr_totop:hover { color: var(--lime); }
@media (max-width: 860px) { .ftr_top { grid-template-columns: 1fr 1fr; } .ftr_brand { grid-column: span 2; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .loader, .pwipe { display: none; }
  .about_big .char { color: var(--ink); }
  .shift i:nth-child(3) { transform: none; }
  .brand_media { clip-path: none; }
}
