/* ====================================================================
   Pre-Flop Inc. Recruit Site — style.css
   Dark editorial design with subtle poker/card motifs
   ==================================================================== */

/* ---------- Tokens ---------- */
:root {
  --c-primary: #D40000;
  --c-primary-dim: #A00000;
  --c-bg: #000000;
  --c-bg-2: #0A0A0A;
  --c-bg-3: #121212;
  --c-surface: #161616;
  --c-surface-2: #1E1E1E;
  --c-border: #2A2A2A;
  --c-border-2: #3A3A3A;
  --c-text: #F5F5F5;
  --c-text-dim: #B8B8B8;
  --c-text-mute: #7A7A7A;
  --c-gold: #FFD700;
  --c-gold-dim: #B8960A;

  --f-logo: 'Bookman Old Style', 'Bookman', 'URW Bookman L', Georgia, serif;
  --f-display: 'Noto Sans JP', 'Outfit', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-body: 'Outfit', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  /* Labels (kicker / meta / rarity) — editorial sans-serif, not retro-pixel */
  --f-label: 'Outfit', 'Noto Sans JP', 'Hiragino Sans', sans-serif;

  --shadow-glow-red: 0 0 24px rgba(212, 0, 0, 0.35);
  --shadow-glow-gold: 0 0 24px rgba(255, 215, 0, 0.25);

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

  --container-max: 1200px;
  --container-narrow: 820px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { opacity: 0.8; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ---------- Background cards ---------- */
.bg-cards {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-card {
  position: absolute;
  font-family: var(--f-body);
  font-size: 420px;
  color: #FFFFFF;
  opacity: 0.018;
  line-height: 1;
  user-select: none;
}
.bg-card.c1 { top: 4vh;   left: -40px;   transform: rotate(-12deg); }
.bg-card.c2 { top: 48vh;  right: -60px;  transform: rotate(10deg); color: var(--c-primary); opacity: 0.035; }
.bg-card.c3 { top: 110vh; left: 40vw;    transform: rotate(-6deg); color: var(--c-primary); opacity: 0.03; }
.bg-card.c4 { top: 180vh; left: -30px;   transform: rotate(8deg); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container-narrow {
  max-width: var(--container-narrow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius);
  color: var(--c-primary);
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-glow-red);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-logo);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-text);
}
.brand-sub {
  font-family: var(--f-label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--c-text-mute);
  margin-top: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--c-text-dim);
}
.site-nav a:hover { color: var(--c-text); opacity: 1; }
.site-nav .nav-cta {
  padding: 8px 14px;
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  border-radius: var(--radius);
  transition: all .2s ease;
}
.site-nav .nav-cta:hover {
  background: var(--c-primary);
  color: #fff;
  opacity: 1;
  box-shadow: var(--shadow-glow-red);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, rgba(212,0,0,0.15), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.meta-pill {
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  padding: 8px 14px;
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  border-radius: var(--radius);
}
.meta-suits {
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--c-text-mute);
}
.hero-headline {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 92px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-line:nth-of-type(2) { transition-delay: .15s; }
.hero-headline .hero-line:nth-of-type(2) { color: var(--c-primary); }
.hero-sub {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 22px);
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-text-dim);
  max-width: 680px;
  margin: 0 0 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.15em;
  border-radius: var(--radius);
  transition: all .25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: #ff1a1a;
  border-color: #ff1a1a;
  opacity: 1;
  box-shadow: var(--shadow-glow-red);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-2);
}
.btn-ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  opacity: 1;
  box-shadow: var(--shadow-glow-red);
}
.btn-gold {
  background: transparent;
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.btn-gold:hover {
  background: var(--c-gold);
  color: #000;
  opacity: 1;
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 9px;
}
.btn-large {
  padding: 22px 36px;
  font-size: 13px;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}
.btn-large .btn-main { font-size: 14px; }
.btn-large .btn-sub {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

/* ---------- Section ---------- */
.section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--c-border);
}
.section-head {
  max-width: 820px;
  margin: 0 auto 72px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--c-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--c-text);
}
.section-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text-dim);
  margin: 0;
}

