/* ===========================
   kumataWorld! — pop style
   =========================== */
:root {
  --bear: #b8733f;
  --bear-dark: #7a4520;
  --bear-light: #f3c48f;
  --cream: #fff6e8;
  --paper: #ffffff;
  --ink: #4a2a14;
  --ink-soft: #8a6a52;

  --pink: #ff6b9d;
  --yellow: #ffd23f;
  --sky: #45b7ff;
  --green: #5fd068;
  --purple: #a77bff;

  --edu: #45b7ff;   /* まなぶ */
  --play: #ff6b9d;  /* あそぶ */

  --radius: 22px;
  --shadow: 0 6px 0 rgba(122, 69, 32, 0.25);
  --shadow-lg: 0 10px 0 rgba(122, 69, 32, 0.22);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(184, 115, 63, 0.13) 2px, transparent 2px);
  background-size: 26px 26px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bear);
  border-bottom: 5px solid var(--bear-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; object-position: 40% 20%;
  background: var(--cream); border: 3px solid var(--cream);
}
.logo-text {
  font-family: "Fredoka", "M PLUS Rounded 1c", sans-serif;
  font-weight: 700; font-size: 1.7rem; color: #fff; letter-spacing: 0.5px;
  text-shadow: 3px 3px 0 var(--bear-dark);
}
.logo-text .w { color: var(--yellow); }
.logo-text .bang { color: var(--pink); }

