:root {
  --ink: #173a2d;
  --muted: #61746b;
  --white: #fff;
  --canvas: #f4f9f6;
  --green-soft: #e9f6ee;
  --green: #2f7d59;
  --green-dark: #18563b;
  --line: #d9e8df;
  --warning: #fff8ed;
  --warning-line: #e3b36e;
  --shadow: 0 14px 38px rgba(32, 91, 65, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.8; }
button, input { font: inherit; }
[hidden] { display: none !important; }
a { color: var(--green-dark); }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-dark);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(100% - 32px, 1040px); margin-inline: auto; }
.article-width { max-width: 820px; }

.pr-bar { padding: 8px 16px; color: var(--green-dark); background: var(--green-soft); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; text-align: center; }
.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.topbar-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 172px; height: auto; }
.head-link { position: relative; padding-right: 19px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.head-link::after { content: ""; position: absolute; right: 2px; top: 42%; width: 7px; height: 7px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }

.article-hero { padding: 42px 0 46px; background: linear-gradient(180deg, #f2fbf6 0%, #fff 100%); }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cluster-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--white); background: var(--green); font-size: 12px; font-weight: 900; }
.type-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 8px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 12px; line-height: 1; }
h1 { max-width: 15em; margin: 0; font-size: clamp(37px, 7vw, 55px); line-height: 1.18; letter-spacing: -.045em; }
.h1-part { display: inline; }
.lead { max-width: 43em; margin: 17px 0 0; color: var(--muted); font-size: 16px; }

.image-slot {
  display: grid;
  min-height: 250px;
  align-items: end;
  margin: 52px 0 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 22px;
  background-image: var(--article-image), linear-gradient(135deg, var(--green-soft), #f8efe9);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}
.image-slot-hero { min-height: 300px; margin-top: 25px; }
.image-slot figcaption { width: fit-content; max-width: 90%; padding: 7px 11px; border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.92); font-size: 13px; font-weight: 700; }

.answer-card { margin-top: 26px; padding: 19px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.answer-label { margin: 0 0 11px; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.answer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.answer-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; min-width: 0; padding: 14px; border-radius: 16px; background: var(--canvas); }
.answer-item > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: var(--green-dark); background: var(--green-soft); font-size: 14px; font-weight: 900; line-height: 1; }
.answer-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.answer-item strong { color: var(--ink); }

.article-body { padding-bottom: 68px; }
.article-body > section { padding: 58px 0 4px; }
.article-body h2 { max-width: 23em; margin: 0 0 17px; font-size: clamp(26px, 5vw, 34px); line-height: 1.35; letter-spacing: -.035em; }
.article-body p { margin: 0 0 14px; }
.section-number { margin: 0 0 4px !important; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.note-box { margin-top: 20px !important; padding: 14px 16px; border-left: 4px solid var(--warning-line); border-radius: 12px; color: #635745; background: var(--warning); font-size: 14px; }

.salary-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.salary-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.salary-table th, .salary-table td { padding: 14px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.salary-table thead th { color: var(--green-dark); background: var(--green-soft); font-size: 12px; }
.salary-table tbody tr:last-child > * { border-bottom: 0; }
.salary-table tbody th { width: 21%; background: linear-gradient(90deg, #f7fcf9 0%, #fff 100%); }
.salary-table tbody th > a {
  position: relative;
  display: inline-block;
  padding-left: 13px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration-color: rgba(24, 86, 59, .32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.salary-table tbody th > a::before {
  content: "";
  position: absolute;
  top: .18em;
  bottom: .18em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}
.salary-table tbody th > a:hover { text-decoration-color: currentColor; }
.salary-table tbody th .source-meta { padding-left: 13px; }
.salary-table td:nth-child(2) { width: 30%; }
.salary-table strong { color: var(--green-dark); font-size: 15px; }
.salary-table small { color: var(--muted); }
.pay-option { display: block; }
.pay-option + .pay-option { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pay-option small, .pay-option strong { display: block; }
.pay-option small { margin-bottom: 2px; color: var(--ink); font-weight: 700; }
.source-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.unverified-badge { display: inline-block; margin-top: 7px; padding: 2px 7px; border-radius: 999px; color: #7a4f16; background: #fff3d9; font-size: 11px; font-weight: 900; }
.unverified-inline { color: #8b5b17; }
.table-note { margin-top: 12px !important; color: var(--muted); font-size: 13px; }

.plain-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.plain-compare > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.plain-compare span, .plain-compare small { display: block; color: var(--muted); }
.plain-compare strong { display: block; margin: 4px 0; color: var(--green-dark); font-size: 38px; line-height: 1.2; }

.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.definition-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.definition-grid span { color: var(--muted); font-size: 13px; font-weight: 700; }
.definition-grid strong { display: block; margin: 3px 0 8px; color: var(--green-dark); font-size: 27px; }
.definition-grid p { margin: 0; font-size: 14px; }

.difference-list { display: grid; gap: 11px; margin-top: 22px; }
.difference-list article { display: grid; grid-template-columns: 160px 145px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.difference-list span { font-size: 14px; font-weight: 800; }
.difference-list strong { color: var(--green-dark); font-size: 21px; }
.difference-list p { margin: 0; color: var(--muted); font-size: 13px; }
.payslip-check { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.payslip-check h3 { margin: 0 0 9px; font-size: 17px; }
.payslip-check ul { display: grid; gap: 8px; margin: 0; padding-left: 1.3em; color: var(--muted); font-size: 14px; }

.average-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; margin: 22px 0; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.average-card > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.average-card > strong { grid-row: 1 / 3; grid-column: 2; color: var(--green-dark); font-size: clamp(36px, 8vw, 50px); line-height: 1; }
.average-card p { margin: 0; }

.salary-form { display: grid; gap: 16px; margin-top: 22px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.entry-bridge { margin-top: 18px !important; padding: 14px 16px; border-left: 4px solid var(--green); border-radius: 12px; background: var(--canvas); font-size: 14px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 800; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.number-input { position: relative; }
.number-input input { width: 100%; min-height: 54px; padding: 10px 5em 10px 12px; color: var(--ink); background: var(--white); border: 1.5px solid #bdd4c7; border-radius: 12px; font-size: 17px; font-variant-numeric: tabular-nums; }
.number-input input:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 1px; }
.number-input span { position: absolute; top: 50%; right: 14px; color: var(--muted); font-size: 13px; font-weight: 700; transform: translateY(-50%); pointer-events: none; }
.bonus-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bonus-details summary { position: relative; min-height: 54px; padding: 13px 40px 13px 0; color: var(--green-dark); cursor: pointer; font-weight: 800; list-style: none; }
.bonus-details summary::-webkit-details-marker { display: none; }
.bonus-details summary::after { content: "+"; position: absolute; top: 50%; right: 8px; font-size: 24px; font-weight: 400; transform: translateY(-50%); }
.bonus-details[open] summary::after { content: "−"; }
.bonus-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 0 17px; }
.form-status { margin: 0 !important; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-status.is-error { color: #9f3f38; }

.calculator-result { margin-top: 15px; padding: 22px; border: 1px solid #a7cfb7; border-radius: 20px; background: var(--green-soft); }
.calculator-result > span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.calculator-result > strong { display: block; margin: 3px 0 16px; color: var(--green-dark); font-size: clamp(38px, 9vw, 54px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.calculator-result dl { display: grid; gap: 7px; margin: 0; }
.calculator-result dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 11px; border-radius: 10px; background: var(--white); }
.calculator-result dt { color: var(--muted); }
.calculator-result dd { margin: 0; font-weight: 800; }
.calculator-result > p { margin: 13px 0 0; color: var(--muted); font-size: 12px; }

.internal-next-step { margin-top: 17px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.internal-next-step p { margin: 0 0 11px; color: var(--muted); font-size: 14px; }
.internal-next-step a { display: grid; grid-template-columns: 1fr 10px; gap: 12px; align-items: center; min-height: 54px; padding: 13px 16px; border-radius: 13px; color: var(--ink); background: var(--green-soft); text-decoration: none; }
.internal-next-step i { width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); transition: transform .16s ease; }
.internal-next-step a:hover i { transform: translateX(2px) rotate(-45deg); }

.result-cta {
  position: relative;
  margin-top: 17px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #c9e2d3;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #f1f9f4 100%);
  box-shadow: 0 14px 34px rgba(32, 91, 65, .09);
}
.result-cta::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(47, 125, 89, .07);
  pointer-events: none;
}
.result-cta > p { position: relative; z-index: 1; }
.result-cta > p:first-child { margin-bottom: 13px; font-size: 15px; }
.result-cta > p:first-child strong { color: var(--green-dark); font-size: 18px; }
.eligibility-note { color: var(--muted); font-size: 12px; }
.affiliate-note { color: var(--muted); font-size: 12px; }
.affiliate-cta {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 14px 58px 14px 22px;
  border: 1px solid rgba(12, 75, 49, .18);
  border-radius: 17px;
  color: var(--white);
  background: linear-gradient(135deg, #368e66 0%, #246e4d 100%);
  box-shadow: 0 11px 22px rgba(30, 99, 70, .22), inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .16s ease, transform .16s ease, filter .16s ease;
}
.affiliate-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform .16s ease;
}
.affiliate-cta:hover { filter: brightness(1.035); box-shadow: 0 14px 27px rgba(30, 99, 70, .26), inset 0 1px 0 rgba(255,255,255,.2); transform: translateY(-1px); }
.affiliate-cta:hover::after { transform: translate(3px, -50%) rotate(-45deg); }
.affiliate-cta:active { box-shadow: 0 6px 14px rgba(30, 99, 70, .2); transform: translateY(1px); }

.source-section > p { color: var(--muted); }
.source-section details { border-bottom: 1px solid var(--line); }
.source-section summary { position: relative; min-height: 62px; padding: 15px 42px 15px 0; color: var(--ink); cursor: pointer; font-weight: 700; list-style: none; }
.source-section summary::-webkit-details-marker { display: none; }
.source-section summary::after { content: "+"; position: absolute; top: 50%; right: 6px; color: var(--green); font-size: 23px; transform: translateY(-50%); }
.source-section details[open] summary::after { content: "−"; }
.details-body { padding: 0 0 25px; color: var(--muted); }
.source-list { display: grid; gap: 8px; }
.source-list li { overflow-wrap: anywhere; }

.related-tools { margin-top: 58px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--green-soft); }
.related-tools > p { margin: 0 0 12px; font-weight: 800; }
.related-tools > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-tools a { display: grid; grid-template-columns: 1fr 10px; gap: 10px; align-items: center; padding: 15px; border-radius: 15px; color: var(--ink); background: var(--white); text-decoration: none; }
.related-tools a strong, .related-tools a span { display: block; }
.related-tools a span { grid-column: 1; color: var(--muted); font-size: 12px; }
.related-tools i { grid-row: 1 / 3; grid-column: 2; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.site-foot { padding: 30px 0; color: var(--muted); background: var(--canvas); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 9px; }
.foot-links a { color: var(--ink); }
.site-foot p { margin: 0; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(47,125,89,.3); outline-offset: 3px; }

@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1040px); }
  .article-hero { padding: 29px 0 34px; }
  h1 { font-size: clamp(32px, 9.5vw, 42px); }
  .image-slot { min-height: 210px; margin-top: 38px; padding: 13px; }
  .image-slot-hero { min-height: 230px; margin-top: 21px; }
  .answer-grid, .definition-grid, .bonus-fields, .related-tools > div { grid-template-columns: 1fr; }
  .answer-item { grid-template-columns: 43px 1fr; }
  .answer-item > span { width: 43px; height: 43px; }
  .article-body > section { padding-top: 47px; }
  .difference-list article { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .difference-list p { grid-column: 1 / -1; }
  .salary-table-wrap::after { content: "表は横に動かせます"; display: block; padding: 8px 12px; color: var(--muted); background: var(--canvas); font-size: 11px; text-align: right; }
  .average-card { grid-template-columns: 1fr; }
  .average-card > strong { grid-row: auto; grid-column: auto; margin: 4px 0 8px; }
}

@media (max-width: 360px) {
  .brand img { width: 152px; }
  .head-link { font-size: 12px; }
  h1 { font-size: 31px; }
  .h1-part { display: inline; }
  .plain-compare { grid-template-columns: 1fr; }
  .average-card { grid-template-columns: 1fr; }
  .average-card > strong { grid-row: auto; grid-column: auto; }
  .salary-form, .calculator-result, .internal-next-step, .result-cta { padding: 17px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .affiliate-cta { transition: none; }
  .affiliate-cta::after { transition: none; }
  .internal-next-step i { transition: none; }
}
