/* OCS リニューアル静的トップ — 白ベース / IT / アニメーション */
:root {
  --bg-deep: #ffffff;
  --bg-panel: #f4f6fb;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-glow: rgba(37, 99, 235, 0.28);
  --border: rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --font-sans: "Noto Sans JP", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-out), opacity 0.25s;
}

a:hover {
  color: #1d4ed8;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- 背景オーブ ----- */
.orb-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: orb-float 18s ease-in-out infinite;
}

.orb--1 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb--2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation-delay: -6s;
}

.orb--3 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  top: 45%;
  left: 40%;
  opacity: 0.14;
  animation-delay: -12s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-4%, 2%) scale(0.95);
  }
}

/* ----- グリッドオーバーレイ ----- */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
  animation: grid-pulse 12s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ----- ヘッダー ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 0 24px var(--accent-glow);
  animation: cta-pulse 3s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.25);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ----- メインラッパ ----- */
main {
  position: relative;
  z-index: 1;
}

/* ----- ヒーロー ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.02);
  animation: video-kenburns 24s ease-in-out infinite alternate;
}

@keyframes video-kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.82) 48%, var(--bg-deep) 100%),
    linear-gradient(120deg, rgba(37, 99, 235, 0.09) 0%, transparent 42%, rgba(124, 58, 237, 0.07) 100%);
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(15, 23, 42, 0.025) 2px,
    rgba(15, 23, 42, 0.025) 4px
  );
  pointer-events: none;
  opacity: 0.55;
  animation: scan-drift 8s linear infinite;
}

@keyframes scan-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 64px;
  }
}

.hero__content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero__logo {
  height: clamp(48px, 10vw, 72px);
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(37, 99, 235, 0.18));
  animation: fade-up 0.9s var(--ease-out) 0.15s both, logo-float 6s ease-in-out infinite 1s;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  animation: fade-up 0.9s var(--ease-out) 0.25s both;
}

.hero__title-gradient {
  background: linear-gradient(120deg, #0f172a 0%, var(--accent) 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 auto 2rem;
  animation: fade-up 0.9s var(--ease-out) 0.35s both;
}

/* 2列とも「広い方の本文幅」に揃う（1fr 1fr + コンテナを内容で収める） */
.hero__actions {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  animation: fade-up 0.9s var(--ease-out) 0.45s both;
  vertical-align: top;
}

.hero__actions .btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(20rem, 100%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn--ghost:hover {
  background: #f8fafc;
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fade-up 1s var(--ease-out) 0.8s both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  40% {
    transform: scaleY(1);
    transform-origin: top;
  }
  60% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ----- セクション共通 ----- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}

.section--alt {
  background: var(--bg-panel);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section__lead {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0 0 2.5rem;
}

/* スクロール表示 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ----- About ----- */
.about__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-4px);
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ----- サービスカード ----- */
.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.card__num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.06);
  line-height: 1;
  pointer-events: none;
}

.card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #eef2ff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card__media img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.08) rotate(-2deg);
}

.card__body {
  padding: 1.5rem;
}

.card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.card__body p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card__link {
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__link::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* ----- 採用（カード） ----- */
.recruit-card {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.recruit-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 5px 0 0 5px;
}

.recruit-card__content {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem)
    clamp(1.5rem, 4vw, 2.75rem);
  padding-left: calc(5px + clamp(1.25rem, 3vw, 1.85rem));
}

.recruit-card__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.recruit-card__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.recruit-card__lead {
  margin: 0;
  max-width: 40em;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-muted);
}

