/* ============================================================
   Picup Inc. — Corporate Site
   Concept: "Cut the waste" expressed through space & precision.
   ============================================================ */

:root {
  /* Brand palette */
  --navy: #0A2540;
  --blue: #1B6FE3;
  --cyan: #38BDF8;
  --teal: #1FBFA6;
  --star: #F5A623;
  --bg: #F6F8FB;
  --white: #FFFFFF;

  /* Semantic tokens (Light direction = default) */
  --page-bg: var(--bg);
  --surface: var(--white);
  --surface-2: #EEF2F8;
  --ink: var(--navy);
  --ink-soft: #51627A;
  --ink-faint: #8A99AD;
  --line: #E2E8F1;
  --line-strong: #CBD6E4;
  --accent: var(--blue);
  --accent-2: var(--teal);
  --accent-3: var(--cyan);
  --on-accent: #FFFFFF;
  --hero-bg: var(--navy);
  --hero-ink: #FFFFFF;

  /* Type */
  --display: "Montserrat", "Zen Kaku Gothic New", system-ui, sans-serif;
  --jp: "Zen Kaku Gothic New", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gut: clamp(22px, 5vw, 80px);
  --section-pad: clamp(80px, 12vh, 168px);
  --radius: 6px;
}

/* Navy / dark world direction */
[data-theme="navy"] {
  --page-bg: #07182A;
  --surface: #0C2238;
  --surface-2: #102B45;
  --ink: #F2F6FB;
  --ink-soft: #A9BDD4;
  --ink-faint: #6E859E;
  --line: #1C3A57;
  --line-strong: #28527A;
  --hero-bg: #07182A;
  --hero-ink: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--jp);
  font-weight: 400;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }

.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.01em; font-weight: 700; }

