@charset "UTF-8";
/* ============================================================
   HUMEDIA Japan. - style.css
   方向: スイス/グリッド(a-light) 7 : マキシマル/ポップ(321) 3
   トークン: 白 × 墨紺 × コバルトブルー
   シグネチャー: 「Human capital × Media」の «×» 記号
   構成: 1.トークン → 2.リセット/ベース → 3.レイアウト
        → 4.共通コンポーネント → 5.ページ固有 → 6.モーション → 7.停止ポリシー
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f3f6fb;
  --color-text: #0b1020;
  --color-muted: #5a6478;
  --color-accent: #0642d6;      /* コバルトブルー */
  --color-accent-deep: #032b96;
  --color-accent-ink: #ffffff;
  --color-sky: #9db9ff;
  --color-line: #dce3ef;
  --color-ink: #0b1020;

  --font-display: "Archivo", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --space: 8px;
  --section-pad: clamp(72px, 12vw, 150px);
  --container: 1160px;
  --container-narrow: 760px;
  --radius: 2px;

  --z-header: 100;
  --z-nav: 200;
  --z-modal: 1000;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.8s;
}

/* ---------- 2. リセット/ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

::selection { background: var(--color-accent); color: #fff; }

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { opacity: 0.7; transition: opacity 0.3s; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ---------- 3. レイアウト ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - 48px); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 40px); margin-inline: auto; }

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--surface { background: var(--color-surface); }

/* コバルト面(スクロールのリズムを作る色の幕) */
.section--cobalt {
  background: linear-gradient(160deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  color: #fff;
}
.section--cobalt .section-head__en { color: var(--color-sky); }
.section--cobalt .section-head__sub,
.section--cobalt p { color: rgba(255, 255, 255, 0.82); }
.section--cobalt h2, .section--cobalt h3 { color: #fff; }
.section--cobalt .ghost-word { -webkit-text-stroke-color: rgba(255, 255, 255, 0.2); }
.section--cobalt .arrow-link { color: #fff; }
.section--cobalt :focus-visible { outline-color: #fff; }

/* セクション見出し: «×» シグネチャーを英字ラベルに前置 */
.section-head { margin-bottom: calc(var(--space) * 7); }
.section-head__en {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: calc(var(--space) * 2);
}
.section-head__title { font-size: clamp(32px, 5.6vw, 66px); line-height: 1.25; font-family: var(--font-body); font-weight: 900; text-wrap: balance; }
.section-head__sub { margin-top: calc(var(--space) * 2); color: var(--color-muted); max-width: 40em; font-size: 15px; }
.section-head--center { text-align: center; }
.section-head--center .section-head__en { justify-content: center; }
.section-head--center .section-head__sub { margin-inline: auto; }

/* 背景の巨大英字(セクションの奥行き) */
.ghost-word {
  position: absolute; right: 0; top: 0.02em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(80px, 17vw, 250px); line-height: 1; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--color-line);
  pointer-events: none; user-select: none; white-space: nowrap;
  overflow: hidden; max-width: 100%;
}
@media (max-width: 599px) { .ghost-word { display: none; } }

/* ---------- 4. 共通コンポーネント ---------- */

/* ヘッダー: 白地+右端の色面CTAブロック(a-light移植) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; justify-content: space-between; align-items: stretch;
  min-height: 68px;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-line);
}
/* メニュー展開中はblurを外す:
   backdrop-filterは子孫のposition:fixedの基準を自身に変えてしまうため、
   スクロール後にメニュー背景がヘッダー高さ分しか描画されない不具合の対策 */
.site-header.is-nav-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__logo {
  display: flex; align-items: center;
  padding: 10px clamp(20px, 3vw, 40px);
  font-family: var(--font-display); font-weight: 800;
  font-size: 21px; letter-spacing: 0.03em;
  text-decoration: none; line-height: 1.15;
}
.site-header__logo .logo-x { color: var(--color-accent); }
.site-header__logo small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.28em; color: var(--color-muted);
}
.site-header__right { display: flex; align-items: stretch; }

.global-nav { display: flex; align-items: center; }
.global-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; padding: 0 clamp(16px, 2vw, 32px); }
.global-nav a {
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.14em; text-align: center;
}
.global-nav a small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 10px; letter-spacing: 0.04em; color: var(--color-muted); line-height: 1.5; }
.global-nav a[aria-current="page"] { color: var(--color-accent); }

