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

/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
  --primary: #1e3a8a;          /* 上品なディープネイビー */
  --primary-hover: #1e40af;
  --accent: #d97706;           /* 落ち着いたアンバー */
  --accent-light: #fef3c7;
  
  --text-main: #0f172a;        /* 濃いスレート（視認性抜群） */
  --text-body: #334155;        /* 読みやすい本文色 */
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header: 上品なマガジンヘッダー
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-logo {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  text-decoration: none !important;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 4px;
  position: relative;
}

.site-nav a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .brand-sub, .site-nav { display: none; }
}

/* ==========================================================================
   Homepage: カテゴリーピル
   ========================================================================== */
.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
  white-space: nowrap;
}

.pills-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-right: 4px;
}

.pill-item {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.pill-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
  text-decoration: none;
}

/* ==========================================================================
   Homepage: 2カラムマガジンレイアウト
   ========================================================================== */
.magazine-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-bottom: 60px;
}

@media (max-width: 860px) {
  .magazine-layout {
    grid-template-columns: 1fr;
  }
}

.magazine-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text-main);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

@media (max-width: 600px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
}

/* マガジン記事カード */
.mag-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.mag-card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mag-card-link:hover {
  text-decoration: none;
}

.mag-card-thumb {
  width: 100%;
  aspect-ratio: 1200 / 630;
  background: #f1f5f9;
  overflow: hidden;
}

.mag-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mag-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mag-category {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.mag-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
}

.mag-card:hover .mag-card-title {
  color: var(--primary);
}

.mag-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* サイドバー */
.magazine-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border);
}

.author-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.author-desc {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.65;
}

.widget-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.widget-list {
  list-style: none;
}

.widget-list li {
  margin-bottom: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.widget-list a {
  color: var(--text-body);
}

.widget-list a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Single Article: 読みやすさ重視の自然なレイアウト
   ========================================================================== */
.single-article {
  max-width: 780px;
  margin: 30px auto 60px;
}

.pr-disclosure {
  font-size: 0.82rem;
  color: #78350f;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  text-align: center;
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.45;
  color: var(--text-main);
  margin: 12px 0 20px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-category {
  background: #f1f5f9;
  color: var(--primary);
}

.badge-tag {
  background: #f8fafc;
  color: var(--text-muted);
}

.article-eyecatch {
  margin: 24px 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-content {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .article-content {
    padding: 24px 18px;
    font-size: 0.98rem;
  }
  .article-title {
    font-size: 1.45rem;
  }
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 32px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-content th, .article-content td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

.article-content tr:nth-child(even) td {
  background: #fafafa;
}

/* 目次 */
.table-of-contents {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.toc-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 6px;
  font-size: 0.88rem;
  padding-left: 14px;
  position: relative;
}

.table-of-contents li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ==========================================================================
   アフィリエイトパーツ（自然で高成約なデザイン）
   ========================================================================== */

/* 結論ボックス */
.quick-summary-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.quick-summary-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.quick-summary-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.quick-summary-list li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* メリット・デメリット */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}

.pros-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 16px;
}

.pros-title {
  font-weight: 800;
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.cons-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 16px;
}

.cons-title {
  font-weight: 800;
  color: #991b1b;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.pros-box ul, .cons-box ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pros-box li, .cons-box li {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

/* ポイントボックス */
.point-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
}

.point-box-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 6px;
}

/* CTAボタン */
.rich-cta-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-micro-copy {
  font-size: 0.84rem;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 8px;
  display: block;
}

.cta-button {
  display: inline-block;
  background: #d97706;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #b45309;
}

.cta-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 36px 0 28px;
  margin-top: 60px;
  text-align: center;
  font-size: 0.84rem;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-light);
}
