:root {
  --brand-navy: #07328b;
  --brand-blue: #0b5cab;
  --brand-cyan: #00a9b8;
  --brand-cyan-dark: #007f8b;
  --ink: #1d2939;
  --muted: #667085;
  --line: #d8dee8;
  --soft-blue: #eef6fb;
  --soft-cyan: #e8f8f9;
  --surface: #ffffff;
  --background: #f4f7fa;
  --action: #e84c4c;
  --action-dark: #c93737;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

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

.utility-bar {
  color: #fff;
  background: var(--brand-navy);
  font-size: 12px;
}

.utility-bar__inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar p {
  margin: 0;
}

.utility-bar a {
  text-decoration: none;
}

.brand-row {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.brand img {
  display: block;
  width: min(250px, 56vw);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}

.header-actions a {
  text-decoration: none;
}

.header-actions__primary {
  padding: 10px 20px;
  color: #fff;
  background: var(--brand-cyan-dark);
  border-radius: 4px;
}

.breadcrumb {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border-top: 1px solid #edf0f4;
  font-size: 12px;
}

.breadcrumb a {
  color: var(--brand-blue);
}

.site-header {
  background: var(--surface);
}

.page-heading {
  position: relative;
  overflow: hidden;
  padding: 30px 0 32px;
  color: #fff;
  background: var(--brand-cyan-dark);
}

.page-heading::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  content: "";
  background: var(--brand-navy);
  opacity: 0.12;
  transform: skewX(-16deg) translateX(12%);
  transform-origin: bottom;
}

.page-heading .container {
  position: relative;
  z-index: 1;
}

.page-heading__eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
}

.page-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
}

.page-heading p:last-child {
  margin: 8px 0 0;
  font-size: 14px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 30px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 72px;
}

.line-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-cyan);
}

.line-promo h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.line-promo p {
  margin: 0;
  color: #475467;
  font-size: 13px;
}

.line-promo__action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.line-promo__action img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.line-promo__action a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  color: #fff;
  background: #06c755;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.results {
  min-width: 0;
}

.active-filters {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-cyan);
}

.active-filters__label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chips span {
  padding: 3px 10px;
  color: var(--brand-navy);
  background: var(--soft-blue);
  border: 1px solid #cfe0ef;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.text-button {
  flex: 0 0 auto;
  padding: 0;
  color: var(--brand-blue);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 12px;
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 14px;
}

.results-toolbar h2 {
  margin: 0;
  font-size: 18px;
}

.results-toolbar h2 strong {
  margin-right: 3px;
  color: var(--brand-cyan-dark);
  font-size: 32px;
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.sort-control select,
.search-form select,
.search-form input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 11px;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #bfc8d5;
  border-radius: 3px;
}

.sort-control select {
  width: 146px;
  min-height: 38px;
}

.job-list {
  display: grid;
  gap: 18px;
}

.job-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #cbd3de;
  border-top: 4px solid var(--brand-cyan);
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(16, 44, 77, 0.06);
}

.job-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.job-card__office {
  margin: 0 0 3px;
  color: var(--brand-cyan-dark);
  font-size: 12px;
  font-weight: 700;
}

.job-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.job-card h3 a {
  text-decoration: none;
}

.job-card h3 a:hover {
  text-decoration: underline;
}

