/* ============================================================
   K&B Consulting — main.css
   ロゴカラー: シルバー × ネイビーブルー × ブラック

   1.  変数・リセット
   2.  共通パーツ（コンテナ・見出し・ボタン）
   3.  ヘッダー / モバイルメニュー
   4.  ローディング画面
   5.  トップ：Hero / About / Domain / Service / CTA
   6.  下層共通：ページヒーロー / CTA
   7.  Insights 一覧
   8.  記事詳細
   9.  会社概要
   10. 汎用固定ページ / 404
   11. フッター
   12. スクロールアニメーション
   13. レスポンシブ
   14. 動きを減らす設定への対応
   ============================================================ */

/* ============================================================
   1. 変数・リセット
   ============================================================ */
:root {
  /* ── ブランドカラー ── */
  --bg:          #060d1f;   /* 背景：ディープネイビー */
  --navy:        #0a1535;   /* ダークネイビー */
  --navy-2:      #112048;   /* ミドルネイビー */
  --blue:        #1e3a7a;   /* ブランドブルー */
  --blue-light:  #2a52a8;   /* アクセントブルー */
  --silver:      #b0bac8;   /* シルバー */
  --silver-light:#d4dae6;   /* ライトシルバー */
  --white:       #f0f3f8;   /* オフホワイト */
  --pure:        #ffffff;
  --gray:        #6a7a8e;   /* サブテキスト */
  --border:      rgba(176,186,200,0.12);
  --footer-bg:   #03050a;

  /* ── タイポグラフィ ── */
  --font-en:  'Inter', sans-serif;
  --font-ja:  'Noto Sans JP', sans-serif;

  /* ── アニメーション ── */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tr:   0.4s var(--ease);

  /* ── 管理バー分のオフセット ── */
  --adminbar: 0px;
}

.admin-bar { --adminbar: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar { --adminbar: 46px; }
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ja);
  font-weight: 300;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--silver-light);
  outline-offset: 3px;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10001;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--pure);
  font-size: 0.8125rem;
}
.skip-link:focus { top: calc(var(--adminbar) + 12px); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ============================================================
   2. 共通パーツ
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-padding { padding: 120px 0; }

.section-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 20px;
}

.section-title-en {
  font-family: var(--font-en);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.section-title-en em {
  font-style: italic;
  font-weight: 200;
  background: linear-gradient(135deg, var(--silver-light), var(--silver));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.2em; /* イタリック右端の切れ防止 */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-desc {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 64px;
}

.section-head { margin-bottom: 72px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  white-space: nowrap;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-color: var(--blue);
  color: var(--pure);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

/* シマー */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShimmer 3.5s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%   { transform: translateX(-100%); }
  40%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--silver);
}
.btn-ghost:hover {
  border-color: var(--silver);
  color: var(--white);
}

.btn-lg { padding: 18px 52px; font-size: 0.875rem; }

/* ============================================================
   3. ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--adminbar);
  left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  border-bottom: 1px solid transparent;
  transition: background var(--tr), padding var(--tr), border-color var(--tr);
}

.site-header.scrolled,
.site-header--solid {
  background: rgba(5, 7, 13, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border-bottom-color: var(--border);
}
.site-header.scrolled { padding: 16px 48px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
}

.site-logo { display: flex; align-items: center; }

.site-logo__img {
  height: 80px;
  width: auto;
  max-width: none;
  transition: height var(--tr);
}
.site-header.scrolled .site-logo__img { height: 64px; }

/* ナビ */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  transition: color var(--tr);
}
.site-nav a:hover { color: var(--silver-light); }

.site-nav a.current-page,
.site-nav .current-menu-item > a,
.site-nav .current_page_parent > a {
  color: var(--white);
  border-bottom: 1px solid var(--silver);
  padding-bottom: 2px;
}

.site-nav .nav-contact,
.site-nav .nav-contact > a {
  border: 1px solid var(--border);
  padding: 8px 20px;
  color: var(--silver);
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}
.site-nav li.nav-contact { border: 0; padding: 0; }
.site-nav .nav-contact:hover,
.site-nav .nav-contact > a:hover {
  border-color: var(--blue-light);
  background: rgba(42, 82, 168, 0.15);
  color: var(--white);
}

/* ハンバーガー */
.hamburger {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--silver);
  transition: transform var(--tr), opacity var(--tr), background var(--tr);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--adminbar) 0 0 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { text-align: center; }