.nav { display: flex; gap: 8px; }
.nav a {
  background: var(--cream); color: var(--bear-dark);
  font-weight: 800; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 3px 0 var(--bear-dark); font-size: 0.95rem;
  transition: transform .1s;
}
.nav a:hover { transform: translateY(-2px); }
.nav a.edu { background: var(--edu); color: #fff; }
.nav a.play { background: var(--play); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px;
}
.hero h1 {
  font-family: "Fredoka", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; margin: 0 0 12px;
  color: var(--bear);
  text-shadow: 4px 4px 0 var(--bear-dark);
}
.hero h1 .w { color: var(--yellow); text-shadow: 4px 4px 0 #c99a00; }
.hero h1 .bang { color: var(--pink); text-shadow: 4px 4px 0 #c43a6c; }
.hero p.lead { font-size: 1.15rem; font-weight: 700; margin: 0 0 20px; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.bubble {
  position: relative; display: inline-block;
  background: #fff; border: 4px solid var(--ink); border-radius: 20px;
  padding: 8px 16px; font-weight: 800; margin-bottom: 14px;
}
.bubble::after {
  content: ""; position: absolute; right: -18px; bottom: 10px;
  border: 10px solid transparent; border-left: 16px solid var(--ink);
}

.hero-bear { position: relative; display: flex; justify-content: center; }
.hero-bear .blob {
  position: absolute; inset: 6% 4%;
  background: var(--yellow); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  border: 5px solid var(--ink);
  animation: blob 8s ease-in-out infinite;
}
.hero-bear img {
  position: relative; width: min(380px, 90%);
  border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%;
  border: 6px solid var(--ink); background: #e9e9e9;
  animation: bob 3s ease-in-out infinite;
}
.deco { position: absolute; font-size: 2rem; animation: float 4s ease-in-out infinite; }
.deco.d1 { top: 0; left: 6%; }
.deco.d2 { bottom: 6%; right: 2%; animation-delay: -1.5s; }
.deco.d3 { top: 12%; right: 4%; animation-delay: -2.5s; }

@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blob { 0%,100% { border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; } 50% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 800; font-size: 1.05rem;
  padding: 12px 22px; border-radius: 999px; border: 4px solid var(--ink);
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.edu { background: var(--edu); color: #fff; }
.btn.play { background: var(--play); color: #fff; }
.btn.yellow { background: var(--yellow); }
.btn.green { background: var(--green); color: #fff; }
.btn.big { font-size: 1.25rem; padding: 16px 28px; }
.btn[disabled], .btn.disabled {
  background: #ddd; color: #888; border-color: #aaa; box-shadow: 0 5px 0 #aaa;
  cursor: not-allowed; transform: none;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 10px;
}
.tab {
  font-family: inherit; font-weight: 800; font-size: 1.05rem;
  padding: 10px 22px; border-radius: 999px; border: 4px solid var(--ink);
  background: #fff; cursor: pointer; box-shadow: 0 4px 0 var(--ink); color: var(--ink);
}
.tab.active { background: var(--yellow); }
.tab.active[data-filter="edu"] { background: var(--edu); color: #fff; }
.tab.active[data-filter="play"] { background: var(--play); color: #fff; }

/* ---------- Section ---------- */
.section { padding: 26px 0 10px; }
.section-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  font-size: 2rem; border: 4px solid var(--ink); box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.section.edu .section-icon { background: var(--edu); }
.section.play .section-icon { background: var(--play); }
.section-head h2 { margin: 0; font-size: 1.9rem; line-height: 1.1; }
.section-head h2 small { display: block; font-size: 0.95rem; color: var(--ink-soft); font-weight: 700; }
.section-count {
  margin-left: auto; background: #fff; border: 3px solid var(--ink);
  border-radius: 999px; padding: 2px 14px; font-weight: 800;
}

/* ---------- Game cards ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: var(--paper); border: 4px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }

.thumb {
  position: relative; aspect-ratio: 1 / 1; border-bottom: 4px solid var(--ink);
  display: grid; place-items: center; overflow: hidden;
}
/* 512×512 のアイコンを 正方形いっぱいに */
.thumb img.icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ph {
  font-size: 3.6rem;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,.2));
}
.thumb .ph-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 14px, transparent 14px 28px);
}
.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.8rem; font-weight: 800; color: #fff;
  padding: 2px 10px; border-radius: 999px; border: 3px solid var(--ink);
}
/* まなぶ + 教科名: 2つ ならべる */
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badges .badge { position: static; }
.badge.edu { background: var(--edu); }
.badge.play { background: var(--play); }
.badge.soon {
  left: auto; right: 10px; background: var(--yellow); color: var(--ink);
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card-body p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.pf {
  font-size: 0.75rem; font-weight: 800; padding: 2px 8px; border-radius: 8px;
  background: var(--cream); border: 2px solid var(--bear-light);
}
/* カード全体は タイトルの リンクで 詳細ページへ。ボタンだけ べつの リンク */
.card { position: relative; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:focus-within { outline: 4px solid var(--yellow); outline-offset: 2px; }
.pf-link {
  position: relative; z-index: 2;
  box-shadow: 0 3px 0 var(--bear-light); transition: transform .1s, background .1s;
}
.pf-link:hover { background: var(--yellow); border-color: var(--ink); transform: translateY(-2px); }

/* あそばれた回数・ダウンロード数 */
.stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: -4px 0 10px; font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); }
.stats b { color: var(--ink); font-size: 0.95rem; }

/* サイトの 訪問カウンター */
.visit-counter {
  display: inline-block; margin-top: 16px;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 16px; font-weight: 800; box-shadow: var(--shadow);
}
.visit-counter[hidden] { display: none; }
.visit-counter b { font-family: "Fredoka", sans-serif; font-size: 1.3rem; color: var(--pink); margin: 0 2px; }

.empty {
  background: #fff; border: 4px dashed var(--bear-light); border-radius: var(--radius);
  padding: 30px; text-align: center; color: var(--ink-soft); font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px; background: var(--bear); color: #fff;
  border-top: 5px solid var(--bear-dark); padding: 26px 0; text-align: center;
  font-weight: 700;
}
.site-footer img {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px;
  object-fit: cover; object-position: 40% 20%; border: 3px solid var(--cream);
}

/* ===========================
   Game detail page
   =========================== */
.back { display: inline-block; margin: 20px 0 6px; font-weight: 800; }
.back:hover { color: var(--pink); }

.detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; }
.detail-head .badge { position: static; font-size: 0.95rem; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.panel {
  background: #fff; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; margin-bottom: 22px;
}
.panel h2 {
  margin: 0 0 12px; font-size: 1.25rem; display: flex; align-items: center; gap: 8px;
}

/* Play area */
/* --ar / --arn は game.js が ゲームの 縦横比(例 540 / 960)を 入れる。
   枠は その比率で、画面の高さ(ヘッダーぶん を ひく)に おさまる 大きさに する */
.stage {
  --ar: 16 / 9; --arn: 1.7778; --stage-max-h: calc(100vh - 110px);
  position: relative; aspect-ratio: var(--ar); background: #222;
  width: 100%; max-width: calc(var(--stage-max-h) * var(--arn)); margin: 0 auto 14px;
  border: 4px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@supports (height: 100dvh) { .stage { --stage-max-h: calc(100dvh - 110px); } }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage-cover {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #fff; padding: 16px;
}
.stage-cover .ph { font-size: 5rem; }
.cover-icon {
  position: relative; width: clamp(90px, 22vw, 150px); aspect-ratio: 1; margin: 0 auto 14px;
  display: grid; place-items: center;
}
.cover-icon img.icon {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 24px; border: 4px solid var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.25);
}
/* ぜんがめん:黒い背景の まんなかに、縦横比を たもって 最大で 表示 */
.stage:fullscreen {
  border: 0; border-radius: 0; max-width: none; aspect-ratio: auto;
  display: grid; place-items: center; background: #000 !important;
}
.stage:fullscreen iframe {
  width: min(100vw, calc(100vh * var(--arn))); height: auto; aspect-ratio: var(--ar);
}
.stage:-webkit-full-screen {
  border: 0; border-radius: 0; max-width: none; aspect-ratio: auto;
  display: grid; place-items: center; background: #000 !important;
}
.stage:-webkit-full-screen iframe {
  width: min(100vw, calc(100vh * var(--arn))); height: auto; aspect-ratio: var(--ar);
}
.stage-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.stage-tools .btn { font-size: 0.95rem; padding: 8px 16px; }

/* Screenshots */
.shots-main {
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 3px solid var(--ink);
  display: grid; place-items: center; background: var(--cream); margin-bottom: 10px;
}
.shots-main img { width: 100%; height: 100%; object-fit: cover; }
.shots-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.shots-thumbs button {
  flex: 0 0 90px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 3px solid var(--bear-light); padding: 0; cursor: pointer; background: var(--cream);
  font-size: 1.4rem;
}
.shots-thumbs button.active { border-color: var(--ink); }
.shots-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Controls */
.controls-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.controls-switch button {
  font-family: inherit; font-weight: 800; padding: 6px 14px; border-radius: 999px;
  border: 3px solid var(--ink); background: #fff; cursor: pointer; color: var(--ink);
}
.controls-switch button.active { background: var(--yellow); }
.controls-list { list-style: none; margin: 0; padding: 0; }
.controls-list li {
  display: flex; gap: 10px; align-items: center; padding: 8px 0;
  border-bottom: 2px dashed var(--bear-light);
}
.controls-list li:last-child { border-bottom: 0; }
.key {
  flex: 0 0 auto; min-width: 70px; text-align: center;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 10px;
  padding: 2px 8px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 3px 0 var(--ink);
}

/* Download / play side panel */
.get-panel { text-align: center; scroll-margin-top: 90px; }
.get-panel.flash { animation: kumata-flash 1.2s ease 2; }
@keyframes kumata-flash { 50% { box-shadow: 0 0 0 6px var(--yellow); } }
.get-panel .device {
  display: inline-block; background: var(--cream); border-radius: 999px;
  padding: 2px 12px; font-weight: 800; font-size: 0.85rem; margin-bottom: 12px;
}
.get-panel .btn { width: 100%; margin-bottom: 12px; }
.get-panel .note { font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 0; text-align: left; }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.info-table th, .info-table td { text-align: left; padding: 6px 0; border-bottom: 2px dashed var(--bear-light); }
.info-table th { width: 40%; color: var(--ink-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

details.apk-help summary { cursor: pointer; font-weight: 800; color: var(--bear); }
details.apk-help ol { padding-left: 20px; margin: 8px 0 0; font-size: 0.9rem; }

/* ---------- ゲーム画面(play.html) ---------- */
.play-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: #000; }
.play-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; background: var(--bear); border-bottom: 4px solid var(--bear-dark); color: #fff;
}
.play-bar h1 {
  flex: 1; margin: 0; font-size: 1.1rem; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 2px 2px 0 var(--bear-dark);
}
.play-back, .play-info, .play-fs {
  flex: 0 0 auto; background: var(--cream); color: var(--bear-dark); border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 0.9rem; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 3px 0 var(--bear-dark);
}
.play-fs { background: var(--yellow); color: var(--ink); }
.play-tools { display: flex; gap: 8px; }
.play-stage { flex: 1; min-height: 0; background: #000; }
.play-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.play-stage .empty a { display: inline-block; }

/* ---------- ダウンロード画面(download.html) ---------- */
.dl-page { max-width: 640px; }
.dl-card { text-align: center; }
.dl-icon {
  position: relative; width: 140px; height: 140px; margin: 4px auto 12px; border-radius: 28px;
  border: 4px solid var(--ink); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow);
}
.dl-icon img.icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-icon .ph { font-size: 3rem; }
.dl-card h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.2; }
.dl-sub { margin: 4px 0 14px; font-weight: 800; color: var(--ink-soft); }
.dl-warn {
  background: #fff4c2; border: 3px dashed var(--yellow); border-radius: 14px;
  padding: 8px 12px; font-weight: 700; font-size: 0.9rem; margin: 0 0 14px;
}
.dl-btn { width: 100%; }
.dl-file { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.dl-count { margin-top: 8px; font-weight: 800; }
.dl-count b { font-family: "Fredoka", sans-serif; font-size: 1.3rem; color: var(--pink); }
.dl-steps { padding-left: 22px; margin: 0; }
.dl-steps li { margin-bottom: 6px; }
.dl-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

@media (max-width: 560px) {
  .play-info { display: none; }
}

/* ---------- かんそう(レビュー) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-review { margin-left: auto; }
/* 3つ(ブラウザ・Android・💬)が 1行に おさまるように すこし つめる */
.platforms { gap: 4px; }
.platforms .pf { padding: 2px 6px; }
.pf-review b { font-family: "Fredoka", sans-serif; }

.reviews { scroll-margin-top: 84px; }
.reviews h2 { flex-wrap: wrap; }
.rv-count { font-size: 0.9rem; background: var(--cream); border-radius: 999px; padding: 0 10px; }
.rv-avg { font-weight: 800; margin: -4px 0 12px; }
.rv-avg-stars, .rv-item-stars { color: #f5a300; letter-spacing: 1px; }
.rv-avg b { font-family: "Fredoka", sans-serif; font-size: 1.3rem; }
.rv-ask {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff4c2; border: 3px dashed var(--yellow); border-radius: 16px; padding: 10px 12px; margin-bottom: 14px;
}
.rv-ask img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 40% 20%; flex: 0 0 auto; background: var(--cream); }
.rv-ask p { margin: 0; font-weight: 700; font-size: 0.92rem; }
.rv-form { display: grid; gap: 6px; margin-bottom: 18px; }
.rv-label { font-weight: 800; font-size: 0.9rem; margin-top: 4px; }
.rv-form input, .rv-form textarea {
  font: inherit; width: 100%; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
}
.rv-form textarea { resize: vertical; min-height: 96px; }
.rv-form input:focus, .rv-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.rv-stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rv-stars button {
  font-size: 1.9rem; line-height: 1; background: none; border: 0; padding: 0 2px; cursor: pointer; color: #c9b8a6;
  transition: transform .1s;
}
.rv-stars button.on { color: #f5a300; }
.rv-stars button:hover { transform: scale(1.15); }
.rv-stars-label { margin-left: 8px; font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); }
.rv-len { text-align: right; font-size: 0.8rem; color: var(--ink-soft); }
.rv-note { margin: 2px 0 6px; font-size: 0.8rem; color: var(--ink-soft); }
.rv-form .btn { justify-self: start; }
.rv-msg { font-weight: 800; min-height: 1.4em; }
.rv-msg.ok { color: #2e9a3a; }
.rv-msg.err { color: #d43b6a; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-item { border-top: 2px dashed var(--bear-light); padding: 10px 0; }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rv-name { font-weight: 800; }
.rv-date { margin-left: auto; font-size: 0.8rem; color: var(--ink-soft); }
.rv-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-empty { color: var(--ink-soft); font-weight: 700; padding: 8px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .bubble::after { display: none; }
  .hero-bear { order: -1; }
  .hero-bear img { width: min(260px, 70%); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .logo-text { font-size: 1.3rem; }
  .logo img { width: 40px; height: 40px; }
  .nav a { padding: 5px 10px; font-size: 0.85rem; }
  .nav a.home { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-body h3 { font-size: 1rem; }
  .card-body p { font-size: 0.82rem; }
  .section-head h2 { font-size: 1.5rem; }
}

/* Google Play(ダウンロード画面)*/
.gp-badge { display: inline-block; margin: 6px auto 2px; line-height: 0; }
.gp-badge img { width: 240px; max-width: 80vw; height: auto; }
.dl-gp-note { margin: 4px 0 12px; font-weight: 700; color: var(--ink-soft); }
.dl-apk-alt { margin-top: 10px; text-align: center; }
.dl-apk-alt summary { cursor: pointer; font-size: 0.9rem; color: var(--ink-soft); }
.dl-apk-alt .dl-btn { margin-top: 10px; }
.pf-gplay { background: #01875f; color: #fff; border-color: #01875f; }
.pf-yt { background: #ff0033; color: #fff; border-color: #ff0033; }
