/* Chordix コーポレートサイト — 青基調デザイン
   深い紺 × 鮮やかなブルーのグラデーション × 白ベース */
:root {
  color-scheme: light;
  --navy: #0b2a5b;
  --navy-deep: #071c3f;
  --blue: #0b5cd6;
  --blue-bright: #1e7be6;
  --ink: #16233a;
  --ink-soft: #4a5a74;
  --line: #d9e2ef;
  --bg: #ffffff;
  --bg-tint: #eef4fb;
  --radius: 12px;
  --maxw: 1080px;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-latin: "Rubik", sans-serif;
  --grad: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--blue) 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 2;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  font-family: var(--font-latin), var(--font-jp);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--grad);
  display: inline-block;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.global-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover {
  text-decoration: none;
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--grad);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 90% at 82% 20%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 82% 20%, #000 0%, transparent 62%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero::before {
  width: 560px;
  height: 560px;
  right: -160px;
  top: -180px;
}

.hero::after {
  width: 340px;
  height: 340px;
  right: 40px;
  bottom: -170px;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 24px 100px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

.hero .hero-sub {
  max-width: 640px;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 2.1;
}

.hero-badge {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 7px 22px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-gray {
  background: var(--bg-tint);
}

.section-label {
  display: block;
  margin-bottom: 48px;
}

.section-label .en {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-label .ja {
  display: inline-block;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.section-label .ja::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-top: 12px;
}

/* ---------- Message（ご挨拶） ---------- */
.message-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.message-body h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 28px;
}

.message-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: justify;
}

.message-body p + p {
  margin-top: 1.4em;
}

.message-panel {
  background: var(--grad);
  border-radius: var(--radius);
  color: #fff;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.message-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  right: -90px;
  bottom: -90px;
}

.panel-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.panel-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.7;
}

.panel-ring + .panel-ring {
  margin-left: -26px;
  background: rgba(255, 255, 255, 0.07);
}

.panel-caption {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Works（事業） ---------- */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
}

.section:not(.section-gray) .work-item {
  background: var(--bg-tint);
  border-color: transparent;
}

.work-num {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
  border-top: 2px solid var(--blue);
  padding-top: 14px;
}

.work-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  line-height: 1.8;
}

.work-body p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-align: justify;
  max-width: 720px;
}

.work-body p + p {
  margin-top: 1em;
}

.work-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.work-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(11, 92, 214, 0.08);
  border: 1px solid rgba(11, 92, 214, 0.25);
  border-radius: 999px;
  padding: 4px 16px;
}

.notice-box {
  max-width: 720px;
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 0.86rem;
  color: var(--ink);
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(11, 42, 91, 0.06);
}

/* ---------- ポジショニング帯 ---------- */
.statement-band {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 76px 24px;
  position: relative;
  overflow: hidden;
}

.statement-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(105deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 40%, #000 100%);
}

.statement-band p {
  position: relative;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 2.1;
}

.statement-band .small {
  position: relative;
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-latin);
}

/* ---------- Company（会社情報） ---------- */
.info-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 20px 12px;
  vertical-align: top;
  font-size: 0.93rem;
  font-weight: 400;
}

.info-table th {
  width: 9em;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  white-space: nowrap;
}

.info-table td {
  border-bottom: 1px solid var(--line);
}

/* ---------- News ---------- */
.news-list {
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.news-item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.news-date {
  font-family: var(--font-latin);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 6.4em;
}

.news-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(11, 92, 214, 0.08);
  border: 1px solid rgba(11, 92, 214, 0.25);
  border-radius: 999px;
  padding: 1px 14px;
  white-space: nowrap;
}

.news-title {
  flex: 1;
  min-width: 220px;
  font-size: 0.93rem;
}

.news-more {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}

.news-more::after {
  content: " →";
}

/* ---------- Contact ---------- */
.contact-note {
  max-width: 720px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.contact-form {
  max-width: 620px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.req {
  color: #b4232a;
  font-size: 0.72rem;
  margin-left: 6px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.93rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 13px 44px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(11, 92, 214, 0.3);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}

/* honeypot（スパム対策・視覚的に隠す） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 下層ページヘッダー ---------- */
.page-header {
  background: var(--grad);
  color: #fff;
  padding: 84px 0 68px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  right: -140px;
  top: -220px;
}

.page-header h1 {
  position: relative;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-header .en {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  font-family: var(--font-latin);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ---------- Privacy / prose ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  margin: 44px 0 14px;
}

.prose p,
.prose li {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.5em;
}

.prose .updated {
  margin-top: 48px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 64px 0 32px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-latin), var(--font-jp);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.08em;
  font-family: var(--font-latin);
}

/* ---------- 演出・アニメーション ---------- */

/* テキスト選択色もブランドカラーに */
::selection {
  background: rgba(11, 92, 214, 0.85);
  color: #fff;
}

/* ブランドイントロ（初回表示時のロゴ演出） */
body.intro-lock {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro.leave {
  transform: translateY(-100%);
}

.intro-logo {
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: introIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.intro-dot {
  color: var(--cyan);
}

@keyframes introIn {
  from { opacity: 0; transform: translateY(24px); letter-spacing: 0.3em; }
  to { opacity: 1; transform: none; letter-spacing: 0.06em; }
}

/* ヒーロー: オーロラ光彩 */
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
}

.hero-glow .g1 {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(53, 166, 242, 0.45), transparent 65%);
  animation: glowDrift1 13s ease-in-out infinite alternate;
}

.hero-glow .g2 {
  width: 460px;
  height: 460px;
  right: 4%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(30, 123, 230, 0.4), transparent 65%);
  animation: glowDrift2 17s ease-in-out infinite alternate;
}

@keyframes glowDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(90px, 50px) scale(1.15); }
}

