/* ============================================================
   株式会社ナカダ工業 — Design System
   ============================================================ */

/* 配色：株式会社ナカダ工業名刺に準拠
   Yellow #F2C100 / Blue #3D72B0 / Charcoal #1C1C1C */
:root {
  --bg:            #141414;
  --surface:       #1e1e1e;
  --surface-2:     #272727;
  --surface-3:     #323232;
  --accent:        #f2c100;   /* 名刺の黄色 */
  --accent-2:      #3d72b0;   /* 名刺の青 */
  --accent-hover:  #ffd420;
  --accent-glow:   rgba(242,193,0,0.12);
  --accent-border: rgba(242,193,0,0.24);
  --accent-2-glow: rgba(61,114,176,0.12);
  --accent-2-border: rgba(61,114,176,0.28);
  --text:          #f2f2f2;
  --text-muted:    #ffffff;
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.14);
  --radius-sm:     12px;
  --radius:        20px;
  --radius-lg:     28px;
  --container:     1380px;
  --shadow:        0 8px 28px rgba(0,0,0,0.5);
  --shadow-lg:     0 24px 64px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 32px rgba(242,193,0,0.28);
  --t:             0.3s cubic-bezier(0.4,0,0.2,1);

  /* ── Type scale (base: 16px = 1rem) ── */
  --fs-xs:   0.8rem;      /* 12.8px — ラベル・タグ・注釈 */
  --fs-sm:   0.875rem;    /* 14px   — ナビ・フッター・補足 */
  --fs-base: 1rem;        /* 16px   — 本文基準 */
  --fs-md:   1.125rem;    /* 18px   — カード見出し・サブ */
  --fs-lg:   1.25rem;     /* 20px   — 小見出し */
  --fs-xl:   clamp(1.75rem, 2.5vw, 2.25rem);  /* 28→36px — H3 */
  --fs-2xl:  clamp(2rem,   3.2vw, 3rem);       /* 32→48px — H2 セクション */
  --fs-3xl:  clamp(2.5rem, 4.5vw, 4.5rem);    /* 40→72px — H1 ページ */
  --fs-hero: clamp(2.75rem, 5.5vw, 5.5rem);   /* 44→88px — トップヒーロー */
}

/* ── Reset ──────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p,h1,h2,h3,h4,h5,h6 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--t), border-color var(--t);
}

.site-header.scrolled {
  background: rgba(6,8,16,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -0.05em;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav a:hover,
.nav a.active { color: #fff; background: rgba(255,255,255,0.1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-tel {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn-tel:hover { color: var(--text); border-color: var(--border-bright); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px 11px;
  border-radius: 8px;
  transition: border-color var(--t);
  line-height: 1;
}
.menu-toggle:hover { border-color: var(--border-bright); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  transition: all var(--t);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(242,193,0,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-sm { height: 42px; padding: 0 20px; font-size: 0.83rem; }
.btn-lg { height: 60px; padding: 0 36px; font-size: 1rem; }

/* ============================================================
   HERO (Top page)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  animation: heroBgKenBurns 24s ease-in-out infinite alternate;
}

@keyframes heroBgKenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(20,20,20,0.62) 0%,
    rgba(20,20,20,0.38) 45%,
    rgba(20,20,20,0.50) 100%
  );
}

.hero-grid-overlay {
  display: none;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(72px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  animation: fadeUp 0.9s 0.12s ease both;
}

.text-accent { color: var(--accent); }

.hero-desc {
  max-width: 580px;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
  animation: fadeUp 0.9s 0.22s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
  animation: fadeUp 0.9s 0.32s ease both;
}

.hero-stats {
  display: flex;
  gap: 0;
  animation: fadeUp 0.9s 0.42s ease both;
}

.hero-stat {
  padding-right: 40px;
  border-right: 1px solid var(--border-bright);
  margin-right: 40px;
}
.hero-stat:last-child { padding-right: 0; border-right: none; margin-right: 0; }

.hero-stat-num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}

.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--border-bright), transparent);
  animation: scrollCueAnim 1.8s ease infinite;
}

@keyframes scrollCueAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   PAGE HERO (Sub pages)
   ============================================================ */

.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,114,176,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,193,0,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,114,176,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,114,176,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 70%, transparent 100%);
}

.page-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}
.page-hero-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
}

.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 22px;
  position: relative;
}

.page-hero-desc {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
  position: relative;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-desc {
  font-size: clamp(0.93rem, 1.15vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 580px;
}

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

.section-head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 60px;
}

.section-action { margin-top: 40px; }

/* Surface variant */
.bg-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover .card-glow { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: background var(--t), border-color var(--t);
}
.card:hover .card-icon { background: var(--accent); }

.card-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.78;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.stat-cell {
  padding: 48px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--t);
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--surface-2); }