/* ヘッダー右端の色面CTA */
.header-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 clamp(18px, 2.4vw, 34px);
  background: var(--color-accent); color: var(--color-accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.14em;
  text-decoration: none; text-align: center; line-height: 1.5;
  transition: background 0.3s;
}
.header-cta small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 10px; letter-spacing: 0.08em; opacity: 0.85; }
.header-cta:hover { background: var(--color-accent-deep); opacity: 1; }
.header-cta--ink { background: var(--color-ink); }
.header-cta--ink:hover { background: #23283a; }

/* ハンバーガー(SP) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: calc(var(--z-nav) + 1);
  align-self: center; margin-right: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--color-text); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; z-index: var(--z-nav);
    background: var(--color-bg);
    display: grid; place-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; text-align: center; gap: calc(var(--space) * 3); }
  .global-nav a { font-size: 20px; }
  .header-cta { font-size: 12px; padding-inline: 16px; }
  .header-cta--ink { display: none; }
}

/* ボタン */
.button {
  display: inline-block;
  padding: 18px 52px;
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 1px solid var(--color-accent); border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none;
  cursor: pointer;
  position: relative; overflow: hidden; z-index: 0;
  transition: color 0.3s, border-color 0.3s;
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--color-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.button:hover { opacity: 1; border-color: var(--color-ink); }
.button:hover::before { transform: scaleX(1); }
.button:disabled { opacity: 0.5; cursor: wait; }
/* コバルト面上は白ボタン(cta-bandと同トーン) */
.section--cobalt .button { background: #fff; color: var(--color-ink); border-color: #fff; }
.section--cobalt .button::before { background: var(--color-ink); }
.section--cobalt .button:hover { color: #fff; border-color: #fff; }
.button--ink { background: var(--color-ink); border-color: var(--color-ink); }
.button--ink::before { background: var(--color-accent); }
.button--ink:hover { border-color: var(--color-accent); }

/* 矢印つきテキストリンク */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  text-decoration: none; color: var(--color-accent);
}
.arrow-link::after { content: "\2192"; transition: transform 0.3s var(--ease-out); }
.arrow-link:hover::after { transform: translateX(6px); }

/* 下層ページヘッダー */
.page-header { padding: calc(68px + var(--section-pad) * 0.55) 0 calc(var(--section-pad) * 0.35); position: relative; overflow: hidden; }
.page-header__en {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--color-accent);
}
.page-header__title { font-size: clamp(36px, 6vw, 76px); margin-top: calc(var(--space) * 1); font-family: var(--font-body); font-weight: 900; }

.breadcrumb { padding-block: calc(var(--space) * 2); font-size: 12px; color: var(--color-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.6em; list-style: none; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.6em; }
.breadcrumb a { text-decoration: none; }

/* フォーム */
.form { display: grid; gap: calc(var(--space) * 4); }
.form__field { display: grid; gap: calc(var(--space) * 1); }
.form__field label, .form__field .form__label { font-size: 14px; font-weight: 700; }
.form__field .required { color: var(--color-accent); font-size: 12px; margin-left: 0.5em; }
.form input, .form textarea, .form select {
  font: inherit; padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-line); border-radius: var(--radius);
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--color-accent); outline: none; }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form__error { color: #c0392b; font-size: 13px; min-height: 1.2em; }
.form__hp { position: absolute; left: -9999px; }
.form__row { display: grid; gap: calc(var(--space) * 4); grid-template-columns: 1fr 1fr; }
.form__radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.form__radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.form__radio-group input { width: auto; accent-color: var(--color-accent); }
.form__note { font-size: 12px; color: var(--color-muted); }
@media (max-width: 767px) { .form__row { grid-template-columns: 1fr; } }

/* フッター(黒面) */
.site-footer {
  background: var(--color-ink); color: #c7cede;
  padding: calc(var(--space) * 10) 0 calc(var(--space) * 4);
  font-size: 13px;
}
.site-footer a { text-decoration: none; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: calc(var(--space) * 6);
  margin-bottom: calc(var(--space) * 8);
}
.site-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; line-height: 1.2; }
.site-footer__brand .logo-x { color: var(--color-sky); }
.site-footer__brand p { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: #8a93a8; margin-top: 14px; letter-spacing: 0.06em; }
.site-footer__col h3 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.26em; color: var(--color-sky); margin-bottom: 16px; }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #262c40; padding-top: calc(var(--space) * 4); color: #8a93a8; font-size: 12px; }
@media (max-width: 767px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 5. ページ固有コンポーネント ---------- */

/* == ヒーロー: スプリット型 == */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(68px + var(--space) * 4) clamp(20px, 4vw, 56px) calc(var(--space) * 8);
  position: relative; overflow: hidden;
}
.hero__label {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.34em; color: var(--color-accent); text-transform: uppercase;
  margin-bottom: calc(var(--space) * 3);
  display: flex; align-items: center; gap: 12px;
}
.hero__label::before { content: ""; width: 34px; height: 2px; background: var(--color-accent); }
.hero__title {
  font-size: clamp(31px, 3.8vw, 58px);   /* 左カラム内に収まる最大サイズ(写真に被せない) */
  line-height: 1.25; letter-spacing: -0.01em;
  font-weight: 900;
  font-family: var(--font-body);
}
.hero__title .q { color: var(--color-accent); }
.hero__en {
  margin-top: calc(var(--space) * 2);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.2em; color: var(--color-muted);
}
.hero__en .logo-x { color: var(--color-accent); }
.hero__lead { margin-top: calc(var(--space) * 4); max-width: 29em; color: var(--color-muted); font-size: 15px; }
.hero__actions { margin-top: calc(var(--space) * 5); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero__copy { position: relative; z-index: 5; }

/* 画面幅いっぱいの背景アウトライン英字(follow.art翻案・静的) */
.hero__bigword {
  position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%);
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22vw; line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px #cdd8ea;
}
.hero__visual { z-index: 1; }
@media (max-width: 1023px) {
  .hero__bigword { top: 30%; font-size: 24vw; -webkit-text-stroke-width: 1px; }
}

/* 右: 3列の縦フロー(所属ライバーの写真が上から下へ流れ続ける) */
.hero__visual { position: relative; height: min(78vh, 700px); }
.hero__flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: 100%; }
.hero__col { overflow: hidden; }
.hero__col-inner {
  display: flex; flex-direction: column;
  animation: heroFlow var(--flow-dur, 50s) linear var(--flow-delay, 0s) infinite;
  will-change: transform;
}
.hero__col-inner a {
  display: block; flex: none;
  margin-bottom: 16px;   /* gapではなくmarginで(ループの継ぎ目を割り切れる高さにする) */
}
.hero__col-inner a:hover { opacity: 1; }
.hero__col-inner a:hover img { transform: scale(1.04); }
.hero__col-inner img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out);
}
/* 中身は同一セットを2回並べてある前提。-50%→0 で「上から下へ」切れ目なく流れる */
@keyframes heroFlow {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
/* 端のフェード(上下端で写真がふっと消える) */
.hero__col::before, .hero__col::after {
  content: ""; position: absolute; left: 0; right: 0; height: 60px; z-index: 2; pointer-events: none;
}
.hero__visual .hero__col { position: relative; }
.hero__col::before { top: 0; background: linear-gradient(to bottom, var(--color-bg), transparent); }
.hero__col::after { bottom: 0; background: linear-gradient(to top, var(--color-bg), transparent); }

/* 図形コンフェッティ(321移植・コバルト系に統制) */
.confetti { position: absolute; z-index: 2; pointer-events: none; }
.confetti--circle { width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); }
.confetti--circle-sky { width: 34px; height: 34px; border-radius: 50%; background: var(--color-sky); }
.confetti--diamond { width: 16px; height: 16px; background: var(--color-accent); rotate: 45deg; }
.confetti--triangle { width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 20px solid var(--color-ink); }
.confetti--ring { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--color-accent); background: transparent; }

