/* =========================================================
   まとめアンテナ - 訪問者ページ
   色はすべて :root の変数で指定。ここを変えればサイト全体の色が変わる。
   （管理画面のメインカラーは theme.css が --accent を上書きする）
   ========================================================= */
:root {
  --bg: #f6f7f5;          /* 背景 */
  --panel: #ffffff;       /* カードの背景 */
  --line: #e3e6e1;        /* 枠線 */
  --text: #1d2420;        /* 文字 */
  --text-dim: #6b746e;    /* 薄い文字 */
  --accent: #2f7d4f;      /* 主役の色 */
  --hot: #e0662f;         /* 差し色 */

  /* 主役の色から作る濃淡（--accent を変えれば一緒に変わる） */
  --accent-strong: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 45%, var(--line));
  --hot-soft: color-mix(in srgb, var(--hot) 8%, #fff);

  --rank-1: #d9a400;
  --rank-2: #9aa3ab;
  --rank-3: #b87333;
  --success-bg: #edf7f0;
  --success-line: #9fd0ae;
  --success-text: #1f5c34;
  --error-bg: #fdf1ef;
  --error-line: #f0b5aa;
  --error-text: #8c2a1c;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 2px 8px rgba(20, 30, 25, .04);
  --shadow-hover: 0 6px 18px rgba(20, 30, 25, .10);
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted { color: var(--text-dim); }

/* ---------- ヘッダー（白背景＋下端に細いアクセントライン） ---------- */
.site-header {
  background: var(--panel);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .03em;
}

.brand-desc {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}

.header-nav a:hover,
.header-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.header-nav .nav-register { color: #fff; background: var(--accent); }

.header-nav .nav-register:hover,
.header-nav .nav-register.is-active { color: #fff; background: var(--accent-strong); }

.header-banner { padding-bottom: 14px; }
.header-banner img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); }

/* ---------- カテゴリタブ（丸いボタン型・横スクロール・上部に固定） ---------- */
.category-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 9px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.tabs a {
  display: block;
  padding: 5px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .15s, border-color .15s, background-color .15s;
}

.tabs a:hover { border-color: var(--accent-line); color: var(--accent); }
.tabs a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- レイアウト ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 44px;
}

.main-col { min-width: 0; }

.page-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.page-title .count {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- 記事カード ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: card-in .45s ease both;
}

/* 読み込み時にふわっと表示（少しずつ遅らせる） */
.card:nth-child(2) { animation-delay: .03s; }
.card:nth-child(3) { animation-delay: .06s; }
.card:nth-child(4) { animation-delay: .09s; }
.card:nth-child(5) { animation-delay: .12s; }
.card:nth-child(6) { animation-delay: .15s; }
.card:nth-child(n+7) { animation-delay: .18s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.card-link {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 10px;
}

.thumb {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

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

/* サムネイルが無い記事用：斜めの縞模様の代替枠 */
.thumb.noimg {
  background-color: var(--accent-soft);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--accent) 14%, transparent) 0 7px,
    transparent 7px 15px
  );
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color .15s;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--text-dim);
  min-width: 0;
}

.meta-site {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}

.meta-cat {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--hot);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--hot);
  background: var(--hot-soft);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ランキングの順位 */