/* ---------- Vision ---------- */
.section-vision { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%); }
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vision-single {
  max-width: 720px;
  margin: 0 auto;
}
.vision-single .vision-card {
  padding: 56px 48px;
  text-align: center;
}
.vision-single .v-card-title {
  font-size: 28px;
}
.vision-single .v-card-body {
  font-size: 16px;
}
.vision-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.vision-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-2);
}
.v-card-label {
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--c-primary);
  margin-bottom: 20px;
}
.v-card-label.gold { color: var(--c-gold); }
.v-pritzker { border-color: rgba(255, 215, 0, 0.35); }
.v-pritzker:hover { border-color: var(--c-gold); box-shadow: var(--shadow-glow-gold); }
.v-card-title {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--c-text);
}
.v-card-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text-dim);
  margin: 0;
}
.v-list {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text-dim);
}
.v-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.v-list li::before {
  content: "♠";
  color: var(--c-primary);
  font-size: 11px;
}
.v-list li:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .vision-grid { grid-template-columns: 1fr; }
}

/* ---------- Why / Pitch ---------- */
.section-why { background: var(--c-bg); }
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pitch-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.pitch-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
}
.pitch-card-wide { grid-column: 1 / -1; }
.pitch-num {
  font-family: var(--f-label);
  font-size: 28px;
  color: var(--c-primary);
  opacity: 0.6;
  margin-bottom: 20px;
  line-height: 1;
}
.pitch-num.gold { color: var(--c-gold); opacity: 0.85; }
.pitch-card-wide { border-color: rgba(255,215,0,0.3); }
.pitch-card-wide:hover { border-color: var(--c-gold); box-shadow: var(--shadow-glow-gold); }
.pitch-title {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--c-text);
}
.pitch-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text-dim);
  margin: 0;
}

@media (max-width: 820px) {
  .pitch-grid { grid-template-columns: 1fr; }
}

/* ---------- Jobs ---------- */
.section-jobs { background: linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 100%); }
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.job-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212,0,0,0.04), transparent 50%);
  pointer-events: none;
}
.job-card:hover { transform: translateY(-6px); }
.job-ssr { border-color: rgba(255,215,0,0.35); }
.job-ssr:hover { border-color: var(--c-gold); box-shadow: var(--shadow-glow-gold); }
.job-sr { border-color: rgba(212,0,0,0.4); }
.job-sr:hover { border-color: var(--c-primary); box-shadow: var(--shadow-glow-red); }
.job-r:hover { border-color: var(--c-border-2); }

.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.rarity {
  font-family: var(--f-label);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: var(--radius);
  line-height: 1;
}
.rarity-ssr {
  background: linear-gradient(135deg, #FFD700, #B8960A);
  color: #000;
  box-shadow: 0 0 16px rgba(255,215,0,0.4);
}
.rarity-sr {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}
.rarity-r {
  background: var(--c-text-dim);
  color: #000;
}
.suit-mark {
  font-size: 32px;
  color: var(--c-text-mute);
  opacity: 0.5;
  line-height: 1;
}
.job-ssr .suit-mark { color: var(--c-gold); opacity: 0.8; }
.job-sr .suit-mark { color: var(--c-primary); opacity: 0.8; }

.job-title {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  color: var(--c-text);
  position: relative;
}
.job-employment-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  vertical-align: middle;
}
.job-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.job-meta > div {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.job-meta dt {
  flex-shrink: 0;
  width: 78px;
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--c-text-mute);
  padding-top: 3px;
}
.job-meta dd {
  color: var(--c-text);
  flex: 1;
}
.job-meta dd.salary {
  font-weight: 600;
  color: var(--c-primary);
}
.job-ssr .job-meta dd.salary { color: var(--c-gold); }
.salary-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-mute);
  margin-top: 2px;
}
.job-tags { position: relative; }
.tag-label {
  display: block;
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--c-text-mute);
  margin-bottom: 10px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list li {
  font-size: 12px;
  padding: 5px 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
}
.tag-list.welcome li {
  background: transparent;
  border-color: var(--c-border-2);
  color: var(--c-text-dim);
}
.job-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--c-text-dim);
  margin: 0;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.job-ssr .job-note { border-left-color: var(--c-gold); }