.hero__scroll {
  position: absolute; left: clamp(20px, 4vw, 56px); bottom: 20px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.3em; color: var(--color-muted);
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll::after { content: ""; width: 48px; height: 1px; background: var(--color-muted); animation: scrollHint 2.2s var(--ease-out) infinite; transform-origin: left; }
@keyframes scrollHint { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* 横フロー用キーフレーム(SP) */
@keyframes heroFlowX    { from { transform: translateX(-50%); } to { transform: translateX(0); } }   /* 右へ */
@keyframes heroFlowXRev { from { transform: translateX(0); } to { transform: translateX(-50%); } }   /* 左へ */

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: calc(64px + var(--space) * 6); gap: 28px; }   /* minmax(0,)がないと写真フロー(max-content)が列幅を押し広げ、矢印リンクが画面外に切れる */
  /* SPは 写真 → テキスト の順 */
  .hero__visual { order: -1; height: auto; }
  .hero__scroll { display: none; }

  /* 3列の縦フローを、方向が互い違いの横フロー2段に組み替える */
  .hero__flow { display: block; height: auto; }
  .hero__col { position: relative; overflow: hidden; height: auto; margin-bottom: 12px; }
  .hero__col:nth-child(3) { display: none; }
  .hero__col-inner {
    flex-direction: row; width: max-content;
    animation-name: heroFlowX;
  }
  .hero__col:nth-child(2) .hero__col-inner { animation-name: heroFlowXRev; }
  .hero__col-inner a { margin: 0 12px 0 0; }
  .hero__col-inner img { width: clamp(110px, 30vw, 150px); }

  /* 端フェードを左右に付け替え */
  .hero__col::before, .hero__col::after { top: 0; bottom: 0; height: auto; width: 40px; }
  .hero__col::before { left: 0; right: auto; background: linear-gradient(to right, var(--color-bg), transparent); }
  .hero__col::after { right: 0; left: auto; background: linear-gradient(to left, var(--color-bg), transparent); }
}