.mobile-menu a {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--silver);
  display: block;
  padding: 14px 0;
  transition: color var(--tr);
}
.mobile-menu a:hover,
.mobile-menu .current-page { color: var(--white); }

body.menu-open { overflow: hidden; }

/* ============================================================
   4. ローディング画面（起動アニメーション）
   4つの点が跳ねる → 中央で合体 → 波紋 → ロゴ表示 → フェードアウト
   タイミングを変える場合は main.js の LOADER_MIN_MS もあわせて調整
   ============================================================ */
body.is-loading { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-bg);
  --dot: 20px;
  --gap: 50px;
}
.loader.is-leave {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.loader.is-hidden { display: none; }

/* 同一セッション 2 回目以降・動きを減らす設定ではスキップ */
.kb-loader-skip .loader { display: none; }

.loader__stage {
  position: relative;
  width: 320px;
  height: 200px;
  transition: transform 0.7s var(--ease);
}
.loader.is-leave .loader__stage { transform: scale(1.05); }

/* ---------- 点 ---------- */
.loader__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--dot);
  height: var(--dot);
  margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  translate: var(--x) 0;
  scale: 0;
  animation:
    kbDotIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) var(--in) both,
    kbConverge 0.5s cubic-bezier(0.7, 0, 0.3, 1) 1.35s both,
    kbDotOut 0.3s ease-in 1.85s forwards;
}
.loader__dot i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 18px var(--glow);
  animation: kbBounce 0.5s cubic-bezier(0.33, 0, 0.67, 1) calc(0.35s + var(--in)) 2 both;
}
.loader__dot--1 { --x: calc(var(--gap) * -1.5); --in: 0s;    --c: #e6ebf3; --glow: rgba(230,235,243,0.35); }
.loader__dot--2 { --x: calc(var(--gap) * -0.5); --in: 0.08s; --c: #9aa6b8; --glow: rgba(154,166,184,0.3); }
.loader__dot--3 { --x: calc(var(--gap) * 0.5);  --in: 0.16s; --c: #4f7fe0; --glow: rgba(79,127,224,0.45); }
.loader__dot--4 { --x: calc(var(--gap) * 1.5);  --in: 0.24s; --c: #2a52a8; --glow: rgba(42,82,168,0.5); }

@keyframes kbDotIn   { from { scale: 0; } to { scale: 1; } }
@keyframes kbConverge { to { translate: 0 0; } }
@keyframes kbDotOut  {
  0%   { scale: 1; }
  45%  { scale: 1.5; }
  100% { scale: 0; }
}
@keyframes kbBounce {
  0%, 100% { transform: translateY(0); }
  45%      { transform: translateY(-34px); }
  70%      { transform: translateY(2px); }
}

/* ---------- 波紋 ---------- */
.loader__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 1px solid rgba(212,218,230,0.55);
  border-radius: 50%;
  opacity: 0;
  animation: kbRipple 1s cubic-bezier(0.2, 0.7, 0.3, 1) 1.9s forwards;
}
.loader__ring--2 {
  border-color: rgba(79,127,224,0.6);
  animation-delay: 2.05s;
}
@keyframes kbRipple {
  0%   { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0;   transform: scale(14); }
}

/* ---------- ロゴ ---------- */
.loader__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(200px, 30vw, 320px);
  height: auto;
  translate: -50% -50%;
  opacity: 0;
  animation: kbLogoIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 2s forwards;
}
@keyframes kbLogoIn {
  from { opacity: 0; transform: scale(0.88); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

@media (max-width: 768px) {
  .loader { --dot: 14px; --gap: 36px; }
}

/* ============================================================
   5. トップページ
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(30,58,122,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 25%, rgba(42,82,168,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 85% 15%, rgba(10,21,53,0.8) 0%, transparent 55%);
  animation: heroOrb 10s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes heroOrb {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(0.97); }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  z-index: 2;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(30,58,122,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 100% 0%, rgba(11,20,40,0.7) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: 100px;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--pure);
  margin-bottom: 36px;
  overflow: hidden;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: heroFadeUp 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.55s; }
.hero-title .line:nth-child(2) { animation-delay: 0.72s; }

.hero-period {
  background: linear-gradient(135deg, var(--silver), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 2;
  color: rgba(240, 245, 255, 0.95);
  margin-bottom: 48px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.8s var(--ease) 1.0s forwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.8s var(--ease) 1.2s forwards;
}

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* ローダー表示中はヒーローのアニメーションを保留 */
body.is-loading .hero-eyebrow,
body.is-loading .hero-title .line,
body.is-loading .hero-sub,
body.is-loading .hero-cta { animation-play-state: paused; }

.hero-scroll {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--silver));
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pure);
  animation: scrollDrop 2.4s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -100%; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.hero-scroll span {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,82,200,0.10) 0%, rgba(30,58,122,0.05) 45%, transparent 70%);
  top: 50%; right: -180px;
  transform: translateY(-50%);
  animation: aboutOrb 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.about::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,100,200,0.07) 0%, transparent 65%);
  bottom: -80px; left: -80px;
  animation: aboutOrb 9s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes aboutOrb {
  from { opacity: 0.5; transform: translateY(-50%) scale(0.88); }
  to   { opacity: 1;   transform: translateY(-50%) scale(1.12); }
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  align-items: start;
}
.about-label { padding-top: 8px; }

