/* ============================================================
   Keepleai 求人ポータル — 共通デザインシステム
   styles.css  v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600;1,9..144,700&family=Zen+Old+Mincho:wght@700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --navy:        #0b1f33;
  --navy2:       #132d47;
  --off:         #faf8f4;
  --cream:       #f5f0e8;
  --ink:         #1a2230;
  --orange:      #ea580c;
  --orange-br:   #f97316;
  --orange-lt:   #fb923c;
  --orange-dp:   #c2410c;
  --orange-tint: #fff4ec;
  --line:        rgba(15,30,45,.10);
  --line-light:  rgba(255,255,255,.10);

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-jp:      'Zen Old Mincho', serif;
  --font-body:    'Noto Sans JP', sans-serif;

  /* Spacing scale */
  --sp-xs: .375rem;
  --sp-sm: .75rem;
  --sp-md: 1.25rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;
  --sp-2xl: 5rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-card: 0 2px 16px rgba(11,31,51,.08);
  --shadow-hover: 0 8px 32px rgba(11,31,51,.14);
  --shadow-orange: 0 4px 20px rgba(234,88,12,.25);

  /* Layout */
  --max-w: 1100px;
  --header-h: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--off);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.f-fraunces { font-family: var(--font-display); font-optical-sizing: auto; }
.f-zen      { font-family: var(--font-jp); line-break: strict; text-wrap: balance; }
.f-noto     { font-family: var(--font-body); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section-pad { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem); }

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

/* ============================================================
   SECTION HEADER PATTERNS
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .625rem;
}
.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  line-break: strict;
  text-wrap: balance;
  color: var(--navy);
}
.section-title--light { color: #fff; }
.section-head {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-head--center { text-align: center; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.76,0,.24,1), transform .75s cubic-bezier(.76,0,.24,1);
}
.reveal.in-view { opacity: 1; transform: none; }

.reveal-mask { overflow: hidden; }
.reveal-mask .reveal-inner {
  transform: translateY(100%);
  transition: transform .8s cubic-bezier(.76,0,.24,1);
}
.reveal-mask.in-view .reveal-inner { transform: translateY(0); }

.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }
.stagger-5 { transition-delay: .5s; }
.stagger-6 { transition-delay: .6s; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
/* dark-bg pages: header always solid */
.site-header--solid {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.header-logo {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 1.375rem;
  color: #fff;
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: .25em;
  flex-shrink: 0;
}
.header-logo__dot {
  width: 6px; height: 6px;
  background: var(--orange-br);
  border-radius: 50%;
  margin-bottom: .1em;
  align-self: center;
}

.header-nav {
  display: flex; align-items: center;
  gap: clamp(.5rem, 1.5vw, 1.75rem);
}
.header-nav__link {
  font-size: .8125rem;
  color: rgba(255,255,255,.72);
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s;
  white-space: nowrap;
}
.header-nav__link:hover { color: #fff; }

.header-actions {
  display: flex; align-items: center; gap: .625rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 26px;
  background: none; border: none; cursor: pointer;
  padding: 2px;
}
.hamburger span {
  display: block; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 199;
  background: var(--navy);
  padding: 1.25rem clamp(1.25rem,4vw,2.5rem) 2rem;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.76,0,.24,1);
  border-top: 1px solid rgba(255,255,255,.06);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__link {
  display: block;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__actions {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .header-actions .btn-header { display: none; }
  .header-actions .btn-header--compact { display: inline-flex; }
}
@media (min-width: 901px) {
  .header-actions .btn-header--compact { display: none; }
}

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

/* Primary — orange fill */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7rem 1.625rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--orange-dp);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}
.btn-primary:active { transform: translateY(0); }

/* Primary large */
.btn-primary--lg {
  padding: .9rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--r-md);
}

/* Primary small */
.btn-primary--sm {
  padding: .45rem 1rem;
  font-size: .8125rem;
  border-radius: var(--r-sm);
}

/* Outline */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7rem 1.625rem;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--orange-tint); }

