/* ============================================================
   GIG Intelligence Inc. — Corporate Site
   Brand: Yellow #FFF100 / Charcoal #2D2E34 / Ink #2C2523
   ============================================================ */

:root {
  --brand-yellow: #fff100;
  --charcoal: #2d2e34;
  --charcoal-deep: #232429;
  --ink: #1e1f24;
  --text: #2b2c31;
  --text-muted: #6b6c72;
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --line: #e3e3e6;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Brand highlight (logo's yellow marker motif) ---- */
.hl {
  background: linear-gradient(transparent 78%, var(--brand-yellow) 78%, var(--brand-yellow) 96%, transparent 96%);
  padding: 0 0.1em;
  font-weight: 700;
}
.section-dark .hl {
  background: linear-gradient(transparent 78%, rgba(255, 241, 0, 0.45) 78%, rgba(255, 241, 0, 0.45) 96%, transparent 96%);
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { display: block; line-height: 0; }
.header-logo .logo-img { width: 200px; }
.header-logo .logo-color { display: none; }

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .logo-white { display: none; }
.site-header.is-solid .logo-color { display: block; }

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
.global-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #fff;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.site-header.is-solid .global-nav a { color: var(--ink); }
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--brand-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.global-nav a.nav-cta {
  border: 1px solid currentColor;
  padding: 9px 22px;
  transition: all 0.3s;
}
.global-nav a.nav-cta::after { display: none; }
.global-nav a.nav-cta:hover {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.site-header.is-solid .nav-toggle span,
.site-header.nav-open .nav-toggle span { background: var(--ink); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  right: -10%; top: 18%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 241, 0, 0.14), transparent 65%);
  filter: blur(20px);
  animation: glow-drift 9s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.15); }
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 160px 24px 120px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--brand-yellow);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 24px; bottom: 28px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-scroll span {
  display: block;
  width: 56px; height: 1px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--brand-yellow);
  animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  padding: 15px 40px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  background: var(--brand-yellow);
  color: var(--ink);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}
.btn-lg { padding: 18px 64px; font-size: 1rem; }

/* ============ Sections ============ */
.section { padding: 120px 0; }
.section-dark {
  background: var(--charcoal);
  color: #fff;
}

