/* ============================================================
   ai.breefly.jp — theme-ai.css
   Design: スマホ初心者向け・大きい文字・余白たっぷり・パープル
   ============================================================ */

:root {
  --bg:            #f8f5ff;
  --surface:       #ffffff;
  --border:        #e2d9f3;
  --border-light:  #ede8f9;

  --text:          #1a1040;
  --text-2:        #4a3f6b;
  --text-3:        #9b8ec4;

  --accent:        #7c3aed;
  --accent-hover:  #6d28d9;

  --curator-bg:    #f3eeff;
  --curator-border:#7c3aed;
  --curator-text:  #4c1d95;

  --shadow-sm:     0 1px 4px rgba(124,58,237,0.08);
  --shadow-md:     0 6px 24px rgba(124,58,237,0.13);

  --radius:        14px;
}

/* ── 基本文字サイズを大きく ── */
body {
  font-size: 17px;
  line-height: 1.9;
  background: var(--bg);
}

/* ── ヘッダー：グラデーション ── */
.site-header {
  background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
  border-bottom: none;
  padding: 20px 0;
  box-shadow: 0 2px 12px rgba(109,40,217,0.25);
}

.logo-link { text-decoration: none; }
.logo-name  { color: #ffffff; }
.logo-tld   { color: rgba(255,255,255,0.7); }

.site-tagline {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  display: block; /* スマホでも常に表示 */
}

/* ── カードグリッド：最大2列 ── */
.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── カード ── */
.article-card {
  border-radius: var(--radius);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.article-card:hover {
  border-color: #a78bfa;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-link {
  padding: 24px;
}

/* ── ソースバッジ ── */
.source-badge {
  background: #ede9fe;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.card-date {
  font-size: 0.8rem;
}

/* ── タイトル：大きく・読みやすく ── */
.card-title {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ── キュレーターコメント：目立たせる ── */
.card-curator {
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 11px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 14px;
}

/* ── 本文プレビュー：大きめ・4行 ── */
.card-summary {
  font-size: 0.92rem;
  line-height: 1.85;
  -webkit-line-clamp: 4;
  color: var(--text-2);
  margin-bottom: 18px;
}

/* ── 「詳細を見る」をボタン化 ── */
.read-more {
  display: inline-block;
  background: var(--accent);
  color: #ffffff !important;
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}

.card-link:hover .read-more {
  background: var(--accent-hover);
}

/* ── カテゴリタグ ── */
.category-tag {
  background: #ede9fe;
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── 元記事リンク ── */
.card-external-wrap {
  padding: 13px 24px;
  border-top-color: var(--border-light);
}

.card-external {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── スクロールトップ：大きく・押しやすく ── */
.scroll-top {
  width: 52px;
  height: 52px;
  right: 20px;
  bottom: 20px;
  font-size: 1.1rem;
}

/* ── ページネーション：大きいボタン ── */
.pagination-btn {
  padding: 11px 28px;
  font-size: 0.95rem;
  min-height: 48px;
  border-radius: 100px;
}

/* ── 記事詳細ページ ── */
.article-title {
  font-size: 1.55rem;
  line-height: 1.5;
}

.article-body {
  font-size: 1rem;
  line-height: 2.0;
}

.btn-primary-large {
  padding: 13px 28px;
  font-size: 0.95rem;
  min-height: 48px;
  border-radius: 10px;
}

/* ── フッター ── */
.site-footer {
  background: #f0ebff;
  border-top-color: var(--border);
}

/* ── スマホ最適化 ── */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .card-grid { gap: 16px; }
  .card-link { padding: 20px; }
  .card-title { font-size: 1.02rem; }
  .card-summary { font-size: 0.9rem; -webkit-line-clamp: 3; }

  /* スマホではタグライン常に表示（上書き） */
  .site-tagline { display: block; }

  .article-title { font-size: 1.3rem; }
  .btn-primary-large { width: 100%; justify-content: center; }
}
