:root {
  --background: #f6f6ef;
  --surface: #fff;
  --text: #171714;
  --muted: #5d5d57;
  --subtle: #66665f;
  --border: #d9d9ce;
  --accent: #a75c16;
  --active: #1f6b42;
  --ended: #62625c;
  --shadow: 0 14px 36px rgba(32, 31, 25, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(167, 92, 22, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--text);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(24, 24, 20, 0.08);
  background: rgba(246, 246, 239, 0.96);
}

.site-nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 58px 20px 48px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 span {
  display: inline-block;
  color: #d87400;
  white-space: nowrap;
}

.hero h1 + p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  text-wrap: pretty;
}

.location-trigger {
  min-height: 54px;
  margin-top: 30px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--text);
  box-shadow: 0 7px 18px rgba(23, 23, 20, 0.16);
  font-size: 18px;
  cursor: pointer;
}

.location-trigger strong {
  font-weight: 760;
}

.location-pin {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.location-pin::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  top: 5px;
  left: 5px;
  border-radius: 50%;
  background: currentColor;
}

.location-chevron {
  color: rgba(255, 255, 255, 0.62);
  font-size: 24px;
  line-height: 1;
  transform: rotate(90deg);
}

.content-shell,
.detail-shell,
.error-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.content-shell {
  padding: 34px 0 80px;
}

.content-shell > .filter-bar {
  display: none;
}

.filter-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(82vh, 720px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(23, 23, 20, 0.2);
}

.filter-dialog::backdrop {
  background: rgba(23, 23, 20, 0.38);
}

.filter-bar {
  padding: 24px;
  border: 0;
  background: var(--surface);
}

.dialog-header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dialog-header .eyebrow {
  margin-bottom: 3px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--background);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar select,
.location-button,
.primary-button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 15px;
}

.filter-bar select {
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.filter-bar select {
  padding-right: 34px;
}

.filter-bar select:disabled {
  color: var(--subtle);
  background: #eeeeE7;
}

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

.location-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
}

.location-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  font-weight: 700;
  text-decoration: none;
}

.location-button {
  gap: 7px;
  border: 0;
  color: var(--active);
  background: #edf6f0;
  cursor: pointer;
  white-space: nowrap;
}

.location-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-button {
  border: 1px solid var(--text);
  color: #fff;
  background: var(--text);
  cursor: pointer;
}

.location-feedback {
  margin: 5px 0 0;
  color: var(--subtle);
  font-size: 12px;
}

[data-hiring-filter] > div:nth-of-type(3),
[data-hiring-filter] > details {
  display: none;
}

.section-heading {
  display: none;
}

.notice-card {
  padding: 27px 2px;
  border-bottom: 1px solid var(--border);
}

.notice-card-main {
  position: relative;
  display: block;
  padding-right: 34px;
  text-decoration: none;
}

.notice-card-main::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--subtle);
  transform: rotate(45deg);
}

.notice-card-main:hover :is(h2, h3) {
  color: var(--accent);
}

.notice-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  min-height: 27px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--active);
  background: #e0ebe3;
  font-weight: 750;
}

.status.ended {
  color: var(--ended);
  background: #e5e5df;
}

.notice-card :is(h2, h3) {
  max-width: 880px;
  margin: 0;
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  transition: color 160ms ease;
  text-wrap: pretty;
}

.hospital-name,
.notice-excerpt {
  margin: 9px 0 0;
  color: var(--muted);
}

.hospital-name {
  font-weight: 680;
}

.notice-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--subtle);
  font-size: 13px;
}

.notice-meta strong,
.deadline-text {
  color: var(--text);
  font-weight: 700;
}

