/* ==========================================================================
   株式会社エスポワ 採用サイト - style.css
   Design System / Base
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --blue:        #1CA2F0;  /* Primary (logo blue) */
  --blue-dark:   #0B6FB8;  /* Accent / hover */
  --blue-deep:   #075189;
  --blue-light:  #EAF6FE;  /* Light background */

  /* Accent palette (for rich stat cards) */
  --c-blue:   #1CA2F0;  --c-blue-bg:   #EAF6FE;
  --c-pink:   #EC4899;  --c-pink-bg:   #FCE7F3;
  --c-purple: #8B5CF6;  --c-purple-bg: #F3EEFE;
  --c-teal:   #14B8A6;  --c-teal-bg:   #E6FAF6;
  --c-amber:  #F59E0B;  --c-amber-bg:  #FEF3E2;
  --white:       #FFFFFF;
  --ink:         #1A2733;  /* Body text */
  --ink-soft:    #5A6B7B;
  --line:        rgba(255,255,255,.5);

  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
  --font-script: "Caveat", cursive;

  --maxw: 1200px;
  --header-h: 84px;

  /* --- shadcn-inspired neutral tokens --- */
  --background:   #ffffff;
  --foreground:   #0a0e12;
  --muted:        #f4f6f8;   /* subtle section bg */
  --muted-fg:     #64748b;   /* secondary text */
  --card:         #ffffff;
  --border:       #e7ebef;   /* hairline borders */
  --border-strong:#d6dce2;
  --ring:         rgba(28,162,240,.35);
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(16,24,40,.05);
  --shadow-md:    0 4px 16px rgba(16,24,40,.07);
  --shadow-lg:    0 12px 40px rgba(16,24,40,.10);
}

/* ==========================================================================
   Page Loader (gradient pulse — blue brand version)
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #EAF6FE 0%, #FFFFFF 55%, #F0FBFF 100%);
  transition: opacity .6s ease, visibility .6s ease;
}
/* 読み込み完了後にフェードアウト */
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-box {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gradient-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1CA2F0, #0B6FB8);
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: 1;
}