/* Outline on dark bg */
.btn-outline--light {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline--light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Ghost */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7rem 1.625rem;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  letter-spacing: .03em;
  white-space: nowrap;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  background: none;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Header button */
.btn-header {
  display: inline-flex; align-items: center;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--orange-br);
  border-radius: var(--r-sm);
  color: var(--orange-br);
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-header:hover { background: var(--orange-br); color: #fff; }

/* Header button solid (register) */
.btn-header--fill {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-header--fill:hover { background: var(--orange-dp); border-color: var(--orange-dp); color: #fff; }

/* Save / heart button */
.btn-save {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: rgba(11,31,51,.35);
  background: #fff;
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-save:hover,
.btn-save.is-saved {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-tint);
}

/* Text link arrow */
.btn-link {
  display: inline-flex; align-items: center; gap: .375rem;
  color: var(--orange);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: gap .2s;
}
.btn-link:hover { gap: .625rem; }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-field {
  display: flex; flex-direction: column; gap: .375rem;
}
.form-label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
}

.form-input,
.form-select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  background: #fff;
  border: 1.5px solid rgba(11,31,51,.15);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(11,31,51,.38); }
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}

/* Select wrapper (for custom arrow) */
.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(11,31,51,.45);
  pointer-events: none;
}
.form-select-wrap .form-select { padding-right: 2.5rem; }

/* Checkbox */
.form-check {
  display: flex; align-items: center; gap: .625rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--ink);
  user-select: none;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(11,31,51,.25);
  border-radius: 4px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
  position: relative;
}
.form-check input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute; top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* Range slider */
.form-range {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(11,31,51,.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(234,88,12,.4);
  cursor: pointer;
}

/* ============================================================
   HERO SEARCH FORM (index.html specific)
   ============================================================ */
.hero-search {
  background: rgba(255,255,255,.97);
  border-radius: var(--r-lg);
  padding: 1.375rem 1.5rem;
  box-shadow: 0 8px 40px rgba(11,31,51,.22);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}
.hero-search__field {
  display: flex; flex-direction: column; gap: .375rem;
}
.hero-search__label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(11,31,51,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-search__input {
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid rgba(11,31,51,.12);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search__input::placeholder { color: rgba(11,31,51,.38); }
.hero-search__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}
.hero-search__select-wrap {
  position: relative;
}
.hero-search__select-wrap::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(11,31,51,.4);
  pointer-events: none;
}
.hero-search__select {
  width: 100%; height: 48px;
  padding: 0 2.5rem 0 1rem;
  border: 1.5px solid rgba(11,31,51,.12);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s;
}
.hero-search__select:focus {
  outline: none;
  border-color: var(--orange);
}
.hero-search__btn {
  height: 48px;
  padding: 0 1.75rem;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; gap: .5em;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  letter-spacing: .03em;
}
.hero-search__btn:hover {
  background: var(--orange-dp);
  transform: translateY(-1px);
}

/* Popular keyword chips row */
.hero-keywords {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.hero-keywords__label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-search {
    grid-template-columns: 1fr;
    gap: .625rem;
    padding: 1.25rem;
  }
}

/* ============================================================
   KEYWORD / TAG CHIPS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center;
  padding: .3rem .875rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.chip:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
}

/* Chip on light background */
.chip--light {
  background: #fff;
  border-color: rgba(11,31,51,.14);
  color: var(--ink);
}
.chip--light:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Area chip */
.chip--area {
  background: var(--cream);
  border-color: rgba(11,31,51,.1);
  color: var(--ink);
  font-weight: 500;
}
.chip--area:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-tint);
}

/* Active chip */
.chip--active,
.chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ============================================================
   CONDITION / FEATURE TAGS (求人カード内)
   ============================================================ */
.tag {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}

/* 職種タグ */
.tag--cat {
  background: var(--orange-tint);
  color: var(--orange-dp);
  border: 1px solid rgba(234,88,12,.2);
}

