/* ============================================================
   ナインデザイン — 採用サイト
   Paper-white base / Monochrome + single orange accent
   Typography-forward editorial layout
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --bg-dark: #141311;        /* near-black for dark sections */
  --ink: #1a1a1a;
  --ink-2: #3a3836;
  --ink-3: #6b6763;
  --ink-4: #9c9791;
  --line: #e3e2de;
  --line-soft: #ededea;
  --accent: #E85D2F;
  --accent-ink: #c94518;

  --font-sans: "Albert Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Albert Sans", "Noto Sans JP", sans-serif;
  --font-display: "Albert Sans", "Noto Sans JP", sans-serif;
  --font-mono: "Albert Sans", sans-serif;
  --font-latin: "Albert Sans", sans-serif;

  --container: 1280px;
  --pad-x: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

body {
  min-width: 1280px;
  background-image: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
b,
strong { font-weight: 600; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Reusable utilities */
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.latin { font-family: var(--font-latin); letter-spacing: 0.02em; }
.form-label-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
}
.form-badge.is-required {
  background: rgba(232, 93, 47, 0.12);
  color: var(--accent-ink);
}
.form-badge.is-optional {
  background: #e7e5e0;
  color: var(--ink-3);
}
.form-help-text {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(244, 241, 234, 0.82);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.logo, .global-nav { display: flex; align-items: center; }
.logo {
  display: flex; align-items: center; gap: 10px;
}
.site-logo-img {
  display: block;
  width: 260px;
  height: auto;
  transform: translateY(-3px);
}
.logo-mark {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-mark .dot { color: var(--accent); }
.logo-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.logo-label {
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 16px;
  margin-left: 12px;
  border-left: 1px solid var(--line);
  letter-spacing: 0.18em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.global-nav > ul {
  display: flex; gap: 20px; list-style: none; align-items: stretch; height: 100%;
}
.global-nav > ul > li { position: relative; display: flex; align-items: center; }
.global-nav > ul > li > a,
.global-nav > ul > li > span.nav-label {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  position: relative;
  padding: 26px 0;
  transition: color 0.2s ease;
  display: inline-block;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.global-nav > ul > li > a::after,
.global-nav > ul > li > span.nav-label::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.global-nav > ul > li:hover > a,
.global-nav > ul > li:hover > span.nav-label { color: var(--ink); }
.global-nav > ul > li:hover > a::after,
.global-nav > ul > li:hover > span.nav-label::after { transform: scaleX(1); transform-origin: left; }

/* Sub-menu dropdown */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg);
  border: 1px solid var(--line);
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  box-shadow: 0 12px 32px rgba(20,19,17,0.08);
  margin-top: -1px;
}
.global-nav > ul > li:hover > .nav-sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-sub li { list-style: none; }
.nav-sub a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-sub a:hover {
  background: var(--bg-2);
  color: var(--accent);
}
body.tone-white .nav-sub { background: #fff; }

.entry-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.entry-btn.primary {
  background: var(--accent);
  color: #fff;
}
.entry-btn.primary:hover { background: #d14a1e; }
.entry-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.entry-btn.secondary:hover { background: var(--ink); color: #fff; }
.entry-btn .arr { font-family: var(--font-latin); font-weight: 400; transition: transform 0.3s ease; }
.entry-btn:hover .arr { transform: translateX(4px); }

.nav-toggle,
.mobile-fixed-entry {
  display: none;
}

/* ==============================
   RECRUIT CTA
   ============================== */
.rs-cta {
  position: relative;
  padding: 136px 0 144px;
  overflow: hidden;
  background:
    linear-gradient(rgba(20,19,17,0.58), rgba(20,19,17,0.62)),
    url("../images/company/recruit-cta.jpg") center 53% / cover no-repeat;
  color: #f4f1ea;
  text-align: center;
}
.rs-cta .container {
  position: relative;
  z-index: 1;
}
.rs-cta-kicker {
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.78);
}
.rs-cta h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.04em;
}
.rs-cta-lead {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
}
.rs-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
}
.rs-cta .entry-btn {
  padding: 19px 32px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.rs-cta .entry-btn.secondary {
  color: #fff;
  border-color: rgba(20,19,17,0.88);
  background: rgba(20,19,17,0.88);
  backdrop-filter: blur(2px);
}
.rs-cta .entry-btn.secondary:hover {
  background: #f4f1ea;
  color: var(--ink);
}

/* ==============================
   POPULAR PAGES
   ============================== */
.popular-sec {
  padding: 120px 0 140px;
  border-top: 1px solid var(--line-soft);
}
.popular-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.popular-head .ph-kicker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popular-head .ph-kicker .ph-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.13em;
}
.popular-head .ph-kicker .ph-en {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.popular-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-align: right;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.popular-card {
  position: relative;
  padding: 40px 32px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
  min-height: 260px;
}
.popular-card:hover { background: var(--bg-2); }
.popular-card .pc-rank {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.popular-card .pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popular-card .pc-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--ink-3);
}
.popular-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.6;
}
.popular-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}
.popular-card .pc-arrow {
  align-self: flex-end;
  font-family: var(--font-latin);
  font-size: 20px;
  color: var(--ink-3);
  transition: all 0.3s ease;
}
.popular-card:hover .pc-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

/* ==============================
   MV
   ============================== */
.mv {
  padding: 100px 0 120px;
  position: relative;
}
.mv-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 60px;
}
.mv-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mv-meta .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.13em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  width: fit-content;
}
.mv-meta .year {
  font-family: var(--font-latin);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-top: 8px;
}
.mv-scroll-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  writing-mode: horizontal-tb;
  text-align: right;
  opacity: 0.7;
}