/* 375px未満は改行禁止の1行目が収まるようvw追従(320pxで見出しが切れるのを防ぐ) */
@media (max-width: 374px) {
  .hero__title { font-size: clamp(22px, calc((100vw - 44px) / 10.9), 31px); }
}

/* == マーキー帯(321移植) == */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--color-line);
  padding-block: 16px;
}
.marquee__track { display: inline-flex; }
.marquee__inner {
  display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 44px);
  letter-spacing: 0.08em; color: var(--color-text);
}
.marquee__inner .logo-x { color: var(--color-accent); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee--ink { background: var(--color-ink); border: none; }
.marquee--ink .marquee__inner { color: #fff; }

/* == PHILOSOPHY: スティッキーサイド == */
/* 2026-08修正依頼: 理念はコンパクトに(見出し縮小・カード間圧縮) */
.philosophy { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 64px); }
.philosophy .section-head__title { font-size: clamp(26px, 3.6vw, 44px); }
.philosophy__side { position: sticky; top: 120px; align-self: start; }
.philosophy__list { display: grid; gap: calc(var(--space) * 3); }
.phil-card { border-top: 2px solid var(--color-ink); padding-top: calc(var(--space) * 2); }
.phil-card__no { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--color-accent); letter-spacing: 0.1em; }
.phil-card h3 { font-size: clamp(20px, 2.4vw, 27px); margin: 6px 0 14px; }
.phil-card h3 .logo-x { color: var(--color-accent); }
.phil-card p { color: var(--color-muted); font-size: 15px; }
@media (max-width: 1023px) {
  .philosophy { grid-template-columns: 1fr; }
  .philosophy__side { position: static; }
}

/* == 数字スタッツ == */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); }
.stat { background: var(--color-bg); padding: clamp(28px, 4vw, 56px); text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 10.5vw, 156px); line-height: 1; color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-family: var(--font-body); font-weight: 900; font-size: 0.3em; color: var(--color-text); margin-left: 6px; }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--color-muted); letter-spacing: 0.1em; }
@media (max-width: 599px) { .stats { grid-template-columns: 1fr; } }

/* コバルト面上のスタッツ */
.section--cobalt .stats { background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.28); }
.section--cobalt .stat { background: transparent; }
.section--cobalt .stat__num { color: #fff; }
.section--cobalt .stat__unit { color: var(--color-sky); }
.section--cobalt .stat__label { color: rgba(255, 255, 255, 0.75); }

/* == ライバー名鑑(a-light移植: 縦書き名前ラベル)。破調セクション == */
.livers-section { overflow: hidden; }
.livers__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 26px); }
.liver-card { display: grid; grid-template-columns: 24px 1fr; gap: 8px; text-decoration: none; }
.liver-card:hover { opacity: 1; }
.liver-card:nth-child(even) { margin-top: clamp(16px, 2.4vw, 36px); }  /* 名鑑にリズム */
.liver-card__name {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.22em;
  color: var(--color-text);
  padding-top: 26px; position: relative;
}
.liver-card__name::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 18px; background: var(--color-accent);
}
.liver-card__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; transition: box-shadow 0.4s var(--ease-out); }
.liver-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.liver-card:hover .liver-card__photo img { transform: scale(1.05); }