.job-card__id {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.job-card__body {
  padding: 18px 22px;
}

.job-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.job-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.job-facts dt,
.job-facts dd {
  margin: 0;
  padding: 10px 12px;
}

.job-facts dt {
  display: flex;
  align-items: center;
  color: #44546a;
  background: #edf1f5;
  font-size: 12px;
  font-weight: 700;
}

.job-facts dd {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.job-facts__salary dd strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.job-tags li {
  padding: 4px 9px;
  color: var(--brand-cyan-dark);
  background: var(--soft-cyan);
  border: 1px solid #b7e3e7;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.job-card__description {
  margin: 14px 0 0;
  color: #475467;
  font-size: 14px;
}

.job-card__footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  background: #fafbfd;
  border-top: 1px solid var(--line);
}

.job-card__footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.job-card__footer p a {
  margin-left: 6px;
  color: var(--brand-navy);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.job-card__actions {
  display: flex;
  gap: 8px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.button--secondary {
  color: var(--brand-navy);
  background: #fff;
  border-color: var(--brand-navy);
}

.button--primary,
.button--search {
  color: #fff;
  background: var(--action);
  border-color: var(--action);
}

.button--primary:hover,
.button--search:hover {
  background: var(--action-dark);
  border-color: var(--action-dark);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.pagination a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}

.pagination .pagination__current {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.pagination--top {
  margin-top: 0;
}

.filter-sidebar {
  min-width: 0;
}

.filter-panel {
  background: #fff;
  border: 1px solid #cbd3de;
  border-radius: 6px;
}

.filter-panel > summary {
  display: none;
}

.search-form {
  padding: 20px;
}

.search-form__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}

.search-form__header p {
  margin: 0;
  color: var(--brand-cyan-dark);
  font-size: 10px;
  font-weight: 800;
}

.search-form__header h2 {
  margin: 0;
  font-size: 20px;
}

.search-form fieldset {
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.search-form legend {
  width: 100%;
  margin-bottom: 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.search-form label {
  display: block;
  margin: 7px 0;
  color: #475467;
  font-size: 13px;
  cursor: pointer;
}

.search-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 7px 0 0;
  accent-color: var(--brand-cyan-dark);
  vertical-align: -3px;
}

.search-form__note {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.search-form__group {
  margin: 12px 0 5px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.select-stack {
  display: grid;
  gap: 8px;
}

.shift-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
}

.button--search {
  width: 100%;
  justify-content: center;
  margin-top: 5px;
  cursor: pointer;
  font-size: 14px;
}

.button--search span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.contact-box {
  margin-top: 16px;
  padding: 18px;
  color: #fff;
  background: var(--brand-navy);
  border-radius: 6px;
  text-align: center;
}

.contact-box__label,
.contact-box p:last-child {
  margin: 0;
  font-size: 11px;
}

.contact-box > a {
  display: block;
  margin: 2px 0;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 38px 0;
  color: #dce4f3;
  background: #052469;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 40px;
}

.site-footer img {
  width: 200px;
  padding: 8px;
  background: #fff;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 13px;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: #aebcda;
  font-size: 11px;
}

@media (max-width: 959px) {
  .page-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 24px;
  }

  .filter-sidebar {
    width: 100%;
    order: -1;
  }

  .filter-panel > summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    color: #fff;
    background: var(--brand-navy);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }

  .filter-panel > summary::-webkit-details-marker {
    display: none;
  }

  .filter-panel__count {
    min-width: 62px;
    padding: 3px 10px;
    background: var(--brand-cyan-dark);
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
  }

  .contact-box {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .utility-bar__inner {
    min-height: 28px;
    justify-content: center;
  }

  .utility-bar a,
  .header-actions > a:first-child {
    display: none;
  }

  .brand-row {
    min-height: 70px;
    gap: 12px;
  }

  .brand img {
    width: min(205px, 55vw);
  }

  .header-actions {
    gap: 0;
    font-size: 12px;
  }

  .header-actions__primary {
    padding: 8px 10px;
  }

  .breadcrumb {
    min-height: 36px;
    white-space: nowrap;
    overflow: hidden;
  }

  .page-heading {
    padding: 24px 0 25px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-heading p:last-child {
    font-size: 12px;
  }

  .line-promo {
    align-items: flex-start;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
  }

  .line-promo h2 {
    font-size: 15px;
  }

  .line-promo p {
    font-size: 11px;
  }

  .line-promo__action {
    display: block;
    text-align: center;
  }

  .line-promo__action img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 7px;
  }

  .line-promo__action a {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .active-filters {
    align-items: flex-start;
    padding: 13px;
  }

  .results-toolbar {
    align-items: center;
    padding-top: 20px;
  }

  .pagination--top {
    display: none;
  }

  .results-toolbar h2 {
    font-size: 15px;
  }

  .results-toolbar h2 strong {
    font-size: 27px;
  }

  .sort-control > span {
    display: none;
  }

  .sort-control select {
    width: 128px;
  }

  .job-card__heading {
    display: block;
    padding: 15px;
  }

  .job-card h3 {
    font-size: 17px;
  }

  .job-card__id {
    display: block;
    margin-top: 6px;
  }

  .job-card__body {
    padding: 14px;
  }

  .job-facts {
    grid-template-columns: 1fr;
  }

  .job-facts > div {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .job-facts__salary dd strong {
    font-size: 17px;
  }

  .job-card__description {
    font-size: 13px;
  }

  .job-card__footer {
    display: block;
    padding: 13px 14px 14px;
  }

  .job-card__footer p {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 11px;
  }

  .job-card__footer p a {
    font-size: 16px;
  }

  .job-card__actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
  }

  .button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .search-form {
    padding: 16px;
  }

  .site-footer {
    padding: 28px 0;
  }

  .site-footer__inner {
    display: block;
    text-align: center;
  }

  .site-footer img {
    width: 180px;
  }

  .site-footer nav {
    justify-content: center;
    margin: 20px 0;
    gap: 18px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
