/* ============================================================
   emer — リニューアル版トップページ専用スタイル
   白背景 × ベントーグリッド（カードは大=全幅／中=半幅の2種のみ）
   ============================================================ */
:root {
  --ink: #081b23;
  --green: #32b395;
  --green-d: #1e9e81;
  --deep: #164d40;
  --paper: #ffffff;
  --line: #e8e8e8;
  --card-line: var(--ink); /* カード外枠は黒（インク色）。背景に色・模様を持つカードは枠なし */
  --gray: var(--ink); /* 本文は黒ベース（2026-09-14ユーザー指示: 灰色本文は読みづらい） */
  --muted: #3a454c; /* 小ラベル・注記。黒ベースのまま一段だけ弱める */
  --tint: #f3faf7;
  --radius: 0px; /* カードは鋭角（角丸なし） */
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* FACTS数字用フォント（DSEG7 Classic・7セグメントデジタル時計・SIL OFL） */
@font-face {
  font-family: "DSEG7";
  src: url("/assets/fonts/DSEG7Classic-LightItalic.woff2") format("woff2"),
       url("/assets/fonts/DSEG7Classic-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* スムーススクロールはLenis（assets/js/lenis.min.js）が担当 */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.5s ease;
}
/* フッター表示中はヘッダーをフェードアウト */
.site-header.is-hidden { opacity: 0; pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; width: 100%; padding: 0 48px; }
.logo img { height: 26px; width: auto; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.gnav a { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); opacity: 0.85; }
.gnav a:hover { opacity: 1; color: var(--green-d); }
/* ボタンは全サイト共通で同一サイズ（210×48）・鋭角・「ラベル ＋ →」構成 */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 210px; height: 48px; padding: 0 20px;
  border-radius: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn::after { content: "→"; font-family: var(--font-en); transition: transform 0.25s; }
.btn:hover { opacity: 0.85; }
.btn:hover::after { transform: translateX(5px); }
.btn-cta {
  background: linear-gradient(90deg, var(--green), var(--green-d));
  color: #fff;
}
.menu-btn { display: none; }

/* ---------- hero（全画面・対角コンポジション）----------
   左上ラベル → 右中段リード → 左下巨大タイトル → 右下スクロールヒント */
/* ヒーローはstickyで固定し、後続セクションが上に滑り込んで「切り替わる」 */
.hero {
  position: sticky; top: 72px;
  min-height: calc(100vh - 72px);
  display: flex; flex-direction: column;
  padding: 28px 48px 128px;
  z-index: 1;
  background: var(--paper);
  will-change: opacity, transform;
}
/* レイヤー順: フッター(0) < ヒーロー(1) < コンテンツ(2) */
.bento, .clients-sec, .env { position: relative; z-index: 2; }
.bento { background: var(--paper); }
main > .bento:first-of-type { box-shadow: 0 -24px 60px rgba(8, 27, 35, 0.07); }
/* 上部：eyebrow と同じ行幅でリード文を添える（fit-content で幅を eyebrow に揃える） */
.hero-top { width: fit-content; max-width: 100%; }
.hero-bottom {
  margin-top: auto;
  display: flex; align-items: flex-end; gap: 8px;
}
.hero-eyebrow {
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.22em;
  color: var(--muted);
}
.hero-eyebrow::before { content: "■ "; color: var(--green); font-size: 9px; vertical-align: 2px; }
.hero-title {
  font-size: 4.4vw; font-weight: 800; line-height: 1.15;
  letter-spacing: 0.02em; white-space: nowrap;
}
.hero-title .mk, .page-hero h1 .mk, .c-title .mk {
  font-style: normal; color: #fff;
  background: linear-gradient(90deg, var(--green), var(--green-d));
  padding: 0 0.18em;
}
/* ヒーロータイトルの段階出現：「今日を動かし、」が浮かび → マーカーが左から走り → 白文字が現れる */
.hero-title .ht-a {
  display: inline-block; opacity: 0; transform: translateY(0.35em);
  animation: htRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-title .mk.ht-b {
  background-repeat: no-repeat; background-size: 0% 100%;
  color: transparent;
  animation: mkWipe 0.55s cubic-bezier(0.65, 0, 0.35, 1) 1.05s forwards,
             mkText 0.35s ease 1.4s forwards;
}
@keyframes htRise { to { opacity: 1; transform: none; } }
@keyframes mkWipe { to { background-size: 100% 100%; } }
@keyframes mkText { to { color: #fff; } }
@media (prefers-reduced-motion: reduce) {
  .hero-title .ht-a { opacity: 1; transform: none; animation: none; }
  .hero-title .mk.ht-b { background-size: 100% 100%; color: #fff; animation: none; }
}

/* 行頭に来たマーカーは左パディング分だけぶら下げ、字面を本文の左端に揃える */
.hero-title .mk:first-child, .page-hero h1 .mk:first-child, .c-title .mk:first-child { margin-left: -0.18em; }
/* width:0 + min-width:100% で、リード文が hero-top の幅決定に関与せず eyebrow の幅に従う */
.hero-lead {
  margin-top: 18px;
  width: 0; min-width: 100%;
  font-size: 13px; line-height: 1.9; color: var(--gray);
  text-align: justify;
}
/* ヒーロー下部の取引先ロゴマーキー */
.hero-clients { margin-top: 56px; }
.hero-clients .hc-cap { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.hero-clients .hc-cap::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.hero-clients .marquee { margin-top: 16px; overflow: hidden; }
.hero-clients .marquee-track { font-size: 88px; }
@media (max-width: 960px) {
  .hero-clients { margin-top: 36px; }
  .hero-clients .marquee-track { font-size: 88px; }
}

.hero-scroll {
  position: absolute; right: 48px; bottom: 44px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: 0.25em; color: var(--muted);
}
.hero-scroll::after { content: " ■"; color: var(--green); font-size: 8px; }

/* ---------- グリッド（大=全幅／中=半幅） ---------- */
.bento { padding: 8px 0 96px; }
.bento-cont { padding-top: 96px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 44px 48px;
  background: var(--paper);
  border: 1px solid var(--card-line);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* 全カード同一高さ。サイズは「大=全幅」「中=半幅」の2種のみ */
  height: 540px;
}
.card-lg { grid-column: 1 / -1; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8, 27, 35, 0.10); }
.c-label {
  font-family: var(--font-en); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--muted);
}
.c-label::before { content: "■ "; color: var(--green); font-size: 8px; vertical-align: 2px; }
.c-num {
  position: absolute; top: 20px; right: 36px;
  font-family: var(--font-en); font-weight: 800; line-height: 1;
  color: var(--ink); opacity: 0.06; letter-spacing: -0.04em;
  font-size: 120px;
}
.card-md .c-num { font-size: 96px; }
/* 全カード共通: ラベル直下にタイトル。下端要素は各カードでmargin-top:autoで固定 */
.c-title { font-size: 30px; font-weight: 800; letter-spacing: 0.03em; margin-top: 28px; }
.card-md .c-title { font-size: 26px; }
.c-desc { font-size: 13.5px; color: var(--gray); margin-top: 14px; max-width: 46em; text-align: justify; }
.c-arrow {
  position: absolute; right: 30px; bottom: 26px;
  font-family: var(--font-en); font-size: 20px; color: var(--green-d);
  transition: transform 0.25s;
}
a.card:hover .c-arrow { transform: translate(3px, -3px); }

/* 01 COMPANY — 大（デザインは後日作り込み。いったん白） */
/* 上に紹介文＋領域タグ、下端にKPIを固定して縦の配分を整える */
.card-company .c-desc { max-width: 540px; line-height: 2.1; }
.card-company .c-stats { margin-top: auto; }
.dom-cap { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); margin-top: 26px; }
/* タグは同サイズ5等分。行の両端を説明文（540px）に揃える */
.dom-tags {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  max-width: 540px; margin-top: 10px;
}
/* 業界タグ：技術タグ（薄罫線・グレー文字）とは性格が異なるためインク太枠・インク文字の別デザイン */
.dom-tags li {
  list-style: none; font-size: 11.5px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 7px 0; text-align: center;
  white-space: nowrap;
}
/* KPI: カード全幅に3等分。細身の大きな数字＋グリーンの目印で洗練させる */
.c-stats { display: flex; margin-top: 44px; }
.c-stats div { flex: 1; border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 18px; }
.c-stats div + div { margin-left: 48px; }
.c-stats dt { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.16em; }
.c-stats dt::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.c-stats dd {
  font-family: var(--font-en); font-size: 48px; font-weight: 300;
  margin-top: 10px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.c-stats dd small { font-size: 18px; font-weight: 500; color: var(--gray); }

/* 02 SERVICES — 中（サービス一覧は下端固定） */
/* 6つのミニカード：クリックでServicesページの該当セクションへ */
.svc-grid {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.svc-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); background: var(--paper);
  padding: 13px 12px;
  font-size: 11px; font-weight: 700; color: var(--gray); line-height: 1.5;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.svc-mini span { font-family: var(--font-en); font-size: 13px; color: var(--green-d); flex: none; transition: transform 0.2s; }
.svc-mini:hover { border-color: var(--green-d); color: var(--ink); transform: translateY(-2px); }
.svc-mini:hover span { transform: translate(2px, -2px); }

/* 03 AI-DRIVEN — 中（チップは下端固定） */
.card-ai .chip { margin-top: auto; }
.chip {
  display: inline-block; margin-top: 16px; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--green-d);
  border: 1px solid var(--green-d); border-radius: 999px; padding: 4px 12px;
}

/* 04 CLIENTS — 大・ロゴマーキー */
.marquee {
  overflow: hidden; margin-top: 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 55s linear infinite; font-size: 90px; }
.marquee-track img { height: calc(var(--h, 90) * 1em / 186); width: auto; flex: none; margin-right: 0.75em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 04 RECRUIT — 大（数字とCTAは下端固定） */
.card-recruit .c-title { font-size: 34px; }
/* 数字はカード全幅に3等分（01カードのKPIと同じ文法） */
.r-stats { display: flex; margin-top: auto; }
.r-stats div { flex: 1; border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 18px; }
.r-stats div + div { margin-left: 48px; }
.r-stats dt { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.16em; }
.r-stats dt::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.r-stats dd {
  font-family: var(--font-en); font-size: 48px; font-weight: 300; color: var(--green-d);
  margin-top: 10px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.r-stats dd small { font-size: 18px; font-weight: 500; }
/* カジュアル面談への誘導：一言の誘い文＋ボタン＋安心材料 */
.cta-lead { margin-top: 30px; font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.cta-row { margin-top: 14px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }

/* 05 PROFILE — 中・モダンなグリッド型スペック（KPIと同じ文法、認証セルにISMSマーク） */
.p-grid { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.p-grid > div { border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 12px; }
.p-grid .span2 { grid-column: 1 / -1; }
.p-grid dt { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.16em; }
.p-grid dt::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.p-grid dd { margin-top: 8px; font-size: 13.5px; font-weight: 400; color: var(--ink); line-height: 1.9; }
.p-isms { display: flex; align-items: center; gap: 10px; }
.p-isms img { width: 30px; height: auto; }
.p-isms span { display: flex; flex-direction: column; line-height: 1.5; }
.p-isms small { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; margin-top: 3px; }

/* CONTACT — 唯一の特徴カード。漆黒×中央揃えタイポグラフィ（共通ルール適用外）
   セル内で二回り小さく中央配置し、四隅から45°の細い2本線が角に突き刺さる */
.ct-cell {
  position: relative; height: 540px;
  display: flex; align-items: center; justify-content: center;
}
.card-contact {
  background: #050505; border: none; color: #fff;
  width: calc(100% - 152px); height: calc(100% - 152px);
  padding: 32px;
  align-items: center; justify-content: center; text-align: center;
}
.ct-corner { position: absolute; width: 70px; height: 70px; pointer-events: none; }
.ct-corner.tl { top: 4px; left: 4px; }
.ct-corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.ct-corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.ct-corner.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }
/* 2本の線はカード角の対角軸を中心に左右±7pxで均等配置。
   同じ長さにすることで内側の端が水平に揃い、カードには触れない手前で止まる */
.ct-corner::before, .ct-corner::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 93px; height: 1.5px; background: var(--ink);
  transform-origin: 0 50%;
}
.ct-corner::before { transform: translate(-7px, 0) rotate(45deg); }
.ct-corner::after { transform: translate(7px, 0) rotate(45deg); }
/* CONTACT・電話番号・受付時間の3行を、1文字ずつ均等配置で同一幅（260px）に揃える */
.ct-stack { width: 190px; }
.ct-stack .chars { display: flex; justify-content: space-between; width: 100%; }
.ct-stack .chars i { font-style: normal; }
.ct-en { font-family: var(--font-en); font-size: 29px; font-weight: 200; }
.ct-tel {
  font-family: var(--font-en); font-size: 15px; font-weight: 200;
  color: rgba(255, 255, 255, 0.9); margin-top: 30px;
  font-variant-numeric: tabular-nums;
}
.ct-hours { font-size: 10px; color: rgba(255, 255, 255, 0.55); margin-top: 7px; }
.ct-arrow { font-family: var(--font-en); font-size: 24px; margin-top: 34px; transition: transform 0.25s, color 0.25s; }
a.card-contact:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
a.card-contact:hover .ct-arrow { transform: translateX(6px); color: var(--green); }

/* ---------- お取引企業セクション（GROW WITH USと同構造） ---------- */
.clients-sec { padding: 96px 0 56px; background: #f5f6f7; }
.clients-sec h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: 0.03em; margin-top: 16px; }
.marquee-card { margin-top: 40px; }
.marquee-cap { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 14px; }
.marquee-cap::before { content: "■ "; color: var(--green); font-size: 8px; vertical-align: 2px; }
.marquee-card .marquee { margin-top: 0; }
/* 三角形ダイアグラム（直接・継続・体制 → 信頼） */
.tri-wrap {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px;
  align-items: center; margin-top: 56px;
}
.tri-svg { width: 100%; max-width: 460px; height: auto; justify-self: center; }
.tri-svg .t-label { font-size: 16px; font-weight: 800; fill: var(--ink); }
.tri-svg .t-sub { font-size: 10.5px; font-weight: 600; fill: var(--muted); letter-spacing: 0.2em; }
.tri-svg .t-center { font-size: 26px; font-weight: 800; fill: var(--ink); letter-spacing: 0.1em; }
.tri-svg .t-center-en { font-family: var(--font-en); font-size: 10px; font-weight: 700; fill: var(--muted); letter-spacing: 0.28em; }
.tri-item {
  display: flex; gap: 22px; padding: 24px 0;
  border-top: 1px dashed rgba(8, 27, 35, 0.25);
}
.tri-item:last-child { border-bottom: 1px dashed rgba(8, 27, 35, 0.25); }
.tri-num { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--green-d); letter-spacing: 0.1em; padding-top: 5px; flex: none; }
.tri-item h3 { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.tri-item p { font-size: 13px; color: var(--gray); margin-top: 8px; text-align: justify; }
/* 三角図のまとめ：信頼→継続の因果を一文で */
.tri-note {
  margin-top: 36px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--gray); letter-spacing: 0.06em;
}
.tri-note::before { content: "― "; color: var(--green); }
.tri-note::after { content: " ―"; color: var(--green); }

/* ---------- 成長環境セクション（カード型） ---------- */
.env { padding: 64px 0 120px; background: #f5f6f7; }
.sec-label { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); }
.sec-label::before { content: "■ "; color: var(--green); font-size: 9px; vertical-align: 2px; }
.env h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: 0.03em; margin-top: 16px; }
.env-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.env-item {
  background: var(--paper); border-radius: var(--radius);
  height: 560px; padding: 36px 32px 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.env-item .eyebrow {
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--muted); margin-bottom: 14px;
}
.env-item .eyebrow::before { content: "■ "; color: var(--green); font-size: 8px; vertical-align: 2px; }
/* 見出しは必ず1行で収める */
.env-item h3 { font-size: 18px; font-weight: 800; line-height: 1.55; letter-spacing: 0; white-space: nowrap; }
/* タイトルは透過マーカー風ハイライト（ブランド緑・字面は本文の左端に揃える） */
.env-item h3 { align-self: flex-start; background: rgba(50, 179, 149, 0.38); padding: 0.12em 0.4em; margin-left: -0.4em; }
.env-item p { font-size: 13px; color: var(--gray); margin-top: 14px; text-align: justify; }
/* 将来ここに各カードのビジュアルが入る（下半分の余白を確保） */
.env-art { flex: 1; margin-top: 24px; }
.env .cta-lead { margin-top: 48px; }
.env-cta { margin-top: 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }

/* ---------- footer（フル画面／背景はサイトと同じ白） ----------
   stickyで画面下に固定し、最後のセクションが剥がれると下から現れる */
.site-footer {
  background: var(--paper); color: var(--ink);
  position: sticky; bottom: 0; z-index: 0;
  min-height: 100vh; max-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}
.footer-mark-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 64px;
  width: 100%; max-width: 1200px; margin: auto; padding: 40px;
}
/* ロゴの上辺を地図（iframe）の上辺に揃える：ACCESSラベル分だけ下げる */
.footer-brand { padding-top: 27px; }
.footer-brand img { height: 64px; width: auto; }
/* タグラインはロゴ（高さ64px時の実測幅245px）と同幅。
   文字サイズ＋字間で自然に近づけ、端数のみ両端揃えで吸収 */
.footer-brand .tagline {
  font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 28px;
  width: 239px; margin-left: 2px; letter-spacing: 0.05em;
  text-align: justify; text-align-last: justify;
}
/* オフィス所在地の地図カード */
.footer-map { width: 56%; min-width: 380px; }
.map-label { font-family: var(--font-en); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 12px; }
.map-label::first-letter { color: var(--green); }
.footer-map iframe {
  display: block; width: 100%; height: 360px; border: 0;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.02);
}
.footer-inner {
  display: flex; gap: 60px; flex-wrap: wrap;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 44px 40px 0;
  border-top: 1px solid rgba(8, 27, 35, 0.25);
}
.footer-id { max-width: 400px; }
.footer-id address { font-style: normal; font-size: 13px; color: var(--gray); line-height: 2.1; }
.footer-id address strong { color: var(--ink); font-size: 14px; }
/* 番号付き横並びサイトマップ */
.footer-nav { display: flex; gap: 30px; margin-left: auto; align-items: flex-start; }
.fn-item .fn-num {
  display: block; font-family: var(--font-en); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 10px;
}
.fn-item .fn-num::before { content: "- "; }
.fn-item > a {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ink);
}
.fn-item > a:hover { color: var(--green-d); }
.fn-sub a { display: block; font-size: 11.5px; color: var(--gray); margin-top: 12px; }
.fn-sub a:hover { color: var(--green-d); }
.fn-contact .fn-num::before { content: ""; }
.fn-contact > a { color: var(--green-d); }
.footer-bottom {
  margin-top: 60px; border-top: 1px solid rgba(8, 27, 35, 0.25);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto;
  padding: 26px 40px 38px;
}
.footer-bottom .legal { display: flex; gap: 24px; margin-left: auto; }
.footer-bottom a, .footer-bottom p { font-size: 11.5px; color: var(--muted); }

/* ---------- スクロール出現アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(28px); }
.hero .reveal.in { transform: none; }
.hero-title.reveal { transition-delay: 0.1s; }
.hero-lead.reveal { transition-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .gnav { display: none; }
  .menu-btn {
    display: block; margin-left: auto; background: none; border: none;
    font-family: var(--font-en); font-size: 12px; letter-spacing: 0.15em; font-weight: 700;
    color: var(--ink); cursor: pointer;
  }
  .header-inner { padding: 0 20px; gap: 16px; }
  .btn { width: 176px; height: 42px; font-size: 12px; padding: 0 16px; }
  .hero { min-height: calc(100svh - 64px); padding: 24px 20px 64px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-top { width: auto; }
  .hero-lead { margin-top: 14px; width: auto; min-width: 0; }
  .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-scroll { right: 20px; bottom: 20px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 32px 28px; height: auto; min-height: 380px; }
  .ct-cell { height: auto; }
  .card-contact { width: 100%; height: auto; min-height: 340px; padding: 32px 28px; }
  .ct-corner { display: none; }
  .c-stats, .r-stats { flex-direction: column; gap: 0; }
  .c-stats div, .r-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 2px; }
  .c-stats dd, .r-stats dd { font-size: 26px; }
  .marquee-track { font-size: 88px; }
  .env-grid { grid-template-columns: 1fr; }
  .env-item { height: auto; min-height: 420px; }
  .tri-wrap { grid-template-columns: 1fr; gap: 40px; }
  .tri-svg { max-width: 320px; }
  /* モバイルはコンテンツ量が縦に伸びるため、リビール演出は無効化して通常配置に */
  .site-footer { position: static; max-height: none; overflow: visible; padding-top: 32px; min-height: 100svh; }
  .footer-mark-row img { height: 56px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-nav { margin-left: 0; flex-wrap: wrap; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 40px; }
  .footer-bottom .legal { margin-left: 0; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 200; background: var(--paper);
    padding: 90px 28px 40px; display: none;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a { display: block; font-size: 17px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .close-btn {
    position: absolute; top: 24px; right: 20px; background: none; border: none;
    font-family: var(--font-en); font-size: 12px; letter-spacing: 0.15em; font-weight: 700; cursor: pointer;
  }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }

/* ============================================================
   ヘッダーナビの番号（カード番号と連動、フッターと同型）
   ============================================================ */
.gnav a { display: inline-flex; flex-direction: column; gap: 3px; }
.gnav a .n {
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--muted); line-height: 1;
}
.gnav a.nav-contact { color: var(--green-d); }
.gnav a.nav-contact .n { color: var(--green-d); }
/* アクティブページは黒文字＋緑下線（緑文字のCONTACTと区別する） */
.gnav a.active { opacity: 1; color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }

/* ============================================================
   下層ページ共通
   ============================================================ */
.subpage main { position: relative; z-index: 2; background: var(--paper); }
/* サブページのヒーローは全ページ同一高さ（最長コンテンツ=ai-drivenに合わせる） */
.page-hero { padding: 96px 48px 56px; min-height: 456px; }
.page-hero h1 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: 0.03em; margin-top: 22px; }
.page-hero .lead { margin-top: 26px; max-width: 660px; font-size: 14px; line-height: 2.1; color: var(--gray); text-align: justify; }
.page-hero .chip { margin-top: 20px; }

.sec { padding: 72px 0; }
.sec-gray { background: #f5f6f7; }
.sec h2.sec-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: 0.03em; margin-top: 14px; }

/* サービス一覧の行 */
.svc-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
  padding: 48px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.svc-rows .svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-no { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: var(--muted); }
.svc-no::before { content: "■ "; color: var(--green); font-size: 8px; vertical-align: 2px; }
.svc-en { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin-top: 10px; }
.svc-row h2 { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; }
.svc-row p { font-size: 13.5px; color: var(--gray); margin-top: 14px; max-width: 46em; text-align: justify; }

/* 会社概要のスペック表 */
.spec { border-top: 1px dashed rgba(8, 27, 35, 0.2); }
.spec > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 16px 4px; border-bottom: 1px dashed rgba(8, 27, 35, 0.2);
  min-height: 72px; align-items: center;
}
.spec dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
/* 複数値（取引銀行・所属団体等）はBox表記で1行に並べ、行高を他項目と揃える */
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.spec-tags li { list-style: none; font-size: 12px; font-weight: 600; color: var(--gray); border: 1px solid var(--line); padding: 6px 14px; white-space: nowrap; }
.spec dt::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.spec dd { font-size: 13.5px; color: var(--ink); line-height: 2; }
.spec dd small { display: block; font-size: 11.5px; color: var(--gray); }
.spec .spec-isms { display: flex; align-items: flex-start; gap: 14px; }
.spec .spec-isms img { width: 44px; height: auto; flex: none; margin-top: 4px; }

