/* ============================================================
   Reapra Japan — Corporate Site
   Brand: ink #06262d / teal #357369 / moss #6d9f71
   ============================================================ */
:root {
  --ink: #06262d;
  --ink-deep: #041a20;
  --teal: #357369;
  --moss: #6d9f71;
  --moss-light: #8fc79a;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --line: #e3ebe7;
  --muted: #5f7672;
  --radius: 14px;
  --maxw: 1120px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --ease-out: cubic-bezier(.22, .9, .32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(109, 159, 113, .3); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header — ヒーロー上では透過、スクロールで白へ
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  --nav-ink: var(--ink);
  --nav-muted: var(--muted);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(6, 38, 45, .05);
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
/* JS有効時: ヒーロー滞在中は透過（ダーク上に白文字） */
.js .site-header:not(.solid) {
  --nav-ink: #f2f7f5;
  --nav-muted: rgba(255, 255, 255, .58);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { position: relative; display: inline-flex; }
.brand img { height: 28px; width: auto; }
.brand .logo-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.brand .logo-ink { transition: opacity .45s ease; }
.js .site-header:not(.solid) .logo-light { opacity: 1; }
.js .site-header:not(.solid) .logo-ink { opacity: 0; }

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
.global-nav a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--nav-ink);
  position: relative;
  padding: 6px 0;
  transition: color .45s ease;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.global-nav a:hover::after { transform: scaleX(1); }
.nav-sea {
  color: var(--nav-muted) !important;
  font-weight: 500 !important;
}
.nav-sea::after { display: none; }
.nav-sea:hover { color: var(--moss) !important; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang-switch span { color: var(--nav-muted); font-weight: 400; }
.lang-switch a {
  color: var(--nav-muted);
  padding: 4px 2px;
}
.lang-switch a::after { display: none; }
.lang-switch a.active { color: var(--nav-ink); }
.lang-switch a:not(.active):hover { color: var(--moss); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--nav-ink);
  transition: transform .25s, opacity .25s, top .25s, background .45s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ============================================================
   Hero — 深いティールの光と軌道
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f2f7f5;
  background:
    radial-gradient(1100px 700px at 78% 18%, rgba(53, 115, 105, .34), transparent 62%),
    radial-gradient(900px 640px at 12% 88%, rgba(109, 159, 113, .16), transparent 60%),
    linear-gradient(168deg, #0a2f36 0%, var(--ink) 44%, var(--ink-deep) 100%);
  padding: 140px 0 110px;
}

/* --- 背景レイヤー --- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

/* 漂う光 */
.glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.glow-a {
  /* 軌道の背後に置き、マークの後光として効かせる */
  width: 760px; height: 760px;
  right: -90px; top: 4%;
  background: radial-gradient(circle, rgba(109, 159, 113, .22) 0%, rgba(109, 159, 113, .07) 45%, transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.glow-b {
  width: 1100px; height: 900px;
  left: -380px; bottom: -560px;
  background: radial-gradient(ellipse, rgba(53, 115, 105, .22) 0%, rgba(53, 115, 105, .07) 48%, transparent 72%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 50px) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, -60px) scale(1.08); } }

/* 軌道とシンボル（産業のライフサイクル）
   ── 外周まで画面内に収め、右端をコンテナの右端に合わせて本文と同じ基準線に置く */
.hero-orbit {
  position: absolute;
  width: min(36vw, 440px);
  aspect-ratio: 1 / 1;
  right: max(24px, calc((100vw - var(--maxw)) / 2));
  top: 50%;
  /* --dy / --sc はスクロールに応じてJSが書き換える */
  transform: translateY(-50%) translateY(var(--dy, 0px)) scale(var(--sc, 1));
}
/* マーク周りのごく淡い後光。軌道の焦点を示す */
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 180, 177, .24) 0%, transparent 70%);
}
.arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.arcs circle {
  fill: none;
  stroke-width: 1;
  transform-origin: 400px 400px;
}
.arc-1 { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 2 12; animation: spin 90s linear infinite; }
.arc-2 { stroke: rgba(109, 159, 113, .30); stroke-dasharray: 200 80; animation: spin 140s linear infinite reverse; }
.arc-3 { stroke: rgba(255, 255, 255, .11); stroke-dasharray: 1 9; animation: spin 200s linear infinite; }
.arc-4 { stroke: rgba(109, 180, 177, .20); stroke-dasharray: 320 190; animation: spin 170s linear infinite reverse; }
.arc-dot { fill: rgba(143, 199, 154, .95); stroke: none; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* シンボル透かし（白抜き）── 入れ物の中心＝軌道の中心に一致する */
.hero-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%; /* 最内周リング（直径37.5%）の内側に収まる */
  filter: brightness(0) invert(1);
  opacity: .13;
  animation: floaty 12s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translate(-50%, calc(-50% - 10px)); }
  to   { transform: translate(-50%, calc(-50% + 10px)); }
}

/* 立ちのぼる粒子 */
.particles span {
  position: absolute;
  bottom: -8px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c, rgba(143, 199, 154, .55));
  opacity: 0;
  animation: rise var(--d) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}
@keyframes rise {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  12%  { opacity: .55; }
  75%  { opacity: .3; }
  100% { opacity: 0; transform: translate3d(var(--sway, 20px), -86vh, 0); }
}

/* 質感ノイズ */
.noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* --- ヒーロー文言 --- */
.hero-inner { position: relative; z-index: 1; width: 100%; }
/* 右の軌道と重ならない読み幅。軌道の左端より内側で折り返す */
.hero-mission,
.hero-sub,
.hero-lede { max-width: min(100%, 640px); }
@media (max-width: 860px) {
  .hero-mission,
  .hero-sub,
  .hero-lede { max-width: 100%; }
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--moss-light);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--moss);
}
.hero-mission {
  font-size: clamp(36px, 5.8vw, 64px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .06em;
}
.hero-mission .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.hero-mission .line > span { display: inline-block; }
.hero-mission .accent {
  background: linear-gradient(92deg, var(--moss-light) 0%, #6db4b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin-top: 30px;
  font-family: var(--font-en);
  font-size: clamp(13px, 1.5vw, 15px);
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .62);
  max-width: 580px;
}
.hero-lede {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  max-width: 580px;
}

/* 読み込み時のリビール（動きを出してよいときだけ）
   ── ミッションは1行ずつ、下の辺を軸に奥から手前へ起き上がる */
.fx .hero-eyebrow,
.fx .hero-sub,
.fx .hero-lede {
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) forwards;
}
.fx .hero-eyebrow { animation-delay: .15s; }
.fx .hero-sub { animation-delay: .95s; }
.fx .hero-lede { animation-delay: 1.1s; }
.fx .hero-mission .line { overflow: visible; perspective: 900px; }
.fx .hero-mission .line > span {
  opacity: 0;
  transform-origin: 50% 100%;
  transform: translate3d(0, 36%, 0) rotateX(-84deg);
  animation: flipIn 1.5s var(--ease-out) forwards;
}
.fx .hero-mission .line:nth-child(1) > span { animation-delay: .3s; }
.fx .hero-mission .line:nth-child(2) > span { animation-delay: .48s; }
.fx .hero-mission .line:nth-child(3) > span { animation-delay: .66s; }
@keyframes flipIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .5);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--moss-light), rgba(109, 159, 113, .1));
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Sections 共通
   ============================================================ */
