/* ============================================================
   UIUX Picker — dark minimal theme (Linear / Raycast inspired)
   ============================================================ */

:root {
  --bg: #08090a;
  --surface: #101113;
  --surface-hover: #16171a;
  --surface-solid: #101113;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f7f8f8;
  --text-secondary: #9ca3af;
  --text-muted: #62666d;
  --accent: #5e6ad2;
  --accent-blue: #6c79e0;
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* フローティングヘッダ(fixed)分の逃げ: top 16px + 高さ56px */
  padding-top: 72px;
}

::selection {
  background: rgba(94, 106, 210, 0.4);
}

.hidden {
  display: none !important;
}

/* ---------------- header ---------------- */

/* フローティングナビゲーションバー: ページ幅より左右24px内側に浮かせて固定 */
.header {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.header-inner {
  position: relative;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.logo-text {
  font-family: 'Pixelify Sans', 'DotGothic16', var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.is-current {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* 白背景のpill型CTAボタン(ヘッダ右端) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-cta:hover {
  opacity: 0.85;
}

.btn-cta svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.btn-bookmark-view {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-bookmark-view:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-bookmark-view.is-active {
  color: var(--accent-blue);
  border-color: rgba(94, 106, 210, 0.5);
  background: rgba(94, 106, 210, 0.12);
}

.btn-bookmark-view svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.btn-cta.loading .refresh-icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- layout ---------------- */

/* カードグリッド(最大1000px)を中央に配置 */
.main {
  position: relative;
  z-index: 1;
  max-width: 1048px;
  /* コンテンツ幅1000px + 左右padding24px */
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* レイル化中は、中央寄せのままだと画面幅によってレイルとコンテンツが重なるため、
   レイル(left:24px + width:176px)分の余白を左に確保する。
   ただし画面が十分広く自然な中央寄せの余白だけでクリアできる場合は、
   固定値で上書きせず本来の中央寄せ幅(max-widthからの残り)を使う。
   これを怠ると、広い画面で中央寄せ時より狭い固定値に置き換わり、
   スクロールでレイル化した瞬間にコンテンツが左へ寄って見えてしまう。 */
body.rail-active .main {
  margin-left: max(232px, calc((100vw - 1048px) / 2));
}

@media (max-width: 1199px) {
  body.rail-active .main {
    margin-left: auto;
  }
}

.hero {
  margin-bottom: 32px;
}

.hero-text {
  max-width: 720px;
}

.hero-title {
  font-family: 'Pixelify Sans', 'DotGothic16', var(--font);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-copy {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.7;
}

/* hero image は使用しない(テキスト主体のミニマル構成) */
.hero-image {
  display: none;
}

/* ---------------- hero character (GLB) ---------------- */

/* タイトル下に3Dキャラクターを左右中央で配置 */
.hero-character {
  position: relative;
  width: 300px;
  margin: 20px auto 0;
}

.hero-model {
  display: block;
  width: 300px;
  height: 340px;
  background: transparent;
  --poster-color: transparent;
}

/* ピクセル風の吹き出し。box-shadowで四隅の欠けたドット絵調の枠を作る */
.pixel-bubble {
  position: absolute;
  top: 22px;
  left: calc(50% + 8px);
  z-index: 2;
  width: 176px;
  padding: 10px 12px;
  background: #fff;
  color: #1b1b2f;
  font-family: 'DotGothic16', 'Pixelify Sans', monospace;
  font-size: 13px;
  line-height: 1.65;
  box-shadow:
    0 -4px 0 0 #6a5ae0,
    0 4px 0 0 #6a5ae0,
    -4px 0 0 0 #6a5ae0,
    4px 0 0 0 #6a5ae0;
}

/* 口元へ向かうピクセル階段状のしっぽ */
.pixel-bubble::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: -10px;
  width: 8px;
  height: 8px;
  background: #6a5ae0;
  box-shadow:
    -8px 8px 0 0 #6a5ae0,
    -16px 16px 0 0 #6a5ae0;
}

@media (max-width: 720px) {
  .hero-character {
    width: 240px;
  }

  .hero-model {
    width: 240px;
    height: 280px;
  }

  .pixel-bubble {
    left: calc(50% + 24px);
    width: 140px;
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ---------------- controls / tabs ---------------- */

.controls {
  position: relative;
  z-index: 90;
  margin-bottom: 20px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  transition: opacity 0.15s ease;
}

/* 一定量スクロールすると、上部固定ではなく画面左端の縦型サイドレールに変形する */
.controls.is-rail {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 90;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 176px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
  margin-bottom: 0;
  padding: 16px 12px;
  gap: 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.controls.is-rail::-webkit-scrollbar {
  display: none;
}

/* 1200px未満ではレイアウト崩れを避けるため、レイル化を無効にして通常配置のまま */
@media (max-width: 1199px) {
  .controls.is-rail {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 0;
    gap: 10px 12px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
  }
}

.controls-spacer {
  display: none;
}

.controls-spacer.is-active {
  display: block;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  flex: 1 1 720px;
  /* flexアイテムは既定で中身より縮まない(min-width:auto)ため、
     これがないと横スクロールが発動しない */
  min-width: 0;
  max-width: 100%;
}

.controls.is-rail .filter-tabs {
  flex-direction: column;
  overflow-x: visible;
  flex: none;
  width: 100%;
  gap: 2px;
}

@media (max-width: 1199px) {
  .controls.is-rail .filter-tabs {
    flex-direction: row;
    width: auto;
    gap: 6px;
  }
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

/* 水平タブ: 非アクティブはテキストのみ、アクティブはpill型背景 */
.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: #fff;
}

.filter-tab.active {
  color: #fff;
  background: #333;
}

.controls.is-rail .filter-tab {
  width: 100%;
  max-width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1 1 100%;
}

.controls.is-rail .controls-actions {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1199px) {
  .controls.is-rail .controls-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    padding-top: 0;
    border-top: none;
  }
}

.status-tabs {
  display: inline-flex;
  gap: 2px;
}

.controls.is-rail .status-tabs {
  flex-direction: column;
  width: 100%;
}

@media (max-width: 1199px) {
  .controls.is-rail .status-tabs {
    flex-direction: row;
    width: auto;
  }
}

.status-tab {
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.status-tab:hover {
  color: #fff;
}

.status-tab.active {
  color: #fff;
  background: #333;
}

.controls.is-rail .status-tab {
  width: 100%;
  text-align: left;
}

.updated-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  margin-left: auto;
}

.controls.is-rail .updated-info {
  margin-left: 0;
  white-space: normal;
}

/* ---------------- states ---------------- */

.loading-state,
.sub-loading,
.error-state,
.empty-state {
  text-align: center;
  padding: 72px 0;
  color: var(--text-secondary);
}

.sub-loading {
  padding: 32px 0;
}

.spinner,
.spinner-sm {
  border: 2px solid var(--border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

.spinner {
  width: 32px;
  height: 32px;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
}

.scroll-sentinel {
  height: 20px;
  margin-top: -20px;
  pointer-events: none;
}

.error-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.btn-retry {
  margin-top: 14px;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-retry:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------- news list ---------------- */

/* 3カラムのカードグリッド */
.news-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
}

/* グリッドアイテムは既定で中身(長いURL等)より縮まないため明示する */
.news-list>li {
  min-width: 0;
}

/* インフィード広告は1行を占有させる */
.news-list>li.ad-item {
  grid-column: 1 / -1;
}

.news-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.15s ease;
}

.news-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.news-card.is-read {
  opacity: 0.45;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* サムネイル: RSS/OGP/記事内画像。大きくなりすぎないよう高さを固定 */
.card-thumb {
  display: block;
  height: 120px;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

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

.card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}

.card-link:hover .card-title {
  color: var(--accent-blue);
}

.card-desc {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 400;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* カード下部: 左にアバター、右に日付 */
.card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.card-date {
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.bookmark-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(94, 106, 210, 0.08);
  border: 1px solid rgba(94, 106, 210, 0.22);
}

.bookmark-note-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 3px;
}

.bookmark-note-text {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.card-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}

.btn-note,
.btn-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-note:hover,
.btn-bookmark:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.btn-bookmark.is-active {
  color: var(--accent-blue);
  background: rgba(94, 106, 210, 0.14);
}

.btn-note svg,
.btn-bookmark svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

/* ---------------- ads ---------------- */

.ad-slot {
  display: none;
}

.ad-slot.is-active {
  display: block;
  margin: 20px 0;
}

.ad-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ---------------- footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px 44px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ---------------- memo modal ---------------- */

.memo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.memo-modal-overlay.is-open {
  opacity: 1;
}

.memo-modal {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.memo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.memo-modal-title {
  font-size: 15px;
  font-weight: 600;
}

.memo-modal-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.memo-modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.memo-modal-close svg {
  width: 14px;
  height: 14px;
}

.memo-modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.memo-modal-textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
}

.memo-modal-textarea:focus {
  outline: none;
  border-color: rgba(94, 106, 210, 0.6);
}

.memo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.memo-modal-btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.memo-modal-btn-cancel {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
}

.memo-modal-btn-cancel:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.memo-modal-btn-save {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
}

.memo-modal-btn-save:hover {
  background: #6a76dd;
}

/* ---------------- policy page ---------------- */

.policy-page {
  max-width: 720px;
}

.policy-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 28px;
}

.policy-section {
  margin-bottom: 28px;
}

.policy-section h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.policy-section p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.policy-section a {
  color: var(--accent-blue);
}

.policy-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------------- feedback page ---------------- */

.feedback-page {
  max-width: 760px;
}

.feedback-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.feedback-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Googleフォーム埋め込み。カードと同じ面で囲んで統一感を出す */
.feedback-embed {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}

.feedback-iframe {
  display: block;
  width: 100%;
  min-height: 1100px;
  /* フォーム全体が見切れない高さ。モバイルは項目が縦に伸びるため下で拡張 */
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.feedback-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .feedback-iframe {
    min-height: 1300px;
  }
}

/* ---------------- weekly digest page ---------------- */

.weekly-page {
  max-width: 1048px;
}

.weekly-header {
  margin: 8px 0 36px;
}

.weekly-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.weekly-title {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.weekly-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.weekly-section {
  margin-bottom: 40px;
}

.weekly-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.weekly-section-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.weekly-items {
  list-style: none;
}

.weekly-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.weekly-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.weekly-archive {
  margin-top: 40px;
}

.weekly-archive h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.weekly-archive-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.weekly-archive-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.weekly-archive-list a:hover {
  color: var(--text-primary);
}

.weekly-empty {
  padding: 48px 0;
  color: var(--text-secondary);
}

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 64px;
    /* ヘッダ top 8px + 高さ56px */
  }

  .header {
    top: 8px;
    left: 12px;
    right: 12px;
  }

  .main {
    padding: 28px 16px 56px;
  }

  .header-inner {
    padding: 0 14px;
    gap: 14px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-card {
    padding: 20px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .updated-info {
    margin-left: 0;
  }
}