.mv-headline {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}
.mv-headline h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 68px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.mv-headline h1 .accent-word {
  color: var(--accent);
}
.mv-headline h1 .line-break { display: block; }

.mv-bottom {
  max-width: 1440px;
  margin: 80px auto 0;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 60px;
  align-items: end;
}

/* group photo placeholder */
.group-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ddd7c7;
  overflow: hidden;
  border-radius: 2px;
}
.group-photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px,
      transparent 1px, transparent 14px),
    linear-gradient(135deg, #c4b9a0 0%, #d6cdb4 50%, #e2dac4 100%);
}
.group-photo::after {
  content: "[ GROUP PHOTO — 集合写真 ]";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.25em;
  background: rgba(20,19,17,0.55);
  padding: 10px 18px;
  border-radius: 2px;
  white-space: nowrap;
}
.group-photo .photo-caption {
  position: absolute;
  left: 20px; bottom: 16px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  z-index: 2;
}

.mv-descriptor {
  padding-bottom: 20px;
}
.mv-descriptor .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.mv-descriptor p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}

/* ==============================
   SECTION CHROME
   ============================== */
section { position: relative; }
.section {
  padding: 140px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: start;
}
.section-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.section-label .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.section-label .en {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-label .jp {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  margin-top: 4px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 20em;
}
.section-title .lede {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-2);
  margin-top: 28px;
  max-width: 32em;
}

/* ==============================
   CEO LETTER
   ============================== */