.about-title {
  font-family: var(--font-ja);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 200;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
}
.about-text {
  font-size: 0.9375rem;
  line-height: 2.1;
  color: var(--gray);
  max-width: 600px;
}

/* ---------- DOMAIN ---------- */
.domain {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.domain::before,
.bg-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 5px,
    rgba(58,100,200,0.028) 5px, rgba(58,100,200,0.028) 6px);
  animation: scanDown 12s linear infinite;
  pointer-events: none;
}
.domain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(30,58,122,0.14) 0%, transparent 70%);
  animation: scanGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes scanDown { from { background-position: 0 0; } to { background-position: 0 6px; } }
@keyframes scanUp   { from { background-position: 0 6px; } to { background-position: 0 0; } }
@keyframes scanGlow {
  from { opacity: 0.5; transform: scale(0.92); }
  to   { opacity: 1;   transform: scale(1.06); }
}

.domain .section-head,
.domain .domain-grid { position: relative; z-index: 1; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.domain-card {
  position: relative;
  background: var(--navy);
  padding: 52px 40px;
  transition: background var(--tr);
}
.domain-card:hover { background: rgba(30, 58, 122, 0.12); }

.domain-card__title {
  font-family: var(--font-ja);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 16px;
}
.domain-card__text {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--gray);
}

/* 下部のブルーライン */
.domain-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.6s var(--ease);
}
.domain-card.visible::after,
html:not(.js) .domain-card::after { width: 100%; }

/* ---------- SERVICE ---------- */
.bg-navy {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.bg-navy::before { background-size: auto; animation-name: scanUp; animation-duration: 14s; }
.bg-navy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 18% 30%, rgba(30,58,122,0.15) 0%, transparent 65%);
  animation: scanGlow 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.bg-navy .section-head,
.bg-navy .service-list { position: relative; z-index: 1; }

.service-list { border-top: 1px solid var(--border); }

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), padding var(--tr), margin var(--tr);
}
.service-item:hover {
  background: rgba(176,186,200,0.02);
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 -16px;
}

/* 上辺ライン：左から描画 */
.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--blue-light), transparent);
  transition: width 0.7s var(--ease);
}
.service-item.visible::before,
html:not(.js) .service-item::before { width: 100%; }

.service-item__header {
  display: flex;
  align-items: center;
  gap: 24px;
  grid-column: 1;
  grid-row: 1;
}
.service-item__title {
  font-family: var(--font-ja);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}
.service-item__text {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--gray);
  padding-left: 48px;
  max-width: 640px;
}
.service-item__tag {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.4;
  white-space: nowrap;
}

/* ---------- CTA（トップ） ---------- */
.cta {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
#contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-family: var(--font-ja);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 200;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 20px;
}
.cta-text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 48px;
}

/* ============================================================
   6. 下層共通
   ============================================================ */

/* ---------- ページヒーロー ---------- */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
}
.page-hero--lg {
  height: 60vh;
  min-height: 400px;
  padding-bottom: 80px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.page-hero__bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(-45deg,
    transparent, transparent 60px,
    rgba(30,58,122,0.08) 60px, rgba(30,58,122,0.08) 61px);
  animation: diagonalMove 18s linear infinite;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(30,58,122,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(10,21,53,0.6) 0%, transparent 55%);
}
@keyframes diagonalMove {
  from { transform: translate(0, 0); }
  to   { transform: translate(61px, 61px); }
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

.page-hero__deco {
  position: absolute;
  bottom: -0.12em;
  right: -0.02em;
  font-family: var(--font-en);
  font-size: clamp(100px, 17vw, 240px);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176,186,200,0.06);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.page-hero__content { position: relative; z-index: 4; width: 100%; }

.page-eyebrow {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpIn 0.8s ease 0.2s forwards;
}

.page-title {
  font-weight: 200;
  color: var(--white);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.8s ease 0.35s forwards;
}
.page-title--en {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.page-title--ja {
  font-family: var(--font-ja);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.08em;
}

.page-sub {
  font-family: var(--font-ja);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--silver);
  margin-top: 14px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUpIn 0.7s ease 0.5s forwards;
}

@keyframes fadeUpIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- 下層 CTA ---------- */
.page-cta {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy) 100%);
  text-align: center;
}
.page-cta .section-label { margin-bottom: 24px; }
.page-cta__title {
  font-family: var(--font-ja);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 200;
  line-height: 1.6;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.page-cta__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 2;
  margin-bottom: 40px;
}