.pagination {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination a {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 680;
  text-decoration: none;
}

.pagination a[aria-current="page"] {
  border-color: var(--text);
  color: #fff;
  background: var(--text);
}

.empty-state {
  padding: 76px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state :is(h2, h3) {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 23px;
}

.empty-state p {
  margin: 0 0 20px;
}

.empty-state a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.source-note {
  margin-top: 62px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.source-note h2 {
  margin: 0;
  font-size: 18px;
}

.source-note p {
  max-width: 850px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-shell {
  padding: 38px 0 88px;
}

.breadcrumbs {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.detail-header {
  padding: 27px 0 31px;
  border-bottom: 1px solid var(--border);
}

.detail-header h1 {
  max-width: 920px;
  margin: 15px 0 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.detail-hospital {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 680;
}

.detail-meta {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--border);
}

.detail-meta div {
  min-height: 84px;
  padding: 15px;
  background: var(--surface);
}

.detail-meta dt {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 650;
}

.detail-meta dd {
  margin: 5px 0 0;
  font-weight: 720;
}

.detail-meta .deadline dd {
  color: var(--accent);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(220px, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 44px;
}

.detail-body {
  font-size: 17px;
  line-height: 1.82;
}

.detail-body h2,
.attachments h2 {
  margin: 38px 0 14px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.detail-body ul,
.detail-body ol {
  margin: 0 0 22px;
  padding-left: 1.5em;
}

.detail-body li + li {
  margin-top: 6px;
}

.notice-image {
  margin: 26px 0;
}

.notice-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.detail-source {
  position: sticky;
  top: 94px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.detail-source h2 {
  margin: 0;
  font-size: 17px;
}

.detail-source p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-source dl {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.detail-source dt {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 650;
}

.detail-source dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 680;
}

.attachments {
  margin-top: 40px;
}

.attachments ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.attachments li {
  border-bottom: 1px solid var(--border);
}

.attachments a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 650;
  text-decoration: none;
}

.attachments a span {
  color: var(--muted);
  font-size: 13px;
}

.error-shell {
  min-height: 60vh;
  padding: 96px 0;
  text-align: center;
}

.error-shell h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
}

.error-shell > p:not(.eyebrow) {
  margin: 14px 0 24px;
  color: var(--muted);
}

footer {
  min-height: 160px;
  padding: 44px max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}

@media (max-width: 820px) {
  .location-filter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .location-filter .location-button,
  .location-filter .primary-button {
    width: 100%;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .detail-source {
    position: static;
  }
}

@media (max-width: 600px) {
  .site-nav {
    width: min(100% - 28px, 1120px);
    min-height: 64px;
    gap: 14px;
  }

  .brand span,
  .nav-links a:nth-child(2) {
    display: none;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    padding: 39px 18px 35px;
  }

  .hero h1 {
    font-size: 37px;
    line-height: 1.18;
  }

  .hero h1 + p {
    margin-top: 14px;
    font-size: 15px;
  }

  .location-trigger {
    min-height: 50px;
    margin-top: 24px;
    font-size: 16px;
  }

  .content-shell,
  .detail-shell,
  .error-shell {
    width: min(100% - 28px, 1040px);
  }

  .content-shell {
    padding-top: 28px;
  }

  .filter-dialog {
    width: 100%;
    max-height: 84vh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }

  .filter-bar {
    padding: 20px 14px max(20px, env(safe-area-inset-bottom));
  }

  .location-feedback {
    margin-left: 0;
  }

  .notice-card {
    padding: 23px 0;
  }

  .notice-card-main {
    padding-right: 24px;
  }

  .notice-card-main::after {
    right: 3px;
  }

  .notice-card :is(h2, h3) {
    font-size: 20px;
  }

  .pagination {
    justify-content: flex-start;
  }

  .detail-shell {
    padding-top: 18px;
  }

  .detail-header {
    padding-top: 19px;
  }

  .detail-header h1 {
    font-size: 32px;
  }

  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta .location {
    grid-column: 1 / -1;
  }

  .detail-meta .deadline {
    grid-column: 1 / -1;
  }

  .detail-meta div {
    min-height: 80px;
  }

  .article-layout {
    margin-top: 34px;
  }

  .detail-body {
    font-size: 16px;
  }

  footer {
    min-height: auto;
    padding: 34px 20px;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
