:root {
  --background: #f8f4ed;
  --surface: #fbf8f2;
  --ink: #22242b;
  --copy: #514b43;
  --muted: #756b5e;
  --gold: #b89456;
  --line: #ded5c9;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.92), transparent 29rem),
    var(--background);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.28em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #876432;
  outline-offset: 4px;
}

.site-header,
.site-footer,
.page-main {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  width: 92px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  font-size: 0.78rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.page-main {
  min-height: calc(100vh - 260px);
  padding: 92px 0 120px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #806038;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 16em;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.lead {
  max-width: 42rem;
  margin: 34px 0 0;
  color: var(--copy);
  font-size: 1rem;
  line-height: 2.15;
}

.content-card,
.notice,
.contact-form {
  max-width: 760px;
  margin-top: 58px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.72);
}

.content-card h2,
.notice h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.7;
}

.content-card p,
.notice p {
  margin: 0;
  color: var(--copy);
  font-size: 0.92rem;
  line-height: 2;
}

.content-card p + p,
.notice p + p {
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 9px;
}

.field + .field {
  margin-top: 24px;
}

label,
legend {
  font-size: 0.85rem;
  font-weight: 500;
}

.optional {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc4b4;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

input,
select {
  min-height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

.form-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
}

.form-feedback {
  max-width: 760px;
  margin: 0 0 30px;
  padding: 14px 18px;
  border: 1px solid #b9aa8f;
  background: rgba(251, 248, 242, 0.88);
  font-size: 0.88rem;
  line-height: 1.8;
}

.form-feedback--success {
  border-color: #889985;
  background: #f2f7f0;
}

.return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.submit-button {
  min-width: 220px;
  min-height: 54px;
  margin-top: 26px;
  border: 0;
  border-radius: 999px;
  background: #24282e;
  color: #fbf8f2;
  font: inherit;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal-main {
  max-width: 1080px;
}

.legal-status,
.legal-document {
  max-width: 860px;
}

.legal-status {
  margin-top: 48px;
  padding: 24px 26px;
  border: 1px solid #d2b16f;
  background: #fff8df;
}

.legal-status h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.legal-status p {
  margin: 12px 0 0;
  color: var(--copy);
  font-size: 0.85rem;
  line-height: 1.9;
}

.legal-status dl {
  margin: 18px 0 0;
  font-size: 0.75rem;
  line-height: 1.8;
}

.legal-status dl div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 12px;
}

.legal-status dt {
  color: var(--muted);
}

.legal-status dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-document {
  margin-top: 72px;
  color: var(--copy);
  font-size: 0.9rem;
  line-height: 2;
}

.legal-document h2,
.legal-document h3 {
  color: var(--ink);
}

.legal-document h2 {
  margin: 88px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1.6rem;
  line-height: 1.6;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 52px 0 18px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
}

.legal-document p {
  margin: 0;
}

.legal-document p + p {
  margin-top: 10px;
}

.legal-document a {
  color: #71552e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal-document a:hover {
  color: #4f3a1d;
}

.legal-open-issue {
  padding: 0.08em 0.2em;
  background: #ffe983;
  color: #4f3c0c;
}

.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.78);
}

.legal-table-wrap:focus-visible {
  outline: 2px solid #876432;
  outline-offset: 4px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.8;
}

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

.legal-table th {
  color: var(--ink);
  background: rgba(225, 216, 202, 0.42);
  font-weight: 600;
}

.legal-table--commercial th {
  width: 13.5rem;
}

@media (max-width: 720px) {
  .site-header {
    display: block;
    padding: 20px 0 12px;
  }

  .brand img {
    width: 76px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 8px;
    gap: 0 18px;
  }

  .site-nav a {
    min-height: 48px;
  }

  .page-main {
    padding: 64px 0 84px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .lead {
    margin-top: 26px;
    font-size: 0.94rem;
    line-height: 2;
  }

  .content-card,
  .notice,
  .contact-form {
    margin-top: 42px;
    padding: 24px 20px;
  }

  .submit-button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-bottom: 14px;
  }

  .legal-status {
    margin-top: 38px;
    padding: 20px;
  }

  .legal-status dl div {
    display: block;
  }

  .legal-status dl div + div {
    margin-top: 10px;
  }

  .legal-status dd {
    margin-top: 2px;
  }

  .legal-document {
    margin-top: 56px;
    font-size: 0.86rem;
  }

  .legal-document h2 {
    margin-top: 68px;
    font-size: 1.35rem;
  }

  .legal-document h3 {
    margin-top: 42px;
  }

  .legal-table-wrap {
    border: 0;
    overflow: visible;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
  }

  .legal-table tr {
    margin-top: 14px;
    border: 1px solid var(--line);
  }

  .legal-table th,
  .legal-table td {
    border: 0;
  }

  .legal-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.7rem;
  }

  .legal-table--vendors td:nth-child(1)::before { content: "委託先"; }
  .legal-table--vendors td:nth-child(2)::before { content: "委託する内容"; }
  .legal-table--vendors td:nth-child(3)::before { content: "所在国・データの保存地域"; }
}