.card-rank {
  flex: 0 0 auto;
  align-self: center;
  min-width: 36px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.card-rank.rank-1 { color: var(--rank-1); font-size: 34px; }
.card-rank.rank-2 { color: var(--rank-2); font-size: 31px; }
.card-rank.rank-3 { color: var(--rank-3); font-size: 31px; }

.cards-ranking { grid-template-columns: minmax(0, 1fr); }

.period-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.period-tabs a {
  display: block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.period-tabs a:hover { border-color: var(--accent-line); color: var(--accent); }
.period-tabs a.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- ページ送り（今いるページは色を反転） ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 26px 0 8px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.pagination a {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--accent);
  transition: border-color .15s, background-color .15s;
}

.pagination a:hover { border-color: var(--accent); background: var(--accent-soft); }
.pagination .page-current { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.pagination .page-gap { min-width: 0; padding: 7px 2px; color: var(--text-dim); }

/* ---------- サイドバー ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px;
}

.widget-title {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.widget-empty { margin: 0; font-size: 13px; color: var(--text-dim); }

.popular-list { margin: 0; padding: 0; list-style: none; }
.popular-list li + li { border-top: 1px solid var(--line); }

.popular-list a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }

.popular-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.popular-list a:hover .popular-title { color: var(--accent); }

/* 順位の丸（1〜3位は色を変える） */
.rank {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--line);
}

.rank.rank-1 { background: var(--rank-1); border-color: var(--rank-1); color: #fff; }
.rank.rank-2 { background: var(--rank-2); border-color: var(--rank-2); color: #fff; }
.rank.rank-3 { background: var(--rank-3); border-color: var(--rank-3); color: #fff; }

.category-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.category-list a {
  display: block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color .15s, color .15s;
}

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

.widget-register {
  text-align: center;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.register-lead { margin: 0 0 4px; font-weight: 900; font-size: 15px; }
.register-note { margin: 0 0 12px; font-size: 12.5px; color: var(--text-dim); }

/* ---------- ボタン（アクセント色の塗り。乗せると少し濃く） ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 20px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s, box-shadow .15s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-block { display: flex; width: 100%; }

/* ---------- 記事ページ ---------- */
.article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.article-title {
  margin: 10px 0 8px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.article-image { margin: 0 0 18px; }
.article-image img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; }

.article-summary,
.article-content {
  font-size: 15.5px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-summary p { margin: 0 0 16px; }

.article-content a { color: var(--accent); text-decoration: underline; }
.article-content img,
.article-content iframe,
.article-content video { max-width: 100%; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-content pre { max-width: 100%; overflow-x: auto; }

.btn-readmore {
  display: flex;
  width: 100%;
  margin: 20px 0;
  padding: 16px 20px;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-readmore:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent); }

.btn-readmore .btn-sub {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  opacity: .92;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }

.tag-list a {
  display: block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.tag-list a:hover { color: var(--accent); border-color: var(--accent-line); }

.related { margin-top: 30px; }

.section-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

/* ---------- フリースペース（広告枠） ---------- */
.freespace { margin: 0 0 16px; max-width: 100%; overflow: hidden; text-align: center; }
.freespace img,
.freespace iframe { max-width: 100%; }

/* ---------- 登録サイト一覧 ---------- */
.site-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

.site-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

.site-name { font-size: 16px; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
a.site-name:hover { text-decoration: underline; }

.site-desc { margin: 6px 0 0; font-size: 14px; color: var(--text-dim); overflow-wrap: anywhere; }
.site-meta { margin: 6px 0 0; font-size: 12px; color: var(--text-dim); }

/* ---------- フォーム ---------- */
.lead { margin: 0 0 16px; color: var(--text-dim); }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 14px; font-weight: 700; }

.label em {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-style: normal;
  color: #fff;
  background: var(--hot);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 16px; /* スマホでの自動ズーム防止 */
  background: var(--panel);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ブラウザの自動入力で欄が水色にならないようにする */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
  box-shadow: 0 0 0 1000px var(--panel) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

.help { font-size: 12px; color: var(--text-dim); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* メッセージ（左端に太い縦線） */
.notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid;
  border-left-width: 5px;
}

.notice p { margin: 0 0 8px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice-success { background: var(--success-bg); border-color: var(--success-line); color: var(--success-text); }
.notice-error { background: var(--error-bg); border-color: var(--error-line); color: var(--error-text); }

.notfound {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.copyright { margin: 0; }

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: color .15s, border-color .15s;
}

.footer-rss:hover { color: var(--hot); border-color: var(--hot); }

/* ---------- タブレット ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- スマホ（680px以下） ---------- */
@media (max-width: 680px) {
  body { font-size: 14px; }

  .header-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .brand-name { font-size: 18px; }
  .header-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a { padding: 6px 10px; font-size: 13px; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .thumb { flex-basis: 96px; width: 96px; height: 70px; }
  .card-title { font-size: 14px; }

  .layout { padding-top: 14px; gap: 18px; }
  .page-title { font-size: 18px; }

  .article { padding: 16px; }
  .article-title { font-size: 19px; }
  .btn-readmore { font-size: 16px; padding: 14px 16px; }

  .form { padding: 16px; }
}

/* 動きを減らす設定の人にはアニメーションをしない */
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; transition: none; }
  .card:hover { transform: none; }
}

/* サイドバーの「ランキングを見る」リンク */
.widget-more {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.widget-more:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- 相互RSS（相互リンク先の新着記事） ---------- */
.mutual { margin: 0 0 16px; }
.mutual-bottom { margin: 22px 0 16px; }

.mutual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.mutual-grid .mutual-box {
  min-width: 0;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--hot);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mutual-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mutual-title a,
.widget-title a { color: inherit; }
.mutual-title a:hover,
.widget-title a:hover { color: var(--hot); }

.mutual-list { margin: 0; padding: 0; list-style: none; }

.mutual-list li + li { border-top: 1px dashed var(--line); }

.mutual-list a {
  display: block;
  padding: 6px 0 6px 14px;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  line-height: 1.5;
}

.mutual-list a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--hot);
}

.mutual-list a:hover { color: var(--hot); }

/* ---------- 新着（取り込みから3時間以内）の「NEW」マーク ---------- */
.badge-new {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--hot);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.75;
  letter-spacing: .06em;
  vertical-align: 2px;
}

/* サイト名の横の「◯分前に更新」 */
.meta-time { font-size: 11.5px; white-space: nowrap; }

/* ---------- 検索窓（ヘッダー） ---------- */
.header-search {
  display: flex;
  align-items: center;
  flex: 0 1 280px;
  min-width: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}

.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  background: var(--panel);
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 7px 4px 7px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.header-search input::-webkit-search-cancel-button { cursor: pointer; }

.header-search button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.header-search button:hover { color: var(--accent); }

/* 検索ページの大きな検索窓 */
.search-large { display: flex; gap: 8px; margin-bottom: 16px; }

.search-large input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.search-large input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }

@media (max-width: 980px) {
  .header-search { flex-basis: 220px; }
}

@media (max-width: 680px) {
  .header-search { flex: none; width: 100%; margin-left: 0; }
  .header-search input { font-size: 16px; } /* スマホでの自動ズーム防止 */
}
