/* ===== ちょっとヒマ - メインスタイル ===== */

:root {
  --primary: #6c63ff;
  --primary-dark: #574fd6;
  --accent: #ff6584;
  --bg: #f8f9fe;
  --card-bg: #ffffff;
  --text: #2d2d3a;
  --text-muted: #888899;
  --border: #e8e8f0;
  --shadow: 0 4px 20px rgba(108,99,255,0.10);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(108,99,255,0.07);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--accent); }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-left: 20px;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

/* ===== Hero (トップのみ) ===== */
.hero {
  text-align: center;
  padding: 56px 20px 40px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.hero h1 em {
  color: var(--primary);
  font-style: normal;
}
.hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== セクション ===== */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== カードグリッド ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.16);
}
.card-icon {
  font-size: 2rem;
  line-height: 1;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
}
.card-badge.game { background: var(--accent); }

/* ===== ページヘッダー（個別ページ） ===== */
.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
}
.page-header .icon { font-size: 3rem; margin-bottom: 12px; }
.page-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== ゲームエリア共通 ===== */
.game-area {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
.result-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: 24px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--primary); }

/* ===== 広告プレースホルダー ===== */
.ad-box {
  background: var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px auto;
  max-width: 728px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .card-grid { grid-template-columns: 1fr; }
}
