:root {
  --bg: #fffaf0;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #5c5c5c;
  --accent: #f6b93b;
  --accent-strong: #f59f00;
  --border: #e8e0cc;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans JP', 'Hiragino Sans', system-ui, -apple-system, sans-serif;
  background: linear-gradient(140deg, #fffaf0 0%, #fff4db 40%, #fffaf0 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px 24px;
}

a { color: inherit; text-decoration: none; }

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(246, 185, 59, 0.15);
}

.brand-text { font-size: 16px; }

.lang-toggle {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.lang-toggle:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); transform: translateY(-1px); }

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding: 10px 0 32px;
}

.hero-text {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin: 0 0 6px;
}

h1 { margin: 0 0 10px; font-size: 28px; }
.lede { margin: 0; color: var(--muted); line-height: 1.6; }

.cta-grid {
  display: grid;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #1f1400;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 10px 20px rgba(246, 185, 59, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(246,185,59,0.3); background: var(--accent-strong); }

.button.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.button.ghost:hover { box-shadow: 0 10px 18px rgba(0,0,0,0.12); }

.footnote {
  padding: 20px 0 0;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.content { padding: 20px; display: grid; gap: 18px; }
.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h2 { margin-top: 0; margin-bottom: 10px; }
.card ol { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

.qr-card {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.qr-block {
  justify-self: end;
  text-align: center;
}

.qr-block img {
  width: 180px;
  height: 180px;
  border: 10px solid #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #fff;
}

.qr-url {
  font-weight: 700;
  margin: 6px 0 0;
  word-break: break-all;
}

.redirect-page, .offline-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.redirect-card, .offline-card {
  max-width: 460px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: left;
}

.redirect-card h1, .offline-card h1 { margin: 6px 0 12px; }
.redirect-card p, .offline-card p { color: var(--muted); margin: 0 0 16px; }

.offline-page .cta-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

@media (min-width: 720px) {
}

@media (max-width: 640px) {
  .qr-card { grid-template-columns: 1fr; }
  .qr-block { justify-self: start; }
}

@media print {
  body { background: #ffffff; color: #000; }
  .top-bar { padding: 0 0 12px; border-bottom: 1px solid #ccc; }
  .lang-toggle, .footnote { display: none !important; }
  .content { max-width: 720px; margin: 0 auto; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .qr-block img { box-shadow: none; border: 4px solid #000; }
  .button { box-shadow: none; }
  a { color: #000; }
}