section { padding: 110px 0; scroll-margin-top: 72px; }

.sec-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) .25s;
}
.sec-label.visible::before,
html:not(.js) .sec-label::before,
/* 下層ページのラベルはリビール対象外。線が出ないまま 28px の余白だけ残るのを防ぐ */
.sec-label:not(.reveal)::before { transform: scaleX(1); }
.sec-title {
  margin-top: 16px;
  font-size: clamp(28px, 3.9vw, 46px);
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.38;
}
.sec-lede {
  margin-top: 20px;
  color: var(--muted);
  max-width: 640px;
  line-height: 2;
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--bg); }
.about-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 115, 105, .35);
  box-shadow: 0 16px 36px rgba(6, 38, 45, .08);
}
.about-card .num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--moss);
}
.about-card h3 {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .03em;
}
.about-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.stats-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 30px 12px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat .stat-num {
  font-family: var(--font-en);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat .stat-num small {
  font-size: .45em;
  font-weight: 600;
  margin-left: 4px;
  color: var(--muted);
}
.stat .stat-label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
}

.company-table { margin-top: 72px; }
.company-table h3 {
  margin: 40px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
}
.company-table dl {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.company-table dt,
.company-table dd {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.company-table dt {
  font-weight: 600;
  color: var(--teal);
}
.company-table dd { color: var(--ink); }

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio { background: var(--bg-soft); }
/* ロゴ画像が未入手の投資先は社名を文字で組む */
.pf-logo.is-wordmark { display: grid; place-items: center; padding: 10px; }
.pf-wordmark {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
}
.pf-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.pf-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
  overflow: hidden;
}
.pf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 115, 105, .45);
  box-shadow: 0 14px 34px rgba(6, 38, 45, .10);
}
.pf-logo {
  height: 84px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-logo img {
  max-height: 100%;
  max-width: 82%;
  object-fit: contain;
  transition: transform .35s var(--ease-out);
}
.pf-card:hover .pf-logo img { transform: scale(1.05); }
.pf-logo.has-bg {
  border-radius: 10px;
  padding: 10px 14px;
}
.pf-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: center;
  color: var(--ink);
}
.pf-desc {
  position: absolute;
  inset: 0;
  background: rgba(6, 38, 45, .93);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  text-align: left;
  opacity: 0;
  transition: opacity .25s ease;
}
.pf-card:hover .pf-desc,
.pf-card:focus-visible .pf-desc { opacity: 1; }
.pf-card:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}
/* キーボード利用者向けスキップリンク（フォーカス時のみ表示） */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--moss-light); outline-offset: 2px; }
.pf-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
/* タッチ端末はホバーが無いので、説明をオーバーレイではなくカード内に静的表示する */
@media (hover: none) {
  .pf-desc {
    position: static;
    inset: auto;
    background: none;
    color: var(--muted);
    opacity: 1;
    display: block;
    padding: 0;
    margin-top: -2px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
  }
}

/* ============================================================
   News
   ============================================================ */
.news-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.news-item {
  display: flex;
  gap: 36px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s var(--ease-out);
}
.news-item:hover {
  background: var(--bg-soft);
  padding-left: 18px;
}
.news-item time {
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--teal);
  white-space: nowrap;
}
.news-item p { font-size: 15.5px; font-weight: 500; }
.news-more {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn svg { flex-shrink: 0; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(53, 115, 105, .3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #2c635a;
  box-shadow: 0 12px 28px rgba(53, 115, 105, .38);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .65);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
/* 暗い背景（Dialogue帯）の上では白抜きにする */
.recruit .btn-outline {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.recruit .btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   Recruit
   ============================================================ */
.recruit {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(109, 159, 113, .16), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(53, 115, 105, .22), transparent 60%),
    var(--ink);
  color: #fff;
}
.recruit .sec-label { color: var(--moss-light); }
.recruit .sec-lede { color: rgba(255, 255, 255, .72); }
.recruit-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.contact { background: var(--bg-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .82);
  padding: 70px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand img { height: 26px; width: auto; }
.footer-brand p {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255, 255, 255, .6);
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-links h2 {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .58);
}
.footer-bottom a { color: rgba(255, 255, 255, .68); }
.footer-bottom a:hover { color: #fff; }
.sns-list { display: flex; gap: 18px; align-items: center; }
.sns-list a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  transition: background .25s, border-color .25s, transform .25s var(--ease-out);
}
.sns-list a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
}
.sns-list svg { width: 16px; height: 16px; fill: rgba(255, 255, 255, .85); }

/* ============================================================
   News page（一覧・記事詳細）
   ============================================================ */
.news-page {
  padding: 128px 0 90px;
  min-height: 72vh;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 34px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.news-page .news-list { margin-top: 40px; }
.news-page .news-more { margin-top: 44px; }

.article { max-width: 760px; }
.article-back { font-size: 13.5px; margin-bottom: 30px; }
.article-back a { color: var(--teal); font-weight: 600; }
.article-back a:hover { text-decoration: underline; }
.article-back-btm { margin: 48px 0 0; }
.article-date {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--teal);
}
.article-title {
  margin-top: 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
}
.article-langnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 12px;
}
.article-body { margin-top: 34px; }
.article-body p {
  margin-bottom: 1.4em;
  font-size: 15.5px;
  line-height: 2;
}
.article-body a { color: var(--teal); text-decoration: underline; word-break: break-all; }
.article-body a:hover { opacity: .8; }
.article-subhead {
  margin: 2em 0 1em;
  padding-left: 14px;
  border-left: 3px solid var(--moss);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
}
.article-ext { margin-top: 36px; }
.article-empty { color: var(--muted); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .hero-eyebrow,
  .js .hero-sub,
  .js .hero-lede,
  .js .scroll-hint,
  .js .hero-mission .line > span {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .glow, .arcs circle, .arc-dot, .hero-symbol, .scroll-hint::after,
  .particles span {
    animation: none !important;
  }
  .particles { display: none; }
  .sec-label::before { transform: scaleX(1); transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  section { padding: 80px 0; }
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .global-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .global-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  /* メニュー展開中はリンク色を常にインクに */
  .global-nav a { color: var(--ink); }
  .nav-sea { color: var(--muted) !important; }

  .hero { min-height: 92vh; min-height: 92svh; padding: 120px 0 90px; }
  .hero-eyebrow { margin-bottom: 22px; }
  .hero-mission { font-size: clamp(28px, 8vw, 44px); }
  /* 狭い画面では軌道を本文の背後に敷く。切れ方が半端に見えないよう全体を収める */
  .hero-orbit {
    width: min(92vw, 430px);
    right: 50%;
    top: 30%;
    transform: translate(50%, -50%) translateY(var(--dy, 0px)) scale(var(--sc, 1));
    opacity: .5;
  }
  .hero-symbol { opacity: .07; }
  .glow-a { width: 480px; height: 480px; right: -180px; }
  .glow-b { width: 560px; height: 560px; left: -260px; }

  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 22px 6px; }
  .stat .stat-label { font-size: 11.5px; }
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pf-card { padding: 16px 10px 14px; gap: 10px; }
  .pf-logo { height: 56px; }
  .pf-name { font-size: 12px; }
  .company-table dl { grid-template-columns: 1fr; }
  .company-table dt {
    padding-bottom: 2px;
    border-bottom: 0;
    font-size: 13.5px;
  }
  .company-table dd { padding-top: 2px; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-item:hover { padding-left: 8px; }
  .footer-grid { flex-direction: column; }
  .footer-links { gap: 36px; }
}

/* ============================================================
   Members page
   ============================================================ */
.members-page {
  padding: 128px 0 90px;
  min-height: 72vh;
}
.members-page .sec-lede { margin-bottom: 8px; }

/* グループは <section> なので全体の section { padding: 110px 0 } を継承してしまう。
   一覧内の区切りとしては過大なので打ち消し、行間とのバランスで余白を決める。 */
.mb-group { margin-top: 72px; padding: 0; }
.mb-group:first-of-type { margin-top: 44px; }
.mb-group-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--teal);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mb-count {
  margin-left: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}
.mb-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 28px;
  align-items: stretch; /* 行内でカード高さを揃え、リンク位置を合わせる */
}