/* お問い合わせフォーム */
.form-grid { max-width: 640px; }
.form-grid label { display: block; font-size: 12.5px; font-weight: 700; margin-top: 26px; }
.form-grid .req { color: #ca0000; font-size: 10px; margin-left: 8px; letter-spacing: 0.08em; }
.form-grid input[type="text"], .form-grid input[type="email"], .form-grid textarea {
  width: 100%; margin-top: 10px; padding: 13px 14px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.form-grid input:focus, .form-grid textarea:focus { outline: 1.5px solid var(--green-d); outline-offset: -1px; }
.form-grid textarea { min-height: 170px; resize: vertical; }
.form-agree { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 12.5px; color: var(--gray); }
.form-agree a { color: var(--green-d); text-decoration: underline; }
.btn-submit { border: none; cursor: pointer; font-family: inherit; margin-top: 30px; }

/* 電話ブロック（お問い合わせページ） */
.tel-box { border: 1px solid var(--line); padding: 30px 34px; max-width: 400px; }
.tel-box .tb-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.tel-box .tb-label::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.tel-box .tb-tel { font-family: var(--font-en); font-size: 30px; font-weight: 300; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tel-box .tb-hours { font-size: 12px; color: var(--gray); margin-top: 6px; }

/* ページ下部CTA帯 */
.cta-band { padding: 8px 0 104px; }

@media (max-width: 960px) {
  .gnav a .n { display: none; }
  .page-hero { padding: 56px 20px 40px; }
  .svc-row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .spec > div { grid-template-columns: 1fr; gap: 8px; padding: 18px 2px; }
  .sec { padding: 48px 0; }
}

/* 04 RECRUIT — Vanta CLOUDSモーション背景 */
.card-recruit { position: relative; border: none; } /* 雲背景カードは枠なし */
.card-recruit > * { position: relative; z-index: 1; }
/* 絶対配置の要素は明示的に復元（> * の相対化に負けないように） */
.card-recruit > .c-num, .card-recruit > .c-arrow { position: absolute; }
.card-recruit > .r-bg {
  position: absolute; inset: 0; z-index: 0;
}
/* テキスト可読性のための薄い白ベール（左が濃く、右へ抜ける） */
.card-recruit > .r-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* GROW TOGETHER — Vanta BIRDSモーション背景 */
.env-item { position: relative; overflow: hidden; }
.env-item > * { position: relative; z-index: 1; }
.env-item > .env-bg { position: absolute; inset: 0; z-index: 0; }
/* 上部テキストの可読性ベール */
.env-item > .env-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.45) 52%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* CONTACT — テクニカル・ブループリント様式（黒地＋方眼＋細枠＋四隅のモノスペース注記） */
.card-contact {
  background-color: #0e0d0b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
}
.ct-frame {
  position: absolute; inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.ct-frame::before, .ct-frame::after {
  content: ""; position: absolute; left: 0; right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.ct-frame::before { top: 36px; }
.ct-frame::after { bottom: 36px; }
.ct-tag {
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.tag-tl { top: 24px; left: 27px; }
.tag-tr { top: 24px; right: 27px; color: var(--green); }
.tag-bl { bottom: 24px; left: 27px; }
.tag-br { bottom: 24px; right: 27px; color: var(--green); }
/* 中央スタックもモノスペースに寄せて図面のトーンに揃える */
.ct-en, .ct-tel { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 400; }
.ct-hours { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* AI-DRIVENカード：AIチップの切り抜きを下部中央に（背景なし）。
   高さ基準でサイズを決め、上部のテキスト域には届かないようにする */
.ai-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ai-art img { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); height: 48%; width: auto; max-width: none; }
.card-ai .c-arrow { z-index: 1; }

/* GROW WITH US 3カード共通 — 切り抜きイラストを下部中央に配置 */
.env-item > .obj-wrap::after { background: none; } /* ベール不要（テキストの下に配置するため） */
/* 腕の切断線がカードの縁と一致するように、各カードで配置を変える */
/* イラストはグレートーンに統一（彩度を落として馴染ませる） */
.obj-wrap img { position: absolute; max-width: none; filter: grayscale(1) brightness(1.04); }
/* ① コンパスの手：腕の切り口＝下端 */
.obj-will img { bottom: 0; left: 50%; transform: translateX(-50%); height: 56%; width: auto; }
/* ⑥ 鉛筆の手：腕の切り口＝右下コーナー */
.obj-learn img { bottom: -3%; right: -2%; height: 62%; width: auto; }
/* ⑧ パズルの手：下寄せ配置（下端からはみ出す分はカードで切れる） */
.obj-team img { bottom: -9%; left: 0; width: 100%; height: auto; }
/* ⑦は原本をそのまま全面表示（重ね背景・ベールなし） */

/* GROW WITH USの3カードのみ角丸（他は鋭角のまま） */
.env-item { border-radius: 20px; }
/* ホバー演出：他のカード（a.card:hover）と同じ浮き上がり＋影 */
.env-item { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.env-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8, 27, 35, 0.10); }

/* ---------- ポリシー・完了・404ページ ---------- */
.policy { max-width: 760px; }
.policy > p { font-size: 13.5px; color: var(--gray); line-height: 2.2; text-align: justify; }
.policy h2 {
  font-size: 16px; font-weight: 800; letter-spacing: 0.04em;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
}
.policy h2::before { content: "■ "; color: var(--green); font-size: 9px; vertical-align: 3px; }
.policy h2 + p, .policy p + p { margin-top: 14px; }
.policy .contact-box {
  margin-top: 20px; border: 1px solid var(--line); padding: 24px 28px;
  font-size: 13px; color: var(--gray); line-height: 2.1;
}
.policy .isms-row { display: flex; align-items: flex-start; gap: 16px; margin-top: 20px; }
.policy .isms-row img { width: 56px; height: auto; flex: none; }
.policy .isms-row p { font-size: 13px; color: var(--gray); line-height: 2; }

.done-hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.done-hero .en-big {
  font-family: var(--font-en); font-size: clamp(48px, 7vw, 88px); font-weight: 200; letter-spacing: 0.06em;
}
.done-hero h1 { font-size: 20px; font-weight: 800; margin-top: 18px; letter-spacing: 0.06em; }
.done-hero p { font-size: 13.5px; color: var(--gray); margin-top: 18px; max-width: 34em; }
.done-hero .env-cta { margin-top: 36px; }

.file-drop {
  margin-top: 10px; border: 1px dashed rgba(8, 27, 35, 0.3); padding: 22px 16px;
  font-size: 12.5px; color: var(--muted); text-align: center; cursor: pointer;
  transition: border-color 0.2s;
}
.file-drop:hover { border-color: var(--green-d); color: var(--gray); }

/* ---------- /company（WHAT'S emer）カード群 ---------- */
/* 沿革タイムライン（全幅カード・下端固定） */
.tl { display: flex; margin-top: auto; }
.tl > div { flex: 1; border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 18px; }
.tl > div + div { margin-left: 32px; }
.tl-year { font-family: var(--font-en); font-size: 30px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.tl-year::before { content: "■ "; color: var(--green); font-size: 9px; vertical-align: 6px; }
.tl h3 { font-size: 13.5px; font-weight: 700; margin-top: 12px; letter-spacing: 0.02em; }
.tl p { font-size: 12px; color: var(--gray); margin-top: 8px; line-height: 1.9; text-align: justify; }
.tl-note { font-size: 11px; color: var(--muted); margin-top: 20px; }

/* ファクトグリッド（全幅カード・3列2行・注釈付き） */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; margin-top: auto; }
.fact-grid > div { border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 16px; }
.fact-grid dt { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.16em; }
.fact-grid dt::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.fact-grid dd { font-family: var(--font-en); font-size: 42px; font-weight: 800; margin-top: 8px; letter-spacing: -0.01em; line-height: 1; }
.fact-grid dd small { font-size: 16px; font-weight: 500; color: var(--gray); }
.fact-grid p { font-size: 12px; color: var(--gray); margin-top: 10px; line-height: 1.8; }

/* TODAY/TOMORROW 半幅カードの下端リスト */
.duty-list { margin-top: auto; }
.duty-list li { list-style: none; border-top: 1px solid rgba(8, 27, 35, 0.12); padding: 13px 2px; font-size: 12.5px; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.duty-list li span { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }

/* グレー帯セクションのリード文 */
.sec-lead { margin-top: 24px; max-width: 640px; font-size: 13.5px; line-height: 2.1; color: var(--gray); text-align: justify; }

@media (max-width: 960px) {
  .skill-bottom { height: auto; }
  .tl { flex-direction: column; }
  .tl > div + div { margin-left: 0; margin-top: 20px; }
  .fact-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* サービスカード：タイトルを2行分の高さで固定し、説明文の開始位置を全カードで揃える */
.grid-svc .c-title { line-height: 1.45; min-height: 2.9em; }
/* アンカー着地時にヘッダー分の余白を確保 */
.card[id] { scroll-margin-top: 96px; }
/* FIELDS 個別カード：下端に工程＋技術タグを固定。
   罫線の高さが4カードで一致するよう、タグ2行分の固定高さにする */
.skill-bottom { margin-top: auto; border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 16px; height: 134px; flex: none; }
.skill-bottom .skill-phase { margin-top: 0; }
.skill-bottom .skill-tags { margin-top: 12px; }

/* FIELDS & SKILLS カード（業務領域×工程×技術の具体一覧） */
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 36px; margin-top: auto; }
.skill-grid > div { border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 18px; }
.skill-grid h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.skill-grid h3 small { display: block; font-family: var(--font-en); font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 8px; }
.skill-grid h3 small::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.skill-phase { font-size: 12px; color: var(--gray); margin-top: 10px; line-height: 1.9; }
/* 4列グリッド内では見出し=2行分・工程テキスト=2行分で固定し、開始位置を揃える */
.skill-grid h3 { min-height: 80px; }
.skill-grid .skill-phase { min-height: 46px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; }
.skill-tags li { list-style: none; font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--gray); border: 1px solid var(--line); padding: 4px 9px; white-space: nowrap; }
@media (max-width: 960px) {
  .skill-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* CERTIFICATIONS カード（資格名の列挙・人数は出さない） */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: auto; }
.cert-grid > div { border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 18px; }
.cert-grid h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--gray); }
.cert-grid h3::before { content: "■ "; color: var(--green); font-size: 8px; vertical-align: 2px; }
.cert-grid .skill-tags li { font-family: inherit; letter-spacing: 0.02em; }
/* 資格取得支援の資格はFIELDS & SKILLSと同じ緑ピル。カード内では左揃え */
.cert-grid .cert-pills { justify-content: flex-start; }
@media (max-width: 960px) {
  .cert-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* FACTSグレー帯：取引領域・ロゴも数字と同じグリッド様式で統一 */
.fact-grid .span3 { grid-column: 1 / -1; }
.fact-grid .span3 .dom-tags { margin-top: 16px; max-width: 640px; }
.fact-grid .span3 .marquee { margin-top: 18px; }

/* FACTSグレー帯：同サイズの白ボックスを敷き詰める均一グリッド */
.fbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.fbox {
  background: var(--paper); padding: 22px 26px; height: 172px;
  display: flex; flex-direction: column;
}
.fbox .fb-t { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.16em; }
.fbox .fb-t::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.fbox .fb-n { font-family: var(--font-en); font-size: 40px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; margin-top: auto; margin-bottom: auto; text-align: center; }
.fbox .fb-n small { font-size: 15px; font-weight: 500; color: var(--gray); }
.fbox .fb-note { font-size: 11.5px; color: var(--gray); margin-top: 0; line-height: 1.7; text-align: center; }
.fbox-wide { grid-column: 1 / -1; }
.fbox-wide .dom-tags { margin-top: auto; max-width: none; grid-template-columns: repeat(6, 1fr); }
.fbox-wide .marquee { margin-top: auto; }
@media (max-width: 960px) {
  .fbox-grid { grid-template-columns: 1fr; gap: 10px; }
  .fbox { height: auto; min-height: 130px; }
  .fbox-wide .dom-tags { grid-template-columns: repeat(2, 1fr); }
}

/* 取引領域ボックス：CONTACTカードと同じブループリント様式 */
.fbox-bp {
  position: relative; color: #fff; padding: 26px 40px;
  background-color: #0e0d0b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
}
.fbox-bp .bp-frame { position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, 0.28); pointer-events: none; }
.fbox-bp .bp-tag {
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85); pointer-events: none;
}
.fbox-bp .tag-tl { top: 20px; left: 24px; }
.fbox-bp .tag-tr { top: 20px; right: 24px; color: var(--green); }
.fbox-bp .tag-bl { bottom: 20px; left: 24px; }
.fbox-bp .tag-br { bottom: 20px; right: 24px; color: var(--green); }
.fbox-bp .fb-t { margin-top: auto; text-align: center; color: rgba(255, 255, 255, 0.75); }
.fbox-bp .dom-tags { margin-top: 14px; margin-bottom: auto; max-width: none; grid-template-columns: repeat(6, 1fr); padding: 0 40px; }
.fbox-bp .dom-tags li { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }

/* 取引先ロゴ：白ボックスなしでグレー帯に直置き */
.fband-logos { grid-column: 1 / -1; margin-top: 6px; }
.fband-logos .fb-t { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.16em; }
.fband-logos .fb-t::before { content: "■ "; color: var(--green); font-size: 7px; vertical-align: 2px; }
.fband-logos .marquee { margin-top: 8px; }
@media (max-width: 960px) {
  .fbox-bp .dom-tags { grid-template-columns: repeat(2, 1fr); padding: 0 10px; }
  .fbox-bp { height: auto; }
}

/* 取引領域：白ボックス＋CONTACT風の四隅斜め線囲い（小型版） */
.fcell { grid-column: 1 / -1; position: relative; padding: 44px; display: flex; }
.fcell .fbox { flex: 1; }
.fc-corner { position: absolute; width: 36px; height: 36px; pointer-events: none; }
.fc-corner.tl { top: 2px; left: 2px; }
.fc-corner.tr { top: 2px; right: 2px; transform: scaleX(-1); }
.fc-corner.bl { bottom: 2px; left: 2px; transform: scaleY(-1); }
.fc-corner.br { bottom: 2px; right: 2px; transform: scale(-1, -1); }
.fc-corner::before, .fc-corner::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 48px; height: 1.5px; background: var(--ink);
  transform-origin: 0 50%;
}
.fc-corner::before { transform: translate(-4px, 0) rotate(45deg); }
.fc-corner::after { transform: translate(4px, 0) rotate(45deg); }
/* 斜め線と同じ色（--ink）でBox本体・タグBoxとも囲う */
.fbox-domain { border: 1.5px solid var(--ink); }
/* タイトルは他ボックスと別デザイン：中央・インク色・ブレットなし */
.fbox-domain .fb-t { text-align: center; color: var(--ink); font-weight: 700; }
.fbox-domain .fb-t::before { content: none; }
.fbox-domain .dom-tags { margin-top: auto; margin-bottom: auto; padding: 0 20px; }
.fbox-domain .dom-tags li { border: 1.5px solid var(--ink); }

