/* =====================================================================
   合同会社バース（wbrs.jp）共通スタイル
   見た目の基準は aisys.earth のデザインシステム（紙の白＋細線＋シアン1色）
   値を変えるときは .docs/デザインシステム.md も直す
   ===================================================================== */

:root {
  --canvas: #fafaf9;        /* ページ背景（紙の白） */
  --paper: #ffffff;         /* カード面 */
  --line: #e8e6e5;          /* 細線 */
  --line-strong: #d6d3d1;   /* ホバー時の線 */
  --gray: #78716c;          /* 補助テキスト */
  --ink: #0c0a09;           /* 見出し・本文 */
  --soot: #1c1917;          /* 反転セクション */
  --signal: #3ba6f1;        /* 唯一の有彩色（文字を載せない場所） */
  --signal-strong: #1a73b8; /* 白文字を載せるシアン */
  --edge: #1f6fa8;          /* リンク・ハイライト文字 */
  --wash: #d9ecfb;          /* ハイライトの下地 */

  --r-card: 24px;
  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 40px);
  --sec: clamp(80px, 11vw, 136px);
  --shadow-card: 0 1px 1px rgba(12,10,9,.03), 0 2px 4px rgba(12,10,9,.03), 0 8px 24px rgba(12,10,9,.03);
  --shadow-float: 0 2px 4px rgba(12,10,9,.04), 0 12px 32px rgba(12,10,9,.08);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter Tight", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--edge); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.03em; line-height: 1.25; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }
.num { font-family: "Inter Tight", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hl { color: var(--edge); background: linear-gradient(transparent 62%, var(--wash) 62%); padding: 0 .08em; }
.muted { color: var(--gray); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--gray); line-height: 1; margin-top: 3px; }
.logo span { line-height: 1.1; }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav a { color: var(--ink); font-size: 14px; }
.gnav a[aria-current="page"] { color: var(--edge); }
.gnav a.btn-dark { color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 14px; letter-spacing: .02em; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-primary { background: var(--signal-strong); color: #fff; box-shadow: 0 6px 18px rgba(26,115,184,.22); }
.btn-primary:hover { background: #155f99; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #292524; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-light { background: #fff; color: var(--ink); }
.btn .arrow { width: 14px; height: 14px; }

/* ---------- 共通の部品 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.sec { padding: var(--sec) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 46px); }
.sec-head p { color: var(--gray); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--gray); background: var(--paper); white-space: nowrap; }
.tag-blue { color: var(--edge); border-color: #bfdcf3; background: #f1f8fe; }
.tag-dark { color: #fff; border-color: var(--ink); background: var(--ink); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ページの見出し（下層ページ） ---------- */
.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 60px); margin-top: 18px; }
.page-hero p { color: var(--gray); margin-top: 18px; max-width: 640px; }
.crumb { font-size: 12px; color: var(--gray); }
.crumb a { color: var(--gray); }

/* ---------- トップ：ヒーロー ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); overflow: hidden; }
.hero::before {
  /* 方眼（紙の上の設計図） */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(30px, 4.1vw, 50px); line-height: 1.18; letter-spacing: -0.035em; margin-top: 22px; }
