* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #183a3b; background: #f8fafb; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 10; background: #fff; padding: 10px; }
.skip-link:focus { top: 12px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 0 max(20px, calc((100% - 860px) / 2)); border-bottom: 1px solid #dce5e3; background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #246052; font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; }
.brand-mark { font-size: 1.7rem; font-weight: 400; }
.back { color: #246052; font-size: .86rem; font-weight: 700; }
.back:hover { text-decoration: underline; }
.page { width: min(100% - 32px, 860px); margin: 30px auto 70px; }
.eyebrow { margin: 0; color: #307468; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 8px 0; font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.3; letter-spacing: -.04em; }
.intro { max-width: 44rem; margin: 0 0 24px; color: #516b70; font-size: .95rem; line-height: 1.8; }
.game { position: relative; overflow: hidden; border: 1px solid #cadfdb; border-radius: 27px; background: radial-gradient(ellipse 130px 45px at 18% 22%, rgba(255,255,255,.72) 0 68%, transparent 70%), radial-gradient(ellipse 170px 52px at 79% 43%, rgba(255,255,255,.67) 0 68%, transparent 70%), linear-gradient(165deg, #d5f0f0 0%, #e9f5e7 65%, #fbefd9 100%); box-shadow: 0 16px 38px rgba(36,80,77,.10); }
#sound-toggle:focus-visible, #bubble-canvas:focus-visible, .parent-settings summary:focus-visible { outline: 3px solid #2b7067; outline-offset: 3px; }
#bubble-canvas { display: block; width: 100%; height: clamp(400px, 62svh, 660px); touch-action: none; cursor: pointer; }
.tip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border-radius: 999px; background: rgba(255,255,255,.73); padding: 8px 16px; color: #456763; font-size: .82rem; font-weight: 700; pointer-events: none; white-space: nowrap; }
.parent-prompt { margin: 18px 4px 0; border-left: 3px solid #83b2a8; padding: 4px 0 4px 12px; color: #3f6661; font-size: .88rem; line-height: 1.7; }
.parent-note { margin: 14px 4px 0; color: #697b7b; font-size: .83rem; line-height: 1.7; }
.parent-settings { margin: 16px 4px 0; border-top: 1px solid #dce5e3; padding-top: 13px; color: #516b70; font-size: .83rem; }
.parent-settings summary { width: fit-content; cursor: pointer; }
.sound-setting { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
#sound-toggle { border: 1px solid #cadfdb; border-radius: 8px; background: #fff; color: #255a5a; padding: 8px 13px; font: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .header { min-height: 60px; padding: 0 16px; }
  .brand { font-size: 1.1rem; }
  .back { font-size: .78rem; }
  .page { width: calc(100% - 24px); margin: 25px auto 40px; }
  .intro { font-size: .85rem; }
  .game { border-radius: 22px; }
  #bubble-canvas { height: min(62svh, 560px); min-height: 360px; }
}