.livers__note { margin-top: calc(var(--space) * 4); font-size: 12px; color: var(--color-muted); }
@media (max-width: 1023px) { .livers__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { .livers__grid { grid-template-columns: repeat(2, 1fr); } }

/* == SERVICE: 番号つき罫線リスト == */
.services { display: grid; gap: 1px; background: var(--color-line); border-block: 1px solid var(--color-line); }
.service {
  background: var(--color-bg);
  display: grid; grid-template-columns: 110px 1fr 1.8fr; gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(24px, 3.5vw, 44px) clamp(4px, 1vw, 12px);
  transition: background 0.3s;
}
.service:hover { background: var(--color-surface); }
.service__no { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--color-accent); letter-spacing: 0.1em; }
.service__no::after { content: " \00d7"; }
.service h3 { font-size: clamp(18px, 2vw, 23px); font-family: var(--font-body); font-weight: 700; }
.service p { color: var(--color-muted); font-size: 15px; }
/* 2026-08修正依頼: SPの行間が間延びしないよう詰める */
@media (max-width: 767px) {
  .service { grid-template-columns: 1fr; gap: 6px; padding-block: 20px; }
  .service p { line-height: 1.75; }
}

/* コバルト面上のサービスリスト */
.section--cobalt .services { background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.28); }
.section--cobalt .service { background: transparent; }
.section--cobalt .service:hover { background: rgba(255, 255, 255, 0.07); }
.section--cobalt .service__no { color: var(--color-sky); }
.section--cobalt .service p { color: rgba(255, 255, 255, 0.78); }

/* == FOR LIVER: ベネフィット == */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.benefit {
  background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.benefit:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(6, 66, 214, 0.10); }
.benefit__no {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--color-accent); letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.benefit__no::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.benefit h3 { font-size: 18px; margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.benefit p { color: var(--color-muted); font-size: 14px; }
@media (max-width: 767px) { .benefits { grid-template-columns: 1fr; } }

/* == FAQ == */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); }
.faq summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none;
  font-family: var(--font-display); font-weight: 800; color: var(--color-accent); font-size: 18px;
}
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: var(--color-accent); transition: transform 0.3s var(--ease-out);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px 58px; color: var(--color-muted); font-size: 14px; }

/* == NEWS == */
/* 2026-08修正依頼: テキスト行→サムネイル付きカード形式(コンテンツ形式)に変更 */
.news-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px);
}
.news-card { display: block; text-decoration: none; color: inherit; }
.news-card__thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--color-surface); position: relative;
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
a.news-card:hover .news-card__thumb img { transform: scale(1.05); }
/* 画像なし記事用プレースホルダー(カルーセルと同じ×モチーフ) */
.news-card__thumb--ph {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  display: grid; place-content: center; text-align: center; color: #fff;
}
.news-card__thumb--ph::before {
  content: "\00d7"; position: absolute; right: -10px; bottom: -34px;
  font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.news-card__thumb--ph .ph-label { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.28em; }
.news-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.news-list time { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--color-muted); }
.news-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-align: center;
  color: var(--color-accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 12px;
}
.news-title { display: block; font-size: 15px; line-height: 1.6; margin-top: 8px; }

