/* ==============================
   株式会社フューチャーリンク
   コーポレートサイト — style.css
============================== */

/* ==============================
   CSS Variables
============================== */
:root {
  --color-primary:      #005BAC;
  --color-black:        #0d0d0d;
  --color-text:         #1a1a1a;
  --color-text-muted:   #6b7280;
  --color-white:        #fff;
  --color-bg-base:      #dce8ff;   /* ブループリント紙トーン */
  --color-bg-sub:       #cfdafc;   /* セクション背景 */
  --color-bg-dark:      #0a0f1e;   /* 青みのあるダーク */
  --color-border:       #a8bfe8;   /* 青みボーダー */

  --font-sans:    "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-display: "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-serif:   "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-heading: "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.1);

  --header-h:  110px;
  --ease-out:  cubic-bezier(.22, 1, .36, 1);

  /* タイポグラフィ — 製品LPより控えめなスケール */
  --text-hero: clamp(44px, 6vw, 80px);
  --text-h2:   clamp(26px, 3.5vw, 44px);
  --text-h3:   clamp(18px, 2.2vw, 26px);
  --text-lead: clamp(15px, 1.6vw, 18px);
  --text-body: 15px;

  /* 余白 */
  --space-section: clamp(48px, 6vw, 80px);
  --space-inner:   clamp(28px, 4vw, 52px);
}

/* ==============================
   Page Progress Bar
============================== */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-primary);
  z-index: 300;
  transition: width .1s linear;
  pointer-events: none;
}

/* ==============================
   Reset & Base
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
#sugoyama, #homerec, #mission, #news { scroll-margin-top: var(--header-h); }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(-45deg, #d8e5ff, #e0eaff, #ccdaff, #d5e3ff);
  background-size: 400% 400%;
  animation: aurora-bg 28s ease infinite;
  line-height: 1.8;
  font-size: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@keyframes aurora-bg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
table  { border-collapse: collapse; }

/* 自然な改行 */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ==============================
   Layout
============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.section { padding-block: var(--space-section); }

/* ==============================
   Scroll Reveal
============================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  .65s var(--ease-out) var(--delay, 0s),
    transform .65s var(--ease-out) var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* ==============================
   Section Labels & Headings
============================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--color-text-muted);
  flex-shrink: 0;
}
/* blue variant (sparingly) */
.section-label--blue { color: var(--color-primary); }
.section-label--blue::before { background: var(--color-primary); }

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  color: var(--color-black);
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-sub {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: var(--space-inner);
}

/* ==============================
   Buttons
============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 11px 24px; line-height: 1; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg  { font-size: 15px; padding: 14px 28px; border-radius: var(--radius); }
.btn-sm  { font-size: 13px; padding: 8px 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.btn-primary:hover {
  background: #004a8e;
  border-color: #004a8e;
  box-shadow: 0 6px 18px rgba(0,91,172,.28);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: #aaa; }

.btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ==============================
   Header
============================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(245,248,255,.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding-inline: clamp(20px, 4vw, 60px);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-main {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: -.02em;
  line-height: 1;
}
.logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.header-nav ul { display: flex; gap: 0; }
.header-nav a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-text);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.header-nav a:hover { color: var(--color-text); background: var(--color-bg-sub); }
.header-nav a.active { color: var(--color-primary); font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.header-sns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 4px;
}
.header-sns a {
  display: flex;
  align-items: center;
  opacity: .7;
  transition: opacity .15s;
}
.header-sns a:hover { opacity: .7; }
.header-sns img { height: 28px; width: auto; display: block; filter: brightness(0); }

.btn-header {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-header--outline {
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  background: transparent;
}
.btn-header--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-header--primary {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.btn-header--primary:hover {
  background: #004fa3;
  border-color: #004fa3;
}

.footer-sns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.footer-sns a {
  display: flex;
  align-items: center;
  opacity: .6;
  transition: opacity .15s;
}
.footer-sns a:hover { opacity: .6; }
.footer-sns img { height: 28px; width: auto; display: block; filter: brightness(0); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--color-text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #f5f8ff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 28px;
  box-shadow: var(--shadow);
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav li a {
  display: block; padding: 11px 8px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav li a:hover { background: var(--color-bg-sub); }
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav-actions .btn {
  display: flex;
  border-bottom: none;
}
.mobile-nav-sns {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 8px 0 4px;
}
.mobile-nav-sns a {
  display: flex;
  align-items: center;
  border-bottom: none;
}
.mobile-nav-sns img {
  height: 24px;
  width: auto;
  filter: brightness(0);
}

/* ==============================
   Page Hero (inner pages)
============================== */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(24px, 3vw, 36px));
  padding-bottom: clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, #c4d9ff 0%, #cfe0ff 50%, #c8d8f8 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-drift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.page-hero--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  pointer-events: none;
  z-index: 0;
}
.page-hero--overlay .container { position: relative; z-index: 2; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-label::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: var(--color-text-muted);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-black);
  line-height: 1.25;
  margin-bottom: 14px;
  text-wrap: balance;
}
.page-hero p {
  font-family: var(--font-sans);
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.8;
}