.hero .lead { margin-top: 26px; color: var(--gray); font-size: 16px; max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; font-size: 13px; color: var(--gray); }
.hero .meta li { display: flex; align-items: center; gap: 8px; }
.hero .meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ヒーロー右：時間の図 */
.timecard { padding: 28px; position: relative; }
.timecard h3 { font-size: 13px; letter-spacing: .08em; color: var(--gray); }
.tc-row { margin-top: 18px; }
.tc-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.tc-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--canvas); }
.tc-bar i { display: block; height: 100%; }
.tc-manual { background: repeating-linear-gradient(135deg, #e7e5e4 0 6px, #f5f5f4 6px 12px); }
.tc-it { background: var(--ink); }
.tc-free { background: var(--wash); position: relative; }
.tc-free::after { content: ""; position: absolute; inset: 0; border-left: 2px solid var(--signal); }
.tc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 12px; color: var(--gray); }
.tc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tc-legend b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tc-note { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-size: 13px; }
.tc-note .num { font-size: 30px; color: var(--ink); margin-right: 4px; }
.float-chip {
  position: absolute; right: -14px; top: -18px; padding: 10px 14px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-float);
  font-size: 12px; display: flex; align-items: center; gap: 8px; animation: float 6s ease-in-out infinite;
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); position: relative; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--signal); animation: ripple 2s ease-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- 3本柱 ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 32px 28px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.pillar .no { font-size: 12px; color: var(--gray); letter-spacing: .1em; }
.pillar .ic { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; margin: 22px 0 22px; background: var(--canvas); }
.pillar .ic .icon { width: 26px; height: 26px; }
.pillar h3 { font-size: 24px; }
.pillar .en { font-size: 12px; color: var(--gray); letter-spacing: .08em; margin-top: 6px; }
.pillar p { margin-top: 16px; color: #44403c; }
.pillar ul { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.pillar li { display: flex; gap: 10px; }
.pillar li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); margin-top: 11px; }
.pillar .price { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 26px; font-size: 13px; color: var(--gray); }
.pillar.is-main { background: var(--soot); color: #e7e5e4; border-color: var(--soot); }
.pillar.is-main h3 { color: #fff; }
.pillar.is-main p { color: #d6d3d1; }
.pillar.is-main .ic { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.pillar.is-main .price { border-color: rgba(255,255,255,.14); color: #a8a29e; }
.pillar.is-main .no, .pillar.is-main .en { color: #a8a29e; }

/* ---------- プログラム（aisys の商品） ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program { padding: 26px 24px; display: grid; gap: 12px; align-content: start; transition: border-color .3s, transform .35s var(--ease); }
.program:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.program .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.program .ic { color: var(--ink); }
.program h3 { font-size: 19px; }
.program p { font-size: 14px; color: #57534e; }
.program .foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- 進め方 ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; position: relative; }
.flow li { position: relative; padding: 0 18px 0 0; }
.flow .dot { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); display: grid; place-items: center; font-size: 14px; position: relative; z-index: 1; }
.flow li:first-child .dot { background: var(--signal-strong); border-color: var(--signal-strong); color: #fff; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; border-top: 1px dashed var(--line-strong); }
.flow h3 { font-size: 17px; margin-top: 18px; }
.flow p { font-size: 13px; color: var(--gray); margin-top: 8px; }

/* ---------- 実績 ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work { padding: 28px; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; transition: transform .35s var(--ease), box-shadow .35s; }
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.work .thumb { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--canvas); display: grid; place-items: center; }
.work .thumb .icon { width: 28px; height: 28px; }
.work h3 { font-size: 20px; }
.work .url { font-size: 12px; color: var(--gray); margin-top: 2px; word-break: break-all; }
.work p { font-size: 14px; color: #57534e; margin-top: 12px; }
.work .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.work a.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 14px; }

/* ---------- 理念 ---------- */
.dark { background: var(--soot); color: #e7e5e4; }
.dark .eyebrow { color: #a8a29e; }
.dark h2 { color: #fff; }
.dark .hl { color: #9fd3fa; background: linear-gradient(transparent 62%, rgba(59,166,241,.25) 62%); }
.belief { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.belief h2 { font-size: clamp(28px, 4vw, 46px); margin-top: 18px; }
.belief p { color: #d6d3d1; margin-top: 18px; }
.calc { border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-card); padding: 30px; background: rgba(255,255,255,.03); }
.calc-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); gap: 16px; }
.calc-row:last-child { border-bottom: 0; }
.calc-row span { color: #a8a29e; font-size: 13px; }
.calc-row b { font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); color: #fff; }
.calc-row b small { font-size: 14px; color: #a8a29e; margin-left: 4px; }
.calc .note { font-size: 12px; color: #a8a29e; margin-top: 14px; }

/* ---------- お知らせ ---------- */
.news { border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 120px 110px 1fr 20px; gap: 16px; align-items: center; padding: 22px 4px; color: var(--ink); }
.news a:hover { text-decoration: none; background: var(--paper); }
.news time { font-size: 13px; color: var(--gray); }

/* ---------- CTA ---------- */
.cta { padding: clamp(40px, 6vw, 72px); border-radius: 32px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 40px rgba(217,236,251,.35), 0 0 0 80px rgba(217,236,251,.18); pointer-events: none; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); }
.cta p { color: var(--gray); margin-top: 14px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- 表（会社概要・特商法） ---------- */
.dl { border-top: 1px solid var(--line); }
.dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--gray); font-size: 14px; }
.dl dd { margin: 0; }
.dl dd ul { display: grid; gap: 6px; }
.dl dd li { display: flex; gap: 10px; }
.dl dd li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); margin-top: 11px; }
.dl .sub { font-size: 13px; color: var(--gray); margin-top: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 48px 0 14px; }
.prose p, .prose ul { margin-top: 12px; color: #292524; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li { margin-top: 4px; }

/* ---------- フォーム ---------- */
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.side-note { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-note .panel { padding: 24px; }
.side-note h3 { font-size: 16px; }
.side-note p, .side-note li { font-size: 14px; color: #57534e; }
.side-note ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
form.panel { padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label, .field .label { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.req { font-size: 11px; color: #fff; background: var(--ink); border-radius: 999px; padding: 1px 8px; }
.opt { font-size: 11px; color: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); background: #fff; box-shadow: 0 0 0 4px rgba(59,166,241,.16); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--signal-strong); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 14px; display: none; }
.form-msg.ok { display: block; background: #f1f8fe; border: 1px solid #bfdcf3; color: #0f4f80; }
.form-msg.ng { display: block; background: #fafaf9; border: 1px solid var(--ink); color: var(--ink); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-actions small { color: var(--gray); font-size: 12px; }
button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- ブログ記事 ---------- */
.post-list { display: grid; gap: 16px; }
.post-card { padding: 28px; display: grid; gap: 10px; }
.post-card h2 { font-size: 22px; }
.post-card .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--gray); }
.post-body { max-width: 760px; }
.post-body p { margin-top: 16px; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 120px; margin-top: var(--sec); font-size: 13px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 12px; letter-spacing: .14em; color: var(--gray); margin-bottom: 14px; text-transform: uppercase; }
.site-footer li { margin-top: 8px; }
.site-footer a { color: var(--ink); }
.site-footer .addr { color: var(--gray); margin-top: 14px; }
.copy { grid-column: 1 / -1; color: var(--gray); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; font-size: 12px; }
.no-sec-top { margin-top: 0; }

/* ---------- 出現アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .belief, .form-wrap { grid-template-columns: 1fr; }
  .pillars, .programs { grid-template-columns: 1fr 1fr; }
  .pillars .pillar:last-child { grid-column: 1 / -1; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .flow li h3 { margin-top: 8px; }
  .flow li p { grid-column: 2; margin-top: 4px; }
  .flow .dot { grid-row: span 2; }
  .flow li:not(:last-child)::after { top: 44px; bottom: 0; left: 22px; right: auto; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .side-note { position: static; }
  .timecard { max-width: 560px; }
}
@media (max-width: 820px) {
  .gnav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .gnav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .gnav .btn { margin-top: 16px; border-bottom: 0; }
  .menu-open .gnav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-btn { display: block; }
  .works { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .news a { grid-template-columns: 1fr 20px; gap: 6px 12px; }
  .news a time, .news a .tag { grid-column: 1; justify-self: start; }
  .news a .ttl { grid-column: 1; }
  .news a > svg { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 640px) {
  .pillars, .programs { grid-template-columns: 1fr; }
  .dl > div { grid-template-columns: 1fr; gap: 6px; }
  .work { grid-template-columns: 1fr; }
  .float-chip { right: 8px; top: -16px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .cta .actions .btn { flex: 1 1 100%; }
}

/* =====================================================================
   トップのヒーロー：3Dの舞台（assets/hero3d.js）と背景の流れ
   ===================================================================== */
.hero { isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage {
  position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 640px; justify-self: end;
  margin: -40px 0 -56px;
}
.stage-ring {
  /* 舞台の後ろの大きな円（光の溜まり） */
  position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 50% 55%, rgba(217,236,251,.9) 0%, rgba(217,236,251,.35) 38%, rgba(250,250,249,0) 68%);
}
.stage-ring::before, .stage-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line);
  animation: stage-spin 60s linear infinite;
  -webkit-mask: conic-gradient(#000 0 70%, transparent 70% 76%, #000 76%); mask: conic-gradient(#000 0 70%, transparent 70% 76%, #000 76%);
}
.stage-ring::after { inset: 9%; border-style: dashed; animation-duration: 90s; animation-direction: reverse; }
@keyframes stage-spin { to { transform: rotate(360deg); } }
.stage-canvas {
  /* 舞台より一回り大きく描いて、縁をぼかす（端で切れた直線を見せない） */
  position: absolute; inset: -10% -18%; cursor: grab; touch-action: pan-y;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 92%);
          mask-image: radial-gradient(closest-side, #000 58%, transparent 92%);
}
.stage.is-grabbing .stage-canvas { cursor: grabbing; }
.stage-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

.stage-label {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center;
  padding: 8px 12px 8px 10px; border-radius: 14px;
  background: rgba(255,255,255,.78); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float); font-size: 12px; line-height: 1.35; white-space: nowrap;
  opacity: 0; transition: opacity .6s .4s;
}
.stage.is-ready .stage-label { opacity: 1; }
.stage-label b { font-weight: 500; font-size: 13px; }
.stage-label small { grid-column: 2; color: var(--gray); font-size: 11px; }
.stage-label .dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 3px; }
.dot-stone { background: #d6d3d1; }
.dot-ink { background: var(--ink); }
.dot-blue { background: var(--signal); border-radius: 50% !important; box-shadow: 0 0 0 4px rgba(59,166,241,.18); }
.stage-label.is-blue b { color: var(--edge); }

.stage-hint {
  position: absolute; right: 16px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .04em; white-space: nowrap;
  opacity: 0; transition: opacity .5s;
}
.stage-hint .sp { display: none; }
@media (hover: none) { .stage-hint .pc { display: none; } .stage-hint .sp { display: inline; } }
.stage-hint .icon { width: 16px; height: 16px; animation: hint-swipe 2.4s var(--ease) infinite; }
@keyframes hint-swipe { 0%, 100% { transform: translateX(-3px) rotate(-8deg); } 50% { transform: translateX(3px) rotate(8deg); } }
.stage.is-ready .stage-hint { opacity: .92; }
.stage.is-touched .stage-hint { opacity: 0; }

/* WebGL が使えないとき・読み込み前は、従来の図 */
.hero-fallback { display: none; position: absolute; inset: 12% 4%; height: max-content; margin: auto; }
.stage.no-webgl .hero-fallback { display: block; }
.stage.no-webgl .stage-label, .stage.no-webgl .stage-hint, .stage.no-webgl .stage-canvas { display: none; }

.hero { overflow-x: clip; }
@media (max-width: 1000px) {
  /* スマホ・タブレット：見出しのすぐ下に舞台を置く（文章の塊をほどいて並べ直す） */
  .hero-copy { display: contents; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .stage { order: 3; justify-self: center; max-width: 520px; margin: 8px auto 0; }
  .hero .lead { order: 4; }
  .hero .actions { order: 5; }
  .hero .meta { order: 6; }
}
@media (max-width: 640px) {
  .stage { aspect-ratio: 1 / 0.92; width: 100%; margin: 4px 0 -8px; }
  .stage-label { font-size: 11px; padding: 6px 10px 6px 8px; }
  .stage-label b { font-size: 12px; }
  .stage-label small { display: none; }
  .stage-label .dot { grid-row: auto; }
  .stage-hint { height: 28px; padding: 0 12px; font-size: 11px; bottom: 12px; right: 12px; }
  .hero-fallback { position: static; }
  .stage.no-webgl { aspect-ratio: auto; }
}
