/* ==========================================================================
   LinXpect Inc. — Corporate site v2
   Palette: ink black / paper white / LinXpect green (from the logo)
   Type:    Noto Sans JP (body) / Noto Serif JP (JP display) / Cormorant Garamond (EN display)
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #2a2a2a;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --line: #e2e2e0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #111111;
  --text-muted: #5e5e5e;
  --green: #0b3d2e;      /* logo dark green */
  --green-2: #146b4a;    /* mid */
  --green-3: #43ba55;    /* logo highlight */
  --green-glow: rgba(67, 186, 85, 0.55);

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-jp-display: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", "Cormorant", Georgia, serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.en { font-family: var(--font-en); font-weight: 500; letter-spacing: 0.08em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  color: #fff;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-solid { background: rgba(11, 11, 11, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-light { color: var(--text); }
.site-header.is-light.is-solid { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 30px; width: auto; margin-left: -8px; }
.brand .logo-dark { display: none; }
.site-header.is-light .logo-light { display: none; }
.site-header.is-light .logo-dark { display: block; }

.gnav { display: flex; align-items: center; gap: 40px; }
.gnav a { position: relative; font-family: var(--font-en); font-size: 17px; letter-spacing: 0.1em; font-weight: 500; padding: 4px 0; line-height: 1; }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.gnav a:hover::after, .gnav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.gnav .nav-cta { border: 1px solid currentColor; padding: 11px 22px 10px; }
.gnav .nav-cta::after { display: none; }
.gnav .nav-cta:hover { background: var(--green-3); border-color: var(--green-3); color: #fff; }
.site-header.is-light .gnav .nav-cta:hover { color: #fff; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 900; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-en); font-size: 28px; letter-spacing: 0.1em; }
.drawer a small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.16em; opacity: 0.6; line-height: 1.2; }
.drawer .drawer-foot { margin-top: 32px; font-size: 12px; letter-spacing: 0.12em; opacity: 0.6; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero (top)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 980px); display: grid; align-items: end;
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  /* slow drifting green light field, echoes the X highlight in the logo */
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(42% 30% at 72% 38%, rgba(67, 186, 85, 0.28), transparent 70%),
    radial-gradient(30% 22% at 30% 70%, rgba(20, 107, 74, 0.26), transparent 70%),
    radial-gradient(60% 50% at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  /* diagonal streak */
  content: ""; position: absolute; left: 50%; top: 50%; width: 140vmax; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(67, 186, 85, 0) 30%, rgba(170, 255, 190, 0.9) 50%, rgba(67, 186, 85, 0) 70%, transparent 100%);
  transform: translate(-50%, -50%) rotate(-32deg);
  box-shadow: 0 0 40px 6px var(--green-glow);
  opacity: 0.55; animation: streak 9s ease-in-out infinite;
}
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 120px 120px; opacity: 0.35; mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
@keyframes streak { 0%, 100% { opacity: 0.25; transform: translate(-58%, -46%) rotate(-32deg); } 50% { opacity: 0.7; transform: translate(-42%, -54%) rotate(-32deg); } }