/* ==============================
   Hero (Top page)
============================== */
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(100px, 12vw, 160px));
  padding-bottom: clamp(120px, 14vw, 180px);
  background: #0a0f1e;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
/* スクロールするグリッドオーバーレイ (HUD風) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-drift 16s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 44px 44px, 44px 44px; }
}

/* ==============================
   Hero Slideshow
============================== */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }
/* ズームターゲットはdivラッパー — img/video直接より全ブラウザで確実 */
.slide-media {
  position: absolute;
  inset: 0;
  transform: scale(1.12);
  transform-origin: center center;
  will-change: transform;
}
.slide-media img,
.slide-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes hero-zoom-out {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0);  }
}
@keyframes hero-zoom-in {
  from { transform: scale(1.0);  }
  to   { transform: scale(1.12); }
}
/* グラデーションオーバーレイ: 右はやや明るく（写真パネル用）、全体は暗め */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(4,12,40,.72) 0%,
      rgba(4,12,40,.52) 55%,
      rgba(4,12,40,.38) 100%),
    linear-gradient(to top,
      rgba(4,12,40,.5) 0%,
      transparent 50%);
  z-index: 1;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scroll-bounce 2s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,.4);
}
.hero-scroll-arrow {
  display: block;
  width: 3px;
  height: 72px;
  background: linear-gradient(to bottom, #fff, transparent);
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3; /* slideshow(1) + overlay(1) + grid(2) の上 */
}

/* ==============================
   Hero glow orbs (浮遊する光)
============================== */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2; /* overlay(1)の上、grid(2)と同階層 */
  will-change: transform;
}
.hero-glow--1 {
  width: 560px; height: 560px;
  background: rgba(255, 255, 255, .35);
  top: -180px; right: -100px;
  animation: glow-drift-1 18s ease-in-out infinite;
}
.hero-glow--2 {
  width: 420px; height: 420px;
  background: rgba(255, 255, 255, .25);
  bottom: -100px; left: -80px;
  animation: glow-drift-2 24s ease-in-out infinite;
}
.hero-glow--3 {
  width: 300px; height: 300px;
  background: rgba(180, 220, 255, .5);
  top: 15%; left: 30%;
  animation: glow-drift-3 20s ease-in-out infinite;
}
@keyframes glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-50px, 40px) scale(1.06); }
  66%       { transform: translate(30px, -30px) scale(.95); }
}
@keyframes glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(40px, -50px) scale(1.08); }
  70%       { transform: translate(-30px, 25px) scale(.93); }
}
@keyframes glow-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(50px, -40px); }
}

