/* Qualef — サイト共通スタイル。
   かわいい系とボドゲ系が同じ棚に並ぶので、地の色をどちらかに寄せると片方が浮く。
   地は温かみのある紙色に留め、色はアプリアイコンとコレクションのアクセントに持たせる。
   アクセントはブランド由来のクローバー緑。 */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #23211c;
  --muted: #6e6a62;
  --line: #e8e3d8;
  --accent: #3f7d54;
  --accent-ink: #ffffff;
  --accent-soft: #eef4ef;

  /* コレクション別のアクセント。淡くして、束ねる目印としてだけ効かせる */
  --daily: #b5677f;
  --daily-soft: #fbeef1;
  --play: #4a6fa5;
  --play-soft: #edf1f8;

  --radius: 16px;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --surface: #1d201e;
    --ink: #e9e7e1;
    --muted: #a19c93;
    --line: #2c302d;
    --accent: #7fc496;
    --accent-ink: #12241a;
    --accent-soft: #1b2a20;

    --daily: #e0a0b2;
    --daily-soft: #2a2023;
    --play: #9ab5db;
    --play-soft: #1e242e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; }

main { max-width: var(--max); margin: 0 auto; padding: 8px 24px 80px; }

/* ---- ブランドマーク ---- */
.mark { display: block; color: var(--accent); }

/* ---- ヘッダ / フッタ ---- */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.brand .mark { width: 22px; height: 22px; }
.lang {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 15px;
  transition: color .15s, border-color .15s;
}
.lang:hover { color: var(--ink); border-color: var(--muted); }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.origin { margin: 0 0 6px; font-size: 13px; }
.fine { margin: 0; font-size: 13px; opacity: .8; }

/* ---- ヒーロー ---- */
.hero { padding: 52px 0 20px; max-width: 660px; }
/* ベタ塗りの形なので、四角い箱の見た目より一回り大きく感じる。
   数値上は控えめでちょうどよい。 */
.hero .mark { width: 34px; height: 34px; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.hero-tagline { font-size: clamp(17px, 2.6vw, 21px); line-height: 1.7; margin: 0 0 12px; }
.hero-promise { color: var(--muted); font-size: 15px; margin: 0; }

.page-head { padding: 32px 0 4px; max-width: 660px; }
.page-head h1 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 12px; line-height: 1.25; }

h2 { font-size: 21px; margin: 48px 0 6px; letter-spacing: .01em; }
.lead { margin: 0 0 6px; }
.promise {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 20px;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow { margin: 0 0 6px; font-size: 13px; }
.eyebrow a { text-decoration: none; color: var(--muted); }
.eyebrow a:hover { text-decoration: underline; }

/* ---- コレクション ---- */
.collection { margin-top: 56px; }
.collection h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.collection h2 a { text-decoration: none; }
.collection h2 a:hover { text-decoration: underline; }
.collection h2::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tint, var(--accent));
  flex: none;
}
.collection[data-c="for-daily"] { --tint: var(--daily); --tint-soft: var(--daily-soft); }
.collection[data-c="for-play"]  { --tint: var(--play);  --tint-soft: var(--play-soft); }
.collection .promise { background: var(--tint-soft, var(--accent-soft)); }

/* ---- アプリカード ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.app-card:hover {
  border-color: var(--tint, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}
.app-card-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.app-card-name { font-weight: 650; line-height: 1.4; }
.app-card-tagline { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* カードの中の「売り」。単語に近い長さで並べる ―― ここが文章になると
   一覧が読み物になり、6枚を見比べる用途で使えなくなる。 */
.app-card-points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app-card-points .point {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 22.5%;
  flex: none;
  background: var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.app-icon.lg { width: 120px; height: 120px; border-radius: 23%; }

/* ---- アプリ個別 ---- */
.app-detail { padding-top: 28px; }
/* コレクションの色をここでも効かせる。トップのヒーローは中立に保つが、
   アプリのページまで無色だと、かわいい系とボドゲ系が同じ顔になる。 */
.app-detail[data-c="for-daily"] { --tint: var(--daily); --tint-soft: var(--daily-soft); }
.app-detail[data-c="for-play"]  { --tint: var(--play);  --tint-soft: var(--play-soft); }
.app-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(24px, 4.6vw, 34px); margin: 0 0 10px; line-height: 1.25; }
.app-head .lead { font-size: 17px; }

/* 導入文。ストアの概要文の冒頭にあたる部分 */
.pitch { margin: 24px 0 0; max-width: 700px; font-size: 16px; }

/* 仕様のバッジ。対応言語数・料金・制限など、確かめられる事実だけ */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.facts li {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--tint-soft, var(--accent-soft));
  border-radius: 999px;
  padding: 3px 13px;
}

/* できること。見出し＋説明の2段にして、機能名だけで拾い読みできるようにする。
   960px の1カラムだと1行が長すぎるので、収まる幅があれば2列に折る。 */
.features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 36px;
}
.features li {
  margin: 0;
  padding: 15px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.features b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }

/* こんな方に */
.audience { list-style: none; padding: 0; margin: 16px 0 0; max-width: 720px; }
.audience li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14.5px;
}
.audience li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint, var(--accent));
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.secondary-row { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .15s, opacity .15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { opacity: .88; }
.btn.ghost { font-weight: 500; font-size: 14px; color: var(--muted); background: transparent; }
.btn.ghost:hover { color: var(--ink); }

.siblings { margin-top: 64px; }
.contact { margin-top: 64px; }

/* ---- サポート ---- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 18px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 17px; }
.contact-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.contact-card p:last-child { margin-bottom: 0; }
.mailto {
  font-size: clamp(18px, 3.4vw, 23px);
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.mailto:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .app-icon.lg { width: 88px; height: 88px; }
  .app-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  main { padding: 8px 20px 64px; }
  .site-header, .site-footer { padding-left: 20px; padding-right: 20px; }
}