.stat-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-cell:hover::after { transform: scaleX(1); }

.stat-num {
  display: block;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   WORKS GRID
   ============================================================ */

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

.works-grid.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-bright);
}

.work-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.work-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.work-card:hover .work-img img { transform: scale(1.06); }

.work-img-bg {
  height: 260px;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.work-card:hover .work-img-bg { transform: scale(1.04); }

.work-body { padding: 26px 28px 30px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.work-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.work-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 56px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(242,193,0,0.12) 100%);
}

.timeline-item {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }

.timeline-num {
  position: absolute;
  left: -56px;
  top: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--t);
}
.timeline-item:hover .timeline-num { background: var(--accent-glow); }

.timeline-content { flex: 1; }

.timeline-step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ============================================================
   AREA
   ============================================================ */

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--t);
  cursor: default;
}
.area-tag:hover { border-color: var(--accent-border); color: var(--accent); }

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,114,176,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,193,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.cta-title {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   STRENGTH IMAGE CARD
   ============================================================ */

.str-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
}
.str-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-bright); }

.str-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.7s ease;
}
.str-card:hover .str-card-img { transform: scale(1.04); }

.str-card-body { padding: 28px; }

.str-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.str-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.str-card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.str-points { display: flex; flex-direction: column; gap: 6px; }

.str-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.str-point::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================================
   JOB CARD
   ============================================================ */

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--t);
}
.job-card:hover { border-color: var(--border-bright); box-shadow: var(--shadow); }

.job-badge {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent);
  color: #111;
  margin-bottom: 16px;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.job-rows { display: flex; flex-direction: column; gap: 12px; }

.job-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 0.88rem;
  align-items: start;
}

.job-row-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.job-row-value { color: var(--text); line-height: 1.6; }

/* ============================================================
   FORM
   ============================================================ */

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-label .req { color: var(--accent); margin-left: 4px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}

.form-input,
.form-select { height: 52px; padding: 0 18px; }

.form-textarea {
  padding: 16px 18px;
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}

.form-radio input[type="radio"] { accent-color: var(--accent); }

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ============================================================
   COMPANY TABLE
   ============================================================ */

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.company-table th {
  width: 180px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.company-table td { color: var(--text); }

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

/* ============================================================
   CONTACT INFO BOX
   ============================================================ */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-box-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.contact-info-row:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-info-value { color: var(--text); font-weight: 600; }
.contact-info-value a { transition: color var(--t); }
.contact-info-value a:hover { color: var(--accent); }

/* ============================================================
   BADGE / CHIP
   ============================================================ */

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--t);
}
.badge-item:hover { border-color: var(--accent-border); color: var(--accent); }
.badge-item::before {
  content: '✓';
  color: var(--accent);
  font-size: 0.75rem;
}

/* ============================================================
   DIVIDER LINE
   ============================================================ */

.divider { height: 1px; background: var(--border); }

/* ============================================================
   RECRUITMENT BENEFIT CARD
   ============================================================ */

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--t);
}
.benefit-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow); transform: translateY(-4px); }

.benefit-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.benefit-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.benefit-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 18px 0 24px;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.footer-contact-row a { transition: color var(--t); }
.footer-contact-row a:hover { color: var(--accent); }

.footer-section-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-nav-list { display: flex; flex-direction: column; gap: 10px; }