/* ==============================
   Geometric hero decorations
============================== */
.hero-geo {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  opacity: .6;
}
.hero-geo--main {
  width: 540px; height: 540px;
  top: -80px; right: -100px;
}
.hero-geo--accent {
  width: 210px; height: 210px;
  bottom: -20px; left: -40px;
  opacity: .65;
}
.geo-ring-group--slow {
  transform-origin: 250px 250px;
  animation: geo-spin 80s linear infinite;
}
.geo-ring-group--mid {
  transform-origin: 250px 250px;
  animation: geo-spin 48s linear infinite reverse;
}
.geo-rect-spin {
  transform-origin: 105px 105px;
  animation: geo-spin 34s linear infinite;
}
@keyframes geo-spin {
  to { transform: rotate(360deg); }
}


/* Hero heading accent word */
.hero-heading-accent {
  color: #7ec8ff;
  position: relative;
  display: inline-block;
}
.hero-heading-accent::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: #7ec8ff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) .6s;
}
.hero-heading-accent.line-in::after { transform: scaleX(1); }

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
}
.hero-location svg { width: 12px; height: 12px; flex-shrink: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 28px;
}
.hero-eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}

.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  margin-top: 24px;
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 36px;
}
.hero-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 6px 16px;
  background: rgba(255,255,255,.05);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.8vw, 84px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: #fff;
  line-height: 2;
  margin-bottom: 0;
  max-width: 100%;
  white-space: nowrap;
}

.hero-services {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px;
}
.hero-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  width: 240px;
  flex-shrink: 0;
  transition: opacity .2s;
}
.hero-service-item:hover { opacity: .7; }
.hero-service-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  color: rgba(255,255,255,.35);
}
.hero-service-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
  white-space: nowrap;
}
.hero-service-arrow {
  font-size: 14px;
  color: rgba(255,255,255,.4);
}
.hero-service-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* ヒーロー内のアウトラインボタンは白ボーダー */
.hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.hero-cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

/* 会社スタッツカード */
.hero-stats-card {
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stat-item {
  padding-block: 22px;
  border-bottom: 1px solid var(--color-border);
}
.stat-item:first-child { padding-top: 0; }
.stat-item:last-child  { padding-bottom: 0; border-bottom: none; }
.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--color-black);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num small {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}


/* ==============================
   Services Cards (Top page)
============================== */
.services-section {
  background: transparent;
  position: relative;
  z-index: 0;
  padding-bottom: calc(var(--space-section) + 48px); /* mission::before の分を確保 */
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  transition: box-shadow .22s, transform .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #ccc;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0,91,172,.07);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.service-name {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: -.025em;
  margin-bottom: 14px;
  line-height: 1.3;
}
.service-name-en {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .08em;
  margin-bottom: 16px;
  display: block;
}