/* ============================================================
   7. Insights 一覧
   ============================================================ */
.insights-filter {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--border);
}
.filter-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 14px 24px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.filter-tab:hover { color: var(--white); }
.filter-tab.is-active {
  color: var(--white);
  border-bottom-color: var(--blue-light);
}

.insights-body { padding: 64px 0 100px; }
.insights-body--notabs { padding-top: 24px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--navy);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.post-card:hover {
  border-color: rgba(42,82,168,0.45);
  transform: translateY(-4px);
}

.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-2);
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
}
.post-card__thumb-placeholder svg { opacity: 0.12; }

.post-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.post-card__cat {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  background: rgba(176,186,200,0.08);
  border: 1px solid rgba(176,186,200,0.12);
  padding: 3px 10px;
  white-space: nowrap;
}
.post-card__date {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.05em;
}
.post-card__title {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}
.post-card__excerpt {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.post-card__more {
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.no-posts {
  text-align: center;
  padding: 80px 0;
  color: var(--silver);
}

/* ページネーション */
.pagination {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pagination a,
.pagination span {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--silver);
  padding: 8px 14px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.pagination a:hover { color: var(--white); border-color: var(--blue-light); }
.pagination .current,
.pagination > span:not(.dots) .current {
  color: var(--white);
  border-color: var(--blue-light);
  background: rgba(42,82,168,0.12);
}
.pagination .dots { border-color: transparent; }

/* ============================================================
   8. 記事詳細
   ============================================================ */
.article-hero {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(30,58,122,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(10,21,53,0.4) 0%, transparent 55%);
  pointer-events: none;
}
.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.article-hero .container { position: relative; z-index: 1; }

/* パンくず */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a,
.breadcrumb span {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--silver);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: var(--gray); font-size: 0.55rem; }
.breadcrumb .current { color: var(--gray); }

/* メタ */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-cat {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  background: rgba(176,186,200,0.08);
  border: 1px solid rgba(176,186,200,0.14);
  padding: 4px 12px;
  transition: border-color 0.2s, color 0.2s;
}
.article-cat:hover { color: var(--white); border-color: rgba(176,186,200,0.3); }
.article-date,
.article-read {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.05em;
}
.meta-sep { color: var(--border); }

.article-title {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.04em;
  max-width: 800px;
}

/* アイキャッチ */
.article-thumb {
  max-width: 860px;
  margin: 0 auto 64px;
}
.article-thumb img {
  width: 100%;
  border: 1px solid var(--border);
}

.article-section { padding: 0 0 40px; }

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- 本文（記事・固定ページ共通） ---------- */
.article-content {
  font-size: 1rem;
  font-weight: 300;
  color: var(--silver-light);
  line-height: 2.2;
  overflow-wrap: anywhere;
}
.article-content > * + * { margin-top: 24px; }
.article-content > :first-child { margin-top: 0; }

.article-content h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.06em;
  margin: 56px 0 20px;
  padding-left: 16px;
  border-left: 2px solid var(--blue-light);
  line-height: 1.5;
  scroll-margin-top: 140px;
}
.article-content h3 {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  margin: 40px 0 16px;
  line-height: 1.5;
  scroll-margin-top: 140px;
}
.article-content h4,
.article-content h5,
.article-content h6 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  margin: 32px 0 12px;
  line-height: 1.6;
}

.article-content a {
  color: #7fa3e8;
  text-decoration: underline;
  text-decoration-color: rgba(42,82,168,0.6);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-content a:hover { color: var(--silver-light); }

.article-content strong,
.article-content b { font-weight: 500; color: var(--white); }

.article-content ul,
.article-content ol { margin-left: 1.4em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; line-height: 1.8; }
.article-content li::marker { color: var(--blue-light); }

.article-content blockquote {
  border-left: 2px solid var(--border);
  margin: 32px 0;
  padding: 16px 24px;
  background: rgba(176,186,200,0.03);
}
.article-content blockquote p { color: var(--silver); margin: 0; }
.article-content blockquote cite { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--gray); font-style: normal; }

