/* ============================================================
   ズボラママのお金革命 - SWELL風テーマ（curvyデザイン）
   白ベース + 大きな曲線区切り + カード型レイアウト
   ============================================================ */

/* サイト全体の色・フォント・寸法トークンを定義する */
:root {
  --main: #4a8266;
  --main-deep: #2e5744;
  --main-dark: #24483a;
  --main-pale: #ecf4ef;
  --main-soft: #f4f8f5;
  --accent: #d97f45;
  --accent-pale: #fbeee2;
  --gold: #d9b45b;
  --silver: #b7bcc4;
  --bronze: #c78f5d;
  --marker: rgba(242, 214, 117, 0.55);
  --text: #333333;
  --muted: #8a938c;
  --border: #e7eae7;
  --bg: #ffffff;
  --bg-soft: #f5f8f5;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 3px 14px rgba(30, 50, 40, 0.08);
  --shadow-hover: 0 12px 28px rgba(30, 50, 40, 0.15);
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;
  --font-display: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --header-h: 72px;
}

/* ボックス計算を安定させる */
* {
  box-sizing: border-box;
}

/* ページ内リンクをなめらかにスクロールさせる */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* 白ベースのクリーンな下地を敷く */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* リンクの基本状態を整える（SWELL風に下線なし） */
a {
  color: var(--main-deep);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* キーボード操作時のフォーカスを見やすくする */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(74, 130, 102, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 画像のはみ出しを防ぐ */
img {
  max-width: 100%;
  height: auto;
}

/* コンテンツ幅の共通コンテナを定義する */
.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ============================================================
   読了プログレスバー
   ============================================================ */

/* ページ最上部に読了率のバーを固定表示する */
.reading-progress {
  width: 100%;
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  background: var(--main);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ============================================================
   ヘッダー
   ============================================================ */

/* 白背景のスティッキーヘッダーを作る */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(30, 50, 40, 0.05);
}

/* ヘッダー内部をロゴとナビの横並びにする */
.header-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴリンクの並びを整える */
.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ロゴのキャラアイコンを丸く表示する */
.site-logo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main-pale);
}

/* ロゴ文字を2段に積む */
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* ロゴ上段の小さい文字 */
.site-logo-small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ロゴ下段のメイン文字 */
.site-logo-main {
  color: var(--main-dark);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

/* グローバルナビを横並びにする */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ナビ項目を日本語+英字の2段組みにする（SWELL風） */
.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  line-height: 1.3;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: var(--main-pale);
  color: var(--main-deep);
}

/* ナビの日本語ラベル */
.nav .nav-ja {
  font-size: 13.5px;
  font-weight: 700;
}

/* ナビの英字サブラベル */
.nav .nav-en {
  color: var(--main);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ============================================================
   ボタン
   ============================================================ */

/* 主要ボタン（塗り・ピル型）を定義する */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--main), var(--main-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(46, 87, 68, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(46, 87, 68, 0.34);
}

/* 補助ボタン（白・枠線）を定義する */
.button-secondary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 2px solid var(--main);
  background: #fff;
  color: var(--main-deep);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button-secondary:hover,
.button:hover {
  background: var(--main-pale);
  transform: translateY(-2px);
}

/* セクション下の「もっと見る」ボタンを中央に置く */
.more-wrap {
  margin-top: 36px;
  text-align: center;
}

/* もっと見るボタンの矢印を添える */
.button-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  min-height: 52px;
  padding: 12px 34px;
  border-radius: 999px;
  border: 2px solid var(--main);
  background: #fff;
  color: var(--main-deep);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button-more::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.2s ease;
}

.button-more:hover {
  background: var(--main);
  color: #fff;
  transform: translateY(-2px);
}

.button-more:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   セクションタイトル（日本語+英字）
   ============================================================ */

/* SWELL風の中央寄せセクション見出しを作る */
.section-title {
  margin: 0 0 34px;
  text-align: center;
}