/* 雇用形態タグ */
.tag--type {
  background: rgba(11,31,51,.07);
  color: var(--navy2);
  border: 1px solid rgba(11,31,51,.1);
}
.tag--type-seishain { background: #e8f0fe; color: #2a4d9e; border-color: #c5d4f8; }
.tag--type-keiyaku  { background: #f3f0ff; color: #4f3db5; border-color: #d9d1fb; }
.tag--type-part     { background: #f0faf4; color: #1a6b3a; border-color: #c0e8cc; }
.tag--type-haken    { background: #fff8e8; color: #7a5500; border-color: #f0d98c; }

/* こだわり条件タグ */
.tag--cond {
  background: var(--cream);
  color: rgba(11,31,51,.75);
  border: 1px solid rgba(11,31,51,.1);
}
.tag--cond:hover {
  background: var(--orange-tint);
  color: var(--orange-dp);
  border-color: rgba(234,88,12,.2);
}

/* NEW badge */
.tag--new {
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  padding: .15rem .5rem;
}

/* ============================================================
   CATEGORY TILES (職種カテゴリ)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: .625rem; } }
@media (max-width: 400px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: .625rem;
  padding: 1.375rem 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--ink);
}
.cat-tile:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cat-tile__icon {
  width: 44px; height: 44px;
  color: var(--orange);
  flex-shrink: 0;
}
.cat-tile__label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  word-break: auto-phrase;
}
.cat-tile__count {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -.01em;
}
.cat-tile__count-unit {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  color: rgba(11,31,51,.45);
  margin-left: .15em;
}

/* ============================================================
   JOB CARD — GRID variant (photo top, index.html)
   ============================================================ */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .job-grid { grid-template-columns: 1fr; } }

.job-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.job-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.job-card__photo-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.job-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.76,0,.24,1);
}
.job-card:hover .job-card__photo { transform: scale(1.04); }

.job-card__badges {
  position: absolute; top: .625rem; left: .625rem;
  display: flex; gap: .375rem; flex-wrap: wrap;
}
.job-card__save {
  position: absolute; top: .625rem; right: .625rem;
}

.job-card__body {
  padding: 1rem 1.125rem 1.125rem;
  display: flex; flex-direction: column; flex: 1;
  gap: .5rem;
}
.job-card__company {
  font-size: .75rem;
  color: rgba(11,31,51,.45);
  font-weight: 500;
}
.job-card__title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  word-break: auto-phrase;
}
.job-card__meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem;
  color: rgba(11,31,51,.5);
  flex-wrap: wrap;
}
.job-card__meta-sep { color: rgba(11,31,51,.2); }
.job-card__salary {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: auto;
  padding-top: .5rem;
}
.job-card__salary-unit {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(11,31,51,.45);
}
.job-card__tags {
  display: flex; gap: .375rem; flex-wrap: wrap;
}
.job-card__cta {
  margin-top: .625rem;
  display: block;
  text-align: center;
  padding: .55rem;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s;
}
.job-card__cta:hover { background: var(--orange-dp); }

/* ============================================================
   JOB CARD — LIST variant (photo left, list.html)
   ============================================================ */
.job-list-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .2s;
  position: relative;
}
.job-list-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.job-list-card__photo-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 180px;
}
.job-list-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.76,0,.24,1);
}
.job-list-card:hover .job-list-card__photo { transform: scale(1.04); }
.job-list-card__badges {
  position: absolute; top: .625rem; left: .625rem;
  display: flex; flex-direction: column; gap: .3rem;
}

.job-list-card__body {
  padding: 1.125rem 1.375rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.job-list-card__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
.job-list-card__title-area { flex: 1; }
.job-list-card__company {
  font-size: .75rem;
  color: rgba(11,31,51,.45);
  font-weight: 500;
  margin-bottom: .25rem;
}
.job-list-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  word-break: auto-phrase;
}
.job-list-card__actions {
  display: flex; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.job-list-card__meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem;
  color: rgba(11,31,51,.5);
  flex-wrap: wrap;
}
.job-list-card__salary {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
}
.job-list-card__salary-unit {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(11,31,51,.45);
}
.job-list-card__tags {
  display: flex; gap: .375rem; flex-wrap: wrap;
}
.job-list-card__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  align-self: flex-start;
  margin-top: auto;
  padding: .55rem 1.25rem;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s;
  white-space: nowrap;
}
.job-list-card__cta:hover { background: var(--orange-dp); }

