/* ONE SQUARE — game-site theme, drawn from src/css/base.css and layout.css */
:root {
  --bg: #f6f6f4;
  --ink: #33332f;
  --dim: #9a9a94;
  --faint: #c9c9c3;
  --line: #e4e4de;
  --wash: rgba(51, 51, 47, .035);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px; line-height: 1.9; -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; top: -60px; left: 16px; z-index: 20;
  padding: 8px 12px; background: var(--ink); color: var(--bg);
  font-size: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

.topbar {
  display: flex; align-items: center; gap: 18px; min-height: 57px;
  padding: 0 max(20px, env(safe-area-inset-left));
  background: rgba(246, 246, 244, .92); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
}
.topbar a {
  color: var(--dim); font-size: 10px; letter-spacing: .17em;
  text-decoration: none; white-space: nowrap;
}
.topbar a:hover, .topbar a[aria-current="page"] { color: var(--ink); }
.topbar .home {
  display: flex; align-items: center; gap: 8px; margin-right: auto;
  color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em;
}
.topbar .home img { width: 17px; opacity: .64; }

.hero {
  min-height: 410px; padding: 72px 20px 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent 0, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px));
  background-size: 76px 76px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, rgba(246,246,244,.15) 0 18%, rgba(246,246,244,.84) 58%, var(--bg) 100%);
}
.hero > * { position: relative; }
.hero .mark {
  width: 72px; height: 72px; object-fit: cover; border-radius: 16px;
  margin-bottom: 23px; box-shadow: 0 8px 28px rgba(51,51,47,.08);
}
.hero h1 {
  font-size: clamp(27px, 7vw, 38px); font-weight: 700;
  letter-spacing: .29em; text-indent: .29em; line-height: 1.25;
}
.hero .en {
  margin-top: 10px; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px; letter-spacing: .32em; text-indent: .32em;
}
.hero .tag { margin-top: 30px; max-width: 33rem; color: var(--ink); font-size: 14px; line-height: 2; }
.hero .tag .g { font-weight: 700; }

.wrap { width: min(100% - 40px, 720px); margin: 0 auto; }
main.wrap { padding: 14px 0 0; }
section { padding: 42px 0; border-bottom: 1px solid var(--line); }
h1, h2, h3, h4 { line-height: 1.5; font-weight: 700; }
h2 {
  margin-bottom: 20px; font-size: 11px; letter-spacing: .26em; text-indent: .26em;
  color: var(--dim); text-transform: uppercase;
}
h3 { margin: 24px 0 6px; font-size: 14px; letter-spacing: .08em; }
h4 { margin: 22px 0 4px; font-size: 13px; }
p, li { color: var(--ink); }
p + p { margin-top: 12px; }
ul { padding-left: 1.2em; }
li + li { margin-top: 5px; }
.note, .updated { color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.lead { font-size: 16px; line-height: 1.85; }

.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { min-height: 126px; padding: 20px; background: var(--bg); }
.card h3 { margin: 0 0 7px; font-size: 14px; letter-spacing: .12em; }
.card p { font-size: 12px; color: var(--dim); line-height: 1.7; }

/* App Store バッジ。Apple が配布しているアートワークをそのまま置く(assets/style.css と同じ指定)。
   色・比率・内部の余白は変えない。高さだけ指定し、周囲の余白はバッジ高さの 1/4 以上空ける */
.badge-appstore { display: inline-block; line-height: 0; margin: 16px 16px 0 0; border-radius: 8px; }
.badge-appstore img { height: 52px; width: auto; }

.links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.links a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 11px; letter-spacing: .15em; transition: background .15s, border-color .15s;
}
.links a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.contact {
  margin-top: 15px; padding: 18px; border: 1px solid var(--line);
  background: var(--wash);
}
.contact .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: .04em; overflow-wrap: anywhere;
}

.doc { width: min(100% - 40px, 680px); }
.doc > section:first-child { padding-top: 46px; }
.doc h1 {
  padding-bottom: 16px; border-bottom: 1px solid var(--ink);
  font-size: clamp(21px, 5vw, 27px); letter-spacing: .07em;
}
.doc h2 { margin-top: 36px; }
.doc .en {
  margin-top: 55px; padding-top: 42px; border-top: 1px solid var(--ink);
  border-bottom: 0;
}
.doc .en > h2 {
  margin-bottom: 12px; color: var(--ink); font-size: 20px;
  letter-spacing: .05em; text-indent: 0; text-transform: none;
}
.doc .en h3 {
  padding-bottom: 7px; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .17em; color: var(--dim); text-transform: uppercase;
}

main.wrap > section.en {
  margin-top: 36px; padding-top: 44px; border-top: 1px solid var(--ink);
}
main.wrap > section.en > h2 {
  color: var(--ink); font-size: 20px; letter-spacing: .05em; text-indent: 0; text-transform: none;
}
main.wrap > section.en h3 {
  padding-bottom: 7px; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .17em; color: var(--dim); text-transform: uppercase;
}

.wrap.foot { padding-bottom: 60px; }
footer { padding: 28px 0; color: var(--dim); font-size: 10px; letter-spacing: .08em; text-align: center; }
footer .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 9px; }
footer .row a { color: var(--dim); text-decoration: none; font-size: 10px; }

@media (max-width: 640px) {
  .topbar { gap: 11px; overflow-x: auto; }
  .topbar a { font-size: 9px; letter-spacing: .1em; }
  .topbar .home { font-size: 10px; }
  .hero { min-height: 350px; background-size: 58px 58px; }
  .hero .tag { font-size: 13px; }
  section { padding: 33px 0; }
}
@media (max-width: 390px) {
  .feat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }