/* ==========================================================================
   株式会社FIBE コーポレートサイト
   白基調 / 余白広め / 動きは控えめ
   ========================================================================== */

:root {
  --ink: #0b1730;          /* 見出し */
  --text: #26324a;         /* 本文 */
  --sub: #5d6a80;          /* 補足 */
  --mute: #8a95a8;
  --line: #e3e8f0;
  --line-strong: #cfd6e2;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --brand: #0f2b5c;        /* 濃紺（既存ブランド色） */
  --accent: #0052cc;       /* 差し色（既存ブランド色） */
  --accent-soft: #eaf1fd;

  /* ロゴの5色 */
  --c1: #f97316; --c2: #0ea5e9; --c3: #ef4444; --c4: #22c55e; --c5: #eab308;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --w: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 11vw, 136px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }
.en { font-family: var(--font-en); letter-spacing: .02em; font-feature-settings: normal; }
.pc { display: inline; }
@media (max-width: 767px) { .pc { display: none; } }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, height .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 23, 48, .35); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo svg { height: 38px; width: auto; }
.logo__name { font-family: var(--font-en); font-weight: 800; font-size: 20px; letter-spacing: .01em; line-height: 1; }
.logo__sub { display: block; margin-top: 5px; font-family: var(--font-jp); font-weight: 500; font-size: 10px; letter-spacing: .14em; color: var(--sub); }

.gnav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.gnav__list { display: flex; gap: clamp(20px, 3vw, 40px); }
.gnav__link { position: relative; display: block; padding: 10px 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.gnav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.gnav__link:hover::after, .gnav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px;
  border: 1px solid var(--brand); border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1.4;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line-strong); }
.btn--ghost:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--block { width: 100%; }
.arrow { width: 18px; height: 10px; flex: none; transition: transform .4s var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(5px); }

.menu-btn { display: none; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 23px; } .menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .logo svg { height: 32px; }
  .logo__name { font-size: 18px; }
  .menu-btn { display: block; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 32px;
    padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__link { padding: 20px 0; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .gnav__link::after { display: none; }
  .gnav .btn { min-height: 56px; font-size: 15px; }
}

main { padding-top: var(--header-h); }

/* ---------- 共通：セクション見出し ---------- */
.section { padding-block: var(--sec); }
.section--soft { background: var(--bg-soft); }
.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); line-height: 1; }
.label::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.h2 { margin-top: 22px; font-size: clamp(27px, 3.6vw, 42px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; color: var(--ink); }
.h3 { font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; line-height: 1.6; color: var(--ink); }
.lead { margin-top: 28px; max-width: 46em; color: var(--text); }
.head { margin-bottom: clamp(44px, 6vw, 72px); }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.text + .text { margin-top: 1.4em; }

.link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--ink); transition: color .3s, border-color .3s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

.five { display: flex; width: 80px; height: 3px; }
.five i { flex: 1; }
.five i:nth-child(1) { background: var(--c1); } .five i:nth-child(2) { background: var(--c2); } .five i:nth-child(3) { background: var(--c3); } .five i:nth-child(4) { background: var(--c4); } .five i:nth-child(5) { background: var(--c5); }

/* ---------- トップ：ヒーロー ---------- */
.hero { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(32px, 5vw, 80px); max-width: 1440px; margin-inline: auto; padding-left: var(--gutter); min-height: min(760px, calc(100vh - var(--header-h))); }
.hero__body { padding-block: 64px; }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--sub); }
.hero__title { margin-top: 28px; font-size: clamp(26px, 3.9vw, 56px); font-weight: 700; line-height: 1.4; white-space: nowrap; letter-spacing: .02em; color: var(--ink); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__lead { margin-top: 32px; max-width: 34em; font-size: 16px; }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; align-self: stretch; min-height: 420px; overflow: hidden; border-bottom-left-radius: 6px; }
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(15, 43, 92, 0) 40%, rgba(15, 43, 92, .28)); }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--sub); writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--ink), var(--ink)) no-repeat top / 100% 100%; animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { background-size: 100% 0; background-position: top; } 45% { background-size: 100% 100%; background-position: top; } 55% { background-size: 100% 100%; background-position: bottom; } 100% { background-size: 100% 0; background-position: bottom; } }