@media (max-width: 680px) {
  .job-list-card {
    grid-template-columns: 1fr;
  }
  .job-list-card__photo-wrap {
    min-height: 200px;
    aspect-ratio: 16/7;
  }
}

/* Stack of list cards */
.job-list-stack {
  display: flex; flex-direction: column; gap: 1rem;
}

/* ============================================================
   LISTING PAGE CHROME
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .375rem; flex-wrap: wrap;
  font-size: .8125rem;
  color: rgba(11,31,51,.5);
  padding: .875rem 0;
}
.breadcrumb__sep {
  color: rgba(11,31,51,.25);
  display: flex; align-items: center;
}
.breadcrumb__link { color: rgba(11,31,51,.55); transition: color .2s; }
.breadcrumb__link:hover { color: var(--orange); }
.breadcrumb__current { color: var(--ink); font-weight: 500; }

/* Result count + sort row */
.result-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 0 1.125rem;
  border-bottom: 1.5px solid var(--line);
  flex-wrap: wrap;
}
.result-count {
  font-size: .9375rem;
  color: var(--ink);
  font-weight: 500;
}
.result-count__num {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -.02em;
}
.result-sort {
  display: flex; align-items: center; gap: .625rem;
  font-size: .8125rem;
  color: rgba(11,31,51,.55);
}
.result-sort__select {
  height: 36px;
  padding: 0 2rem 0 .75rem;
  border: 1.5px solid rgba(11,31,51,.15);
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%230b1f33' opacity='.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* Listing layout */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { display: none; }
  .listing-sidebar.drawer-open { display: block; }
}

/* Filter sidebar */
.listing-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
}
.sidebar-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: .875rem;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 1.125rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-title__reset {
  font-size: .75rem;
  font-weight: 500;
  color: var(--orange);
  cursor: pointer;
  transition: opacity .2s;
}
.sidebar-title__reset:hover { opacity: .75; }

.sidebar-section {
  margin-bottom: 1.375rem;
  padding-bottom: 1.375rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-section__label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
  letter-spacing: .03em;
}
.sidebar-checks {
  display: flex; flex-direction: column; gap: .5rem;
}
.sidebar-range-wrap {
  padding: .25rem 0;
}
.sidebar-range-label {
  display: flex; justify-content: space-between;
  font-size: .8125rem;
  color: rgba(11,31,51,.55);
  margin-bottom: .625rem;
}
.sidebar-range-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
}

/* Mobile filter trigger */
.filter-trigger {
  display: none;
}
@media (max-width: 960px) {
  .filter-trigger {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .6rem 1.25rem;
    background: var(--navy);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
  }
}

/* Filter drawer (mobile) */
.filter-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 300;
}
.filter-drawer.open { display: flex; }
.filter-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(11,31,51,.55);
  backdrop-filter: blur(4px);
}
.filter-drawer__panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--off);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem clamp(1rem,4vw,1.75rem) 2rem;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.76,0,.24,1);
}
.filter-drawer.open .filter-drawer__panel { transform: translateY(0); }
.filter-drawer__handle {
  width: 40px; height: 4px;
  background: rgba(11,31,51,.18);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}
.filter-drawer__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.375rem;
}
.filter-drawer__footer {
  display: flex; gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .375rem;
  padding: 2rem 0 .5rem;
}
.pagination__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1.5px solid rgba(11,31,51,.14);
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.pagination__btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.pagination__btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.pagination__btn--arrow {
  font-family: var(--font-body);
  font-size: .75rem;
  color: rgba(11,31,51,.5);
}
.pagination__ellipsis {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 40px;
  font-size: .875rem;
  color: rgba(11,31,51,.35);
}