.ceo {
  padding: 140px 0 160px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ceo-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 100px;
  align-items: start;
}
.ceo-left {
  position: sticky;
  top: 100px;
}
.ceo-portrait {
  width: 280px;
  aspect-ratio: 4 / 5;
  background: #ddd7c7;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.ceo-portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(125deg,
      rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px,
      transparent 1px, transparent 12px),
    linear-gradient(165deg, #b5a88d 0%, #cbbfa4 55%, #ddd2b7 100%);
}
.ceo-portrait::after {
  content: "[ 代表写真 ]";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.25em;
  background: rgba(20,19,17,0.5);
  padding: 8px 14px;
}
.ceo-meta { font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.ceo-meta .name-jp {
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.ceo-meta .name-en {
  font-family: var(--font-latin);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.ceo-meta .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--ink-3);
}

.ceo-letter {
  max-width: 660px;
  font-size: 15.5px;
  line-height: 2.3;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.ceo-letter .salutation {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 40px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.ceo-letter p {
  margin-bottom: 28px;
  text-wrap: pretty;
}
.ceo-letter p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  margin: 8px 12px 0 0;
  color: var(--accent);
}
.ceo-letter .closing {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 2;
}
.ceo-letter .closing .sign {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ==============================
   INTERVIEW
   ============================== */
.interview {
  padding: 160px 0 180px;
  position: relative;
  overflow: hidden;
}
.interview-bg-type {
  position: absolute;
  left: -20px; bottom: 60px;
  font-family: var(--font-latin);
  font-size: 260px;
  font-weight: 600;
  line-height: 0.85;
  color: rgba(26,26,26,0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.interview-card {
  display: block;
  cursor: pointer;
  position: relative;
}
.interview-card .photo {
  aspect-ratio: 4 / 5;
  background: #ddd7c7;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.interview-card .photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(110deg,
      rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px,
      transparent 1px, transparent 10px),
    linear-gradient(var(--photo-a, 165deg), var(--photo-c1, #b9ad92) 0%, var(--photo-c2, #d5cab1) 100%);
  transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.interview-card:nth-child(1) .photo { --photo-c1: #b29f84; --photo-c2: #d1c4a9; --photo-a: 155deg;}
.interview-card:nth-child(2) .photo { --photo-c1: #a8a692; --photo-c2: #c8c5ac; --photo-a: 175deg;}
.interview-card:nth-child(3) .photo { --photo-c1: #bba689; --photo-c2: #d8c7a6; --photo-a: 145deg;}
.interview-card:nth-child(4) .photo { --photo-c1: #a5967a; --photo-c2: #c3b594; --photo-a: 195deg;}
.interview-card:nth-child(5) .photo { --photo-c1: #b4a586; --photo-c2: #d6c7a4; --photo-a: 165deg;}
.interview-card:nth-child(6) .photo { --photo-c1: #9e9a85; --photo-c2: #c5bfa4; --photo-a: 135deg;}
.interview-card:hover .photo::before { transform: scale(1.05); }
.interview-card .photo::after {
  content: attr(data-ph);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.25em;
  background: rgba(20,19,17,0.5);
  padding: 6px 14px;
  white-space: nowrap;
}
.interview-card .photo .num {
  position: absolute;
  left: 16px; top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.2em;
  z-index: 2;
}
.interview-card .photo .dept {
  position: absolute;
  right: 16px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.13em;
  background: rgba(232, 93, 47, 0.9);
  color: #fff;
  padding: 4px 10px;
  z-index: 2;
}
.interview-card .copy {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.interview-card .meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}
.interview-card .role {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.interview-card .name {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.1em;
  margin-left: auto;
}
.interview-card .year-join {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
}
.interview-card .arrow {
  position: absolute;
  right: 0; top: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: all 0.3s ease;
  font-family: var(--font-latin);
  color: var(--ink-2);
  z-index: 3;
}
.interview-card:hover .arrow {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.interview-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 60px;
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.view-all:hover { color: var(--accent); border-color: var(--accent); }
.view-all .arr { font-family: var(--font-latin); }

/* ==============================
   JOBS (Roles)
   ============================== */
.jobs {
  padding: 160px 0;
  background: var(--bg-dark);
  color: #f4f1ea;
}
.jobs .section-label .num { color: var(--accent); }
.jobs .section-label .en { color: #f4f1ea; }
.jobs .section-label .jp { color: #9c9791; }
.jobs .section-title h2 { color: #f4f1ea; }
.jobs .section-title .lede { color: #b8b3aa; }

.jobs-list {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.job-row {
  display: grid;
  grid-template-columns: 60px 260px 1fr 220px 60px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  position: relative;
  transition: padding 0.4s cubic-bezier(.2,.6,.2,1);
}
.job-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232,93,47,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.job-row:hover::before { opacity: 1; }
.job-row:hover { padding-left: 20px; }
.job-row .j-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.job-row .j-en {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #a8a39a;
  line-height: 1.3;
  display: block;
  margin-top: 4px;
}
.job-row .j-jp {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f4f1ea;
  line-height: 1.4;
  white-space: nowrap;
}
.job-row .j-desc {
  font-size: 13px;
  line-height: 1.9;
  color: #a8a39a;
  letter-spacing: 0.03em;
}
.job-row .j-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-row .j-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #c8c3b8;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.2);
}
.job-row .j-arrow {
  justify-self: end;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin);
  color: #f4f1ea;
  font-size: 16px;
  transition: all 0.3s;
}
.job-row:hover .j-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(-45deg);
}

/* ==============================
   REASONS
   ============================== */
.reasons { padding: 160px 0; }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.reason-item {
  padding: 56px 48px 64px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.reason-item .r-num {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  display: block;
}
.reason-item .r-num sup {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 8px;
  letter-spacing: 0.2em;
  vertical-align: top;
  top: 8px;
  position: relative;
}
.reason-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.reason-item p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

/* ==============================
   WORKSTYLE
   ============================== */
.workstyle {
  padding: 160px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.workstyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.workstyle-feature {
  aspect-ratio: 4 / 5;
  background: #c7bc9f;
  position: relative;
  overflow: hidden;
}
.workstyle-feature::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px,
      transparent 1px, transparent 12px),
    linear-gradient(165deg, #b0a388 0%, #c7bca0 50%, #d8cdaf 100%);
}
.workstyle-feature::after {
  content: "[ OFFICE / 働く様子 ]";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.25em;
  background: rgba(20,19,17,0.5);
  padding: 10px 16px;
}

.ws-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ws-stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ws-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 12px;
}
.ws-stat .fig {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.ws-stat .fig .unit {
  font-size: 16px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 400;
}
.ws-stat .caption {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.7;
}

.ws-copy {
  margin-top: 0;
  padding-top: 20px;
}
.ws-copy .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.13em;
  margin-bottom: 20px;
}
.ws-copy h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.ws-copy p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-2);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ==============================
   RECRUIT INFO (Link Cards)
   ============================== */
.recruit { padding: 160px 0; }
.recruit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.recruit-card {
  display: block;
  position: relative;
  padding: 40px 36px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  overflow: hidden;
}
.recruit-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.recruit-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.recruit-card:hover::before { transform: scaleX(1); }

.recruit-card .r-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.recruit-card .r-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.13em;
}
.recruit-card .r-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--ink);
  padding: 4px 10px;
}
.recruit-card .r-status.open {
  background: var(--accent);
}
.recruit-card .r-en {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.1;
}
.recruit-card .r-jp {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.recruit-card .r-facts {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 2;
  letter-spacing: 0.04em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.recruit-card .r-facts dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 4px;
}
.recruit-card .r-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.15em;
  padding-top: 2px;
}
.recruit-card .r-facts dd {
  color: var(--ink-2);
}
.recruit-card .r-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.recruit-card .r-cta span {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}
.recruit-card .r-cta .circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin);
  transition: all 0.3s ease;
}
.recruit-card:hover .r-cta .circle {
  background: var(--accent);
  transform: rotate(-45deg);
}

/* ==============================
   CTA STRIP
   ============================== */
.entry-cta {
  padding: 140px 0;
  background: var(--ink);
  color: #f4f1ea;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.entry-cta::before {
  content: "JOIN US";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 340px;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.entry-cta .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 32px;
  position: relative;
}
.entry-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.55;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  position: relative;
}
.entry-cta p {
  font-size: 14px;
  color: #a8a39a;
  margin-bottom: 56px;
  letter-spacing: 0.08em;
  line-height: 2;
  position: relative;
}
.entry-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 48px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.25em;
  transition: background 0.2s;
  position: relative;
}
.entry-cta .cta-btn:hover { background: #ff7046; }
.entry-cta .cta-btn .arr { font-family: var(--font-latin); }

/* ==============================
   FOOTER
   ============================== */
.site-footer-new {
  padding: 100px 0 48px;
  background: #f7f5ef;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.7fr) repeat(3, minmax(150px, 1fr));
  gap: 48px;
  margin-bottom: 80px;
}
.footer-col h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.footer-col ul + h4 { margin-top: 34px; }
.footer-col ul {
  list-style: none;
  padding-left: 17px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 48px;
}
.footer-logo-img {
  display: block;
  width: min(260px, 70vw);
  height: auto;
}
.footer-access {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-access h4 {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.footer-brand .addr {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 0;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.footer-contact {
  margin-top: 0;
}
.footer-contact h4 {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.footer-contact p {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-contact p a {
  color: var(--ink);
}
.footer-contact-hours {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-text-link:hover { color: var(--accent); }

.footer-bottom-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.12em;
}
.footer-bottom-new .links { display: flex; gap: 32px; }
.footer-bottom-new a { color: var(--ink-3); }
.footer-bottom-new a:hover { color: var(--accent); }

/* ==============================
   PAGE LINK LIST (reusable across sections)
   ============================== */
.page-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.page-links.inline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.page-links.inline-grid .page-link {
  border-right: 1px solid var(--line);
}
.page-links.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s cubic-bezier(.2,.6,.2,1);
  gap: 20px;
}
.page-links.inline-grid .page-link {
  padding: 28px 24px;
  align-items: flex-start;
  flex-direction: column;
  min-height: 140px;
  gap: 0;
  justify-content: space-between;
}
.page-link::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.page-link:hover::before { transform: scaleX(1); }
.page-link:hover { padding-left: 12px; }
.page-links.inline-grid .page-link:hover { padding-left: 36px; }

.page-link .pl-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-link .pl-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.page-link .pl-en {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.page-link .pl-jp {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.5;
}
.page-link .pl-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.9;
  max-width: 24em;
  margin-top: 6px;
}
.page-link .pl-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin);
  color: var(--ink-2);
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.page-link:hover .pl-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}
.page-links.inline-grid .page-link .pl-arrow {
  align-self: flex-end;
}

/* ==============================
   KNOW (company overview) section — reuses patterns
   ============================== */
.know { padding: 160px 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.know-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--bg);
}
.know-card {
  padding: 48px 44px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s ease;
  display: block;
}
.know-card:hover { background: var(--bg-2); }
.know-card .kc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  display: block;
}
.know-card .kc-en {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
}
.know-card .kc-jp {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.know-card .kc-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.know-card .kc-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s, gap 0.3s;
}
.know-card:hover .kc-cta { color: var(--accent); border-color: var(--accent); gap: 20px; }
.know-card .kc-cta .arr { font-family: var(--font-latin); }

.know-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 0;
  background: var(--bg);
}
.know-stats .ws-stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ==============================
   MATCHING section
   ============================== */
.matching {
  padding: 160px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.matching-intro {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.matching-intro .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}
.matching-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.matching-intro p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.matching-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.matching-card {
  background: var(--bg-2);
  padding: 56px 48px;
  border: 1px solid var(--line);
  display: block;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.matching-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
  z-index: 0;
}
.matching-card > * { position: relative; z-index: 1; }
.matching-card:hover::before { transform: translateY(0); }
.matching-card:hover { color: #fff; border-color: var(--ink); }
.matching-card:hover .mc-en,
.matching-card:hover .mc-jp,
.matching-card:hover .mc-desc { color: #fff; }
.matching-card:hover .mc-num { color: var(--accent); }

.matching-card .mc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}
.matching-card .mc-en {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.1;
}
.matching-card .mc-jp {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.matching-card .mc-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.matching-card .mc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  opacity: 0.9;
}
.matching-card .mc-cta span { font-size: 12px; letter-spacing: 0.18em; }
.matching-card .mc-cta .circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin);
  transition: all 0.3s ease;
}
.matching-card:hover .mc-cta .circle {
  background: var(--accent);
  transform: rotate(-45deg);
}

/* Workstyle page-links — richer visual layout */
.workstyle-links {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ws-link {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ws-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.ws-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.ws-link:hover::before { transform: scaleY(1); transform-origin: top; }
.ws-link .wsl-num {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 48px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ws-link .wsl-body { display: flex; flex-direction: column; gap: 4px; }
.ws-link .wsl-en {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.ws-link .wsl-jp {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.ws-link .wsl-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.ws-link .wsl-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin);
  color: var(--ink-2);
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.ws-link:hover .wsl-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}

/* ==============================
   PHOTO SLIDER
   ============================== */
.photo-gallery {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.photo-gallery .gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto 64px;
  padding: 0 var(--pad-x);
  gap: 40px;
}
.photo-gallery .gallery-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.photo-gallery .gallery-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-wrap: pretty;
}
.photo-gallery .gallery-head p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 360px;
}
.gallery-track-wrap {
  overflow: hidden;
  padding-left: var(--pad-x);
}
.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.gallery-slide {
  flex: 0 0 auto;
  width: 520px;
  height: 360px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.gallery-slide.wide { width: 720px; }
.gallery-slide.tall { height: 420px; }
.gallery-slide .ph-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232,93,47,0.08), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(20,19,17,0.04) 14px 15px),
    linear-gradient(180deg, #d8d1c0, #c3bba8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(20,19,17,0.45);
  letter-spacing: 0.14em;
}
.gallery-slide .ph-caption {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 60%;
}
.gallery-slide .ph-caption .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.13em;
}
.gallery-slide .ph-caption .lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.gallery-controls {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gallery-progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.gallery-progress .bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.4s ease;
}
.gallery-buttons {
  display: flex;
  gap: 8px;
}
.gallery-buttons button {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-latin);
  font-size: 18px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.gallery-buttons button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.gallery-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  min-width: 56px;
}

/* ==============================
   SCROLL FADE-IN
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--delay, 0ms);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   TWEAKS PANEL
   ============================== */
#tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  background: #fff;
  border: 1px solid #d9d3c4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 10000;
  font-family: var(--font-sans);
  display: none;
}
#tweaks-panel.open { display: block; }
#tweaks-panel h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #6b6763;
  margin-bottom: 12px;
  text-transform: uppercase;
}
#tweaks-panel .tweak-group { margin-bottom: 18px; }
#tweaks-panel .tweak-group label {
  display: block;
  font-size: 12px;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
#tweaks-panel .fontpair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#tweaks-panel #fp-grid { grid-template-columns: 1fr 1fr 1fr; }
#tweaks-panel .fp-option {
  border: 1px solid #d9d3c4;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  background: #f7f5f0;
  font-size: 12px;
  color: #3a3836;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#tweaks-panel .fp-option:hover { border-color: #1a1a1a; }
#tweaks-panel .fp-option.active {
  border-color: #E85D2F;
  background: #fff;
  color: #1a1a1a;
}
#tweaks-panel .fp-option .fp-name {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
}
#tweaks-panel .fp-option .fp-sample {
  font-size: 14px;
  line-height: 1.2;
}

/* Font pair variants */
/* Font pair variants — sans-serif only (Noto / Zen) */
body.fp-notosans {
  --font-sans: "Albert Sans", "Noto Sans JP", sans-serif;
  --font-serif: "Albert Sans", "Noto Sans JP", sans-serif;
  --font-display: "Albert Sans", "Noto Sans JP", sans-serif;
}
body.fp-zen {
  --font-sans: "Albert Sans", "Zen Kaku Gothic New", sans-serif;
  --font-serif: "Albert Sans", "Zen Kaku Gothic New", sans-serif;
  --font-display: "Albert Sans", "Zen Kaku Gothic New", sans-serif;
}
body.fp-mixed {
  --font-sans: "Albert Sans", "Noto Sans JP", sans-serif;
  --font-serif: "Albert Sans", "Noto Sans JP", sans-serif;
  --font-display: "Albert Sans", "Zen Kaku Gothic New", sans-serif;
}

/* Base tone variants */
body.tone-paper {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --line: #e3e2de;
  --line-soft: #ededea;
}
body.tone-white {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --line: #e3e2de;
  --line-soft: #ededea;
  background-image: none !important;
}
body.tone-white .site-header {
  background: rgba(255,255,255,0.88);
}

@media (max-width: 1024px) {
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-head { grid-template-columns: 1fr; gap: 16px; }
  .popular-head h2 { text-align: left; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 667px) {
  .popular-grid { grid-template-columns: 1fr; }
  .rs-cta h2 { font-size: 28px; }
  .rs-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .site-footer-new {
    padding: 72px 0 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 52px;
  }
  .footer-col h4 {
    margin-bottom: 16px;
  }
  .footer-bottom-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    line-height: 1.8;
  }
  .footer-bottom-new .links {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==============================
   RESPONSIVE BASE
   ============================== */
@media (max-width: 1180px) {
  :root {
    --container: 100%;
    --pad-x: 32px;
  }

  html,
  body {
    min-width: 0;
    overflow-x: clip;
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  body.nav-open {
    overflow-x: clip;
  }

  .site,
  .site-content,
  .content-area,
  main {
    min-width: 0;
    max-width: 100%;
  }

  .container,
  .container-wide,
  .mv-top,
  .mv-headline,
  .mv-bottom {
    max-width: 100%;
    padding-right: var(--pad-x);
    padding-left: var(--pad-x);
  }

  img,
  video,
  iframe,
  object,
  embed {
    max-width: 100%;
  }

  .site-header-inner {
    height: 72px;
    align-items: center;
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-logo-img {
    width: min(260px, 62vw);
  }

  .nav-toggle {
    position: relative;
    z-index: 122;
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
    min-width: 92px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.78);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  .nav-toggle-lines {
    display: grid;
    gap: 5px;
    width: 18px;
  }

  .nav-toggle-lines span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .site-header.is-open .nav-toggle-lines span:nth-child(1) {
    transform: translateY(6px) rotate(42deg);
  }

  .site-header.is-open .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-42deg);
  }

  .global-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 120;
    display: block;
    height: calc(100dvh - 72px - 74px);
    max-height: calc(100dvh - 72px - 74px);
    padding: 24px var(--pad-x) 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 50px rgba(20,19,17,0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .site-header.is-open .global-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-nav > ul {
    display: grid;
    height: auto;
    gap: 0;
  }

  .global-nav > ul > li {
    display: block;
    border-bottom: 1px solid var(--line-soft);
  }

  .global-nav > ul > li > a,
  .global-nav > ul > li > span.nav-label {
    display: block;
    width: 100%;
    padding: 16px 0 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .global-nav > ul > li > a::after,
  .global-nav > ul > li > span.nav-label::after {
    display: none;
  }

  .nav-sub,
  body.tone-white .global-nav .nav-sub,
  .global-nav > ul > li:hover > .nav-sub {
    position: static;
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0 0 14px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-sub a {
    background: transparent;
    padding: 8px 0;
    white-space: normal;
  }

  .nav-sub a:hover {
    background: transparent;
  }

  .global-nav .entry-group {
    display: none;
  }

  .mobile-fixed-entry {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.94);
    border-top: 1px solid var(--line);
    box-shadow: 0 -14px 34px rgba(20,19,17,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.nav-open .mobile-fixed-entry {
    background: #fff;
  }

  .mobile-fixed-entry .entry-btn {
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .section,
  .ceo,
  .interview,
  .jobs,
  .reasons,
  .workstyle,
  .recruit,
  .entry-cta,
  .popular-sec,
  .know,
  .matching,
  .photo-gallery {
    padding-top: 104px;
    padding-bottom: 104px;
  }

  .section-head,
  .mv-top,
  .mv-bottom,
  .ceo-grid,
  .workstyle-grid,
  .matching-cards,
  .workstyle-links {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ceo-left {
    position: static;
  }

  .interview-grid,
  .recruit-cards,
  .reasons-grid,
  .know-body,
  .know-stats,
  .page-links.inline-grid,
  .page-links.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-row {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 20px;
  }

  .job-row .j-desc,
  .job-row .j-tags {
    grid-column: 2 / 4;
  }

  .job-row .j-jp {
    white-space: normal;
  }

  .gallery-slide {
    width: min(520px, 72vw);
  }

  .gallery-slide.wide {
    width: min(720px, 82vw);
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .site-header-inner {
    height: 66px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-logo-img {
    width: min(230px, 58vw);
  }

  .global-nav {
    top: 100%;
    height: calc(100dvh - 66px - 72px);
    max-height: calc(100dvh - 66px - 72px);
  }

  .section,
  .ceo,
  .interview,
  .jobs,
  .reasons,
  .workstyle,
  .recruit,
  .entry-cta,
  .popular-sec,
  .know,
  .matching,
  .photo-gallery {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .mv {
    padding: 72px 0 88px;
  }

  .mv-headline h1,
  .entry-cta h2 {
    font-size: 36px;
    line-height: 1.5;
  }

  .section-title h2,
  .matching-intro h2,
  .photo-gallery .gallery-head h2 {
    font-size: 28px;
    line-height: 1.55;
  }

  .interview-grid,
  .recruit-cards,
  .reasons-grid,
  .know-body,
  .know-stats,
  .page-links.inline-grid,
  .page-links.cols-4,
  .ws-stats {
    grid-template-columns: 1fr;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .job-row:hover {
    padding-left: 0;
  }

  .job-row .j-desc,
  .job-row .j-tags {
    grid-column: auto;
  }

  .job-row .j-arrow {
    justify-self: start;
  }

  .page-links.inline-grid .page-link,
  .page-links.inline-grid .page-link:hover {
    min-height: 0;
    padding: 24px 20px;
  }

  .workstyle-feature::after,
  .group-photo::after,
  .interview-card .photo::after {
    max-width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .photo-gallery .gallery-head {
    display: grid;
    gap: 20px;
    margin-bottom: 36px;
  }

  .gallery-track-wrap {
    padding-left: var(--pad-x);
  }

  .gallery-slide,
  .gallery-slide.wide {
    width: min(82vw, 360px);
    height: 280px;
  }

  .gallery-slide.tall {
    height: 320px;
  }

  .gallery-slide .ph-caption {
    max-width: calc(100% - 24px);
  }

  .rs-cta {
    padding-top: 88px;
    padding-bottom: 96px;
  }
}

@media (max-width: 667px) {
  :root {
    --pad-x: 22px;
  }

  .nav-toggle {
    grid-template-columns: 1fr;
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }

  .nav-toggle-lines {
    justify-self: center;
  }

  .mobile-fixed-entry {
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .mobile-fixed-entry .entry-btn {
    min-height: 56px;
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .entry-btn .arr {
    flex: 0 0 auto;
  }

  .mv-headline,
  .mv-top,
  .mv-bottom {
    padding-right: var(--pad-x);
    padding-left: var(--pad-x);
  }

  .mv-headline h1,
  .entry-cta h2 {
    font-size: 30px;
  }

  .entry-cta::before {
    font-size: 132px;
  }

  .popular-head .ph-kicker .ph-en,
  .section-label .en {
    font-size: 36px;
  }

  .reason-item,
  .know-card,
  .matching-card,
  .recruit-card,
  .ws-stat {
    padding: 30px 24px;
  }

  .footer-logo {
    margin-bottom: 34px;
  }
}

@media (max-width: 767px) {
  .fade-in,
  .fade-in.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
