* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; color: #333; background: #fff; line-height: 1.9; overflow-wrap: anywhere; }
a { color: #3867d6; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid #4f7ef7; outline-offset: 5px; border-radius: 3px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 200; background: #fff; padding: 0.5rem 1rem; }
.skip-link:focus { top: 0.5rem; }
.site-header { border-bottom: 1px solid #eee; padding: 1.2rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; background: #fff; z-index: 100; line-height: 1.5; }
.logo { font-size: 1.3rem; font-weight: 600; color: #111; letter-spacing: -0.5px; text-decoration: none; white-space: nowrap; }
.logo span { color: #4f7ef7; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; }
.site-nav a { color: #555; font-size: 0.9rem; text-decoration: none; }
.site-nav a:hover { color: #3867d6; }
.page-hero { padding: 3.5rem 2rem 0; background: #f9fafb; border-bottom: 1px solid #eee; text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-block; background: #eef2ff; color: #3867d6; font-size: 0.8rem; padding: 0.25rem 0.85rem; border-radius: 20px; margin-bottom: 1.3rem; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; color: #6a6476; margin-bottom: 0.45rem; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.5; color: #111; letter-spacing: 0.02em; }
.hero-lead { color: #555; margin: 1rem auto 1.6rem; font-size: 1rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }
.btn-primary, .btn-secondary { display: inline-block; padding: 0.75rem 2rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; text-decoration: none; line-height: 1.5; transition: background 0.2s; }
.btn-primary { background: #4f7ef7; color: #fff; border: 1px solid #4f7ef7; }
.btn-primary:hover { background: #3a6ae8; }
.btn-secondary { background: #fff; border: 1px solid #d6deee; color: #3867d6; }
.btn-secondary:hover { background: #eef2ff; }
.play-note { font-size: 0.78rem; color: #6b7280; margin: 0.85rem 0 1.75rem; }
figure img { display: block; width: 100%; height: auto; }
.hero-image { max-width: 800px; margin: 0 auto; border: 1px solid #e0d9c8; border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 3px 20px rgb(31 35 55 / 6%); }
.container { max-width: 864px; padding: 0 2rem 3rem; margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; font-size: 0.78rem; color: #6b7280; padding: 1.3rem 0 0; }
.breadcrumb a { color: #6b7280; text-decoration: none; }
.container section { margin-top: 3.5rem; }
.container .intro { margin-top: 2.6rem; }
.section-label { font-size: 0.78rem; font-weight: 600; color: #3867d6; margin-bottom: 0.35rem; letter-spacing: 0.04em; }
h2 { color: #111; font-size: 1.35rem; line-height: 1.6; margin-bottom: 1.1rem; }
h3 { color: #222; font-size: 1rem; line-height: 1.6; }
section > p { font-size: 0.95rem; margin-bottom: 1rem; }
.game-image { margin-top: 1.7rem; }
.game-image img { border: 1px solid #e0d9c8; border-radius: 10px; }
figcaption { margin-top: 0.65rem; font-size: 0.78rem; text-align: center; color: #6b7280; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.3rem; font-size: 0.92rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: #eef2ff; color: #3867d6; font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; }
.steps strong, .steps span { display: block; }
.steps strong { color: #222; margin-bottom: 0.15rem; }
.controls { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5e7eb; border-radius: 10px; margin: 1.7rem 0; }
.control { padding: 1.4rem; }
.control + .control { border-left: 1px solid #e5e7eb; }
.control p { font-size: 0.87rem; color: #555; }
.key-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0; font-size: 0.8rem; color: #555; }
kbd, .touch-key { font-family: inherit; font-size: 0.86rem; border: 1px solid #d1d5db; background: #f9fafb; padding: 0.1rem 0.5rem; border-radius: 4px; color: #333; white-space: nowrap; }
.key-row kbd, .touch-key { min-width: 2rem; text-align: center; border-bottom-width: 3px; font-size: 1rem; }
.key-row > span:last-child { margin-left: 0.3rem; }
.note { background: #f9fafb; border-left: 3px solid #c7d2fe; padding: 1.2rem 1.4rem; border-radius: 0 8px 8px 0; }
.note h3 { font-size: 0.94rem; margin-bottom: 0.6rem; }
.note p { color: #555; font-size: 0.87rem; }
.note p + p { margin-top: 0.7rem; }
.note kbd { margin: 0 0.2rem; }
.difficulty-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; margin-top: 1.3rem; }
.difficulty-list li { padding: 1.1rem; }
.difficulty-list li:first-child { padding-left: 0; }
.difficulty-list li + li { border-left: 1px solid #e5e7eb; }
.difficulty-list h3 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.difficulty-list p { font-size: 0.85rem; color: #555; }
.item-list { border-top: 1px solid #e5e7eb; }
.item-list > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1.2rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid #e5e7eb; }
.item-list dt { display: flex; align-items: center; gap: 0.7rem; color: #222; font-weight: 600; font-size: 0.95rem; }
.item-list dd { font-size: 0.9rem; color: #555; }
.item-symbol { flex-shrink: 0; display: grid; place-items: center; height: 2.4rem; width: 2.4rem; border-radius: 50%; font-size: 1.4rem; }
.star { color: #947021; background: #fcf4df; }
.life { color: #b34067; background: #fceef2; font-size: 1.1rem; }
.moon { color: #67529c; background: #f1edfa; }
section > .small-note { font-size: 0.8rem; color: #6b7280; }
.container .closing { text-align: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2.2rem 1.2rem 0.5rem; margin-bottom: 2rem; }
.closing-star { color: #b5974f; font-size: 1.8rem; }
.closing h2 { margin: 0.5rem 0 0.7rem; }
.closing > p { color: #555; font-size: 0.9rem; }
.closing .play-note { font-size: 0.78rem; color: #6b7280; }
.back-link { font-size: 0.85rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
footer { display: flex; justify-content: center; gap: 0.4rem 0.6rem; flex-wrap: wrap; text-align: center; padding: 1.5rem; font-size: 0.78rem; color: #6b7280; border-top: 1px solid #eee; }
footer a { color: #6b7280; }
@media (max-width: 600px) {
  html { scroll-padding-top: 8.5rem; }
  .site-header { padding: 1rem 1.2rem; align-items: flex-start; flex-direction: column; gap: 0.6rem; }
  .site-nav { gap: 0.5rem 1.1rem; }
  .site-nav a { font-size: 0.83rem; }
  .page-hero { padding: 2.3rem 1rem 0; }
  .hero-lead { font-size: 0.9rem; }
  .btn-primary, .btn-secondary { padding: 0.75rem 1.2rem; font-size: 0.88rem; }
  .container { padding: 0 1rem 2.5rem; }
  .container section { margin-top: 2.7rem; }
  h2 { font-size: 1.2rem; }
  .controls { grid-template-columns: 1fr; }
  .control + .control { border-left: 0; border-top: 1px solid #e5e7eb; }
  .difficulty-list { grid-template-columns: 1fr; }
  .difficulty-list li, .difficulty-list li:first-child { padding: 1rem 0; }
  .difficulty-list li + li { border-left: 0; border-top: 1px solid #eee; }
  .item-list > div { grid-template-columns: 1fr; gap: 0.65rem; }
  .item-list dd { padding-left: 3.1rem; }
  .steps li { padding-left: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