.service-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  transition: gap .2s;
}
.service-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.service-card:hover .service-link { gap: 10px; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* external badge */
.service-card--external .service-link::after {
  content: '↗';
  font-size: 11px;
  opacity: .6;
}

/* ==============================
   Mission Section (dark)
============================== */
.mission-section {
  background: var(--color-bg-dark);
  padding-block: var(--space-section);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.mission-bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.mission-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,14,.70);
  z-index: 1;
}
/* 上辺の斜めカット（日本SaaS風セクション区切り） */
.mission-section::before {
  content: '';
  position: absolute;
  top: -48px; left: 0; right: 0;
  height: 48px;
  background: var(--color-bg-dark);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
/* 下辺の斜めカット */
.mission-section::after {
  content: '';
  position: absolute;
  bottom: -48px; left: 0; right: 0;
  height: 48px;
  background: var(--color-bg-dark);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.mission-section .mission-inner { position: relative; z-index: 2; }
/* ミッション：アニメーショングリッドをinnerの前に */
.mission-section .mission-inner::before {
  content: '';
  position: absolute;
  inset: -120px -200px;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift-rev 32s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes grid-drift-rev {
  from { background-position: 0 0, 0 0; }
  to   { background-position: -48px -48px, -48px -48px; }
}
.mission-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.mission-eyebrow,
.mission-heading,
.mission-body,
.mission-values { position: relative; z-index: 1; }
.mission-eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.mission-eyebrow::before,
.mission-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.mission-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -.035em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.mission-body {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.5vw, 17px);
  color: #fff;
  line-height: 2.1;
  margin-bottom: 48px;
}
.mission-values {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 16px;
  justify-content: center;
}
.mission-value {
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border: none;
  border-radius: var(--radius-lg);
  transition: box-shadow .2s, transform .2s;
}
.mission-value:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.mission-value-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.mission-value-icon svg {
  width: 24px; height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.mv-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1;
}
.mv-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.mv-desc {
  font-size: 15px;
  color: #111;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: keep-all;
}

/* ==============================
   Numbers Strip (Top page)
============================== */
.numbers-section {
  background: var(--color-bg-sub);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-section);
  position: relative;
  z-index: 0;
  margin-top: 48px; /* mission-section::after の分を吸収 */
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.number-item {
  padding: clamp(28px, 3.5vw, 44px) clamp(16px, 2vw, 28px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow .22s, border-color .22s, transform .22s;
}
.number-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}
.number-val {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--color-black);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.number-val span { font-size: .55em; font-weight: 700; }
.number-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ==============================
   News / お知らせ (Top page)
============================== */
.news-section {
  background: #fff;
  margin-top: 48px; /* mission-section::after の斜めカット分 */
}
.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-inner);
}
.news-header .section-heading { margin-bottom: 0; }
.news-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 24px;
  padding-block: 20px;
  border-top: 1px solid var(--color-border);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
  align-items: start;
}
.news-item:last-child { border-bottom: 1px solid var(--color-border); }
.news-item:hover { background: var(--color-bg-sub); }
.news-item:hover .news-title { color: var(--color-primary); }
.news-date {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  padding-top: 3px;
  white-space: nowrap;
}
.news-item-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  background: rgba(0,0,0,.07);
  color: rgba(0,0,0,.5);
}
.news-tag--sugoyama {
  background: var(--color-primary);
  color: #fff;
}
.news-tag--homerec {
  background: #0891b2;
  color: #fff;
}
.news-tag--update {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.news-title {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
}

/* ==============================
   News Article (詳細ページ)
============================== */
.news-article-section { background: #fff; }
.news-article {
  max-width: 760px;
}
.news-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.news-article-date {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.news-article-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-primary);
  background: rgba(0,91,172,.07);
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.news-article-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.4;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.news-article-body p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #000;
  line-height: 2;
  margin-bottom: 20px;
}
.news-article-body p:last-child { margin-bottom: 0; }
.news-article-body h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 40px;
  text-decoration: none;
}
.news-article-back:hover { opacity: .7; }

/* ==============================
   CTA Strip
============================== */
.cta-strip {
  background: #DAE5FF;
  padding-block: clamp(40px, 5vw, 64px);
  text-align: center;
}
.cta-strip .container { position: relative; }
.cta-strip .section-label { color: var(--color-primary); }
.cta-strip .section-label::before { background: var(--color-primary); }
.cta-strip .section-heading { color: #000; }
.cta-strip .section-sub { color: #000; }
.cta-strip .btn-outline {
  color: #000;
  border-color: rgba(0,0,0,.4);
}
.cta-strip .btn-outline:hover {
  border-color: #000;
  background: rgba(0,0,0,.08);
}
/* ==============================
   Office Photo Section
============================== */
.office-section {
  padding-block: 0;
}
.office-photo-wrap {
  position: relative;
  overflow: hidden;
}
.office-photo {
  width: 100%;
  height: clamp(280px, 40vw, 560px);
  object-fit: cover;
  display: block;
}
.office-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(to top, rgba(10,20,40,.72) 0%, transparent 100%);
  color: #fff;
}
.office-photo-caption .section-label {
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}
.office-photo-caption .section-label::before { background: rgba(255,255,255,.8); }
.office-photo-caption p {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,.85);
  margin: 0;
}