.article-content code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: rgba(176,186,200,0.06);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: var(--silver-light);
}
.article-content pre {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 24px;
  overflow-x: auto;
  margin: 32px 0;
  line-height: 1.7;
}
.article-content pre code { background: none; border: none; padding: 0; }

.article-content img { border: 1px solid var(--border); }
.article-content figure { margin: 32px 0; }
.article-content figcaption,
.article-content .wp-element-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

.article-content hr,
.article-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* 表 */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.7;
}
.article-content .wp-block-table { overflow-x: auto; }
.article-content .wp-block-table thead { border-bottom: 0; }
.article-content .wp-block-table tfoot { border-top: 0; }
.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.article-content th,
.article-content thead td {
  background: rgba(30,58,122,0.25);
  color: var(--white);
  font-weight: 400;
}

/* ボタンブロック */
.article-content .wp-block-button__link {
  display: inline-block;
  background: var(--blue);
  color: var(--pure);
  text-decoration: none;
  border-radius: 0;
  padding: 14px 36px;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  transition: background var(--tr);
}
.article-content .wp-block-button__link:hover { background: var(--blue-light); color: var(--pure); }
.article-content .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--silver);
  color: var(--silver-light);
}

/* 埋め込み */
.article-content iframe { max-width: 100%; }
.article-content .wp-block-embed__wrapper iframe { width: 100%; }

/* 配置 */
.article-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.article-content .alignleft  { float: left;  margin: 8px 24px 16px 0; }
.article-content .alignright { float: right; margin: 8px 0 16px 24px; }
.article-content::after { content: ''; display: table; clear: both; }