/* 日本語のメイン見出し */
.section-title .section-title-ja {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* 英字のサブラベル */
.section-title .section-title-en {
  display: block;
  margin-top: 6px;
  color: var(--main);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* ============================================================
   曲線区切り（curvyデザインの核）
   ============================================================ */

/* セクション間の大きな曲線を描く */
.curve {
  display: block;
  width: 100%;
  height: 80px;
  margin: 0;
  line-height: 0;
}

.curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ヒーロー等の下端に重ねる絶対配置版 */
.curve-abs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  pointer-events: none;
}

/* ============================================================
   ヒーロー（トップページのメインビジュアル）
   ============================================================ */

/* 淡い緑グラデーションの全幅ヒーローを作る */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(74, 130, 102, 0.10), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(217, 180, 91, 0.12), transparent 40%),
    linear-gradient(160deg, #eef6f0 0%, #f7faf5 55%, #fdf6ec 100%);
  padding: 64px 0 150px;
  overflow: hidden;
}

/* ヒーロー内側を2カラムのグリッドにする */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 40px;
  align-items: center;
}

/* キャッチコピー上の小さなピルラベル */
.eyebrow {
  display: inline-block;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* ヒーローの大見出し */
.hero h1 {
  margin: 0 0 18px;
  color: var(--main-dark);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ヒーローの補足文 */
.lead {
  max-width: 640px;
  margin: 0;
  color: #5c6a60;
  font-size: 16.5px;
  font-weight: 500;
}

/* ヒーローの導線ボタンを横並びにする */
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ヒーロー右側のビジュアル領域 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* 立ち絵を大きな円形フレームに収める */
.hero-visual-panel {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(150deg, #ffffff 8%, #eaf3ec 58%, #fdf3e4 100%);
  box-shadow: 0 20px 50px rgba(46, 87, 68, 0.16), inset 0 0 0 10px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

/* 円形フレーム内の立ち絵 */
.hero-character {
  position: absolute;
  left: 50%;
  bottom: -4%;
  transform: translateX(-50%);
  width: 76%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(36, 48, 40, 0.16));
}

/* 装飾用の浮かぶ小円を散らす */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-visual::before {
  width: 54px;
  height: 54px;
  top: 2%;
  left: 4%;
  background: rgba(217, 180, 91, 0.35);
}

.hero-visual::after {
  width: 30px;
  height: 30px;
  bottom: 8%;
  right: 3%;
  background: rgba(74, 130, 102, 0.3);
}

/* LP型サイト用：ヒーローにバナー画像を大きく置く */
.hero-visual-banner {
  display: block;
}

.hero-banner-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 29, 58, 0.22);
}

/* ゆるこのメモを浮かぶカードにする */
.hero-note {
  position: absolute;
  left: -10px;
  bottom: 18px;
  width: min(250px, 80%);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-hover);
  z-index: 2;
}

/* メモの見出しラベル */
.hero-note span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ============================================================
   ピックアップ（ヒーロー曲線に重なる帯）
   ============================================================ */

/* 曲線に重ねるピックアップ帯を作る */
.pickup {
  position: relative;
  z-index: 3;
  margin-top: -74px;
}

/* ピックアップのラベル */
.pickup-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--main-deep);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.pickup-label::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--main-pale), transparent);
}