/* ============================================================
   DETAIL PAGE COMPONENTS
   ============================================================ */

/* Detail header block */
.detail-header {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2rem;
}
.detail-header__tags {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: .875rem;
}
.detail-header__title {
  font-family: var(--font-jp);
  font-size: clamp(1.625rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-break: strict;
  text-wrap: balance;
  margin-bottom: .75rem;
}
.detail-header__company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}
.detail-header__meta {
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
  font-size: .875rem;
  color: rgba(11,31,51,.55);
  margin-bottom: 1rem;
}
.detail-header__meta-sep { color: rgba(11,31,51,.2); }
.detail-header__salary {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.detail-header__salary-label {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(11,31,51,.5);
  margin-left: .25em;
}
.detail-header__dates {
  font-size: .8125rem;
  color: rgba(11,31,51,.45);
  margin-top: .5rem;
}

/* Detail layout: main + sticky sidebar */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
}

/* Photo gallery */
.photo-gallery {
  margin-bottom: 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery-main {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: .75rem;
  cursor: pointer;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.76,0,.24,1);
}
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumbs {
  display: flex; gap: .625rem;
}
.gallery-thumb {
  width: 80px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s, box-shadow .2s;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.gallery-thumb.is-active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(234,88,12,.3);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky apply card */
.apply-card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.apply-card__salary {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: .25rem;
  letter-spacing: -.02em;
}
.apply-card__salary-note {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: rgba(11,31,51,.45);
  margin-bottom: 1.25rem;
}
.apply-card__main-cta {
  display: block;
  text-align: center;
  padding: .875rem;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
  margin-bottom: .75rem;
}
.apply-card__main-cta:hover {
  background: var(--orange-dp);
  transform: translateY(-1px);
}
.apply-card__ai-note {
  display: flex; align-items: flex-start; gap: .5rem;
  background: var(--orange-tint);
  border-radius: var(--r-sm);
  padding: .75rem;
  font-size: .8rem;
  color: var(--orange-dp);
  margin-bottom: .875rem;
  line-height: 1.55;
}
.apply-card__ai-note svg { flex-shrink: 0; margin-top: .1em; }
.apply-card__secondary {
  display: flex; gap: .625rem;
}
.apply-card__qr-note {
  text-align: center;
  font-size: .75rem;
  color: rgba(11,31,51,.4);
  margin-top: .75rem;
}
.apply-card__divider {
  margin: 1rem 0;
  border: none; border-top: 1px solid var(--line);
}
.apply-card__info-row {
  display: flex; align-items: flex-start; gap: .625rem;
  font-size: .8125rem;
  color: rgba(11,31,51,.6);
  padding: .35rem 0;
}
.apply-card__info-row svg { flex-shrink: 0; color: var(--orange); margin-top: .1em; }

/* Mobile sticky bottom apply bar */
.apply-bar-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-top: 1.5px solid var(--line);
  padding: .875rem clamp(1rem,4vw,1.5rem);
  box-shadow: 0 -4px 20px rgba(11,31,51,.1);
}
.apply-bar-mobile__inner {
  display: flex; align-items: center; gap: .75rem;
  max-width: var(--max-w); margin: 0 auto;
}
.apply-bar-mobile__salary {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.apply-bar-mobile__cta {
  flex: 1;
  display: block; text-align: center;
  padding: .75rem;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .9375rem;
  transition: background .2s;
}
.apply-bar-mobile__cta:hover { background: var(--orange-dp); }
@media (max-width: 960px) {
  .apply-bar-mobile { display: block; }
  .apply-card { display: none; }
}

/* Detail section */
.detail-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.detail-section:last-child { border-bottom: none; }
.detail-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5em;
  padding-left: .75rem;
  border-left: 3px solid var(--orange);
}
.detail-section__body {
  font-size: .9375rem;
  color: rgba(11,31,51,.78);
  line-height: 1.85;
  word-break: auto-phrase;
}

