:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --ink: #111111;
  --muted: #595959;
  --rule: #e2e2e2;
  --rule-strong: #111111;
  --crimson: #bc002d;
  --link: #0039a6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17191d;
    --ink: #f0f0f0;
    --muted: #a3a3a3;
    --rule: #2a2d34;
    --rule-strong: #f0f0f0;
    --crimson: #e33452;
    --link: #5b93ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  border-top: 3px solid var(--crimson);
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--rule-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  border: 1px solid var(--rule);
  flex: none;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 500;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}

nav a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

section {
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact-list {
  margin: 16px 0 0;
  border-top: 1px solid var(--rule);
}

.contact-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.contact-row dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.qa-list {
  border-top: 1px solid var(--rule);
}

.qa {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.summary-box {
  background: var(--surface);
  border-left: 3px solid var(--crimson);
  padding: 16px 18px;
  margin-bottom: 28px;
}

.summary-box h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.policy-section {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.policy-section:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.num {
  color: var(--crimson);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  flex: none;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 520px) {
  main {
    padding: 24px 16px 56px;
  }

  header {
    flex-direction: column;
    gap: 12px;
  }

  nav {
    padding-top: 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