/* ピックアップカードを横並びにする */
.pickup-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 小型の横並びカード */
.pickup-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ピックアップのサムネイル */
.pickup-card img {
  width: 92px;
  height: 66px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

/* ピックアップのタイトル */
.pickup-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   セクション帯
   ============================================================ */

/* 白地の標準セクション */
.section-block {
  padding: 64px 0;
}

/* 淡い色付きの帯セクション（曲線で挟む） */
.band {
  background: var(--bg-soft);
  padding: 40px 0 56px;
}

/* ============================================================
   記事カード（SWELL風）
   ============================================================ */

/* カードを並べる基本グリッド */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

/* 記事詳細内の関連記事は最大3列に抑える */
.grid-related {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* 白カードの基本形 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* サムネイル領域（16:10）を作る */
.card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

/* サムネイル左上のカテゴリバッジ */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(30, 50, 40, 0.25);
}

/* ランキング用の順位バッジ */
.card-rank {
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 3;
  width: 40px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 700;
  background: var(--main);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
}

/* 1〜3位は王冠カラーで塗り分ける */
.card-rank[data-rank="1"] { background: var(--gold); }
.card-rank[data-rank="2"] { background: var(--silver); }
.card-rank[data-rank="3"] { background: var(--bronze); }

/* カード本文の余白 */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

/* カードタイトル */
.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.card h3 a {
  color: var(--text);
}

.card h3 a:hover {
  color: var(--main);
}

/* タイトルリンクをカード全体に広げる */
.card h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* カードの説明文（2行で省略） */
.card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* カード下部の日付メタ */
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ============================================================
   カテゴリバナー（画像オーバーレイ型）
   ============================================================ */

/* カテゴリバナーのグリッド */
.category-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* 画像に暗幕+白文字を重ねるバナー */
.category-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-banner:hover img {
  transform: scale(1.07);
}

/* 画像を使わないグラデ版バナー（LP型サイト用） */
.category-banner-plain {
  background: linear-gradient(135deg, var(--main-deep), var(--main));
}

.category-banner-plain[data-index="1"] {
  background: linear-gradient(135deg, var(--main), var(--main-deep));
}

.category-banner-plain[data-index="2"] {
  background: linear-gradient(135deg, var(--main-dark), var(--main));
}

.category-banner-plain[data-index="3"] {
  background: linear-gradient(135deg, var(--main-deep), var(--main-dark));
}

/* グラデ版は暗幕を消し、金の細枠でリッチに見せる */
.category-banner-plain::before {
  display: none;
}

.category-banner-plain {
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(217, 180, 91, 0.5);
}

.category-banner-plain .banner-en {
  color: var(--gold);
  opacity: 1;
}

/* 文字を読ませる暗幕 */
.category-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(36, 72, 58, 0.24), rgba(36, 72, 58, 0.62));
}

/* バナー中央の文字組み */
.category-banner-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-align: center;
}

.category-banner-label .banner-ja {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.category-banner-label .banner-en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

/* ============================================================
   キャラクター紹介帯
   ============================================================ */

/* ゆるこ紹介を中央寄せで見せる */
.character-band {
  text-align: center;
}

/* 紹介用の大きな丸アイコン */
.character-band .character-avatar-lg {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: var(--shadow-hover);
}

/* キャラ名 */
.character-band .character-name {
  margin: 16px 0 2px;
  color: var(--main-dark);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

/* キャラの肩書き */
.character-band .character-role {
  margin: 0 0 12px;
  color: var(--main);
  font-size: 13px;
  font-weight: 700;
}

/* キャラの説明文 */
.character-band .character-text {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #5c6a60;
  font-size: 14.5px;
}

/* ============================================================
   2カラムレイアウト（一覧・記事）
   ============================================================ */

/* メイン+サイドバーの2カラムを組む */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
  padding: 40px 0 72px;
}

/* 一覧ページ内のカードは2列にする */
.page-layout .grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

/* ページ大見出し */
.page-title {
  margin: 8px 0 24px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.4;
}

/* ページ見出しの英字サブ */
.page-title-en {
  display: block;
  margin-top: 4px;
  color: var(--main);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* カテゴリページの説明文 */
.category-lead {
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ============================================================
   サイドバー・ウィジェット
   ============================================================ */

/* サイドバー全体の縦積み */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ウィジェットの白箱 */
.widget {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

/* ウィジェット見出し（下線+メイン色） */
.widget-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main-pale);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: var(--main);
}

/* ウィジェット見出しの英字 */
.widget-title .widget-title-en {
  margin-left: 8px;
  color: var(--main);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* プロフィールウィジェットは中央寄せ */
.widget-profile {
  text-align: center;
}

/* プロフィールの丸アイコン */
.widget-profile .widget-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--main-pale);
}

/* プロフィールの名前 */
.widget-profile .widget-name {
  margin: 10px 0 2px;
  color: var(--main-dark);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
}

/* プロフィールの肩書き */
.widget-profile .widget-role {
  margin: 0 0 10px;
  color: var(--main);
  font-size: 11.5px;
  font-weight: 700;
}

/* プロフィールの説明 */
.widget-profile .widget-text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
}