.gradient-pulse::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1CA2F0, #7FD3FF);
  filter: blur(20px);
  opacity: 0.7;
  animation: glow-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.1); opacity: 0.7; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%      { opacity: 0.8; transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-pulse,
  .gradient-pulse::before { animation: none; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.en { font-family: var(--font-en); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
  z-index: 100;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

/* Hamburger */
.menu-toggle {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  display: grid;
  place-content: center;
  gap: 5px;
  transition: background .25s;
}
.menu-toggle:hover { background: rgba(255,255,255,.3); }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

/* Logo block */
.header-logo {
  background: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.header-logo img { height: 40px; width: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Giant outlined background word */
.hero-bgword {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(120px, 20vw, 340px);
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.45);
  text-stroke: 1.5px rgba(255,255,255,.45);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ---- ESPOIR: 中央にドンと登場 → 奥（右の定位置）へ引く ---- */
.hero-intro .hero-bgword {
  animation: heroWordZoom 1.9s cubic-bezier(.65,0,.2,1) forwards;
}
@keyframes heroWordZoom {
  0% {
    /* 中央・特大・くっきり */
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(1.55);
    -webkit-text-stroke-color: rgba(255,255,255,.9);
            text-stroke-color: rgba(255,255,255,.9);
    opacity: 0;
  }
  22% {
    transform: translate(-50%, -50%) scale(1.55);
    -webkit-text-stroke-color: rgba(255,255,255,.9);
            text-stroke-color: rgba(255,255,255,.9);
    opacity: 1;
  }
  100% {
    /* 右の定位置・元サイズ・薄い（後ろに下がった印象） */
    top: 50%;
    left: auto;
    right: -2%;
    transform: translate(0, -50%) scale(1);
    -webkit-text-stroke-color: rgba(255,255,255,.45);
            text-stroke-color: rgba(255,255,255,.45);
    opacity: 1;
  }
}

/* Faint kanji accent */
.hero-kanji {
  position: absolute;
  left: -3%;
  bottom: -6%;
  font-size: clamp(200px, 32vw, 520px);
  font-weight: 700;
  color: rgba(255,255,255,.07);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .25em;
  margin: 0 0 18px;
  opacity: .95;
}

.hero-title {
  font-size: clamp(38px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 28px;
  letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.12);
}

/* ---- Hero title: 虹色スライドイン → 白文字固定 ---- */
.hero-title .hero-line {
  display: block;
  overflow: hidden;          /* スライドインを行ごとにマスク */
}
.hero-title .hero-line-inner {
  display: inline-block;
  /* 虹色グラデーションを文字に流す */
  background-image: linear-gradient(
    100deg,
    #ff5f6d, #ffc371, #47e891, #12c2e9, #c471ed, #f64f59, #ff5f6d
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  /* 初期状態：左外にスライド + 少し傾き */
  transform: translateX(-120%);
  opacity: 0;
}

/* イントロ実行中のみアニメーション */
.hero-intro .hero-title .hero-line-inner {
  animation:
    heroSlideIn .9s cubic-bezier(.16,1,.3,1) forwards,
    heroRainbow 2.4s linear infinite;
}
/* 2行目を少し遅らせて順番に */
.hero-intro .hero-title .hero-line:nth-child(1) .hero-line-inner { animation-delay: .35s, .35s; }
.hero-intro .hero-title .hero-line:nth-child(2) .hero-line-inner { animation-delay: .6s, .6s; }

/* アニメーション終了後：白文字で固定（JSで .hero-title-settled を付与） */
.hero-title.hero-title-settled .hero-line-inner {
  animation: none !important;
  background: none;
  -webkit-text-fill-color: #fff;
          color: #fff;
  transform: none;
  opacity: 1;
  transition: color .4s ease;
}

@keyframes heroSlideIn {
  0%   { transform: translateX(-120%) skewX(-6deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateX(0) skewX(0);         opacity: 1; }
}
@keyframes heroRainbow {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-lead {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 1.9;
  margin: 0 0 40px;
  max-width: 640px;
  opacity: .96;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(5px); }

.btn-solid {
  background: var(--white);
  color: var(--blue);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.85);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--white);
}
.hero-scroll::before {
  content: "";
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.6);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Shared Section / Components (shadcn-inspired)
   ========================================================================== */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}
.section--muted { background: var(--muted); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Section heading */
.section-head { margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { text-align: center; }
.eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1;
  color: var(--blue);
  margin: 0 0 4px;
}
.section-head.center .eyebrow { text-align: center; }
.section-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--foreground);
  margin: 0;
}
.section-desc {
  margin: 20px 0 0;
  color: var(--muted-fg);
  font-size: 15px;
  line-height: 1.9;
  max-width: 620px;
}
.section-head.center .section-desc { margin-inline: auto; }

/* Badge (shadcn) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted-fg);
  background: var(--background);
}
.badge--blue { color: var(--blue-dark); border-color: rgba(28,162,240,.3); background: var(--blue-light); }

/* Card (shadcn) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }

/* Ghost/secondary buttons on light bg */
.btn-blue {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--muted); transform: translateY(-2px); }

/* ==========================================================================
   About（私たちについて）
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-mission {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--foreground);
  margin: 0 0 24px;
}
.about-mission .accent { color: var(--blue); }
.about-text { color: var(--muted-fg); font-size: 15px; line-height: 2; margin: 0 0 16px; }
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Services */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 84px);
}
.service-card {
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.service-card .service-body { min-width: 0; }
.service-logo { height: 34px; width: auto; margin-bottom: 22px; } /* legacy */
.service-card h3 { font-size: 22px; font-weight: 700; margin: 12px 0 6px; }
.service-card .service-tag { font-size: 13px; color: var(--blue-dark); font-weight: 600; margin: 0 0 14px; }
.service-card p { color: var(--muted-fg); font-size: 14.5px; line-height: 1.9; margin: 0; }
/* big logo in right whitespace */
.service-logo-lg {
  width: clamp(150px, 15vw, 210px);
  height: auto;
  justify-self: end;
  opacity: .95;
}

/* ==========================================================================
   Stats（数字で見る会社）- rich categorized cards
   ========================================================================== */
.stats { background: var(--muted); }

/* Category block */
.data-block { margin-bottom: clamp(40px, 6vw, 64px); }
.data-block:last-child { margin-bottom: 0; }

.data-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.data-tag {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
}
.data-head-text .data-en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted-fg);
  margin-bottom: 2px;
}
.data-head-text .data-jp {
  font-size: 17px;
  font-weight: 700;
  color: var(--foreground);
}

