/* =========================================================================
   刻音 -Tokine- 共通スタイル（全ページ共有 / ダークテーマ）
   ========================================================================= */

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

:root {
  --bg: #0a0a0c;          /* 基本背景（ほぼ黒） */
  --bg-2: #141418;        /* カード・パネル */
  --bg-3: #0e0e12;        /* 交互セクション */
  --text: #ebebef;        /* 本文 */
  --text-dim: #9a9aa4;    /* 補助テキスト */
  --text-mute: #66666f;   /* ラベル等 */
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --gold: #d8b46a;
  --gold-bright: #f5c842;
  --purple: #a78bfa;
  --teal: #2dd4bf;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', 'Inter', sans-serif;
  --en: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nav-logo-sub { font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: 0.35em; color: var(--text-mute); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); }

/* ── Hero (Homeの大ヒーロー) ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--line-soft);
  background-image: linear-gradient(rgba(10,10,12,0.45), rgba(10,10,12,0.82)), url('/images/hero.png');
  background-size: cover; background-position: center;
}
.hero-content { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(72px, 12vw, 160px); line-height: 1; letter-spacing: 0.18em; color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,0.5); }
.hero-rule { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.hero-rule-line { width: 80px; height: 1px; background: var(--text-mute); }
.hero-rule-text { font-family: var(--en); font-weight: 300; font-size: 13px; letter-spacing: 0.5em; color: var(--text-dim); }
.hero-tagline { margin-top: 40px; font-family: var(--sans); font-weight: 300; font-size: clamp(18px, 2.5vw, 28px); letter-spacing: 0.22em; color: #fff; }
.hero-sub { margin-top: 16px; font-family: var(--sans); font-weight: 300; font-size: 14px; letter-spacing: 0.16em; color: var(--text-dim); max-width: 660px; line-height: 2; }
.hero-cta-row { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 36px; border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text); text-decoration: none; cursor: pointer; background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-fill { background: var(--gold); color: #0a0a0c; border-color: var(--gold); }
.btn-fill:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #0a0a0c; }

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--text-mute)); animation: scrollPulse 2s ease-in-out infinite; }
.hero-scroll-label { font-family: var(--en); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-mute); }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); transform-origin: top; } }

/* ── Page header (下層ページの小ヒーロー) ── */
.page-header {
  padding: 160px 40px 76px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 360px at 50% -40%, rgba(216,180,106,0.16), transparent 70%),
    linear-gradient(180deg, #141418 0%, #0a0a0c 100%);
}
.page-header.has-img { background-size: cover; background-position: center; }
/* 明るい画像の上に暗い文字を載せるライト版 */
.page-header.light h1 { color: #0c0c0c; text-shadow: none; }
.page-header.light .lead { color: #3a3a3a; }
.page-header.light .eyebrow { color: #9c7b2e; }
/* 明るい画像を色反転してダーク化（Contact用） */
.page-header.inverted { position: relative; }
.page-header.inverted::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url('/images/contact-hero.png');
  background-size: cover; background-position: center;
  filter: invert(1) hue-rotate(180deg) brightness(0.9);
}
.page-header.inverted::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(rgba(10,10,12,0.32), rgba(10,10,12,0.55));
}
.page-header.inverted > * { position: relative; z-index: 1; }
.page-header .eyebrow { font-family: var(--en); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); position: relative; }
.page-header h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 76px); letter-spacing: 0.12em; margin: 18px 0 0; color: #fff; position: relative; }
.page-header .lead { margin: 22px auto 0; max-width: 620px; font-weight: 300; font-size: 15px; line-height: 2; letter-spacing: 0.08em; color: var(--text-dim); position: relative; }
.page-header .section-divider { margin: 22px auto; }

