/* けいゲームズ 公式サイト 共通の見た目（2026-10-12）
   色・文字・カード・ボタンは前のまとめサイト（.bak-site/index.html）と同じ */
:root {
  --ink: #2A1A1E;
  --cream: #FFF6EC;
  --paper: #FFFFFF;
  --yellow: #FFD84A;
  --yellow-2: #FFE58A;
  --pink: #F2405C;
  --pink-soft: #FFD2DA;
  --mint: #3FB86A;
  --mint-soft: #CFF1DD;
  --muted: #6E5A5E;
  --night: #2B2350;
  --line: rgba(42, 26, 30, .14);
  --rk: #EFE3C8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(var(--pink-soft) 6px, transparent 7px), radial-gradient(var(--mint-soft) 5px, transparent 6px);
  background-size: 72px 72px, 72px 72px;
  background-position: 0 0, 36px 36px;
  color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; border-radius: 12px; }

/* ---------- 上の細い帯（下のページ用） ---------- */
.topbar {
  background: var(--yellow); border-bottom: 5px solid var(--ink);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}
.topbar-in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 20px; }
.logo img { width: 40px; height: 40px; }
.lang {
  margin-left: auto; font-weight: 900; font-size: 14px; text-decoration: none; white-space: nowrap;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 3px 14px; box-shadow: 0 3px 0 var(--ink);
}
.hero .lang { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; }

/* ---------- 看板（トップの黄色い帯） ---------- */
.hero {
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  border-bottom: 6px solid var(--ink);
  position: relative; overflow: hidden;
  padding: calc(40px + env(safe-area-inset-top, 0px)) 16px 34px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.2) 0 22px, rgba(255,255,255,0) 22px 44px);
  pointer-events: none;
}
.hero-in { position: relative; max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.mascot { width: 170px; height: auto; flex: none; animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-6px) scale(.98, 1.03); } 55% { transform: translateY(-6px) scale(1.02, .98); } }
.brand { text-align: left; }
.name {
  margin: 0; font-weight: 900; font-size: clamp(44px, 10vw, 84px); line-height: 1.05; letter-spacing: .02em; color: #fff;
  -webkit-text-stroke: 14px var(--ink); paint-order: stroke fill;
  filter: drop-shadow(0 6px 0 var(--pink));
  text-wrap: balance;
}
.tagline {
  display: inline-block; margin-top: 14px; font-weight: 900; font-size: clamp(16px, 3.6vw, 22px); color: #fff;
  background: var(--pink); padding: 8px 20px; border-radius: 999px; border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}

/* ---------- 中身 ---------- */
main { max-width: 960px; margin: 0 auto; padding: 34px 16px 56px; }
.sec-h { display: flex; align-items: center; gap: 12px; margin: 8px 0 20px; font-weight: 900; font-size: 26px; line-height: 1.35; text-wrap: balance; }
.sec-h .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); flex: none; }
.sec-gap { margin-top: 48px; }
.intro { margin: 0 0 26px; color: var(--muted); font-size: 16px; max-width: 42em; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.game {
  background: var(--paper); border: 5px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--ink); }