/* Cards grid */
.data-grid {
  display: grid;
  gap: 20px;
}
.data-grid.cols-1 { grid-template-columns: minmax(0, 460px); }
.data-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.data-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.data-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--accent, var(--c-blue));
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.data-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,24,40,.10); }

/* アイコンはカード背景に大きく薄く透かして配置（ウォーターマーク） */
.data-card-icon {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: auto; height: auto;
  margin: 0;
  border-radius: 0;
  background: none;
  display: block;
  font-size: 120px;
  line-height: 1;
  color: var(--accent, var(--c-blue));
  opacity: .08;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
}
.data-card:hover .data-card-icon {
  transform: rotate(-4deg) scale(1.08);
  opacity: .12;
}
.data-card > *:not(.data-card-icon) { position: relative; z-index: 1; }
.data-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 12px;
}
.data-value {
  font-family: var(--font-en);
  font-weight: 800;
  line-height: 1;
  color: var(--accent, var(--c-blue));
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.data-value .big { font-size: clamp(44px, 6vw, 64px); }
.data-value .unit { font-size: clamp(16px, 2vw, 22px); font-weight: 700; }
.data-value .mid { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; align-self: center; }
.data-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted-fg);
}

/* color variants */
.v-blue   { --accent: var(--c-blue);   --accent-bg: var(--c-blue-bg); }
.v-pink   { --accent: var(--c-pink);   --accent-bg: var(--c-pink-bg); }
.v-purple { --accent: var(--c-purple); --accent-bg: var(--c-purple-bg); }
.v-teal   { --accent: var(--c-teal);   --accent-bg: var(--c-teal-bg); }
.v-amber  { --accent: var(--c-amber);  --accent-bg: var(--c-amber-bg); }
.data-tag.v-blue   { background: var(--c-blue); }
.data-tag.v-pink   { background: var(--c-pink); }
.data-tag.v-purple { background: var(--c-purple); }
.data-tag.v-teal   { background: var(--c-teal); }
.data-tag.v-amber  { background: var(--c-amber); }

/* ==========================================================================
   Jobs（仕事内容・職種紹介）
   ========================================================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.job-card {
  position: relative;
  overflow: hidden;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
/* カード背景に大きく薄いアイコンを透かす */
.job-bg-icon {
  position: absolute;
  right: -16px;
  bottom: -20px;
  font-size: 132px;
  line-height: 1;
  color: var(--blue);
  opacity: .06;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
  z-index: 0;
}
.job-card:hover .job-bg-icon { transform: rotate(-4deg) scale(1.08); opacity: .1; }
.job-card > *:not(.job-bg-icon) { position: relative; z-index: 1; }
.job-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: grid; place-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.job-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.job-role { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted-fg); margin: 0 0 14px; }
.job-card p { color: var(--muted-fg); font-size: 14px; line-height: 1.85; margin: 0 0 18px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ==========================================================================
   Members（社員紹介）
   ========================================================================== */
.members-hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}
.members-hero-photo img { width: 100%; aspect-ratio: 16/7; object-fit: cover; object-position: center 30%; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.member {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e9edf1;
  cursor: default;
}
.member img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: transform .5s cubic-bezier(.22,1,.36,1), filter .4s;
}
.member:hover img { transform: scale(1.05); filter: grayscale(0%); }
.member-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(10,14,18,.82) 0%, rgba(10,14,18,.35) 60%, transparent 100%);
  color: #fff;
}
.member-role { font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: .16em; opacity: .85; margin: 0 0 3px; }
.member-name { font-family: var(--font-en); font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0; }
.member-bio {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .35s, max-height .35s;
}
.member:hover .member-bio { opacity: .92; max-height: 120px; }

/* ==========================================================================
   Career（キャリアパス・成長環境）
   ========================================================================== */