/* プロフィールのボタンは小さめ */
.widget-profile .button-secondary {
  min-height: 40px;
  padding: 6px 22px;
  font-size: 13px;
}

/* ランキングウィジェットのリスト */
.ranking-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li {
  border-bottom: 1px dashed var(--border);
}

.ranking-list li:last-child {
  border-bottom: none;
}

/* ランキング1行のリンク */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
}

.ranking-item:hover .ranking-title {
  color: var(--main);
}

/* 順位番号の丸バッジ */
.ranking-num {
  flex: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
}

/* 1〜3位は王冠カラー */
.ranking-num[data-rank="1"] { background: var(--gold); }
.ranking-num[data-rank="2"] { background: var(--silver); }
.ranking-num[data-rank="3"] { background: var(--bronze); }

/* ランキングのサムネイル */
.ranking-thumb {
  flex: none;
  width: 64px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

/* ランキングのタイトル */
.ranking-title {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

/* カテゴリウィジェットのリスト */
.category-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  border-bottom: 1px dashed var(--border);
}

.category-list li:last-child {
  border-bottom: none;
}

/* カテゴリ1行のリンク（右矢印付き） */
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.category-list a::after {
  content: "›";
  color: var(--main);
  font-size: 18px;
  font-weight: 700;
}

.category-list a:hover {
  color: var(--main);
}

/* サイドバーの追従エリア（目次など） */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   パンくず・お知らせ
   ============================================================ */

/* パンくずリスト */
.breadcrumb {
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--main);
}

/* 広告表記・免責のお知らせ枠 */
.notice {
  margin: 14px 0;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #f7f6f2;
  border: 1px solid #ece9e0;
  color: #7c7a70;
  font-size: 12px;
  line-height: 1.7;
}

/* ============================================================
   記事詳細ページ
   ============================================================ */

/* 記事全体のコンテナ */
.article {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* 記事ヘッダー領域 */
.article-header {
  padding-top: 6px;
}

/* カテゴリチップと読了時間の行 */
.article-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 12px;
}

/* カテゴリチップ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.chip:hover {
  background: var(--main-deep);
  color: #fff;
}

/* 読了時間の表示 */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.reading-time::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.2 3.1.8-1.2-4.5-2.7z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.2 3.1.8-1.2-4.5-2.7z"/></svg>') center / contain no-repeat;
}

/* 記事タイトル */
.article h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.5;
}

/* 記事の説明文 */
.article-description {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
}

/* 日付・著者メタ */
.article .meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
}

/* アイキャッチ画像 */
.article-cover {
  margin: 0 0 8px;
}

.article-cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 本文中の図解画像（比較表・ドーナツ図など） */
.article-diagram {
  margin: 28px 0;
  text-align: center;
}

.article-diagram img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* 記事本文+サイドバーの2カラム */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
  padding: 20px 0 72px;
}

/* 記事本文の文字設定 */
.article-main {
  min-width: 0;
  font-size: 16px;
}

.article-main > p {
  margin: 1.4em 0;
}

/* 本文中のリンクは下線を付ける */
.article-main p a,
.article-main li a {
  text-decoration: underline;
  text-decoration-color: rgba(74, 130, 102, 0.4);
  text-underline-offset: 0.2em;
}

/* SWELL風の帯型H2 */
.article-main h2 {
  margin: 2.6em 0 1.2em;
  padding: 0.72em 1em;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--main), var(--main-deep));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

