:root {
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #171915;
  --muted: #656a64;
  --line: #d8dad4;
  --green: #153b2f;
  --green-hover: #0d2d23;
  --soft-green: #eaf0ec;
  --max: 1200px;
  --article: 740px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* 追従ヘッダー（min-height 76px）の裏に見出しが隠れないようにする */
html {
  scroll-padding-top: 92px;
}

:target {
  scroll-margin-top: 92px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(23, 25, 21, 0.12);
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.brand span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav > a:not(.header-cta):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
}

.header-cta:hover {
  background: var(--green-hover);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 118px 24px 98px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 68px);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.job-meta {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-summary {
  max-width: 670px;
  margin: 38px 0 34px;
  font-size: 20px;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button span {
  font-size: 17px;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.primary:hover {
  background: var(--green-hover);
}

.button:focus-visible,
.site-header a:focus-visible,
footer a:focus-visible {
  outline: 3px solid #8db7a7;
  outline-offset: 4px;
}

.facts {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto 128px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.facts dl > div {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.facts dl > div:first-child {
  padding-left: 0;
}

.facts dl > div:last-child {
  border-right: 0;
}

.facts dt,
.condition-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.facts > p {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.copy-section {
  margin: 0 0 112px;
}

.copy-section h2,
.place h2,
.conditions h2,
.apply h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 580;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.copy-section p {
  margin: 0 0 20px;
}

.callout {
  margin-top: 34px !important;
  padding: 20px 24px;
  border-left: 3px solid var(--green);
  background: var(--soft-green);
}

.plain-list,
.compact-list,
.application-items ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plain-list strong {
  display: block;
  margin-bottom: 2px;
}

.phase-list,
.selection-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-list li,
.selection-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.phase-list li:last-child,
.selection-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.phase-list li > span,
.selection-list li > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.phase-list strong,
.selection-list strong {
  display: block;
  font-size: 18px;
}

.phase-list p,
.selection-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.two-column h2 {
  font-size: 25px;
}

.compact-list li,
.application-items li {
  position: relative;
  padding: 10px 0 10px 20px;
}

.compact-list li::before,
.application-items li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--green);
  content: "•";
}

.place {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  width: min(1080px, calc(100% - 48px));
  margin: 28px auto 136px;
}

.place figure {
  margin: 0;
}

.place img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.place figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.place p:not(.eyebrow) {
  margin: 0 0 18px;
  color: #363a35;
}

.conditions {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto 136px;
  padding: 72px clamp(24px, 5vw, 64px);
  background: var(--white);
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading .eyebrow {
  margin-bottom: 15px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.condition-list {
  margin: 0;
}

.condition-list > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.condition-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.condition-list dd {
  margin: 0;
}

.apply {
  margin: 136px 0 120px;
  padding-top: 84px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.apply .eyebrow {
  margin-bottom: 18px;
}

.apply > p:not(.eyebrow):not(.contact-note) {
  max-width: 610px;
  margin: 0 auto 36px;
}

.application-items {
  margin: 42px 0 46px;
  padding: 32px 36px;
  background: var(--white);
  text-align: left;
}

.ai-guidance {
  margin: -20px 0 46px;
  padding: 28px 32px;
  border-left: 3px solid var(--green);
  background: var(--soft-green);
  text-align: left;
}

.ai-guidance h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
}

.ai-guidance p {
  margin: 0 0 12px;
  font-size: 15px;
}

.ai-guidance p:last-child {
  margin-bottom: 0;
}

.privacy-note {
  margin: -20px 0 46px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  text-align: left;
}

.privacy-note h3 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.privacy-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.privacy-note li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.privacy-note li strong {
  color: var(--ink);
  font-weight: 700;
}

.application-items > p {
  margin: 0 0 12px;
  font-weight: 700;
}

.application-items .data-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.application-items li {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 15px;
}

.application-items li::before {
  top: 7px;
}

.button.large {
  min-height: 58px;
  padding-inline: 30px;
}

.contact-note {
  margin: 18px 0 0 !important;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  padding: 36px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .site-header nav {
    gap: 0;
  }

  .site-header nav > a:not(.header-cta) {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 7px 17px;
    font-size: 13px !important;
  }

  .hero {
    padding: 84px 22px 72px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .job-meta {
    margin-top: 22px;
  }

  .hero-summary {
    margin-top: 30px;
    font-size: 18px;
  }

  .facts {
    width: calc(100% - 36px);
    margin-bottom: 94px;
  }

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

  .facts dl > div,
  .facts dl > div:first-child {
    padding: 20px 14px;
  }

  .facts dl > div:nth-child(2) {
    border-right: 0;
  }

  .facts dl > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .facts dd {
    font-size: 19px;
  }

  .facts > p {
    padding-inline: 2px;
  }

  .article {
    width: calc(100% - 36px);
  }

  .copy-section {
    margin-bottom: 88px;
  }

  .copy-section h2,
  .place h2,
  .conditions h2,
  .apply h2 {
    margin-bottom: 22px;
    font-size: 29px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .two-column h2 {
    font-size: 24px;
  }

  .phase-list li,
  .selection-list li {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .place {
    grid-template-columns: 1fr;
    gap: 42px;
    width: calc(100% - 36px);
    margin-bottom: 100px;
  }

  .conditions {
    width: 100%;
    margin-bottom: 104px;
    padding: 58px 18px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .condition-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .condition-list dt {
    font-size: 12px;
  }

  .apply {
    margin: 104px 0 90px;
    padding-top: 64px;
  }

  .application-items {
    margin-block: 34px 38px;
    padding: 24px 20px;
  }

  .ai-guidance {
    margin: -14px 0 38px;
    padding: 24px 20px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-block: 30px;
  }
}

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

@media print {
  .site-header,
  .button,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    padding-top: 40px;
  }

  .copy-section,
  .place,
  .conditions {
    break-inside: avoid;
  }
}