@media (max-width: 1023px) {
  .hero__title { font-size: clamp(26px, 7.2vw, 46px); }
  .hero__grid { grid-template-columns: 1fr; padding-left: 0; min-height: 0; gap: 0; }
  .hero__body { padding: 48px var(--gutter) 44px; }
  .hero__visual { min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ヒーロー直下：3事業クイックリンク */
.quick { border-block: 1px solid var(--line); }
.quick__list { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1440px; margin-inline: auto; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__link { position: relative; display: block; height: 100%; padding: 34px clamp(20px, 3vw, 44px) 36px; transition: background .4s; }
.quick__link:hover { background: var(--bg-soft); }
.quick__en { font-family: var(--font-en); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.quick__title { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 700; color: var(--ink); }
.quick__text { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--sub); }
@media (max-width: 899px) {
  .quick__list { grid-template-columns: 1fr; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }
  .quick__link { padding: 24px var(--gutter); }
}

/* ---------- トップ：理念 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 104px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.statement { font-size: clamp(24px, 3.1vw, 38px); font-weight: 700; line-height: 1.65; color: var(--ink); letter-spacing: .03em; }
.statement em { font-style: normal; background: linear-gradient(transparent 68%, #d9e6fb 68%); }

.stat { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.stat__cap { flex: 1 1 220px; font-size: 14px; line-height: 1.8; color: var(--sub); }

.figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure--wide img { aspect-ratio: 16 / 9; }
.figure--tall img { aspect-ratio: 4 / 5; }

/* ---------- 事業カード（トップ） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
@media (max-width: 899px) { .cards { grid-template-columns: 1fr; gap: 44px; } }
.card { display: flex; flex-direction: column; height: 100%; }
.card__img { overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__meta { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.card__meta b { font-size: 13px; color: var(--ink); }
.card__meta::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card__title { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 23px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.card__catch { margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--brand); line-height: 1.7; }
.card__text { margin-top: 14px; font-size: 14.5px; line-height: 1.9; color: var(--sub); }
.circle { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background .35s, border-color .35s, color .35s; }
.circle svg { width: 14px; height: 9px; }
a:hover .circle { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 特長（2カラム） ---------- */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 48px; }
.point { padding: 32px 32px 0 0; }
.point + .point { padding-left: 32px; border-left: 1px solid var(--line); }
.point__num { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.point__title { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.point__text { margin-top: 8px; font-size: 14.5px; line-height: 1.9; color: var(--sub); }
@media (max-width: 599px) { .points { grid-template-columns: 1fr; } .point { padding: 28px 0 0; } .point + .point { margin-top: 28px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- AI健康診断バナー ---------- */
.banner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; border-radius: 6px; background: var(--brand); color: #fff; }
.banner__body { padding: clamp(36px, 5.4vw, 76px); }
.banner .label { color: #9cc1ff; }
.banner__title { margin-top: 22px; font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.55; }
.banner__text { margin-top: 20px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.banner__img { position: relative; min-height: 260px; }
.banner__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.banner__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), rgba(15, 43, 92, .15)); }
.btn--white { margin-top: 36px; background: #fff; color: var(--brand); border-color: #fff; }
.btn--white:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--brand); }
@media (max-width: 899px) { .banner { grid-template-columns: 1fr; } .banner__img { order: -1; min-height: 0; aspect-ratio: 16 / 8; } .banner__img::after { background: linear-gradient(0deg, var(--brand), rgba(15, 43, 92, .1)); } }

/* ---------- 定義リスト（会社概要） ---------- */
.dl { border-top: 1px solid var(--line-strong); }
.dl__row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.dl__row dt { padding: 26px 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.dl__row dd { padding: 26px 0; }
.dl__row dd li + li { margin-top: 4px; }
@media (max-width: 699px) { .dl__row { grid-template-columns: 1fr; } .dl__row dt { padding: 22px 0 0; font-size: 13.5px; color: var(--sub); } .dl__row dd { padding: 6px 0 22px; } }

/* ---------- CTA（フッター上） ---------- */
.cta { background: var(--bg-soft); border-top: 1px solid var(--line); }
.cta__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding-block: clamp(56px, 8vw, 104px); }
.cta__title { margin-top: 18px; font-size: clamp(28px, 4vw, 46px); font-weight: 700; color: var(--ink); line-height: 1.4; }
.cta__text { margin-top: 16px; max-width: 40em; color: var(--sub); font-size: 15px; }
.cta__circle { display: grid; place-items: center; width: clamp(72px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; transition: background .4s, transform .6s var(--ease); }
.cta__circle svg { width: 26px; height: 14px; transition: transform .5s var(--ease); }
.cta__link:hover .cta__circle { background: var(--accent); transform: scale(1.06); }
.cta__link:hover .cta__circle svg { transform: translateX(5px); }
@media (max-width: 599px) { .cta__link { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer .five { width: 100%; height: 3px; }
.footer__main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 56px; padding-block: 72px 56px; }
.footer .logo { color: #fff; }
.footer .logo__sub { color: rgba(255, 255, 255, .6); }
.footer__addr { margin-top: 26px; font-style: normal; line-height: 1.9; font-size: 13.5px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__nav h2 { font-size: 14.5px; font-weight: 700; color: #fff; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer__nav h2 a:hover, .footer__nav li a:hover, .footer__bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__nav ul { margin-top: 16px; }
.footer__nav li + li { margin-top: 8px; }
.footer__nav li a { font-size: 13.5px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 24px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; }
.footer__bottom small { font-family: var(--font-en); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 899px) { .footer__main { grid-template-columns: 1fr; padding-block: 56px 40px; } }
@media (max-width: 599px) { .footer__nav { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 下層：ページヘッダー ---------- */
.phead { padding-block: clamp(36px, 5vw, 60px) clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--sub); }
.crumb li + li::before { content: "/"; margin-right: 8px; color: var(--mute); }
.crumb a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.phead__en { margin-top: clamp(36px, 5vw, 64px); font-family: var(--font-en); font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.phead__title { margin-top: 12px; font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: .03em; }
.phead__lead { margin-top: 24px; max-width: 44em; }

.anchors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.anchors a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .3s, color .3s; }
.anchors a:hover { border-color: var(--accent); color: var(--accent); }
.anchors svg { width: 9px; height: 12px; }

/* ---------- 企業情報 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.value { padding: 40px 32px 44px; }
.value + .value { border-left: 1px solid var(--line); }
.value__num { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.value__title { margin-top: 14px; font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.value__text { margin-top: 12px; font-size: 14.5px; line-height: 1.9; color: var(--sub); }
@media (max-width: 799px) { .values { grid-template-columns: 1fr; } .value { padding: 28px 0 30px; } .value + .value { border-left: 0; border-top: 1px solid var(--line); } }

.mission { text-align: center; }
.mission .label { justify-content: center; }
.mission__text { margin: 32px auto 0; max-width: 24em; font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; line-height: 1.7; color: var(--ink); }

.map { margin-top: 40px; border-radius: 4px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25); }
@media (max-width: 699px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- 事業内容 ---------- */
.svc { padding-block: var(--sec); }
.svc + .svc { border-top: 1px solid var(--line); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.svc:nth-of-type(even) .svc__media { order: 2; }
.svc__media { position: sticky; top: calc(var(--header-h) + 32px); }
.svc__no { display: flex; align-items: center; gap: 16px; font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.svc__no b { font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.svc__title { margin-top: 20px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.4; color: var(--ink); }
.svc__catch { margin-top: 14px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; color: var(--brand); line-height: 1.7; }
.svc__body { margin-top: 28px; }
.checks { margin-top: 36px; border-top: 1px solid var(--line-strong); }
.checks li { position: relative; padding: 18px 0 18px 38px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); line-height: 1.7; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.8); transform-origin: left top; margin-top: 4px; }
.svc__cta { margin-top: 40px; }
@media (max-width: 899px) { .svc__grid { grid-template-columns: 1fr; } .svc__media { position: static; order: 0 !important; } }

/* ---------- AI健康診断 ---------- */
.diag { max-width: 880px; margin-inline: auto; }
.q { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 1px solid var(--line-strong); }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { display: flex; gap: 18px; align-items: baseline; padding: 0; font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--ink); line-height: 1.6; }
.q legend .en { flex: none; font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.opts { margin-top: 22px; display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 14px 20px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font-size: 15px; line-height: 1.6; transition: border-color .25s, background .25s, box-shadow .25s; }
.opt span::before { content: ""; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; transition: border-color .25s, border-width .25s; }
.opt:hover span { border-color: var(--accent); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink); font-weight: 500; }
.opt input:checked + span::before { border-color: var(--accent); border-width: 6px; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.diag__run { margin-top: 12px; padding-top: 40px; border-top: 1px solid var(--line-strong); text-align: center; }
.diag__note { margin-top: 14px; font-size: 13px; color: var(--sub); }
.diag__err { margin-top: 14px; font-size: 14px; font-weight: 500; color: #c0392b; min-height: 1.6em; }
.result { margin-top: 56px; padding: clamp(28px, 4.6vw, 56px); border-radius: 6px; background: var(--brand); color: #fff; }
.result[hidden] { display: none; }
.result__badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; }
.result__title { margin-top: 20px; font-size: clamp(21px, 2.8vw, 30px); font-weight: 700; line-height: 1.6; }
.result__text { margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.result__meter { margin-top: 28px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.result__meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: #8fb8ff; transition: width 1.4s var(--ease) .2s; }
.result__small { margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, .62); }

/* ---------- フォーム ---------- */
.form { max-width: 820px; margin-inline: auto; }
.field { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 12px 24px; align-items: start; }
.field:first-of-type { border-top: 1px solid var(--line-strong); }
.field label, .field .field__label { padding-top: 13px; font-weight: 700; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.req, .opt-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 2px; line-height: 1.3; letter-spacing: .06em; }
.req { background: var(--brand); color: #fff; }
.opt-tag { background: var(--bg-soft); color: var(--sub); border: 1px solid var(--line); }
.input { width: 100%; min-height: 54px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font-size: 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.input::placeholder { color: #a9b2c2; }
.input:hover { border-color: #9aa6ba; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 82, 204, .14); }
textarea.input { min-height: 200px; resize: vertical; }
select.input { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1730' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.hp { position: absolute; left: -9999px; }
.form__agree { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line-strong); text-align: center; font-size: 14.5px; }
.form__agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form__submit { margin-top: 28px; text-align: center; }
.form__submit .btn { min-width: min(100%, 340px); border-radius: 999px; }
.btn[disabled] { opacity: .55; cursor: default; }
.notice { margin-top: 28px; padding: 18px 22px; border-radius: 4px; font-size: 15px; font-weight: 500; line-height: 1.8; }
.notice[hidden] { display: none; }
.notice--ok { background: #eaf7ef; color: #14613a; border: 1px solid #bfe3cd; }
.notice--ng { background: #fdeeee; color: #a02a2a; border: 1px solid #f3c7c7; }
@media (max-width: 799px) { .field { grid-template-columns: 1fr; padding: 22px 0; } .field label, .field .field__label { padding-top: 0; } }

/* ---------- 文書（プライバシーポリシー） ---------- */
.doc { max-width: 820px; margin-inline: auto; }
.doc h2 { margin-top: 56px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.doc p { margin-top: 18px; }
.doc ul { margin-top: 14px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .9em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc__sign { margin-top: 56px; text-align: right; font-size: 14.5px; color: var(--sub); }

.notfound { text-align: center; padding-block: clamp(80px, 14vw, 180px); }
.notfound__code { font-family: var(--font-en); font-size: clamp(72px, 14vw, 160px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--line-strong); }

/* ==========================================================================
   アニメーション（JS有効時のみ / 動きを減らす設定では無効）
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.js [data-reveal="img"] img { transform: scale(1.12); transition: transform 1.8s var(--ease) var(--d, 0s); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"].is-in img { transform: none; }
.js .card[data-reveal].is-in:hover .card__img img { transform: scale(1.05); transition-duration: 1.1s; transition-delay: 0s; }

.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .hero [data-hero] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) var(--d, .4s), transform .9s var(--ease) var(--d, .4s); }
.js .is-loaded.hero [data-hero] { opacity: 1; transform: none; }
.js .hero__visual { clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease) .15s; }
.js .hero__visual img { transform: scale(1.1); transition: transform 2.4s var(--ease) .15s; }
.js .is-loaded .hero__visual { clip-path: inset(0 0 0 0); }
.js .is-loaded .hero__visual img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero [data-hero], .js .hero__title .line > span { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="img"], .js .hero__visual { clip-path: none !important; }
  .js [data-reveal="img"] img, .js .hero__visual img { transform: none !important; }
}

@media print {
  .header, .cta, .hero__scroll, .menu-btn { display: none !important; }
  main { padding-top: 0; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* 見出しの折り返しを整える */
.h2, .h3, .statement, .mission__text, .phead__title, .cta__title, .banner__title, .svc__title, .result__title { text-wrap: balance; word-break: auto-phrase; }
.lead, .phead__lead, .text, .card__text, .hero__lead { text-wrap: pretty; }

/* ==========================================================================
   第2版：5本柱モチーフの演出
   ========================================================================== */

/* ---------- スクロール進捗バー（5色） ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 120; height: 3px; pointer-events: none; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80%); }

/* ---------- オープニング（初回アクセス時のみ） ---------- */
.intro { display: none; }
.js:not(.no-intro) .intro { display: block; position: fixed; inset: 0; z-index: 1000; cursor: pointer; }
.intro__panels { position: absolute; inset: 0; display: flex; }
.intro__panels i { position: relative; flex: 1; height: 118vh; margin-right: -1px; background: var(--ink); animation: introUp 1.05s cubic-bezier(.76, 0, .24, 1) forwards; animation-delay: calc(1.75s + var(--i) * .08s); }
.intro__panels i::before { content: ""; position: absolute; left: 16%; top: 0; width: 3px; height: 100%; background: var(--lc); transform: scaleY(0); transform-origin: top; animation: introLine 1s var(--ease) forwards; animation-delay: calc(.15s + var(--n) * .09s); }
.intro__panels i:nth-child(1) { --i: 2; --n: 0; --lc: var(--c1); clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
.intro__panels i:nth-child(2) { --i: 1; --n: 1; --lc: var(--c2); clip-path: polygon(0 0, 100% 0, 100% 91%, 0 95%); }
.intro__panels i:nth-child(3) { --i: 0; --n: 2; --lc: var(--c3); clip-path: polygon(0 0, 100% 0, 100% 91%, 50% 90%, 0 91%); }
.intro__panels i:nth-child(4) { --i: 1; --n: 3; --lc: var(--c4); clip-path: polygon(0 0, 100% 0, 100% 95%, 0 91%); }
.intro__panels i:nth-child(5) { --i: 2; --n: 4; --lc: var(--c5); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%); margin-right: 0; }
.intro__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; color: #fff; animation: introCenter 1.75s ease forwards; }
.intro__center svg { width: clamp(120px, 16vw, 190px); height: auto; overflow: visible; }
.intro__center svg path, .intro__center svg line { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: introPillar .8s var(--ease) forwards; }
.intro__center svg path:nth-of-type(1), .intro__center svg line:nth-of-type(1) { animation-delay: .35s; }
.intro__center svg path:nth-of-type(2), .intro__center svg line:nth-of-type(2) { animation-delay: .43s; }
.intro__center svg path:nth-of-type(3), .intro__center svg line:nth-of-type(3) { animation-delay: .51s; }
.intro__center svg path:nth-of-type(4), .intro__center svg line:nth-of-type(4) { animation-delay: .59s; }
.intro__center svg path:nth-of-type(5), .intro__center svg line:nth-of-type(5) { animation-delay: .67s; }
.intro__name { font-family: var(--font-en); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .02em; line-height: 1; opacity: 0; animation: introFade .7s var(--ease) .95s forwards; }
.intro__tag { font-family: var(--font-en); font-weight: 600; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .6); opacity: 0; animation: introFade .7s var(--ease) 1.1s forwards; }
.intro.is-skip .intro__panels i { animation-delay: calc(var(--i) * .06s); }
.intro.is-skip .intro__center { animation: introOut .3s ease forwards; }
@keyframes introUp { to { transform: translateY(-119vh); } }
@keyframes introLine { to { transform: scaleY(1); } }
@keyframes introPillar { to { transform: scaleY(1); } }
@keyframes introFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes introCenter { 0%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes introOut { to { opacity: 0; } }

/* ---------- ヒーロー：流れる5色の線 ---------- */
.hero { overflow: hidden; }
.hero__grid { position: relative; z-index: 1; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__lines path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero__lines path { transition: stroke-dashoffset 2.6s var(--ease) calc(.5s + var(--k) * .14s); }
.hero.is-loaded .hero__lines path { stroke-dashoffset: 0; }
.hero__lines g { animation: drift 11s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(-10px); } to { transform: translateY(12px); } }
html:not(.js) .hero__lines path { stroke-dashoffset: 0; }
@media (max-width: 1023px) { .hero__lines { display: none; } }
.hero__title .line > span em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 流れる英字帯 ---------- */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 52px) 0; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); font-family: var(--font-en); font-weight: 800; font-size: clamp(64px, 11vw, 150px); line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; }
.marquee__track span::after { content: ""; width: clamp(10px, 1.2vw, 16px); aspect-ratio: 1; border-radius: 50%; background: var(--dot, var(--c1)); }
.marquee__track span:nth-child(4n+2) { --dot: var(--c2); } .marquee__track span:nth-child(4n+3) { --dot: var(--c4); } .marquee__track span:nth-child(4n) { --dot: var(--c5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 濃紺セクション ---------- */
.section--navy { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--navy::before { content: ""; position: absolute; right: -12%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 82, 204, .42), rgba(0, 82, 204, 0)); pointer-events: none; }
.section--navy .container { position: relative; }
.section--navy .label { color: #8fb8ff; }
.section--navy .statement, .section--navy .h3, .section--navy .h2, .section--navy .point__title { color: #fff; }
.section--navy .statement em { background: linear-gradient(transparent 66%, rgba(0, 110, 255, .55) 66%); }
.section--navy .stat, .section--navy .points { border-top-color: rgba(255, 255, 255, .16); }
.section--navy .point + .point { border-color: rgba(255, 255, 255, .16); }
.section--navy .point__num { color: #8fb8ff; }
.section--navy .point__text { color: rgba(255, 255, 255, .64); }
.section--navy .stat__num { color: #fff; }
.section--navy .stat__cap { color: rgba(255, 255, 255, .64); }
.section--navy .link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.section--navy .link:hover { color: #8fb8ff; border-color: #8fb8ff; }
.pillars { position: absolute; inset: 0; display: flex; justify-content: space-between; padding-inline: 6%; pointer-events: none; }
.pillars i { width: 1px; height: 100%; background: linear-gradient(var(--lc), transparent 70%); opacity: .5; transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) calc(var(--n) * .12s); }
.pillars i:nth-child(1) { --lc: var(--c1); --n: 0; } .pillars i:nth-child(2) { --lc: var(--c2); --n: 1; } .pillars i:nth-child(3) { --lc: var(--c3); --n: 2; } .pillars i:nth-child(4) { --lc: var(--c4); --n: 3; } .pillars i:nth-child(5) { --lc: var(--c5); --n: 4; }
.pillars.is-in i, html:not(.js) .pillars i { transform: none; }
.js .pillars[data-reveal] { opacity: 1; transform: none; }

/* ---------- 事業ごとの色 ---------- */
.quick__link::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--sc, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.quick__link:hover::before { transform: scaleX(1); }
.card__img { position: relative; }
.card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sc, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card:hover .card__img::after { transform: scaleX(1); }
.card__meta b { color: var(--sc, var(--ink)); font-size: 15px; }
.svc__no b { position: relative; padding-bottom: 10px; }
.svc__no b::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sc, var(--accent)); }
.svc .figure::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sc, var(--accent)); }
.value { position: relative; }
.value::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--sc, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) var(--d, 0s); }
.value.is-in::before, html:not(.js) .value::before { transform: scaleX(1); }

/* ---------- ラベルの線が伸びる ---------- */
.js .label[data-reveal]::before { width: 0; transition: width .9s var(--ease) calc(var(--d, 0s) + .25s); }
.js .label[data-reveal].is-in::before { width: 28px; }

/* ---------- 下層ページ見出しの背景英字 ---------- */
.phead { position: relative; overflow: hidden; }
.phead .container { position: relative; z-index: 1; }
.phead__ghost { position: absolute; right: -.04em; bottom: -.2em; z-index: 0; font-family: var(--font-en); font-weight: 800; font-size: clamp(88px, 17vw, 250px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #e9edf3; pointer-events: none; }
.js .phead__ghost[data-reveal] { transform: translateX(60px); transition-duration: 1.6s; }
.js .phead__ghost[data-reveal].is-in { transform: none; }
.phead::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80%); transform: scaleX(0); transform-origin: left; animation: pheadBar 1.4s var(--ease) .3s forwards; }
@keyframes pheadBar { to { transform: scaleX(.16); } }

/* ---------- CTA：ホバーで濃紺に反転 ---------- */
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--brand); transform: translateY(101%); transition: transform .7s var(--ease); }
.cta:hover::before { transform: none; }
.cta .container { position: relative; }
.cta .label, .cta__title, .cta__text { transition: color .5s; }
.cta:hover .label { color: #8fb8ff; } .cta:hover .cta__title { color: #fff; } .cta:hover .cta__text { color: rgba(255, 255, 255, .78); }
.cta:hover .cta__circle { background: #fff; color: var(--brand); }

/* ---------- ページ切り替え ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
.header { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  .hero__lines path { stroke-dashoffset: 0 !important; }
  .pillars i, .value::before { transform: none !important; }
  .phead::after { transform: scaleX(.16) !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ==========================================================================
   第3版：4事業・資料ダウンロード
   ========================================================================== */
@media (min-width: 1024px) {
  .quick__list--4 { grid-template-columns: repeat(4, 1fr); }
  .quick__list--4 .quick__link { padding-inline: clamp(18px, 2vw, 32px); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .quick__list--4 { grid-template-columns: repeat(2, 1fr); }
  .quick__list--4 .quick__item + .quick__item { border-top: 0; border-left: 0; }
  .quick__list--4 .quick__item:nth-child(even) { border-left: 1px solid var(--line); }
  .quick__list--4 .quick__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.cards--4 { grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }
.cards--4 .card__title { font-size: 20px; }
.cards--4 .card__text { font-size: 14px; }
@media (max-width: 1099px) { .cards--4 { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; } }
@media (max-width: 599px) { .cards--4 { grid-template-columns: 1fr; } }

.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.banner__actions .btn { margin-top: 0; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.sublinks { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.sublinks a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 4px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); transition: color .3s, padding .4s var(--ease), background .3s; }
.sublinks a b { color: var(--ink); font-weight: 700; }
.sublinks a:hover { color: var(--accent); padding-inline: 14px 10px; background: var(--bg-soft); }
.sublinks a:hover b { color: var(--accent); }
.sublinks .arrow { color: var(--accent); }

/* 資料ダウンロード */
.dlpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 899px) { .dlpage { grid-template-columns: 1fr; } }
.doccard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 10; padding: clamp(24px, 3.4vw, 40px); border-radius: 6px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: 18px 18px 0 var(--bg-soft); }
.doccard::before { content: ""; position: absolute; right: -20%; top: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 82, 204, .6), rgba(0, 82, 204, 0)); }
.doccard > * { position: relative; }
.doccard__tag { position: absolute; left: clamp(24px, 3.4vw, 40px); top: clamp(22px, 3vw, 34px); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #8fb8ff; }
.doccard__brand { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .72); }
.doccard__title { margin-top: 8px; font-size: clamp(19px, 2.3vw, 27px); font-weight: 700; line-height: 1.55; }
.doccard .five { margin-top: 20px; width: 96px; }
.dlpage__form { padding: clamp(24px, 3.6vw, 44px); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.form--stack { max-width: none; }
.form--stack .field { grid-template-columns: 1fr; gap: 8px; padding: 0 0 20px; border: 0; }
.form--stack .field:first-of-type { border: 0; }
.form--stack .field label { padding-top: 0; font-size: 14px; }
.form--stack .input { min-height: 50px; }
.agree { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 14.5px; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; accent-color: var(--brand); }
.agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form--stack .form__submit { margin-top: 22px; }
.form--stack .notice { margin-top: 18px; font-size: 14px; padding: 12px 16px; }
.form__note { margin-top: 14px; font-size: 12.5px; line-height: 1.8; color: var(--sub); text-align: center; }
.dldone[hidden], .form[hidden] { display: none; }


/* ==========================================================================
   第4版：メンバー・採用情報
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 799px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; height: 100%; background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.tile__img { overflow: hidden; }
.tile__img img { width: 100%; aspect-ratio: 20 / 11; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__body { padding: clamp(24px, 3vw, 36px); }
.tile__title { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: var(--ink); }
.tile__text { margin-top: 10px; font-size: 14.5px; line-height: 1.9; color: var(--sub); }

.message { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 899px) { .message { grid-template-columns: 1fr; } }
.message__photo .figure img { aspect-ratio: 20 / 11; }
.message__photo .figure { box-shadow: 18px 18px 0 var(--bg-soft); }
.message__sign { margin-top: 40px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; color: var(--ink); }
.message__sign span { font-size: 14px; color: var(--sub); }
.message__sign b { font-size: 24px; font-weight: 700; letter-spacing: .1em; }
.message__sign i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--mute); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4.4vw, 60px) clamp(20px, 3vw, 40px); }
@media (max-width: 699px) { .people { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }
.person__img { position: relative; overflow: hidden; border-radius: 4px; background: var(--line); }
.person__img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .person__img img { transform: scale(1.05); }
.person__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.person:hover .person__img::after { transform: scaleX(1); }
.person:nth-child(5n+1) .person__img::after { background: var(--c1); } .person:nth-child(5n+2) .person__img::after { background: var(--c2); } .person:nth-child(5n+3) .person__img::after { background: var(--c3); } .person:nth-child(5n+4) .person__img::after { background: var(--c4); } .person:nth-child(5n) .person__img::after { background: var(--c5); }
.person__role { margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--accent); }
.person__name { margin-top: 2px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: .08em; color: var(--ink); line-height: 1.5; }
.person__en { margin-top: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--mute); }

.dl small { font-size: 13.5px; color: var(--sub); }
.entry { margin-top: clamp(48px, 7vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4.4vw, 56px); border-radius: 6px; background: var(--brand); color: #fff; }
.entry .label { color: #9cc1ff; }
.entry__title { margin-top: 14px; font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; line-height: 1.5; }
.entry__text { margin-top: 8px; max-width: 34em; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.entry .btn { margin-top: 0; }
.anchors .arrow { width: 14px; height: 8px; }


/* 写真の出現：枠ではなく画像側を切り抜く（枠ごと切り抜くと表示判定が働かないため） */
.js [data-reveal="img"], .js [data-reveal="img"].is-in { clip-path: none; }
.js [data-reveal="img"] img { clip-path: inset(0 100% 0 0); transform: scale(1.12); transition: clip-path 1.2s var(--ease) var(--d, 0s), transform 1.8s var(--ease) var(--d, 0s); }
.js [data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal="img"] img { clip-path: none !important; } }
@media print { .js [data-reveal="img"] img { clip-path: none !important; transform: none !important; } }

/* メンバー4名：4列 */
.people { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 899px) { .people { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }


/* ==========================================================================
   第5版：資料を選んでダウンロード
   ========================================================================== */
.docpick { display: grid; gap: 16px; margin-top: 28px; }
.docopt { position: relative; display: block; cursor: pointer; }
.docopt input { position: absolute; opacity: 0; inset: 0; }
.docopt__card { position: relative; display: block; padding: 24px 26px 26px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .3s, background .4s, color .4s, box-shadow .3s; }
.docopt__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line-strong); transition: background .3s; }
.docopt:hover .docopt__card { border-color: var(--accent); }
.docopt__top { display: flex; align-items: center; justify-content: space-between; }
.docopt__tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.docopt__check { width: 24px; height: 24px; border: 1.5px solid var(--line-strong); border-radius: 50%; position: relative; transition: background .3s, border-color .3s; }
.docopt__check::after { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease); }
.docopt__brand { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--sub); }
.docopt__title { display: block; margin-top: 2px; font-size: clamp(19px, 2.1vw, 23px); font-weight: 700; line-height: 1.5; color: var(--ink); }
.docopt__text { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: var(--sub); }
.docopt input:checked + .docopt__card { border-color: var(--brand); background: var(--ink); box-shadow: 12px 12px 0 var(--bg-soft); }
.docopt input:checked + .docopt__card::before { background: linear-gradient(var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80%); }
.docopt input:checked + .docopt__card .docopt__tag { color: #8fb8ff; }
.docopt input:checked + .docopt__card .docopt__brand { color: rgba(255, 255, 255, .7); }
.docopt input:checked + .docopt__card .docopt__title { color: #fff; }
.docopt input:checked + .docopt__card .docopt__text { color: rgba(255, 255, 255, .78); }
.docopt input:checked + .docopt__card .docopt__check { background: var(--accent); border-color: var(--accent); }
.docopt input:checked + .docopt__card .docopt__check::after { transform: rotate(-45deg) scale(1); }
.docopt input:focus-visible + .docopt__card { outline: 2px solid var(--accent); outline-offset: 3px; }


/* ==========================================================================
   第6版：スポンサーシップ（鹿児島レブナイズ）
   ========================================================================== */
.court { stroke: currentColor; stroke-width: 2; }
.sp-hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 150px); background: #0c0c0e; color: #fff; }
.sp-hero .court { position: absolute; right: -4%; top: 50%; width: min(64%, 760px); transform: translateY(-50%) rotate(-8deg); color: rgba(255, 255, 255, .13); }
.sp-hero::before { content: ""; position: absolute; left: -10%; bottom: -70%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 16, 46, .38), rgba(200, 16, 46, 0)); }
.sp-hero .container { position: relative; }
.sp-hero__tag { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: #d9b545; }
.sp-hero__tag::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.sp-hero__title { margin-top: 24px; font-size: clamp(34px, 5.6vw, 74px); font-weight: 900; line-height: 1.3; letter-spacing: .03em; }
.sp-hero__title span { font-size: .56em; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .86); }
.sp-hero__lead { margin-top: 28px; font-size: clamp(15px, 1.5vw, 17.5px); color: rgba(255, 255, 255, .8); }
.sp-hero__bar { display: flex; width: 120px; height: 4px; margin-top: 40px; }
.sp-hero__bar i { flex: 1; }
.sp-hero__bar i:nth-child(1) { background: #fff; } .sp-hero__bar i:nth-child(2) { background: #c8102e; } .sp-hero__bar i:nth-child(3) { background: #c9a227; }
@media (max-width: 767px) { .sp-hero .court { width: 120%; right: -40%; opacity: .7; } }
.sp-colors { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-colors i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }
.sp-colors i:not(:first-child) { margin-left: 14px; }
.sp-links { max-width: 720px; margin-top: 48px; }
.sp-note { margin-top: 28px; font-size: 12.5px; line-height: 1.8; color: var(--sub); }

.tiles--3 { grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.tiles--3 .tile__title { font-size: clamp(20px, 2vw, 24px); }
@media (max-width: 999px) { .tiles--3 { grid-template-columns: 1fr; } }
.tile__img--sp { position: relative; aspect-ratio: 20 / 11; background: #0c0c0e; color: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.tile__img--sp .court { position: absolute; width: 78%; transform: rotate(-8deg); transition: transform 1.2s var(--ease); }
.tile:hover .tile__img--sp .court { transform: rotate(-4deg) scale(1.06); }
.tile__img--sp span { position: relative; font-size: clamp(13px, 1.3vw, 16px); font-weight: 800; letter-spacing: .24em; color: #fff; padding-bottom: 10px; border-bottom: 3px solid #c8102e; }


/* 事実の数字（3つ並び） */
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 4vw, 56px); margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts__num { font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts__num small { margin-left: 4px; font-family: var(--font-jp); font-size: .34em; font-weight: 700; letter-spacing: .04em; }
.facts__cap { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--sub); }
.section--navy .facts { border-top-color: rgba(255, 255, 255, .16); }
.section--navy .facts__num { color: #fff; }
.section--navy .facts__cap { color: rgba(255, 255, 255, .64); }
@media (max-width: 479px) { .facts { gap: 18px; } .facts__num { font-size: 34px; } }


/* ==========================================================================
   第7版：ゲーム事業「ルーンクレスト」
   ========================================================================== */
.soon { display: inline-block; margin-left: 12px; padding: 3px 9px; border: 1px solid currentColor; border-radius: 2px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #a87b12; vertical-align: 2px; white-space: nowrap; }
@media (min-width: 1100px) {
  .cards--5 { grid-template-columns: repeat(6, 1fr); row-gap: clamp(40px, 4.4vw, 64px); }
  .cards--5 > li { grid-column: span 2; }
  .cards--5 > li:nth-child(n+4) { grid-column: span 3; }
  .cards--5 > li:nth-child(n+4) .card__img img { aspect-ratio: 20 / 9; }
}
@media (min-width: 600px) and (max-width: 1099px) { .cards--5 > li:last-child { grid-column: 1 / -1; } .cards--5 > li:last-child .card__img img { aspect-ratio: 20 / 9; } }

.rc-hero, .rc-dark { position: relative; overflow: hidden; background: #0b0910; color: #fff; }
.rc-hero { padding-block: clamp(64px, 9vw, 120px); }
.rc-hero::before { content: ""; position: absolute; left: 50%; top: -30%; width: min(1400px, 130%); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(110, 70, 190, .42), rgba(110, 70, 190, 0)); pointer-events: none; }
.rc-hero::after { content: ""; position: absolute; left: 50%; bottom: -34%; width: min(1100px, 110%); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(210, 150, 60, .22), rgba(210, 150, 60, 0)); pointer-events: none; }
.rc-hero .container { position: relative; z-index: 1; }
.rc-hero__head { text-align: center; }
.rc-soon { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px; border: 1px solid rgba(236, 200, 120, .6); border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .3em; color: #ecc878; }
.rc-soon i { width: 7px; height: 7px; border-radius: 50%; background: #ecc878; animation: rcPulse 1.8s ease-in-out infinite; }
@keyframes rcPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .rc-soon i { animation: none; } }
.rc-hero__en { margin-top: 34px; font-size: clamp(12px, 1.3vw, 15px); font-weight: 600; letter-spacing: .6em; text-indent: .6em; color: #ecc878; }
.rc-hero__title { margin-top: 10px; font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; font-size: clamp(40px, 8vw, 104px); font-weight: 600; line-height: 1.25; letter-spacing: .12em; text-indent: .12em; background: linear-gradient(180deg, #fff3cf 10%, #e9c06a 55%, #b9822c 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-hero__lead { margin-top: 18px; font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; font-size: clamp(15px, 1.9vw, 22px); letter-spacing: .14em; color: rgba(255, 255, 255, .86); }
.rc-video { max-width: 1040px; margin: clamp(36px, 5vw, 60px) auto 0; padding: 6px; border: 1px solid rgba(236, 200, 120, .45); border-radius: 10px; background: rgba(255, 255, 255, .04); box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.rc-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: #000; }
.rc-hero__note { margin-top: 16px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

.rc-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 899px) { .rc-feats { grid-template-columns: 1fr; } }
.rc-feats li { position: relative; padding: 34px 30px 36px; border: 1px solid var(--line-strong); border-top: 3px solid var(--c5); border-radius: 4px; background: #fff; }
.rc-feats__no { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: #a87b12; }
.rc-feats h3 { margin-top: 14px; font-size: clamp(19px, 2vw, 22px); font-weight: 700; line-height: 1.5; color: var(--ink); }
.rc-feats li > p:last-child { margin-top: 12px; font-size: 14.5px; line-height: 1.95; color: var(--sub); }

.rc-dark { padding-block: clamp(72px, 10vw, 130px); }
.rc-dark .label { color: #ecc878; }
.rc-dark .h2 { color: #fff; }
.rc-heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 24px); }
@media (max-width: 799px) { .rc-heroes { grid-template-columns: repeat(2, 1fr); } }
.rc-heroes li { position: relative; overflow: hidden; border-radius: 6px; border: 1px solid rgba(236, 200, 120, .3); background: #14101e; }
.rc-heroes img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; transition: transform 1.1s var(--ease); }
.rc-heroes li:hover img { transform: scale(1.06); }
.rc-heroes p { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px; background: linear-gradient(180deg, rgba(11, 9, 16, 0), rgba(11, 9, 16, .92)); font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; }
.rc-heroes small { display: block; font-size: 11.5px; letter-spacing: .1em; color: #ecc878; }
.rc-heroes b { display: block; margin-top: 2px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: .12em; color: #fff; }

.rc-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 36px); max-width: 1080px; margin-inline: auto; }
@media (max-width: 699px) { .rc-shots { grid-template-columns: repeat(2, 1fr); } }
.rc-shots img { display: block; width: 100%; height: auto; border-radius: 18px; border: 5px solid #17131f; box-shadow: 0 24px 50px rgba(11, 23, 48, .2); }
.rc-shots p { margin-top: 14px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); }
@media (min-width: 1200px) { .quick__list { grid-template-columns: repeat(5, 1fr); } .quick__link { padding-inline: clamp(16px, 1.8vw, 30px); } .quick__title { font-size: 17.5px; } .quick__text { font-size: 13.5px; } }
@media (min-width: 1024px) and (max-width: 1199px) { .quick__list { grid-template-columns: repeat(6, 1fr); } .quick__item { grid-column: span 2; } .quick__item:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); } .quick__item:nth-child(4) { border-left: 0; } }
@media (min-width: 600px) and (max-width: 1023px) { .quick__list--4 .quick__item:nth-child(5) { grid-column: 1 / -1; border-left: 0; } }

/* スマホメニュー：ヘッダーのぼかし（backdrop-filter）が固定配置の基準になり、メニューの高さが0になっていたのを修正 */
@media (max-width: 899px) {
  .gnav { position: absolute; inset: 100% 0 auto 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}