/* 左線アクセントのH3 */
.article-main h3 {
  margin: 2.2em 0 1em;
  padding: 0.25em 0 0.25em 0.75em;
  border-left: 5px solid var(--main);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

/* 蛍光マーカー風の強調 */
.marker {
  background: linear-gradient(transparent 58%, var(--marker) 58%);
  color: inherit;
  font-weight: 700;
}

/* 本文の箇条書き */
.article-main ul:not(.checklist) {
  margin: 1.4em 0;
  padding: 18px 22px 18px 40px;
  border-radius: var(--radius-sm);
  background: var(--main-soft);
}

.article-main ul:not(.checklist) li {
  margin: 0.35em 0;
}

/* ============================================================
   記事内パーツ（吹き出し・ボックス類）
   ============================================================ */

/* ゆるこ吹き出しの横並び */
.speech-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 1.8em 0;
}

/* 吹き出し用の丸アバター */
.speech-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--main-pale);
}

/* スプライトから表示するゆるこのポーズ */
.mascot {
  width: 84px;
  aspect-ratio: 1;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--main-pale);
  background-color: #fff;
  background-image: url("/images/character/yuruko_spritesheet.png");
  background-size: 300% 200%;
  box-shadow: var(--shadow);
}

/* 各ポーズのスプライト位置 */
.mascot--tip { background-position: 0% 0%; }
.mascot--thinking { background-position: 50% 0%; }
.mascot--ok { background-position: 100% 0%; }
.mascot--notebook { background-position: 0% 100%; }
.mascot--wave { background-position: 50% 100%; }
.mascot--relieved { background-position: 100% 100%; }

/* 吹き出し本体（しっぽ付き） */
.speech-content {
  position: relative;
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* 吹き出しのしっぽ（枠線側） */
.speech-content::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -12px;
  border-style: solid;
  border-width: 8px 12px 8px 0;
  border-color: transparent var(--border) transparent transparent;
}

/* 吹き出しのしっぽ（白側） */
.speech-content::after {
  content: "";
  position: absolute;
  top: 28px;
  left: -8px;
  border-style: solid;
  border-width: 6px 10px 6px 0;
  border-color: transparent #fff transparent transparent;
}

/* 吹き出し内の名前ラベル */
.speech-name {
  margin: 0 0 4px;
  color: var(--main);
  font-size: 11.5px;
  font-weight: 800;
}

.speech-content p:not(.speech-name) {
  margin: 0;
  font-size: 14.5px;
}

/* 冒頭のひとことは淡い緑地にする */
.speech-box-lead .speech-content {
  border-color: rgba(74, 130, 102, 0.35);
  background: var(--main-soft);
}

.speech-box-lead .speech-content::before {
  border-right-color: rgba(74, 130, 102, 0.35);
}

.speech-box-lead .speech-content::after {
  border-right-color: var(--main-soft);
}

/* ポイント枠（SWELLのキャップボックス風） */
.callout {
  position: relative;
  margin: 2em 0;
  padding: 22px 20px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14.5px;
}

/* 枠上に重なる「POINT」ラベル */
.callout-mark {
  position: absolute;
  top: -13px;
  left: 14px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.callout-mark::before {
  content: "POINT";
}

/* チェックリスト（緑チェック付き） */
.checklist {
  margin: 1.8em 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--main-soft);
  border: 1px solid var(--main-pale);
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 0.5em 0;
  padding-left: 32px;
  font-size: 14.5px;
}

/* 丸+チェックの記号を描く */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--main);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.32em + 5px);
  width: 9px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* 手順ステップ（番号丸+縦ライン） */
.steps {
  margin: 1.8em 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 22px 46px;
  counter-increment: step;
  font-size: 14.5px;
}

/* 番号の丸バッジ */
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
}

/* ステップをつなぐ縦ライン */
.steps li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 2px;
  width: 2px;
  background: var(--main-pale);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

/* この記事でわかること（要約ボックス） */
.summary-box {
  margin: 1.8em 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--main-pale);
  background: #fff;
}

.summary-box .summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--main-deep);
  font-size: 15px;
  font-weight: 800;
}