/* GOVERNANCE 白ボックス（テキスト型） */
.fbox-gov h3 { font-size: 16px; font-weight: 800; letter-spacing: 0.02em; margin-top: 14px; }
.fbox-gov p { font-size: 12.5px; color: var(--gray); margin-top: 10px; line-height: 1.9; text-align: justify; }
.fbox-gov { height: auto; min-height: 172px; }

/* AI-DRIVEN：縦長カード2枚横並び＋縦フロー（Box+点線コネクタ） */
.card-tall { height: auto; min-height: 560px; }
/* grid-auto-rows:1frで、どの画面幅でも全Boxが最長Boxと同じ高さに揃う */
.flow { margin-top: 30px; display: grid; grid-auto-rows: 1fr; gap: 30px; flex: 1; }
.flow-step { position: relative; border: 1px solid var(--line); background: var(--paper); padding: 18px 22px 18px 66px; min-height: 144px; }
/* 左右カードの説明文・Boxの高さはJSで完全一致させる（ai-drivenページ内スクリプト） */
.flow-step .fs-num { position: absolute; left: 22px; top: 17px; font-family: var(--font-en); font-size: 21px; font-weight: 800; color: var(--green-d); line-height: 1; }
.flow-step h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.flow-step p { font-size: 12.5px; color: var(--gray); margin-top: 8px; line-height: 1.9; text-align: justify; }
.flow-step + .flow-step::before {
  content: ""; position: absolute; top: -31px; left: 50%; width: 1px; height: 30px;
  background: repeating-linear-gradient(180deg, rgba(8, 27, 35, 0.3) 0 4px, transparent 4px 9px);
}

