/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: #2c2c2c;
  background: #ffffff;
}

a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== ヘッダー ===== */
header {
  background: #f8f4f0;
  border-bottom: 3px solid #c0392b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
}
.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}
.site-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.site-title a:hover { color: #c0392b; text-decoration: none; }
.site-subtitle {
  font-size: 0.78rem;
  color: #888;
  margin-top: 3px;
}

/* ===== PR表記 ===== */
.pr-notice {
  display: block;
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 18px;
  text-align: left;
}

/* ===== メインレイアウト ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
}

/* トップページ: 1カラム */
.top-layout { max-width: 820px; margin: 0 auto; }

/* 記事ページ: 2カラム */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 40px;
  align-items: start;
}

/* ===== セクションタイトル ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 4px solid #c0392b;
  padding-left: 12px;
  margin: 44px 0 18px;
  color: #2c2c2c;
}

/* ===== ピックアップカード ===== */
.pickup-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #c0392b;
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pickup-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #2c2c2c; }
.pickup-card p { font-size: 0.92rem; color: #666; line-height: 1.7; }
.pickup-card a { display: inline-block; margin-top: 12px; color: #c0392b; font-size: 0.92rem; font-weight: 600; }

/* ===== カテゴリーグリッド ===== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 4px;
}
.category-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.category-card h3 {
  font-size: 0.92rem;
  color: #c0392b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ffe8e8;
  font-weight: 700;
}
.category-card ul { list-style: none; }
.category-card ul li { font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.category-card ul li:last-child { border-bottom: none; }
.category-card ul li a { color: #444; line-height: 1.5; }
.category-card ul li a:hover { color: #c0392b; }

/* ===== 記事本文エリア ===== */
.article-main {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 40px 44px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  min-width: 0;
}
.article-main h1 {
  font-size: 1.7rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-bottom: 2px solid #f0e0e0;
  padding-bottom: 16px;
}
.article-main h2 {
  font-size: 1.25rem;
  margin: 40px 0 16px;
  padding: 11px 14px;
  background: #fdf0ef;
  border-left: 4px solid #c0392b;
  border-radius: 0 4px 4px 0;
  color: #1a1a1a;
  line-height: 1.5;
}
.article-main h3 {
  font-size: 1.08rem;
  margin: 26px 0 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f0e0e0;
  color: #333;
}
.article-main p {
  font-size: 1rem;
  margin-bottom: 1.1em;
  line-height: 1.9;
}
.article-main ul, .article-main ol {
  margin: 0.5em 0 1.2em 1.6em;
}
.article-main li {
  font-size: 1rem;
  margin-bottom: 0.5em;
  line-height: 1.8;
}
.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.93rem;
  line-height: 1.6;
}
.article-main th {
  background: #fdf0ef;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid #dcc;
  color: #2c2c2c;
}
.article-main td {
  padding: 10px 14px;
  border: 1px solid #eee;
  vertical-align: top;
}
.article-main tr:nth-child(even) td { background: #fafafa; }
.article-main strong { color: #c0392b; font-weight: 700; }
.article-main hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 28px 0;
}
.article-main blockquote {
  background: #fafafa;
  border-left: 4px solid #ddd;
  padding: 14px 18px;
  color: #555;
  font-style: normal;
  margin: 1.2em 0;
  border-radius: 0 4px 4px 0;
  line-height: 1.8;
  font-size: 0.96rem;
}
.article-main code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ===== CTAボタン ===== */
.cta-wrap {
  text-align: center;
  margin: 36px 0 20px;
  padding: 24px;
  background: #fdf6f6;
  border-radius: 8px;
  border: 1px solid #ffe0dc;
}
.cta-wrap a {
  display: inline-block;
  background: #c0392b;
  color: #fff !important;
  padding: 15px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  transition: background 0.2s;
  text-decoration: none !important;
}
.cta-wrap a:hover { background: #96281b; }

/* ===== サイドバー ===== */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 22px;
}
.sidebar-widget h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fdf0ef;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li {
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.5;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: #444; }
.sidebar-widget ul li a:hover { color: #c0392b; }

/* サイドバー：今すぐ解決するなら */
.sidebar-cta {
  background: #fdf0ef;
  border-color: #f0d0cc;
  text-align: center;
}
.sidebar-cta p { font-size: 0.88rem; color: #666; margin-bottom: 14px; line-height: 1.6; }
.sidebar-cta .sidebar-banner { margin: 0 auto 12px; display: block; }
.sidebar-cta a.btn {
  display: block;
  background: #c0392b;
  color: #fff !important;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
  margin-top: 12px;
}
.sidebar-cta a.btn:hover { background: #96281b; }

/* ===== フッター ===== */
footer {
  background: #3a3a3a;
  color: #aaa;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.88rem;
  margin-top: 64px;
  line-height: 1.7;
}
footer a { color: #f8a0a0; }
footer a:hover { color: #fff; }

/* ===== レスポンシブ ===== */
@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: 2;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .article-main { padding: 26px 20px; }
  .article-main h1 { font-size: 1.35rem; }
  .article-main h2 { font-size: 1.1rem; }
  .article-main h3 { font-size: 1rem; }
  .container { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .site-title { font-size: 0.92rem; }
  .article-main { padding: 20px 16px; }
  .article-main table { font-size: 0.85rem; }
  .article-main th, .article-main td { padding: 7px 8px; }
}