.cta-strip .section-heading { margin-bottom: 12px; }
.cta-strip .section-sub {
  margin-inline: auto;
  text-align: center;
  margin-bottom: 36px;
}
.cta-strip-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-character {
  position: absolute;
  right: -20px;
  bottom: 0;
  height: 90%;
  max-height: 320px;
  width: auto;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom;
}
@media (max-width: 768px) {
  .cta-character { display: none; }
}

/* ==============================
   Footer
============================== */
.site-footer {
  background: #fff;
  color: rgba(0,0,0,.5);
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 32px;
}

.footer-logo-link { display: inline-block; margin-bottom: 12px; }
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: none;
  opacity: 1;
}
.footer-company-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: rgba(0,0,0,.85);
  margin-bottom: 12px;
  letter-spacing: .03em;
}
.footer-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-tel-icon {
  height: 20px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-tel-number {
  font-size: 22px;
  font-weight: 800;
  color: #000;
  letter-spacing: .02em;
  line-height: 1;
}
.footer-address {
  font-size: 14px;
  color: #000;
  line-height: 2;
  font-style: normal;
  margin-bottom: 0;
}
.footer-privacy-icon {
  display: flex;
  justify-content: center;
  padding-block: 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.footer-privacy-icon img {
  height: 80px;
  width: auto;
  display: block;
  opacity: .85;
}
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col a {
  font-size: 15px;
  color: #000;
  padding: 5px 0;
  transition: color .15s;
  display: inline-block;
  white-space: nowrap;
}
.footer-col a:hover { color: #000; }
.footer-copy {
  padding-block: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy p { font-size: 13px; color: #000; }

/* ==============================
   About Page — 代表メッセージ
============================== */
.message-section { background: #fff; }
.message-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.message-photo-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.message-body p {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 20px;
}
.message-body p:last-child { margin-bottom: 0; }
.message-sig {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.message-sig-role {
  font-size: 13px;
  color: #000;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.message-sig-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-black);
  letter-spacing: -.02em;
}

.message-avatar {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  text-align: center;
}
.avatar-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  margin: 0 auto 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.avatar-circle svg { width: 80%; height: 80%; }
.avatar-name { font-size: 14px; font-weight: 700; color: var(--color-black); }
.avatar-role { font-size: 12px; color: var(--color-text-muted); margin-top: 3px; }

/* ==============================
   About Page — 会社概要テーブル
============================== */
.company-table-section { background: #fff; }
.company-table {
  width: 100%;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.company-table tr { border-bottom: 1px solid var(--color-border); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  width: 200px;
  padding: 18px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: var(--color-bg-sub);
  border-right: 1px solid var(--color-border);
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.8;
  vertical-align: top;
}

/* ==============================
   About Page — 代表アバター (イニシャル)
============================== */
.avatar-initials {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid var(--color-border);
}
.avatar-initials-text {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -.04em;
  line-height: 1;
}

/* ==============================
   About Page — 沿革
============================== */
.history-section { background: #fff; }
.history-list {
  max-width: 680px;
  position: relative;
}
.history-list::before {
  content: '';
  position: absolute;
  left: 99px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(0,91,172,.08));
}
.history-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid var(--color-border);
  align-items: center;
  position: relative;
  transition: transform .2s var(--ease-out);
}
.history-item:last-child { border-bottom: 1px solid var(--color-border); }
.history-item::before {
  content: '';
  position: absolute;
  left: 95px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,91,172,.12);
  z-index: 1;
}
.history-item:hover { transform: translateX(6px); }
.history-year {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .02em;
  padding-right: 8px;
}
.history-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.75;
  padding-left: 20px;
}

/* ==============================
   Services Page
============================== */
.service-sections-wrapper {
  background-image: url("images/サービス.png");
  background-size: 100% 100%;
  background-position: left top;
  background-repeat: no-repeat;
}
.service-section {
  padding-block: var(--space-section);
}
.service-section-header {
  margin-bottom: 48px;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.service-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.service-detail-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--color-black);
  letter-spacing: -.035em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.service-detail-name-ja {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #000;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: .03em;
}
.service-detail-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #000;
  line-height: 2;
  margin-bottom: 28px;
}
.service-detail-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.service-detail-point {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  align-items: flex-start;
}
.service-detail-point::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain; -webkit-mask-size: contain;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  flex-shrink: 0; margin-top: 2px;
}
.service-visual {
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 300px;
  justify-content: center;
}
.sv-product-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-black);
  letter-spacing: -.025em;
}
.sv-tag {
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0,91,172,.07);
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.sv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sv-stat {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sv-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-black);
  letter-spacing: -.03em;
  margin-bottom: 2px;
}
.sv-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* SVG / イラスト差し替えバリアント */
.service-visual--illus {
  background: none;
  border: none;
  padding: 0;
  min-height: auto;
  justify-content: flex-start;
}
.service-illus-img {
  width: 110%;
  max-width: 110%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.service-illus-img--nobg {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 48px rgba(0,60,140,.18));
}

/* Coming Soon バリアント */
.service-visual--coming {
  background: linear-gradient(135deg, #0F4C91 0%, #005BAC 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-radius: var(--radius-lg);
}
.service-coming-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-coming-label {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: .15em;
  color: rgba(255,255,255,.15);
  text-align: center;
  line-height: 1.2;
}

/* 近日公開バッジ */
.service-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #005BAC;
  background: rgba(0,91,172,.08);
  border: 1px solid rgba(0,91,172,.2);
  padding: 6px 14px;
  border-radius: 100px;
}
.service-coming-soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #005BAC;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ヒーロー Coming Soon アイテム */
.hero-service-item--soon {
  opacity: .7;
  cursor: default;
  pointer-events: none;
}
.hero-service-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 2px 7px;
}