/* カード全体がプロフィールを開くボタン */
.mb-open {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
  align-content: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.mb-open:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }

.mb-photo {
  position: relative;
  display: block;
  width: 100%;
  /* 全員同じ表示サイズに揃えるため枠は正方形で固定。
     中身は cover なので余白（帯）は出ない。9枚は元から正方形で切り取りなし。 */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.mb-open:hover .mb-photo,
.mb-open:focus-visible .mb-photo {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(6, 38, 45, .14);
}
.mb-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 縦長の写真は上下が切れるので、顔が残るよう上寄せで切り取る */
  object-position: 50% 22%;
  transition: transform .6s var(--ease-out);
}
.mb-open:hover .mb-photo img { transform: scale(1.04); }

.mb-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.mb-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .3s var(--ease-out);
}
.mb-open:hover .mb-name { color: var(--teal); }
.mb-role {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--teal);
}
.mb-practice {
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* カード高さを揃える。全文はモーダル側で読める */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}
.mb-more {
  margin-top: auto; /* 紹介文の長短にかかわらず行内で下端を揃える */
  padding-top: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .3s var(--ease-out);
}
.mb-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.mb-open:hover .mb-more { color: var(--teal); }
.mb-open:hover .mb-more::after { transform: rotate(45deg) translate(2px, -2px); }

/* 名前だけのカード（build.py の MEMBER_PROFILES = False）。押せないので、押せそうな反応は出さない */
.mb-plain { cursor: default; }
.mb-plain:hover .mb-photo { transform: none; box-shadow: none; }
.mb-plain:hover .mb-photo img { transform: none; }
.mb-plain:hover .mb-name { color: inherit; }

/* ---- プロフィールのモーダル ---- */
.mb-dialog {
  width: min(720px, calc(100vw - 40px));
  max-height: min(84vh, 760px);
  /* グローバルの `* { margin: 0 }` が UA の margin:auto を打ち消すので明示的に戻す */
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(6, 38, 45, .28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out),
              display .3s allow-discrete, overlay .3s allow-discrete;
}
/* display を常時指定すると UA の dialog:not([open]) { display: none } を打ち消して
   閉じたモーダルまで全て描画されてしまう。開いている間だけ flex にする */