.art { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border-bottom: 5px solid var(--ink); }
.art img { width: 62%; max-width: 240px; height: auto; border-radius: 26px; border: 5px solid var(--ink); box-shadow: 0 6px 0 rgba(42,26,30,.35); }
.art.pp { background: radial-gradient(circle at 50% 40%, #FFF2A8, #FFD84A 70%); }
.art.cd { background: radial-gradient(circle at 50% 40%, #463C7A, var(--night) 72%); }
.art.bk { background: radial-gradient(circle at 50% 40%, #DDF7E6, #7FD6A0 75%); }
.art.bk .bkicons { font-size: clamp(44px, 9vw, 64px); line-height: 1; display: flex; gap: 10px; filter: drop-shadow(0 4px 0 rgba(42,26,30,.35)); }
.badge {
  position: absolute; top: 14px; left: 14px; font-weight: 900; font-size: 14px; letter-spacing: .04em;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; z-index: 1;
}
.body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.title { margin: 0; font-weight: 900; font-size: 26px; line-height: 1.25; }
.genre { margin: -4px 0 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.desc { margin: 0; font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-weight: 700; font-size: 13px; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; }
.status { margin: 2px 0 0; font-size: 14.5px; line-height: 1.6; background: #FFF4C2; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px; }
.status b { display: block; color: var(--pink); font-weight: 900; font-size: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; text-align: center;
  font-weight: 900; font-size: 16px; line-height: 1.3; text-decoration: none; padding: 8px 20px;
  border: 4px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; font-family: inherit;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.play { background: var(--pink); color: #fff; flex: 1 1 auto; }
.btn.sub { background: #fff; color: var(--ink); }
.btn.big { min-height: 60px; font-size: 20px; padding: 10px 28px; }

/* らくがき劇場（トップの大きいカード） */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 26px;
  background: var(--paper); border: 5px solid var(--ink); border-radius: 30px; box-shadow: 0 9px 0 var(--ink); overflow: hidden;
}
.feature .fart { position: relative; background: var(--rk); border-right: 5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.feature .fart img { width: 100%; height: auto; display: block; }
.feature .body { padding: 22px 24px 24px; }
.feature .title { font-size: clamp(28px, 4vw, 36px); }
.feature .catch { margin: -2px 0 0; font-weight: 900; font-size: 18px; color: var(--pink); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature .fart { border-right: 0; border-bottom: 5px solid var(--ink); }
}

/* ---------- 動画（縦のショート） ---------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vid { margin: 0; min-width: 0; }
.vframe { position: relative; aspect-ratio: 9 / 16; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.vframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; inset: 0; border: 0; padding: 0; background: linear-gradient(180deg, rgba(42,26,30,0) 55%, rgba(42,26,30,.35)); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vplay span { width: 74px; height: 74px; border-radius: 50%; background: var(--pink); border: 5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); position: relative; transition: transform .12s ease; }
.vplay span::after { content: ""; position: absolute; left: 27px; top: 19px; border-left: 24px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.vplay:hover span { transform: scale(1.08); }
.vid.on .vplay { display: none; }
.vid figcaption { margin-top: 10px; font-weight: 900; font-size: 15px; line-height: 1.4; }
.vid figcaption small { display: block; font-weight: 700; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; }
  .vid { scroll-snap-align: start; }
}

/* ---------- 箱（X・お問い合わせなど） ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.box { background: var(--paper); border: 5px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.box h3 { margin: 0; font-weight: 900; font-size: 20px; }
.box p { margin: 0; font-size: 15px; color: var(--muted); }
.box .btns { padding-top: 8px; }
.mail { font-weight: 900; font-size: 17px; overflow-wrap: anywhere; }

.more {
  margin-top: 34px; display: flex; align-items: center; gap: 18px;
  background: var(--paper); border: 5px dashed var(--ink); border-radius: 28px; padding: 18px 22px;
}
.more img { width: 84px; height: auto; flex: none; }
.more b { display: block; font-weight: 900; font-size: 20px; word-break: keep-all; overflow-wrap: anywhere; }
.more span { color: var(--muted); font-size: 15px; }

/* ---------- 文書のページ（プライバシー・規約・お問い合わせ） ---------- */
.doc { max-width: 760px; }
.paper {
  background: var(--paper); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink);
  padding: 26px clamp(18px, 4vw, 40px) 30px; line-height: 1.85;
}
.paper h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 900; line-height: 1.35; margin: 0 0 4px; text-wrap: balance; }
.paper .date { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.paper h2 { font-size: 19px; font-weight: 900; line-height: 1.45; margin: 32px 0 8px; padding-top: 20px; border-top: 2px dashed var(--line); }
.paper h3 { font-size: 16px; font-weight: 900; margin: 20px 0 4px; }
.paper p, .paper li, .paper td, .paper th { font-size: 15px; }
.paper ul, .paper ol { padding-left: 1.3em; }
.paper li { margin: 3px 0; }
.paper a { color: var(--pink); font-weight: 700; }
.paper .note { background: #FFF4C2; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.toc { background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 16px 10px 2em; margin: 0 0 6px; }
.toc li { font-size: 14.5px; }
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0; }
.tbl th, .tbl td { border: 2px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.tbl th { background: var(--cream); font-weight: 900; white-space: nowrap; }
@media (max-width: 560px) {
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl tr { margin-bottom: 10px; }
  .tbl th { white-space: normal; border-bottom: 0; }
}
.faq details { border: 3px solid var(--ink); border-radius: 16px; margin: 12px 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 16px; padding: 12px 16px; list-style: none; position: relative; padding-right: 42px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 24px; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 16px 12px; border-top: 2px dashed var(--line); }

/* ---------- らくがき劇場のページ ---------- */
.rk-hero { background: var(--rk); border-bottom: 6px solid var(--ink); padding: 34px 16px 40px; position: relative; overflow: hidden; }
.rk-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(42,26,30,.08) 2px, transparent 2.5px); background-size: 22px 22px; pointer-events: none; }
.rk-hero-in { position: relative; max-width: 960px; margin: 0 auto; text-align: center; }
.rk-logo { width: min(640px, 92%); height: auto; display: block; margin: 0 auto; }
.rk-hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rk-sub { margin: 16px auto 0; font-weight: 900; font-size: clamp(20px, 4.6vw, 30px); line-height: 1.4; text-wrap: balance; }
.rk-sub em { font-style: normal; color: var(--pink); }
.rk-lead { margin: 10px auto 22px; max-width: 36em; font-size: 16px; color: var(--muted); }
.rk-hero .btns { justify-content: center; }
.rk-hero .btn.play { flex: 0 1 auto; }
.soon { margin: 18px auto 0; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-weight: 900; font-size: 14.5px; }
.soon span { background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; }
.trailer { position: relative; aspect-ratio: 16 / 9; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.trailer video { width: 100%; height: 100%; display: block; object-fit: cover; }
.trailer .vplay span { width: 92px; height: 92px; }
.trailer .vplay span::after { left: 33px; top: 23px; border-left-width: 30px; border-top-width: 18px; border-bottom-width: 18px; }
.trailer.on .vplay { display: none; }
.cap { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--paper); border: 5px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.steps img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 4px solid var(--ink); }
.steps .st { padding: 14px 16px 18px; }
.steps b { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; line-height: 1.35; }
.steps b::before { counter-increment: s; content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; border: 3px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.steps p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 4px solid var(--ink); border-radius: 18px; padding: 12px 16px; }
.facts b { display: block; font-weight: 900; font-size: 20px; }
.facts span { font-size: 14px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots a { display: block; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); background: #fff; }
.shots img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }
.credit { font-size: 13.5px; color: var(--muted); font-weight: 700; }

/* ---------- 下 ---------- */
footer { text-align: center; padding: 10px 16px calc(34px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; font-weight: 700; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; font-size: 14px; }
footer a { color: inherit; }

@media (max-width: 560px) {
  .hero-in { gap: 10px; }
  .mascot { width: 120px; }
  .brand { text-align: center; }
  .name { -webkit-text-stroke-width: 10px; }
  .sec-h { font-size: 22px; }
  .btn.big { font-size: 18px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot { animation: none; }
  .game, .btn { transition: none; }
}
.art.photo { background: var(--cream); overflow: hidden; }
.art.photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left center; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 560px) {
  .more { flex-direction: column; text-align: center; }
  .more .btns { justify-content: center; }
}
