:root {
  color-scheme: light;
  --paper: #f8faf5;
  --ink: #172e27;
  --green: #216b55;
  --muted: #476157;
  --line: #d8e3d9;
  --white: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.55rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #205eab; outline-offset: 5px; }
[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(1160px, calc(100% - 5rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .6rem;
  left: .6rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #e0e9df; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); align-items: center; }
.site-header nav a { position: relative; color: var(--muted); font-weight: 700; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -.5rem;
  height: 2px;
  background: #39896b;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: .62rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: .94rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms;
}
.button-dark { background: #193b30; color: var(--white); }
.button-dark:hover { background: #28624f; }
.button-outline { border-color: #a2baac; color: #204e3d; background: var(--white); }
.button-outline:hover { background: #e5f3e8; border-color: #77a28e; }

.home-hero {
  display: grid;
  grid-template-columns: .91fr 1.09fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 4.4vw, 4.5rem);
}
.home-intro h1 { font-size: clamp(2.6rem, 5.25vw, 4.8rem); letter-spacing: -.076em; line-height: 1.18; white-space: nowrap; }
.home-intro h1 span { color: var(--green); }
.home-intro p { margin: 1.4rem 0 1.8rem; color: var(--muted); line-height: 1.95; }
.hero-art {
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 2rem);
  border-radius: 2rem;
  border: 1px solid #ddddef;
  background: #eae9f5;
}
.hero-art img {
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid #303451;
  background: #232641;
  box-shadow: 0 10px 20px #27244726;
}

.library { background: #eff4eb; border-block: 1px solid #e3ebe0; padding-block: clamp(2.6rem, 5.5vw, 5.2rem); }
.library h2 { margin-bottom: 1.55rem; }
.game-grid { display: grid; gap: 1.35rem; }
.game-card { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 1.5rem; overflow: hidden; }
.game-cover {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 260px;
  background: #232641;
}
.game-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.game-card-copy { align-self: center; padding: clamp(1.35rem, 3.4vw, 2.5rem); }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; color: #36574a; }
.pills span { border-radius: 50px; background: #eaf2e9; padding: .2rem .65rem; font-size: .875rem; font-weight: 700; }
.game-card h3 { margin: .6rem 0 .3rem; font-size: 2.2rem; }
.game-card p { color: var(--muted); max-width: 28rem; }
.game-card .button { margin-top: 1.2rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .65rem; padding-block: 1.25rem; font-size: .875rem; color: var(--muted); }
.detail-hero { display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding: 1.3rem 0 clamp(3rem, 6.5vw, 5.65rem); }
.detail-genre { font-weight: 800; color: var(--green); }
.detail-intro h1 { margin: .45rem 0 1.1rem; font-size: clamp(3.6rem, 8vw, 7rem); letter-spacing: -.08em; }
.detail-intro h1 span { display: block; margin-top: .3rem; color: #347b62; font: 800 .88rem/1.4 system-ui, sans-serif; letter-spacing: .25em; }
.detail-intro .game-tagline { margin-bottom: .65rem; font-size: clamp(1.2rem, 2.6vw, 1.65rem); color: var(--ink); font-weight: 800; }
.detail-intro p { max-width: 29rem; color: var(--muted); }
.detail-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.demo { overflow: hidden; position: relative; isolation: isolate; padding: 1.25rem; border-radius: 1.75rem; border: 1px solid #b5d8c3; background: #e9f5e9; }
.demo h2 { text-align: center; color: #235d47; font-size: 1.08rem; letter-spacing: 0; }
.demo-stage { position: relative; isolation: isolate; display: grid; justify-items: center; }
.demo-stage::before { content: ""; position: absolute; z-index: -1; width: 70%; height: 79%; bottom: 2%; border-radius: 50%; background: radial-gradient(ellipse, #bbdfcd 0, #d8ede1 54%, transparent 75%); }
.demo-star { position: absolute; color: #538c70; left: 16%; top: 36%; font-size: 1.55rem; }
.demo-star-small { left: auto; right: 16%; top: 51%; font-size: 1.2rem; }
.demo-shadow { position: absolute; width: 33%; height: 7%; bottom: 17%; border-radius: 50%; background: #6daa9147; filter: blur(5px); }
.sprite-button { display: block; position: relative; background: transparent; border: 0; padding: 0; cursor: pointer; width: min(79%, 275px); border-radius: 1rem; }
.sprite-button:disabled { cursor: default; }
.sprite-button img, .sprite-button canvas { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 6px #448c7240); }
.sprite-button [hidden] { display: none; }
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.motion-button { min-height: 44px; border-radius: 50px; border: 1px solid #a8c6b6; padding: .3rem .85rem; color: #244f3e; background: #f9fdf9; font-size: .9rem; font-weight: 800; cursor: pointer; }
.motion-button:enabled:hover, .motion-button.is-active { background: #d0ead8; border-color: #7ba995; }
.motion-button:disabled { cursor: default; }
.demo-caption { margin: .7rem 0 0; color: var(--muted); text-align: center; font-size: .875rem; min-height: 1.75em; }

.section { padding-block: clamp(2.9rem, 6vw, 5.5rem); }
.section-intro { margin-bottom: 1.6rem; }
.section-intro p { color: var(--muted); margin-top: .65rem; max-width: 41rem; }
.scene-section { background: #edf3eb; border-block: 1px solid #e2ebe1; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.scene img { width: 100%; aspect-ratio: 872 / 530; object-fit: cover; border-radius: 1.15rem; background: #253f47; }
.scene h3 { margin-top: 1rem; }
.scene p { color: var(--muted); margin-top: .45rem; }
.scene-note { margin-top: 1.15rem; color: var(--muted); font-size: .875rem; }
.friends-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 15vw, 11rem);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid #cfe5d7;
  border-radius: 1.5rem;
  background: #e5f2e8;
}
.friends-panel p { max-width: 36rem; margin-top: .65rem; color: var(--muted); }
.friends-panel img { width: 100%; filter: drop-shadow(0 4px 6px #16423530); }

.faq-section { border-block: 1px solid #e1e9e0; background: #f1f5ee; }
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; }
.faq details { border-bottom: 1px solid #cfdcd1; }
.faq details:first-child { border-top: 1px solid #cfdcd1; }
.faq summary { list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .85rem .15rem; min-height: 48px; cursor: pointer; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font: 500 1.45rem/1 system-ui, sans-serif; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 .15rem 1rem; color: var(--muted); }
.steam-panel { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: clamp(1.5rem, 4.8vw, 3.5rem); border-radius: 1.7rem; background: #1c3b30; color: #f7fffa; }
.steam-panel h2 { font-size: clamp(1.45rem, 4.4vw, 2.3rem); }
.steam-panel p { margin-top: .65rem; color: #e0eee6; }
.steam-panel .platform { color: #c3e2d1; font-size: .9rem; }
.steam-panel img { width: clamp(68px, 15vw, 185px); flex-shrink: 0; }
.cat-intro .detail-genre, .cat-intro h1 span { color: #525489; }
.cat-intro h1 { font-size: clamp(1.75rem, 3.9vw, 3.5rem); letter-spacing: -.055em; }
.cat-showcase { margin: 0; }
.cat-showcase img { width: 100%; border: 1px solid #303451; border-radius: 1.6rem; background: #232641; }
.cat-showcase figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.cat-life { background: #efeff7; border-block: 1px solid #e4e4f0; }
.cat-feature { padding: 1.3rem; border: 1px solid #ddddef; border-radius: 1.2rem; background: #fafaff; }
.cat-feature h3 { color: #373960; }
.cat-feature p { margin-top: .5rem; color: var(--muted); }
.cat-break { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.25rem, 5vw, 4.5rem); }
.cat-break .section-intro { margin-bottom: 0; }
.cat-steam { background: #2a2d4c; }
.cat-steam p, .cat-steam .platform { color: #e1e3f7; }
.asset-credit { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; font-size: .875rem; color: var(--muted); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 3rem); }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .home-hero, .detail-hero, .faq-layout, .cat-break { grid-template-columns: 1fr; gap: 1.7rem; }
  .home-intro h1 { font-size: clamp(2.9rem, 9.3vw, 4.85rem); }
  .home-intro p { margin: .95rem 0 1.25rem; }
  .game-card { grid-template-columns: 1fr; }
  .game-cover { min-height: 0; aspect-ratio: 1.8; }
  .detail-hero { padding-top: .6rem; }
  .demo { width: 100%; max-width: 535px; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
}

@media (max-width: 495px) {
  .header-inner { min-height: 64px; gap: .55rem; }
  .site-header .brand { gap: .3rem; font-size: .91rem; }
  .site-header .brand img { width: 30px; }
  .site-header nav { gap: .7rem; }
  .site-header nav a { font-size: .85rem; }
  .hero-art { border-radius: 1.4rem; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene h3 { margin-top: .7rem; }
  .friends-panel { grid-template-columns: 1fr; }
  .friends-panel img { width: 88px; justify-self: end; }
  .steam-panel { padding: 1.25rem; gap: .75rem; }
  .steam-panel img { width: 62px; }
}

@media (max-width: 325px) {
  .home-intro h1 { font-size: 2.5rem; }
  .site-header nav { gap: .5rem; }
  .site-header .brand img { display: none; }
  .steam-panel img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
