/* ============================================
   まねきでんき メディア 共通スタイル
   ============================================ */

/* ============================================
   カスタムプロパティ（デザイントークン）
   ============================================ */
:root {
  /* カラーパレット */
  --color-brand-yellow: #FFB300;
  --color-brand-yellow-light: #FFF9E6;
  --color-brand-yellow-mid: #FFF0B3;
  --color-brand-yellow-dark: #B47800;
  --color-brand-navy: #0D1F2D;
  --color-brand-navy-mid: #1A3347;

  --color-text-primary: #1A2332;
  --color-text-secondary: #5A6A7A;
  --color-text-muted: #8A9BAB;
  --color-text-white: #FFFFFF;

  --color-green: #3B9A6A;
  --color-green-light: #E8F5EE;
  --color-green-mid: #C6E8D6;

  --color-bg-white: #FFFFFF;
  --color-bg-cream: #FAFAF7;
  --color-bg-yellow-pale: #FFFCF0;
  --color-bg-yellow-section: #FFF8DC;

  --color-border: #E8E8E4;
  --color-border-light: #F0F0EC;

  --color-category-bg: #FFF3C4;
  --color-category-text: #B47800;

  /* タイポグラフィ */
  --font-family-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 16px;
  --font-size-md: 17px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  --line-height-tight: 1.4;
  --line-height-base: 1.75;
  --line-height-loose: 1.9;

  /* スペーシング */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  --space-4xl: 100px;

  /* 角丸 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-sm: 0 1px 4px rgba(13, 31, 45, 0.06);
  --shadow-md: 0 2px 12px rgba(13, 31, 45, 0.08);
  --shadow-lg: 0 4px 24px rgba(13, 31, 45, 0.10);
  --shadow-card: 0 2px 8px rgba(13, 31, 45, 0.07);

  /* トランジション */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* レイアウト */
  --container-max: 1200px;
  --container-inner: 1040px;
  --sidebar-width: 300px;
  --header-height: 68px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================
   レイアウト ユーティリティ
   ============================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--inner {
  max-width: var(--container-inner);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 2カラムレイアウト */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
}

.layout-2col__main {
  min-width: 0;
}

.layout-2col__sidebar {
  min-width: 0;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-white);
  border-bottom: 2px solid var(--color-brand-yellow);
  box-shadow: 0 2px 8px rgba(13, 31, 45, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-lg);
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo a {
  display: flex;
  align-items: center;
}

.site-header__media-logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* メインナビゲーション */
.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.gnav__item a {
  display: block;
  padding: 8px 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.gnav__item a:hover {
  color: var(--color-brand-yellow-dark);
}

.gnav__item a.is-current {
  color: var(--color-brand-yellow-dark);
  font-weight: var(--font-weight-bold);
}

/* ヘッダー右エリア */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 検索フォーム */
.header-search {
  display: flex;
  align-items: center;
  background: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  gap: 6px;
  transition: border-color var(--transition-fast);
}

.header-search:focus-within {
  border-color: var(--color-brand-yellow);
  background: var(--color-bg-white);
}

.header-search input {
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  width: 130px;
  outline: none;
}

.header-search input::placeholder {
  color: var(--color-text-muted);
}

.header-search button {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.header-search button:hover {
  color: var(--color-brand-yellow-dark);
}

/* 申込みボタン */
.header-cta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-yellow);
  color: var(--color-brand-navy);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--color-brand-yellow-dark);
  color: var(--color-bg-white);
  transform: translateY(-1px);
}

/* ハンバーガー */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-lg);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__search {
  display: flex;
  align-items: center;
  background: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.mobile-menu__search input {
  border: none;
  background: transparent;
  font-size: var(--font-size-base);
  flex: 1;
  outline: none;
}

.mobile-menu__nav-list {
  border-top: 1px solid var(--color-border);
}

.mobile-menu__nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
}

.mobile-menu__cta {
  margin-top: var(--space-lg);
  padding: 14px;
  background: var(--color-brand-yellow);
  color: var(--color-brand-navy);
  font-weight: var(--font-weight-bold);
  text-align: center;
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
}

/* ============================================
   パンくずリスト
   ============================================ */
.breadcrumb {
  background: var(--color-bg-cream);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
}

.breadcrumb__item a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
  color: var(--color-brand-yellow-dark);
}

.breadcrumb__item:last-child {
  color: var(--color-text-muted);
}

.breadcrumb__sep {
  color: var(--color-text-muted);
  font-size: 10px;
}

/* ============================================
   カテゴリラベル
   ============================================ */
.cat-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--color-category-bg);
  color: var(--color-category-text);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.cat-label:hover {
  background: var(--color-brand-yellow-mid);
}

.cat-label--green {
  background: var(--color-green-light);
  color: var(--color-green);
}

.cat-label--sm {
  padding: 2px 8px;
  font-size: 10px;
}

