@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800;900&display=swap');

:root {
  --ink: #222831;
  --muted: #6b7280;
  --border: #e5ece6;
  --bg: #f5faf6;
  --surface: #ffffff;
  --navy: #0ea968;
  --navy-dark: #067a4a;
  --navy-light: #e6f7ee;
  --cta: #ff7a1a;
  --cta-dark: #e8650a;
  --gold: #ffb400;
  --green: #0ea968;
  --page-accent: var(--navy);
  --page-accent-light: var(--navy-light);
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 24, 55, .07);
  --shadow-lg: 0 10px 28px rgba(16, 24, 55, .14);
}

/* per-category accent */
body.theme-jobchange { --page-accent: #0ea968; --page-accent-light: #e6f7ee; }
body.theme-haken     { --page-accent: #11957a; --page-accent-light: #e6f8f3; }
body.theme-parttime  { --page-accent: #f07d12; --page-accent-light: #fef1e3; }
body.theme-freelance { --page-accent: #c23a95; --page-accent-light: #fdedf8; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body > main,
body > .hero {
  flex: 1 0 auto;
  width: 100%;
}
.site-footer { flex: none; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(16,24,55,.04);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      var(--navy) 0,
      var(--navy) 2px,
      var(--navy-light) 2px,
      var(--navy-light) 4.5px
    );
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  min-width: 120px;
  text-align: center;
}
.main-nav a:hover { background: var(--bg); }
.main-nav a.is-current {
  color: #fff;
  background: var(--page-accent);
}

/* ---------- hero (top page) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, #4ddb9e);
  color: #fff;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.55;
}
.hero-sub {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
}

.hero-inner--split {
  max-width: 1100px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 24px;
}
.hero-text { text-align: center; }
.hero-art { width: 100%; max-width: 320px; }
.hero-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 760px) {
  .hero-inner--split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 32px;
  }
  .hero-text { text-align: left; flex: 1 1 420px; }
  .hero-art { flex: 1 1 360px; max-width: 420px; }
}

/* ---------- page-hero (category pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--page-accent) 65%);
  color: #fff;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 32px 36px;
}
.page-hero .eyebrow {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.35);
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 900;
}
.page-hero-inner > h1 + p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
}

/* ---------- journey stepper: segmented progress bar ---------- */
.journey-nav {
  display: flex;
  margin: 24px 0 0;
  border-radius: 999px;
  overflow-x: auto;
  background: rgba(255,255,255,.12);
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}
.journey-step {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  background: none;
  border: none;
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 9px 16px;
  white-space: nowrap;
}
.journey-step .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
}
.journey-step .step-label {
  font-size: .78rem;
  font-weight: 700;
}
.journey-step.is-active {
  background: #fff;
  color: var(--page-accent);
}
.journey-step.is-active .step-num {
  background: var(--page-accent);
  color: #fff;
}
.journey-connector { display: none; }

.journey-progress {
  margin: 14px 2px 0;
  font-size: .76rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}

/* ---------- main / section titles ---------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}
section[id] { scroll-margin-top: 90px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, var(--page-accent), color-mix(in srgb, var(--page-accent) 65%, #16c47f));
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 24px;
}
.section-title::before { content: "▶"; font-size: .7rem; }

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.article h3 {
  font-size: 1.12rem;
  font-weight: 900;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--page-accent);
  color: var(--page-accent);
}
.article p { margin: 0 0 12px; }
.article ul { margin: 0 0 12px; padding: 0; list-style: none; }
.article li {
  position: relative;
  padding: 0 0 10px 26px;
  font-size: .9rem;
}
.article li:last-child { padding-bottom: 0; }
.article li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .64rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- sub-step ---------- */
.substep { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px dashed var(--border); }
.substep:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.substep h3 {
  display: flex;
  align-items: center;
  color: var(--page-accent);
}
.substep h3 .substep-no {
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: var(--page-accent);
  padding: 3px 9px;
  border-radius: 6px;
  margin-right: 10px;
}
.stage-sub {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.stage-sub h4 { margin: 0 0 10px; font-size: .92rem; font-weight: 800; color: var(--page-accent); }
.analysis-heading { margin: 16px 0 8px; font-size: .92rem; font-weight: 800; color: var(--page-accent); }
.analysis-heading:first-of-type { margin-top: 10px; }

.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .86rem;
  line-height: 1.7;
}
.source-list li::before { content: none; }
.source-list li:last-child { border-bottom: none; }
.source-list a {
  font-weight: 800;
  color: var(--page-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.source-list a:hover { color: var(--page-accent-dark, var(--page-accent)); }
.price-flag {
  display: inline-block;
  width: 58px;
  flex: none;
  box-sizing: border-box;
  text-align: center;
  font-size: .64rem;
  font-weight: 800;
  padding: 3px 0;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
  color: #fff;
}
.price-flag--free { background: var(--green); }
.price-flag--paid { background: var(--cta); }
.price-flag--mixed { background: var(--gold); color: #3a2a00; }

/* ---------- compare table ---------- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare-table-wrap:has(.worksheet-table) {
  border-radius: 6px;
}
.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .86rem;
  background: var(--surface);
}
.compare-table--equal { table-layout: fixed; }
.compare-table--equal th, .compare-table--equal td { width: 28%; }
.compare-table--equal th:first-child, .compare-table--equal td:first-child { width: 16%; }
.compare-table--equal tbody td { height: 72px; }
.compare-table.compare-table--equal th,
.compare-table.compare-table--equal td { text-align: center; }
.compare-table th, .compare-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--page-accent-light);
  color: var(--page-accent);
  font-weight: 700;
  font-size: .76rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--page-accent);
}
.compare-table tbody tr:nth-child(even) { background: var(--bg); }
.compare-table td:first-child { font-weight: 800; }
.compare-table td:nth-child(2) { color: var(--page-accent); font-weight: 700; font-size: .8rem; }
.compare-note { margin: 10px 2px 0; color: var(--muted); font-size: .78rem; }
.cell-pending { color: var(--muted); font-style: italic; font-weight: 400; }
.worksheet-table td:nth-child(2) { color: var(--ink); font-weight: 400; font-size: .86rem; }
.worksheet-table th:nth-child(2), .worksheet-table th:nth-child(4), .worksheet-table th:nth-child(5) { white-space: normal; }
.worksheet-table th { text-align: center; }
.worksheet-table {
  table-layout: fixed;
  min-width: 920px;
}
.worksheet-table th:nth-child(1), .worksheet-table td:nth-child(1) { width: 13%; }
.worksheet-table th:nth-child(2), .worksheet-table td:nth-child(2) { width: 32%; }
.worksheet-table th:nth-child(3), .worksheet-table td:nth-child(3) { width: 9%; text-align: center; }
.worksheet-table th:nth-child(4), .worksheet-table td:nth-child(4) { width: 23%; }
.worksheet-table th:nth-child(5), .worksheet-table td:nth-child(5) { width: 23%; }

/* ---------- sample / script boxes ---------- */
.sample-box, .script-box {
  background: var(--page-accent-light);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 14px 0 0;
}
.sample-label, .script-box .script-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: var(--page-accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.sample-box dl { margin: 0; }
.sample-box dt { font-weight: 800; font-size: .82rem; margin-top: 12px; color: var(--page-accent); }
.sample-box dt:first-of-type { margin-top: 0; }
.sample-box dd { margin: 5px 0 0; font-size: .86rem; line-height: 1.8; }
.script-box { font-size: .87rem; line-height: 1.9; }

/* ---------- checklist ---------- */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 0 0 11px 28px;
  font-size: .88rem;
}
.checklist li:last-child { padding-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: .64rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- quick answer callout ---------- */
.quick-answer {
  background: #fff7ec;
  border: 2px solid var(--cta);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.qa-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  background: var(--cta);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.quick-answer h3 { color: var(--ink); margin: 0 0 14px; }
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.qa-pick {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.qa-pick .qa-for { font-size: .7rem; font-weight: 800; color: var(--cta-dark); margin-bottom: 4px; }
.qa-pick .qa-name { font-size: .95rem; font-weight: 900; margin-bottom: 4px; color: var(--page-accent); }
.qa-pick .qa-why { font-size: .78rem; color: var(--muted); }

/* ---------- ranking service card ---------- */
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.service-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.service-card-head .rank {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--page-accent), color-mix(in srgb, var(--page-accent) 60%, #16c47f));
  color: #fff;
  font-size: .95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card:first-of-type .rank { background: linear-gradient(145deg, #ffcc33, #e8a800); color: #3a2a00; }
.service-card-head h4 { margin: 0; font-size: 1.08rem; font-weight: 900; color: var(--ink); }
.service-type-badge {
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--page-accent-light);
  color: var(--page-accent);
}
.service-card .suited {
  font-size: .87rem;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--page-accent-light);
  border-radius: 8px;
}
.service-card .suited strong { color: var(--page-accent); }
.service-card ul { margin: 0; padding: 0; list-style: none; }
.service-card ul li {
  position: relative;
  padding: 0 0 8px 22px;
  font-size: .86rem;
}
.service-card ul li:last-child { padding-bottom: 0; }
.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 122, 26, .3);
}
.service-cta .arrow { font-size: .8rem; }
.service-cta-note { display: block; margin-top: 8px; font-size: .72rem; color: var(--muted); }

/* ---------- axis list (選び方の軸) ---------- */
.axis-list { list-style: none; margin: 0; padding: 0; counter-reset: axis; display: grid; gap: 12px; }
.axis-list li {
  position: relative;
  padding: 4px 0 4px 44px;
}
.axis-list li::before {
  counter-increment: axis;
  content: counter(axis);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--page-accent);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.axis-list h4 { margin: 0 0 3px; font-size: .9rem; font-weight: 800; color: var(--page-accent); }
.axis-list p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q { display: flex; gap: 10px; font-weight: 800; font-size: .9rem; margin: 0 0 10px; }
.faq-a { display: flex; gap: 10px; font-size: .85rem; margin: 0; color: #374151; }
.faq-q .qa-mark, .faq-a .qa-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 900;
}
.faq-q .qa-mark { background: var(--page-accent); color: #fff; }
.faq-a .qa-mark { background: var(--page-accent-light); color: var(--page-accent); }

/* ---------- footer nav (prev/next CTA buttons) ---------- */
.journey-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.journey-footer-nav button {
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.journey-footer-nav .journey-next {
  margin-left: auto;
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow: 0 4px 12px rgba(255, 122, 26, .35);
}
.journey-footer-nav button[disabled] { visibility: hidden; }

.tab-panel[hidden] { display: none; }

/* ---------- top page category grid ---------- */
.cat-section { margin-top: 2px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.cat-card {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-light);
  color: var(--navy);
  font-weight: 900;
  font-size: .9rem;
  margin-bottom: 14px;
}
.cat-card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 900; }
.cat-card p { margin: 0; font-size: .83rem; color: var(--muted); }
.cat-card .cat-arrow {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--muted);
}
.cat-card:hover .cat-arrow { color: var(--navy); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.72);
  text-align: center;
  padding: 32px 20px;
  font-size: .78rem;
}
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- wide-screen layout: use the space instead of a narrow column ---------- */
.service-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.service-grid .service-card,
.faq-grid .faq-item {
  margin-bottom: 0;
}
@media (min-width: 860px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .axis-list { grid-template-columns: repeat(2, 1fr); }
}


/* keep a term glued together so it never breaks mid-word across a line */
.kw { white-space: nowrap; }

/* ---------- tips ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 860px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.tip-type-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--page-accent-light);
  color: var(--page-accent);
  margin-bottom: 10px;
}
.tip-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  border-bottom: none;
  padding-bottom: 0;
}
.tip-card p { margin: 0; font-size: .86rem; line-height: 1.8; color: var(--ink); }
.tip-card .tip-source { display: block; margin-top: 8px; font-size: .76rem; color: var(--muted); }

/* ---------- searchable site list ---------- */
.site-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.site-search-input {
  flex: 1 1 260px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .86rem;
  color: var(--ink);
  background: var(--surface);
}
.site-search-input:focus { outline: 2px solid var(--page-accent); outline-offset: 1px; }
.site-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.site-filter-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.site-filter-tab.is-active {
  background: var(--page-accent);
  color: #fff;
  border-color: var(--page-accent);
}

/* ---------- button that opens a sample document in a modal ---------- */
.sample-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--page-accent);
  background: #fff;
  color: var(--page-accent);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}
.sample-open-btn:hover { background: var(--page-accent-light); }
.sample-open-btn .arrow { font-size: .8rem; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, .6);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 26px 24px;
}
.modal-box--wide { max-width: 820px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--border); }

/* ---------- 2-page resume spread (shown inside the modal) ----------
   Monochrome, matches a real 履歴書 form: black rules, no accent color,
   no colored badges on table headers. */
.resume-spread {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.resume-page {
  flex: 1 1 280px;
  min-width: 240px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 10px;
  font-size: .62rem;
  color: var(--ink);
}
.resume-page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.resume-page-title { font-size: 1rem; font-weight: 800; letter-spacing: .15em; }
.resume-page-date { font-size: .6rem; }

.resume-head-block { display: flex; gap: 8px; align-items: flex-start; }
.resume-head-fields { flex: 1; min-width: 0; }
.resume-id-photo {
  flex: none;
  width: 56px;
  height: 72px;
  margin-top: 2px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .44rem;
  color: var(--muted);
  line-height: 1.3;
}

.resume-furigana {
  font-size: .54rem;
  padding: 2px 0;
  border-bottom: 1px dotted var(--ink);
}
.resume-furigana .rt-tag { margin-right: 6px; }

.resume-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.resume-name-value { font-size: 1.05rem; font-weight: 800; }
.resume-sex-box {
  margin-left: auto;
  border: 1px solid var(--ink);
  padding: 2px 8px;
  font-size: .5rem;
  text-align: center;
  line-height: 1.4;
}
.resume-sex-box strong { font-size: .62rem; }

.resume-dob-row {
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  font-size: .6rem;
}

.rt-tag { font-size: .54rem; color: var(--muted); }

.resume-addr-row {
  display: flex;
  border-bottom: 1px solid var(--ink);
}
.resume-addr-main { flex: 1; padding: 4px 0; font-size: .6rem; line-height: 1.6; }
.resume-addr-contact {
  flex: none;
  width: 42%;
  border-left: 1px solid var(--ink);
  padding: 4px 8px;
  font-size: .56rem;
  line-height: 1.6;
}

.resume-history-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .58rem; }
.resume-history-table th, .resume-history-table td {
  border: 1px solid var(--ink);
  padding: 3px 5px;
  text-align: left;
}
.resume-history-table th { font-weight: 800; font-size: .56rem; }
.resume-history-table th:nth-child(1), .resume-history-table td:nth-child(1),
.resume-history-table th:nth-child(2), .resume-history-table td:nth-child(2) {
  width: 14%;
  text-align: center;
}
.resume-history-center { text-align: center; font-weight: 800; }
.resume-history-right { text-align: right; font-weight: 800; }
.resume-history-table--license { margin-top: 12px; }
.resume-history-table--license th:nth-child(3) { text-align: center; }

.resume-footnote { margin: 8px 0 0; font-size: .5rem; color: var(--muted); }

.resume-freetext { margin-top: 12px; border: 1px solid var(--ink); padding: 6px 8px; }
.resume-freetext-label { margin: 0 0 4px; font-size: .56rem; font-weight: 800; }
.resume-freetext-body { margin: 0; min-height: 28px; font-size: .6rem; line-height: 1.6; }

/* ---------- 職務経歴書 (free-format career history document) ---------- */
.career-page {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 16px 18px;
  font-size: .68rem;
  line-height: 1.7;
  color: var(--ink);
}
.career-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.career-title { font-size: 1.05rem; font-weight: 800; letter-spacing: .15em; }
.career-meta { font-size: .6rem; text-align: right; line-height: 1.6; }
.career-section { margin-top: 16px; }
.career-section:first-of-type { margin-top: 0; }
.career-section-title {
  margin: 0 0 8px;
  padding-left: 9px;
  border-left: 4px solid var(--ink);
  font-size: .76rem;
  font-weight: 800;
}
.career-section p { margin: 0; font-size: .68rem; line-height: 1.8; }
.career-table { width: 100%; border-collapse: collapse; }
.career-table th, .career-table td {
  border: 1px solid var(--ink);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  font-size: .64rem;
}
.career-table th { font-weight: 800; font-size: .68rem; width: 90px; }
.career-list { margin: 0; padding-left: 0; font-size: .68rem; line-height: 1.9; list-style: none; }
.career-list li { position: relative; padding-left: 14px; }
.career-list li::before {
  all: unset;
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
}
.career-end { text-align: right; font-weight: 800; margin-top: 16px; font-size: .68rem; }