.mb-dialog[open] {
  display: flex;
  opacity: 1;
  transform: none;
}
@starting-style {
  .mb-dialog[open] { opacity: 0; transform: translateY(16px) scale(.98); }
}
.mb-dialog::backdrop {
  background: rgba(6, 38, 45, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
  transition: opacity .3s ease, display .3s allow-discrete, overlay .3s allow-discrete;
}
.mb-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .mb-dialog[open]::backdrop { opacity: 0; }
}
/* モーダル表示中は背面のスクロールを止める */
body.mb-modal-open { overflow: hidden; }
.mb-dialog-dismiss { position: absolute; top: 14px; right: 14px; z-index: 2; }
.mb-dialog-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease-out);
}
.mb-dialog-close { transition: background .3s var(--ease-out), transform .3s var(--ease-out); }
.mb-dialog-close:hover { background: var(--bg-soft); transform: rotate(90deg); }
.mb-dialog-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.mb-dialog-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  width: 100%;
  min-height: 0;
}
.mb-dialog-photo { background: var(--bg-soft); min-height: 0; }
.mb-dialog-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 縦長の列に収める。比率は保たれる */
}
.mb-dialog-text {
  padding: 40px 40px 40px 36px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mb-dialog-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.mb-dialog-practice {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.95;
}
.mb-dialog-label {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.mb-dialog-career {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}

@media (max-width: 900px) {
  .mb-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
}
@media (max-width: 700px) {
  /* 縦1カラム。写真ごと本文をスクロールさせる */
  .mb-dialog { max-height: 88vh; }
  .mb-dialog-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mb-dialog-text { padding: 28px 24px 34px; overflow: visible; }
}
@media (max-width: 560px) {
  .members-page { padding: 104px 0 70px; }
  .mb-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .mb-photo img,
  .mb-photo,
  .mb-more,
  .mb-more::after,
  .mb-name,
  .mb-dialog,
  .mb-dialog::backdrop,
  .mb-dialog-close { transition: none; }
  .mb-open:hover .mb-photo img { transform: none; }
  .mb-open:hover .mb-photo { transform: none; box-shadow: none; }
  .mb-open:hover .mb-more::after { transform: rotate(45deg); }
  .mb-dialog-close:hover { transform: none; }
}

/* ============================================================
   Doc pages（About Us / Our Support などの詳細ページ）
   ============================================================ */
.doc-page {
  padding: 128px 0 90px;
  min-height: 72vh;
}
/* 読み幅は 780px のまま、コンテナ内で中央に寄せる（右側だけが空く偏りを解消） */
.doc-page .container > .breadcrumb,
.doc-page .container > .sec-label,
.doc-page .container > .sec-title,
.doc-page .container > .sec-lede,
.doc-page .container > .doc-next { max-width: 780px; margin-left: auto; margin-right: auto; }
.doc-page .container > .sec-lede { margin-bottom: 8px; }

.doc-sec {
  margin-top: 72px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.doc-h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.doc-sec > p {
  margin-bottom: 20px;
  line-height: 2.05;
}
.doc-quote {
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .03em;
  color: var(--teal);
  border-left: 3px solid var(--moss);
  padding-left: 20px;
  margin-bottom: 28px !important;
}

.doc-block {
  margin-top: 26px;
  padding: 26px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.doc-block h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.6;
  margin-bottom: 10px;
}
.doc-block p { font-size: 15px; line-height: 2.05; color: var(--muted); }
.doc-block a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.doc-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.doc-card {
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.doc-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.doc-card p { font-size: 14px; line-height: 1.95; color: var(--muted); }

.doc-steps {
  margin-top: 26px;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.doc-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 0 20px 62px;
  border-bottom: 1px solid var(--line);
}
.doc-steps li:last-child { border-bottom: 0; }
.doc-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  color: var(--moss);
  letter-spacing: .06em;
}
.doc-steps h3 { font-size: 16px; font-weight: 700; letter-spacing: .03em; margin-bottom: 6px; }
.doc-steps p { font-size: 14.5px; line-height: 1.95; color: var(--muted); }

.doc-timeline {
  margin-top: 26px;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.doc-timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.doc-timeline li:last-child { border-bottom: 0; }
.doc-timeline .y {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--teal);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.doc-timeline h3 { font-size: 15.5px; font-weight: 700; line-height: 1.7; letter-spacing: .02em; }
.doc-timeline p { margin-top: 6px; font-size: 14px; line-height: 1.95; color: var(--muted); }

.doc-next {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 700px) {
  .doc-page { padding: 104px 0 70px; }
  .doc-sec { margin-top: 56px; }
  .doc-cards { grid-template-columns: 1fr; }
  .doc-block { padding: 22px 20px; }
  .doc-timeline li { grid-template-columns: 1fr; gap: 6px; }
}

/* 詳細ページへの導線（トップの各セクション内） */
.sec-more { margin-top: 22px; }
.sec-more a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(53, 115, 105, .35);
  transition: border-color .3s var(--ease-out), gap .3s var(--ease-out);
}
.sec-more a:hover { border-color: var(--teal); gap: 13px; }
.sec-more a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.about-grid + .sec-more { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) {
  .sec-more a { transition: none; }
  .sec-more a:hover { gap: 9px; }
}

/* ============================================================
   3D スクロール
   ── 動きはすべて .fx（motion.js が動き、動きを減らす設定でない）の下で出す。
      値は motion.js が CSS 変数で渡す。変数が無いときは「落ち着いた状態」になる。
      --hp : ヒーローを抜けた割合（0〜1）
      --p  : 要素が画面に入ってきた割合（0〜1）
      --c  : 積み重なったカードが次のカードに覆われた割合（0〜1）
      --s  : 詳細ページの図の状態（0, 1, 2 …の間を連続に動く）
   ============================================================ */
:root { --hdr: 72px; --sheet: 34px; }

/* 英語版のミッションは語数が多いので、字間を詰めて一回り小さく組み、行の長さをそろえる */
html[lang="en"] .hero-mission {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: .005em;
  line-height: 1.22;
  max-width: min(100%, 700px);
  text-wrap: balance;
}
html[lang="en"] .hero-mission .line { padding-bottom: .12em; }

/* 日本語の見出しを文節で折り返し、行の長さをそろえる（対応ブラウザのみ） */
.sec-title, .page-title, .hero-mission, .doc-h2, .proc-body h3, .about-card h3, .company-head h3, .mb-name, .doc-quote { word-break: auto-phrase; }
.about-card h3, .proc-body h3, .doc-h2, .company-head h3 { text-wrap: balance; }

/* ---------- 一度きりの登場：奥から手前へ起き上がる ---------- */
.fx .reveal {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 46px, -80px) rotateX(-14deg);
  transform-origin: 50% 100%;
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}
.fx .reveal.visible { opacity: 1; transform: none; }
/* 大見出しは下の辺を軸に、寝た状態から立ち上がる */
.fx .sec-title.reveal,
.fx .doc-h2.reveal {
  transform: perspective(900px) translate3d(0, 28px, 0) rotateX(-70deg);
  transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.fx .sec-title.reveal.visible,
.fx .doc-h2.reveal.visible { transform: none; }

.fx [data-stagger] > * {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 44px, -90px) rotateX(-16deg);
  transform-origin: 50% 100%;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.fx [data-stagger].visible > * { opacity: 1; transform: none; }

/* 測定中は変形と貼り付きを外し、本来の位置を読む */
.fx-measure [data-fx="rise"] > * { transform: none !important; }
.fx-measure .proc-item { position: static !important; }
.fx-measure .proc-card { min-height: 0 !important; transform: none !important; }

/* ---------- 粒子の軌道を描く canvas ---------- */
.orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* SVG の軌道は JS が無いときの代わり。JS があれば canvas が描く */
.js .hero-orbit { display: none; }
.hero-bg .noise { z-index: 1; }

/* ============================================================
   ヒーロー → 次の面が覆いかぶさる
   ── ヒーローは画面に貼り付いたまま奥へ遠ざかり、暗くなる。
      その上を、角の丸い白い面がせり上がってくる。
   ============================================================ */
.fx .hero,
.fx .page-hero { position: sticky; top: 0; z-index: 0; }
.fx main > :not(.hero),
.fx .page-hero + main,
.fx .recruit,
.fx .site-footer { position: relative; z-index: 1; }

.fx .hero-inner,
.fx .page-hero-inner {
  transform-origin: 35% 60%;
  transform: perspective(1200px) translate3d(0, calc(var(--hp, 0) * -80px), calc(var(--hp, 0) * -380px)) rotateX(calc(var(--hp, 0) * 20deg));
  opacity: calc(1 - var(--hp, 0) * 1.4);
}
.fx .hero::after,
.fx .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #01090b;
  opacity: calc(var(--hp, 0) * .62);
  pointer-events: none;
}
.fx .scroll-hint { filter: opacity(calc(1 - var(--hp, 0) * 5)); }
/* 白い面に完全に覆われたヒーローは描かない（見た目は変わらない） */
.fx .is-covered .hero-bg,
.fx .is-covered .hero-inner,
.fx .is-covered .page-hero-inner,
.fx .is-covered .scroll-hint { visibility: hidden; }
.fx .is-covered .glow { animation-play-state: paused; }
.scroll-hint { bottom: calc(var(--sheet) + 26px); }
@media (max-height: 860px) { .scroll-hint { display: none; } }

.fx .hero + .about,
.fx .page-hero + main {
  margin-top: calc(-1 * var(--sheet));
  border-radius: var(--sheet) var(--sheet) 0 0;
  box-shadow: 0 -26px 70px rgba(2, 15, 18, .34);
}
.news { background: var(--bg); }

/* ============================================================
   About：3つの柱が奥から集まってくる。ポインタで傾く
   ============================================================ */
.about-item { display: flex; }
.about-item > .about-card { flex: 1; }
/* 変形そのものは motion.js が書く（起き上がる途中だけ） */
.fx .about-item { transform-origin: 50% 100%; }

.about-card { position: relative; overflow: hidden; isolation: isolate; }
.about-card > * { position: relative; z-index: 1; }
/* ポインタの位置に淡い光 */
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(340px circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(143, 199, 154, .30), rgba(143, 199, 154, 0) 62%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.fx .about-card.is-tilting::before { opacity: 1; }

.fx [data-tilt]:not([data-tilt="child"]) {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .8s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.fx [data-tilt].is-tilting:not([data-tilt="child"]) {
  transition: transform .18s ease-out, box-shadow .45s var(--ease-out), border-color .45s;
}
.fx .about-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(18px);
  box-shadow: 0 30px 60px -24px rgba(6, 38, 45, .28);
}

/* 数字はめくり札のように上から倒れてくる */
.fx .stats-row[data-stagger] > .stat {
  transform-origin: 50% 0%;
  transform: perspective(700px) rotateX(-92deg);
  transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out);
}
.fx .stats-row[data-stagger].visible > .stat { transform: none; }

/* ============================================================
   円筒に巻いた文字（About と Portfolio のあいだ）
   ── 円筒ごとスクロールで回る。裏側の文字は描かない
   ============================================================ */
.ring-band {
  position: relative;
  height: clamp(150px, 19vw, 260px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  perspective: 1500px;
  /* 消失点を帯の上に置く。奥（左右）の文字ほど上がり、ゆるい弧を描く */
  perspective-origin: 50% -60%;
}
.ring3d {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--R, 900px)));   /* 回転は motion.js が transform を直接書く */
}
.ring3d-text {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  font: 700 clamp(44px, 6.4vw, 98px)/1 var(--font-en);
  letter-spacing: 0;
  color: var(--teal);
}
.fx .ring3d-text { animation: ringDrift 160s linear infinite; }
.fx .ring-band.is-off .ring3d-text { animation-play-state: paused; }
.ring3d-text span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* 2つめの言葉は淡い緑の塗りで。袋文字は Web フォントの輪郭の重なりが透けて見えるため使わない */
.ring3d-text span.o { color: #a3cbad; }
@keyframes ringDrift { to { transform: rotateY(-360deg); } }

/* ============================================================
   Portfolio：寝ていたロゴが、下から順に起き上がる
   ============================================================ */
.fx .pf-grid[data-fx="rise"] > .pf-card {
  transform-origin: 50% 100%;
  transition: translate .45s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.fx .pf-grid[data-fx="rise"] > .pf-card:hover { transform: none; translate: 0 -6px; }

/* ============================================================
   News：扉のように左の辺を軸に開いて並ぶ
   ============================================================ */
.fx .news-list[data-stagger] > * {
  transform-origin: 0% 50%;
  transform: perspective(1100px) translate3d(-24px, 0, -70px) rotateY(26deg);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), background .3s ease, padding-left .3s var(--ease-out);
}
.fx .news-list[data-stagger].visible > * { transform: none; }

/* ============================================================
   Dialogue：傾いた輪の前で、2行の問いが1行ずつ起き上がる
   ============================================================ */
.recruit > .container { position: relative; z-index: 1; }
.dlg-title .ln { display: block; }
.fx .dlg-title .ln {
  --l: clamp(0, calc(var(--p, 0) * 1.9 - var(--i, 0) * .45 - .15), 1);
  transform-origin: 50% 100%;
  transform: perspective(900px) translate3d(0, calc((1 - var(--l)) * 30px), 0) rotateX(calc((1 - var(--l)) * -75deg));
  opacity: var(--l);
}

/* ============================================================
   詳細ページ共通：暗いヒーロー帯と、その上にせり上がる白い面
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 calc(84px + var(--sheet));
  overflow: hidden;
  color: #f2f7f5;
  background:
    radial-gradient(1000px 640px at 80% 18%, rgba(53, 115, 105, .34), transparent 62%),
    radial-gradient(820px 600px at 8% 100%, rgba(109, 159, 113, .14), transparent 60%),
    linear-gradient(168deg, #0a2f36 0%, var(--ink) 46%, var(--ink-deep) 100%);
}
.page-hero .glow-a { top: -12%; }
.page-hero-inner { position: relative; z-index: 1; width: 100%; }
.page-hero .breadcrumb { margin-bottom: 42px; color: rgba(255, 255, 255, .45); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .66); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .sec-label { color: var(--moss-light); }
.page-title {
  margin-top: 16px;
  max-width: 12.5em;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}
.page-sub {
  margin-top: 18px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.page-sub:lang(ja) { font-family: var(--font); letter-spacing: .2em; }
.fx .page-hero .breadcrumb,
.fx .page-hero .sec-label,
.fx .page-hero .page-title,
.fx .page-hero .page-sub {
  animation: heroIn 1.4s var(--ease-out) both;
  transform-origin: 50% 100%;
}
.fx .page-hero .sec-label { animation-delay: .12s; }
.fx .page-hero .page-title { animation-delay: .24s; }
.fx .page-hero .page-sub { animation-delay: .5s; }
@keyframes heroIn {
  from { opacity: 0; transform: perspective(900px) translate3d(0, 34px, 0) rotateX(-48deg); }
}

.page-hero + main { background: var(--bg); }
.page-hero + .doc-page,
.page-hero + .members-page,
.page-hero + .news-page { padding-top: 84px; }

/* 冒頭の導入文：1文目を大きく */
.doc-intro { max-width: 780px; margin: 0 auto; }
.doc-intro .sec-lede { max-width: none; margin: 0 0 18px; font-size: 16.5px; line-height: 2.05; }
.doc-intro .sec-lede:first-child {
  margin-bottom: 28px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .03em;
  color: var(--ink);
}
.members-page .doc-intro,
.news-page .doc-intro { margin: 0; max-width: 700px; }

/* ============================================================
   詳細ページの図（研究と実践 / 起業家と、どのように歩むのか）
   ── 右に貼り付いた図が、読んでいる段落に合わせて形を変える。
      スマホでは図を本文の背後に淡く敷く
   ============================================================ */
.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  margin-top: 48px;
}
.story-visual { grid-column: 2; grid-row: 1; }
.story-steps { grid-column: 1; grid-row: 1; }
.story-stage {
  position: sticky;
  top: var(--hdr);
  height: calc(100vh - var(--hdr));
  height: calc(100svh - var(--hdr));
}
.story-stage::before {
  content: "";
  position: absolute;
  inset: 10% 2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 159, 113, .13), rgba(109, 159, 113, 0));
}
.story-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 15px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(6, 38, 45, .08);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.story-tag small {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: none;
  color: var(--muted);
}
.story .doc-sec {
  max-width: none;
  margin: 0;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9vh 0;
}
.step-no {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px !important;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--moss);
}
.step-no::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .55; }
.fx .story .doc-sec { opacity: .28; transition: opacity .7s var(--ease-out); }
.fx .story .doc-sec.is-active { opacity: 1; }

