:root {
  --ink: #253331;
  --muted: #667572;
  --line: #dce9e4;
  --mint: #8edfc1;
  --mint-deep: #2f8f70;
  --warn: #efb75d;
  --paper: #fffefa;
  --shadow: 0 18px 45px rgba(45, 92, 78, 0.12);
  --panel: #10191d;
  --panel-soft: #17262b;
  --panel-line: #31505a;
  --cyan: #52d6dc;
  --yellow: #ffd34a;
  --green: #79dc9b;
  --white: #f5fbfb;
  color-scheme: light;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 12%, rgba(142, 223, 193, 0.14), transparent 25%),
    linear-gradient(180deg, #fff 0%, #fbfffd 48%, #f6fbf8 100%);
  font-size: 16px;
  line-height: 1.7;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.site-header, .site-footer, .reflex-page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-header { padding: 18px 0 8px; }
.site-logo { color: var(--mint-deep); font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.site-nav, .site-footer { color: var(--muted); font-size: .92rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-nav a, .site-footer a { color: inherit; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { color: var(--mint-deep); }
.site-footer { flex-wrap: wrap; padding: 26px 0 40px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: #315d68; }
.reflex-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); gap: clamp(20px, 5vw, 64px); align-items: center; padding: 38px 0 26px; }
.series-label { margin: 0 0 10px; color: var(--mint-deep); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.16; }
.hero-copy > p:last-child { max-width: 680px; margin: 18px 0 0; color: #40524f; font-size: 1.05rem; }
.hero-note { display: grid; gap: 5px; padding: 17px 19px; border: 1px solid #d5e9e0; border-radius: 8px; background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(45,92,78,.07); }
.hero-note strong { color: #8f4c32; font-size: 1.15rem; }
.hero-note span { font-weight: 750; }
.hero-note small { margin-top: 4px; color: var(--muted); }

.game-shell { padding: clamp(8px, 1.8vw, 16px); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
#flight-view {
  display: block;
  width: 100%;
  height: clamp(520px, 72vh, 760px);
  border: 1px solid #28454d;
  border-radius: 6px;
  background: var(--panel);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 4px;
}
#flight-view:focus-visible { outline: 3px solid var(--mint-deep); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.usage-section { padding: 28px 0 6px; }
.usage-section h2 { margin-bottom: 12px; font-size: 1.45rem; }
.usage-section p { max-width: 780px; color: #40524f; }
.usage-steps { display: grid; gap: 8px; padding-left: 1.5rem; }
.usage-steps li { padding-left: 5px; }
.usage-steps li::marker { color: var(--mint-deep); font-weight: 900; }
.notice, .comment-note { color: #536762; font-size: .83rem; }
.notice { padding: 10px 13px; border-left: 3px solid #ce8d50; background: #fff8e9; }
.comment-note { padding: 10px 13px; border-left: 3px solid #9ab1a7; background: #f0f6f2; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .site-nav { justify-content: flex-end; gap: 8px 12px; font-size: .82rem; }
  .reflex-hero { grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; padding-top: 28px; }
  .hero-note { padding: 12px; font-size: .83rem; }
  .hero-note small { font-size: .68rem; }
  #flight-view { height: clamp(520px, 76svh, 720px); }
}

@media (max-width: 480px) {
  .site-header, .site-footer, .reflex-page { width: min(100% - 20px, 1080px); }
  .site-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-logo { font-size: .72rem; letter-spacing: .04em; }
  .site-nav { justify-content: flex-start; gap: 6px 9px; font-size: .72rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .breadcrumb { font-size: .7rem; }
  .reflex-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 0 20px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.55rem); }
  .hero-copy > p:last-child { margin-top: 11px; font-size: .94rem; }
  .hero-note { grid-template-columns: minmax(0, 1fr); align-items: start; row-gap: 6px; }
  .hero-note small { grid-column: auto; }
  .game-shell { padding: 7px; }
  #flight-view { height: clamp(520px, 76svh, 720px); }
}

@media (orientation: landscape) and (max-width: 960px) and (max-height: 500px) {
  #flight-view { height: calc(100svh - 24px); min-height: 330px; max-height: 470px; }
  .game-shell { padding: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