/* 見出し前の小さな本アイコン */
.summary-box .summary-title::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--main);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 21l-1-.6a10.6 10.6 0 0 0-5.4-1.4H3V5h2.6A12.6 12.6 0 0 1 12 6.9 12.6 12.6 0 0 1 18.4 5H21v14h-2.6a10.6 10.6 0 0 0-5.4 1.4zM5 17h.6a12.6 12.6 0 0 1 5.4 1.2V8.6A10.6 10.6 0 0 0 5.6 7H5zm14 0V7h-.6a10.6 10.6 0 0 0-5.4 1.6v9.6a12.6 12.6 0 0 1 5.4-1.2z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 21l-1-.6a10.6 10.6 0 0 0-5.4-1.4H3V5h2.6A12.6 12.6 0 0 1 12 6.9 12.6 12.6 0 0 1 18.4 5H21v14h-2.6a10.6 10.6 0 0 0-5.4 1.4zM5 17h.6a12.6 12.6 0 0 1 5.4 1.2V8.6A10.6 10.6 0 0 0 5.6 7H5zm14 0V7h-.6a10.6 10.6 0 0 0-5.4 1.6v9.6a12.6 12.6 0 0 1 5.4-1.2z"/></svg>') center / contain no-repeat;
}

.summary-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-box li {
  position: relative;
  margin: 0.4em 0;
  padding-left: 22px;
  font-size: 14px;
}

.summary-box li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--main);
}

/* ============================================================
   目次（SWELL風ボックス）
   ============================================================ */

/* サイドバーの目次カード */
.toc-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

/* 目次タイトル（中央寄せ） */
.toc-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

/* 目次タイトル前のリストアイコン */
.toc-title::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--main);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 6h2v2H4zm4 0h12v2H8zM4 11h2v2H4zm4 0h12v2H8zM4 16h2v2H4zm4 0h12v2H8z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 6h2v2H4zm4 0h12v2H8zM4 11h2v2H4zm4 0h12v2H8zM4 16h2v2H4zm4 0h12v2H8z"/></svg>') center / contain no-repeat;
}

/* 目次のリンクリスト（番号付き） */
.toc-nav {
  display: flex;
  flex-direction: column;
  counter-reset: toc;
}

.toc-nav a {
  position: relative;
  counter-increment: toc;
  padding: 7px 0 7px 30px;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.toc-nav a:last-child {
  border-bottom: none;
}

.toc-nav a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--main);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
}

.toc-nav a:hover {
  color: var(--main);
}

.toc-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* モバイル用の折りたたみ目次 */
.toc-mobile {
  display: none;
  margin: 20px 0 4px;
  border: 2px solid var(--main-pale);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 18px;
}

.toc-mobile summary {
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  list-style: none;
}

.toc-mobile summary::after {
  content: " ▾";
  color: var(--main);
}

/* ============================================================
   記事末CTA・サイドバーCTA
   ============================================================ */

/* 記事末の回遊CTAカード */
.article-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 2.6em 0 1.6em;
  padding: 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--main-soft), #fdf8ef);
  border: 1px solid var(--main-pale);
}

.article-cta h2 {
  all: unset;
  display: block;
  margin: 0 0 6px;
  color: var(--main-dark);
  font-size: 19px;
  font-weight: 800;
}

.article-cta p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #5c6a60;
}

.article-cta-mascot {
  width: 104px;
}

/* CTA内のボタン列 */
.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-cta-actions .button-primary,
.article-cta-actions .button-secondary {
  min-height: 42px;
  padding: 8px 22px;
  font-size: 13.5px;
}

/* サイドバーの小さなCTA */
.sidebar-cta {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--main-soft), #fdf8ef);
  border: 1px solid var(--main-pale);
  padding: 20px;
  text-align: center;
}

.sidebar-cta-title {
  margin: 0 0 6px;
  color: var(--main-dark);
  font-size: 15px;
  font-weight: 800;
}

.sidebar-cta p {
  margin: 0 0 14px;
  color: #5c6a60;
  font-size: 12.5px;
}

.sidebar-cta .button-primary {
  min-height: 42px;
  padding: 8px 24px;
  font-size: 13.5px;
}

/* 関連記事セクションの見出し */
.related-section {
  margin-top: 3em;
}

/* 帯型H2の指定を打ち消して下線型にする */
.article-main .related-section h2,
.related-section h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 10px;
  border-radius: 0;
  background: none;
  border-bottom: 2px solid var(--main-pale);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.related-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--main);
}