.footer-nav-list a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer-nav-list a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible,
.reveal-left.visible {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   TYPE SCALE OVERRIDES — base 16px
   ============================================================ */

/* ── Header ── */
.logo        { font-size: var(--fs-sm); }
.logo-mark   { font-size: 0.85rem; }
.nav a       { font-size: var(--fs-sm); }
.btn-tel     { font-size: var(--fs-sm); }

/* ── Buttons ── */
.btn    { font-size: var(--fs-base); }
.btn-sm { font-size: var(--fs-sm); }
.btn-lg { font-size: var(--fs-base); }

/* ── Hero ── */
.hero-eyebrow   { font-size: var(--fs-sm); }
.hero-title     { font-size: var(--fs-hero); }
.hero-desc      { font-size: var(--fs-base); }
.hero-stat-num  { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.hero-stat-label{ font-size: var(--fs-xs); }
.scroll-cue     { font-size: var(--fs-xs); }

/* ── Page Hero ── */
.page-hero-label { font-size: var(--fs-xs); }
.page-hero-title { font-size: var(--fs-3xl); }
.page-hero-desc  { font-size: var(--fs-base); }

/* ── Sections ── */
.section-label { font-size: var(--fs-xs); }
.section-title { font-size: var(--fs-2xl); }
.section-desc  { font-size: var(--fs-base); }

/* ── Cards ── */
.card-icon  { font-size: 1.4rem; }
.card-title { font-size: var(--fs-md); }
.card-text  { font-size: var(--fs-base); }

/* ── Stats ── */
.stat-num   { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.stat-label { font-size: var(--fs-sm); }

/* ── Works ── */
.tag       { font-size: var(--fs-xs); }
.work-title{ font-size: var(--fs-md); }
.work-desc { font-size: var(--fs-base); }

/* ── Timeline ── */
.timeline-step  { font-size: var(--fs-xs); }
.timeline-title { font-size: var(--fs-md); }
.timeline-desc  { font-size: var(--fs-base); }

/* ── Area ── */
.area-tag { font-size: var(--fs-sm); }

/* ── CTA ── */
.cta-eyebrow { font-size: var(--fs-xs); }
.cta-title   { font-size: clamp(1.9rem, 3vw, 3rem); }
.cta-desc    { font-size: var(--fs-base); }

/* ── Strength card ── */
.str-card-num   { font-size: var(--fs-xs); }
.str-card-title { font-size: var(--fs-md); }
.str-card-text  { font-size: var(--fs-base); }
.str-point      { font-size: var(--fs-sm); }

/* ── Job card ── */
.job-badge     { font-size: var(--fs-xs); }
.job-title     { font-size: var(--fs-lg); }
.job-row       { font-size: var(--fs-base); }
.job-row-label { font-size: var(--fs-sm); }
.job-row-value { font-size: var(--fs-base); }

/* ── Form ── */
.form-label                       { font-size: var(--fs-sm); }
.form-input, .form-select         { font-size: var(--fs-base); }
.form-textarea                    { font-size: var(--fs-base); }
.form-note                        { font-size: var(--fs-xs); }

/* ── Contact ── */
.contact-box-title { font-size: var(--fs-xs); }
.contact-info-label{ font-size: var(--fs-xs); }
.contact-info-value{ font-size: var(--fs-base); }
.contact-info-row  { font-size: var(--fs-base); }

/* ── Badge ── */
.badge-item { font-size: var(--fs-sm); }

/* ── Benefit card ── */
.benefit-title { font-size: var(--fs-md); }
.benefit-text  { font-size: var(--fs-base); }

/* ── Company table ── */
.company-table th, .company-table td { font-size: var(--fs-base); }
.company-table th                    { font-size: var(--fs-sm); }

/* ── Footer ── */
.footer-desc         { font-size: var(--fs-sm); }
.footer-contact-row  { font-size: var(--fs-sm); }
.footer-section-title{ font-size: var(--fs-xs); }
.footer-nav-list a   { font-size: var(--fs-sm); }
.footer-copy         { font-size: var(--fs-xs); }

/* ============================================================
   BLUE ACCENT (accent-2) — 名刺の青
   ============================================================ */

/* ページヒーローのラベルは青に */
.page-hero-label {
  color: var(--accent-2) !important;
}
.page-hero-label::before {
  background: var(--accent-2) !important;
}

/* セクションの一部で青のボーダーを使う */
.card.card-blue {
  border-color: var(--accent-2-border);
}
.card.card-blue:hover {
  border-color: rgba(61,114,176,0.4);
}
.card.card-blue .card-glow {
  background: var(--accent-2);
}
.card.card-blue .card-icon {
  background: var(--accent-2-glow);
  border-color: var(--accent-2-border);
}
.card.card-blue:hover .card-icon {
  background: var(--accent-2);
}

/* ボタンの青バリアント */
.btn-blue {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 8px 32px rgba(61,114,176,0.28);
}
.btn-blue:hover {
  background: #4d85c5;
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(61,114,176,0.38);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); }
  .section-head-split { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: rgba(6,8,16,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 0.95rem; }

  .header-cta { display: none; }

  .works-grid { grid-template-columns: 1fr; }
  .works-grid.grid-3-col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .cta-box { padding: 48px 36px; }
  .section { padding: 72px 0; }
  .cta-section { padding: 80px 0; }

  .form-wrap { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .hero-content[style*="padding-left"] { padding-left: 0 !important; }

  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat { padding-right: 0; border-right: none; margin-right: 0; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; border-top: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .stat-cell:nth-child(3) { border-top: none !important; border-right: none !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 140px 0 60px; }
  .cta-box { padding: 40px 24px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }

  .company-table th { width: 120px; }

  .form-wrap { padding: 28px 20px; }
  .job-row { grid-template-columns: 80px 1fr; }
}