/* ============================================================
   参画・投資までの流れ：カードが積み重なり、下のカードは奥へ倒れる
   ============================================================ */
.proc-stack { list-style: none; max-width: 880px; margin: 64px auto 0; padding: 0; }
.proc-item { margin-bottom: 22px; }
.proc-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px 40px;
  min-height: var(--card-h, 0);
  padding: 46px 52px 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 70px -34px rgba(6, 38, 45, .35);
  overflow: hidden;
}
.proc-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  border: 1px dashed rgba(53, 115, 105, .22);
  pointer-events: none;
}
.proc-num {
  font-family: var(--font-en);
  font-size: clamp(52px, 6.4vw, 84px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--moss);
}
.proc-body h3 {
  margin-bottom: 16px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .03em;
}
.proc-body p { font-size: 15px; line-height: 2; color: var(--muted); }
.proc-body p + p { margin-top: 6px; }
.fx .proc-item {
  position: sticky;
  top: calc(var(--hdr) + 30px + var(--i, 0) * 16px);
  margin-bottom: 30vh;
}
.fx .proc-item:last-child { margin-bottom: 0; }
.fx .proc-card {
  transform-origin: 50% 0%;
  transform: perspective(1400px) translate3d(0, 0, calc(var(--c, 0) * -170px)) rotateX(calc(var(--c, 0) * 13deg));
}
.fx .proc-card > * { opacity: calc(1 - var(--c, 0) * var(--c, 0) * .6); }
.fx .proc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  opacity: calc(var(--c, 0) * .06);
  pointer-events: none;
}

