:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  color: #13233a;
  background: #eef4f7;
  --muted: #5b6a7d;
  --paper: #ffffff;
  --line: #cbd7df;
  --brand: #067a70;
  --brand-dark: #045d56;
  --danger: #a62d2d;
  --warning: #8a5a00;
  --link: #8a3b12;
  --link-hover: #662800;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(6, 122, 112, 0.12), transparent 34rem), #eef4f7;
}
a,
a:visited {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover,
a:focus { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
}
main { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; }
.hero { max-width: 760px; margin-bottom: 2rem; }
.eyebrow { color: var(--brand); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; }
h1 { margin: 0.25rem 0 1rem; font-size: clamp(2.25rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.055em; }
h2 { margin-top: 0; }
.lead { margin-bottom: 0.25rem; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.sublead, .panel p, .privacy-note span { color: var(--muted); }
.panel, .privacy-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(28, 51, 67, 0.08);
}
.panel { padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 2.5rem; }
.file-picker {
  display: block;
  margin: 1.5rem 0 1rem;
  padding: 1.25rem;
  border: 2px dashed #91a8b6;
  border-radius: 12px;
  background: #f8fbfc;
}
.file-picker span { display: block; margin-bottom: 0.7rem; font-weight: 700; }
button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  color: white;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:hover { background: var(--brand-dark); }
button:disabled { cursor: wait; opacity: 0.6; }
.status { min-height: 1.5rem; margin-bottom: 0 !important; font-weight: 700; }
.status[data-kind="error"] { color: var(--danger); }
.status[data-kind="warning"] { color: var(--warning); }
.status[data-kind="success"] { color: var(--brand-dark); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.metric { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.metric strong, .metric span { display: block; }
.metric strong { font-size: 1.35rem; }
.metric span { margin-top: 0.3rem; color: var(--muted); font-size: 0.82rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4f8fa; }
.privacy-note { display: flex; gap: 1rem; margin-top: 2rem; padding: 1rem 1.25rem; }
[hidden] { display: none !important; }
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.license-panel { margin-bottom: 2rem; }
.license-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tier-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-badge[data-tier="founder"], .tier-badge[data-tier="pro"] {
  background: var(--brand);
  color: white;
}
.license-form { margin: 1rem 0; }
.license-label { display: block; margin-bottom: 0.75rem; }
.license-label span { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.license-label input {
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--paper);
}
.license-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.secondary-button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.secondary-button:hover {
  background: #e2ecf0;
  color: var(--brand-dark);
}
.license-status { margin-top: 0.75rem; font-size: 0.9rem; }

@media (max-width: 640px) {
  main { padding: 2rem 0; }
  .privacy-note { flex-direction: column; }
}

.language-switch{display:flex;justify-content:flex-end;gap:1rem;flex-wrap:wrap;padding:1rem;max-width:1200px;margin:auto}.language-switch a{color:inherit;text-decoration:underline}.language-switch button{width:auto;padding:.5rem 1rem}.language-switch [aria-pressed="true"]{outline:2px solid currentColor;outline-offset:2px}