/* ---------- サイドバー ---------- */
.article-sidebar {
  position: sticky;
  top: calc(var(--adminbar) + 120px);
  max-height: calc(100vh - var(--adminbar) - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-block { margin-bottom: 40px; }

.sidebar-label {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toc-list li { border-bottom: 1px solid rgba(176,186,200,0.06); }
.toc-list a {
  display: block;
  padding: 10px 0;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.5;
  transition: color 0.2s, padding-left 0.2s;
}
.toc-list a:hover { color: var(--white); padding-left: 6px; }

/* 目次 */
.toc-list--contents .toc-list__item--h3 a { padding-left: 14px; font-size: 0.74rem; color: var(--gray); }
.toc-list--contents .toc-list__item--h3 a:hover { padding-left: 20px; }
.toc-list--contents a.is-active { color: var(--white); box-shadow: inset 2px 0 0 var(--blue-light); padding-left: 10px; }

.cat-list li + li { margin-top: 8px; }
.cat-list a {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.cat-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}
.cat-list a:hover { color: var(--white); }

/* ---------- 記事フッター ---------- */
.article-footer {
  padding: 64px 0 100px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.article-footer__inner { max-width: 1100px; margin: 0 auto; }

.related-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.related-card {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.related-card:hover {
  border-color: rgba(42,82,168,0.4);
  transform: translateY(-3px);
}
.related-card__cat {
  display: block;
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}
.related-card__title {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.65;
}
.related-card__date {
  display: block;
  font-family: var(--font-en);
  font-size: 0.62rem;
  color: var(--gray);
  margin-top: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }
.back-link::before { content: '←'; font-size: 0.9rem; }

/* ============================================================
   9. 会社概要
   ============================================================ */
.ceo-message {
  padding: 100px 0 80px;
  position: relative;
}
.ceo-message::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(30,58,122,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.ceo-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
.ceo-label {
  position: sticky;
  top: calc(var(--adminbar) + 140px);
}
.ceo-label .section-label { margin-bottom: 16px; }
.ceo-label h2 {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.12em;
}
.ceo-body { padding-top: 4px; }
.ceo-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--silver-light);
  line-height: 2.2;
  margin-bottom: 20px;
}
.ceo-signature {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.ceo-role {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--silver);
  text-transform: uppercase;
}
.ceo-name {
  font-size: 1.3rem;
  font-weight: 200;
  color: var(--white);
  letter-spacing: 0.15em;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.company-overview { padding: 100px 0; }
.overview-head { margin-bottom: 64px; }
.overview-head .section-label { margin-bottom: 12px; }
.overview-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 200;
  color: var(--white);
  letter-spacing: 0.1em;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
}
.overview-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.overview-table tr:first-child { border-top: 1px solid var(--border); }
.overview-table tr:hover { background: rgba(176,186,200,0.03); }
.overview-table th {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--silver);
  text-transform: uppercase;
  text-align: left;
  padding: 28px 0;
  width: 200px;
  vertical-align: top;
}
.overview-table td {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--silver-light);
  padding: 28px 0 28px 40px;
  line-height: 1.8;
  vertical-align: top;
}
.overview-table td.highlight { color: var(--white); font-weight: 400; }

.exec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exec-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.exec-list .exec-role {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-transform: uppercase;
  min-width: 120px;
}
.exec-list .exec-name {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.1em;
}

/* ============================================================
   10. 汎用固定ページ / 404
   ============================================================ */
.page-body { padding: 40px 0 100px; }
.page-content { max-width: 820px; margin: 0 auto; }
.page-body--center { text-align: center; }
.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   11. フッター
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.footer-logo-img {
  width: auto;
  height: 240px;
  margin-bottom: 16px;
}
.footer-nav { display: flex; gap: 60px; }
.footer-nav-head {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.6;
  margin-bottom: 18px;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-col a {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.04em;
  transition: color var(--tr);
}
.footer-nav-col a:hover { color: var(--silver-light); }
.footer-nav-col a.nav-contact { border: 0; padding: 0; }

.footer-bottom { display: flex; justify-content: center; }
.footer-copy {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ============================================================
   12. スクロールアニメーション
   html.js が付いているときだけ「表示前」の状態にする
   （JS が動かない環境でも内容が必ず見えるように）
   ============================================================ */
.js .section-label {
  opacity: 0;
  letter-spacing: 0.5em;
  transition: opacity 0.7s var(--ease), letter-spacing 0.7s var(--ease);
}
.js .section-label.visible { opacity: 1; letter-spacing: 0.25em; }

.js .anim-heading-inner {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .anim-heading-inner.visible { opacity: 1; transform: none; }

.js .about-text {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease) 0.2s, transform 0.75s var(--ease) 0.2s;
}
.js .about-text.visible { opacity: 1; transform: none; }

.js .domain-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background var(--tr);
}
.js .domain-card.visible { opacity: 1; transform: none; }

.js .service-item {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease),
              background var(--tr), padding var(--tr), margin var(--tr);
}
.js .service-item.visible { opacity: 1; transform: none; }

.js .cta-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .cta-title.visible { opacity: 1; transform: none; }

.js .cta-text {
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.2s;
}
.js .cta-text.visible { opacity: 1; }

.js .footer-brand,
.js .footer-nav {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .footer-nav { transition-delay: 0.15s; }
.js .footer-brand.visible,
.js .footer-nav.visible { opacity: 1; transform: none; }

/* ============================================================
   13. レスポンシブ
   ============================================================ */

/* ---------- ナビが入りきらない幅 ---------- */
@media (max-width: 1180px) {
  .site-nav ul { gap: 28px; }
}
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ---------- タブレット ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 36px; }

  .domain-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 140px 1fr; gap: 48px; }

  .post-grid { grid-template-columns: repeat(2, 1fr); }

  .article-wrap { grid-template-columns: 1fr; gap: 56px; }
  .article-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .sidebar-block--toc { display: none; } /* 本文上部ではなくサイドバー用のため */
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 20px; }
  .section-padding { padding: 72px 0; }

  .section-title-en { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .section-desc { font-size: 0.875rem; margin-bottom: 44px; }
  .section-head { margin-bottom: 48px; }

  /* ヘッダー */
  .site-header { padding: 14px 20px; }
  .site-header.scrolled { padding: 10px 20px; }
  .site-logo__img,
  .site-header.scrolled .site-logo__img { height: 48px; }

  /* ヒーロー */
  .hero-content { padding-top: 100px; padding-bottom: 60px; }
  .hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.2em; margin-bottom: 24px; }
  .hero-title { font-size: clamp(2.75rem, 13vw, 4.5rem); margin-bottom: 28px; letter-spacing: -0.03em; }
  .hero-sub { font-size: 0.875rem; margin-bottom: 36px; line-height: 1.9; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn { padding: 13px 28px; font-size: 0.8125rem; }
  .btn-lg { padding: 14px 32px; font-size: 0.8125rem; }
  .hero-scroll { right: 20px; bottom: 28px; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-label { display: none; }
  .about-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 20px; }
  .about-text { font-size: 0.875rem; line-height: 2; }

  /* Domain */
  .domain-card { padding: 28px 0; }
  .domain-card:hover { background: var(--navy); }

  /* Service */
  .service-item { grid-template-columns: 1fr; padding: 28px 0; gap: 0; }
  .service-item:hover { padding-left: 0; padding-right: 0; margin: 0; }
  .service-item__header { margin-bottom: 12px; }
  .service-item__title { font-size: 1rem; }
  .service-item__text { font-size: 0.875rem; line-height: 1.85; margin-bottom: 12px; padding-left: 0; }
  .service-item__tag { grid-column: 1; grid-row: auto; align-self: auto; }

  /* CTA */
  .cta-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 16px; }
  .cta-text { font-size: 0.875rem; margin-bottom: 36px; }

  /* 下層ヒーロー */
  .page-hero,
  .page-hero--lg { height: 45vh; min-height: 300px; padding-bottom: 56px; }

  /* 一覧 */
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-tab { padding: 12px 16px; font-size: 0.65rem; }
  .post-card__body { padding: 20px 20px 24px; }

  /* 記事 */
  .article-hero { padding: 120px 0 60px; }
  .article-title { font-size: 1.4rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-content .alignleft,
  .article-content .alignright { float: none; margin: 24px 0; }

  /* 会社概要 */
  .ceo-message { padding: 72px 0 56px; }
  .ceo-inner { grid-template-columns: 1fr; gap: 40px; }
  .ceo-label { position: static; }
  .company-overview { padding: 72px 0; }
  .overview-table th { width: 110px; font-size: 0.65rem; padding: 20px 0; }
  .overview-table td { padding: 20px 0 20px 20px; font-size: 0.88rem; }
  .exec-list li { flex-direction: column; gap: 4px; }
  .exec-list .exec-role { min-width: 0; }

  /* フッター */
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-direction: column; gap: 28px; }
  .footer-logo-img { height: 80px; }
  .footer-copy { font-size: 0.7rem; }

  /* メニュー */
  .mobile-menu a { font-size: 1.25rem; }
}

