* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #30343b; font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #557299; outline-offset: 4px; }
.wrap { max-width: 1000px; margin: auto; padding: 0 32px; }
.skip { position: fixed; top: -100px; left: 20px; background: white; padding: 12px; z-index: 20; }
.skip:focus { top: 12px; }
.header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e8e8e8; }
.brand { display: flex; align-items: center; gap: 15px; font-size: 23px; font-weight: 700; white-space: nowrap; }
.site-icon { width: 58px; height: 58px; object-fit: contain; display: block; }
.nav { display: flex; gap: 25px; font-size: 13px; }
.nav a:hover, .footer a:hover, .crumb a:hover { text-decoration: underline; }
.hero { padding: 35px 0 26px; }
.hero h1 { font-size: 23px; margin: 0 0 8px; }
.hero-note { margin: 0; color: #6e7378; font-size: 13px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { display: block; min-width: 0; border: 1px solid #e4e5e7; border-radius: 6px; overflow: hidden; padding-bottom: 20px; }
.card:hover { border-color: #aab0b9; }
.art { aspect-ratio: 1.6; background: #f6f6f3; border-bottom: 1px solid #e4e5e7; overflow: hidden; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.meta { font-size: 11px; color: #787d84; padding: 16px 20px 4px; }
.card h3 { font-size: 18px; margin: 0; padding: 0 20px; line-height: 1.7; }
.card .catch { margin: 7px 0 0; padding: 0 20px; color: #676c72; font-size: 12px; }
.card-action { display: inline-block; margin: 15px 20px 0; color: #405576; font-size: 12px; }
.card-action::after { content: " ›"; }
.about-strip { padding: 30px 0; margin-top: 35px; border-top: 1px solid #eee; }
.about-strip p { margin: 0; color: #6b7178; font-size: 12px; line-height: 2; }
.footer { margin-top: 45px; border-top: 1px solid #e8e8e8; padding: 24px 0 34px; display: flex; justify-content: space-between; align-items: start; gap: 24px; font-size: 11px; color: #737982; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.crumb { font-size: 12px; color: #717780; margin: 28px 0; }
.detail-heading { margin: 26px 0 22px; }
.detail-heading h1 { font-size: 28px; line-height: 1.6; margin: 0 0 7px; }
.tag { font-size: 12px; color: #777e87; margin: 0; }
.player { position: relative; height: min(760px, 78svh); min-height: 440px; overflow: hidden; background: #f5f6f7; border: 1px solid #e0e3e7; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fafafa; padding: 22px; }
.cover > img { width: min(100%, 500px); height: auto; max-height: 46%; object-fit: contain; }
.cover-content { text-align: center; padding-top: 20px; }
.cover-content p { font-size: 20px; font-weight: 700; margin: 0 0 17px; }
.play-btn, .btn { display: inline-flex; gap: 23px; align-items: center; justify-content: center; border: 1px solid #344866; background: #344866; color: white; padding: 12px 35px; border-radius: 5px; font-weight: 700; font-size: 15px; }
.play-btn:hover, .btn:hover { background: #476180; }
.cover-content small { display: block; margin-top: 15px; color: #717780; font-size: 11px; line-height: 1.9; }
.player-tools { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eee; font-size: 12px; }
.player-tools button { border: 0; background: transparent; color: #344866; padding: 8px 0; font-size: 12px; }
.player-tools button:disabled { color: #aaa; }
.player-tools a { color: #344866; text-decoration: underline; text-underline-offset: 3px; }
.player-status { font-size: 11px; color: #777e87; }
.intro { padding: 30px 0; max-width: 820px; }
.intro > p { font-size: 14px; line-height: 2; margin: 0 0 30px; }
.intro h2 { font-size: 19px; margin: 28px 0 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.step { border-top: 1px solid #ddd; padding-top: 15px; }
.step .num { font-size: 12px; color: #808791; }
.step h3 { margin: 7px 0; font-size: 15px; }
.step p { font-size: 12px; color: #676e77; line-height: 1.9; }
.note, .art-credit { margin: 23px 0 0 !important; font-size: 11px !important; color: #777e87; }
.related { margin-top: 30px; padding: 22px 0; border-top: 1px solid #e8e8e8; }
.related h2 { margin: 0 0 14px; font-size: 15px; }
.related a { display: flex; justify-content: space-between; gap: 18px; color: #344866; font-size: 15px; }
.related a:hover { text-decoration: underline; }
.document { max-width: 740px; min-height: 50vh; padding-bottom: 30px; }
.document h1 { font-size: 27px; margin: 28px 0; line-height: 1.6; }
.document h2 { font-size: 18px; margin: 30px 0 10px; }
.document p, .document li { font-size: 14px; line-height: 2; color: #616973; }
.document .big { font-size: 20px; font-weight: 700; color: #30343b; }
.document a { color: #344866; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.document ul { padding-left: 24px; }
.contact-link { display: inline-block; margin-top: 8px; }
.advert { margin: 180px 0 40px; padding-top: 20px; border-top: 1px solid #eee; min-height: 138px; }
.advert-label { text-align: center; font-size: 10px; color: #8a8f96; margin: 0 0 20px; }
.advert ins { display: block; min-height: 90px; }
.notfound { padding: 65px 0; }
.notfound .code { font-size: 40px; color: #747c87; }
.notfound h1 { font-size: 23px; }
.notfound p { font-size: 14px; color: #6b7178; }
.notfound .btn { margin-top: 20px; }
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .header { min-height: 100px; flex-wrap: wrap; justify-content: center; padding: 19px 0 15px; gap: 13px; }
  .brand { font-size: 22px; gap: 12px; }
  .site-icon { width: 48px; height: 48px; }
  .nav { width: 100%; justify-content: center; font-size: 12px; gap: 30px; }
  .hero { padding: 25px 0 20px; }
  .hero h1 { font-size: 21px; }
  .hero-note { font-size: 12px; }
  .grid { gap: 18px; }
  .card h3 { font-size: 16px; padding: 0 14px; }
  .meta { padding: 12px 14px 4px; }
  .card .catch { padding: 0 14px; }
  .card-action { margin-left: 14px; }
  .footer { display: block; }
  .footer-links { margin-top: 16px; gap: 16px; font-size: 10px; }
  .steps { gap: 18px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .card h3 { font-size: 18px; }
  .card { padding-bottom: 17px; }
  .detail-heading h1 { font-size: 23px; }
  .player { height: 76svh; min-height: 440px; margin: 0 -20px; border-left: 0; border-right: 0; }
  .cover { padding: 20px; }
  .cover-content p { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; }
  .step .num { grid-row: 1/3; }
  .step h3 { margin: 0 0 5px; }
  .step p { margin: 0; }
  .document h1 { font-size: 25px; }
  .document p, .document li { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.art img { object-fit: contain; }
.text-cover { width:100%; height:100%; min-height:180px; display:grid; place-items:center; padding:32px; background:#f3f4f5; color:#535c68; font-size:21px; text-align:center; font-weight:700; }
.cover > .text-cover { max-height:40%; height:auto; max-width:500px; }
.share-notice { font-size:13px; padding:14px 16px; background:#f5f7f5; border-radius:5px; margin:20px 0; line-height:1.9; }
.creator { display:flex; gap:18px; align-items:center; border-top:1px solid #eee; padding:28px 0; margin-top:40px; }
.creator h2 { font-size:16px; margin:0; }
.creator p { font-size:13px; margin:4px 0; }
.creator a { font-size:14px; color:#344866; text-decoration:underline; }
.play-count { display:block; color:#747c85; font-size:12px; }
.card .play-count { padding:0 20px; margin-top:5px; }

/* Open the game at the full browser viewport size. */
.game-page > .wrap { max-width:none; padding:0; }
.game-page .header, .game-page .crumb, .game-page .detail-heading { display:none; }
.game-page main > .play-count { margin:0; padding:8px 20px; }
.game-page main { display:flex; flex-direction:column; }
.game-page main > section[aria-label="ゲーム画面"] { order:-1; }
.game-page .player { height:100vh; height:100svh; min-height:0; width:100%; margin:0; border:0; }
.game-page .player:fullscreen { height:100%; width:100%; }
.game-page .player-tools, .game-page .player-status, .game-page .intro, .game-page .related, .game-page .share-notice, .game-page .advert, .game-page .footer { width:calc(100% - 40px); max-width:960px; margin-left:auto; margin-right:auto; }
.game-page .intro { padding-top:16px; }
/* Compact phone catalogue: three game cards per row. */
@media (max-width: 1024px) {
  body:not(.game-page) .wrap { padding-left:12px; padding-right:12px; }
  body:not(.game-page) .header { min-height:0; padding:12px 0 10px; gap:6px; }
  body:not(.game-page) .brand { font-size:19px; gap:9px; }
  body:not(.game-page) .site-icon { width:36px; height:36px; }
  body:not(.game-page) .nav { gap:24px; font-size:11px; }
  .hero { padding:18px 0 14px; }
  .hero h1 { font-size:19px; margin-bottom:3px; }
  .hero-note { font-size:12px; }
  .hero .share-notice { font-size:11px; padding:8px 10px; margin:10px 0 0; }
  #games .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  #games .card { display:flex; flex-direction:column; padding-bottom:9px; border-radius:6px; }
  #games .art { aspect-ratio:1; flex:none; }
  #games .art img { object-fit:cover; object-position:center; }
  #games .text-cover { min-height:0; padding:10px 6px; font-size:13px; line-height:1.6; }
  #games .meta { font-size:9px; line-height:1.4; padding:7px 7px 4px; overflow-wrap:anywhere; }
  #games .card h3 { padding:0 7px; font-size:12px; line-height:1.55; letter-spacing:0; overflow-wrap:anywhere; }
  #games .card .catch, #games .card-action { display:none; }
  #games .card .play-count { padding:8px 7px 0; margin-top:auto; font-size:9px; line-height:1.5; overflow-wrap:anywhere; }
  .creator { margin-top:25px; padding:20px 0; }
}

#games .art img[src$="-profile.png"] { object-fit:cover; object-position:50% 60%; }

#games .art img[src$="eyes-off-profile.png"] { object-position:50% 86%; }
#games .art img[src$="kawaii-tabi-profile.png"] { object-position:50% 80%; }

.game-page { --game-bar-height:calc(64px + env(safe-area-inset-top,0px)); }
.game-bar { position:sticky; top:0; z-index:100; display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:8px; height:var(--game-bar-height); padding:env(safe-area-inset-top,0px) 8px 0; border-bottom:1px solid #dce0e4; background:#fff; }
.game-bar-title { font-size:16px; font-weight:700; line-height:1.4; text-align:center; overflow-wrap:anywhere; }
.game-bar-home { display:grid; place-items:center; height:44px; }
.game-bar-home img { width:32px; height:32px; object-fit:contain; }
.game-menu summary { position:relative; z-index:103; display:grid; place-items:center; width:44px; height:44px; cursor:pointer; list-style:none; border-radius:4px; }
.game-menu summary::-webkit-details-marker { display:none; }
.hamburger { display:grid; gap:5px; width:24px; }
.hamburger i { display:block; height:2px; background:#344052; border-radius:2px; }
.game-menu[open] summary { background:#eef1f4; }
.menu-backdrop { position:fixed; inset:var(--game-bar-height) 0 0; background:rgba(0,0,0,.3); border:0; width:100%; height:calc(100dvh - var(--game-bar-height)); z-index:101; }
.game-menu-panel { position:absolute; top:100%; left:0; z-index:102; width:min(340px,90vw); max-height:calc(100svh - var(--game-bar-height)); overflow-y:auto; overscroll-behavior:contain; background:#fff; border:1px solid #e2e5e8; border-top:0; padding:12px 16px 20px; box-shadow:3px 6px 16px #0002; }
.game-menu-panel a { display:block; padding:11px 8px; font-size:14px; line-height:1.6; border-radius:4px; }
.game-menu-panel a:hover,.game-menu-panel a[aria-current="page"] { background:#eef1f4; }
.game-menu-panel p { color:#737c86; font-size:11px; margin:15px 8px 4px; }
.game-menu-panel .menu-home { font-weight:700; }
.menu-extra { border-top:1px solid #e8e8e8; margin-top:10px; padding-top:10px; }
.game-page .player { height:calc(100vh - var(--game-bar-height)); height:calc(100svh - var(--game-bar-height)); }
.game-page .player:fullscreen { width:100%; height:100%; }
@media(max-width:400px) { .game-bar-title { font-size:14px; } }