.recruit-card__actions {
  margin-top: 1.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.recruit-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.recruit-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.recruit-card__cta-icon {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.recruit-card__cta:hover .recruit-card__cta-icon {
  transform: translateX(4px);
}

.recruit-card__portals {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.recruit-card__portals-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.recruit-card__portals-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.recruit-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.5rem 1.15rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.recruit-portal:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.recruit-portal img {
  display: block;
  max-height: 36px;
  width: auto;
  max-width: min(132px, 28vw);
  object-fit: contain;
}

@media (max-width: 640px) {
  .recruit-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .recruit-card__cta {
    width: 100%;
    justify-content: center;
  }

  .recruit-card__portals {
    width: 100%;
  }

  .recruit-card__portals-row {
    justify-content: flex-start;
  }

  .recruit-portal {
    flex: 1 1 auto;
    min-width: min(160px, 100%);
  }
}

/* ----- ニュース ----- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.news-item {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease-out);
}

@media (min-width: 640px) {
  .news-item {
    grid-template-columns: 120px 100px 1fr;
    align-items: baseline;
  }
}

.news-item:hover {
  padding-left: 0.5rem;
}

.news-item a {
  color: var(--text);
  font-weight: 500;
}

.news-item a:hover {
  color: var(--accent);
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--recruit {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.tag--news {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

/* ----- CTA ----- */
.cta-block {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(15, 23, 42, 0.05);
}

.cta-block p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.cta-block .section__title {
  margin-bottom: 0.5rem;
}

.news-more {
  margin-top: 2rem;
}

/* ----- フッター ----- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 2fr;
  }
}

.footer__brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer__brand address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.footer__nav h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav li {
  margin-bottom: 0.5rem;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__lower {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__lower img {
  height: 36px;
  width: auto;
}

/* ----- サブページ（会社概要など） ----- */
.sub-main {
  position: relative;
  z-index: 1;
  padding: 5.25rem 0 4rem;
}

.sub-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.65rem;
  color: rgba(100, 116, 139, 0.5);
  pointer-events: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.sub-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sub-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.sub-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.sub-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sub-hero__meta time {
  white-space: nowrap;
}

.sub-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .sub-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 2.5rem;
  }
}

.sub-article {
  background: var(--bg-elevated);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sub-article__figure {
  margin: 0 0 1.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--bg-panel);
}

.sub-article__figure img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

.spec-list {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr);
  gap: 0.65rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.spec-row:first-of-type {
  padding-top: 0;
}

.spec-row dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spec-row dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
}

.spec-row dd > p {
  margin: 0 0 0.5rem;
}

.spec-row dd > p:last-child {
  margin-bottom: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table th,
.spec-table td {
  padding: 0.4rem 0.65rem 0.4rem 0;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.spec-table th {
  width: 9.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table a {
  word-break: break-word;
}

.spec-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-links li {
  padding: 0.35rem 0;
}

.spec-links li + li {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.spec-bank-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.spec-bank-row:last-child {
  border-bottom: none;
}

.sub-aside-card {
  position: sticky;
  top: 5.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.06) 0%, #fff 38%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.sub-aside-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.sub-aside-card__media {
  display: block;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.sub-aside-card__media:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.sub-aside-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  margin: 0 auto;
  object-fit: contain;
}

.sub-aside-card .btn {
  width: 100%;
  justify-content: center;
}

.sub-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .spec-table th {
    width: auto;
    display: block;
    padding-bottom: 0;
    border-bottom: none;
  }

  .spec-table td {
    display: block;
    padding-top: 0.15rem;
    padding-bottom: 0.65rem;
  }

  .spec-bank-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .sub-aside-card {
    position: static;
  }
}

/* ----- 沿革タイムライン ----- */
.history-timeline {
  position: relative;
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  list-style: none;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 3px;
  margin-left: -1px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.55) 0%,
    rgba(99, 102, 241, 0.42) 38%,
    rgba(124, 58, 237, 0.45) 72%,
    rgba(124, 58, 237, 0.2) 100%
  );
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
  pointer-events: none;
}

.history-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 0.35rem;
  align-items: start;
  margin-bottom: 1.05rem;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item__node {
  display: block;
  width: 20px;
  height: 20px;
  margin: 1.2rem auto 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa 0%, var(--accent) 40%, var(--accent-2) 100%);
  border: 3px solid var(--bg-elevated);
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.14),
    0 3px 10px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.history-item:first-child .history-item__node {
  margin-top: 0.85rem;
}