/* GOVERNANCE：条文型の統制事項グリッド（硬めのトーン） */
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; margin-top: 44px; }
.gov-grid > div { border-top: 1px solid rgba(8, 27, 35, 0.35); padding-top: 16px; }
.gov-num { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--green-d); }
.gov-grid h3 { font-size: 15.5px; font-weight: 800; letter-spacing: 0.03em; margin-top: 10px; }
.gov-grid p { font-size: 12.5px; color: var(--gray); margin-top: 10px; line-height: 2; text-align: justify; }
@media (max-width: 960px) {
  .gov-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* RECRUIT：募集職種リスト */
.pos-list { margin-top: 24px; }
a.pos-row { display: grid; grid-template-columns: 1.7fr 0.9fr 1fr auto; gap: 24px; align-items: center; border-top: 1px solid rgba(8, 27, 35, 0.16); padding: 20px 2px; transition: background 0.2s; }
a.pos-row:last-of-type { border-bottom: 1px solid rgba(8, 27, 35, 0.16); }
a.pos-row:hover { background: #f5f6f7; }
.pos-row h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.pos-row .pos-req { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.pos-row .pos-sal { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pos-row .pos-loc { font-size: 12px; color: var(--gray); }
.pos-row .pos-arrow { font-family: var(--font-en); font-size: 16px; color: var(--green-d); }
/* 選考フロー：小さめのステップBox */
.flow-sm .flow-step { min-height: 0; padding: 14px 18px 14px 58px; }
.flow-sm .flow-step .fs-num { top: 13px; font-size: 18px; }
.flow-sm .flow-step h3 { font-size: 14px; }
.flow-sm .flow-step p { font-size: 12px; margin-top: 6px; }
.flow-sm { gap: 24px; }
.flow-sm .flow-step + .flow-step::before { top: -25px; height: 24px; }
/* さらに圧縮版（recruitの選考フロー：AIカードと同じ540pxに収める） */
.flow-xs { gap: 8px; }
.flow-xs .flow-step { padding: 8px 14px 8px 50px; display: flex; flex-direction: column; justify-content: center; }
.flow-xs .flow-step .fs-num { top: 50%; transform: translateY(-50%); left: 16px; font-size: 16px; }
.flow-xs .flow-step h3 { font-size: 13.5px; }
.flow-xs .flow-step p { font-size: 11px; line-height: 1.6; margin-top: 3px; }
.flow-xs .flow-step + .flow-step::before { top: -9px; height: 8px; }

/* ---------- モバイル調整（2026-09-01 監査対応） ---------- */
@media (max-width: 960px) {
  /* AIカード：カードが可変高になるため、チップ画像は絶対配置をやめ本文の下に流す */
  .ai-art { position: static; margin-top: 20px; overflow: visible; order: 99; }
  .ai-art img { position: static; transform: none; height: auto; width: 82%; max-width: 340px; display: block; margin: 0 auto; }
  a.card-ai { padding-bottom: 60px; }

  /* companyハブ：hub-centerがstaticになるとcanvasの絶対配置基準が.hubに逃げて
     ノード全体にドットが被るため、ステージ自身を基準にする */
  .hub-center.hub-stage { position: relative; top: 0; left: 0; transform: none; width: auto; height: 400px; margin-top: 22px; }

  /* POSITIONSの「その他のポジションも見る」：横並びだと注記が1文字ずつ折れるため縦積み中央揃え */
  .pos-grid a.pos-card-more { flex-direction: column; gap: 10px; min-height: 0; padding: 24px 20px; text-align: center; }

  /* トップPROFILEカードのスペック表：2カラムだと社名・認証が窮屈なため1カラムに */
  .p-grid { grid-template-columns: 1fr; }

  /* カード01：可変高カードではmargin-top:autoが0になり業界タグと黒Boxが密着するため余白を明示 */
  .card-company .c-stats { margin-top: 28px; }

  /* KPI Box：旧モバイルルールのalign-items:baselineが残留して数字が左に寄るため、
     全幅ストレッチに戻してtext-align:centerを効かせる */
  .c-stats div, .r-stats div { align-items: stretch; justify-content: flex-start; }

  /* フッターナビ：2カラムグリッドで縦横を揃える */
  .footer-nav {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto);
    grid-auto-flow: column; gap: 28px 24px; align-items: start;
  }

  /* servicesカードのタグ領域：固定高134pxが後方定義で復活しタグが見切れるため可変高に */
  .skill-bottom { height: auto; }

  /* タグBox：モバイルは3列グリッド。固定幅をやめてセルにフィットさせ、
     長いタグ（中・大）は2〜3セル分にスパン */
  .skill-tags, .tech-tags, .cert-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .skill-tags li, .tech-tags li, .cert-pills li {
    width: auto; padding-left: 4px; padding-right: 4px; text-align: center; font-size: 9.5px;
  }
  .skill-tags .sz-m, .tech-tags .sz-m, .cert-pills .sz-m { grid-column: span 2; }
  .skill-tags .sz-l, .tech-tags .sz-l, .cert-pills .sz-l, .lic-tags li { grid-column: span 3; }
  .cert-pills-lg li { font-size: 10px; }

  /* ヘッダーのMENU：テキストからハンバーガーアイコン（2本線）に */
  .menu-btn {
    font-size: 0; width: 44px; height: 44px; position: relative; padding: 0;
  }
  .menu-btn::before, .menu-btn::after {
    content: ""; position: absolute; left: 8px; right: 8px; height: 2px;
    background: var(--ink); border-radius: 1px;
  }
  .menu-btn::before { top: 16px; }
  .menu-btn::after { bottom: 16px; }

  /* モバイルCTAバー：ヘッダーのボタンをやめ、画面最下部に固定（2オーディエンス対応） */
  .site-header .btn-cta { display: none; }
  div.mobile-cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
  }
  .mobile-cta-bar a {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    min-height: 54px; padding: 0 18px;
    font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  }
  .mobile-cta-bar .mcb-talk { background: linear-gradient(90deg, var(--green), var(--green-d)); }
  .mobile-cta-bar .mcb-contact { background: var(--ink); }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(70px + env(safe-area-inset-bottom)); right: 20px; }
  /* ヒーロー下端のテキストがCTAバーに隠れないよう退避 */
  .hero { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  /* フォーム入力は16px以上に（iOSのフォーカス時自動ズームを防止） */
  .form-grid input[type="text"], .form-grid input[type="email"], .form-grid textarea { font-size: 16px; }

  /* CTAボタン：フルワイド＋タップ領域48px（ヘッダー内ボタンは対象外） */
  .env-cta .btn, .cta-band .btn, .form-grid .btn { width: 100%; max-width: 400px; min-height: 48px; }

  /* モバイルメニュー：番号付きナビ・現在地・ロゴ・メニュー内CTA */
  .mobile-menu .mm-logo { position: absolute; top: 22px; left: 20px; border-bottom: none; padding: 0; }
  .mobile-menu .mm-logo img { height: 26px; width: auto; }
  .mobile-menu nav a { display: flex; align-items: baseline; gap: 12px; }
  .mobile-menu nav a .n {
    font-family: var(--font-en); font-size: 10px; font-weight: 700;
    letter-spacing: 0.15em; color: var(--muted); min-width: 34px; flex: none;
  }
  .mobile-menu nav a.active { color: var(--green-d); }
  .mobile-menu nav a.active .n { color: var(--green-d); }
  .mobile-menu .mm-cta { display: inline-flex; margin-top: 32px; width: 100%; min-height: 48px; border-bottom: none; padding: 0 20px; font-size: 13px; }
}
@media (max-width: 960px) {
  a.pos-row { grid-template-columns: 1fr; gap: 8px; }
}

/* RECRUIT FACTS：正方形・白黒反転の3×2バリエーション */
.fgrid-sq { grid-template-columns: repeat(3, 1fr); }
.fgrid-sq .fbox { aspect-ratio: 1 / 1; height: auto; background: #0e0d0b; }
.fgrid-sq .fbox .fb-t { color: rgba(255, 255, 255, 0.72); }
.fgrid-sq .fbox .fb-n { color: #fff; }
.fgrid-sq .fbox .fb-n small { color: rgba(255, 255, 255, 0.55); }
.fgrid-sq .fbox .fb-note { color: rgba(255, 255, 255, 0.55); }
@media (max-width: 960px) {
  .fgrid-sq { grid-template-columns: 1fr; }
  .fgrid-sq .fbox { aspect-ratio: auto; min-height: 140px; }
}

/* POSITIONS：黒の全幅帯（重要要素として他と差別化） */
/* recruitのGROW WITH USは白背景（トップのみグレー帯）。白地では枠線でカードの縁を立てる */
.env.env-plain { background: var(--paper); }
.env-plain .env-item { border: 1px solid var(--card-line); }
.pos-band { position: relative; z-index: 2; padding: 88px 0 96px; background: #0e0d0b; color: #fff; }
.pos-band .sec-label { color: rgba(255, 255, 255, 0.6); }
.pos-band h2.sec-title { color: #fff; }
.pos-band .sec-lead { color: rgba(255, 255, 255, 0.65); }
.pos-band a.pos-row { border-top-color: rgba(255, 255, 255, 0.22); }
.pos-band a.pos-row:last-of-type { border-bottom-color: rgba(255, 255, 255, 0.22); }
.pos-band a.pos-row:hover { background: rgba(255, 255, 255, 0.06); }
.pos-band .pos-row h3 { color: #fff; }
.pos-band .pos-row .pos-req { color: rgba(255, 255, 255, 0.5); }
.pos-band .pos-row .pos-sal { color: #fff; }
.pos-band .pos-row .pos-loc { color: rgba(255, 255, 255, 0.6); }
.pos-band .pos-row .pos-arrow { color: var(--green); }
.pos-band .tl-note { color: rgba(255, 255, 255, 0.45); }

/* ---------- 帯ルール：帯（グレー帯・黒帯）はフル画面ぴったりの高さで、コンテンツを縦中央に。
   白背景のセクション（env-plain等）は帯ではないので対象外 ---------- */
.sec-gray, .pos-band, .clients-sec, .env:not(.env-plain) {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.env.env-plain { padding: 96px 0; }

/* 帯ぴったり化のための密度調整（1440×900基準で1画面に収める） */
.sec-gray { padding: 40px 0; }
.clients-sec { padding: 40px 0; }
.env { padding: 40px 0; }
.env-item { height: 530px; }
.fbox { height: 124px; }
.fbox .fb-n { font-size: 34px; }
.fbox-grid { margin-top: 16px; gap: 12px; }
.fbox-gov { min-height: 132px; }
.fcell { padding: 32px; margin-top: 26px; }
.fc-corner::before, .fc-corner::after { width: 40px; }
.fband-logos .marquee-track { font-size: 88px; }
.fgrid-sq { max-width: 920px; margin-left: auto; margin-right: auto; }

/* RECRUIT FACTS：数字はSpace Groteskで大きく・カウントアップ表示 */
.fgrid-sq .fbox .fb-n { font-family: "DSEG7", var(--font-en); font-size: 44px; font-weight: 300; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.fgrid-sq .fbox .fb-n small { font-family: var(--font-en); font-size: 20px; font-weight: 300; }
/* 注釈は2行分の固定高さにして、数字の縦位置を全カードで一直線に揃える */
.fgrid-sq .fbox .fb-note { min-height: 40px; margin-top: 16px; }
/* 数字の前置きラベル（ISO等）はフロー外で数字の真上に置き、数字本体の縦位置を他カードと揃える */
.fgrid-sq .fbox .fb-n { position: relative; width: fit-content; margin-left: auto; margin-right: auto; }
.fgrid-sq .fbox .fb-n > small.fb-pre { position: absolute; left: 0; top: -8px; transform: translateY(-100%); }

/* 黒帯上部の採用ステータスバー（白地に反転・緑ドットが点滅するライブインジケーター） */
.hiring-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  padding: 14px 22px; margin-bottom: 48px;
}
.hiring-bar p { font-size: 13px; color: var(--ink); letter-spacing: 0.04em; }
.hiring-bar strong { color: var(--ink); font-weight: 800; margin-right: 14px; letter-spacing: 0.08em; }
.hb-cta { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--green-d); white-space: nowrap; }
.hb-cta span { display: inline-block; margin-left: 6px; transition: transform 0.2s; }
.hb-cta:hover span { transform: translateX(4px); }
@media (max-width: 960px) {
  .hiring-bar { flex-wrap: wrap; }
  .hb-cta { margin-left: 24px; }
}
.hb-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none;
  animation: hbPulse 1.6s ease-in-out infinite;
}
@keyframes hbPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(50, 179, 149, 0.55); }
  50% { opacity: 0.35; box-shadow: 0 0 0 7px rgba(50, 179, 149, 0); }
}
@media (prefers-reduced-motion: reduce) { .hb-dot { animation: none; } }

/* POSITIONS帯：職種はカードで表示（黒地に白枠・2×2） */
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
a.pos-card {
  border: 1px solid rgba(255, 255, 255, 0.28); padding: 26px 30px; min-height: 210px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}
a.pos-card:hover { border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.pos-card h3 { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
/* 職種タイトル：GROW WITH USと同じ透過マーカー。文字数によらず4つとも同じ長さ */
.pos-card h3 { align-self: flex-start; width: 268px; background: rgba(50, 179, 149, 0.38); padding: 0.12em 0.4em; margin-left: -0.4em; white-space: nowrap; }
a.pos-card-more h3 { align-self: auto; width: auto; background: none; padding: 0; margin-left: 0; }
.pos-card .pc-req { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; line-height: 1.9; }
.pos-card .pc-meta { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.pos-card .pc-meta span { font-size: 11px; color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.3); padding: 5px 10px; white-space: nowrap; }
.pos-card .pc-meta .pos-arrow { margin-left: auto; border: none; font-size: 16px; color: var(--green); padding: 0; }
@media (max-width: 960px) {
  .pos-grid { grid-template-columns: 1fr; }
}

/* POSITIONS帯：全幅の誘導カード */
a.pos-card-more { grid-column: 1 / -1; min-height: 96px; flex-direction: row; align-items: center; justify-content: center; gap: 18px; }
.pos-card-more h3 { font-size: 16px; }
.pos-card-more .pc-count { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.pos-card-more .pos-arrow { font-size: 18px; color: var(--green); transition: transform 0.2s; }
a.pos-card-more:hover .pos-arrow { transform: translateX(4px); }

/* FACTSデザインの共通化：デジタル数字（DSEG7）＋黒ボックス（形は各所のまま） */
.fbox .fb-n { font-family: "DSEG7", var(--font-en); font-weight: 300; }
.fbox .fb-n small { font-family: var(--font-en); }
/* 黒地化は数字ボックスのみ（取引業界ボックスは白のまま） */
.fgrid-dark .fbox:not(.fbox-domain) { background: #0e0d0b; }
.fgrid-dark .fbox:not(.fbox-domain) .fb-t { color: rgba(255, 255, 255, 0.72); }
.fgrid-dark .fbox:not(.fbox-domain) .fb-n { color: #fff; font-size: 42px; font-weight: 400; letter-spacing: 0.02em; }
.fgrid-dark .fbox:not(.fbox-domain) .fb-n small { color: rgba(255, 255, 255, 0.55); }
.fgrid-dark .fbox:not(.fbox-domain) .fb-note { color: rgba(255, 255, 255, 0.55); }
/* トップのカード内KPI・RECRUIT数字もドット数字に（背景は透過のまま） */
.c-stats dd, .r-stats dd { font-family: "DSEG7", var(--font-en); font-weight: 300; text-align: center; }
.c-stats dd small, .r-stats dd small { font-family: var(--font-en); }

/* トップページ：カード内FACTSも常にBox表示 */
.c-stats, .r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.c-stats div, .r-stats div {
  border: 1px solid var(--line); background: var(--paper); padding: 12px 16px; margin: 0;
  height: 108px; display: flex; flex-direction: column;
}
.c-stats div + div, .r-stats div + div { margin-left: 0; }
/* 数字はBoxの上下左右中央・大きめに */
.c-stats dd, .r-stats dd { font-size: 46px; line-height: 1; margin: auto 0; }
/* カード01のFACTS Boxは黒背景 */
.card-company .c-stats div { background: #0e0d0b; border-color: #0e0d0b; }
.card-company .c-stats dt { color: rgba(255, 255, 255, 0.72); }
.card-company .c-stats dd { color: #fff; }
.card-company .c-stats dd small { color: rgba(255, 255, 255, 0.6); }
/* RECRUITカードは雲背景が見える半透明Box */
.card-recruit .r-stats div { background: rgba(255, 255, 255, 0.5); border-color: rgba(8, 27, 35, 0.22); }
@media (max-width: 960px) {
  .c-stats, .r-stats { grid-template-columns: 1fr; }
}

.mobile-cta-bar { display: none; }

/* トップへ戻るボタン（フッター到達時に出現） */
.to-top {
  position: fixed; right: 48px; bottom: 28px; z-index: 300;
  width: 52px; height: 52px; background: #0e0d0b; color: #fff;
  border: none; cursor: pointer; font-family: var(--font-en); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-d); }

/* PROFILE：許認可・認証カード */
.lic-block { border-top: 1px solid rgba(8, 27, 35, 0.16); padding-top: 18px; margin-top: 26px; }
.lic-block h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.lic-block .skill-tags { margin-top: 12px; }
.lic-block .lic-note { font-size: 11.5px; color: var(--gray); margin-top: 10px; line-height: 1.9; text-align: justify; }
/* 許認可・認証カード：3ブロック横並び（許認可2つ＋ISMS） */
.lic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 36px; }
.isms-line { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.isms-line img { width: 64px; height: auto; flex: none; }
.isms-line p { font-size: 11.5px; color: var(--gray); line-height: 1.9; }
@media (max-width: 960px) {
  .lic-grid { grid-template-columns: 1fr; gap: 28px; }
}
/* フッター常設のISMS認証（JQA規程：マークは登録番号併記・変形禁止） */
.footer-isms { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.footer-isms img { height: 56px; width: auto; flex: none; }
.footer-isms p { font-size: 11px; color: var(--gray); line-height: 1.9; }
.isms-big { display: flex; align-items: center; gap: 28px; margin-top: auto; margin-bottom: auto; }
.isms-big img { width: 96px; height: auto; flex: none; }
.isms-big p { font-size: 13.5px; color: var(--ink); line-height: 2.1; font-weight: 700; }
.isms-big small { display: block; font-size: 11.5px; color: var(--gray); font-weight: 400; margin-top: 8px; line-height: 1.9; }
.card .spec { border-top: none; margin-top: 20px; }

/* CONTACTページ：ブループリント様式の電話カード（トップのCONTACTカードと同一言語） */
.card-bpdark {
  position: relative; border: none; color: #fff;
  background-color: #0e0d0b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  align-items: center; justify-content: center; text-align: center;
}
.card-bpdark .bp-frame { position: absolute; inset: 13px; border: 1px solid rgba(255, 255, 255, 0.28); pointer-events: none; }
.card-bpdark .bp-tag {
  position: absolute; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85); pointer-events: none;
}
.card-bpdark .tag-tl { top: 24px; left: 27px; }
.card-bpdark .tag-tr { top: 24px; right: 27px; color: var(--green); }
.card-bpdark .tag-bl { bottom: 24px; left: 27px; }
.card-bpdark .tag-br { bottom: 24px; right: 27px; color: var(--green); }

/* フッターも現在地は黒文字＋緑下線（ヘッダーと同ルール） */
.footer-nav a.active { color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }

/* カード内の読み物・フォームはカード中央に配置（左寄りの解消） */
.card .policy { margin-left: auto; margin-right: auto; }
.card .form-grid { margin-left: auto; margin-right: auto; }

/* ---------- モバイル調整（2026-09-01 検証分） ---------- */
@media (max-width: 960px) {
  /* フッター地図：固定min-widthを解除して全幅に */
  .footer-mark-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-map { width: 100%; min-width: 0; }
  .footer-map iframe { height: 220px; }
  .hero-lead { font-size: 13px; line-height: 1.95; }
  /* サービスミニリンク：1列＋折り返し許可 */
  /* デスクトップ同様2列を維持（文字は折り返し許可・少しコンパクトに） */
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc-mini { white-space: normal; font-size: 12px; padding: 12px 12px; }
  /* 業界タグ：3列＋折り返し許可（6列nowrapのはみ出し防止） */
  .dom-tags, .card-company .dom-tags, .fbox-wide .dom-tags, .fbox-bp .dom-tags { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .dom-tags li { white-space: normal; }
  /* サブページヒーローの固定min-heightは解除（内容なりの高さに） */
  .page-hero { min-height: 0; }
  /* 帯のフル画面ルールはモバイルでは自然高さに */
  .sec-gray, .pos-band, .clients-sec, .env:not(.env-plain) { min-height: 0; }
  /* 取引業界ボックスの四隅線まわりの余白を縮小 */
  .fcell { padding: 20px 8px; }
  .fc-corner { display: none; }
  .fbox-domain { border-width: 1px; }
}

/* 帯（flexコンテナ）内のwrapがマーキーのmax-contentに引きずられないように */
.sec-gray > .wrap, .clients-sec > .wrap, .env > .wrap, .pos-band > .wrap { min-width: 0; width: 100%; }
.marquee { max-width: 100%; }
@media (max-width: 960px) {
  .hero-title { white-space: normal; }
}

/* グリッド内マーキーが列幅を押し広げないように */
.fband-logos { min-width: 0; }
.fband-logos .marquee { min-width: 0; overflow: hidden; }

/* WHAT'S emer：4領域ハブ図（中央=emerロゴ、四方=領域ノード） */
/* ハブ図カードは正方形（フル画面に収まるサイズ・中央寄せ） */
.card-hub { aspect-ratio: 1 / 1; height: auto; max-width: min(100%, calc(100svh - 150px)); justify-self: center; width: 100%; }
.hub { position: relative; flex: 1; min-height: 540px; margin-top: 8px; }
/* 対角の破線（四隅⇔中央。中央・ノードの白背景でマスクされる） */
.hub-diag { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
/* 実線・中心側フェード（色はSVG内のグラデーション属性で指定） */
.hub-diag line { vector-effect: non-scaling-stroke; }
.hub-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--paper); padding: 18px 26px; text-align: center; z-index: 1; width: 72%;
}
/* ハブ中央のパーティクルステージ：canvasを全面に敷き、ロゴブロックを中央に重ねる */
.hub-stage { height: 520px; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.hub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hub-core { position: relative; z-index: 1; transform: translateY(32px); }
@media (max-width: 600px) { .hub-stage { height: 440px; } }
.hub-center img { display: block; margin: 0 auto; height: 34px; width: auto; }
.hub-center p { font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); margin-top: 12px; }
.hub-node { position: absolute; width: clamp(230px, 38%, 344px); text-align: center; background: var(--paper); padding: 10px 12px; z-index: 1; }
.hub-node h3 { font-size: 16px; font-weight: 800; letter-spacing: 0.03em; }
/* 領域タイトル：GROW WITH USと同じ透過マーカー。4つとも同じ長さ（短いタイトルは空白ごとハイライト） */
.hub-node h3 { display: inline-block; width: 240px; background: rgba(50, 179, 149, 0.38); padding: 0.15em 0; }
.hub-node h3::before { content: none; }
.hub-node p { font-size: 11.5px; color: var(--gray); margin-top: 8px; line-height: 1.8; }
.hub-certs { font-size: 10.5px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.hub-certs::before { content: "資格｜"; letter-spacing: 0.08em; }
.hub-center .hub-certs { margin-top: 10px; }
.hub-nw { top: 26px; left: 20px; }
.hub-ne { top: 26px; right: 20px; }
/* 下段は上端アンカーでタイトルの縦位置を完全一致させる */
.hub-sw { top: calc(100% - 160px); left: 20px; }
.hub-se { top: calc(100% - 160px); right: 20px; }
@media (max-width: 960px) {
  .card-hub { aspect-ratio: auto; }
  .hub { min-height: 0; }
  .hub-diag { display: none; }
  .hub-node, .hub-center { position: static; transform: none; width: auto; margin-top: 22px; }
  .hub-center { order: -1; }
}

/* ハブ図の資格：蛍光グリーンの楕円ピル（大＝中央の国家資格／小＝ノードの資格） */
.cert-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; padding: 0; }
.cert-pills li {
  list-style: none; font-size: 9.5px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: linear-gradient(90deg, var(--green), var(--green-d));
  border-radius: 999px; padding: 3px 0; white-space: nowrap; text-align: center;
}
.cert-pills-lg li { font-size: 10.5px; padding: 4px 0; }
/* 中央の国家資格：応用・基本を1段目、支援士を2段目に折り返す幅 */
.cert-pills-lg { max-width: 240px; margin-left: auto; margin-right: auto; }
/* 技術名は他ページと同じ四角Box */
.tech-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; padding: 0; }
.tech-tags li {
  list-style: none; font-family: var(--font-en); font-size: 10px; font-weight: 600;
  color: var(--gray); border: 1px solid var(--line); background: var(--paper);
  padding: 5px 0; text-align: center; white-space: nowrap;
}
/* チップの固定幅3クラス（大・中・小）：全ページのタグ共通。小=サービスカード内で横4つ */
.sz-s { width: 108px; }
.sz-m { width: 172px; }
.sz-l { width: 216px; }
.skill-tags .sz-s, .skill-tags .sz-m, .skill-tags .sz-l { padding-left: 0; padding-right: 0; text-align: center; }
/* 福利厚生タグ：技術・資格とは性格が異なるため別デザイン（ライトグレー塗り・罫線なし） */
.benefit-tags li { background: #eef0f2; border-color: transparent; color: var(--ink); font-weight: 600; }
/* 許可番号タグ：技術・資格とは区分が異なるため別デザイン（インク地・白文字。固定幅ルールの対象外） */
.lic-tags li { background: var(--ink); color: #fff; border-color: var(--ink); padding: 5px 14px; letter-spacing: 0.06em; }

/* ---------- モバイル：ハブ内タグの3列グリッド（ハブ定義より後に置いて優先させる） ---------- */
@media (max-width: 960px) {
  .hub .tech-tags, .hub .cert-pills {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; justify-items: stretch;
  }
  .hub .tech-tags li, .hub .cert-pills li {
    width: auto; padding: 5px 4px; text-align: center; font-size: 9.5px;
  }
  .hub .tech-tags .sz-m, .hub .cert-pills .sz-m { grid-column: span 2; }
  .hub .tech-tags .sz-l, .hub .cert-pills .sz-l { grid-column: span 3; }
  .hub .cert-pills-lg li { font-size: 10px; }

  /* モバイルではハブ中央（ロゴ＋パーティクル＋国家資格ピル）はバランスが悪いため非表示 */
  .hub-center.hub-stage { display: none; }
}
