/* =========================================================
   オネッティア株式会社 コーポレートサイト 共通スタイル
   - デザイン方針: 黒・チャコール・白の余白多めのレイアウト、
     大きな英字見出し＋日本語見出し、角丸カード、ダークフッター
   - 色・余白・文字サイズはすべて :root の変数で管理する
   ========================================================= */

:root {
  /* 色 */
  --color-primary: #eeeeeb;
  --color-primary-dark: #d0d0ce;
  --color-primary-soft: #292929;
  --color-bg: #101010;
  --color-surface: #1c1c1c;
  --color-text: #f5f5f2;
  --color-text-sub: #aeaeaa;
  --color-line: #383838;
  --color-dark: #080808;
  --color-dark-sub: #aaa9a5;
  --color-on-primary: #ffffff;

  /* 文字 */
  --font-display: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Outfit", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  /* レイアウト */
  --container: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-gap: clamp(96px, 14vw, 200px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --header-h: 88px;

  /* 動き */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- リセット ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  padding: 8px 16px; background: var(--color-surface); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--color-on-primary);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid,
.site-header--light {
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
}
.site-header.is-solid { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding-inline: var(--gutter);
}
.logo {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: currentColor; position: relative; flex-shrink: 0;
}
.logo__mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--logo-hole, var(--color-primary));
}
.site-header.is-solid .logo__mark::after,
.site-header--light .logo__mark::after { background: var(--color-bg); }

.gnav { display: flex; align-items: center; gap: 32px; }
.gnav__list { display: flex; gap: 28px; font-family: var(--font-display); font-size: 14px; font-weight: 500; }
.gnav__list a { position: relative; padding-block: 4px; }
.gnav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.gnav__list a:hover::after,
.gnav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 999px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  background: var(--color-on-primary); color: var(--color-bg);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); }
.site-header.is-solid .btn-pill,
.site-header--light .btn-pill { background: var(--color-primary); color: var(--color-bg); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 2; }
  .site-header .logo { position: relative; z-index: 2; }
  .gnav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 40px;
    background: var(--color-bg); color: var(--color-text);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav__list { flex-direction: column; align-items: center; gap: 20px; font-size: 28px; }
  .gnav .btn-pill { background: var(--color-on-primary); color: var(--color-bg); font-size: 18px; padding: 12px 32px; }
  body.is-menu-open .site-header { color: var(--color-on-primary); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.is-menu-open { overflow: hidden; }
}

/* ---------- 汎用：見出し ---------- */
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(56px, 11vw, 168px); line-height: 0.95; letter-spacing: -0.03em;
}
.display--md { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--color-primary);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.heading-ja {
  font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; line-height: 1.45; letter-spacing: 0.02em;
}
.heading-ja em { font-style: normal; color: var(--color-primary); }
.heading-ja .muted { color: var(--color-text-sub); }
.lead { font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: var(--color-text-sub); }

/* ---------- 汎用：ボタン・リンク ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.link-arrow__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-bg);
  transition: transform .4s var(--ease);
}
.link-arrow:hover .link-arrow__icon { transform: translateX(6px); }
.link-arrow--invert .link-arrow__icon { background: var(--color-on-primary); color: var(--color-bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  background: var(--color-primary); color: var(--color-bg);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 1.5px var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary-soft); }
.btn--white { background: var(--color-on-primary); color: var(--color-bg); }
.btn--white:hover { background: var(--color-primary-dark); }
.btn[aria-disabled="true"] { background: var(--color-line); color: var(--color-text-sub); pointer-events: none; }

.tag {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  background: var(--color-primary-soft); color: var(--color-primary);
}

/* ---------- セクション共通 ---------- */
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(64px, 9vw, 120px); }
.section__head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head--split {
  grid-template-columns: 1fr minmax(280px, 420px); align-items: end;
}
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; } }

/* ---------- サービス一覧 ---------- */
.service-list { border-top: 1px solid var(--color-line); }
.service-item {
  display: grid; grid-template-columns: 80px 1.1fr 1.4fr 56px; align-items: center; gap: 24px;
  padding-block: clamp(28px, 3.4vw, 44px); border-bottom: 1px solid var(--color-line);
  transition: background-color .4s var(--ease), padding .4s var(--ease);
}
a.service-item:hover { background: var(--color-surface); padding-inline: 24px; }
.service-item__num { font-family: var(--font-display); font-size: 14px; color: var(--color-primary); font-weight: 600; }
.service-item__title { font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.4; }
.service-item__title small {
  display: block; font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--color-text-sub); letter-spacing: .04em;
}
.service-item__desc { color: var(--color-text-sub); font-size: 15px; }
.service-item .link-arrow__icon { justify-self: end; }
@media (max-width: 760px) {
  .service-item { grid-template-columns: 48px 1fr; }
  .service-item__desc { grid-column: 2; }
  .service-item .link-arrow__icon { display: none; }
}

