:root {
  color-scheme: light;
  --paper: #f8f8f0;
  --ink: #142d25;
  --muted: #4b6056;
  --forest: #12382e;
  --lime: #e5f77b;
  --rule: #bfcac0;
  --width: 1280px;
  --gutter: clamp(16px, 4.3vw, 64px);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a94b10; outline-offset: 5px; }
.site-width { width: min(calc(100% - var(--gutter) * 2), var(--width)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 3;
  inset: 8px auto auto 12px;
  padding: 12px 20px;
  background: var(--paper);
}

.site-header, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -.035em;
}
.brand-mark {
  width: 34px;
  flex: none;
}
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.site-header nav a, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .29em;
}
.site-header nav a:not(:hover), .site-footer nav a:not(:hover) { text-decoration: none; }
.site-header .language {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding-inline: 16px;
  justify-content: center;
}
.site-header .language:hover { background: #ebefdf; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(442px, 40vw, 530px);
  overflow: clip;
  border-radius: 22px;
  isolation: isolate;
  background: var(--forest);
  color: #fbfbed;
}
.hero-content {
  z-index: 1;
  align-self: center;
  padding: clamp(34px, 5vw, 77px);
  padding-right: 14px;
}
.hero h1 {
  font-size: clamp(2.65rem, 5.6vw, 5rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.075em;
  font-feature-settings: "palt";
}
.hero h1 span { display: block; }
.hero-content p {
  max-width: 29em;
  padding-right: .8em;
  margin-top: clamp(16px, 2vw, 28px);
  font-size: 1rem;
  line-height: 1.9;
  color: #dce9d7;
}
.hero-picture {
  position: relative;
  display: block;
  min-width: 0;
}
.hero-picture img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 53% 55%;
}
.hero-picture::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--forest), #12382e66 9%, transparent 29%);
  pointer-events: none;
}
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  margin-top: clamp(21px, 2.5vw, 34px);
  padding: 10px 21px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.hero-button:hover { background: #f2ffab; }
.hero-button:focus-visible { outline-color: #fffbea; }
.grid-icon {
  width: 15px;
  height: 15px;
  flex: none;
  background:
    radial-gradient(circle, currentColor 2.5px, transparent 2.9px) top left / 7px 7px,
    radial-gradient(circle, currentColor 2.5px, transparent 2.9px) bottom right / 7px 7px;
}

.game-section { margin-block: clamp(44px, 6.25vw, 94px) clamp(68px, 8.5vw, 128px); scroll-margin-top: 24px; }
.game-section:focus { outline: none; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--rule);
}
.section-heading h2 { font-size: clamp(1.65rem, 3.25vw, 2.8rem); line-height: 1.25; letter-spacing: -.045em; font-weight: 800; }
.section-heading span, .language-note { color: var(--muted); font-size: .9rem; }
.language-note { margin-top: .6em; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 47px);
  padding: 0;
  list-style: none;
}
.game-grid > li, .game-card { display: flex; min-width: 0; }
.game-card { flex: 1; }
.game-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  background: #fdfdf5;
  border: 1px solid var(--rule);
  box-shadow: 0 3px 0 #253c2710;
  text-decoration: none;
}
.game-cover {
  aspect-ratio: 1.65;
  overflow: clip;
  border-radius: 13px 13px 0 0;
  background: #c4a271;
}
.game-card--art-difference .game-cover { background: #a4b8b0; }
.game-card--crochet .game-cover { background: #253d51; }
.game-card--ripple-chain .game-cover { background: #13535e; }
.game-cover img { height: 100%; object-fit: cover; transition: transform 200ms ease-out; }
.game-link:hover .game-cover img { transform: scale(1.025); }
.game-info {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 34px);
}
.game-text { min-width: 0; align-self: flex-start; }
.genre { color: var(--muted); font-size: .9rem; font-weight: 700; }
.game-info h3 {
  margin-top: .32em;
  font-size: clamp(1.52rem, 2.8vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -.045em;
  font-weight: 800;
}
.game-description { margin-top: .58em; font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 43ch; text-wrap: pretty; }
.play {
  display: inline-flex;
  min-height: 46px;
  flex: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 17px;
  font-weight: 800;
  white-space: nowrap;
}
.play-icon {
  width: 9px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.game-link:is(:hover, :focus-visible) .play { background: var(--ink); color: #fbfbed; }
.site-footer { border-top: 1px solid var(--rule); background: #eaf0e3; }
.footer-inner { min-height: 86px; }

:lang(en) .hero h1 { letter-spacing: -.065em; }
:lang(en) .hero-content p { max-width: 32ch; }
:lang(en) .game-info h3 { letter-spacing: -.04em; }

@media (min-width: 1240px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .game-info { flex-direction: column; align-items: stretch; padding: clamp(20px, 2vw, 28px); }
  .game-info h3 { font-size: clamp(1.55rem, 2.45vw, 2.2rem); }
  .play { align-self: flex-end; }
}
@media (max-width: 900px) {
  .game-info { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .hero { grid-template-columns: 1fr; border-radius: 17px; }
  .hero-content { padding: clamp(23px, 6vw, 42px); padding-bottom: 14px; }
  .hero h1 { font-size: clamp(2.35rem, 8.65vw, 4rem); }
  .hero-content p { line-height: 1.65; }
  .hero-picture { height: clamp(205px, 59vw, 330px); }
  .hero-picture img { object-position: center 53%; }
  .hero-picture::after { background: linear-gradient(var(--forest), #12382e45 23%, transparent 47%); }
  .game-section { margin-block: 40px 60px; }
  .section-heading { margin-bottom: 17px; padding-bottom: 12px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-info { flex-wrap: nowrap; }
  .footer-inner { padding-block: 10px; }
  .site-footer nav { flex-wrap: wrap; gap: 0 16px; justify-content: flex-end; }
}
@media (max-width: 400px) {
  .site-header nav { gap: 10px; }
  .site-header .language { padding-inline: 11px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand-mark { width: 30px; }
  .game-info { flex-wrap: wrap; }
  .site-footer nav a { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .game-cover img { transition: none; }
  .game-link:hover .game-cover img { transform: none; }
}