/* ============================================
   記事カード
   ============================================ */

/* 標準カード */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.article-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}

.article-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card__title {
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  line-height: 1.55;
  color: var(--color-text-primary);
  flex: 1;
}

/* 注目記事カード（大） */
.article-card--featured {
  flex-direction: row;
  align-items: stretch;
}

.article-card--featured .article-card__thumb {
  width: 56%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.article-card--featured .article-card__body {
  padding: 24px;
  gap: 12px;
}

.article-card--featured .article-card__title {
  font-size: var(--font-size-lg);
  line-height: 1.5;
}

.article-card--featured .article-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ランキングカード */
.rank-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.rank-card:last-child {
  border-bottom: none;
}

.rank-card__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-brand-yellow-mid);
  color: var(--color-brand-yellow-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.rank-card:nth-child(1) .rank-card__num {
  background: var(--color-brand-yellow);
  color: var(--color-brand-navy);
}
.rank-card:nth-child(2) .rank-card__num {
  background: #E0E0E0;
  color: #555;
}
.rank-card:nth-child(3) .rank-card__num {
  background: #F5D4B0;
  color: #8B4513;
}

.rank-card__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rank-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card__info {
  flex: 1;
  min-width: 0;
}

.rank-card__title {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-card__title a:hover {
  color: var(--color-brand-yellow-dark);
}

/* ============================================
   セクション共通
   ============================================ */
.section {
  padding: var(--space-2xl) 0;
}

.section--bg-cream {
  background: var(--color-bg-cream);
}

.section--bg-yellow {
  background: var(--color-bg-yellow-section);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  color: var(--color-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
}

.section-title--lg {
  font-size: var(--font-size-2xl);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-brand-yellow-dark);
  border-bottom: 1px solid var(--color-brand-yellow);
  padding-bottom: 2px;
  transition: opacity var(--transition-fast);
}

.section-more:hover {
  opacity: 0.75;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: var(--font-size-base);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-brand-yellow);
  color: var(--color-brand-navy);
  border: 2px solid transparent;
}

.btn--primary:hover {
  background: #e6a000;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-brand-yellow);
  color: var(--color-brand-yellow-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand-navy);
  border: 2px solid var(--color-brand-navy);
}

.btn--outline:hover {
  background: var(--color-brand-navy);
  color: var(--color-bg-white);
}

.btn--green {
  background: var(--color-green);
  color: var(--color-bg-white);
  border: 2px solid transparent;
}

.btn--green:hover {
  background: #2d7d57;
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: var(--font-size-md);
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--font-size-sm);
}

.btn--full {
  width: 100%;
}

/* ============================================
   ページネーション
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-xl) 0;
}

.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pagination__item:hover {
  border-color: var(--color-brand-yellow);
  color: var(--color-brand-yellow-dark);
}

.pagination__item.is-current {
  background: var(--color-brand-yellow);
  border-color: var(--color-brand-yellow);
  color: var(--color-brand-navy);
  font-weight: var(--font-weight-bold);
}

.pagination__item--arrow {
  font-size: 16px;
}

/* WordPress標準 paginate_links() の出力（.page-numbers）を
   .pagination__item と同じ見た目にするための最小限のエイリアス */
.pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pagination .page-numbers:hover {
  border-color: var(--color-brand-yellow);
  color: var(--color-brand-yellow-dark);
}

.pagination .page-numbers.current {
  background: var(--color-brand-yellow);
  border-color: var(--color-brand-yellow);
  color: var(--color-brand-navy);
  font-weight: var(--font-weight-bold);
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
  width: auto;
  padding: 0 4px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-size: 16px;
}

/* ============================================
   タグ一覧
   ============================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--color-bg-cream);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.tag-item:hover {
  background: var(--color-brand-yellow-mid);
  color: var(--color-brand-yellow-dark);
  border-color: var(--color-brand-yellow);
}

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

.sidebar-widget {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-widget__head {
  padding: 14px 20px;
  background: var(--color-bg-yellow-section);
  border-bottom: 2px solid var(--color-brand-yellow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-navy);
}

.sidebar-widget__body {
  padding: 16px 20px;
}

/* ============================================
   CTAセクション
   ============================================ */
.cta-section {
  background: var(--color-brand-navy);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-brand-yellow);
}

.cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-brand-yellow);
  margin-bottom: 12px;
}

.cta-section__icon svg {
  width: 100%;
  height: 100%;
}

.cta-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  color: var(--color-brand-yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cta-section__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-bg-white);
  margin-bottom: 12px;
  line-height: 1.45;
}

