:root {
  color-scheme: light;
  --bg: #f8f8f3;
  --surface: #ffffff;
  --surface-soft: #edf6f0;
  --ink: #20342a;
  --muted: #607067;
  --green: #2f6d50;
  --green-dark: #24553e;
  --line: #d8e5dc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.page-shell {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding: 28px 0 40px;
}

.page-header {
  padding: 8px 4px 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: .02em;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
}

.section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 1.25rem;
  line-height: 1.5;
}

h2::before {
  width: 5px;
  height: 1.35em;
  border-radius: 99px;
  background: var(--green);
  content: "";
}

.info-list { margin: 0; }

.info-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.info-row:first-child { padding-top: 0; border-top: 0; }
.info-row:last-child { padding-bottom: 0; }

dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.legal-links {
  display: grid;
  gap: 10px;
}

.action-link, .legal-link, .return-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.action-link {
  color: #fff;
  background: var(--green);
}

.legal-link {
  border: 1px solid var(--line);
  background: #fbfdfc;
}

.action-link::after, .legal-link::after, .return-link::after { content: "›"; font-size: 1.4rem; line-height: 1; }
.action-link:hover { background: var(--green-dark); }
.legal-link:hover, .return-link:hover { border-color: #9ebcab; background: var(--surface-soft); }

.info-row a {
  color: var(--green-dark);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.line-button { margin-top: 22px; }
.section-copy { margin: 0; }
.return-area { margin-top: 22px; }

.return-link {
  border: 1px solid #9ebcab;
  color: var(--green-dark);
  background: var(--surface);
}

.unavailable {
  color: var(--muted);
  border: 1px dashed #bacbc0;
  background: #f5f7f6;
  cursor: default;
}

.action-link.unavailable::after,
.legal-link.unavailable::after,
.return-link.unavailable::after { content: "未設定"; font-size: .8rem; font-weight: 700; }

.info-row a.unavailable {
  color: var(--muted);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #d29b38;
  outline-offset: 3px;
}

.site-footer {
  padding: 28px 12px 8px;
  color: var(--muted);
  text-align: center;
  font-size: .875rem;
}

.site-footer p { margin: 0; }

@media (min-width: 680px) {
  .page-shell { padding-top: 44px; padding-bottom: 56px; }
  .page-header { padding: 10px 8px 28px; }
  .section { padding: 30px 34px; }
  .info-row { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; }
  dt { margin: 0; }
}

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