.history-item__card {
  padding: 1.05rem 1.3rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, #f8fafc 72%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -12px rgba(15, 23, 42, 0.1);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.history-item__card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    0 4px 20px -6px rgba(37, 99, 235, 0.18),
    0 16px 40px -20px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.history-item__date {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.75rem 0.32rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  background: linear-gradient(115deg, var(--accent) 0%, #4f46e5 55%, var(--accent-2) 100%);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.history-item__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--text);
}

.history-item__text + .history-item__text {
  margin-top: 0.4rem;
}

.history-lead {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.history-lead a {
  font-weight: 500;
}

.sub-back--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ----- ページトップ ----- */
.to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .grid-overlay,
  .hero__video,
  .hero__scanlines,
  .hero__scroll-line,
  .nav-cta,
  .hero__logo {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .stat-card:hover,
  .recruit-portal:hover,
  .recruit-card__cta:hover,
  .history-item__card:hover {
    transform: none;
  }
}

/* ----- 法務・ポリシー本文 ----- */
.content-prose {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text);
}

.content-prose > *:first-child {
  margin-top: 0;
}

.content-prose p {
  margin: 0 0 1rem;
}

.content-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.content-prose h2:first-child {
  margin-top: 0;
}

.content-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.content-prose h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.content-prose li {
  margin-bottom: 0.35rem;
}

.content-prose .lead {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.content-prose .sign-off {
  margin-top: 2rem;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 12rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-muted);
}

.data-table thead th {
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
}

@media (max-width: 640px) {
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.sitemap-sections {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .sitemap-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sitemap-block h2 {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.sitemap-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-block li {
  margin-bottom: 0.45rem;
}

.sitemap-block a {
  color: var(--accent);
  font-size: 0.9375rem;
}

.sitemap-block a:hover {
  text-decoration: underline;
}

/* ----- 製品ページ（画面キャプチャ） ----- */
.product-figures {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .product-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-figures figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--bg-panel);
}

.product-figures img {
  display: block;
  width: 100%;
  height: auto;
}

.product-figures figcaption {
  padding: 0.5rem 0.75rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ----- トップ：ニュース・採用補助 ----- */
.news-more--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.recruit-card__cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.recruit-card__sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.recruit-card__sub:hover {
  color: #1d4ed8;
}

/* ----- アーカイブ一覧・WP取り込み本文 ----- */
.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.archive-table th,
.archive-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.archive-table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(37, 99, 235, 0.04);
}

.archive-table td:first-child {
  white-space: nowrap;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.archive-table a {
  color: var(--accent);
  font-weight: 500;
}

.archive-table a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .archive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.wp-import {
  line-height: 1.75;
}

.wp-import img,
.wp-import video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wp-import figure {
  margin: 1.25rem 0;
}

.wp-import table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* ----- ランディング（事業・採用・パッケージ） ----- */
.lp-main {
  padding: 0 0 4rem;
}

.lp-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 2.5rem;
  text-align: center;
}

.lp-hero--recruit {
  padding-bottom: 3rem;
}

.lp-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lp-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display, "Outfit", system-ui, sans-serif);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lp-hero__lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.lp-hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.lp-section {
  padding: 2.5rem 1.5rem;
}

.lp-section--alt {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent);
}

.lp-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.lp-section__title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.lp-section__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.lp-pill-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .lp-pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lp-pill {
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--bg-panel);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.lp-pill__num {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lp-pill p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.lp-card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .lp-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lp-card {
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lp-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lp-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.lp-card__text {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.lp-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.lp-card__link:hover {
  text-decoration: underline;
}

.lp-portal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.lp-cta-band {
  margin: 2rem 1.5rem 0;
  padding: 2.25rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.lp-cta-band__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.lp-cta-band__inner h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.lp-cta-band__inner p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sub-hero__lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.sub-hero--lp-package .sub-hero__eyebrow {
  color: var(--accent);
}