/* ============================================================
   14. 動きを減らす設定（OS のアクセシビリティ設定）への対応
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg::before,
  .about::before,
  .about::after,
  .domain::before,
  .domain::after,
  .bg-navy::before,
  .bg-navy::after,
  .page-hero__bg::before,
  .btn-primary::after { animation: none !important; }
}

/* ============================================================
   15. プロダクト（/products/）
   参考：エディトリアルな縦構成（見出し → 概要 → 課題 → 特長 → 流れ）
   ============================================================ */
.products-page {
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

/* ---------- HERO ---------- */
.products-hero {
  position: relative;
  padding: 200px 0 96px;
  overflow: hidden;
}
.products-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}
.products-hero__inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: end;
}
.products-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.8s ease 0.35s forwards;
}
.products-hero__lead {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2;
  color: var(--silver);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeUpIn 0.8s ease 0.5s forwards;
}

.products-index {
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUpIn 0.8s ease 0.65s forwards;
}
.products-index__item {
  display: grid;
  grid-template-columns: 40px auto 1fr 20px;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), padding var(--tr);
}
.products-index__item:hover { background: rgba(30,58,122,0.14); padding-left: 16px; }
.products-index__num {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--blue-light);
}
.products-index__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
}
.products-index__label {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  text-align: right;
}
.products-index__arrow { color: var(--silver); font-size: 0.8rem; text-align: right; }

/* ---------- 製品ブロック ---------- */
.product {
  padding: 140px 0 120px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 60px;
}
.product:nth-of-type(even) { background: linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%); }

.product__head {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}
.product__num {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 28px;
}
.product__num span { color: var(--blue-light); }
.product__name {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.9vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--pure);
  margin-bottom: 12px;
}
.product__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--silver);
}
.product__catch {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.08em;
  color: var(--white);
  padding-top: 40px;
}

.product__intro {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 120px;
}
.product__lead p:first-child {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 2.2;
  color: var(--silver-light);
  letter-spacing: 0.04em;
}
.product__badge {
  display: inline-block;
  margin-top: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(42,82,168,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--silver-light);
}

.product-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: border-color var(--tr), background var(--tr);
}
.product-link:hover { border-color: var(--blue-light); background: rgba(42,82,168,0.15); }
.product-link__arrow { color: var(--silver); }

