/* ASORA GAMES（手書き風）: ペンの線 + うすい水彩。文字は Klee One（ペン字）。枠はわざと少しゆがませる */
:root {
  --paper: #fbfaf5; --ink: #2d2a26; --sub: #6b655c; --line: #2d2a26;
  --yellow: #fde9a6; --green: #cfe8c4; --pink: #f9d3d6; --blue: #cfe3f5; --purple: #e2d8f3; --orange: #fbd9b5;
  --wob: 255px 14px 225px 14px / 14px 225px 14px 255px;
  --wob2: 14px 225px 14px 255px / 255px 14px 225px 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.8 "Klee One", "Hiragino Maru Gothic ProN", sans-serif; background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ヘッダー */
.top { max-width: 1040px; margin: 0 auto; padding: 22px 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--line); border-radius: 0 0 40% 60% / 0 0 6px 4px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo b { display: block; font-weight: 600; font-size: 22px; letter-spacing: .14em; line-height: 1.2; }
.logo small { display: block; font-size: 12px; color: var(--sub); }
.sun { width: 38px; height: 38px; fill: var(--yellow); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
nav { display: flex; gap: 22px; font-size: 15px; }
nav a { padding: 2px 4px; }
nav a:hover { background: linear-gradient(transparent 60%, var(--yellow) 60%); }

main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 冒頭 */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 360px); align-items: center; gap: 24px; padding: 44px 0 30px; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(36px, 6.4vw, 64px); letter-spacing: .12em; line-height: 1.2; }
.lead { margin: 12px 0 24px; font-size: clamp(17px, 2.4vw, 21px); color: var(--sub); }
.hero-art { width: 100%; height: auto; mix-blend-mode: multiply; }

/* ボタン */
.play {
  display: inline-block; padding: 4px 18px; font-weight: 600; font-size: 14px; background: var(--yellow);
  border: 2px solid var(--ink); border-radius: var(--wob); transition: transform .12s;
}
.play.big { padding: 8px 34px; font-size: 18px; letter-spacing: .2em; }
.play.big:hover { transform: rotate(-2deg) scale(1.04); }

/* 見出し: 下に手書きの波線 */
h2 {
  display: inline-block; margin: 20px 0 22px; padding-bottom: 8px; font-weight: 600; font-size: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M1 5 Q15 1 30 5 T60 5 T90 5 T119 4' fill='none' stroke='%232d2a26' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 8px no-repeat;
}
h2::before { content: "✎ "; font-size: .85em; }
.count { font-size: 14px; font-weight: 400; color: var(--sub); }

/* ゲームのカード */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }
.card a {
  display: flex; flex-direction: column; height: 100%; padding: 10px 10px 12px; background: #fff;
  border: 2px solid var(--line); border-radius: var(--wob); transition: transform .15s;
}
.card:nth-child(even) a { border-radius: var(--wob2); }
.card:nth-child(3n+1) a { transform: rotate(-.5deg); }
.card:nth-child(3n+2) a { transform: rotate(.4deg); }
.card a:hover, .card a:focus-visible { transform: rotate(0) translateY(-4px); outline: none; box-shadow: 4px 5px 0 var(--ink); }
/* 本物のゲーム画面: 静止画の上に、見えたとき（PC はカーソルを合わせたとき）だけデモ映像を重ねる */
.shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--ink); border-radius: 10px 4px 12px 5px / 5px 12px 4px 10px; background: #eee; }
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot video { opacity: 0; transition: opacity .3s; }
.shot.playing video { opacity: 1; }
.live {
  position: absolute; right: 6px; bottom: 6px; padding: 0 8px; font-size: 11px; font-weight: 600; line-height: 1.8;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--wob); transition: opacity .3s;
}
.shot.playing .live { opacity: 0; }
.name { margin-top: 8px; font-weight: 600; font-size: 16px; line-height: 1.4; }
.desc { flex: 1; margin-top: 2px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.tag { font-size: 12px; color: var(--sub); border-bottom: 1px dashed var(--sub); }
.c1 .play { background: var(--green); } .c2 .play { background: var(--blue); } .c3 .play { background: var(--pink); }
.c4 .play { background: var(--yellow); } .c5 .play { background: var(--purple); } .c6 .play { background: var(--orange); } .c7 .play { background: var(--green); }

/* 制作記 */
.blog { margin: 50px 0 10px; }
.blog a { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border: 2px dashed var(--line); border-radius: var(--wob2); }
.blog a:hover { background: #fff; }
.book { flex: none; width: 46px; height: 40px; fill: var(--blue); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.blog-text { flex: 1; font-size: 14px; color: var(--sub); }
.blog-text b { display: block; font-weight: 600; font-size: 17px; color: var(--ink); }
.more { flex: none; font-weight: 600; border-bottom: 2px solid var(--ink); }

footer { max-width: 1040px; margin: 40px auto 0; padding: 18px 20px 40px; text-align: center; font-size: 13px; color: var(--sub); border-top: 2px solid var(--line); border-radius: 60% 40% 0 0 / 4px 6px 0 0; }
footer p { margin: 2px 0; }
footer a { text-decoration: underline; }

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; text-align: center; }
  .hero-art { max-width: 280px; margin: 0 auto; grid-row: 1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .card a { padding: 7px 7px 10px; }
  .name { font-size: 14px; }
  .desc { font-size: 12px; }
  .foot { flex-wrap: wrap; gap: 6px; }
  .blog a { flex-wrap: wrap; padding: 14px 16px; }
  .blog-text { flex: 1 1 200px; }
  .more { margin-left: auto; }
  .live { font-size: 10px; padding: 0 6px; right: 4px; bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