/* コバルト面上のニュース */
.section--cobalt .news-list time { color: rgba(255, 255, 255, 0.72); }
.section--cobalt .news-cat { color: #fff; }
.section--cobalt .news-title { color: #fff; }
.section--cobalt .news-card__thumb--ph { background: rgba(255, 255, 255, 0.1); }
.section--cobalt .empty-note { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.8); }

@media (max-width: 1023px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .news-list { grid-template-columns: 1fr; } }

/* == VIDEOS == */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.video-card { text-decoration: none; display: block; }
.video-card__thumb { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--color-surface); position: relative; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__thumb::after {
  content: "\25b6"; position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11, 16, 32, 0.78); color: #fff;
  display: grid; place-content: center; font-size: 12px; padding-left: 3px;
}
.video-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.video-card__badge {
  font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.12em;
  color: var(--color-accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px;
}
.video-card__title { font-size: 14px; font-weight: 500; margin-top: 6px; line-height: 1.6; }
@media (max-width: 1023px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .videos-grid { grid-template-columns: 1fr; } }

/* == 最新コンテンツ・カルーセル(a-light翻案: フルブリード+矢印+カウンター) == */
.videos-strip { overflow: hidden; }
.carousel {
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--color-line) transparent;
  -webkit-overflow-scrolling: touch;
}
.carousel:focus-visible { outline-offset: -2px; }
.carousel__track {
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  padding-left: max(calc((100vw - var(--container)) / 2), 20px);
  /* 最後の1枚まで左端に送れるよう、末尾に「画面幅-1枚分」の余白を確保 */
  padding-right: calc(100vw - max(calc((100vw - var(--container)) / 2), 20px) - clamp(260px, 28vw, 400px));
  padding-bottom: 10px;   /* スクロールバーと内容の呼吸 */
  width: max-content;
}
.carousel__slide {
  width: clamp(260px, 28vw, 400px); flex: none;
  scroll-snap-align: start;
  text-decoration: none; display: block;
}
.carousel__slide:hover { opacity: 1; }
.carousel__thumb {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--color-surface); position: relative; display: block;
}
.carousel__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.carousel__slide:hover .carousel__thumb img { transform: scale(1.05); }
.carousel__thumb::after {
  content: "\25b6"; position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11, 16, 32, 0.78); color: #fff;
  display: grid; place-content: center; font-size: 12px; padding-left: 3px;
}
.carousel__title { font-size: 14px; font-weight: 500; margin-top: 10px; color: var(--color-text); line-height: 1.6; }

/* プレースホルダースライド(動画データが空のとき) */
.carousel__thumb--ph {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  display: grid; place-content: center; text-align: center; color: #fff;
}
.carousel__thumb--ph::before {
  content: "\00d7"; position: absolute; right: -10px; bottom: -34px;
  font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.carousel__thumb--ph::after { content: none; }
.carousel__thumb--ph .ph-label {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.28em;
}
.carousel__thumb--ph .ph-sub { font-size: 11px; opacity: 0.75; letter-spacing: 0.1em; margin-top: 6px; }

.carousel__controls {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 20px;
}
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--color-line); background: var(--color-bg);
  font-size: 16px; color: var(--color-text); cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.carousel__btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
.carousel__counter {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.carousel__sep { margin-inline: 6px; color: var(--color-muted); }

/* == 2分岐CTA(321移植) == */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.dual-cta__panel {
  display: grid; place-content: center; text-align: center; gap: 18px;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 4vw, 64px);
  position: relative; overflow: hidden;
}
.dual-cta__panel--liver { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deep) 100%); color: #fff; }
.dual-cta__panel--client { background: var(--color-ink); color: #fff; }
.dual-cta__en { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.3em; opacity: 0.75; }
.dual-cta__title { font-size: clamp(28px, 3.8vw, 46px); font-weight: 900; font-family: var(--font-body); }
.dual-cta__text { font-size: 14px; opacity: 0.85; max-width: 30em; margin-inline: auto; }
.dual-cta__panel .button { justify-self: center; background: #fff; color: var(--color-ink); border-color: #fff; }
.dual-cta__panel .button::before { background: var(--color-ink); }
.dual-cta__panel .button:hover { color: #fff; }
.dual-cta__deco {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(120px, 16vw, 220px); line-height: 1; opacity: 0.08;
  right: -20px; bottom: -40px; pointer-events: none; user-select: none;
}
@media (max-width: 767px) { .dual-cta { grid-template-columns: 1fr; } }

/* == CTAバンド(コバルト面) == */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band__title { font-size: clamp(26px, 3.6vw, 44px); font-family: var(--font-body); font-weight: 900; }
.cta-band .button { margin-top: calc(var(--space) * 4); background: #fff; color: var(--color-ink); border-color: #fff; }
.cta-band .button::before { background: var(--color-ink); }
.cta-band .button:hover { color: #fff; }
.cta-band::after {
  content: "\00d7"; position: absolute; right: -0.1em; bottom: -0.42em;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(140px, 18vw, 260px);
  line-height: 1; color: rgba(255, 255, 255, 0.08); pointer-events: none; user-select: none;
}

/* == 会社概要テーブル == */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--color-line); vertical-align: top; font-size: 15px; line-height: 1.8; }
.company-table th { width: 180px; font-family: var(--font-display); font-weight: 700; color: var(--color-muted); letter-spacing: 0.08em; white-space: nowrap; }
@media (max-width: 599px) {
  .company-table th, .company-table td { display: block; width: auto; }
  .company-table th { border-bottom: none; padding-bottom: 4px; }
  .company-table td { padding-top: 0; }
}

/* == ライバー詳細プロフィール == */
.profile {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.profile__photo { position: relative; }
.profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.profile__photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(14px, 14px);
  background: var(--color-accent); border-radius: var(--radius);
}
.profile__en {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-accent);
}
.profile__en::before { content: "\00d7"; font-weight: 800; font-size: 17px; letter-spacing: 0; }
.profile__name { font-family: var(--font-body); font-weight: 900; font-size: clamp(36px, 5.4vw, 64px); margin-top: 4px; }
.profile__catch { font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--color-accent); margin-top: 12px; }
.profile__text { color: var(--color-muted); margin-top: 20px; max-width: 36em; white-space: pre-line; }   /* CMSの複数行入力の改行を保持 */

/* 規約系ページ(プライバシーポリシー等)の本文 */
.legal-body h2 { font-size: clamp(18px, 2vw, 22px); margin: calc(var(--space) * 5) 0 calc(var(--space) * 2); font-family: var(--font-body); font-weight: 700; }
.legal-body p, .legal-body li { color: var(--color-muted); font-size: 15px; }
.legal-body ul { padding-left: 1.5em; margin-block: calc(var(--space) * 2); }
.legal-body a { color: var(--color-accent); }
.legal-body__date { margin-top: calc(var(--space) * 6); }
.profile__sns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.sns-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
  padding: 12px 22px; border: 1px solid var(--color-line); border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.sns-btn::after { content: "\2197"; color: var(--color-accent); }
.sns-btn:hover { border-color: var(--color-accent); color: var(--color-accent); opacity: 1; }
.profile__back { margin-top: 48px; }
@media (max-width: 767px) {
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 320px; }
}