/* ── Marquee ── */
.marquee-wrap { overflow: hidden; background: #050507; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.marquee-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.marquee-item { font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-mute); padding: 0 40px; white-space: nowrap; }
.marquee-dot { color: var(--gold); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Section commons ── */
.section { padding: 100px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-num { font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.section-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); font-weight: 300; letter-spacing: 0.12em; color: #fff; }
.section-tag { font-family: var(--en); font-size: 12px; letter-spacing: 0.2em; color: var(--text-mute); }
.section-divider { width: 40px; height: 1px; background: var(--gold); margin: 20px 0; }
.section-link { font-family: var(--en); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; margin-left: auto; transition: color 0.2s; }
.section-link:hover { color: var(--text); }
.section-link .line { width: 28px; height: 1px; background: currentColor; transition: width 0.3s; }
.section-link:hover .line { width: 44px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Philosophy band (画像背景・ドラマ用) ── */
.philosophy {
  padding: 150px 40px; position: relative; text-align: center;
  border-bottom: 1px solid var(--line-soft);
  background-image: linear-gradient(rgba(8,8,10,0.62), rgba(8,8,10,0.74)), url('/images/philosophy.png');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.philosophy-inner { max-width: 760px; margin: 0 auto; }
.philosophy-heading { font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.philosophy-text { margin-top: 36px; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3vw, 34px); line-height: 1.9; letter-spacing: 0.1em; color: #fff; }
.philosophy-text strong { color: var(--gold-bright); font-weight: 400; }

/* ── About strip (Home) ── */
.about { background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.about-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.about-text { font-family: var(--sans); font-weight: 300; font-size: clamp(16px, 1.7vw, 21px); line-height: 2.2; letter-spacing: 0.08em; color: var(--text); }
.about-text strong { font-weight: 500; color: #fff; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; text-align: left; }
.pillar { border-top: 1px solid var(--line); padding-top: 24px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0.08em; margin-bottom: 12px; color: #fff; }
.pillar p { font-weight: 300; font-size: 14px; line-height: 1.95; color: var(--text-dim); }
.pillar .pillar-en { font-family: var(--en); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }

/* ── Services grid (小カード) ── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 36px 30px; text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.svc-card:hover { border-color: rgba(216,180,106,0.5); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.4); }
.svc-ico { width: 40px; height: 40px; stroke: var(--gold); stroke-width: 1.4; fill: none; margin-bottom: 22px; }
.svc-card h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: 0.06em; margin-bottom: 6px; color: #fff; }
.svc-card .svc-en { font-family: var(--en); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.svc-card p { font-weight: 300; font-size: 13.5px; line-height: 1.9; color: var(--text-dim); flex: 1; }
.svc-price { margin-top: 20px; font-family: var(--en); font-size: 13px; letter-spacing: 0.05em; color: var(--gold); }
.svc-price span { font-size: 11px; color: var(--text-mute); }
.svc-samplelink { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--en); font-size: 12px; letter-spacing: 0.03em; }
.svc-samplelink a { color: var(--gold); border-bottom: 1px solid rgba(216,180,106,0.45); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.svc-samplelink a:hover { color: #fff; border-color: #fff; }
/* サービスカード共通フッター（価格＋大きく分かりやすいボタンを下部に揃える） */
.svc-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.svc-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.svc-foot .svc-price { margin: 0 0 14px; font-size: 15px; }
.svc-btns { display: flex; flex-direction: column; gap: 9px; }
.svc-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 14px 18px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 6px; border: 1.5px solid var(--gold); color: var(--gold);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.svc-btn svg { width: 17px; height: 17px; }
.svc-btn:hover { background: var(--gold); color: #0a0a0c; }
.svc-btn.fill { background: var(--gold); color: #0a0a0c; border-color: var(--gold); box-shadow: 0 8px 24px rgba(216,180,106,0.18); }
.svc-btn.fill:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

/* ── サービス一覧（色付きパネル・罫線なし・左右一体型） ── */
.svc-list { display: flex; flex-direction: column; gap: 22px; }
.svc-row {
  --ac: var(--gold); --ac-bg: rgba(216,180,106,0.045);
  display: grid; grid-template-columns: 1fr 330px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #16161b, #121216); border: 1px solid rgba(255,255,255,0.07);
}
.svc-row-main { padding: 46px 46px; }
.svc-row-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.svc-ico-badge { width: 56px; height: 56px; border-radius: 50%; background: rgba(216,180,106,0.06); border: 1px solid rgba(216,180,106,0.3); display: grid; place-items: center; flex-shrink: 0; }
.svc-ico-badge svg { width: 30px; height: 30px; stroke: var(--ac); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-no { font-family: var(--en); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ac); display: block; margin-bottom: 5px; }
.svc-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.3vw, 27px); color: #fff; letter-spacing: 0.04em; line-height: 1.3; }
.svc-catch { font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 1.7vw, 20px); color: #fff; letter-spacing: 0.05em; margin-bottom: 18px; }
.svc-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc-feats li { position: relative; padding-left: 28px; font-size: 14px; color: var(--text-dim); }
.svc-feats li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 13px; height: 8px; border-left: 2.5px solid var(--ac); border-bottom: 2.5px solid var(--ac); transform: rotate(-45deg); }
.svc-row-side { background: var(--ac-bg); border-left: 1px solid rgba(255,255,255,0.07); padding: 38px 34px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.price-label { font-family: var(--en); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ac); display: block; }
.price-main { font-family: var(--serif); font-weight: 400; font-size: 34px; color: #fff; display: block; margin: 4px 0 2px; line-height: 1.1; }
.price-main small { font-size: 17px; color: var(--text-dim); }
.price-sub { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; margin-bottom: 8px; }
.svc-cta { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 14px; border-radius: 8px; font-family: var(--sans); font-size: 14px; font-weight: 500; border: 1.5px solid var(--ac); color: var(--ac); transition: background 0.2s, color 0.2s, filter 0.2s; }
.svc-cta svg { width: 17px; height: 17px; }
.svc-cta:hover { background: var(--ac); color: #0a0a0c; }
.svc-cta.primary { background: var(--ac); color: #0a0a0c; }
.svc-cta.primary:hover { filter: brightness(1.12); }
@media (max-width: 768px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-row-main { padding: 30px 24px; }
  .svc-row-side { padding: 28px 24px; }
}

/* ── Project big card (Works用・既存デザイン継承) ── */
.projects { background: var(--bg-3); }
.jpel-card {
  display: block; text-decoration: none;
  background: linear-gradient(135deg, #0f1d30 0%, #0a1420 100%);
  border: 1px solid rgba(245,200,66,0.2);
  padding: 40px 44px; position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.jpel-card:hover { border-color: rgba(245,200,66,0.5); transform: translateY(-4px); }
.jpel-card + .jpel-card { margin-top: 24px; }
.jpel-bg-num { position: absolute; right: -20px; top: -20px; font-family: var(--en); font-size: 220px; font-weight: 700; line-height: 1; color: rgba(245,200,66,0.04); pointer-events: none; user-select: none; letter-spacing: -0.05em; }
.jpel-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(245,200,66,0.4); border-radius: 2px; font-family: var(--en); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-bright); background: rgba(245,200,66,0.06); margin-bottom: 20px; }
.jpel-badge-dot { width: 5px; height: 5px; background: var(--gold-bright); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.jpel-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.jpel-eyebrow { font-family: var(--en); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.jpel-title { font-family: var(--en); font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: 0.04em; color: #fff; line-height: 1.12; margin-bottom: 6px; }
.jpel-subtitle { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; color: rgba(200,212,227,0.5); margin-bottom: 18px; }
.jpel-desc { font-family: var(--sans); font-size: 13.5px; font-weight: 300; line-height: 1.8; letter-spacing: 0.04em; color: rgba(200,212,227,0.8); max-width: 480px; }
.jpel-arrow { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-family: var(--en); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(245,200,66,0.6); }
.jpel-card:hover .jpel-arrow { color: var(--gold-bright); }
.jpel-arrow-line { width: 32px; height: 1px; background: currentColor; transition: width 0.3s; }
.jpel-card:hover .jpel-arrow-line { width: 56px; }

/* LINGUA variant (紫系) */
.jpel-card.lingua { background: linear-gradient(rgba(14,10,24,0.88), rgba(14,10,24,0.92)), url('/images/lingua.png') center/cover; border-color: rgba(167,139,250,0.3); }
.jpel-card.lingua:hover { border-color: rgba(167,139,250,0.55); }
.jpel-card.lingua .jpel-bg-num { color: rgba(167,139,250,0.05); }
.jpel-card.lingua .jpel-badge { border-color: rgba(167,139,250,0.4); color: var(--purple); background: rgba(167,139,250,0.06); }
.jpel-card.lingua .jpel-badge-dot { background: var(--purple); }
.jpel-card.lingua .jpel-eyebrow { color: var(--purple); }
.jpel-card.lingua .jpel-arrow { color: rgba(167,139,250,0.6); }
.jpel-card.lingua:hover .jpel-arrow { color: var(--purple); }
.jpel-card.lingua .jpel-inner { grid-template-columns: 1fr; }
.jpel-card.lingua .jpel-desc { font-size: 13px; max-width: 560px; }
.jpel-card.lingua .proj-feat { font-size: 13px; }
.jpel-card.lingua .jpel-title { font-size: clamp(26px, 3.4vw, 38px); }

/* JPEL 駅伝コースライン */
.jpel-course { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%); mask-image: linear-gradient(to top, #000 10%, transparent 95%); }
.jpel-course svg { width: 100%; height: 100%; display: block; }
.jpel-course .runner { animation: runnerPulse 2.4s ease-in-out infinite; }
@keyframes runnerPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.9; } }

/* プロジェクト共通 */
.proj-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 20px 0 0; }
.proj-feat { display: flex; align-items: center; gap: 11px; font-family: var(--sans); font-size: 13px; font-weight: 300; letter-spacing: 0.03em; color: rgba(200,212,227,0.85); }
.proj-feat svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--gold-bright); }
.jpel-card.lingua .proj-feat { color: rgba(222,216,242,0.85); }
.jpel-card.lingua .proj-feat svg { stroke: var(--purple); }
.proj-stack { position: relative; width: 100%; aspect-ratio: 1 / 0.86; }
.proj-stack img { position: absolute; width: 44%; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 12px 30px rgba(0,0,0,0.55); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.proj-stack img:nth-child(1) { top: 0; left: 4%; transform: rotate(-6deg); z-index: 1; }
.proj-stack img:nth-child(2) { top: 15%; left: 28%; transform: rotate(1deg); z-index: 2; }
.proj-stack img:nth-child(3) { top: 30%; left: 52%; transform: rotate(6deg); z-index: 3; }
.jpel-card:hover .proj-stack img:nth-child(1) { transform: rotate(-9deg) translate(-7px,-5px); }
.jpel-card:hover .proj-stack img:nth-child(3) { transform: rotate(9deg) translate(7px,5px); }

/* AI Chatbot variant (ティール系) — Servicesページの主役カード */
.jpel-card.chatbot { background: linear-gradient(135deg, #0a1f1c 0%, #07130f 100%); border-color: rgba(45,212,191,0.3); }
.jpel-card.chatbot:hover { border-color: rgba(45,212,191,0.55); }
.jpel-card.chatbot .jpel-badge { border-color: rgba(45,212,191,0.4); color: var(--teal); background: rgba(45,212,191,0.06); }
.jpel-card.chatbot .jpel-badge-dot { background: var(--teal); }
.jpel-card.chatbot .jpel-eyebrow { color: var(--teal); }
.jpel-card.chatbot .jpel-arrow { color: rgba(45,212,191,0.6); }
.jpel-card.chatbot:hover .jpel-arrow { color: var(--teal); }
.jpel-card.chatbot .proj-feat { color: rgba(204,242,237,0.85); }
.jpel-card.chatbot .proj-feat svg { stroke: var(--teal); }
.jpel-card.chatbot .jpel-desc { max-width: 460px; }
.jpel-card.chatbot .jpel-title { font-size: clamp(28px, 3.8vw, 42px); }

/* チャットプレビュー（モック） */
.chat-preview { width: 100%; max-width: 320px; margin: 0 auto; background: #0f1115; border: 1px solid rgba(45,212,191,0.25); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
.chat-preview-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #12211d; border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--sans); font-size: 12px; color: #cdeee6; letter-spacing: 0.06em; }
.chat-preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.chat-preview-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-bub { max-width: 80%; padding: 9px 12px; border-radius: 12px; font-family: var(--sans); font-size: 12.5px; line-height: 1.6; }
.chat-bub.bot { background: #1d2027; color: #e9eaee; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bub.user { background: var(--teal); color: #07130f; align-self: flex-end; border-bottom-right-radius: 4px; }

/* ── Process (進め方) ── */
.process { background: var(--bg); border-top: 1px solid var(--line-soft); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 2px solid var(--gold); padding-top: 22px; }
.step-num { font-family: var(--en); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 14px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: 0.06em; margin-bottom: 10px; color: #fff; }
.step p { font-weight: 300; font-size: 13px; line-height: 1.85; color: var(--text-dim); }

/* ── Contact ── */
.contact { padding: 130px 40px; background: #050507; color: var(--text); border-top: 1px solid var(--line-soft); }
.contact-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.contact-heading { font-family: var(--serif); font-size: clamp(48px, 8vw, 100px); font-weight: 200; letter-spacing: 0.15em; color: #fff; line-height: 1; margin-bottom: 24px; }
.contact-lead { font-weight: 300; font-size: 15px; line-height: 2; color: var(--text-dim); margin-bottom: 36px; max-width: 460px; letter-spacing: 0.06em; }
.contact-link { display: inline-flex; align-items: center; gap: 16px; font-family: var(--en); font-size: 16px; font-weight: 300; letter-spacing: 0.1em; color: var(--text-dim); text-decoration: none; transition: color 0.2s; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.contact-link:hover { color: #fff; border-color: var(--gold); }
.contact-right { font-family: var(--serif); font-size: 120px; font-weight: 200; color: rgba(255,255,255,0.04); line-height: 1; user-select: none; flex-shrink: 0; }

/* ── Footer ── */
footer { background: #050505; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); }
.footer-logo { font-family: var(--serif); font-weight: 300; font-size: 16px; letter-spacing: 0.2em; color: #555; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-family: var(--en); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #555; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #999; }
.footer-copy { font-family: var(--en); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #3a3a3a; }

/* ── Contact form ── */
.form-section { background: var(--bg); }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--en); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.field label .req { color: var(--gold); margin-left: 6px; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-family: var(--sans); font-size: 15px; padding: 14px 16px; border-radius: 4px; outline: none;
  transition: border-color 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 150px; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 12px; color: var(--text-mute); line-height: 1.9; }
.form-note a { color: var(--gold); text-decoration: none; }
.form-status { font-size: 14px; line-height: 1.8; padding: 14px 16px; border-radius: 4px; display: none; }
.form-status.ok { display: block; background: rgba(45,212,191,0.1); border: 1px solid rgba(45,212,191,0.4); color: #aef3e8; }
.form-status.err { display: block; background: rgba(255,99,99,0.1); border: 1px solid rgba(255,99,99,0.4); color: #ffb3b3; }

/* ── Gateway (Homeから各ページへの入口) ── */
.gateway { background: var(--bg-3); border-top: 1px solid var(--line-soft); }
.gateway .eyebrow { text-align: center; font-family: var(--en); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 48px; }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
.gate-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: inherit; padding: 56px 48px; min-height: 300px;
  border: 1px solid var(--line); overflow: hidden; background: var(--bg-2);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.gate-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0,0,0,0.45); }
.gate-bg-char { position: absolute; right: -10px; top: -40px; font-family: var(--serif); font-weight: 200; font-size: 220px; line-height: 1; pointer-events: none; user-select: none; opacity: 0.06; }
.gate-en { font-family: var(--en); font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; margin-bottom: 14px; position: relative; }
.gate-card h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.1em; color: #fff; margin-bottom: 14px; position: relative; }
.gate-card p { font-weight: 300; font-size: 14px; line-height: 1.9; color: var(--text-dim); max-width: 380px; position: relative; }
.gate-arrow { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-family: var(--en); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; position: relative; }
.gate-arrow .line { width: 32px; height: 1px; background: currentColor; transition: width 0.3s; }
.gate-card:hover .gate-arrow .line { width: 56px; }
.gate-card.svc { background: radial-gradient(600px 300px at 80% 130%, rgba(216,180,106,0.13), transparent 70%), var(--bg-2); }
.gate-card.svc:hover { border-color: rgba(216,180,106,0.5); }
.gate-card.svc .gate-en, .gate-card.svc .gate-arrow, .gate-card.svc .gate-bg-char { color: var(--gold); }
.gate-card.wrk { background: radial-gradient(600px 300px at 80% 130%, rgba(167,139,250,0.13), transparent 70%), var(--bg-2); }
.gate-card.wrk:hover { border-color: rgba(167,139,250,0.5); }
.gate-card.wrk .gate-en, .gate-card.wrk .gate-arrow, .gate-card.wrk .gate-bg-char { color: var(--purple); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.15em; }
  .hero { padding: 80px 24px 60px; }
  .section { padding: 80px 24px; }
  .philosophy { padding: 100px 24px; background-attachment: scroll; }
  .page-header { padding: 130px 24px 60px; }
  .about-pillars { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid.two-col { grid-template-columns: 1fr; }
  .gate-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; gap: 8px; align-items: flex-start; }
  .section-link { margin-left: 0; }
  .jpel-card { padding: 36px 28px; }
  .jpel-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 80px 24px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-right { display: none; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 24px; }
  .footer-links { flex-direction: column; align-items: center; gap: 16px; }
}
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
