:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-subtle: #eef3f1;
  --ink: #111714;
  --muted: #5f6f69;
  --line: #d7dfdc;
  --accent: #106d5c;
  --accent-strong: #084a3f;
  --accent-soft: #dff0ea;
  --warning: #8a5a00;
  --shadow: 0 14px 45px rgba(13, 30, 25, 0.1);
  font-family:
    Inter,
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 800;
}

.lead-copy {
  margin: 22px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.summary {
  min-width: 164px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary span:first-child {
  display: block;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.summary span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(0, 2fr);
  gap: 18px;
  margin: 28px 0 18px;
}

.search,
.filter-group label {
  display: grid;
  gap: 8px;
}

.search span,
.filter-group span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(16, 109, 92, 0.22);
  outline-offset: 2px;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.result-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.talent-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-top {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 66px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 109, 92, 0.95), rgba(8, 74, 63, 0.7)),
    var(--accent);
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.candidate-id {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.masked-role,
.position,
.strength,
.section-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.position {
  color: var(--accent-strong);
  font-weight: 700;
}

.strength {
  color: var(--ink);
  font-size: 15px;
}

.section-block {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section-block h3 {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.owner-line {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.terms {
  display: grid;
  gap: 4px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
}

.terms strong {
  color: var(--ink);
}

.copy-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.empty {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .lead,
  .controls,
  .talent-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .card-top {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .avatar {
    width: 52px;
  }

  .result-meta,
  .card-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