@keyframes glowDrift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-70px, -40px) scale(0.95); }
}

/* ヒーロー: 一文字ずつの出現（script.jsが .ch に分割） */
.hero h1.split {
  animation: none;
  opacity: 1;
}

.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  animation: chIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes chIn {
  from { opacity: 0; transform: translateY(0.55em) rotate(4deg); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero-inner {
  will-change: transform;
}

/* スクロールを促すキュー */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-latin), sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
}

.scroll-cue i {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: cueDrop 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes cueDrop {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* キーワードティッカー */
.ticker {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-family: var(--font-latin), sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  white-space: nowrap;
  animation: tickerSlide 36s linear infinite;
}

.ticker-track .tick-sep {
  color: rgba(53, 166, 242, 0.6);
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* 事業カード: カーソルを追う光 */
.work-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(11, 92, 214, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.work-item:hover::before {
  opacity: 1;
}

/* フィルムグレイン（ヒーロー・シーンに質感を足す） */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* スクロールシーン（ピン留め） */
.scene {
  height: 320vh;
  background: var(--navy-deep);
  position: relative;
}

.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  overflow: hidden;
  padding: 0 24px;
}

.scene-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 92, 214, 0.35), rgba(53, 166, 242, 0.08) 55%, transparent 70%);
  filter: blur(30px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scene-line {
  position: relative;
  color: #fff;
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.scene-line.on {
  opacity: 1;
  transform: none;
  filter: none;
}

.scene-line.on.past {
  opacity: 0.28;
  transform: translateY(-8px) scale(0.96);
}

.scene-line-em {
  background: linear-gradient(100deg, #fff 20%, var(--cyan) 60%, #8fd0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.4rem, 4.4vw, 2.6rem);
}

/* フッターの巨大タイポ */
.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-word {
  position: absolute;
  right: -14px;
  bottom: -34px;
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* スクロール進捗バー */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 100;
  pointer-events: none;
}

/* ヒーロー: ネットワーク粒子キャンバス */
.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ヒーロー: 巨大タイポグラフィ */
.hero-word {
  position: absolute;
  right: -12px;
  bottom: -28px;
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(90px, 16vw, 210px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 事業カード: 大きな番号の透かし（script.jsが data-num を付与） */
.work-item {
  position: relative;
  overflow: hidden;
}

.work-item::after {
  content: attr(data-num);
  position: absolute;
  right: 16px;
  bottom: -30px;
  font-family: var(--font-latin), sans-serif;
  font-size: 130px;
  font-weight: 600;
  line-height: 1;
  color: rgba(11, 92, 214, 0.055);
  pointer-events: none;
  user-select: none;
}

/* アンカー移動時にヘッダーで隠れないように */
section[id] {
  scroll-margin-top: 80px;
}

/* ヘッダー: スクロール時に影 */
.site-header {
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(11, 42, 91, 0.1);
}

/* カードのホバー: 3Dチルト（script.js）＋影 */
.work-item {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(11, 42, 91, 0.12);
}

/* ニュース行のホバー */
.news-item {
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.news-item:hover {
  background: rgba(11, 92, 214, 0.045);
  padding-left: 12px;
}

/* トップへ戻るボタン */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s;
  box-shadow: 0 6px 20px rgba(11, 42, 91, 0.3);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--blue);
}

@media (prefers-reduced-motion: no-preference) {
  /* ヒーロー: グラデーションがゆっくり揺らぐ */
  .hero {
    background-size: 200% 200%;
    animation: gradShift 16s ease-in-out infinite alternate;
  }

  @keyframes gradShift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
  }

  /* ヒーロー: テキストが順に立ち上がる */
  .hero h1,
  .hero .hero-sub,
  .hero .hero-badge {
    opacity: 0;
    animation: riseUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero h1 { animation-delay: 0.15s; }
  .hero .hero-sub { animation-delay: 0.45s; }
  .hero .hero-badge { animation-delay: 0.7s; }

  @keyframes riseUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }

  /* ヒーロー: 同心円がゆっくり漂う */
  .hero::before {
    animation: floatA 14s ease-in-out infinite alternate;
  }

  .hero::after {
    animation: floatB 18s ease-in-out infinite alternate;
  }

  @keyframes floatA {
    from { transform: translate(0, 0); }
    to { transform: translate(-24px, 22px); }
  }

  @keyframes floatB {
    from { transform: translate(0, 0); }
    to { transform: translate(18px, -20px); }
  }

  /* 下層ページヘッダーの円も同様に */
  .page-header::before {
    animation: floatA 16s ease-in-out infinite alternate;
  }

  /* スクロール連動フェードイン（script.jsが .reveal を付与） */
  .reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: inherit;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* 見出し下線: 表示時に左から伸びる */
  .section-label .ja::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  }

  .section-label.is-visible .ja::after {
    transform: scaleX(1);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .message-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 24px;
  }

  .work-num {
    border-top: none;
    border-left: 2px solid var(--blue);
    padding: 0 0 0 12px;
  }
}

@media (max-width: 760px) {
  .global-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }

  .global-nav.open {
    display: flex;
  }

  .global-nav a {
    padding: 14px 24px;
    border-bottom: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 64vh;
  }

  .section {
    padding: 64px 0;
  }

  .info-table th {
    width: 6.5em;
  }
}