/* ============================================================
   Members：奥から回り込んで並び、写真がポインタで傾く
   ============================================================ */
.fx .mb-grid[data-stagger] > .mb-card {
  transform-origin: 50% 100%;
  transform: perspective(1100px) translate3d(0, 50px, -160px) rotateY(-14deg) rotateX(-8deg);
}
.fx .mb-grid[data-stagger].visible > .mb-card { transform: none; }
.fx .mb-card .mb-photo {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .8s var(--ease-out), box-shadow .5s var(--ease-out);
}
.fx .mb-card.is-tilting .mb-photo { transition: transform .18s ease-out, box-shadow .5s var(--ease-out); }
.fx .mb-open:hover .mb-photo,
.fx .mb-open:focus-visible .mb-photo {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(16px);
}
.mb-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.fx .mb-card.is-tilting .mb-photo::after { opacity: 1; }

/* ============================================================
   狭い画面
   ============================================================ */
@media (max-width: 900px) {
  .story { display: block; margin-top: 24px; }
  .story-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    margin-bottom: -100vh;
    margin-bottom: -100svh;
    z-index: 0;
    pointer-events: none;
    opacity: .42;
  }
  .story-stage { position: absolute; inset: 0; height: auto; }
  .story-stage::before,
  .story-tag { display: none; }
  .story-steps { position: relative; z-index: 1; }
  .story .doc-sec { min-height: 0; padding: 44px 0; }
  .fx .story .doc-sec { opacity: .5; }
}
@media (max-width: 860px) {
  :root { --sheet: 26px; }
  .page-hero { min-height: 56vh; min-height: 56svh; padding: 120px 0 calc(60px + var(--sheet)); }
  .page-hero .breadcrumb { margin-bottom: 30px; }
  .page-hero + .doc-page,
  .page-hero + .members-page,
  .page-hero + .news-page { padding-top: 56px; }
}
@media (max-width: 700px) {
  .proc-card { grid-template-columns: 1fr; padding: 30px 24px 34px; border-radius: 20px; }
  .proc-num { font-size: 46px; }
  .fx .proc-item { top: calc(var(--hdr) + 14px + var(--i, 0) * 10px); margin-bottom: 22vh; }
}

/* ============================================================
   クオリティ向上（第2弾）
   ── 文字組み・余白・各セクションの構成を磨き込む。
      上の定義を上書きするので、このブロックはファイルの最後に置く
   ============================================================ */

/* ---------- 文字組み ---------- */
body { line-break: strict; }
p, dd, li { text-wrap: pretty; }
/* 日本語の見出しは約物を詰め（palt）、そのぶん字間を少し開ける */
:lang(ja) .sec-title,
:lang(ja) .page-title,
:lang(ja) .hero-mission,
:lang(ja) .doc-h2,
:lang(ja) .doc-quote,
:lang(ja) .about-card h3,
:lang(ja) .proc-body h3,
:lang(ja) .company-head h3,
:lang(ja) .doc-intro .sec-lede:first-child,
:lang(ja) .mb-name,
:lang(ja) .news-item p {
  font-feature-settings: "palt" 1;
}
:lang(ja) .sec-title { letter-spacing: .07em; }
:lang(ja) .hero-mission { letter-spacing: .09em; }
:lang(ja) .page-title { letter-spacing: .07em; }
:lang(ja) .doc-h2 { letter-spacing: .06em; }

/* 見出しラベルの通し番号：「01 —— ABOUT US」 */
.sec-no {
  order: -1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  color: var(--moss);
}

/* ミッションの色つきの行は、ゆっくり色が流れる */
.hero-mission .accent {
  background-image: linear-gradient(92deg, var(--moss-light) 0%, #6db4b1 45%, #a6d8b0 70%, var(--moss-light) 100%);
  background-size: 220% 100%;
}
.fx .hero-mission .line:nth-child(2) > .accent {
  animation: flipIn 1.5s var(--ease-out) .48s forwards, accentShift 10s ease-in-out 2s infinite alternate;
}
@keyframes accentShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- About：見出しと導入文を左右に ---------- */
.about { padding-top: 124px; }
.about-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px 80px;
  align-items: end;
}
.about .sec-title { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.26; }
.about-head .sec-lede { margin-top: 0; max-width: 560px; font-size: 16px; }
.about-head-r .sec-more { margin-top: 20px; }