/* Conditions table */
.cond-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.cond-table th,
.cond-table td {
  text-align: left;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}
.cond-table th {
  width: 30%;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream);
  white-space: nowrap;
}
.cond-table td { color: rgba(11,31,51,.78); }
.cond-table tr:last-child th,
.cond-table tr:last-child td { border-bottom: none; }
@media (max-width: 560px) {
  .cond-table, .cond-table tbody, .cond-table tr,
  .cond-table th, .cond-table td { display: block; width: 100%; }
  .cond-table th { background: none; font-size: .8rem; color: var(--orange); padding-bottom: .25rem; border-bottom: none; }
  .cond-table td { padding-top: 0; }
}

/* Map placeholder */
.map-placeholder {
  width: 100%; height: 200px;
  background: var(--cream);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(11,31,51,.35);
  font-size: .875rem;
  border: 1.5px solid var(--line);
  margin-top: .875rem;
}

/* 応募の流れ — step flow */
.apply-flow {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: nowrap;
  position: relative;
}
.apply-flow::before {
  content: '';
  position: absolute;
  top: 2rem; left: calc(12.5% + 1rem); right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-lt) 100%);
  opacity: .3;
}
.apply-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 .5rem;
  position: relative; z-index: 1;
}
.apply-step__num {
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 2px solid rgba(234,88,12,.25);
  border-radius: 50%;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: .75rem;
  transition: border-color .25s, background .25s;
}
.apply-step.is-highlight .apply-step__num {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.apply-step__title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
  line-break: strict;
}
.apply-step__note {
  font-size: .75rem;
  color: var(--orange);
  font-weight: 500;
  letter-spacing: .03em;
}
@media (max-width: 560px) {
  .apply-flow { flex-direction: column; gap: 1rem; }
  .apply-flow::before { display: none; }
  .apply-step { flex-direction: row; align-items: center; text-align: left; gap: 1rem; padding: 0; }
  .apply-step__num { flex-shrink: 0; }
}

/* Company info box */
.company-box {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1.5px solid rgba(11,31,51,.08);
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.company-box__icon {
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  flex-shrink: 0;
}
.company-box__body { flex: 1; }
.company-box__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.company-box__desc {
  font-size: .875rem;
  color: rgba(11,31,51,.65);
  line-height: 1.7;
}

/* Related jobs row */
.related-jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .related-jobs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .related-jobs { grid-template-columns: 1fr; } }

/* ============================================================
   AI INTERVIEW BANNER
   ============================================================ */