.hero-inner { padding: calc(var(--header-h) + 80px) 0 72px; }
.hero-eyebrow { font-family: var(--font-en); font-size: clamp(14px, 1.4vw, 18px); letter-spacing: 0.3em; opacity: 0.75; margin-bottom: 28px; }
.hero-title { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(34px, 6vw, 84px); line-height: 1.25; letter-spacing: 0.04em; }
.hero-title .accent { color: var(--green-3); }
.hero-lead { margin-top: 36px; max-width: 620px; font-size: clamp(14px, 1.2vw, 16px); line-height: 2.2; opacity: 0.86; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 96px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-family: var(--font-en); font-size: 13px; letter-spacing: 0.22em; opacity: 0.7; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { display: block; width: 1px; height: 40px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-en); font-size: 15px; letter-spacing: 0.22em; font-weight: 600; padding: 16px 32px; border: 1px solid currentColor; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); cursor: pointer; background: transparent; }
.btn .arrow { width: 28px; height: 1px; background: currentColor; position: relative; transition: width 0.4s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 40px; }
.btn-fill { background: #fff; color: var(--ink); border-color: #fff; }
.btn-fill:hover { background: var(--green-3); border-color: var(--green-3); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--green); border-color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-en); font-size: 15px; letter-spacing: 0.2em; font-weight: 600; }
.text-link .arrow { width: 36px; height: 1px; background: currentColor; position: relative; transition: width 0.4s var(--ease); }
.text-link .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.text-link:hover .arrow { width: 52px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-paper { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; align-items: start; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-label { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; padding-top: 10px; }
.sec-label::before { content: ""; width: 28px; height: 1px; background: var(--green-3); }
.sec-title { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.5; letter-spacing: 0.04em; }
.sec-title-en { font-family: var(--font-en); font-weight: 500; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: 0.04em; }
.sec-title-en + .sec-title-jp { margin-top: 14px; font-size: 13px; letter-spacing: 0.3em; color: var(--text-muted); }
.section-dark .sec-title-jp { color: rgba(255, 255, 255, 0.6); }
.sec-lead { margin-top: 24px; max-width: 720px; color: var(--text-muted); }
.section-dark .sec-lead { color: rgba(255, 255, 255, 0.7); }

/* Statement (About intro, Trillion-style big text) */
.statement { max-width: 980px; }
.statement .concept-line { font-family: var(--font-en); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: 0.06em; margin-bottom: 28px; display: flex; align-items: baseline; gap: 0.3em; }
.statement .concept-line .x { color: var(--green-3); font-weight: 600; }
.statement p { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(22px, 2.8vw, 36px); line-height: 1.9; letter-spacing: 0.04em; }
.statement .u { background: linear-gradient(transparent 62%, rgba(67, 186, 85, 0.35) 62%); }
.statement p.statement-sub { margin-top: 32px; max-width: 720px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 2.1; letter-spacing: 0.06em; }

/* Three pillars */
.concept { margin-top: 56px; margin-bottom: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.concept-item { padding: 44px 48px 48px 0; border-bottom: 1px solid var(--line); }
.concept-item + .concept-item { padding-left: 48px; border-left: 1px solid var(--line); }
.concept-item .word { font-family: var(--font-en); font-weight: 500; font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: 0.02em; color: var(--ink); }
.concept-item .jp { margin-top: 14px; font-size: 12px; letter-spacing: 0.4em; color: var(--green-2); }
.concept-item p:last-child { margin-top: 28px; font-family: var(--font-jp-display); font-weight: 500; font-size: 18px; line-height: 2; letter-spacing: 0.04em; color: var(--ink); max-width: 520px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { padding: 40px 32px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.pillar .num { font-family: var(--font-en); font-size: 15px; letter-spacing: 0.2em; color: var(--green-2); }
.pillar h3 { margin-top: 18px; font-family: var(--font-jp-display); font-weight: 500; font-size: 22px; line-height: 1.5; }
.pillar .en-cap { font-family: var(--font-en); font-size: 15px; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 6px; }
.pillar p { margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* Services (Karita-style numbered rows) */
.svc-list { border-top: 1px solid var(--line); }
.section-dark .svc-list { border-color: var(--line-dark); }
.svc-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 24px 56px; padding: 56px 0; border-bottom: 1px solid var(--line); align-items: start; }
.section-dark .svc-row { border-color: var(--line-dark); }
.svc-num { font-family: var(--font-en); font-size: clamp(36px, 4.5vw, 60px); line-height: 1; font-weight: 400; color: var(--green-2); }
.section-dark .svc-num { color: var(--green-3); }
.svc-title h3 { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; }
.svc-title .en-cap { font-family: var(--font-en); font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; color: var(--text-muted); }
.section-dark .svc-title .en-cap { color: rgba(255, 255, 255, 0.6); }
.svc-title .svc-lead { margin-top: 22px; font-size: 15px; color: var(--text-muted); max-width: 440px; }
.section-dark .svc-title .svc-lead { color: rgba(255, 255, 255, 0.72); }
.svc-items li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); font-size: 15px; }
.section-dark .svc-items li { border-color: var(--line-dark); }
.svc-items li:last-child { border-bottom: 0; }
.svc-items li::before { content: ""; position: absolute; left: 0; top: 27px; width: 12px; height: 1px; background: var(--green-3); }
.svc-items li small { display: block; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.08em; color: var(--text-muted); line-height: 1.4; margin-top: 3px; }
.section-dark .svc-items li small { color: rgba(255, 255, 255, 0.55); }
.svc-more { margin-top: 48px; display: flex; justify-content: flex-end; }

/* Approach (process) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.step { padding: 40px 28px 40px 0; border-right: 1px solid var(--line-dark); margin-right: 28px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step .num { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.24em; color: var(--green-3); }
.step h3 { margin-top: 16px; font-size: 20px; font-weight: 500; font-family: var(--font-jp-display); line-height: 1.5; }
.step .en-cap { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.12em; opacity: 0.6; margin-top: 4px; }
.step p { margin-top: 16px; font-size: 14px; opacity: 0.78; }

/* Message teaser */
.msg-teaser { display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: center; }
.msg-visual { position: relative; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; display: grid; place-items: center; }
.msg-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.msg-visual .mark { position: absolute; left: 24px; bottom: 20px; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.3em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.msg-quote { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(24px, 3vw, 38px); line-height: 1.6; letter-spacing: 0.04em; }
.msg-body { margin-top: 28px; color: var(--text-muted); }
.msg-sig { margin-top: 32px; display: flex; align-items: baseline; gap: 16px; }
.msg-sig .role { font-size: 12px; letter-spacing: 0.2em; color: var(--text-muted); }
.msg-sig .name { font-family: var(--font-jp-display); font-size: 20px; letter-spacing: 0.12em; }
.msg-sig .name-en { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.12em; color: var(--text-muted); }

/* News */
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 140px 110px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease); }
.news-item:hover { padding-left: 8px; }
.news-item time { font-family: var(--font-en); font-size: 16px; letter-spacing: 0.12em; }
.news-item .cat { font-size: 11px; letter-spacing: 0.18em; border: 1px solid var(--line); padding: 4px 10px; text-align: center; color: var(--text-muted); }
.news-item h3 { font-weight: 500; font-size: 16px; }
.news-item .arrow { width: 36px; height: 1px; background: currentColor; position: relative; }
.news-item .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.news-detail { margin-top: 8px; font-size: 14px; color: var(--text-muted); grid-column: 3 / span 2; }

/* CTA band */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 60% at 85% 50%, rgba(67, 186, 85, 0.3), transparent 70%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(72px, 9vw, 120px) 0; }
.cta h2 { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.5; }
.cta p { margin-top: 20px; opacity: 0.75; max-width: 560px; }

/* --------------------------------------------------------------------------
   Sub-page hero
   -------------------------------------------------------------------------- */
.page-hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 160%; background: radial-gradient(50% 50% at 50% 50%, rgba(67, 186, 85, 0.22), transparent 70%); pointer-events: none; }
.page-hero .crumb { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.22em; opacity: 0.6; display: flex; gap: 14px; }
.page-hero .crumb span::before { content: "/"; margin-right: 14px; opacity: 0.6; }
.page-hero .sec-title-en { margin-top: 28px; }
.page-hero .sec-title-jp { color: rgba(255, 255, 255, 0.65); }
.page-hero .lead { margin-top: 32px; max-width: 640px; opacity: 0.8; font-size: 15px; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.message-grid { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: start; }
.message-text h2 { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.5; letter-spacing: 0.04em; }
.message-text .body { margin-top: 36px; display: grid; gap: 22px; }
.message-text .body p { color: var(--text-muted); }
.message-text .body strong { color: var(--text); font-weight: 500; background: linear-gradient(transparent 65%, rgba(67, 186, 85, 0.3) 65%); }
.message-side { position: sticky; top: calc(var(--header-h) + 32px); }
.portrait { aspect-ratio: 4 / 5; background: var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.side-sig { margin-top: 24px; }
.side-sig .role { font-size: 12px; letter-spacing: 0.2em; color: var(--text-muted); }
.side-sig .name { font-family: var(--font-jp-display); font-size: 26px; letter-spacing: 0.14em; margin-top: 6px; }
.side-sig .name-en { font-family: var(--font-en); font-size: 15px; letter-spacing: 0.14em; color: var(--text-muted); }

.career { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 16px 48px; }
.career h3 { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; gap: 14px; align-items: center; }
.career h3::before { content: ""; width: 28px; height: 1px; background: var(--green-3); }
.career h3 small { font-family: var(--font-body); letter-spacing: 0.2em; color: var(--text-muted); }
.career-text { font-size: 13px; line-height: 1.9; color: var(--text-muted); max-width: 760px; margin: 0; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line-dark); }
.value { background: var(--ink); padding: 56px 48px; }
.value .en-cap { font-family: var(--font-en); font-size: clamp(28px, 3vw, 40px); letter-spacing: 0.06em; line-height: 1; }
.value .jp-cap { font-size: 12px; letter-spacing: 0.3em; opacity: 0.6; margin-top: 10px; }
.value p { margin-top: 28px; font-family: var(--font-jp-display); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.9; }

/* Company profile table (Karita-style bilingual rows) */
.profile { border: 1px solid var(--line); padding: 8px 40px; background: #fff; }
.profile-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.profile-row:last-child { border-bottom: 0; }
.profile-row dt { font-weight: 500; }
.profile-row dt small { display: block; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 2px; }
.profile-row dd { margin: 0; }
.profile-row dd small { display: block; font-family: var(--font-en); font-size: 14px; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 4px; }
.profile-row dd a { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.svc-detail { display: grid; grid-template-columns: 120px 1fr; gap: 32px 56px; padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail .svc-num { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-detail h2 { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(26px, 3vw, 38px); line-height: 1.5; }
.svc-detail .en-cap { font-family: var(--font-en); font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; color: var(--text-muted); }
.svc-detail .lead { margin-top: 24px; color: var(--text-muted); max-width: 680px; }
.svc-menu { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.svc-menu li { background: var(--paper); padding: 24px 26px; }
.svc-menu li h4 { font-weight: 500; font-size: 16px; }
.svc-menu li p { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.svc-note { margin-top: 32px; font-size: 13px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.contact-info h2 { font-family: var(--font-jp-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.6; }
.contact-info p { margin-top: 20px; color: var(--text-muted); }
.contact-info .mail { margin-top: 36px; display: block; font-family: var(--font-en); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.06em; border-bottom: 1px solid var(--text); padding-bottom: 8px; width: fit-content; }
.contact-info .hours { margin-top: 16px; font-size: 13px; color: var(--text-muted); letter-spacing: 0.1em; }
.contact-info .flow { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-info .flow li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; font-size: 14px; }
.contact-info .flow li b { font-family: var(--font-en); font-weight: 600; font-size: 16px; letter-spacing: 0.14em; color: var(--green-2); }

.form { display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); padding: 40px; }
.form label { display: grid; gap: 10px; font-size: 13px; letter-spacing: 0.14em; }
.form label .lbl { display: block; }
.form label .req { color: var(--green-3); margin-left: 6px; font-size: 11px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 15px; letter-spacing: 0.02em; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 0; outline: none; transition: border-color 0.3s; }
.form input:focus, .form textarea:focus, .form select:focus { border-bottom-color: var(--text); }
.form textarea { resize: vertical; min-height: 160px; }
.form ::placeholder { color: #b5b5b5; }
.form .agree { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; letter-spacing: 0.02em; color: var(--text-muted); }
.form .agree input { width: auto; margin-top: 6px; accent-color: var(--green-2); }
.form .actions { display: flex; justify-content: flex-start; margin-top: 8px; }
.terms { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.term h4 { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.term h4 small { font-family: var(--font-en); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; color: var(--text-muted); }
.term p { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.form .chk-group { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 13px; letter-spacing: 0.14em; }
.form .chk-group .lbl { padding: 0; margin-bottom: 4px; }
.form .chk-group label { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.02em; }
.form .chk-group input { width: auto; padding: 0; accent-color: var(--green-2); }
.page-hero .hero-note { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.page-hero .hero-note a { color: var(--green-3); border-bottom: 1px solid currentColor; }
.cta .cta-sub { display: flex; width: fit-content; margin-top: 22px; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; opacity: 0.85; }
.form-done { display: none; padding: 48px; border: 1px solid var(--line); text-align: center; }
.form-done.is-visible { display: block; }
.form-done h3 { font-family: var(--font-jp-display); font-weight: 500; font-size: 22px; }
.form-done p { margin-top: 16px; color: var(--text-muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 100px) 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 0.7fr 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 32px; width: auto; display: block; margin-top: -8px; margin-left: -9px; }
.footer-brand p { margin-top: 22px; font-size: 14px; line-height: 1.6; opacity: 0.85; }
.footer-brand .en-name { font-family: var(--font-en); font-size: 15px; letter-spacing: 0.14em; opacity: 0.9; margin-top: 6px; }
.footer-col h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.55; line-height: 16px; margin-bottom: 16px; }
.footer-col a { display: block; padding: 0; line-height: 36px; font-size: 14px; opacity: 0.85; transition: opacity 0.3s, padding-left 0.3s var(--ease); }
.footer-col a:hover { opacity: 1; padding-left: 6px; }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.18em; opacity: 0.6; }
.pagetop { position: fixed; right: 24px; bottom: 24px; z-index: 800; width: 48px; height: 48px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); color: var(--text); display: grid; place-items: center; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.4s var(--ease); }
.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.hero .reveal { transition-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::before, .hero-bg::after, .scroll-cue i { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
  .concept { grid-template-columns: 1fr; }
  .concept-item { padding: 32px 0; }
  .concept-item + .concept-item { padding-left: 0; border-left: 0; }
  .terms { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .svc-row { grid-template-columns: 80px 1fr; }
  .svc-row .svc-items { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .msg-teaser, .message-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 24px 20px; }
  .profile { padding: 4px 20px; }
  .message-side { position: static; }
  .portrait, .msg-visual { aspect-ratio: 4 / 5; max-width: 280px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .gnav { display: none; }
  .menu-btn { display: block; }
  .brand img { height: 24px; }
  .section-head, .career, .profile-row, .svc-detail { grid-template-columns: 1fr; }
  .svc-detail .svc-num { position: static; }
  .svc-row { grid-template-columns: 1fr; padding: 40px 0; }
  .svc-row .svc-items { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-dark); padding-right: 0; }
  .step:last-child { border-bottom: 0; }
  .values, .svc-menu { grid-template-columns: 1fr; }
  .value { padding: 40px 24px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-item .cat { width: fit-content; }
  .news-item .arrow { display: none; }
  .news-detail { grid-column: 1; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 64px; }
  .hero-inner { padding-bottom: 48px; }
  .pagetop { right: 16px; bottom: 16px; }
}