.job-card .btn { margin-top: auto; position: relative; }

@media (max-width: 980px) {
  .jobs-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---------- CEO Message ---------- */
.section-message {
  background: var(--c-bg);
  position: relative;
}
.section-message::before {
  content: "♠";
  position: absolute;
  top: 60px; right: 8%;
  font-size: 180px;
  color: var(--c-primary);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}
.message-body {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  font-size: 16px;
  line-height: 2;
  color: var(--c-text-dim);
}
.message-body p { margin: 0 0 1.6em; }
.message-body p:last-of-type { margin-bottom: 0; }
.message-highlight {
  color: var(--c-text);
  font-weight: 500;
  font-size: 17px;
  padding: 20px 24px;
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius);
  background: rgba(212,0,0,0.05);
}
.signature {
  margin-top: 32px !important;
  text-align: right;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text);
  line-height: 2;
}

@media (max-width: 640px) {
  .message-body { padding: 32px 24px; }
}

/* ---------- Work Environment ---------- */
.section-env { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%); }
.env-table {
  max-width: 900px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.env-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 24px 32px;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
  gap: 24px;
  align-items: start;
}
.env-row:last-child { border-bottom: 0; }
.env-row dt {
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--c-primary);
  padding-top: 4px;
}
.env-row dd {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
}
.env-sub {
  color: var(--c-text-mute);
  font-size: 13px;
}

@media (max-width: 700px) {
  .env-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 24px; }
}

/* ---------- FAQ ---------- */
.section-faq { background: var(--c-bg); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--c-primary); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(212,0,0,0.04); }
.faq-q-label {
  font-family: var(--f-label);
  font-size: 12px;
  color: var(--c-primary);
  flex-shrink: 0;
}
.faq-q-text {
  flex: 1;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
}
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--c-text-dim);
  transition: transform .25s ease, background .2s ease;
}
.faq-toggle::before {
  width: 14px; height: 2px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 2px; height: 14px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-toggle::before { background: var(--c-primary); }
.faq-item[open] .faq-toggle::after {
  background: var(--c-primary);
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-a {
  display: flex;
  gap: 18px;
  padding: 0 28px 24px 28px;
  border-top: 1px dashed var(--c-border);
  padding-top: 20px;
}
.faq-a-label {
  font-family: var(--f-label);
  font-size: 12px;
  color: var(--c-text-mute);
  flex-shrink: 0;
}
.faq-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-text-dim);
}

/* ---------- CTA ---------- */
.section-cta {
  background: radial-gradient(ellipse at 50% 30%, rgba(212,0,0,0.18), transparent 60%), var(--c-bg);
  padding: 140px 0;
}
.cta-box {
  text-align: center;
}
.cta-kicker {
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--c-primary);
  margin: 0 0 20px;
}
.cta-title {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.cta-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text-dim);
  margin: 0 0 48px;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-text-mute);
  margin: 0;
}
.mail-fallback {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Apply Form ---------- */
.apply-form {
  text-align: left;
  margin: 0 auto 40px;
  max-width: 720px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-field label {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--c-primary);
  text-transform: uppercase;
}
.form-req {
  color: var(--c-primary);
  margin-left: 4px;
  font-size: 10px;
}
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select,
.apply-form textarea {
  background: #0f0f0f;
  border: 1px solid var(--c-border-2);
  color: var(--c-text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--f-body);
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.apply-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.75;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(212, 0, 0, 0.15);
}
.apply-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23D40000' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-turnstile {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}
.form-error {
  color: #ff6b6b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 16px;
}
.form-actions {
  text-align: center;
  margin-top: 8px;
}
.apply-success {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}
.apply-success h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--c-text);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}
.apply-success p {
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 12px;
}
.apply-success-note {
  color: var(--c-text-mute);
  font-size: 12px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--c-border);
  padding: 72px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-company {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-text);
}
.footer-company-en {
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--c-text-mute);
  margin-top: 4px;
}
.footer-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}
.footer-info > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--c-border);
}
.footer-info dt {
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--c-text-mute);
}
.footer-info dd {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
}
.footer-info dd a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--c-text-dim);
}
.footer-links a:hover { color: var(--c-primary); opacity: 1; }
.footer-links .sep { color: var(--c-text-mute); }
.footer-copy {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  font-family: var(--f-label);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--c-text-mute);
}