/* フィルタタブ(videos) */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: calc(var(--space) * 5); }
.filter-tab {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
  padding: 10px 24px; border: 1px solid var(--color-line); border-radius: 999px;
  background: var(--color-bg); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter-tab[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* セクションドットナビ(RGF翻案: カレント表示) */
.section-dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: calc(var(--z-header) - 1);
  display: flex; flex-direction: column; gap: 14px;
}
.section-dots a {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--color-muted); background: transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.section-dots a:hover { opacity: 1; border-color: var(--color-accent); }
.section-dots a[aria-current="true"] {
  background: var(--color-accent); border-color: var(--color-accent);
  transform: scale(1.35);
}
/* 青い幕の上では白に反転 */
.section-dots.is-invert a { border-color: rgba(255, 255, 255, 0.65); }
.section-dots.is-invert a:hover { border-color: #fff; }
.section-dots.is-invert a[aria-current="true"] { background: #fff; border-color: #fff; }
@media (max-width: 1279px) { .section-dots { display: none; } }

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 空状態 */
.empty-note { padding: clamp(32px, 5vw, 56px); text-align: center; color: var(--color-muted); border: 1px dashed var(--color-line); border-radius: var(--radius); font-size: 14px; }

/* ---------- 6. モーション基盤 ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }
.js-reveal[data-delay="4"] { transition-delay: 0.4s; }
.js-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* リビールの変奏(data-fx): セクションごとに演出を変える */
.js-reveal[data-fx="left"]  { transform: translateX(-40px); }
.js-reveal[data-fx="right"] { transform: translateX(40px); }
.js-reveal[data-fx="scale"] { transform: scale(0.94) translateY(12px); }
.js-reveal[data-fx="left"].is-inview,
.js-reveal[data-fx="right"].is-inview,
.js-reveal[data-fx="scale"].is-inview { transform: none; }

/* 写真のカーテンリビール(名鑑): 下から布がめくれるように現れる */
.liver-card.js-reveal .liver-card__photo {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.liver-card.js-reveal.is-inview .liver-card__photo { clip-path: inset(0 0 0 0); }

/* PHILOSOPHYカード: 上罫線が左から引かれてから本文が現れる */
.phil-card { border-top: none; position: relative; }
.phil-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--color-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.phil-card.is-inview::before { transform: scaleX(1); }

/* SERVICE行: 番号→見出し→本文が左から流れ込む(番号はさらに遅延) */
.service.js-reveal .service__no { transition: opacity 0.7s var(--ease-out) 0.15s, transform 0.7s var(--ease-out) 0.15s; opacity: 0; transform: translateX(-16px); }
.service.js-reveal.is-inview .service__no { opacity: 1; transform: none; }

/* 数字スタッツ: 面がふわっと拡大しながら登場(カウントアップと同時) */
.stats.js-reveal { transform: scale(0.96) translateY(16px); }
.stats.js-reveal.is-inview { transform: none; }

/* 背景の巨大英字: スクロールに合わせてゆっくり流れる(JSがtranslateYを更新) */
.ghost-word { will-change: transform; }

/* ヒーロー・ロードシーケンス */
.hero .seq { opacity: 0; }
.is-loaded .hero .seq-1 { animation: heroUp 0.9s var(--ease-out) 0.1s forwards; }
.is-loaded .hero .seq-2 { animation: heroUp 0.9s var(--ease-out) 0.25s forwards; }
.is-loaded .hero .seq-3 { animation: heroUp 0.9s var(--ease-out) 0.4s forwards; }
.is-loaded .hero .seq-4 { animation: heroUp 0.9s var(--ease-out) 0.55s forwards; }
.is-loaded .hero .seq-v { animation: heroFade 1.3s var(--ease-out) 0.35s forwards; }
@keyframes heroUp   { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

/* コンフェッティの浮遊(控えめ) */
.confetti { animation: floatY 5.2s ease-in-out infinite; }
.confetti:nth-child(odd) { animation-duration: 6.4s; animation-delay: 0.8s; }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- ロード画面(初回のみ・×シグネチャーの開演) ---------- */
.loader {
  position: fixed; inset: 0; z-index: calc(var(--z-modal) + 10);
  background: var(--color-bg);
  display: grid; place-content: center; text-align: center;
  transition: transform 0.7s var(--ease-out);
  /* 退場時に青い帯が追いかけてくる */
  box-shadow: 0 34px 0 0 var(--color-accent);
}
.loader[hidden] { display: none; }
.loader.is-done { transform: translateY(-110%); }
.loader__line { display: block; overflow: hidden; }
.loader__logo {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); letter-spacing: 0.04em; line-height: 1.1;
  color: var(--color-ink);
  transform: translateY(110%);
}
.is-loading .loader__logo { animation: loaderUp 0.7s var(--ease-out) 0.15s forwards; }
.loader__dot { color: var(--color-accent); }
.loader__x {
  display: block; margin-top: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: var(--color-accent);
  opacity: 0; transform: rotate(-120deg) scale(0.4);
}
.is-loading .loader__x { animation: loaderX 0.55s var(--ease-out) 0.8s forwards; }
.loader__sub {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.34em; color: var(--color-muted);
  opacity: 0;
}
.is-loading .loader__sub { animation: loaderFade 0.6s var(--ease-out) 1.0s forwards; }
@keyframes loaderUp { to { transform: translateY(0); } }
@keyframes loaderX { to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes loaderFade { to { opacity: 1; } }
/* ロード中はヒーロー開演を待たせる(ロード画面退場後にis-loadedが付く) */
html.is-motion-off .loader { display: none; }

/* ---------- 7. モーション停止(削除禁止) ---------- */
.motion-stop {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-modal);
  padding: 10px 16px; font-size: 12px;
  background: var(--color-bg); border: 1px solid var(--color-line);
  border-radius: 999px; cursor: pointer;
}
/* OS設定で「視差効果を減らす」を選んだ利用者にはアニメーションを自動停止する
   (motion-stopボタンの手動停止と同じ扱い) */
@media (prefers-reduced-motion: reduce) {
  .motion-stop { display: block; }
  .js-reveal,
  *[class] {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
html.is-motion-off .hero .seq { opacity: 1; }
html.is-motion-off .marquee__inner { animation: none; }
html.is-motion-off .hero__col-inner { animation: none; }
html.is-motion-off .liver-card.js-reveal .liver-card__photo { clip-path: none; }
html.is-motion-off .phil-card::before { transform: scaleX(1); }
html.is-motion-off .service.js-reveal .service__no { opacity: 1; transform: none; }
html.is-motion-off .ghost-word { transform: none !important; }
