@charset "utf-8";
/* ============================================================
   読みもの（ブログ・お知らせ）一覧  —  blog.css
   前提: es-base.css（トップページと同じトークン／ヘッダー／フッター）の後に読み込む
   ここには「一覧ページ固有」のスタイルだけを書く。トークンは再定義しない。
   ============================================================ */

/* トップの .reveal は JS で可視化される。一覧では使わないため無効化しておく */
.reveal { opacity: 1 !important; transform: none !important; }

/* ── 1. 誌面ヘッダー ──────────────────────────────────────── */
.mag-head {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 92px) 0 clamp(34px, 4vw, 52px);
}
.mag-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px clamp(28px, 5vw, 72px);
  align-items: end;
}
.mag-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .16em; font-weight: 700;
  color: var(--mag); margin: 0 0 14px;
}
.mag-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--mag); flex: none; }
.mag-title {
  font-family: var(--mincho);
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.28; letter-spacing: .01em;
  margin: 0 0 18px; font-weight: 600; color: var(--ink);
}
.mag-title .count {
  display: inline-block; margin-left: .5em;
  font-size: .32em; letter-spacing: .1em; color: var(--ink-2);
  font-family: var(--gothic); font-weight: 400; vertical-align: .5em;
}
.mag-lead { margin: 0; max-width: 34em; color: var(--ink-2); line-height: 2; font-size: 15px; }

.mag-search { display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.mag-search input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  padding: 15px 8px 15px 22px; font: inherit; font-size: 15px; color: var(--ink);
}
.mag-search input::placeholder { color: #a4988a; }
.mag-search input:focus { outline: none; }
.mag-search:focus-within { border-color: var(--mag); box-shadow: 0 0 0 3px rgba(200, 21, 110, .12); }
.mag-search button {
  flex: none; border: 0; cursor: pointer; background: var(--mag); color: #fff;
  padding: 0 26px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.mag-search button:hover { background: var(--mag-deep); }

/* ── 2. カテゴリバー（追従） ───────────────────────────────── */
.mag-tabs {
  position: sticky; top: var(--header-height, 78px); z-index: 40;
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.mag-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mag-tabs-inner::-webkit-scrollbar { display: none; }
.mag-tab {
  flex: none; position: relative; padding: 17px 20px 15px;
  font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.mag-tab:hover { color: var(--ink); }
.mag-tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--mag); }
.mag-tab .n { font-size: 11px; color: var(--ink-2); margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ── 3. お知らせ帯 ────────────────────────────────────────── */
.notice-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.notice-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 0; text-decoration: none; color: inherit;
}
.notice-row + .notice-row { border-top: 1px dotted var(--line); }
.notice-badge {
  flex: none; font-size: 11px; letter-spacing: .14em; font-weight: 700;
  color: var(--paper); background: var(--ink); padding: 5px 13px; border-radius: 999px;
}
.notice-row time { flex: none; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.notice-row h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.notice-row:hover h3 { color: var(--mag); text-decoration: underline; text-underline-offset: 3px; }
.notice-more { margin-left: auto; font-size: 13px; color: var(--ink-2); white-space: nowrap; }

/* ── 4. 特集 ─────────────────────────────────────────────── */
.feature { padding: clamp(46px, 6vw, 78px) 0 clamp(30px, 4vw, 44px); }
.feature-link { display: block; text-decoration: none; color: inherit; }
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  align-items: center;
}
.feature-figure {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--line); box-shadow: var(--shadow);
}
.feature-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.feature-link:hover .feature-figure img { transform: scale(1.04); }
.feature-body {
  position: relative; z-index: 2; margin-left: -48px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: clamp(26px, 3.4vw, 42px);
  box-shadow: var(--shadow-small);
}
.feature-tagline {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--mag); margin-bottom: 16px;
}
.feature-tagline::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feature-body h2 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(21px, 2.3vw, 29px); line-height: 1.6; margin: 0 0 16px; letter-spacing: .01em;
}
.feature-link:hover .feature-body h2 { color: var(--mag-deep); }
.feature-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

/* ── 5. 記事カード ───────────────────────────────────────── */
.cards { padding: clamp(18px, 3vw, 34px) 0 clamp(40px, 5vw, 60px); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-figure {
  border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--line); margin-bottom: 16px;
}
.card-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.card:hover .card-figure img { transform: scale(1.05); }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.card h3 {
  font-family: var(--mincho); font-weight: 600; font-size: 17px; line-height: 1.68;
  margin: 0; letter-spacing: .01em;
}
.card:hover h3 { color: var(--mag-deep); }