.career-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.career-step {
  position: relative;
  padding: 30px 24px;
}
/* カード背景に大きく薄いアイコンを透かす（角丸内にクリップ） */
.career-bg-icon {
  position: absolute;
  right: 8px;
  bottom: 2px;
  font-size: 96px;
  line-height: 1;
  color: var(--blue);
  opacity: .07;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
  z-index: 0;
}
.career-step:hover .career-bg-icon { transform: rotate(-4deg) scale(1.08); opacity: .11; }
.career-step > *:not(.career-bg-icon):not(.step-arrow) { position: relative; z-index: 1; }
.career-step .step-no {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  margin: 0 0 10px;
}
.career-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.career-step p { color: var(--muted-fg); font-size: 13.5px; line-height: 1.8; margin: 0; }
.career-step .step-arrow {
  position: absolute;
  right: -13px; top: 50%;
  transform: translateY(-50%);
  color: var(--border-strong);
  font-size: 18px;
  z-index: 2;
}
.career-step:last-child .step-arrow { display: none; }

/* growth environment features */
.growth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 60px);
}
.growth-card {
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
/* カード背景に大きく薄いアイコンを透かす */
.growth-bg-icon {
  position: absolute;
  right: -14px;
  bottom: -20px;
  font-size: 118px;
  line-height: 1;
  color: var(--blue);
  opacity: .07;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
  z-index: 0;
}
.growth-card:hover .growth-bg-icon { transform: rotate(-4deg) scale(1.08); opacity: .11; }
.growth-card > *:not(.growth-bg-icon) { position: relative; z-index: 1; }
.growth-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.growth-card p { color: var(--muted-fg); font-size: 14px; line-height: 1.8; margin: 0; }

/* ==========================================================================
   Benefits（福利厚生・働き方）
   ========================================================================== */
.benefits-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.benefits-frame-title {
  font-size: 18px;
  font-weight: 700;
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.perk {
  position: relative;
  overflow: hidden;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* remove right border on every 3rd */
.perk:nth-child(3n) { border-right: none; }
.perk-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 18px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
/* アイコンは背景に大きく薄く透かして配置（数字セクションと統一） */
.perk-icon {
  position: absolute;
  right: -10px;
  bottom: -24px;
  width: auto; height: auto;
  margin: 0;
  border-radius: 0;
  background: none;
  display: block;
  font-size: 130px;
  line-height: 1;
  color: var(--blue);
  opacity: .07;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
}
.perk:hover .perk-icon {
  transform: rotate(-4deg) scale(1.08);
  opacity: .11;
}
.perk-icon.tint-teal  { color: var(--c-teal); }
.perk-icon.tint-amber { color: var(--c-amber); }
.perk-icon.tint-pink  { color: var(--c-pink); }
.perk-icon.tint-purple{ color: var(--c-purple); }
.perk-desc {
  position: relative;
  z-index: 1;
  color: var(--muted-fg);
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0;
  text-align: left;
}

/* ==========================================================================
   Day（1日の流れ）
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border-strong);
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -39px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
}
.tl-time { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--blue-dark); margin: 0 0 4px; }
.tl-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.tl-desc { color: var(--muted-fg); font-size: 14px; line-height: 1.8; margin: 0; }

/* ==========================================================================
   Voice（お客様の声）カルーセル
   ========================================================================== */
.voice { overflow: hidden; }
.voice-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.voice-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: voiceScroll 48s linear infinite;
}
.voice-track.row2 { animation-duration: 56s; animation-direction: reverse; margin-top: 20px; }
.voice-track-wrap:hover .voice-track { animation-play-state: paused; }
@keyframes voiceScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.voice-card {
  position: relative;
  overflow: hidden;
  width: 320px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--vcolor, var(--c-blue)) 6%, #fff) 0%, #fff 55%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--vcolor, var(--c-blue));
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
/* カード背景に大きく薄い人物シルエットを透かす（リアルな感想カード風） */
.voice-card::before {
  content: "\f2bd"; /* Font Awesome: fa-circle-user (笑顔の人型) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -18px;
  bottom: -30px;
  font-size: 150px;
  line-height: 1;
  color: var(--vcolor, var(--c-blue));
  opacity: .06;
  transform: rotate(-6deg);
  pointer-events: none;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s;
  z-index: 0;
}
.voice-card:hover::before {
  transform: rotate(-2deg) scale(1.06);
  opacity: .1;
}
.voice-card > * { position: relative; z-index: 1; }
.voice-stars { color: #FBBF24; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.voice-text { font-size: 13.5px; line-height: 1.85; color: var(--ink); margin: 0 0 18px; }
.voice-person { display: flex; align-items: center; gap: 12px; }
.voice-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-content: center;
  color: #fff; font-size: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vcolor, var(--c-blue)) 78%, #fff), var(--vcolor, var(--c-blue)));
  flex-shrink: 0;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--vcolor, var(--c-blue)) 35%, transparent);
}
.voice-meta .vname { font-size: 13.5px; font-weight: 700; }
.voice-meta .vrole { font-size: 11.5px; color: var(--muted-fg); }
.voice-tag {
  display: inline-block; font-family: var(--font-en); font-size: 10px; font-weight: 700;
  color: var(--vcolor, var(--c-blue)); background: color-mix(in srgb, var(--vcolor, var(--c-blue)) 12%, #fff);
  padding: 2px 8px; border-radius: 999px; margin-left: auto;
}
.vc-blue{--vcolor:var(--c-blue);} .vc-pink{--vcolor:var(--c-pink);}
.vc-purple{--vcolor:var(--c-purple);} .vc-teal{--vcolor:var(--c-teal);}
.vc-amber{--vcolor:var(--c-amber);}

/* ==========================================================================
   Recruit（募集要項）
   ========================================================================== */
.recruit-lead {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
}
.recruit-lead h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; margin: 0 0 12px; line-height: 1.6; }
.recruit-lead p { color: var(--muted-fg); font-size: 15px; line-height: 1.9; margin: 0; }

.recruit-table {
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.recruit-row {
  border-bottom: 1px solid var(--border);
}
.recruit-row:last-child { border-bottom: none; }
.recruit-row dt {
  background: #fff;
  padding: 20px 26px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.recruit-row dt:hover { background: var(--muted); }
.recruit-row dt i { color: var(--blue); font-size: 15px; }
/* 開閉トグルアイコン（右端） */
.recruit-row dt .rq-toggle {
  margin-left: auto;
  color: var(--muted-fg);
  font-size: 13px;
  transition: transform .3s ease;
}
.recruit-row.open dt { background: var(--muted); }
.recruit-row.open dt .rq-toggle { transform: rotate(180deg); }
.recruit-row dd {
  margin: 0;
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
  transition: max-height .4s ease, padding .4s ease;
}
.recruit-row.open dd {
  padding: 4px 28px 24px;
  max-height: 1200px;
}
.recruit-row dd ul { margin: 6px 0 0; padding-left: 0; }
.recruit-row dd ul li { position: relative; padding-left: 18px; margin-bottom: 4px; color: var(--muted-fg); font-size: 14px; }
.recruit-row dd ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.recruit-row dd .highlight { color: var(--blue-dark); font-weight: 700; }
.recruit-salary-note { font-size: 12.5px; color: var(--muted-fg); margin-top: 8px; }

.recruit-cta { text-align: center; margin-top: clamp(40px, 6vw, 56px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.open { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 22px 24px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-q .q-mark {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.faq-q .q-icon { margin-left: auto; color: var(--muted-fg); transition: transform .3s; }
.faq-item.open .q-icon { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner {
  padding: 0 24px 22px 52px;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 1.9;
}

/* ==========================================================================
   Wave separators / soft background
   ========================================================================== */
/* --- Wavy SVG dividers (PLAY/GROUND style) --- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; height: clamp(48px, 7vw, 100px); }
.wave-divider--flip svg { transform: scaleY(-1); }

/* soft pastel background used behind Voice etc. */
.soft-bg {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(28,162,240,.16), transparent 45%),
    radial-gradient(circle at 86% 12%, rgba(236,72,153,.13), transparent 42%),
    radial-gradient(circle at 78% 88%, rgba(139,92,246,.14), transparent 46%),
    radial-gradient(circle at 20% 82%, rgba(20,184,166,.12), transparent 44%),
    linear-gradient(160deg, #EAF6FE 0%, #F3EEFE 48%, #FCE7F3 100%);
}

/* --- 薄いパステル波背景（stats / jobs / career 用の控えめ版） --- */
.soft-bg-light {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 10% 6%, rgba(28,162,240,.07), transparent 60%),
    radial-gradient(ellipse 55% 40% at 92% 10%, rgba(236,72,153,.055), transparent 60%),
    radial-gradient(ellipse 60% 45% at 82% 96%, rgba(139,92,246,.06), transparent 62%),
    radial-gradient(ellipse 55% 40% at 14% 94%, rgba(20,184,166,.05), transparent 62%),
    #fdfdfe;
}
/* 上下に淡い波模様を重ねる */
.soft-bg-light::before,
.soft-bg-light::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: clamp(60px, 9vw, 130px);
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
}
.soft-bg-light::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23EAF6FE' d='M0,50 C240,105 480,105 720,65 C960,25 1200,25 1440,65 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
}
.soft-bg-light::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23F3EEFE' d='M0,70 C240,15 480,15 720,55 C960,95 1200,95 1440,55 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
}
.soft-bg-light > .container { position: relative; z-index: 1; }
/* muted セクションに重ねる場合は背景の白を透過させて馴染ませる */
.section--muted.soft-bg-light { background-blend-mode: normal; }

/* --- セクション背景にチーム写真を薄く敷く（career用） --- */
.has-team-bg { position: relative; overflow: hidden; }
.team-bg-layer {
  position: absolute;
  inset: 0;
  background-image: url("../images/career-team-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  opacity: .06;             /* かなり薄く */
  pointer-events: none;
  z-index: 0;
  /* 上下は白にフェードして波・カードと馴染ませる */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
/* コンテンツを写真より前面に */
.has-team-bg > .container { position: relative; z-index: 1; }

/* legacy wave classes kept for compatibility */
.wave-top, .wave-bottom { display: block; width: 100%; height: auto; line-height: 0; }
.wave-top svg, .wave-bottom svg { display: block; width: 100%; height: 60px; }

/* ==========================================================================
   Mid CTA band
   ========================================================================== */
.mid-cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 76px) 0;
  text-align: center;
}
.mid-cta h2 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 700; margin: 0 0 10px; line-height: 1.45; }
.mid-cta p { font-size: 14.5px; opacity: .95; margin: 0 0 28px; }

/* ==========================================================================
   Floating Entry Button (FAB)
   ========================================================================== */
.fab-entry {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 64px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1CA2F0 0%, #0B6FB8 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(11,111,184,.42), 0 2px 6px rgba(0,0,0,.12);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, padding .3s ease;
  animation: fabPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.fab-entry .fab-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.fab-entry .fab-label {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .35s cubic-bezier(.22,1,.36,1), opacity .3s ease, padding .3s ease;
}
.fab-entry:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(11,111,184,.5), 0 4px 10px rgba(0,0,0,.14);
}
.fab-entry:hover .fab-label {
  max-width: 160px;
  opacity: 1;
  padding-right: 24px;
}
.fab-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(28,162,240,.5);
  animation: fabPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(28,162,240,.45); }
  70% { box-shadow: 0 0 0 16px rgba(28,162,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(28,162,240,0); }
}
/* モバイルは常にラベル表示のコンパクトなピル */
@media (max-width: 640px) {
  .fab-entry { height: 54px; }
  .fab-entry .fab-icon { width: 54px; height: 54px; flex-basis: 54px; font-size: 19px; }
  .fab-entry .fab-label { max-width: 110px; opacity: 1; padding-right: 20px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-entry, .fab-entry::after { animation: none; }
}

/* ==========================================================================
   Final CTA + Footer
   ========================================================================== */
.final-cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "ESPOIR";
  position: absolute;
  bottom: -40px; right: -20px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(100px, 18vw, 240px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
  pointer-events: none;
  line-height: 1;
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 700; margin: 0 0 18px; line-height: 1.4; }
.final-cta p { font-size: 15px; opacity: .95; margin: 0 0 34px; }

.site-footer {
  background: #0d1520;
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-logo { background: #fff; display: inline-block; padding: 12px 20px; border-radius: 6px; }
.footer-logo img { height: 24px; }
.footer-company { margin-top: 20px; font-size: 13px; line-height: 1.9; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav h4 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 16px; letter-spacing: .05em; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { font-size: 13.5px; transition: color .2s; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,.5);
}

/* ==========================================================================
   Nav Drawer（ハンバーガーメニュー）
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,18,.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 200;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: min(380px, 82vw);
  background: #fff;
  z-index: 210;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
  padding: 32px 34px;
  box-shadow: 12px 0 40px rgba(0,0,0,.15);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.nav-drawer-head img { height: 22px; }
.nav-close {
  border: none; background: none; font-size: 26px; color: var(--ink); cursor: pointer; line-height: 1;
  width: 40px; height: 40px; border-radius: 8px; transition: background .2s;
}
.nav-close:hover { background: var(--muted); }
.nav-menu li { margin-bottom: 4px; }
.nav-menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 8px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .2s;
}
.nav-menu a:hover { color: var(--blue); padding-left: 16px; }
.nav-menu a .num { font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--blue); }
.nav-drawer-cta { margin-top: auto; padding-top: 28px; }
.nav-drawer-cta .btn { width: 100%; justify-content: center; }

/* Hamburger open state */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Entry / Form pages
   ========================================================================== */
.subpage {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 100px;
  min-height: 100vh;
  background: var(--muted);
}
.subpage-header {
  background: var(--blue);
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subpage-header::before {
  content: "ENTRY";
  position: absolute;
  top: 50%; right: 3%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(80px, 15vw, 200px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.2);
  line-height: 1;
  pointer-events: none;
}
.subpage-header .container { position: relative; z-index: 2; }
.subpage-header .eyebrow { color: rgba(255,255,255,.9); }
.subpage-header .eyebrow::before { background: #fff; }
.subpage-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 0; }

.form-wrap {
  max-width: 720px;
  margin: -30px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  z-index: 5;
}

/* Step indicator */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 44px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.step-dot .dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  background: var(--muted);
  color: var(--muted-fg);
  border: 2px solid var(--border-strong);
  transition: all .3s;
  z-index: 2;
}
.step-dot .step-name { font-size: 12px; color: var(--muted-fg); white-space: nowrap; transition: color .3s; }
.step-line { flex: 1; height: 2px; background: var(--border-strong); margin: 0 6px; margin-bottom: 26px; min-width: 30px; transition: background .3s; }
.step-dot.active .dot { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); }
.step-dot.active .step-name { color: var(--blue-dark); font-weight: 700; }
.step-dot.done .dot { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.step-line.done { background: var(--blue); }

/* Form steps */
.form-step { display: none; animation: fadeStep .4s ease; }
.form-step.active { display: block; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.form-step h2 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.form-step .step-desc { color: var(--muted-fg); font-size: 13.5px; margin: 0 0 26px; }

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.field-row .field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--foreground);
}
.field label .req { color: var(--c-pink); font-size: 12px; margin-left: 6px; }
.field label .opt { color: var(--muted-fg); font-size: 11px; font-weight: 500; margin-left: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--ring);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg { color: var(--c-pink); font-size: 12px; margin-top: 6px; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--c-pink); }
.field.invalid .error-msg { display: block; }

/* radio / choice cards */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.choice:hover { border-color: var(--blue); }
.choice input { position: absolute; opacity: 0; }
.choice.selected { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); }
.choice .check { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--blue); }
.choice.selected .check { display: inline; }

/* form nav buttons */
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.form-actions .btn { min-width: 120px; justify-content: center; }
.form-actions .spacer { flex: 1; }

/* confirm review */
.review dl { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.review .rrow { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--border); }
.review .rrow:last-child { border-bottom: none; }
.review dt { background: var(--muted); padding: 14px 16px; font-size: 13px; font-weight: 700; }
.review dd { padding: 14px 16px; margin: 0; font-size: 14px; word-break: break-word; }

.privacy-check { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; font-size: 13px; color: var(--muted-fg); }
.privacy-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }

/* Thanks page */
.thanks-box {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.thanks-icon {
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid; place-content: center;
  font-size: 40px;
}
.thanks-box h1 { font-size: 26px; font-weight: 700; margin: 0 0 16px; }
.thanks-box p { color: var(--muted-fg); font-size: 15px; line-height: 1.9; margin: 0 0 32px; }

.form-loading { text-align: center; padding: 20px; color: var(--muted-fg); font-size: 14px; display: none; }
.form-loading.show { display: block; }

/* ==========================================================================
   Admin（応募管理）
   ========================================================================== */
.admin-body { background: var(--muted); min-height: 100vh; padding: 40px 0 80px; }
.admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.admin-bar h1 { font-size: 22px; font-weight: 700; margin: 0; }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-tools input, .admin-tools select {
  padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.admin-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 22px; flex: 1; min-width: 130px;
}
.admin-stat .n { font-family: var(--font-en); font-size: 26px; font-weight: 800; color: var(--blue); }
.admin-stat .l { font-size: 12px; color: var(--muted-fg); }

.admin-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
table.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
table.admin-table th, table.admin-table td {
  padding: 13px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--border); vertical-align: top;
}
table.admin-table th { background: var(--muted); font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
table.admin-table tr:hover td { background: #fafcfe; }
.status-select { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border-strong); font-size: 12.5px; font-family: inherit; }
.st-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.st-新規 { background: var(--c-blue-bg); color: var(--blue-dark); }
.st-対応中 { background: var(--c-amber-bg); color: #b45309; }
.st-面接調整 { background: var(--c-purple-bg); color: #6d28d9; }
.st-内定 { background: var(--c-teal-bg); color: #0f766e; }
.st-見送り, .st-完了 { background: var(--muted); color: var(--muted-fg); }
.admin-del { border: none; background: none; color: var(--c-pink); cursor: pointer; font-size: 14px; }
.admin-empty { text-align: center; padding: 60px 20px; color: var(--muted-fg); }
.admin-msg-cell { max-width: 280px; white-space: pre-wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .header-logo { padding: 10px 18px; }
  .header-logo img { height: 28px; }
  .menu-toggle { width: 46px; height: 46px; }
  .hero-bgword { font-size: 34vw; right: -10%; opacity: .8; }
  .hero-scroll { display: none; }
  .hero-actions { gap: 12px; }
  .btn { padding: 14px 24px; font-size: 14px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .services { grid-template-columns: 1fr; }
  .service-card { padding: 28px; grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .service-logo-lg { justify-self: center; width: 160px; }
  .service-card .badge { margin: 0 auto; }
  .data-grid.cols-3 { grid-template-columns: 1fr; }
  .data-grid.cols-2 { grid-template-columns: 1fr; }
  .data-grid.cols-1 { grid-template-columns: 1fr; }
  .data-card { padding: 26px 20px; }

  .career-steps { grid-template-columns: 1fr; }
  .career-step .step-arrow {
    right: 50%; top: auto; bottom: -15px;
    transform: translateX(50%) rotate(90deg);
  }
  .growth-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .perk { border-right: none; }
  .perk:nth-child(3n) { border-right: none; }
  .benefits-frame-title { padding: 22px 24px; }

  .jobs-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .member-bio { opacity: .9; max-height: 120px; } /* モバイルは常時表示 */
  .members-hero-photo img { aspect-ratio: 4/3; }

  .voice-card { width: 260px; }
  .recruit-row { grid-template-columns: 1fr; }
  .recruit-row dt { padding: 16px 20px; }
  .recruit-row dd { padding: 16px 20px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 36px; }

  .step-dot .step-name { display: none; }
  .step-line { margin-bottom: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .review .rrow { grid-template-columns: 110px 1fr; }
  .form-actions .btn { min-width: 100px; }
}

@media (min-width: 481px) and (max-width: 900px) {
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .career-steps { grid-template-columns: repeat(2, 1fr); }
  .career-step:nth-child(2n) .step-arrow { display: none; }
  .growth-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .perk { border-right: none !important; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .data-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