/* 記事内のキャラ紹介枠 */
.character-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 2.6em 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.character-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--main-pale);
}

.character-box .character-name {
  margin: 0 0 2px;
  color: var(--main-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.character-box p {
  margin: 0.2em 0;
  font-size: 13.5px;
}

/* ============================================================
   静的ページ（運営者情報など）
   ============================================================ */

/* 静的ページは読みやすい1カラムにする */
.static-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.static-page h1 {
  margin: 10px 0 24px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
}

.static-page h2 {
  margin: 2.2em 0 0.9em;
  padding: 0.6em 0.9em;
  border-radius: var(--radius-sm);
  background: var(--main-soft);
  border-left: 5px solid var(--main);
  font-size: 19px;
  font-weight: 800;
}

.static-page ul {
  padding-left: 1.4em;
}

/* ============================================================
   フッター（曲線トップ+濃緑）
   ============================================================ */

/* フッター全体を濃緑にする */
.site-footer {
  background: var(--main-dark);
  color: #cfe0d4;
  font-size: 13.5px;
}

/* フッター上の白からの曲線 */
.footer-curve {
  display: block;
  width: 100%;
  height: 70px;
  line-height: 0;
  background: transparent;
}

.footer-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* フッター内の3カラム */
.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 44px 0 34px;
}

/* フッターのサイト名 */
.footer-brand {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.footer-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: #a8c2b1;
}

/* フッター列の見出し */
.footer-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* フッターのリンクリスト */
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: #cfe0d4;
  font-size: 13px;
}

.footer-list a:hover {
  color: #fff;
}

/* フッター最下段のコピーライト帯 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0 18px;
  text-align: center;
}

.footer-bottom p {
  margin: 4px 0;
  font-size: 11.5px;
  color: #a8c2b1;
}

/* ============================================================
   ページ上部へ戻るボタン
   ============================================================ */

/* 右下固定の丸ボタン */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 87, 68, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.to-top:hover {
  background: var(--main-deep);
  color: #fff;
  transform: translateY(-3px);
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   モバイル下部固定メニュー（SWELL風）
   ============================================================ */

/* スマホだけ表示する下部バー */
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(30, 50, 40, 0.08);
}

/* 下部バーの各ボタン */
.mobile-menu a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 9px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.mobile-menu a:hover {
  color: var(--main);
}

.mobile-menu svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

/* タブレット以下でサイドバーを縦積みにする */
@media (max-width: 1024px) {
  .page-layout,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* 記事のサイドバー目次はモバイル版に譲る */
  .article-aside .toc-card {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .sidebar-sticky {
    position: static;
  }
}

/* スマホ向けの調整 */
@media (max-width: 760px) {
  body {
    padding-bottom: 58px;
  }

  /* ナビは隠して下部バーに置き換える */
  .nav {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .header-inner {
    min-height: 60px;
  }

  .site-logo-main {
    font-size: 20px;
  }

  .site-logo-avatar {
    width: 38px;
    height: 38px;
  }

  /* ヒーローを1カラムにする */
  .hero {
    padding: 40px 0 130px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-visual-panel {
    width: min(320px, 88%);
  }

  .hero-note {
    left: 0;
    bottom: 8px;
  }

  /* ピックアップは横スクロールにする */
  .pickup {
    margin-top: -64px;
  }

  .pickup-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 80%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .pickup-card {
    scroll-snap-align: start;
  }

  .section-block {
    padding: 46px 0;
  }

  .curve,
  .curve-abs {
    height: 44px;
  }

  .curve-abs {
    height: 56px;
  }

  /* カテゴリバナーは2列にする */
  .category-banners {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTAカードを縦積みにする */
  .article-cta {
    flex-direction: column;
    text-align: center;
  }

  .article-cta-actions {
    justify-content: center;
  }

  .character-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 0 26px;
  }

  .to-top {
    bottom: 70px;
    right: 14px;
    width: 42px;
    height: 42px;
  }
}