.section-head { max-width: 880px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  word-break: auto-phrase;
  text-wrap: balance;
  margin-top: 22px;
  letter-spacing: -0.02em;
}
.section-head .lead {
  margin-top: 26px;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 2;
}
.en-sub {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px color-mix(in oklab, var(--accent) 75%, transparent); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* ---------- Nav ---------- */
header.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gut);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease, border-color .4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled:not(.over-hero) {
  background: color-mix(in oklab, var(--page-bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
/* over-hero state */
header.nav.over-hero { color: #fff; }
header.nav.over-hero .nav-link { color: rgba(255,255,255,.82); }
header.nav.over-hero .nav-link:hover { color: #fff; }
header.nav.over-hero .logo { color: #fff; }
header.nav.over-hero .lang-toggle { border-color: rgba(255,255,255,.3); color: #fff; }

.logo {
  font-family: var(--display);
  font-weight: 900; font-size: 24px; letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.logo .dot { color: var(--accent); }
.logo-mark { height: 30px; width: auto; display: block; }
.logo-word { line-height: 1; }
.logo-word-img { height: 21px; width: auto; display: block; }
.word-white { display: none; }
header.nav.over-hero .word-navy { display: none; }
header.nav.over-hero .word-white { display: block; }
.foot-logo { display: inline-flex; align-items: center; gap: 11px; }
.foot-logo .logo-mark { height: 36px; }
.foot-logo .logo-word-img { height: 26px; }
.foot-logo .word-white { display: block; }

.nav-mid { display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; }
.nav-link {
  font-family: var(--display);
  font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .28s cubic-bezier(.2,.7,.3,1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; background: transparent; color: var(--ink);
  display: inline-flex; gap: 6px; align-items: center; transition: all .25s;
}
.lang-toggle .on { color: var(--accent); }
.lang-toggle:hover { border-color: var(--accent); }
.nav-cta { font-size: 13px; padding: 11px 20px; }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 140px 0 90px;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 78%);
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; right: -12vw; top: -16vw;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 55%, transparent), transparent 62%);
  filter: blur(8px); opacity: .55; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-label {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 34px;
}
.hero-label::before { content:""; width: 40px; height: 1.5px; background: var(--cyan); }
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
  word-break: auto-phrase;
  text-wrap: balance;
}
.hero h1 .jp { font-family: var(--jp); font-weight: 900; letter-spacing: -0.01em; }
.hero .tagline {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(16px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  color: var(--cyan);
  margin-top: 26px;
}
.hero .desc {
  margin-top: 30px; max-width: 600px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2; color: rgba(255,255,255,.78);
}
.hero .desc strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: var(--gut); z-index: 3;
  font-family: var(--display); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll .line { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: scrolldown 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrolldown { 0%,100%{ transform: scaleY(.3); opacity:.4;} 50%{ transform: scaleY(1); opacity:1;} }

/* ---------- Services ---------- */
.services { padding: var(--section-pad) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-card {
  background: var(--surface); padding: clamp(30px, 3vw, 46px);
  display: flex; flex-direction: column; gap: 18px; min-height: 360px;
  transition: background .3s, transform .3s; position: relative;
}
.svc-card:hover { background: var(--surface-2); }
.svc-num { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: -8px; }
.svc-card h3 { font-size: clamp(20px, 1.7vw, 25px); font-weight: 700; word-break: auto-phrase; text-wrap: balance; }
.svc-card .en { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink-faint); margin-top: -8px; }
/* EN mode: hide bilingual accent lines that would otherwise show kanji or duplicate the English heading */
html[lang="en"] .lang-accent-jp,
html[lang="en"] .svc-card .en,
html[lang="en"] .en-sub { display: none; }
.svc-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.95; margin: 0; }
.svc-card .svc-foot { margin-top: auto; padding-top: 18px; }
.svc-icon { width: 44px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: var(--accent); }
.svc-icon svg { width: 22px; height: 22px; }

/* ---------- Work ---------- */
.work { padding: var(--section-pad) 0; background: var(--surface); }
[data-theme="navy"] .work { background: var(--surface); }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,48px); margin: 0 0 clamp(60px,7vw,96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px,3vw,44px) 0; }
.stat .num { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6vw, 82px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.stat .num .u { font-size: .4em; color: var(--accent); margin-left: 4px; letter-spacing: 0; }
.stat .num .u.st { color: var(--star); }
.stat .lbl { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.domain-list { display: grid; gap: 0; margin-bottom: clamp(64px,8vw,110px); }
.domain {
  display: grid; grid-template-columns: minmax(160px, 280px) 1fr; gap: clamp(20px,4vw,64px);
  padding: clamp(30px,3.4vw,48px) 0; border-top: 1px solid var(--line); align-items: start;
}
.domain:last-child { border-bottom: 1px solid var(--line); }
.domain-tag { display: flex; flex-direction: column; gap: 6px; }
.domain-tag .code { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; color: var(--accent); }
.domain-tag .name { font-weight: 700; font-size: clamp(17px,1.5vw,21px); }
.domain p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 2; max-width: 760px; }

.works-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.works-head h3 { font-family: var(--display); font-weight: 800; font-size: clamp(18px,1.6vw,22px); letter-spacing: 0.02em; }
.works-head .sub { font-size: 13.5px; color: var(--ink-faint); }
.app-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.app-card { background: var(--page-bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: transform .3s, box-shadow .3s, border-color .3s; }
.app-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(10,37,64,.4); border-color: var(--line-strong); }
.app-icon { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; }
.card-overlay { position: absolute; inset: 0; z-index: 4; border-radius: 14px; }
.app-card .ext { position: absolute; top: 16px; right: 18px; z-index: 5; font-size: 16px; line-height: 1; color: var(--ink-faint); opacity: 0; transform: translate(-2px,2px); transition: opacity .25s, transform .25s, color .25s; pointer-events: none; }
.app-card:hover .ext { opacity: 1; transform: translate(0,0); color: var(--accent); }
.app-card .cat { font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.app-card h4 { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.45; }
.app-card .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.8; margin: 0; flex: 1; }
.app-rating { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink); }
.app-rating .star { color: var(--star); }
.app-rating .cnt { color: var(--ink-faint); font-weight: 500; font-size: 12px; }

.media-note { margin-top: clamp(44px,5vw,64px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--page-bg); border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px,3vw,38px); }
.media-logo { width: 130px; }
.media-note .mtxt h4 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.media-note .mtxt p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

/* ---------- Why ---------- */
.why { padding: var(--section-pad) 0; }
.why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why-item { background: var(--surface); padding: clamp(32px,3.4vw,52px); display: flex; gap: 26px; transition: background .3s; }
.why-item:hover { background: var(--surface-2); }
.why-item .wnum { font-family: var(--display); font-weight: 900; font-size: clamp(34px,3.4vw,52px); line-height: .9; color: var(--line-strong); letter-spacing: -0.03em; transition: color .3s; }
.why-item:hover .wnum { color: var(--accent); }
.why-item h3 { font-size: clamp(18px,1.6vw,23px); font-weight: 700; margin-bottom: 12px; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 2; }

/* ---------- Philosophy ---------- */
.philo { background: var(--navy); color: #fff; padding: clamp(110px,15vh,200px) 0; position: relative; overflow: hidden; }
.philo .hero-grid-bg { opacity: .35; }
.philo-inner { position: relative; z-index: 2; }
.philo .kicker { color: var(--cyan); }
.philo .kicker::before { background: var(--cyan); }
.philo-purpose { font-family: var(--display); font-weight: 900; font-size: clamp(34px,6vw,90px); line-height: 1.15; letter-spacing: -0.03em; margin: 24px 0 12px; }
.philo-purpose .jp { font-family: var(--jp); }
.philo-purpose-en { font-family: var(--display); font-weight: 700; font-size: clamp(15px,1.6vw,22px); color: var(--cyan); letter-spacing: 0.01em; }
.manifesto { margin-top: clamp(60px,8vw,110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px,3vw,46px); }
.mani-block { border-top: 2px solid rgba(255,255,255,.16); padding-top: 26px; }
.mani-block .mlabel { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.mani-block p { color: rgba(255,255,255,.82); font-size: 16.5px; line-height: 1.95; margin: 0 0 14px; }
.mani-block p.strong { color: #fff; font-weight: 500; font-size: 18.5px; line-height: 1.7; }
.philo-motto { margin-top: clamp(60px,8vw,100px); font-family: var(--display); font-weight: 800; font-size: clamp(22px,3vw,42px); letter-spacing: -0.01em; text-align: center; }
.philo-motto .a { color: var(--cyan); }
@media (max-width: 600px) {
  .philo-motto .a { display: block; }
}

/* ---------- Founder ---------- */
.founder { padding: var(--section-pad) 0; }
.founder-grid { display: grid; grid-template-columns: minmax(280px,360px) 1fr; gap: clamp(40px,5vw,72px) clamp(40px,5vw,72px); align-items: start; }
.founder-photo-wrap { position: relative; max-width: 360px; }
.founder-photo-wrap::after { content:""; position:absolute; left:0; right:0; bottom:0; height:46%; border-radius:0 0 16px 16px; background:linear-gradient(to top, rgba(10,37,64,.78), rgba(10,37,64,0)); pointer-events:none; }
.founder-photo { display:block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 46% 18%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,37,64,.5); }
.founder-namecard { z-index: 2; }
.founder-namecard { position: absolute; left: 22px; bottom: 22px; right: 22px; color: #fff; }
.founder-namecard .role { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .85; }
.founder-namecard .nm { font-family: var(--display); font-weight: 900; font-size: clamp(19px,1.9vw,26px); letter-spacing: -0.01em; margin-top: 4px; }
.founder-namecard .nm-jp { font-size: 15px; font-weight: 500; opacity: .9; }
.founder-def { font-size: clamp(16px,1.4vw,20px); line-height: 2; color: var(--ink); font-weight: 500; margin: 22px 0 0; }
.founder-strengths { display: grid; gap: 14px; margin: 36px 0; }
.fstr { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.fstr:last-child { border-bottom: 1px solid var(--line); }
.fstr .ft { font-weight: 700; font-size: 16px; }
.fstr .fd { color: var(--ink-soft); font-size: 14px; font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; }
.founder-bio { color: var(--ink-soft); font-size: 15px; line-height: 2.05; }
.timeline { margin-top: 0; display: grid; gap: 0; }
.timeline-h { grid-column: 1 / -1; margin-top: clamp(44px,5vw,68px); padding-top: 32px; border-top: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
.timeline-h .tl-item { display: flex; flex-direction: column; gap: 9px; grid-template-columns: none; padding: 4px 30px; border-top: none; border-left: 1px solid var(--line); align-items: flex-start; }
.timeline-h .tl-item:first-child { border-left: none; padding-left: 0; }
.timeline-h .ev { color: var(--ink-soft); line-height: 1.7; text-wrap: pretty; }
.tl-item { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tl-item .yr { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--accent); }
.tl-item .ev { font-size: 14.5px; color: var(--ink); }

/* ---------- Values ---------- */
.values { padding: var(--section-pad) 0; background: var(--surface); }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.val { background: var(--surface); padding: clamp(28px,2.8vw,40px); min-height: 200px; display: flex; flex-direction: column; transition: background .3s; }
.val:hover { background: var(--surface-2); }
.val .vnum { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.val h3 { font-family: var(--display); font-weight: 800; font-size: clamp(17px,1.5vw,21px); margin: 14px 0 4px; letter-spacing: 0.01em; }
.val .vjp { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.val p { margin: 16px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
/* 日本語の説明文を文節単位で折り返し、「る。」等の1～2文字の孤立改行を防ぐ */
.val p, .svc-card p, .why-item p, .app-card .desc { word-break: auto-phrase; text-wrap: balance; }

/* ---------- Company ---------- */
.company { padding: var(--section-pad) 0; }
.company-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,5vw,80px); }
.info-table { display: grid; }
.info-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row dt { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; }
.info-row dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.8; }
.map-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-2); min-height: 320px; position: relative; }
.map-card .map-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.12) contrast(1.02); }

/* ---------- Careers ---------- */
.careers { padding: clamp(90px,12vh,150px) 0; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.careers .hero-grid-bg { opacity: .3; }
.careers-inner { position: relative; z-index: 2; }
.careers .kicker { color: var(--cyan); }
.careers .kicker::before { background: var(--cyan); }
.careers h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px,4.5vw,62px); line-height: 1.15; letter-spacing: -0.02em; margin: 22px 0 24px; word-break: auto-phrase; text-wrap: balance; max-width: 14em; }
.careers h2 .jp { font-family: var(--jp); }
.careers p { color: rgba(255,255,255,.82); font-size: clamp(15px,1.3vw,18px); line-height: 2; margin-bottom: 36px; max-width: 600px; }

/* ---------- Contact ---------- */
.contact { padding: var(--section-pad) 0; }
.contact .tagline { font-family: var(--display); font-weight: 800; font-size: clamp(16px,1.6vw,22px); color: var(--accent); margin-top: 16px; }
.contact-form { margin-top: clamp(40px,5vw,60px); max-width: 660px; display: flex; flex-direction: column; gap: 22px; }
.cf-field { display: flex; flex-direction: column; gap: 9px; }
.cf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cf-label { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); }
.cf-label .req { color: var(--accent); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; box-sizing: border-box; font-family: var(--jp); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.contact-form textarea { resize: vertical; min-height: 138px; line-height: 1.75; }
.cf-selectwrap { position: relative; }
.cf-selectwrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent);
}
.contact-form .cf-invalid { border-color: #C0392B; }
.cf-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.cf-actions .btn { cursor: pointer; border: none; }
.cf-hint { font-size: 12.5px; color: var(--ink-faint); margin: 0; max-width: 320px; line-height: 1.6; }
.cf-status { font-size: 13.5px; font-weight: 600; margin: 0; min-height: 1.2em; }
.cf-status.is-error { color: #C0392B; }
.cf-status.is-ok { color: var(--accent); }
@media (max-width: 560px) { .cf-2col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.foot { background: var(--navy); color: #fff; padding: clamp(80px,10vw,130px) 0 40px; position: relative; overflow: hidden; }
footer.foot .hero-grid-bg { opacity: .25; }
.foot-inner { position: relative; z-index: 2; }
.foot-big { font-family: var(--display); font-weight: 900; font-size: clamp(40px,9vw,140px); line-height: .95; letter-spacing: -0.04em; }
.foot-big .a { color: var(--cyan); }
.foot-mid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin: clamp(50px,7vw,90px) 0 60px; }
.foot-links { display: flex; gap: 30px 44px; flex-wrap: wrap; }
.foot-links a { font-family: var(--display); font-weight: 600; font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-logo { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -0.03em; }
.foot-logo .dot { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-bottom .cr { font-size: 12.5px; color: rgba(255,255,255,.55); }
.foot-bottom .closer { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: rgba(255,255,255,.8); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px var(--gut);
  background: color-mix(in oklab, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.legal-nav-right { display: flex; align-items: center; gap: 16px; }
.legal-nav .back-link { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.legal-nav .back-link:hover { color: var(--accent); }
.legal-page { padding: clamp(48px, 7vh, 84px) 0 clamp(72px, 9vh, 110px); }
.legal-head { margin-bottom: clamp(36px, 5vw, 56px); }
.legal-head .kicker { margin-bottom: 18px; }
.legal-head h1 { font-size: clamp(28px, 4.4vw, 50px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.18; word-break: auto-phrase; text-wrap: balance; }
.legal-body { max-width: 820px; }
.legal-body > div > p:first-child,
.legal-body .lead { font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-soft); line-height: 2; }
.legal-body h2 { font-size: clamp(18px, 1.9vw, 25px); font-weight: 800; letter-spacing: -0.01em; margin: clamp(40px, 4.5vw, 60px) 0 14px; padding-top: clamp(24px, 3vw, 34px); border-top: 1px solid var(--line); }
.legal-body h3 { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; margin: 26px 0 10px; color: var(--ink); }
.legal-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.95; margin: 0 0 13px; }
.legal-body ol, .legal-body ul { color: var(--ink-soft); font-size: 15px; line-height: 1.9; padding-left: 1.5em; margin: 0 0 14px; }
.legal-body ul ul, .legal-body ol ol { margin: 8px 0; }
.legal-body li { margin-bottom: 7px; }
.legal-body .legal-date { margin-top: clamp(40px, 5vw, 60px); padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 13px; color: var(--ink-faint); }
/* JA/EN block toggle (driven by html[lang], same as the homepage lang switch) */
.legal-en { display: none; }
html[lang="en"] .legal-ja { display: none; }
html[lang="en"] .legal-en { display: block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Image-slot placeholder skin ---------- */
image-slot { --slot-bg: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .founder-grid, .company-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2,1fr); }
  .manifesto { grid-template-columns: 1fr; gap: 30px; }
  .company-grid .map-card { min-height: 260px; }
}
@media (max-width: 860px) {
  .nav-mid { display: none; }
  .menu-btn { display: inline-flex; }
  /* モバイルではCTAをハンバーガーメニューに集約し、ロゴと言語切替の重なりを解消 */
  .nav-cta { display: none; }
  .nav-right { gap: 12px; }
  /* 法務ページのナビも詰まらないように */
  .legal-nav .back-link span,
  .legal-nav .back-link { font-size: 12px; }
  .svc-grid, .why-grid, .values-grid { grid-template-columns: 1fr; }
  /* 1列になるモバイルでは下端揃えを解除し、説明文をサブ見出し直後に詰める */
  .val { min-height: 0; }
  .val p { margin: 14px 0 0; }
  .svc-card { min-height: 0; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo-wrap { max-width: 360px; }
  .timeline-h { grid-template-columns: repeat(2, 1fr); gap: 28px 0; padding-top: 28px; }
  .timeline-h .tl-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat-row { grid-template-columns: 1fr; gap: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat-row { border: none; }
  .domain { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  /* 狭い画面で2行目（事業を前に進める。）が3行に折れないようサイズ調整 */
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: var(--gut); gap: 8px; transform: translateY(-100%); visibility: hidden; transition: transform .5s cubic-bezier(.2,.7,.3,1), visibility .5s; }
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.01em; padding: 10px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu a .en { display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); font-weight: 600; margin-top: 4px; }
.menu-btn { background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; color: inherit; }
.menu-btn span { width: 26px; height: 2px; background: currentColor; display: block; transition: .3s; }
/* メニューを開くと背景が紺のオーバーレイになるので、×は常に白に */
.menu-btn.open span { background: #fff; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