/* カテゴリ・ラベルと日付（特集・カードで共用） */
.kind {
  font-size: 11px; letter-spacing: .1em; font-weight: 700; white-space: nowrap;
  padding-left: 11px; position: relative; color: var(--mag);
}
.kind::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.kind.is-local { color: var(--blue); }
.kind.is-cost  { color: var(--green); }
.kind.is-staff { color: var(--ink-2); }
.card time, .feature-meta time { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ── 6. よく読まれている（濃色の帯） ───────────────────────── */
.ranking { background: var(--ink); color: var(--cream); padding: clamp(48px, 6vw, 84px) 0; }
.ranking-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 38px); }
.ranking-head h2 { font-family: var(--mincho); font-weight: 600; font-size: clamp(22px, 2.6vw, 31px); margin: 0; letter-spacing: .02em; }
.ranking-head p { margin: 0; font-size: 13px; color: rgba(251, 246, 236, .6); }
.ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.rank {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0;
  border-top: 1px solid rgba(251, 246, 236, .18);
  text-decoration: none; color: inherit;
}
.rank-no {
  flex: none; font-family: var(--mincho); font-size: 26px; line-height: 1;
  color: var(--yellow); letter-spacing: -.02em; min-width: 1.4em;
}
.rank-no small { font-size: 11px; letter-spacing: .1em; color: rgba(251, 246, 236, .45); display: block; margin-top: 5px; font-family: var(--gothic); }
.rank h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 600; line-height: 1.65; }
.rank:hover h3 { color: var(--yellow); }
.rank .kind { color: rgba(251, 246, 236, .55); }
.rank .kind::before { background: rgba(251, 246, 236, .45); }

/* ── 7. ページャ ─────────────────────────────────────────── */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: clamp(20px, 3vw, 34px) 0 clamp(52px, 6vw, 84px); flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--mag); color: var(--mag); }
.pager .is-current { background: var(--mag); border-color: var(--mag); color: #fff; font-weight: 700; }
.pager .gap { border: 0; background: transparent; min-width: 24px; color: var(--ink-2); }
.pager .next { width: auto; padding: 0 22px; }

/* ── 8. 注記（免責） ─────────────────────────────────────── */
.mag-note {
  border-top: 1px solid var(--line); padding: 26px 0 clamp(40px, 5vw, 64px);
  font-size: 12.5px; line-height: 1.95; color: var(--ink-2); max-width: 62em;
}
.mag-note b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }

/* ── 応答（タブレット） ──────────────────────────────────── */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-body { margin-left: -32px; }
}

/* ── 応答（スマートフォン） ──────────────────────────────── */
@media (max-width: 767px) {
  .mag-head-inner { grid-template-columns: 1fr; }
  .mag-search { margin-top: 6px; }
  .mag-tabs { top: 0; }
  .mag-tabs-inner { margin: 0 -20px; padding: 0 20px; }
  .mag-tab { padding: 15px 14px 13px; font-size: 13.5px; }
  .notice-row { gap: 10px 14px; padding: 14px 0; }
  .notice-row h3 { flex-basis: 100%; font-size: 14.5px; }
  .notice-more { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-figure { border-radius: 12px; }
  .feature-body { margin: -34px 14px 0; }
  .card-grid { grid-template-columns: 1fr; gap: 30px; }
  .card-figure { margin-bottom: 13px; }
  .ranking-list { grid-template-columns: 1fr; }
  .rank { padding: 15px 0; gap: 14px; }
  .rank-no { font-size: 22px; }
}

/* ── 動きを減らす設定への対応 ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .feature-figure img, .card-figure img { transition: none; }
  .feature-link:hover .feature-figure img, .card:hover .card-figure img { transform: none; }
}


/* Runtime additions for WordPress-rendered archive states. */
.earthsupport-reading-page .card-figure:empty::before,
.earthsupport-reading-page .feature-figure:empty::before {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--cream), var(--line));
  content: "";
}

.mag-empty {
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
}

.mag-article-body {
  max-width: 880px;
  padding-block: clamp(46px, 6vw, 78px);
  font-size: 16px;
  line-height: 2;
}

.mag-article-body > * {
  margin-bottom: 1.6em;
}

.mag-article-body a {
  color: var(--mag-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mag-article-body img {
  border-radius: 8px;
}
