:root {
  --main: #1f8fbf;
  --main-dark: #0b5f82;
  --accent: #f5a623;
  --text: #1f2d3d;
  --muted: #617386;
  --bg: #f5fbfd;
  --surface: #ffffff;
  --line: #d8e8ef;
  --danger: #9f2f2f;
  --success: #176f4a;
  --shadow: 0 12px 30px rgba(11, 95, 130, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a { color: var(--main-dark); }
a:hover { color: var(--main); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-footer-inner,
.page-shell {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--main-dark);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  font-size: .92rem;
}

.site-nav a { text-decoration: none; }

.page-shell {
  padding-block: 48px 72px;
}

.hero,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--main);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--main-dark);
  line-height: 1.35;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 { margin-top: 0; font-size: 1.35rem; }
h3 { font-size: 1.08rem; }

.lead {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff8e9;
}

.card {
  padding: clamp(22px, 4vw, 36px);
  margin-top: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
}

.steps strong {
  display: block;
  color: var(--main-dark);
}

label {
  display: block;
  margin: 18px 0 7px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #afc9d5;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(31, 143, 191, .18);
  border-color: var(--main);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--main-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--main);
  color: #fff;
}

button:disabled {
  background: #9dafb7;
  cursor: not-allowed;
}

.danger-button { background: var(--danger); }
.danger-button:hover { background: #7f2525; }

.status {
  min-height: 1.75em;
  margin-top: 14px;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
}

.status[data-kind="error"] { color: var(--danger); }
.status[data-kind="success"] { color: var(--success); }

.hidden { display: none !important; }

.data-list,
.legal-nav {
  padding-left: 1.25rem;
}

.store-links,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.store-links a,
.legal-links a {
  overflow-wrap: anywhere;
}

.legal-document section {
  margin-top: 32px;
}

.legal-document li + li { margin-top: 6px; }

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: .9rem;
}

.site-footer strong {
  color: var(--main-dark);
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }
  .site-nav { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .page-shell { padding-top: 28px; }
}
