:root {
  --bg: #000;
  --surface: #131313;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #8c8c8c;
  --faint: #525252;
  --accent: #ff453a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-break: strict; /* Japanese: never start a line with ー or 。 */
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: fixed; inset: 0 0 auto 0; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% -10%, rgba(255, 69, 58, 0.28), transparent 65%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px;
  padding: 20px 0;
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero { text-align: center; padding: 56px 0 40px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 60px rgba(255, 69, 58, 0.45); }
.hero h1 { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; margin: 28px 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 auto; }

.button {
  display: inline-block; margin-top: 28px; padding: 15px 28px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; border: 0; cursor: pointer; font-size: 17px;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

section { padding: 40px 0; }
h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 20px; }

details {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 16px 20px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

.contact { text-align: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 32px 20px; }
.contact p { color: var(--muted); margin: 0; }

.legal h1 { font-size: clamp(28px, 8vw, 36px); margin: 32px 0 4px; }
.legal .updated { color: var(--faint); margin: 0 0 28px; font-size: 15px; }
.legal .note { color: var(--muted); font-size: 14px; border-left: 2px solid var(--hairline); padding-left: 12px; margin: -16px 0 24px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #d4d4d4; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer { color: var(--faint); font-size: 14px; padding: 40px 0 48px; text-align: center; }
footer a { color: var(--muted); margin: 0 8px; }

select.lang {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--surface); color: var(--muted); font: inherit; font-size: 14px;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 28px 5px 12px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat;
}
select.lang:hover, select.lang:focus { color: var(--text); outline: none; border-color: rgba(255, 255, 255, 0.2); }