/* 3つの柱：上に粒子の小さな図、下に文 */
.about-grid { margin-top: 72px; gap: 24px; }
.about-card {
  padding: 0 30px 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 50px -38px rgba(6, 38, 45, .35);
}
.about-card .card-orbit {
  position: relative;
  inset: auto;
  display: block;
  width: calc(100% + 60px);
  height: 176px;
  margin: 0 -30px 4px;
  border-radius: 21px 21px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(58% 78% at 50% 52%, rgba(109, 159, 113, .12), rgba(109, 159, 113, 0) 72%),
    var(--bg-soft);
}
.about-card .num {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-card .num::after { content: ""; width: 30px; height: 1px; background: var(--moss); opacity: .55; }
.about-card h3 { margin-top: 12px; font-size: 20px; line-height: 1.55; }
.about-card p { font-size: 14.5px; line-height: 1.95; }
.fx .about-card:hover { box-shadow: 0 40px 70px -40px rgba(6, 38, 45, .42); border-color: rgba(53, 115, 105, .3); }

/* 数字：細く大きく */
.stats-row { margin-top: 104px; }
.stat { padding: 44px 12px 40px; }
.stat .stat-num {
  font-weight: 300;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat .stat-num small { font-size: .3em; font-weight: 600; letter-spacing: .04em; color: var(--teal); margin-left: 6px; }
.stat .stat-label { margin-top: 16px; font-size: 13px; letter-spacing: .1em; }

/* 会社概要：左に見出し、右に表 */
.company-table {
  margin-top: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: 24px 80px;
  align-items: start;
}
.company-head h3 { margin: 16px 0 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .06em; }
.company-table dl { border-top: 1px solid var(--line); }
.company-table dt, .company-table dd { padding: 21px 8px; }

/* ---------- 円筒の文字：左右の端を背景に溶かす ---------- */
.ring-band::before,
.ring-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.ring-band::before { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }
.ring-band::after { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent); mask-image: linear-gradient(270deg, #000 20%, transparent); }

/* ---------- Portfolio：ロゴの大きさをそろえ、説明は下からせり上がる ---------- */
.pf-grid { margin-top: 64px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.pf-card { border-radius: 16px; padding: 28px 16px 18px; gap: 16px; }
.pf-logo { height: 68px; }
.pf-logo img.fit {
  width: calc(var(--lw) * var(--ls, 1));
  height: calc(var(--lh) * var(--ls, 1));
  max-width: 94%;
  max-height: none;
  object-fit: contain;
}
.pf-name { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
@media (hover: hover) {
  .pf-desc {
    top: auto;
    min-height: 100%;
    align-items: flex-end;
    padding: 20px 18px 18px;
    background: linear-gradient(180deg, rgba(6, 38, 45, .82) 0%, rgba(6, 38, 45, .96) 60%);
    transform: translateY(14px);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  }
  .pf-card:hover .pf-desc,
  .pf-card:focus-visible .pf-desc { transform: none; }
}

/* ---------- News：左に見出しとボタン、右に一覧 ---------- */
.news-wrap {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 2fr);
  gap: 40px 80px;
  align-items: start;
}
.news-head { position: sticky; top: calc(var(--hdr) + 44px); }
.news-head .news-more {
  margin-top: 36px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.news-wrap .news-list { margin-top: 6px; }
.news-item { position: relative; padding: 28px 64px 28px 8px; gap: 32px; }
.news-item::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23357369' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), transform .35s var(--ease-out);
}
.news-item:hover::after {
  background-color: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transform: translateX(4px);
}

/* ---------- Dialogue：問いを大きく ---------- */
.dlg-title { font-size: clamp(30px, 4.3vw, 56px); line-height: 1.36; }
.recruit.entry { padding: 140px 0; }

/* ---------- Contact：見出しと本文を左右に。背景に傾いた軌道 ---------- */
.contact { position: relative; overflow: hidden; padding: 136px 0; perspective: 1200px; }
.contact-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 80px;
  align-items: end;
}
.contact .sec-title { font-size: clamp(34px, 5vw, 64px); line-height: 1.2; }
.contact-body .sec-lede { margin-top: 0; }
.contact-body .recruit-actions { margin-top: 32px; }
.contact-orbit {
  position: absolute;
  right: -12vw;
  top: 50%;
  width: min(66vw, 860px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotateX(64deg) rotateZ(-18deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.contact-orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(53, 115, 105, .26);
}
.contact-orbit i:nth-child(2) { inset: 13%; border-style: solid; border-color: rgba(109, 159, 113, .2); }
.contact-orbit i:nth-child(3) { inset: 28%; border-color: rgba(53, 115, 105, .16); }
.contact-orbit i:nth-child(2)::after,
.contact-orbit i:nth-child(3)::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 6px rgba(109, 159, 113, .14), 0 0 18px rgba(109, 159, 113, .55);
}
.contact-orbit i:nth-child(3)::after { top: auto; bottom: -4px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--teal); }
.fx .contact-orbit i { animation: spin 140s linear infinite; }
.fx .contact-orbit i:nth-child(2) { animation-duration: 100s; animation-direction: reverse; }
.fx .contact-orbit i:nth-child(3) { animation-duration: 180s; }

/* ---------- Footer：大きな透かしのロゴと「ページの先頭へ」 ---------- */
.site-footer { overflow: hidden; padding: 92px 0 0; }
.footer-links { gap: 64px; }
.footer-links a { font-size: 13.5px; }
.footer-bottom { align-items: center; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72) !important;
}
:lang(ja) .to-top { font-family: var(--font); letter-spacing: .1em; }
.to-top svg { transition: transform .35s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }
.footer-mark { margin-top: 64px; line-height: 0; pointer-events: none; }
.footer-mark img {
  width: min(1120px, 92vw);
  height: auto;               /* HTML の height 属性より aspect-ratio を優先させる */
  aspect-ratio: 1364 / 176;
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 100%;
  opacity: .07;
  transform: translateY(calc(22% + (1 - var(--p, 1)) * 40%));
}

/* ---------- ヘッダー：読み進めた量を下端の細い線で示す ---------- */
.hdr-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--moss) 0%, #6db4b1 100%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.site-header.solid .hdr-progress { opacity: 1; }

/* ---------- ボタン：ポインタにわずかに吸い寄せられる ---------- */
.fx .btn { transition: transform .25s var(--ease-out), translate .45s var(--ease-out), box-shadow .25s ease, background .25s ease, color .25s ease; }

/* ---------- 詳細ページの図：いま読んでいる位置を示す縦の線 ---------- */
.story-steps { position: relative; padding-left: 44px; }
.story-rail { position: absolute; left: 0; top: 9vh; bottom: 9vh; width: 1px; background: var(--line); }
.story-rail i {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform: scaleY(var(--rail, 0));
  background: linear-gradient(180deg, var(--moss) 0%, var(--teal) 100%);
}
html:not(.fx) .story-rail { display: none; }

/* ---------- ページ間の切り替え（対応ブラウザのみ） ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: vtOut .32s var(--ease-out) both; }
::view-transition-new(root) { animation: vtIn .6s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
.site-header { view-transition-name: site-header; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 1000px) {
  .news-wrap { grid-template-columns: 1fr; gap: 0; }
  .news-head { position: static; }
  .news-head .news-more { flex-direction: row; flex-wrap: wrap; margin: 28px 0 8px; }
}
@media (max-width: 860px) {
  .about { padding-top: 96px; }
  .about-head { grid-template-columns: 1fr; gap: 0; }
  .about-head .sec-lede { margin-top: 22px; }
  .about-grid { margin-top: 48px; }
  .stats-row { margin-top: 72px; }
  .stat { padding: 30px 6px 26px; }
  .company-table { grid-template-columns: 1fr; margin-top: 72px; gap: 8px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pf-logo { height: 50px; }
  .pf-logo img.fit { --ls: .74; }
  .news-item { padding-right: 52px; }
  .news-item::after { width: 30px; height: 30px; margin-top: -15px; right: 6px; }
  .contact { padding: 100px 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-orbit { right: -40vw; width: 120vw; opacity: .8; }
  .recruit.entry { padding: 104px 0; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .story-steps { padding-left: 0; }
  .story-rail { display: none; }
  /* ヒーロー：軌道は上半分、文字は下半分に分けて重ならないようにする */
  .hero { align-items: flex-end; padding-bottom: calc(var(--sheet) + 56px); }
  /* 会社概要：項目名と内容を詰めて1組ずつ読めるように */
  .company-table dt { padding: 18px 4px 2px; }
  .company-table dd { padding: 2px 4px 18px; }
  /* 投資先の説明は4行までにそろえ、カードの高さを均一に */
  .pf-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ============================================================
   トップ：ヒーローの粒子が、ページ全体の背景として流れ続ける
   ── 画面に固定した canvas（z2）を、各セクションの背景より上・本文（z3）より下に重ねる。
      そのためにトップの各セクションは重なりの箱（stacking context）を作らない（z-index: auto）。
      動きを出さない表示では、これまでどおりヒーローの中の canvas だけを使う
   ============================================================ */
.page-orbit {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none;
  pointer-events: none;
}
.fx .journey .page-orbit { display: block; }
.fx .journey .hero .orbit-canvas,
.fx .journey .recruit > .orbit-canvas { display: none; }
.fx .journey main > :not(.hero),
.fx .journey .site-footer { z-index: auto; }
.fx .journey main > :not(.hero) > .container,
.fx .journey .site-footer > .container,
.fx .journey .footer-mark { position: relative; z-index: 3; }
.fx .journey .ring3d { z-index: 3; }
.fx .journey .ring-band::before,
.fx .journey .ring-band::after { z-index: 4; }
.fx .journey .contact-orbit { z-index: 1; }

/* Dialogue：粒子のマークが輪をまとって戻ってくる場所。広い画面は本文の右の余白を使い、
   本文の右に余白がない幅では、ボタンの下にその場所を空ける（動きがあるトップページだけ） */
.dlg-stage { display: none; }
@media (max-width: 940px) {
  .fx .journey .dlg-stage { display: block; height: min(86vw, 400px); margin-top: 32px; }
  .fx .journey .recruit.entry { padding-bottom: 32px; }
}
/* フッター：マークが大きな「REAPRA」の文字の真上に降りてロゴが完成するよう、文字の上を空ける
   （ロゴ画像の縦のうち、文字の上端からマークの上端までが画像幅の 0.208 倍） */
.fx .journey .footer-mark { margin-top: calc(min(1120px, 92vw) * .208 + 48px); }
.fx .journey .footer-mark img { opacity: .1; }

/* トップの白い面：背景の粒子の形がはっきり見えるぶん、本文のまわりだけ背景色でふちどって読みやすく保つ */
.fx .journey .about,
.fx .journey .news { --halo: var(--bg); }
.fx .journey .portfolio,
.fx .journey .contact { --halo: var(--bg-soft); }
.fx .journey :is(.about, .portfolio, .news, .contact) :is(.sec-label, .sec-title, .sec-lede, .sec-more, .stat, .company-table, .pf-note, .news-item) {
  text-shadow: 0 0 4px var(--halo), 0 0 12px var(--halo), 0 0 22px var(--halo);
}

/* ---------- 日本語の改行：文節の切れ目だけで折り返す ----------
   build.py が文節の切れ目に <wbr> を入れ、文を <span class="bx"> で包んでいる（tools/phrase_breaks.py）。
   その中では切れ目以外で改行しない。1つの文節が行より長いときだけ、どこでも折り返してはみ出しを防ぐ */
.bx { word-break: keep-all; overflow-wrap: anywhere; }
/* 見出し・短い文は、行の長さをそろえる（1語や数文字だけが次の行に残らないように） */
h1, h2, h3, h4, .sec-title, .page-title, .doc-h2, .doc-quote, .stat-label, .btn, .dlg-title .ln, .mb-name, figcaption { text-wrap: balance; }
/* メンバー一覧の人数（「9 members」「9名」）は途中で折り返さない */
.mb-count { white-space: nowrap; }
/* About の3枚のカード：見出しの行数が違っても、番号・見出し・本文の高さを3枚でそろえる */
@media (min-width: 861px) {
  .about-grid { row-gap: 0; }
  .about-item { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .about-item > .about-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
}
/* PC だけで効かせる改行（カードの見出しを2行にそろえる） */
@media (max-width: 860px) { .pc-br { display: none; } }
/* 英語：About の見出しは「A partner in / industry creation.」の2行に収まる大きさに */
html[lang="en"] .about .sec-title { font-size: clamp(30px, 3.9vw, 48px); }
/* 英語：ニュースの見出しは1行に */
html[lang="en"] .news-head .sec-title { white-space: nowrap; }
/* ボタンの文字は、画面に余裕があるときは折り返さない */
@media (min-width: 600px) { .btn { white-space: nowrap; } }
/* 短い説明文（About のカード・投資先のカード）も行の長さをそろえ、最後の行に1語だけ残らないように */
.about-card p, .pf-desc { text-wrap: balance; }
/* 英語のページ見出しは、2行に収まる幅に */
html[lang="en"] .page-title { max-width: 14.5em; }
/* メンバーの紹介文も、最後の行に1語だけ残らないように */
.mb-practice { text-wrap: pretty; }
/* 幅の狭いスマホ（375px 未満）：投資先カードの説明は、10文字の文節が1行に収まる大きさに */
@media (max-width: 374px) { .pf-desc { font-size: 11px; } }