.ai-banner {
  background: var(--navy);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem clamp(1.5rem,5vw,3.5rem);
  position: relative;
}
.ai-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,31,51,.0) 0%, rgba(234,88,12,.15) 100%);
  pointer-events: none;
}
.ai-banner__text { position: relative; z-index: 1; }
.ai-banner__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-br);
  margin-bottom: .625rem;
}
.ai-banner__title {
  font-family: var(--font-jp);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  line-break: strict;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.ai-banner__features {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ai-banner__feat {
  display: flex; align-items: center; gap: .375em;
  font-size: .875rem;
  color: rgba(255,255,255,.78);
  font-weight: 500;
}
.ai-banner__feat svg { color: var(--orange-br); flex-shrink: 0; }
.ai-banner__visual {
  position: relative; z-index: 1;
  width: 200px; flex-shrink: 0;
}
.ai-banner__visual img {
  width: 100%; border-radius: var(--r-md);
  opacity: .9;
}
@media (max-width: 720px) {
  .ai-banner { grid-template-columns: 1fr; }
  .ai-banner__visual { display: none; }
}

/* ============================================================
   PORTAL HERO SECTION (index.html)
   ============================================================ */
.portal-hero {
  position: relative;
  min-height: 600px;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.portal-hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.portal-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.portal-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,31,51,.82) 0%,
    rgba(11,31,51,.60) 55%,
    rgba(234,88,12,.35) 100%
  );
}
.portal-hero__inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem,7vw,5.5rem) clamp(1.25rem,4vw,2.5rem);
  width: 100%;
}
.portal-hero__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-br);
  margin-bottom: .75rem;
}
.portal-hero__title {
  font-family: var(--font-jp);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-break: strict;
  text-wrap: balance;
  margin-bottom: .875rem;
  line-height: 1.3;
  max-width: 640px;
}
.portal-hero__sub {
  font-size: clamp(.9rem, 1.4vw, 1.0625rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.75;
  word-break: auto-phrase;
}

/* ============================================================
   AREA CHIPS SECTION
   ============================================================ */
.area-section {
  background: var(--cream);
  padding: clamp(2.5rem,5vw,4.5rem) clamp(1.25rem,4vw,2.5rem);
}
.area-chips {
  display: flex; gap: .625rem; flex-wrap: wrap;
}

/* ============================================================
   GENERAL SECTION WRAPPERS
   ============================================================ */
.section-white  { background: #fff; }
.section-off    { background: var(--off); }
.section-cream  { background: var(--cream); }
.section-navy   { background: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 3rem clamp(1.25rem,4vw,3rem) 2rem;
  max-width: calc(var(--max-w) + 5rem);
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 1.375rem;
  color: rgba(255,255,255,.9);
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: .25em;
  margin-bottom: .625rem;
}
.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-nav-col__title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}
.footer-nav-col__links {
  display: flex; flex-direction: column; gap: .5rem;
}
.footer-nav-col__link {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-nav-col__link:hover { color: rgba(255,255,255,.9); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem clamp(1.25rem,4vw,3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: calc(var(--max-w) + 5rem); margin: 0 auto;
}
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .02em;
}
.footer-legal {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.footer-legal__link {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.footer-legal__link:hover { color: rgba(255,255,255,.65); }
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-nav-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SIMPLE SEARCH BAR (list.html top)
   ============================================================ */
.search-bar {
  background: var(--navy2);
  padding: 1rem clamp(1.25rem,4vw,2.5rem);
}
.search-bar__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.search-bar__input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-bar__input {
  width: 100%; height: 44px;
  padding: 0 1rem 0 2.75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  color: #fff; font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color .2s, background .2s;
}
.search-bar__input::placeholder { color: rgba(255,255,255,.38); }
.search-bar__input:focus {
  outline: none; border-color: var(--orange-br);
  background: rgba(255,255,255,.12);
}
.search-bar__icon {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.45); pointer-events: none;
}
.search-bar__select-wrap {
  position: relative; width: 160px;
}
.search-bar__select-wrap::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.45);
  pointer-events: none;
}
.search-bar__select {
  width: 100%; height: 44px;
  padding: 0 2rem 0 .875rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.8);
  font-size: .875rem; font-family: var(--font-body);
  appearance: none; -webkit-appearance: none;
}
.search-bar__select:focus { outline: none; border-color: var(--orange-br); }

/* Active tags row */
.active-tags {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .625rem 0;
}
.active-tag {
  display: inline-flex; align-items: center; gap: .375em;
  padding: .25rem .75rem;
  background: var(--orange-tint);
  border: 1px solid rgba(234,88,12,.25);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--orange-dp);
  cursor: pointer;
  transition: background .2s;
}
.active-tag:hover { background: rgba(234,88,12,.18); }
.active-tag__remove { display: flex; align-items: center; opacity: .7; }

/* ============================================================
   BACK-TO-TOP + MISC UTILITY
   ============================================================ */
.back-to-top {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 50%;
  color: #fff;
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  box-shadow: var(--shadow-orange);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  border: none; cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

/* Divider */
.divider {
  width: 48px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: .875rem 0 1.5rem;
}
.divider--center { margin: .875rem auto 1.5rem; }

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-mask .reveal-inner {
    opacity: 1; transform: none; transition: none;
  }
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .apply-flow { flex-direction: column; }
}
@media (max-width: 375px) {
  :root { font-size: 15px; }
  .hero-search { padding: 1rem; gap: .5rem; }
  .portal-hero__title { font-size: 1.625rem; }
}
