/* ==============================================
   コスパナビ カスタムデザイン CSS
   PC・スマホ両対応レスポンシブデザイン
   ============================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── 基本設定 ── */
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #f8f9fa;
}

/* ── ヘッダー ── */
#blog-title {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#blog-title-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}

#blog-title a {
  color: #fff !important;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}

#blog-description {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-top: 4px;
}

/* ── メインコンテンツ幅 ── */
#content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

#wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

#main { flex: 1; min-width: 0; }

/* ── 記事カード（一覧） ── */
.entry {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 28px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.entry-header { padding: 24px 28px 0; }

.entry-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
}

.entry-title a { color: #1a1a1a; text-decoration: none; }
.entry-title a:hover { color: #1a73e8; }

/* ── 日付・カテゴリ ── */
.date a, .entry-categories a {
  color: #888;
  font-size: 13px;
  text-decoration: none;
}

.entry-categories a {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 2px 10px;
  border-radius: 20px;
  margin-right: 6px;
  font-weight: 500;
}

/* ── 記事本文 ── */
.entry-content {
  padding: 20px 28px 28px;
  font-size: 16px;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  border-left: 5px solid #1a73e8;
  padding: 8px 16px;
  margin: 36px 0 16px;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
  margin: 28px 0 14px;
}

.entry-content p { margin: 0 0 18px; }

.entry-content a { color: #1a73e8; text-decoration: underline; }

/* ── 比較テーブル ── */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.entry-content th {
  background: #1a73e8;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.entry-content td {
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.entry-content tr:nth-child(even) td { background: #f8f9fa; }
.entry-content tr:last-child td { border-bottom: none; }

/* ── FAQ (details) ── */
.entry-content details {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.entry-content summary {
  font-weight: 700;
  cursor: pointer;
  padding: 14px 18px;
  background: #f8f9fa;
  list-style: none;
}

.entry-content details[open] summary { border-bottom: 1px solid #e0e0e0; }
.entry-content details p { padding: 14px 18px; margin: 0; }

/* ── サイドバー ── */
#box2 { width: 280px; flex-shrink: 0; }

.hatena-module {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 24px;
  overflow: hidden;
}

.hatena-module-title {
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
}

.hatena-module-body { padding: 16px 18px; }

/* ── フッター ── */
#footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
  margin-top: 48px;
}

#footer a { color: #888; text-decoration: none; }
#footer a:hover { color: #fff; }

/* ── CTAボタン ── */
.entry-content a[style*="background"] {
  display: inline-block !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  text-decoration: none !important;
  transition: opacity 0.2s !important;
}

.entry-content a[style*="background"]:hover { opacity: 0.85 !important; }

/* ── ページネーション ── */
.pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}

.pager a, .pager span {
  padding: 10px 20px;
  border-radius: 8px;
  background: #fff;
  color: #1a73e8;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-weight: 500;
  font-size: 14px;
}

.pager a:hover { background: #1a73e8; color: #fff; }

/* ==============================================
   スマートフォン対応（768px以下）
   ============================================== */
@media (max-width: 768px) {
  body { font-size: 15px; }
  #blog-title a { font-size: 20px; }
  #blog-title-inner { padding: 18px 16px; }
  #content { padding: 16px 12px; }

  #wrapper { flex-direction: column; gap: 0; }
  #box2 { width: 100%; }

  .entry-header { padding: 18px 18px 0; }
  .entry-content { padding: 16px 18px 22px; }
  .entry-title { font-size: 17px; }

  .entry-content h2 { font-size: 18px; padding: 7px 12px; }
  .entry-content h3 { font-size: 16px; }

  /* テーブルをスクロール対応 */
  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* CTAボタンを全幅に */
  .entry-content a[style*="background"] {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pager a, .pager span { padding: 9px 14px; font-size: 13px; }
}

/* ==============================================
   タブレット対応（769px〜1024px）
   ============================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  #box2 { width: 240px; }
  .entry-title { font-size: 18px; }
  .entry-content h2 { font-size: 20px; }
}


/* ══════════════════════════════════════════
   ヘッダー ダーク&テックデザイン 2026
   ══════════════════════════════════════════ */

/* ヘッダー全体 */
#blog-title {
  background: linear-gradient(135deg, #050d1a 0%, #0a1628 40%, #0d1f3c 100%) !important;
  border-bottom: 2px solid #06b6d4 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* グリッド背景装飾 */
#blog-title::before {
  content: '' !important;
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0 !important;
  background:
    linear-gradient(90deg, transparent 49px, rgba(6,182,212,.08) 50px, transparent 51px),
    linear-gradient(transparent 49px, rgba(6,182,212,.08) 50px, transparent 51px) !important;
  background-size: 50px 50px !important;
  pointer-events: none !important;
}

/* ヘッダー内コンテナ */
#blog-title-inner {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 2.2em 1.5em 1.8em !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ブログタイトル */
#blog-title h1.blog-title,
#blog-title .blog-title,
h1#blog-title {
  font-size: 2em !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  margin: 0 0 .3em !important;
  line-height: 1.2 !important;
}

#blog-title h1.blog-title a,
#blog-title .blog-title a {
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(90deg, #06b6d4 0%, #ffffff 60%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* サブタイトル・説明文 */
#blog-title .blog-description {
  color: #94a3b8 !important;
  font-size: .9em !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  border-left: 3px solid #06b6d4 !important;
  padding-left: .8em !important;
}

/* 読者になるボタン */
.hatena-follow-button-wrap {
  position: fixed !important;
  top: 50% !important;
  right: 1.2em !important;
  transform: translateY(-50%) !important;
  z-index: 9999 !important;
}

.hatena-follow-button-wrap a,
a.hatena-follow-button {
  display: inline-block !important;
  background: rgba(6,182,212,.1) !important;
  border: 1.5px solid #06b6d4 !important;
  color: #06b6d4 !important;
  padding: .5em 1.1em !important;
  border-radius: 20px !important;
  font-size: .78em !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all .2s ease !important;
  white-space: nowrap !important;
  letter-spacing: .05em !important;
}

.hatena-follow-button-wrap a:hover,
a.hatena-follow-button:hover {
  background: #06b6d4 !important;
  color: #050d1a !important;
  box-shadow: 0 0 12px rgba(6,182,212,.5) !important;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  #blog-title-inner { padding: 1.5em 1em 1.3em !important; }
  #blog-title h1.blog-title, #blog-title .blog-title { font-size: 1.5em !important; }
  .hatena-follow-button-wrap { top: auto !important; bottom: 1.2em !important; transform: none !important; }
}