/* 三丁目のネコ — ブルー×白×グレー */
:root {
  --ink: #1D2F4F;       /* 文字・線 */
  --plate: #1F4E8C;     /* 住所の札の青 */
  --sky: #EEF4FA;       /* 背景 */
  --shadow: #BFD9EE;    /* 影 */
  --white: #FFFFFF;
  --gray: #5E6B80;      /* 補足の文字 */
  --gray-soft: #9AA5B5; /* 準備中の線・札 */
  --line: 2px;
  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .04em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
a:focus-visible, button:focus-visible, .scroller:focus-visible { outline: 3px solid var(--plate); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: var(--line) solid var(--ink);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.3rem; letter-spacing: .06em; }
.logo img { width: 46px; height: 46px; border-radius: 50%; border: var(--line) solid var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; }
.nav a { padding: .4em .9em; border-radius: 999px; text-decoration: none; }
.nav a:not(.nav__x):hover { background: var(--sky); }
.nav__x { background: var(--ink); color: var(--white); margin-left: 8px; padding: .55em 1.3em !important; }

@media (max-width: 640px) {
  .header__in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 1.1rem; }
  .logo img { width: 38px; height: 38px; }
  .nav { width: 100%; justify-content: space-between; margin-top: 6px; }
  .nav a { padding: .3em .5em; }
  html { scroll-padding-top: 120px; }
}

/* ---------- トップ ---------- */
.hero { padding: 44px 0 36px; border-bottom: var(--line) solid var(--ink); }
.hero__catch { margin: 0 0 14px; font-size: clamp(1.6rem, 4.6vw, 2.15rem); font-weight: 900; line-height: 1.5; letter-spacing: .06em; }
.hero__lead { margin: 0 0 16px; max-width: 520px; font-size: .88rem; color: var(--gray); line-height: 2; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.stat {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 10px;
  padding: 8px 14px;
}
.stat dt { font-size: .72rem; font-weight: 700; color: var(--gray); }
.stat dd { margin: 0; font-size: .78rem; font-weight: 700; }
.stat .num { font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; margin-right: .1em; }

/* ---------- ゲーム一覧 ---------- */
.games { background: var(--white); padding: 44px 0 60px; border-bottom: var(--line) solid var(--ink); }
.games__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 28px; }
.games__title { margin: 0; font-size: 1.75rem; font-weight: 900; letter-spacing: .08em; }
.games__title small { margin-left: 8px; font-size: .78rem; font-weight: 700; color: var(--gray); letter-spacing: .2em; }
.games__note { margin: 0; font-size: .78rem; color: var(--gray); }

.scroller {
  display: flex; gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 6px 12px 0;
}
.card {
  flex: 0 0 75%; max-width: 620px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--shadow);
  overflow: hidden;
}
@media (min-width: 900px) { .card { flex-basis: 620px; } }

.card__thumb {
  position: relative; aspect-ratio: 620 / 240;
  border-bottom: var(--line) solid var(--ink);
  background: var(--sky); overflow: hidden;
}
.card__thumb > img.cover { width: 100%; height: 100%; object-fit: cover; }
/* キャラの絵を置くサムネイル：空・歩道・道路 */
.card__thumb.is-sprite {
  background: linear-gradient(to bottom, #A9D3EF 0%, #EEF4FA 70%, #D3D9E2 70%, #D3D9E2 76%, #566070 76%);
}
.card__thumb.is-sprite > img { position: absolute; left: 50%; bottom: 18%; height: 70%; width: auto; transform: translateX(-50%); }

.plate {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--plate); color: var(--white);
  border: 2px solid var(--white); outline: 2px solid var(--ink);
  border-radius: 6px; padding: 0 8px;
  font-size: .72rem; font-weight: 900; letter-spacing: 0; line-height: 1.7;
}
.new {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: var(--white); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 999px;
  padding: 0 .9em; font-weight: 700; font-size: .7rem; line-height: 1.8;
}

.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; }
.card__title { margin: 0; font-size: 1.2rem; font-weight: 900; line-height: 1.5; letter-spacing: .08em; }
.card__desc { margin: 0; font-size: .8rem; color: var(--gray); line-height: 2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: .7rem; font-weight: 700; background: var(--sky); border-radius: 999px; padding: .15em 1em; }
.card__foot { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.played { font-size: .78rem; font-weight: 700; color: var(--gray); }
.played::before { content: "▶"; color: var(--ink); margin-right: 6px; }
.played b { color: var(--ink); font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums; margin-right: 2px; }
.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 86px; padding: .6em 1.4em;
  background: var(--plate); color: var(--white);
  border: var(--line) solid var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900; text-decoration: none;
}
.play-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* つぎのゲーム、準備中… */
.card--soon {
  border: var(--line) dashed var(--gray-soft); box-shadow: none; background: #F4F7FB;
  align-items: center; justify-content: center; text-align: center; gap: 4px;
  padding: 32px 20px; min-height: 260px; color: var(--gray-soft);
}
.card--soon .plate { position: static; background: var(--gray-soft); border: none; outline: none; padding: 0 8px; margin-bottom: 6px; }
.card--soon p { margin: 0; font-weight: 900; font-size: 1.05rem; color: var(--gray); opacity: .8; }
.card--soon small { color: var(--gray); font-size: .72rem; }

.scroll-hint { margin: 14px 0 0; text-align: right; font-size: .7rem; font-weight: 700; color: var(--gray); }

@media (max-width: 640px) {
  .games { padding: 32px 0 44px; }
  .card { flex-basis: 85%; }
  .card__body { padding: 14px 14px 16px; }
  .card__title { font-size: 1.05rem; }
}

/* ---------- このサイトについて ---------- */
.about-sec { padding: 46px 0; }
.about {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 24px 26px;
}
.about__icon { width: 94px; height: 94px; border-radius: 50%; border: var(--line) solid var(--ink); align-self: start; }
.about__label { margin: 0; font-size: .68rem; font-weight: 700; color: var(--gray); letter-spacing: .3em; }
.about__name { margin: 0 0 6px; font-size: 1.45rem; font-weight: 900; letter-spacing: .06em; }
.about__text { margin: 0; max-width: 580px; font-size: .88rem; color: var(--gray); line-height: 2; }
.about__x {
  display: inline-block; padding: .7em 1.2em;
  background: var(--ink); color: var(--white);
  border-radius: 8px; font-size: .8rem; font-weight: 900; letter-spacing: 0; text-decoration: none; white-space: nowrap;
}
@media (max-width: 760px) {
  .about { grid-template-columns: auto 1fr; }
  .about__x { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
  .about { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; }
  .about__icon { width: 80px; height: 80px; }
}

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: var(--white); padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.footer__name { font-weight: 900; font-size: 1rem; }
.footer small { font-size: .72rem; }
