/* ===== ここで色・文字サイズ・ページ幅をまとめて変更できます ===== */
:root {
  color-scheme: light;
  --ink: #254857;
  --muted: #627f8a;
  --cream: #faf9f5;
  --accent: #df7355;
  --line: #d4dede;
  --button: #537983;
  --title-size: 48px;
  --page-width: 940px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; line-height: 1.75; }
.wrap { max-width: var(--page-width); margin: auto; padding: 0 28px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 0 0; }
.brand { font-size: 14px; letter-spacing: .08em; font-weight: 650; text-decoration: none; color: var(--ink); }
.edition { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.hero { position: relative; padding: 26px 0 32px; }
.tag { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.tag:before { content: "✳"; font-size: 14px; }
h1 { width: fit-content; font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Mincho", serif; font-size: var(--title-size); letter-spacing: .025em; line-height: 1.3; margin: 9px 0 24px; font-weight: 400; font-synthesis: none; }
.title-dot { color: var(--accent); }
.hero p { color: #496b7a; font-size: 17px; line-height: 1.9; margin: 0; max-width: 650px; }
.game-section { position: relative; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
h2 { display: flex; align-items: center; gap: 17px; font-size: 20px; line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: .02em; }
h2:after { content: ""; width: 35px; height: 2px; background: var(--accent); }
.count { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.game { min-width: 0; background: #fff; border: 1px solid #e6e9e5; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 7px #253e4610; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.game:hover { transform: translateY(-3px); box-shadow: 0 7px 17px #253e4617; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 800 / 415; object-fit: cover; background: #d4e2df; }
.gamebody { position: relative; padding: 19px 23px 23px; display: flex; flex-direction: column; flex: 1; }
.number { font-size: 10px; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
.game h3 { margin: 5px 0 10px; font-size: 19px; line-height: 1.55; }
.desc { font-size: 14px; color: #627b86; line-height: 1.85; margin: 0 0 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.meta span { background: #f3f5f2; color: #5c747d; border-radius: 30px; font-size: 11px; padding: 4px 10px; }
.play { display: flex; align-items: center; justify-content: center; width: 190px; max-width: 100%; min-height: 44px; margin-top: auto; background: var(--button); color: #fff; border-radius: 30px; padding: 10px 17px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.play:focus-visible, .brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.play:hover { background: #3d626e; }
.soon { position: relative; min-width: 0; border: 1px dashed #bbcdd0; background: #f5f7f4; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 45px 20px 90px; text-align: center; }
.soon .plus { font-size: 38px; color: #93a8ad; line-height: 1; margin-bottom: 10px; }
.soon strong { font-size: 18px; font-weight: 650; }
.soon small { color: var(--muted); font-size: 12px; }
.note { position: relative; margin: 73px 0 55px; padding: 22px 25px; border-radius: 14px; background: #eef2ed; font-size: 14px; color: #526e78; line-height: 1.9; }
.note strong { display: block; color: var(--ink); margin-bottom: 5px; font-size: 15px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* ===== 装飾の位置・大きさ（文字から離して配置） ===== */
.decoration { position: absolute; display: block; pointer-events: none; user-select: none; }
.hero-sky { width: 430px; right: -175px; top: 35px; }
.side-sitter { width: 152px; left: -210px; bottom: -8px; }
.side-walker { width: 120px; right: -180px; bottom: -4px; }
.side-sign { width: 113px; left: -187px; bottom: -19px; }
.side-carrier { width: 115px; right: -173px; bottom: -18px; }
.ground-path { width: calc(100% + 180px); height: 50px; left: -90px; bottom: -50px; }
.card-figure { width: 84px; right: 12px; bottom: 13px; }
.soon-figure { width: 105px; right: 12px; bottom: 12px; }
/* 外側の小人を置けない幅では減らします。 */
@media (max-width: 1200px) {
  .side-sitter, .side-walker, .side-sign, .side-carrier { display: none; }
  .hero-sky { width: 290px; right: 0; top: 26px; }
  .ground-path { width: 100%; left: 0; }
}
@media (max-width: 900px) { .hero-sky { width: 220px; top: 35px; } }
@media (max-width: 650px) {
  :root { --title-size: 38px; }
  .wrap { padding: 0 20px; }
  header { padding-top: 22px; }
  .brand { font-size: 12px; }
  .edition { font-size: 10px; }
  .hero { padding: 29px 0 35px; }
  h1 { margin-bottom: 21px; line-height: 1.35; }
  .hero p { font-size: 15px; line-height: 1.9; }
  .hero p br { display: none; }
  .hero-sky, .ground-path { display: none; }
  h2 { font-size: 18px; gap: 12px; }
  h2:after { width: 25px; }
  .count { font-size: 10px; }
  .games { grid-template-columns: 1fr; gap: 19px; }
  .gamebody { position: relative; padding: 19px 20px 22px; }
  .game h3 { font-size: 18px; }
  .soon { min-height: 250px; padding: 35px 20px 70px; }
  .card-figure { width: 66px; right: 11px; bottom: 14px; }
  .soon-figure { width: 80px; right: 14px; bottom: 10px; }
  .note { margin: 35px 0 38px; padding: 20px; }
  footer { gap: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .game { transition: none; } }

/* 実装後の調整: リンクと情報が装飾より前面に来るようにする */
.hero > :not(.decoration), .game-section > .heading, .game-section > .games { position: relative; z-index: 1; }
.hero .decoration, .game-section > .decoration { z-index: 0; }
.gamebody .card-figure { z-index: 0; }
.gamebody > :not(.decoration) { position: relative; z-index: 1; }
/* 狭いPC表示では、本文と線画の重なりを防ぐ */
@media (min-width: 651px) and (max-width: 950px) {
  .hero-sky { opacity: .48; width: 185px; right: 0; top: 15px; }
}