/* ---------- アプローチ（一気通貫） ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; }
.flow__item {
  position: relative; padding: 32px 28px 36px; border-radius: var(--radius-md);
  background: var(--color-surface);
  counter-increment: flow;
}
.flow__item::before {
  content: counter(flow, decimal-leading-zero);
  display: block; margin-bottom: 40px;
  font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1;
  color: var(--color-primary);
}
.flow__item h3 { font-size: 20px; margin-bottom: 12px; }
.flow__item p { font-size: 14px; color: var(--color-text-sub); line-height: 1.9; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ---------- カンパニーパネル ---------- */
.panel-blue {
  position: relative; isolation: isolate; overflow: clip;
  background: #181818; color: var(--color-text);
  border-radius: 50% 50% 0 0 / 80px 80px 0 0;
  padding-block: clamp(120px, 14vw, 200px) clamp(96px, 12vw, 160px);
}
.panel-blue__rings { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.panel-blue .eyebrow { color: var(--color-on-primary); }
.panel-blue .heading-ja em { color: #ffffff; }
.panel-blue .lead { color: rgba(255,255,255,.82); }
.panel-blue__big {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: .9;
  font-size: clamp(80px, 18vw, 280px); color: rgba(255,255,255,.14);
  margin-top: clamp(48px, 6vw, 96px); white-space: nowrap;
}
.vision { display: grid; gap: clamp(40px, 5vw, 72px); text-align: center; justify-items: center; }
.vision .lead { max-width: 640px; }

/* ---------- カード（採用・フリーランス） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
@media (max-width: 800px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(32px, 4vw, 56px); border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.card--blue { background: #303030; color: var(--color-text); }
.card--blue .lead, .card--blue .card__meta { color: rgba(255,255,255,.82); }
.card__en { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.card__title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.5; }
.card__meta { font-size: 14px; color: var(--color-text-sub); }
.card .link-arrow { margin-top: auto; padding-top: 16px; }

/* 募集ステータス表示（site-config.js で切替） */
.recruit-status {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--color-primary-soft); color: var(--color-primary);
}
.recruit-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.recruit-status.is-closed { background: #262626; color: var(--color-text-sub); }

/* ---------- お問い合わせCTA ---------- */
.cta {
  position: relative; overflow: clip; isolation: isolate;
  border-radius: var(--radius-lg); background: var(--color-dark); color: var(--color-on-primary);
  padding: clamp(48px, 7vw, 112px) clamp(28px, 6vw, 96px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
}
.cta .display { font-size: clamp(48px, 9vw, 140px); }
.cta .lead { color: var(--color-dark-sub); margin-top: 24px; }
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -40%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,210,210,.12), transparent 65%);
}
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- 下層ページヘッダー ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero__ja { margin-top: 16px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--color-text-sub); margin-bottom: 32px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- 本文ブロック ---------- */
.block { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(24px, 5vw, 96px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--color-line); }
.block__label h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.4; }
.block__label .eyebrow { margin-bottom: 12px; }
.block__body { display: grid; gap: 24px; }
.block__body p { line-height: 2; }
.block__body h3 { font-size: 20px; margin-top: 16px; }
@media (max-width: 800px) { .block { grid-template-columns: 1fr; } }

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary-soft); box-shadow: inset 0 0 0 4px var(--color-primary);
}

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 6px 16px; border-radius: 999px; background: var(--color-surface); font-size: 14px; }

/* 会社概要テーブル */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.info-table th { width: 30%; font-weight: 700; padding-right: 24px; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 4px; border-bottom: 0; }
}

/* ステップ */
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  padding: 24px; border-radius: var(--radius-md); background: var(--color-surface);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--color-primary); line-height: 1.2;
}
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--color-text-sub); }

/* お知らせ枠・注記 */
.notice {
  padding: 24px 28px; border-radius: var(--radius-md);
  background: var(--color-surface); border-left: 4px solid var(--color-primary);
}
.notice--muted { border-left-color: var(--color-line); color: var(--color-text-sub); }

/* 外部フォーム埋め込み枠 */
.form-embed {
  min-height: 480px; border-radius: var(--radius-lg); background: var(--color-surface);
  display: grid; place-items: center; text-align: center; padding: 40px;
  border: 2px dashed var(--color-line); color: var(--color-text-sub);
}

/* プライバシーポリシー */
.prose { max-width: 820px; display: grid; gap: 16px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 6px; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: var(--section-gap);
  background: var(--color-dark); color: var(--color-on-primary);
  padding-block: clamp(64px, 8vw, 112px) 40px;
}
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .logo__mark::after { background: var(--color-dark); }
.page-top { font-family: var(--font-display); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 40px; padding-block: 56px; }
.site-footer__nav h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.site-footer__nav li + li { margin-top: 10px; }
.site-footer__nav a { font-size: 14px; color: var(--color-dark-sub); transition: color .3s; }
.site-footer__nav a:hover { color: var(--color-on-primary); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--color-dark-sub); }
@media (max-width: 700px) { .site-footer__nav { grid-template-columns: 1fr 1fr; } }

/* ---------- スクロール表示アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 動きを減らす設定の利用者には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ユーティリティ */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.text-center { text-align: center; }