/* ビジュアル */
.product__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 10;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 85% 15%, rgba(42,82,168,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(30,58,122,0.35) 0%, transparent 60%),
    var(--navy);
}
.product__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(176,186,200,0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(176,186,200,0.05) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.product__visual--mokusui {
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(70,130,160,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 100%, rgba(30,58,122,0.4) 0%, transparent 60%),
    var(--navy);
}
.product__visual--chatbot {
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(42,82,168,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(80,90,170,0.3) 0%, transparent 60%),
    var(--navy);
}
.product__visual.has-image { background: var(--navy-2); }
.product__visual.has-image::before { display: none; }
.product__visual picture { position: absolute; inset: 0; }
.product__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product__visual:hover img { transform: scale(1.03); }
.product__visual.is-contain { background: #fff; }
.product__visual.is-contain img { object-fit: contain; padding: 14% 16%; }
.product__visual.is-natural { aspect-ratio: auto; padding: 0; display: block; }
.product__visual.is-natural picture,
.product__visual.is-natural img { position: static; display: block; width: 100%; height: auto; }
.product__visual-en {
  position: relative;
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,218,230,0.55);
  transition: color 0.6s var(--ease);
}
.product__visual:hover .product__visual-en { color: rgba(212,218,230,0.08); }
.product__visual-ja {
  position: relative;
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--silver);
}

/* 行（課題・特長・流れ・仕様） */
.product__row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 104px;
}
.product__row-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1.6;
}

.issue-card__num,
.feature-item__num,
.step-item__num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-bottom: 20px;
}
.issue-card__num span,
.feature-item__num span,
.step-item__num span { margin: 0 4px; opacity: 0.5; }

/* 課題 */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.issue-card {
  padding: 28px 24px 32px;
  border: 1px solid var(--border);
  background: rgba(10,21,53,0.4);
}
.issue-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 16px;
}
.issue-card__text {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--silver);
}

/* 特長 */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.feature-list--3 { grid-template-columns: repeat(3, 1fr); }
.feature-item {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.feature-item:hover { background: rgba(30,58,122,0.12); }
.feature-item__title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 12px;
}
.feature-item__text {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--gray);
}

/* 流れ */
.step-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--border);
}
.step-item {
  position: relative;
  padding: 24px 24px 0 0;
}
.step-item::before {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
}
.step-item__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 10px;
}
.step-item__text {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--gray);
}

/* 仕様 */
.spec-list { border-top: 1px solid var(--border); }
.spec-list__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.spec-list dt {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}
.spec-list dd { font-size: 0.9rem; color: var(--silver-light); }

/* 製品サイトへのリンク帯 */
.product__more {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  transition: border-color var(--tr), background var(--tr);
}
.product__more:hover { border-color: var(--blue-light); background: rgba(42,82,168,0.12); }
.product__more-en {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--white);
}
.product__more-text {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--silver);
}
.product__more-arrow {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--white);
  transition: background var(--tr), border-color var(--tr);
}
.product__more:hover .product__more-arrow { background: var(--blue); border-color: var(--blue); }

/* スクロールアニメーション */
.js .product__head,
.js .product__intro,
.js .product__row,
.js .product__more {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .product__head.visible,
.js .product__intro.visible,
.js .product__row.visible,
.js .product__more.visible { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .products-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .product__head,
  .product__intro,
  .product__row { grid-template-columns: 1fr; gap: 28px; }
  .product__catch { padding-top: 0; }
  .product__intro { margin-bottom: 88px; }
  .product__row { margin-bottom: 80px; }
  .issue-grid { grid-template-columns: 1fr; }
  .feature-list--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-hero { padding: 130px 0 64px; }
  .products-index__item { grid-template-columns: 36px 1fr 20px; }
  .products-index__label { grid-column: 2; grid-row: 2; text-align: left; }
  .products-index__arrow { grid-column: 3; grid-row: 1; }
  .product { padding: 88px 0 80px; }
  .product__head { margin-bottom: 40px; }
  .product__num { margin-bottom: 16px; }
  .product__visual { padding: 24px; }
  .feature-list,
  .feature-list--3 { grid-template-columns: 1fr; }
  .step-list { grid-auto-flow: row; border-top: 0; border-left: 1px solid var(--border); }
  .step-item { padding: 0 0 32px 24px; }
  .step-item::before { top: 6px; left: -4px; }
  .spec-list__row { grid-template-columns: 1fr; gap: 4px; }
  .product__more { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 24px 20px; }
  .product__more-text { grid-column: 1; grid-row: 2; }
  .product__more-arrow { grid-row: 1 / 3; grid-column: 2; }
}
