:root {
  color-scheme: light;
  --paper: #f7f2e9;
  --paper-warm: #fbf7ef;
  --ink: #26231d;
  --secondary: #57534a;
  --muted: #7b756b;
  --line: #ded4c3;
  --akane: #a84426;
  --matsuba: #617252;
  --gold: #a98631;
  --danger: #a13c34;
  --shadow: 0 18px 45px rgb(52 43 31 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgb(194 161 77 / 12%), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a {
  color: var(--akane);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(168 68 38 / 30%);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid rgb(222 212 195 / 80%);
  background: rgb(251 247 239 / 88%);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--secondary);
  text-decoration: none;
}

.page {
  padding-block: 56px 80px;
}

.page--home {
  width: min(100% - 40px, 1040px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--akane);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.45;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 46px);
  letter-spacing: 0.03em;
}

h2 {
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 23px;
}

h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

p,
ul,
ol,
dl,
table {
  margin-block: 0 16px;
}

ul,
ol {
  padding-left: 1.5em;
}

li + li {
  margin-top: 6px;
}

.lead {
  max-width: 700px;
  color: var(--secondary);
  font-size: 18px;
}

.updated {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #d7bb78;
  border-radius: 10px;
  background: #fff9e9;
}

.notice--danger {
  border-color: #db9b95;
  background: #fff1ef;
}

.notice strong {
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-warm);
  font-size: 15px;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  width: 210px;
  background: #eee5d7;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 48px;
  min-height: 520px;
}

.hero h1 {
  font-size: clamp(46px, 10vw, 82px);
  letter-spacing: 0.14em;
}

.hero__card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px 6px 28px 6px;
  background: rgb(251 247 239 / 84%);
  box-shadow: var(--shadow);
}

.hero__mark {
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--matsuba);
  color: white;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 40px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.link-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  color: var(--ink);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--akane);
}

.steps {
  counter-reset: steps;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 44px;
  padding: 7px 0 20px 58px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--matsuba);
  color: white;
  content: counter(steps);
  font-weight: 700;
}

.contact-card {
  padding: 24px;
  border: 2px solid var(--akane);
  border-radius: 12px;
  background: var(--paper-warm);
  text-align: center;
}

.contact-card a {
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--secondary);
}

@media (max-width: 720px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .page {
    padding-block: 38px 60px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .hero__card {
    padding: 24px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    min-width: 150px;
  }
}

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