/* ---------- モノトーンの共通仕上げ ---------- */
:root { color-scheme: dark; }
::selection { background: #e8e8e3; color: #111; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.site-header { border-bottom: 1px solid rgba(255,255,255,.14); }
.logo { font-size: 28px; letter-spacing: -.035em; }
.logo__mark { background: transparent; border: 6px solid currentColor; }
.logo__mark::after { display: none; }
.gnav { gap: 54px; }
.gnav__list { gap: 36px; }
.btn-pill { padding: 7px 26px; }
.btn-pill::after { content: "↗"; margin-left: 14px; }
.btn--ghost:hover { color: var(--color-text); }
.panel-blue { background: #191919; color: var(--color-text); }
.panel-blue .heading-ja em { color: inherit; }
.cta .eyebrow { color: var(--color-text); }
.cta .btn { min-width: 210px; }
.card { border: 1px solid var(--color-line); }
.card--blue .link-arrow__icon { color: var(--color-bg); }
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; width: 340px; height: 340px;
  border: 1px solid #333; border-radius: 50%; right: -100px; top: 110px;
  box-shadow: 0 0 0 30px #ffffff03, 0 0 0 60px #ffffff03; pointer-events: none;
}
.page-hero .display { position: relative; z-index: 1; overflow-wrap: anywhere; }
.flow__item { background: transparent; border-top: 1px solid var(--color-line); border-radius: 0; padding-inline: 12px; }
.flow__item::before { font-weight: 400; font-size: 64px; }
.site-footer .logo { font-size: clamp(36px, 6vw, 88px); }
.site-footer .logo__mark { width: .85em; height: .85em; border-width: .18em; }
.site-footer__nav h2 { font-size: 24px; }
.site-footer__nav { grid-template-columns: repeat(3, 1fr); }

/* ---------- ヒーロー：JSなしでもすべての文章を読める通常配置 ---------- */
.hero-story { position: relative; }
.hero-stage { position: relative; isolation: isolate; }
.hero-visual {
  position: absolute; inset: 0 0 auto; height: 100svh; min-height: 600px;
  overflow: hidden; z-index: -1; background: #242424; pointer-events: none;
}
.hero-visual__image {
  position: absolute; inset: -3%;
  background: linear-gradient(0deg, #0008, transparent 35%, #0002), url("../img/hero-sculptures.png") center / cover;
  animation: scene-drift 24s ease-in-out infinite alternate;
}
.hero { min-height: 600px; height: 100svh; position: relative; color: #fff; }
.hero__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 100px 2.3vw 40px; }
.hero__title {
  font-family: var(--font-display); font-size: clamp(70px, 12.2vw, 230px);
  line-height: .98; font-weight: 500; letter-spacing: -.055em; white-space: nowrap;
  text-align: center; margin-top: -20px; text-shadow: 0 2px 24px #0002;
}
.hero__sub { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9%; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hero__copy { font-size: clamp(22px, 2.25vw, 34px); line-height: 1.65; font-weight: 700; }
.hero__scroll { display: flex; align-items: center; gap: 24px; font-family: var(--font-display); font-size: 14px; }
.hero__scroll span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #fff8; border-radius: 50%; transition: background .3s, color .3s; }
.hero__scroll:hover span { background: #fff; color: #111; }
.floating-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #878787, #383838 28%, #0b0b0b 68%); box-shadow: inset -12px -20px 40px #0008, 12px 30px 50px #0005; animation: float 12s ease-in-out infinite; }
.floating-orb--one { width: 11vw; height: 11vw; right: 11%; top: 16%; }
.floating-orb--two { width: 6vw; height: 6vw; left: 22%; bottom: 13%; animation-delay: -5s; }
.statement { padding-block: clamp(100px, 14vw, 200px); }
.statement__grid { display: grid; grid-template-columns: 1.15fr .8fr 1fr; gap: 40px; align-items: center; }
.statement .heading-ja { font-size: clamp(24px, 2.55vw, 39px); line-height: 1.9; letter-spacing: -.03em; }
.statement .heading-ja em { color: #fff; }
.statement .muted { color: #8b8b88; }
.statement .lead { font-size: 15px; line-height: 2.3; }
.statement__orb { width: 100%; aspect-ratio: 1; border-radius: 50%; background: url("../img/hero-sculptures.png") center / cover; box-shadow: 0 0 0 8px #ffffff05, 0 0 0 16px #ffffff03; }


/* ---------- サービス：大きな立体図版を備えた2列の一覧 ---------- */
.service-list--visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 76px 32px; border: 0; }
.service-list--visual .service-item { position: relative; grid-template-columns: 28px 1fr 44px; gap: 18px 16px; padding: 0 0 28px; align-items: start; }
.service-list--visual .service-item:hover { background: transparent; padding: 0 0 28px; }
.service-list--visual .service-item__num { padding-top: 6px; color: var(--color-text-sub); }
.service-list--visual .service-item__title { font-size: clamp(22px, 2.4vw, 34px); }
.service-list--visual .service-item__title small { margin-top: 8px; font-size: 15px; }
.service-list--visual .service-item__desc { grid-column: 2 / 4; grid-row: 3; max-width: 480px; }
.service-list--visual .link-arrow__icon { grid-column: 3; grid-row: 2; margin-top: 4px; }
.service-art { grid-column: 1 / -1; position: relative; overflow: hidden; height: auto; aspect-ratio: 1.5; border-radius: 10px; background: #202020; margin-bottom: 14px; isolation: isolate; }
.service-art::after { position: absolute; content: ""; inset: 0; background: radial-gradient(ellipse at 50% 20%, #ffffff0c, transparent 70%); pointer-events: none; }
.service-art span { position: absolute; display: block; transition: transform 1s var(--ease); }
.service-art--strategy { background: radial-gradient(ellipse at 60% 80%, #494949, #171717 80%); }
.service-art--strategy span { width: 43%; height: 43%; border-radius: 20%; background: linear-gradient(145deg, #929292, #363636 40%, #181818 90%); box-shadow: 14px 24px 30px #0007, inset 1px 1px 2px #fff6; transform: rotate(-30deg) skew(14deg, 8deg); left: 29%; }
.service-art--strategy span:nth-child(1) { top: 42%; }
.service-art--strategy span:nth-child(2) { top: 30%; }
.service-art--strategy span:nth-child(3) { top: 18%; }
.service-art--strategy span:nth-child(4) { top: 6%; background: linear-gradient(145deg, #c3c3c0, #676767 45%, #262626); }
.service-item:hover .service-art--strategy span { transform: translateY(-12px) rotate(-36deg) skew(14deg, 8deg); }
.service-art--people { background: radial-gradient(ellipse at center, #454545, #181818); }
.service-art--people span { width: 35%; aspect-ratio: 1; border: clamp(20px, 4vw, 65px) solid #8c8c89; border-radius: 50%; box-shadow: inset 5px 8px 12px #000b, inset -4px -5px 8px #ddd, 12px 22px 26px #0007; top: 16%; left: 22%; transform: rotate(-35deg) scaleX(.8); }
.service-art--people span:nth-child(2) { left: 44%; top: 35%; border-color: #4d4d4d; transform: rotate(35deg) scaleX(.8); }
.service-art--people span:nth-child(n+3) { display: none; }
.service-item:hover .service-art--people span { transform: rotate(-15deg) scaleX(.9); }
.service-art--learning { background: radial-gradient(ellipse at 50% 70%, #444, #181818); }
.service-art--learning span { width: 20%; border-radius: 50% 50% 8% 8% / 14% 14% 5% 5%; background: linear-gradient(90deg, #282828, #a2a2a0 35%, #555 70%, #222); bottom: 15%; height: 24%; left: 10%; box-shadow: 12px 16px 20px #0007, inset 0 2px 2px #ccc; }
.service-art--learning span:nth-child(2) { left: 30%; height: 40%; }
.service-art--learning span:nth-child(3) { left: 50%; height: 55%; }
.service-art--learning span:nth-child(4) { left: 70%; height: 70%; }
.service-item:hover .service-art--learning span { transform: translateY(-10px); }
.service-art--building { background: radial-gradient(ellipse at 50% 65%, #444, #151515); }
.service-art--building span { width: 28%; aspect-ratio: 1; border-radius: 16%; background: linear-gradient(140deg, #c5c5c1, #656565 28%, #222 80%); box-shadow: 12px 22px 30px #0007, inset 1px 1px 2px #ddd; left: 24%; top: 14%; transform: rotate(-20deg); }
.service-art--building span:nth-child(2) { left: 49%; top: 21%; background: linear-gradient(140deg, #777, #1c1c1c 80%); }
.service-art--building span:nth-child(3) { left: 21%; top: 46%; }
.service-art--building span:nth-child(4) { left: 47%; top: 54%; }
.service-item:hover .service-art--building span { transform: rotate(-7deg) translateY(-6px); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -22px; } }
@keyframes scene-drift { from { transform: scale(1) translate(-.5%, 0); } to { transform: scale(1.045) translate(.5%, 1%); } }

@media (min-width: 1600px) { .hero__title { font-size: 12.2vw; } }
@media (max-width: 1000px) {
  .statement__grid { gap: 24px; grid-template-columns: 1fr 210px 1fr; }
  .statement .heading-ja { font-size: 25px; }
  .statement .lead { font-size: 13px; }
}
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .gnav { height: 100dvh; gap: 36px; }
  .gnav__list { gap: 22px; }
  .gnav .btn-pill { color: var(--color-bg); }
  .statement__grid { grid-template-columns: 1fr; text-align: center; max-width: 580px; margin: auto; }
  .statement__orb { width: 180px; margin: auto; }
  .statement .heading-ja { font-size: clamp(23px, 4vw, 32px); line-height: 1.6; }
  .statement .lead { font-size: 14px; line-height: 2; text-align: left; }
  .hero__title { font-size: 11.5vw; white-space: normal; }
  .hero__title span { display: block; }
  .hero__title span + span { margin-top: .1em; }
}
@media (max-width: 600px) {
  .logo { font-size: 26px; }
  .hero { min-height: 620px; }
  .hero-visual { min-height: 620px; }
  .hero__inner { padding: 90px 16px 80px; }
  .hero__title { font-size: 17vw; line-height: 1; text-align: left; }
  .hero__sub { bottom: 7%; align-items: start; flex-direction: column; gap: 24px; }
  .hero__copy { font-size: 22px; }
  .hero__scroll { font-size: 12px; gap: 12px; }
  .hero__scroll span { width: 34px; height: 34px; }
  .floating-orb--one { width: 22vw; height: 22vw; top: 20%; }
  .floating-orb--two { width: 14vw; height: 14vw; bottom: 35%; left: 7%; }
  .floating-ring { width: 24vw; height: 24vw; border-width: 5vw; top: 28%; }
  .service-list--visual { grid-template-columns: 1fr; gap: 48px; }
  .service-list--visual .service-item { gap: 16px 10px; grid-template-columns: 24px 1fr 40px; }
  .service-list--visual .service-item__title { font-size: 23px; }
  .service-list--visual .service-item__desc { font-size: 14px; }
  .service-list--visual .link-arrow__icon { display: grid; }
  .service-art--people span { border-width: 26px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__nav h2 { font-size: 20px; }
  .site-footer__bottom { font-size: 11px; }
  .cta { padding: 40px 24px; }
  .cta .display { font-size: clamp(44px, 12vw, 70px); overflow-wrap: anywhere; }
  .page-hero .display { font-size: clamp(44px, 12vw, 72px); }
}

/* 停止中も本文を隠さず、通常の縦並びで読める。 */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }
.motion-paused .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* =========================================================
   ヒーロー → ステートメント → 事業紹介 のスクロール演出
   - .hero-stage（CGと同心円）は画面に貼り付き、本文はその上を通常スクロールする
   - 円形マスクの半径・CGの縮小率は JS（motion-timeline.js の orbGeometry）で計算
   - 円の直径は --orb-d で一元管理（JSは .service-bridge__center の幅を読む）
   ========================================================= */
.hero-story { --orb-d: 290px; position: relative; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.hero-visual.is-cg-ready .hero-canvas { opacity: 1; }
.hero-visual.is-cg-ready .hero-visual__image { opacity: 0; animation: none; }
/* ゆっくり拡大・移動しても端が見えないよう、少し大きめに敷く */
.hero-visual__image { inset: -2%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0005, transparent 35%, #0001); pointer-events: none; }

/* 動きなし（JS無効・モーション停止・低い画面）の通常配置 */
.hero-stage { position: absolute; inset: 0 0 auto; height: 100svh; min-height: 600px; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-visual { position: absolute; inset: 0; height: auto; min-height: 0; z-index: 0; background: #191919; }
.hero, .statement, .service-bridge { position: relative; z-index: 1; }
.orb-rings { display: none; }

.service-bridge { display: grid; grid-template-columns: 1fr var(--orb-d) 1fr; align-items: center; gap: 32px; padding-block: 100px; }
.service-bridge__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.service-bridge__side:last-child { align-items: flex-end; text-align: right; }
.service-bridge h2 { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 68px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.service-bridge__side > p:not(.eyebrow) { font-size: clamp(16px, 1.6vw, 23px); line-height: 1.8; }
.service-bridge .eyebrow { font-size: 12px; border: 1px solid #555; border-radius: 999px; padding: 3px 14px; }
.service-bridge .eyebrow::before { display: none; }
.service-bridge .link-arrow { font-size: 13px; margin-top: 12px; }
.service-bridge__center { position: relative; width: var(--orb-d); aspect-ratio: 1; border-radius: 50%; background: url("../img/hero-sculptures.png") center / cover; }

/* 2色見出し（参考サイトの「Featured / Work」のような、語ごとのトーン差） */
.tone { color: var(--color-text-sub); }

/* ---------- 動きありの配置 ---------- */
/* 固定層は高さ100svhのまま置き、次のヒーローを -100svh 引き上げて重ねる。
   （固定層側に負のマージンを付けると、固定が外れるのが1画面ぶん遅れて次のセクションに円が重なる） */
.has-motion .hero-stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: visible; }
.has-motion .hero { margin-top: -100svh; }
.has-motion .hero-visual { transform-origin: 50% 50%; clip-path: circle(150% at 50% 50%); will-change: transform, clip-path; }
.has-motion .hero__inner { opacity: var(--hero-opacity, 1); transform: translateY(var(--hero-offset, 0px)); }

/* 円の周りの同心円。収束の終盤にふわっと現れる */
.has-motion .orb-rings {
  display: block; position: absolute; left: 50%; top: 50%;
  width: var(--orb-size, var(--orb-d)); aspect-ratio: 1; translate: -50% -50%;
  opacity: var(--ring-opacity, 0);
}
.orb-rings span { position: absolute; border-radius: 50%; border: 1px solid #fff; }
.orb-rings span:nth-child(1) { inset: -9px; opacity: .22; }
.orb-rings span:nth-child(2) { inset: -21px; opacity: .12; }
.orb-rings span:nth-child(3) { inset: -36px; opacity: .06; }

/* ステートメント：1画面ぶんの高さを取り、中央の空き枠に円が重なる */
.has-motion .statement { min-height: 100svh; margin-top: 25svh; display: flex; align-items: center; padding-block: var(--header-h); }
.has-motion .statement__grid { width: 100%; grid-template-columns: 1fr var(--orb-d) 1fr; gap: 40px; }
.has-motion .statement__orb, .has-motion .service-bridge__center { background: none; box-shadow: none; }
.has-motion .statement__orb { width: var(--orb-d); }

/* 事業紹介：最後の1画面。中央の枠に円が重なった時点で固定が外れ、一緒に流れていく */
/* 上下の余白を揃え、中央の枠が画面のちょうど中央に来るようにする */
.has-motion .service-bridge { height: 100svh; margin-top: 30svh; padding-block: var(--header-h); }
.has-motion .service-bridge__center::after {
  content: ""; position: absolute; left: 50%; width: 1px; top: calc(100% + 28px);
  height: calc(50svh - var(--orb-d) / 2 - 28px); background: linear-gradient(#777, transparent);
}

/* ---------- 見出しの文字アニメーション（スクロール連動・逆再生可） ---------- */
.motion-char { display: inline-block; vertical-align: bottom; line-height: inherit; }
.motion-char > span { display: inline-block; }
/* 英字見出し：1文字ずつ下からせり上がる */
.motion-heading--rise .motion-char { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.motion-enabled .motion-heading--rise .motion-char > span {
  --lp: clamp(0, calc(var(--heading-progress, 1) * 3 - var(--letter-index) * .045), 1);
  transform: translateY(calc((1 - var(--lp)) * 115%)) rotate(calc((1 - var(--lp)) * 5deg));
  opacity: var(--lp);
}
/* 日本語ステートメント：左から順に、淡い色 → 本来の色へ満ちていく */
.motion-enabled .motion-heading--fill .motion-char > span {
  --lp: clamp(0, calc(var(--heading-progress, 1) * (1 + var(--letter-count, 20) * .04) - var(--letter-index) * .04), 1);
  opacity: calc(min(1, var(--lp) * 4) * (.18 + .82 * var(--lp)));
}
.motion-paused .motion-char > span { transform: none; opacity: 1; }

/* ---------- セクションの切り替え ---------- */
/* サービス：左右に余白のある角丸パネルとしてせり上がり、画面いっぱいに広がる */
.services-section { position: relative; z-index: 2; max-width: none; background: #171717; padding-inline: max(var(--gutter), calc((100vw - 1344px) / 2)); padding-top: 110px; }
.motion-enabled .services-section {
  --sp: var(--section-progress, 0);
  clip-path: inset(0 calc((1 - var(--sp)) * 3.2vw) 0 round calc(28px + (1 - var(--sp)) * 72px) calc(28px + (1 - var(--sp)) * 72px) 0 0);
}
/* 会社紹介：弧を描く上端がせり上がりながら平らになる */
.motion-enabled .panel-blue { border-radius: 50% 50% 0 0 / calc((1 - var(--section-progress, 0)) * 230px + 10px) calc((1 - var(--section-progress, 0)) * 230px + 10px) 0 0; }
.motion-enabled .section-motion > .section__head { transform: translateY(calc((1 - var(--section-progress, 0)) * 45px)); }
.motion-enabled .panel-blue .vision { transform: translateY(calc((1 - var(--section-progress, 0)) * 75px)); }
.motion-enabled .panel-blue__rings { transform: rotate(calc(var(--section-progress, 0) * 16deg)) scale(calc(.8 + var(--section-progress, 0) * .2)); transform-origin: 75% 50%; }
.motion-enabled .section-motion .cta { clip-path: inset(0 calc((1 - var(--section-progress, 0)) * 9%) round calc((1 - var(--section-progress, 0)) * 120px + 32px)); }
.service-list--visual > li .reveal { transition-delay: var(--reveal-delay, 0ms); }
.flow__item.reveal, .card.reveal { transition-delay: var(--reveal-delay, 0ms); }

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-story { --orb-d: 240px; }
  .has-motion .statement__grid, .service-bridge { gap: 24px; }
  .service-bridge h2 { font-size: 37px; }
}
@media (max-width: 900px) {
  .hero-story { --orb-d: 160px; }
  .service-bridge { grid-template-columns: 1fr; max-width: 580px; gap: 20px; text-align: center; }
  .service-bridge__side, .service-bridge__side:last-child { align-items: center; text-align: center; gap: 10px; }
  .service-bridge h2 { font-size: 34px; }
  .service-bridge h2 br { display: none; }
  .service-bridge__side > p:not(.eyebrow) { font-size: 14px; line-height: 1.6; }
  .service-bridge__center { margin: auto; }
  .service-bridge .link-arrow { margin-top: 0; font-size: 12px; }
  .service-bridge .link-arrow__icon { width: 28px; height: 28px; }
  .services-section { padding-top: 80px; }
  /* 縦長画面：上段・円・下段の3段にし、円の枠をちょうど画面中央に置く */
  .has-motion .statement, .has-motion .service-bridge { height: 100svh; min-height: 0; padding: 0 var(--gutter); }
  .has-motion .statement__grid, .has-motion .service-bridge {
    grid-template-columns: 1fr; grid-template-rows: 1fr var(--orb-d) 1fr; gap: 20px; align-items: stretch;
  }
  .has-motion .statement__grid { height: 100%; }
  .has-motion .statement .heading-ja, .has-motion .service-bridge__side:first-child { align-self: end; }
  .has-motion .statement .lead, .has-motion .service-bridge__side:last-child { align-self: start; }
  .has-motion .statement__orb, .has-motion .service-bridge__center { width: var(--orb-d); margin: auto; }
  .has-motion .service-bridge__center::after { display: none; }
}
@media (max-width: 600px) {
  .hero-story { --orb-d: 150px; }
  .has-motion .statement .heading-ja { font-size: 23px; line-height: 1.6; }
  .has-motion .statement .lead { font-size: 13px; line-height: 1.85; }
  .service-bridge h2 { font-size: 28px; }
  .service-bridge .eyebrow { font-size: 10px; }
  .service-bridge__side > p:not(.eyebrow) { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-char > span { transform: none !important; opacity: 1 !important; }
}

/* ---------- 会社紹介：同心円の弧が回転する ---------- */
.panel-blue__arcs circle {
  transform-box: fill-box; transform-origin: center;
  opacity: .9;
  animation: ring-spin var(--spin, 40s) linear infinite;
}
.panel-blue__arcs circle:nth-child(1) { --spin: 14s; }
.panel-blue__arcs circle:nth-child(2) { --spin: 22s; animation-direction: reverse; }
.panel-blue__arcs circle:nth-child(3) { --spin: 30s; }
.panel-blue__arcs circle:nth-child(4) { --spin: 40s; animation-direction: reverse; }
.panel-blue__arcs circle:nth-child(5) { --spin: 55s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
/* 細い円：拡大率に左右されず常に0.5px（属性は子要素に継承されないためCSSで指定） */
.panel-blue__base circle { vector-effect: non-scaling-stroke; stroke-width: .5px; }

/* =========================================================
   白いセクション（黒・白の交互配置でメリハリをつける）
   - .theme-light を付けた要素の中だけ、配色の変数を白背景用に差し替える
   - 文字・線・ボタン・カードは変数で色が決まるので、自動的に切り替わる
   - .band … 中身の幅は .container のまま、背景だけ画面の端まで伸ばす
   ========================================================= */
.theme-light {
  --color-primary: #141414;
  --color-primary-dark: #3a3a3a;
  --color-primary-soft: #e6e6e2;
  --color-bg: #f2f2ef;
  --color-surface: #ffffff;
  --color-text: #141414;
  --color-text-sub: #5f5f5b;
  --color-line: #d4d4cf;
  --color-on-primary: #141414;
  background: var(--color-bg);
  color: var(--color-text);
}
.theme-light ::selection { background: #141414; color: #f2f2ef; }

/* 白い帯の中に置く黒い要素（お問い合わせカード等）は、黒背景用の配色に戻す */
.theme-light .cta, .theme-light .card--blue {
  --color-primary: #eeeeeb;
  --color-primary-dark: #d0d0ce;
  --color-primary-soft: #292929;
  --color-bg: #101010;
  --color-surface: #1c1c1c;
  --color-text: #f5f5f2;
  --color-text-sub: #aeaeaa;
  --color-line: #383838;
  --color-on-primary: #ffffff;
}

.band {
  background: var(--color-bg);
  box-shadow: 0 0 0 100vmax var(--color-bg);
  clip-path: inset(0 -100vmax);
  padding-block: clamp(56px, 7vw, 112px);
}
/* 帯の先頭の区切り線は不要（背景色の切り替わりが区切りになる） */
.band > .block:first-child { border-top: 0; padding-top: 0; }

/* サービス欄：白いパネルとしてせり上がる */
.services-section.theme-light { background: var(--color-bg); }

/* 会社紹介：白い弧のパネル。同心円・大きなロゴ文字も黒系に */
.panel-blue.theme-light { background: var(--color-bg); color: var(--color-text); }
.panel-blue.theme-light .eyebrow { color: var(--color-text); }
.panel-blue.theme-light .lead { color: var(--color-text-sub); }
.panel-blue.theme-light .panel-blue__rings { opacity: .45; }
.panel-blue.theme-light .panel-blue__big { color: rgba(0, 0, 0, .07); }

/* 募集休止中のバッジ（白背景でも読めるように） */
.theme-light .recruit-status.is-closed { background: #e2e2de; color: var(--color-text-sub); }

/* 黒い背景の上のお問い合わせカードは、背景と同化しないよう細い枠を付ける */
.cta { box-shadow: inset 0 0 0 1px #2a2a2a; }

/* ---------- ヒーロー：ドットのオーバーレイ（コピーの視認性を上げる） ----------
   - 4pxごとの黒い点で背景の細かい模様・ハイライトを抑え、白文字との差をつける
   - 画面に貼り付いた背景層（.hero-stage）に置くので、スクロールしても上へ流れず、
     その場でコピーと同じ割合で薄くなって消える（円の中には残さない）
   - 濃さは --hero-dot（点）と --hero-shade（全体の暗さ）で調整 */
.hero-stage { --hero-dot: rgba(0, 0, 0, .55); --hero-shade: rgba(0, 0, 0, .28); }
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle, var(--hero-dot) 0 1px, transparent 1.4px) 0 0 / 4px 4px,
    radial-gradient(ellipse 70% 45% at 50% 50%, rgba(0, 0, 0, .32), transparent 75%),
    linear-gradient(180deg, var(--hero-shade), transparent 30%, transparent 55%, rgba(0, 0, 0, .45));
  opacity: var(--hero-opacity, 1);
}
.hero__title, .hero__copy { text-shadow: 0 2px 28px rgba(0, 0, 0, .45); }
.hero__inner { position: relative; z-index: 1; }

/* ---------- 下層ページのタイトル欄の大きな円 ----------
   - デザイン: 細い縁の円＋外側に2本の薄い帯
   - 配置: 円の中心を画面の右端近く・欄の縦中央に置く。欄より大きいので、
     右は画面端、上はヘッダーの裏、下は次の白いセクションの境目で切れる（欄の高さは変えない）
   - 動き: 光の筋が外側の帯を回り（::before）、逆向きの光が内側の帯を回る（::after の背景）。
     帯は明るさを変えながら呼吸する。ページを開くとふわっと現れる */
.page-hero {
  --hero-h: max(420px, 55svh);                                   /* 欄の高さ */
  /* 縁の円の直径：欄に収まる大きさの約1.5倍。上はヘッダーの裏、下は次の白いセクションの境目で切れる
     （1.56 = 帯を含めた倍率 = 1 + 帯14% × 4） */
  --c: min(54vw, 780px, calc((var(--hero-h) - 16px) / 1.56 * 1.5));
  --c-band: calc(var(--c) * .14);                                /* 帯1本の幅（円の直径の14%） */
  --c-total: calc(var(--c) + var(--c-band) * 4);                 /* 帯の外側までの直径 */
  min-height: var(--hero-h);
  padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px));
  padding-bottom: clamp(32px, 4vw, 56px);
}
.page-hero > * { position: relative; z-index: 1; }
/* 広い画面ではタイトル欄が本文幅（最大1280px）で止まるため、欄の端で切らず「画面の右端」で切れるようにする。
   （横方向のはみ出しは body の overflow-x: clip で画面端で切られ、横スクロールは出ない）
   --edge = 欄の右端から画面の右端までの距離 */
.page-hero { overflow: visible; --edge: calc((100vw - 100%) / 2); }
/* 画面の右端からはみ出した部分を切る。clip はスクロール領域を作らないので、トップの固定スクロール演出にも影響しない */
main { overflow-x: clip; }
.page-hero::after,
.page-hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  right: calc(var(--c) * -.42 - var(--edge));
  width: var(--c); height: var(--c);
  top: calc(50% - var(--c) / 2);
}
/* 縁の円＋2本の帯。内側には逆回りの光（円錐グラデーション）を重ねる */
.page-hero::after {
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 var(--c-band) rgba(255, 255, 255, .1), 0 0 0 calc(var(--c-band) * 2) rgba(255, 255, 255, .16);
  animation: page-circle-in 1.6s var(--ease) both, page-circle-breathe 6s ease-in-out 1.6s infinite;
}
/* 外側の帯を回る光の筋（帯の部分だけ見えるよう、内側をくり抜く） */
.page-hero::before {
  width: var(--c-total); height: var(--c-total);
  top: calc(50% - var(--c-total) / 2);
  right: calc(var(--c) * -.42 - var(--c-band) * 2 - var(--edge));
  background:
    conic-gradient(from 0deg, transparent 0 55%, rgba(255, 255, 255, .08) 72%, rgba(255, 255, 255, .28) 86%, rgba(255, 255, 255, .5) 89%, transparent 90.5%),
    conic-gradient(from 180deg, transparent 0 80%, rgba(255, 255, 255, .12) 92%, transparent 96%);
  /* 内側の穴の半径 = 縁の円 ÷ 帯の外側までの直径 = 1 ÷ 1.56 ≒ 64.1% */
  -webkit-mask: radial-gradient(circle closest-side, transparent 64.1%, #000 64.6%);
          mask: radial-gradient(circle closest-side, transparent 64.1%, #000 64.6%);
  animation: page-circle-in 1.6s var(--ease) both, page-circle-spin 12s linear infinite;
}
@keyframes page-circle-in { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes page-circle-spin { to { rotate: 360deg; } }
@keyframes page-circle-breathe {
  0%, 100% { border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 0 var(--c-band) rgba(255, 255, 255, .1), 0 0 0 calc(var(--c-band) * 2) rgba(255, 255, 255, .16); }
  50% { border-color: rgba(255, 255, 255, .85); box-shadow: 0 0 0 calc(var(--c-band) * 1.4) rgba(255, 255, 255, .13), 0 0 0 calc(var(--c-band) * 2) rgba(255, 255, 255, .18); }
}
/* スマホ：円を小さめに。欄の高さは本文に合わせつつ最低350px */
@media (max-width: 700px) {
  .page-hero { --c: 240px; min-height: 350px; }
}
