@font-face {
  font-family: "Ebifurai JP";
  src: url("fonts/ebifurai-jp.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #242522;
  --muted: #686d69;
  --border: #e5e7eb;
  --accent: #242522;
  font-family: "Ebifurai JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  letter-spacing: 0;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #007b85; outline-offset: 5px; }
.container { width: min(100% - 96px, 1080px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; color: #fff; background: #202124; transform: translateY(-180%); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.studio-header { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 40px; border-bottom: 1px solid var(--border); container-type: inline-size; }
.brand-mark { width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; }
.eyebrow { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--muted); }
.studio-lockup { display: flex; align-items: center; gap: 14px; width: 438px; max-width: 100%; }
.studio-eyebrow { font-size: 11px; font-weight: 500; line-height: 1.6; color: var(--muted); text-align: center; }
.studio-name { flex: 1; min-width: 0; max-width: 100%; font-size: 24px; line-height: 1; }
.studio-wordmark { width: 100%; height: auto; object-fit: contain; }
.catalog { padding-block: 36px 56px; }
.catalog-toolbar { padding-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #525750; background: #fff; transition: background-color 160ms, color 160ms, border-color 160ms; }
.filter-button:hover { color: var(--text); background: #f3f4f5; }
.filter-button.is-active { color: #fff; background: #242522; border-color: #242522; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.game-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.game-art { display: grid; place-items: center; height: 256px; overflow: hidden; }
.game-art-prawn { background: #e5f5ef; }
.game-art-ojisan { background: #eaf1fb; }
.game-icon { width: min(184px, calc(100% - 56px)); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; box-shadow: 0 14px 22px -10px rgb(25 35 35 / 25%); }
.game-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 27px 28px 24px; }
.genre-badge { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 4px; font-size: 12px; line-height: 1.5; font-weight: 500; }
.genre-action { color: #286961; background: #edf6f3; }
.genre-puzzle { color: #3b5981; background: #eef3fb; }
.game-content h3 { font-size: 23px; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.game-description { margin-top: 17px; margin-bottom: 24px; font-size: 15px; line-height: 1.95; color: #60655f; text-wrap: pretty; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding-top: 20px; border-top: 1px solid #f0f0f1; }
.store-link { display: inline-flex; min-height: 44px; align-items: center; border-radius: 5px; transition: opacity 160ms; }
.store-link img { width: auto; height: 40px; }
.store-link:hover { opacity: .8; }
.store-link:focus-visible { outline-color: var(--accent); outline-offset: 5px; }
.empty-state { padding: 72px 20px; text-align: center; font-size: 16px; color: var(--muted); border-block: 1px solid var(--border); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-block: 24px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.6; color: #70756f; }
.site-footer small { font-size: inherit; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.home-footer { display: block; padding-top: 18px; }
.social-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.social-links a { width: 44px; height: 44px; justify-content: center; border-radius: 6px; opacity: .65; transition: opacity 160ms, background-color 160ms; }
.social-links a:hover { opacity: 1; background: #f4f5f4; }
.social-links img { flex-shrink: 0; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }

.document-page { --document-width: 760px; }
.support-page { --document-width: 900px; }
.document-page > .container { max-width: var(--document-width); }
.page-masthead { padding-block: 32px; }
.wordmark { display: inline-flex; max-width: 100%; align-items: center; gap: 12px; text-decoration: none; }
.wordmark .brand-mark { width: 48px; height: 48px; }
.wordmark .studio-wordmark { width: 238px; min-width: 0; }
.document { max-width: 760px; padding-block: 20px 72px; }
.document-heading { padding-bottom: 34px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.document-heading h1 { font-size: 34px; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.document-heading h1 span { display: block; }
.document-heading h1 span[lang="ja"] { margin-top: 8px; font-size: 24px; }
.document-intro { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.prose { font-size: 16px; line-height: 1.9; color: #52565c; overflow-wrap: anywhere; }
.prose h2 { margin-block: 36px 12px; color: var(--text); font-size: 22px; line-height: 1.45; font-weight: 650; }
.prose p + p { margin-top: 18px; }
.prose ol, .prose ul { margin-block: 16px 24px; padding-left: 25px; }
.prose li + li { margin-top: 10px; }
.prose a { color: #006d78; }
.prose .effective-date { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; }
.prose[lang="en"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.analytics-preference { margin-block: 24px; padding-block: 16px; border-block: 1px solid var(--border); }
.analytics-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 8px; color: var(--text); cursor: pointer; }
.analytics-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 6px 0 0; accent-color: var(--text); }
.analytics-status { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-action { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border: 1px solid #242426; border-radius: 6px; font-size: 15px; line-height: 1.5; font-weight: 600; color: #fff; background: #242426; text-decoration: none; }
.contact-action:hover { background: #424247; }
.contact-actions { margin-top: 30px; }
.contact-note { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.form-embed { display: block; width: 100%; max-width: 640px; height: 820px; margin: 32px auto 0; border: 0; }
.support-document { max-width: 900px; }
.support-title { display: flex; align-items: center; gap: 22px; }
.support-title img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 8px; }
.support-title h1 { font-size: 32px; }
.support-stores { width: auto; margin-top: 24px; padding-top: 0; border-top: 0; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.screenshot-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; }
.support-contact { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.support-contact h2 { margin-top: 0; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game-card:hover { transform: translateY(-1px); border-color: #d4d8dc; box-shadow: 0 8px 26px rgb(25 30 40 / 5%); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .studio-header { padding-block: 32px; }
  .game-grid { gap: 18px; }
  .game-content { padding: 22px; }
  .game-content h3 { font-size: 20px; }
  .game-art { height: 218px; }
  .game-icon { width: min(164px, calc(100% - 56px)); }
  .game-description { font-size: 15px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .studio-header { gap: 12px; padding-block: 28px; }
  .studio-lockup { width: 320px; gap: 10px; }
  .studio-header .brand-mark { width: 44px; height: 44px; }
  .studio-eyebrow { font-size: 10px; }
  .catalog { padding-top: 27px; }
  .catalog-toolbar { padding-bottom: 22px; }
  .filters { gap: 6px; }
  .filter-button { padding-inline: 13px; font-size: 13px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .game-art { height: 232px; }
  .game-icon { width: min(176px, calc(100% - 56px)); }
  .game-content { padding: 23px; }
  .game-content h3 { font-size: 21px; }
  .catalog { padding-bottom: 48px; }
  .site-footer { gap: 0 20px; padding-block: 20px; }
  .page-masthead { padding-block: 25px; }
  .document { padding-block: 16px 56px; }
  .document-heading h1 { font-size: 28px; }
  .document-heading h1 span[lang="ja"] { font-size: 21px; }
  .form-embed { height: 850px; }
  .wordmark { gap: 10px; }
  .wordmark .studio-wordmark { width: 220px; }
  .wordmark .brand-mark { width: 42px; height: 42px; }
  .prose h2 { font-size: 21px; }
  .support-title { align-items: flex-start; gap: 16px; }
  .support-title img { width: 56px; height: 56px; }
  .support-title h1 { font-size: 26px; }
  .screenshot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .form-embed { height: 920px; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .filter-button { padding-inline: 10px; }
  .game-content { padding: 22px 18px; }
  .game-content h3 { font-size: 20px; }
  .store-links { gap: 10px; }
  .store-link img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@container (max-width: 250px) {
  .studio-header .brand-mark { width: 32px; height: 32px; }
  .studio-lockup { gap: 8px; }
  .studio-eyebrow { font-size: 10px; overflow-wrap: anywhere; }
}