.cta-section__desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--color-brand-navy);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__main {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__logo-wrap {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.site-footer__logo {
  height: 32px;
  width: auto;
}

.site-footer__tagline {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.site-footer__nav-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-bg-white);
  margin-bottom: 12px;
}

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav-list a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.site-footer__nav-list a:hover {
  color: var(--color-brand-yellow);
}

.site-footer__company-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

.site-footer__bottom-links a {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
}

.site-footer__bottom-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   記事本文スタイル（article.html用）
   ============================================ */
.article-body {
  font-size: var(--font-size-md);
  line-height: var(--line-height-loose);
  color: var(--color-text-primary);
}

.article-body h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-top: 56px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--color-bg-yellow-section);
  border-left: 4px solid var(--color-brand-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.45;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  line-height: 1.45;
}

.article-body h3::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-brand-yellow);
}

.article-body h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-brand-yellow-mid);
  line-height: 1.5;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--color-green);
  border-bottom: 1px solid var(--color-green-mid);
  transition: color var(--transition-fast);
}

.article-body a:hover {
  color: #2d7d57;
}

.article-body ul {
  list-style: none;
  margin-bottom: 20px;
}

.article-body ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.75;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-yellow);
}

.article-body ol {
  list-style: none;
  margin-bottom: 20px;
  counter-reset: ol-counter;
}

.article-body ol li {
  padding: 6px 0 6px 32px;
  position: relative;
  line-height: 1.75;
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand-yellow);
  color: var(--color-brand-navy);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 表 */
.article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: var(--font-size-sm);
}

.article-body th {
  background: var(--color-bg-yellow-section);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article-body td {
  padding: 11px 16px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.65;
}

.article-body tr:nth-child(even) td {
  background: var(--color-bg-cream);
}

/* 注意・ポイントボックス */
.box {
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.box__head {
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.box__body {
  padding: 16px 18px;
  font-size: var(--font-size-sm);
  line-height: 1.75;
}

.box--point {
  border: 1px solid var(--color-brand-yellow);
}

.box--point .box__head {
  background: var(--color-brand-yellow);
  color: var(--color-brand-navy);
}

.box--point .box__body {
  background: var(--color-brand-yellow-light);
  color: var(--color-text-primary);
}

.box--caution {
  border: 1px solid #FFCCBC;
}

.box--caution .box__head {
  background: #FFCCBC;
  color: #B71C1C;
}

.box--caution .box__body {
  background: #FFF8F5;
  color: var(--color-text-primary);
}

.box--info {
  border: 1px solid var(--color-green-mid);
}

.box--info .box__head {
  background: var(--color-green-light);
  color: var(--color-green);
}

.box--info .box__body {
  background: #F8FDF9;
  color: var(--color-text-primary);
}

/* 目次 */
.toc {
  background: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}

.toc__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc__item {
  font-size: var(--font-size-sm);
}

.toc__item a {
  color: var(--color-green);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
  border-bottom: none;
}

.toc__item a:hover {
  color: var(--color-brand-yellow-dark);
}

.toc__item--h3 {
  padding-left: 20px;
}

/* ============================================
   レスポンシブ
   ============================================ */

/* ヘッダー：PC⇔モバイル切り替え（1200px以上=PC / 1199px以下=モバイル） */
@media (max-width: 1199px) {
  .site-header__nav,
  .site-header__right {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    margin-left: auto;
  }

  .site-header__inner {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
    --gutter: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --space-2xl: 48px;
    --space-3xl: 64px;
  }

  .layout-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-card--featured {
    flex-direction: column;
  }

  .article-card--featured .article-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .cta-section__actions {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  .cta-section__actions .btn {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .article-body h2 {
    font-size: var(--font-size-lg);
    margin-top: 40px;
    padding: 12px 16px;
  }

  .article-body h3 {
    font-size: var(--font-size-base);
    margin-top: 32px;
  }
}

/* スマートフォン用メディアロゴ（縦積み） */
@media (max-width: 767px) {
  :root {
    --header-height: 80px;
  }

  .site-header__logo img {
    height: 64px;
    max-width: 110px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 14px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pagination__item {
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   ユーティリティ
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* 画像プレースホルダー */
.img-placeholder {
  background: linear-gradient(135deg, #f5f0e8 0%, #ede8dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  width: 100%;
  height: 100%;
}

/* ============================================
   404ページ
   ============================================ */
.not-found {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.not-found__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: var(--radius-full);
  background: var(--color-bg-yellow-section);
  color: var(--color-brand-yellow-dark);
}

.not-found__code {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  color: var(--color-brand-yellow-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.not-found__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.not-found__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-base);
  max-width: 480px;
  margin: 0 auto 32px;
}

.not-found__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.not-found__search {
  max-width: 420px;
  margin: 0 auto;
}

.not-found__search .header-search {
  width: 100%;
  padding: 10px 16px;
}

.not-found__search .header-search input {
  width: 100%;
  flex: 1;
}

@media (max-width: 480px) {
  .not-found {
    padding: var(--space-2xl) 0;
  }

  .not-found__actions {
    flex-direction: column;
    width: 100%;
  }

  .not-found__actions .btn {
    width: 100%;
  }
}
