:root {
  color-scheme: light;
  --ink: #171f33;
  --muted: #50586a;
  --blue: #2448b6;
  --blue-dark: #193689;
  --line: #d9deea;
  --panel: #f4f6fb;
  --shell: 1152px;
  font: 16px/1.75 "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: #fff; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, figure { margin-top: 0; }
a { color: var(--blue-dark); text-underline-offset: .23em; }
a:hover { color: var(--blue); }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 8; padding: .6rem 1rem; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--blue); text-decoration: none; }
.logo-type { font: 900 clamp(1.6rem, 3vw, 1.97rem)/1 system-ui, sans-serif; letter-spacing: -.055em; }
.desktop-nav { display: flex; min-height: 79px; align-items: stretch; gap: 32px; }
.desktop-nav a { display: grid; place-items: center; padding-inline: 6px; border-bottom: 3px solid transparent; color: var(--ink); font-size: .94rem; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.mobile-menu { display: none; }
.brand-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 20px; padding-block: 29px 14px; }
.brand-intro h1 { margin: 0; font-size: clamp(1.12rem, 2.3vw, 1.43rem); line-height: 1.5; letter-spacing: .015em; }
.brand-intro p { margin: 0; color: var(--muted); font-size: .94rem; }
.promotion { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1fr); background: #f8ead8; min-height: 390px; overflow: hidden; }
.promotion-copy { position: relative; z-index: 2; align-self: center; padding: clamp(24px, 4.3vw, 60px); }
.promotion-copy h1, .promotion-copy h2 { font-size: clamp(2rem, 4.25vw, 3.45rem); line-height: 1.22; letter-spacing: -.055em; margin: .62rem 0 .85rem; }
.promotion-copy p { max-width: 23rem; font-weight: 550; color: #453c34; margin-bottom: 1.35rem; }
.game-art { position: relative; z-index: 1; min-width: 0; min-height: 235px; overflow: hidden; background: #f4dabc; }
.game-art::before { content: ""; position: absolute; z-index: -1; background: #e39467; inset: 0; clip-path: polygon(42% 0, 100% 0, 100% 100%, 9% 100%); }
.game-art::after { content: ""; position: absolute; z-index: -1; background: #efd2a8; inset: 0; clip-path: polygon(89% 0, 100% 0, 100% 100%, 63% 100%); }
.art-screen { position: absolute; top: 10%; left: 43%; width: 42%; height: 93%; max-width: 244px; object-fit: cover; object-position: top; box-shadow: 6px 7px 0 #773d2f3b; border: 4px solid #242332; border-radius: 8px; transform: rotate(6deg); }
.sprite { position: absolute; width: 30%; height: 42%; object-fit: contain; image-rendering: pixelated; }
.sprite-warm { left: 9%; bottom: 15%; }
.sprite-ice { right: 4%; bottom: 7%; width: 23%; height: 33%; }
.tag-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.game-status { display: inline-flex; align-items: center; width: fit-content; padding: .12rem .47rem; border: 1px solid #b7c2db; background: #f5f7fe; color: #2d4081; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.promotion .game-status { border-color: #aa6d4f; background: #fff7eb; color: #754731; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1.14rem; border: 1px solid transparent; border-radius: 4px; font-size: .94rem; font-weight: 750; line-height: 1.4; text-decoration: none; text-align: center; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); color: #fff; }
.button-secondary { border-color: #9facd0; background: #fff; color: var(--blue-dark); }
.button-secondary:hover { background: #edf1ff; }
.home-section, .detail-section { margin-top: clamp(39px, 6vw, 72px); }
.section-header, .home-support { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem 1rem; }
.section-header { margin-bottom: 16px; }
.section-header a { font-weight: 700; }
.section-title { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.38; letter-spacing: -.035em; margin: 0 0 16px; }
.section-header .section-title { margin: 0; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.category-button { min-height: 56px; border-radius: 6px; font-size: 1.06rem; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 108px minmax(90px, 125px) minmax(0, 1fr); gap: 12px; align-items: center; min-height: 67px; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-list a:hover { background: var(--panel); }
.news-list a:hover .news-title { text-decoration: underline; }
.news-list time, .entry-meta time { color: var(--muted); font: 650 .92rem/1.5 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.news-tag { width: fit-content; border: 1px solid #c6d0eb; padding: .1rem .46rem; color: var(--blue-dark); background: #f0f3fc; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.news-title { font-weight: 700; }
.home-support { align-items: center; background: var(--panel); padding: 22px 26px; }
.home-support .section-title { margin-bottom: .2rem; font-size: clamp(1.24rem, 2.5vw, 1.65rem); }
.home-support p { color: var(--muted); margin: 0; }
.site-footer { margin-top: clamp(54px, 7vw, 85px); background: #f3f5fa; border-top: 1px solid var(--line); }
.footer-inner, .footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner { padding: 23px 0 17px; }
.footer-inner p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; }
.footer-nav a, .footer-bottom a { color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 650; text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding: 9px 0 14px; align-items: center; color: var(--muted); }
.footer-bottom small { font-size: .82rem; }
.catalog-page, .page-shell, .content-page { padding-top: clamp(32px, 5vw, 57px); }
.catalog-page, .page-shell { min-height: 49vh; }
.page-title { margin: 0 0 .67rem; font-size: clamp(1.9rem, 4.7vw, 3.05rem); line-height: 1.32; letter-spacing: -.045em; }
.page-intro { color: var(--muted); margin-bottom: 1.25rem; }
.news-filters { display: flex; gap: 0 5px; flex-wrap: wrap; margin: 21px 0 24px; border-bottom: 1px solid var(--line); }
.news-filters a { display: inline-flex; min-height: 43px; align-items: center; padding: .42rem .88rem; border-bottom: 3px solid transparent; color: var(--ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.news-filters a:hover, .news-filters a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); background: #f3f6ff; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0 24px; }
.game-list { display: grid; gap: 18px; }
.game-card { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; background: #fff; border: 1px solid var(--line); }
.game-card-text { grid-template-columns: 1fr; }
.game-card-art { display: block; position: relative; min-height: 220px; background: #f8ead8; }
.game-card-art .game-art { min-height: 100%; height: 100%; }
.game-card-art:focus-visible { outline-offset: -4px; z-index: 2; }
.game-card-info { align-self: center; padding: 24px clamp(17px, 3.2vw, 40px); }
.game-card h2 { margin: .61rem 0 .35rem; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.32; }
.game-card h2 a { color: var(--ink); text-decoration: none; }
.game-card h2 a:hover { color: var(--blue); text-decoration: underline; }
.game-card p { color: var(--muted); margin-bottom: .85rem; }
.card-actions, .action-row, .section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.card-actions > span { color: var(--muted); font-size: .9rem; }
.app-empty, .empty-state { max-width: 52rem; padding: 20px 24px; background: var(--panel); color: var(--muted); }
.app-empty h2 { color: var(--ink); font-size: 1.22rem; margin-bottom: .2rem; }
.app-empty p { margin-bottom: .4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-block: 17px; font-size: .88rem; color: var(--muted); }
.detail-hero.no-app-art { grid-template-columns: 1fr; min-height: 0; }
.promotion-copy .action-row { gap: .55rem; }
.section-note { margin: -.25rem 0 1.15rem; color: var(--muted); }
.feature-list, .store-list, .screenshots { display: grid; gap: 15px; }
.feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature, .store-card { border: 1px solid var(--line); padding: 18px 20px; }
.feature { border-top: 3px solid #a0b2e2; }
.feature h3, .store-card h3 { margin: 0 0 .3rem; font-size: 1.13rem; }
.feature p, .store-card p { margin: 0; color: var(--muted); }
.screenshots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-width: 960px; }
.screenshots figure { margin: 0; }
.shot-link { display: grid; place-items: center; position: relative; aspect-ratio: 4 / 5; max-height: 400px; overflow: hidden; background: #edeff5; border: 1px solid var(--line); }
.shot-link img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.shot-link:hover { border-color: var(--blue); }
.shot-expand { position: absolute; right: .5rem; bottom: .5rem; min-width: 44px; padding: .2rem .4rem; background: #fff; color: var(--blue-dark); text-align: center; font-size: .82rem; font-weight: 700; }
.screenshots figcaption { margin-top: .3rem; font-weight: 700; }
.shot-dialog { max-width: min(92vw, 950px); max-height: 92dvh; padding: .7rem; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.shot-dialog::backdrop { background: #0b1329d6; }
.shot-dialog form { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.shot-dialog button { min-height: 40px; padding-inline: .7rem; color: var(--blue-dark); background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.shot-dialog img { max-height: 76dvh; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
.store-list { grid-template-columns: repeat(2, 1fr); }
.store-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-actions { margin-top: 18px; }
.content-inner, .page-shell { width: min(890px, calc(100% - 96px)); margin-inline: auto; }
.page-header { margin-bottom: 24px; }
.page-kicker { margin-bottom: .35rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.prose { display: grid; gap: 14px; }
.info-card { border: 1px solid var(--line); padding: clamp(16px, 3vw, 26px); }
.info-card h2 { margin: 0 0 .57rem; color: var(--ink); font-size: 1.22rem; line-height: 1.45; }
.info-card p { color: var(--muted); margin-bottom: .75rem; }
.info-card ul, .info-card ol { padding-left: 1.35rem; margin: .4rem 0 .9rem; }
.info-card li + li { margin-top: .25rem; }
.info-card > :last-child { margin-bottom: 0; }
.notice-box { margin: 0; padding: .72rem .9rem; background: #f2f5fe; border-left: 3px solid var(--blue); color: var(--ink); }
.notice-box strong { color: var(--blue-dark); }
.notice-box + p { margin-top: .85rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border: 0; }
.faq-item summary { min-height: 45px; padding-block: .45rem; cursor: pointer; font-weight: 700; }
.faq-item summary::marker { color: var(--blue); }
.faq-item p { padding: 0 0 .4rem 1.05rem; }
.info-card dl { display: grid; grid-template-columns: minmax(8rem, 29%) 1fr; gap: .38rem 1rem; margin: 0; }
.info-card dt { font-weight: 750; }
.info-card dd { margin: 0; color: var(--muted); }
.entry-page .breadcrumbs { margin: 0 0 1rem; }
.entry-meta { display: flex; gap: .85rem; align-items: center; margin-bottom: .65rem; }
.entry-page h1 { font-size: clamp(1.65rem, 4.4vw, 2.7rem); margin-bottom: 1.1rem; }
.entry-body { max-width: 45rem; color: var(--muted); margin-bottom: 1.4rem; }
@media (max-width: 940px) {
  .shell, .content-inner, .page-shell { width: calc(100% - 60px); }
  .promotion { min-height: 340px; }
}
@media (max-width: 650px) {
  .shell, .content-inner, .page-shell { width: calc(100% - 34px); }
  .header-inner { min-height: 63px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; z-index: 4; }
  .mobile-menu summary { display: grid; place-items: center; min-height: 43px; padding: .25rem .65rem; color: var(--blue-dark); font-size: .94rem; font-weight: 750; background: #f4f6ff; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px; padding-inline: .7rem; border: 1px solid var(--line); background: #fff; box-shadow: 0 5px 20px #20315121; }
  .mobile-menu nav a { display: grid; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
  .mobile-menu nav a:last-child { border: 0; }
  .mobile-menu nav a[aria-current="page"] { color: var(--blue); }
  .brand-intro { padding-block: 17px 10px; }
  .brand-intro p { font-size: .87rem; }
  .promotion { grid-template-columns: 1fr; min-height: 0; }
  .promotion-copy { padding: 18px 16px 20px; }
  .promotion-copy h1, .promotion-copy h2 { font-size: clamp(1.715rem, 7.5vw, 2.5rem); margin: .47rem 0 .5rem; }
  .promotion-copy p { line-height: 1.6; margin-bottom: .85rem; }
  .promotion .game-art { min-height: 200px; }
  .promotion .art-screen { top: 9%; left: 41%; max-width: 170px; }
  .category-grid { gap: 10px; }
  .section-header a { font-size: .9rem; }
  .news-list a { grid-template-columns: max-content 1fr; gap: 4px 9px; padding: 10px 4px; }
  .news-title { grid-column: 1 / -1; }
  .home-support { flex-wrap: wrap; padding: 15px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card-art { min-height: 157px; }
  .game-card-info { padding: 15px; }
  .feature-list, .store-list { grid-template-columns: 1fr; gap: 9px; }
  .feature, .store-card { padding: 13px 15px; }
  .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .footer-nav { gap: 0 .75rem; }
  .info-card dl { grid-template-columns: auto 1fr; gap: .36rem .7rem; }
}
