/* 一覧ページと紹介ページの見た目。tools/build.mjs が書き出す HTML が読む。
   アプリごとの色は body / .app に付けた --bg --bg2 --name --tag --em --mark --accent で差し替える */
:root { --ink: #1d2433; --muted: #667085; --line: #e6e8ee; --paper: #f4f6fa; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: #fff; line-height: 1.8;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ストアのボタン */
.stores { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stores a { display: inline-flex; }
.stores .apple { height: 48px; }
.stores .google { height: 62px; margin: -7px; }

/* 足元 */
.foot { padding: 28px 0 48px; color: var(--muted); font-size: .88rem; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }

/* ================= 一覧ページ ================= */
.list-page .wrap { max-width: 860px; }
.site-head { padding-top: 56px; padding-bottom: 24px; }
.site-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 900; margin: 0; line-height: 1.2; }
.site-head p { margin: 8px 0 0; color: var(--muted); }

.app { display: grid; grid-template-columns: 120px 1fr; column-gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.app:last-child { border-bottom: 1px solid var(--line); }
.app .icon { grid-row: 1 / span 2; width: 120px; height: 120px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.app .body { grid-column: 2; }
.app h2 { font-size: 1.5rem; font-weight: 900; margin: 0; line-height: 1.3; }
.app h2 a { text-decoration: none; }
.app h2 a:hover { color: var(--accent); }
.app .lead { font-size: 1.08rem; font-weight: 700; margin: 6px 0 0; text-wrap: balance; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.app .desc { color: var(--muted); margin: 12px 0 0; }
.app .banner { display: block; margin-top: 16px; border-radius: 14px; overflow: hidden; }
.actions { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.actions .apple { height: 40px; }
.actions .google { height: 52px; margin: -6px; }
.more { font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.list-page .foot { padding-top: 32px; }

/* ================= 紹介ページ ================= */
.em { color: var(--em); }
.mark { background: linear-gradient(transparent 60%, var(--mark) 60%); padding: 0 .06em; }

/* 端末の縁 */
.phone {
  border: 7px solid #0c0e13; border-radius: 34px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1.5px #8a92a4, 0 24px 60px rgba(0, 0, 0, .28);
}
.phone img { width: 100%; }
.wide .phone, .phone.wide { border-radius: 24px; }

/* 一番上 */
.hero { background: var(--bg); color: var(--tag); overflow: hidden; }
.top-nav { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: .85rem; }
.top-nav a { color: var(--name); opacity: .7; text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px 0 64px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 72px; height: 72px; border-radius: 22.5%; }
.brand .name { font-size: 1.9rem; font-weight: 900; letter-spacing: .01em; line-height: 1.2; color: var(--name); }
.rule { height: 2px; background: var(--name); opacity: .28; border-radius: 2px; margin: 28px 0; max-width: 460px; }
.catch { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 900; line-height: 1.25; margin: 0 0 32px; letter-spacing: .02em; }
.hero-phone { justify-self: center; width: min(300px, 66vw); }
/* 横長の画面（ゲーム）は字の下に広く置く */
.hero.wide .hero-grid { grid-template-columns: 1fr; }
.hero.wide .hero-phone { width: min(760px, 100%); }

/* 帯（動物の一覧など） */
.band { background: var(--bg2); padding: 56px 0; color: var(--name); text-align: center; }
.band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; margin: 0 0 8px; }
.band p { margin: 0 0 24px; opacity: .75; }
.band-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.band-grid img { width: 100%; border-radius: 14px; }

/* できること */
.feats { background: var(--paper); padding: 72px 0; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 880px; margin: 0 auto 88px; }
.feat:last-child { margin-bottom: 0; }
.feat:nth-child(even) .feat-img { order: 2; }
.feat-img { justify-self: center; width: min(280px, 66vw); }
.feat h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; line-height: 1.4; margin: 0 0 12px; color: var(--accent); }
.feat p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.feat.wide { grid-template-columns: 1fr; gap: 24px; text-align: center; }
.feat.wide .feat-img { order: 0; width: min(720px, 100%); }

/* アプリの情報・更新履歴 */
.info { padding: 72px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 880px; margin: 0 auto; }
.info h2 { font-size: 1.15rem; font-weight: 900; margin: 0 0 12px; color: var(--accent); }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 2px; }
.spec dt { flex: none; width: 8em; color: var(--muted); font-size: .92rem; }
.spec dd { margin: 0; }
.log { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.log li { border-bottom: 1px solid var(--line); padding: 10px 2px; }
.log .ver { font-weight: 700; margin-right: 10px; }
.log .date { color: var(--muted); font-size: .85rem; display: block; }

/* 最後のお誘い */
.cta { background: var(--bg); color: var(--tag); text-align: center; padding: 64px 0; }
.cta .brand { justify-content: center; }
.cta .catch { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 24px 0 28px; }
.cta .stores { justify-content: center; }
.app-page .foot { text-align: center; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 32px; gap: 32px; }
  .brand img { width: 56px; height: 56px; }
  .brand .name { font-size: 1.5rem; }
  .rule { margin: 20px 0; }
  .catch { margin-bottom: 24px; }
  .band-grid { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; text-align: center; }
  .feat:nth-child(even) .feat-img { order: 0; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-head { padding-top: 36px; padding-bottom: 16px; }
  .app { grid-template-columns: 72px 1fr; column-gap: 16px; padding: 28px 0; }
  .app .icon { grid-row: auto; width: 72px; height: 72px; }
  .app .head { align-self: center; }
  .app .body { grid-column: 1 / -1; }
  .app h2 { font-size: 1.3rem; }
  .app .lead { font-size: .95rem; }
}