@media (max-width: 640px) {
  .footer-info { grid-template-columns: 1fr; }
}

/* ---------- Scroll-reveal ---------- */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-line, [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .bg-cards, .site-header, .hero-cta, .cta-buttons { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 40px 0; border-color: #ccc; }
}

/* ---------- Revision 2 additions ---------- */

/* Hero: disable the default "second line becomes red" rule when we use
   the per-word accent variant. */
.hero-headline-accent .hero-line:nth-of-type(2) { color: var(--c-text); }

/* Per-word red accent used in hero headline ("AI", "MEP設計"). */
.accent-red { color: #D40000; }

/* Preserve explicit line breaks in paragraphs/leads that embed newlines
   directly in the HTML (句読点改行). */
.v-multiline { white-space: pre-line; }

/* Vision: two-card layout (MISSION + ULTIMATE GOAL). */
.vision-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.vision-dual .vision-card {
  padding: 48px 40px;
}
.vision-dual .v-card-body {
  font-size: 16px;
  line-height: 1.95;
}
@media (max-width: 900px) {
  .vision-dual { grid-template-columns: 1fr; }
}

/* Vision / Who-we-are prose — single-column, centered-ish editorial text. */
.vision-prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--c-text);
  font-size: 17px;
  line-height: 2.0;
  letter-spacing: 0.01em;
}
.vision-prose p {
  margin: 0 0 1.8em;
}
.vision-prose p:last-child {
  margin-bottom: 0;
}
.vision-prose .vision-triple {
  font-weight: 500;
}
.vision-prose .vision-pivot {
  margin-top: 3.2em;
  color: var(--c-text-dim);
  font-style: normal;
}
@media (max-width: 640px) {
  .vision-prose {
    font-size: 15px;
    line-height: 1.95;
  }
  .vision-prose .vision-pivot { margin-top: 2.6em; }
}

/* CEO message closing single-line (「待っています。」). */
.message-closer {
  margin-top: 2em !important;
  font-weight: 600;
  color: var(--c-text);
}

/* ULTIMATE GOAL card — gold accent. */
.v-ultimate {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(180deg, rgba(255,215,0,0.04), rgba(0,0,0,0) 60%), var(--c-surface);
}
.v-ultimate:hover {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-glow-gold);
}
.v-ultimate .v-card-title {
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.v-gold {
  color: #FFD700 !important;
}

/* Jobs grid: make the three cards equal height. */
.jobs-grid {
  align-items: stretch;
}
.job-card {
  height: 100%;
}

/* Hero subheadline — sits between the giant hero-headline and the lead.
   Mid-size, Noto Sans JP bold, used for the "AIで、設計の前線に。"
   line on the recruit subsite. */
.hero-subheadline {
  font-family: 'Noto Sans JP', var(--f-body);
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin: -8px 0 24px;
}

/* Job card salary — multi-line format (月給〜, 賞与〜).
   Label text ("月給" / "賞与") stays bold; the rest reverts to body weight. */
.job-meta dd.salary-multiline {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-text);
}
.job-ssr .job-meta dd.salary-multiline,
.job-sr .job-meta dd.salary-multiline {
  color: var(--c-text);
}
.salary-label {
  font-weight: 700;
  color: var(--c-primary);
}
.job-ssr .salary-label { color: var(--c-gold); }

/* Job card salary — 3-part structure (main / sub-note / bonus).
   main: 月給本体・賞与行（通常色）
   sub : 補足括弧書き（薄グレー・小さめ）
   bonus: 賞与行（上マージン） */
.salary-main {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-primary);
}
.job-ssr .salary-main { color: var(--c-gold); }
.salary-sub {
  margin: 2px 0 0;
  color: #888;
  font-size: 0.85em;
  line-height: 1.5;
  font-weight: 400;
  white-space: pre-line;
}
.salary-bonus-main {
  margin-top: 8px;
}