/* ==============================
   Services — 導入効果 (Use Cases)
============================== */
.use-cases-section {
  background: transparent;
  padding-block: var(--space-section);
  border-bottom: 1px solid var(--color-border);
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.use-case-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  transition: box-shadow .22s, transform .22s;
  position: relative;
  overflow: hidden;
}
.use-case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.use-case-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,.08); transform: translateY(-6px); }
.use-case-card:hover::before { transform: scaleX(1); }
.use-case-metric {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.use-case-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.use-case-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 8px;
}
.use-case-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ==============================
   Contact — Info Sidebar Cards
============================== */
.ci-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  background: #fff;
  margin-bottom: 16px;
  transition: box-shadow .2s, transform .2s;
}
.ci-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ci-card:last-child { margin-bottom: 0; }
.ci-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 20px;
}
.ci-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.ci-row:last-child { margin-bottom: 0; }
.ci-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg {
  width: 18px; height: 18px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ci-row-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.75;
}
.ci-card--sub {
  background: var(--color-bg-sub);
}
.ci-card--sub .ci-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.ci-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ==============================
   Contact Form
============================== */
.contact-section { background: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:first-child { padding-top: 0; }
.ci-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.ci-val { font-size: 14px; color: var(--color-text); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.form-label-req {
  font-size: 10px;
  color: #dc2626;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,91,172,.1);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.7; }

.form-note {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.form-note a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

.form-submit { align-self: flex-start; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  font-size: 14px;
  color: #15803d;
  font-weight: 500;
}

/* ==============================
   Contact Methods (電話 / フォーム)
============================== */
.contact-section .container { max-width: 1400px; }
.contact-methods {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-method-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.contact-method-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.contact-tel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: opacity .15s;
  justify-content: center;
}
.contact-tel-btn:hover { opacity: .85; }
.contact-tel-icon {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}
.contact-tel-hours {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-top: 14px;
  text-align: center;
}
.form-label-opt {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group--privacy {
  padding: 16px;
  background: var(--color-bg-sub);
  border-radius: var(--radius);
}
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}
.form-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.form-checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-error-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.form-group--error .form-input,
.form-group--error .form-textarea {
  border-color: #dc2626 !important;
  background: #fff8f8 !important;
}
.form-group--error .form-label,
.form-group--error .form-radio-group,
.form-group--error .form-checkbox-label {
  color: #dc2626 !important;
}
.form-error-msg {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}
.form-radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
}
.form-radio {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ==============================
   Privacy Page
============================== */
.privacy-section { background: #fff; }
.privacy-body { max-width: 760px; }
.privacy-body h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #000;
  line-height: 1.9;
  margin-bottom: 14px;
}
.privacy-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}
.privacy-body li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ==============================
   Responsive — Tablet (≤ 1024px)
============================== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 240px 1fr; }
  .mission-values { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-methods { grid-template-columns: 1fr; }
}

/* ==============================
   Responsive — Mobile (≤ 768px)
============================== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hero-sub { white-space: normal; }
  .hero-heading { white-space: normal; }

  .header-nav, .header-actions { display: none; }
  .header-inner { display: flex; justify-content: space-between; align-items: center; }
  .hamburger { display: flex; }

  .section-label { font-size: 14px; }
  .section-label::before { width: 20px; }
  .page-hero-label { font-size: 14px; }

  .hero-geo--main { width: 280px; height: 280px; top: -20px; right: -40px; }
  .hero-geo--accent { display: none; }
  .hero-stats-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item {
    border-bottom: 1px solid var(--color-border);
    border-right: none;
    padding: 20px 0;
  }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--color-border); padding-right: 20px; }
  .stat-item:nth-child(even) { padding-left: 20px; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .hero-services { flex-direction: column; align-items: stretch; gap: 0; }
  .hero-service-item { width: 100%; justify-content: center; }
  .hero-service-divider { width: 80%; height: 1px; align-self: center; }

  .services-grid { grid-template-columns: 1fr; }

  .mission-eyebrow { font-size: clamp(16px, 3.5vw, 28px); letter-spacing: .15em; gap: 10px; }
  .mission-eyebrow::before, .mission-eyebrow::after { width: 20px; }
  .mission-heading { font-size: clamp(22px, 4.5vw, 52px); }
  .mission-body { font-size: 14px; word-break: break-word; }
  .mission-values { grid-template-columns: 1fr; }
  .mission-value { border-bottom: 1px solid rgba(255,255,255,.1); padding: 24px; }
  .mission-value:last-child { border-bottom: none; }
  .mv-desc { word-break: break-word; }

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

  .use-cases-grid { grid-template-columns: 1fr; }
  .history-list::before { display: none; }
  .history-item::before { display: none; }
  .history-item:hover { transform: none; }

  .message-inner { grid-template-columns: 1fr; }
  .message-avatar { position: static; display: flex; align-items: center; gap: 20px; text-align: left; }
  .avatar-circle { width: 80px; height: 80px; margin: 0; flex-shrink: 0; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .service-detail-inner { grid-template-columns: 1fr; }
  #homerec .service-detail-inner { grid-template-columns: 1fr !important; }
  #homerec .service-detail-right { text-align: left; }
  #homerec .service-illus-img { transform: none !important; }


  .news-item { grid-template-columns: 90px 1fr; }
  .news-item .news-category { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner > :first-child { grid-column: 1; }
  .footer-copy { flex-direction: column; gap: 8px; text-align: center; }

  .history-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .company-table th { width: 130px; white-space: normal; }
}

/* ==============================
   Responsive — Small (≤ 480px)
============================== */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .cta-strip-actions { flex-direction: column; align-items: center; }
  .numbers-grid { grid-template-columns: 1fr; }
  .mission-values { grid-template-columns: 1fr; }
}