.section-head { margin-bottom: 64px; }
.section-label {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-label::before {
  content: "";
  width: 34px; height: 10px;
  background: var(--brand-yellow);
  border: 1px solid var(--ink);
  border-left-width: 0;
  border-bottom-width: 0;
}
.section-dark .section-label { color: rgba(255, 255, 255, 0.6); }
.section-dark .section-label::before { border-color: #fff; }

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.section-sub {
  margin-top: 22px;
  max-width: 680px;
  color: var(--text-muted);
}
.section-dark .section-sub { color: rgba(255, 255, 255, 0.75); }

/* ============ About ============ */
.about-lead {
  max-width: 760px;
  margin-bottom: 64px;
  font-size: 1.05rem;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about-card {
  background: var(--bg-soft);
  padding: 40px 32px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 31, 36, 0.1);
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 6px;
  background: var(--brand-yellow);
}
.about-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.6;
}
.about-card p { font-size: 0.95rem; color: var(--text-muted); }
.about-card p .hl { color: var(--text); }

/* ============ Service ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 44px 40px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}
.service-card:hover {
  border-color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px;
  color: var(--brand-yellow);
  margin-bottom: 24px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-card p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ============ Company ============ */
.company-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.company-table div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.company-table div:first-child { border-top: 1px solid var(--line); }
.company-table dt {
  font-weight: 700;
  font-size: 0.92rem;
}
.company-table dd { font-size: 0.95rem; color: var(--text-muted); }

.ceo-profile {
  background: var(--bg-soft);
  padding: 40px 36px;
  border-top: 6px solid var(--brand-yellow);
}
.ceo-profile h3 {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ceo-photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 var(--brand-yellow);
  margin-bottom: 24px;
}
.ceo-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.ceo-name span {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.ceo-profile ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ceo-profile ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 3px;
  background: var(--brand-yellow);
  outline: 1px solid var(--ink);
}

/* ============ Contact ============ */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { margin-bottom: 28px; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.req {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-jp);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.3s, background 0.3s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.09);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { text-align: center; margin-top: 12px; }
.form-status {
  text-align: center;
  margin-top: 20px;
  font-size: 0.92rem;
  min-height: 1.5em;
}
.form-status.ok { color: var(--brand-yellow); }
.form-status.err { color: #ff8a80; }

/* ============ Footer ============ */
.site-footer {
  background: var(--charcoal-deep);
  color: #fff;
  padding: 72px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.footer-logo { width: 220px; }
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--brand-yellow); }
.copyright {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ Reveal animation ============
   .js が無い（JS無効/未実行）環境では隠さない */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .hero-scroll span::after { animation: none; }
  .marquee-track { animation: none; }
  [data-parallax] { transform: none !important; }
  .draw, .node, .core-mark { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
  .core-pulse { animation: none; opacity: 0.4; transform: none; }
}

/* ============================================================
   v2 — ビジュアル強化（キャンバス／マーキー／統計／装飾／イラスト）
   ============================================================ */

/* ---- Hero canvas & watermark ---- */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-watermark {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  font-size: clamp(10rem, 26vw, 24rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  user-select: none;
  pointer-events: none;
}

/* ---- Marquee bands ---- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 0;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
}
.marquee-outline {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.marquee-outline span {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  padding: 20px 0;
  color: transparent;
  -webkit-text-stroke: 1px #c9c9ce;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Section decorations (logo motif) ---- */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.deco-bar,
.deco-frame {
  position: absolute;
  display: block;
  will-change: transform;
}
.deco-bar {
  top: 120px;
  right: -60px;
  width: 300px;
  height: 46px;
  background: var(--brand-yellow);
  opacity: 0.5;
}
.deco-bar.deco-right {
  top: auto;
  bottom: 140px;
  left: -80px;
  right: auto;
  width: 340px;
  opacity: 0.35;
}
.deco-frame {
  top: 200px;
  right: 60px;
  width: 300px;
  height: 46px;
  border: 1.5px solid var(--ink);
  opacity: 0.14;
}

/* ---- About intro & encounter illustration ---- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.about-lead { margin-bottom: 0; }
.about-lead p + p { margin-top: 1.2em; }
.about-visual { margin: 0; }
.encounter-svg { width: 100%; height: auto; display: block; }
.encounter-caption {
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.2em;
  fill: var(--text-muted);
}
.encounter-tag {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  fill: var(--text-muted);
}

/* 線が描かれるアニメーション（.is-visible で発火） */
.draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0.35;
}
.about-visual.is-visible .draw {
  animation: draw-line 2.2s var(--ease) forwards;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
.node { opacity: 0; }
.about-visual.is-visible .node {
  animation: node-in 0.5s var(--ease) forwards;
}
.about-visual.is-visible .node-group .node:nth-child(1) { animation-delay: 0.3s; }
.about-visual.is-visible .node-group .node:nth-child(2) { animation-delay: 0.5s; }
.about-visual.is-visible .node-group .node:nth-child(3) { animation-delay: 0.7s; }
.about-visual.is-visible .node-group .node:nth-child(4) { animation-delay: 0.9s; }
.about-visual.is-visible .node-group .node:nth-child(5) { animation-delay: 1.1s; }
@keyframes node-in {
  from { opacity: 0; transform: scale(0.4); transform-origin: center; transform-box: fill-box; }
  to   { opacity: 1; transform: scale(1); transform-origin: center; transform-box: fill-box; }
}
.core-mark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.5);
}
.about-visual.is-visible .core-mark {
  animation: mark-in 0.7s var(--ease) 1.4s forwards;
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.core-pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.about-visual.is-visible .core-pulse {
  animation: pulse-ring 2.6s ease-out 1.8s infinite;
}
.about-visual.is-visible .core-pulse.p2 { animation-delay: 3.1s; }
@keyframes pulse-ring {
  0%   { opacity: 0.6; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(3.2); }
}

/* ---- Stats ---- */
.stats {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--ink);
  background: linear-gradient(transparent 68%, var(--brand-yellow) 68%, var(--brand-yellow) 94%, transparent 94%);
  display: inline-block;
  padding: 0 0.15em;
}
.stat-label {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.stat-label span {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Service card shine ---- */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.service-card:hover::after { left: 130%; }

/* ---- v2 responsive ---- */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { gap: 40px 16px; }
  .deco-frame { display: none; }
  .hero-watermark { font-size: clamp(8rem, 34vw, 14rem); }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============ Responsive ============ */
.sp { display: none; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .company-wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .sp { display: inline; }
  .section { padding: 80px 0; }
  .header-logo .logo-img { width: 160px; }

  .nav-toggle { display: flex; }
  .global-nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .site-header.nav-open .global-nav {
    opacity: 1;
    pointer-events: auto;
  }
  .site-header.nav-open .logo-white { display: none; }
  .site-header.nav-open .logo-color { display: block; position: relative; z-index: 110; }
  .global-nav ul {
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }
  .global-nav a { color: var(--ink); font-size: 1rem; }

  .hero-inner { padding: 140px 24px 100px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .company-table div { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .company-table dt { color: var(--text-muted); font-size: 0.8rem; }
  .company-table dd { color: var(--text); }
}

/* ============================================================
   v3 — 下層ページ（サービス詳細・ブログ）
   ============================================================ */

/* ---- Page hero (下層ページ共通のダーク帯) ---- */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: calc(var(--header-h) + 72px) 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--brand-yellow);
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.page-hero-deco {
  position: absolute;
  right: -40px;
  bottom: -14px;
  width: 280px;
  height: 44px;
  background: var(--brand-yellow);
  opacity: 0.4;
  pointer-events: none;
}
.breadcrumb {
  margin-top: 22px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--brand-yellow); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---- Service detail ---- */
.detail-section { padding: 88px 0; }
.detail-lead { max-width: 760px; font-size: 1.05rem; }
.detail-block { margin-top: 64px; }
.detail-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.detail-block h2::before {
  content: "";
  width: 26px;
  height: 8px;
  background: var(--brand-yellow);
  border: 1px solid var(--ink);
  border-left-width: 0;
  border-bottom-width: 0;
  flex: none;
}
.check-list li {
  position: relative;
  padding: 14px 8px 14px 40px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  width: 14px;
  height: 7px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  background: var(--brand-yellow);
  transform: rotate(-45deg);
}
.flow-list { counter-reset: flow; display: grid; gap: 20px; }
.flow-list li {
  counter-increment: flow;
  background: var(--bg-soft);
  padding: 26px 28px 26px 84px;
  position: relative;
}
.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  background: linear-gradient(transparent 66%, var(--brand-yellow) 66%, var(--brand-yellow) 94%, transparent 94%);
  padding: 0 2px;
}
.flow-list h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.flow-list p { font-size: 0.92rem; color: var(--text-muted); }

.detail-cta {
  margin-top: 80px;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
.detail-cta p { margin-bottom: 24px; font-weight: 500; }

.other-services { margin-top: 64px; }
.other-services h2 {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.other-services ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.other-services a {
  display: block;
  border: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.3s, background 0.3s;
}
.other-services a::after {
  content: "→";
  float: right;
  color: var(--brand-yellow);
  text-shadow: 0 0 0 var(--ink);
}
.other-services a:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

/* ---- Service cards as links (トップページ) ---- */
a.service-card { display: block; color: inherit; }
.service-more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--brand-yellow);
}
.service-more::after {
  content: "→";
  margin-left: 8px;
  transition: margin-left 0.3s var(--ease);
}
a.service-card:hover .service-more::after { margin-left: 16px; }

/* ---- Blog list ---- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(30, 31, 36, 0.12);
}
.blog-card-body { padding: 26px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card time {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.blog-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
  margin: 10px 0 14px;
  flex: 1;
}
.blog-card .tags { margin-top: auto; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.blog-card .bar {
  height: 5px;
  background: linear-gradient(90deg, var(--brand-yellow) 0 34%, var(--charcoal) 34% 100%);
}

/* ---- Blog article ---- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.post-meta time {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.post-body {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 2.05;
}
.post-body h1, .post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 2.2em 0 0.9em;
  padding-left: 16px;
  border-left: 5px solid var(--brand-yellow);
  box-shadow: inset 1px 0 0 var(--ink);
}
.post-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 0.7em; }
.post-body p { margin-bottom: 1.4em; }
.post-body img {
  margin: 2em auto;
  border: 1px solid var(--line);
}
.post-body a { color: #1a0dab; text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  margin: 1.8em 0;
  padding: 4px 24px;
  border-left: 4px solid var(--line);
  color: var(--text-muted);
}
.post-body ul, .post-body ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.post-body li { margin-bottom: 0.4em; }
.post-body figure { margin: 2em 0; }
.post-body figcaption { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.post-body pre {
  background: var(--charcoal-deep);
  color: #eee;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 1.8em 0;
}
.post-nav {
  max-width: 760px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-nav a {
  font-weight: 700;
  font-size: 0.92rem;
}
.post-nav a::before {
  content: "←";
  margin-right: 10px;
  color: var(--brand-yellow);
  text-shadow: 0 0 0 var(--ink);
}
.post-nav a:hover { color: var(--text-muted); }

/* ---- v3 responsive ---- */
@media (max-width: 900px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .other-services ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-list { grid-template-columns: 1fr; }
}

/* ---- 実績・特許・論文などのファクトリスト（サービス詳細） ---- */
.fact-list li {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.9;
}
.fact-list li:first-child { border-top: 1px solid var(--line); }
.fact-name { font-weight: 700; }
.fact-sub { color: var(--text-muted); font-size: 0.88rem; display: block; }
.fact-list a {
  color: inherit;
  font-weight: 700;
  border-bottom: 2px solid var(--brand-yellow);
  padding-bottom: 1px;
  transition: border-color 0.3s, color 0.3s;
}
.fact-list a:hover { color: var(--text-muted); border-color: var(--ink); }
.fact-list a[target="_blank"]::after {
  content: "↗";
  margin-left: 4px;
  font-size: 0.8em;
  color: var(--text-muted);
}

/* ============================================================
   Serendipity推薦 インタラクティブデモ（サービスAIの研究開発）
   ============================================================ */
.sv-demo {
  background: var(--charcoal);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 32px;
}
.sv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sv-eyebrow {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--brand-yellow);
  display: block;
  margin-bottom: 6px;
}
.sv-head h3 { font-size: 1.15rem; font-weight: 700; }
.sv-head > div:first-child p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  max-width: 480px;
}
.sv-toggle {
  display: flex;
  gap: 4px;
  background: var(--charcoal-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px;
  flex: none;
}
.sv-btn {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s;
}
.sv-btn:hover { color: #fff; }
.sv-btn.active { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 700; }
.sv-btn[data-mode="serendipity"].active {
  background: var(--brand-yellow);
  color: var(--ink);
}

.sv-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: center;
}
.sv-stage {
  position: relative;
  background: var(--charcoal-deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sv-stage svg { display: block; width: 100%; height: auto; }

/* バブル境界円（回転） */
.sv-bubble {
  stroke: rgba(255, 255, 255, 0.22);
  transform-box: fill-box;
  transform-origin: center;
  animation: sv-rotate 20s linear infinite;
}
@keyframes sv-rotate { to { transform: rotate(360deg); } }
.sv-bubble-label {
  font-family: var(--font-jp);
  font-size: 9px;
  letter-spacing: 0.2em;
  fill: rgba(255, 255, 255, 0.45);
  user-select: none;
}

/* 経路の線 */
.sv-line { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.5; }
.sv-demo[data-mode="serendipity"] .sv-line {
  stroke: rgba(255, 241, 0, 0.55);
  stroke-width: 2;
}

/* 光点 */
.sv-dot { fill: var(--brand-yellow); filter: drop-shadow(0 0 4px rgba(255, 241, 0, 0.8)); }

/* ノード */
.sv-node { cursor: pointer; }
.sv-node .sv-core { transition: fill 0.4s, transform 0.25s var(--ease); transform-box: fill-box; transform-origin: center; }
.sv-node.hover .sv-core { transform: scale(1.3); }
.sv-node-user .sv-core { fill: #ffffff; }
.sv-node-standard .sv-core { fill: rgba(255, 255, 255, 0.25); }
.sv-demo[data-mode="bubble"] .sv-node-standard .sv-core { fill: var(--brand-yellow); }
.sv-node-serendipity .sv-core { fill: rgba(255, 255, 255, 0.18); }
.sv-demo[data-mode="serendipity"] .sv-node-serendipity .sv-core { fill: var(--brand-yellow); }

/* パルスリング：ユーザー常時／セレンディピティ時の未知ノード／ホバー時 */
.sv-pulse { stroke: var(--brand-yellow); opacity: 0; transform-box: fill-box; transform-origin: center; }
.sv-node-user .sv-pulse,
.sv-demo[data-mode="serendipity"] .sv-node-serendipity .sv-pulse,
.sv-node.hover .sv-pulse {
  animation: sv-pulse 2s ease-in-out infinite;
}
@keyframes sv-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 0.2; transform: scale(1.25); }
  100% { opacity: 0.6; transform: scale(1); }
}

/* ノードラベル */
.sv-label { opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.sv-label.always, .sv-node.hover .sv-label { opacity: 1; }
.sv-label rect { fill: var(--charcoal-deep); stroke: rgba(255, 255, 255, 0.3); stroke-width: 0.5; }
.sv-label text {
  font-family: var(--font-jp);
  font-size: 8.5px;
  font-weight: 700;
  fill: #ffffff;
  user-select: none;
}

/* 下部インフォパネル */
.sv-info {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: rgba(35, 36, 41, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
}
.sv-info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#svInfoCat {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--brand-yellow);
}
#svInfoPos { font-size: 0.6rem; color: rgba(255, 255, 255, 0.5); }
#svInfoTitle { font-size: 0.78rem; font-weight: 700; margin-top: 2px; line-height: 1.6; }

/* 右カラム（解説） */
.sv-side h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 10px; }
.sv-side > p {
  font-size: 0.82rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.72);
  min-height: 9.5em;
}
.sv-points {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
  gap: 14px;
}
.sv-points-lead {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 10px;
  border-left: 3px solid var(--brand-yellow);
}
.sv-point { display: flex; gap: 10px; align-items: flex-start; }
.sv-point-num {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255, 241, 0, 0.15);
  color: var(--brand-yellow);
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.sv-point h5 { font-size: 0.78rem; font-weight: 700; }
.sv-point p { font-size: 0.72rem; line-height: 1.9; color: rgba(255, 255, 255, 0.6); }
.sv-point a {
  color: var(--brand-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sv-point a:hover { color: #fff; }
.sv-switch {
  margin-top: 18px;
  background: none;
  border: 0;
  color: var(--brand-yellow);
  font-family: var(--font-jp);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 0;
  float: right;
}
.sv-switch:hover { text-decoration: underline; }
.sv-switch::before { content: "⟳ "; }

@media (max-width: 900px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-demo { padding: 20px; }
  .sv-side > p { min-height: 0; }
}
