body { margin: 0; }
[hidden] { display: none !important; }

/* レイアウト：方眼紙の帳簿。トップ・シリーズ一覧・カード・お問い合わせを1つのファイルで切り替える */
:root {
  --paper: #F6F8FA;
  --sheet: #FFFFFF;
  --grid: #E3E9EF;
  --ink: #1B2233;
  --ink-soft: #566074;
  --rule: #C9D2DD;
  --accent: #1E62B0;
  --accent-soft: #E3EEFA;
  --red-ink: #C0352B;
  --warn: #9A6400;
  --warn-soft: #FBF0DA;
  --bad-soft: #FBE6E3;
  --thumb-ink: #FFFFFF;
  --thumb-dark-ink: #1B2233;
  --thumb-red: #D7322B;
  --thumb-sky: #3FB4E8;
  --thumb-black: #16161C;
  --thumb-yellow: #F5C518;
  --thumb-purple: #4E2491;
  --thumb-pink: #E0408F;
  --font-display: "DotGothic16", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12161F; --sheet: #1A2030; --grid: #1F2636; --ink: #E7ECF4; --ink-soft: #A3AEC2;
    --rule: #323B50; --accent: #5FA8F0; --accent-soft: #1C2D47; --red-ink: #FF7A6E;
    --warn: #F2C063; --warn-soft: #362B14; --bad-soft: #3A1F1E; --thumb-ink: #F2F5FA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12161F; --sheet: #1A2030; --grid: #1F2636; --ink: #E7ECF4; --ink-soft: #A3AEC2;
  --rule: #323B50; --accent: #5FA8F0; --accent-soft: #1C2D47; --red-ink: #FF7A6E;
  --warn: #F2C063; --warn-soft: #362B14; --bad-soft: #3A1F1E; --thumb-ink: #F2F5FA;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  padding-inline: 16px;
  padding-block: 0 48px;
}
.wrap { max-width: 1040px; margin: 0 auto; }
section[id] { scroll-margin-top: 80px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ヘッダー */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  margin-inline: -16px; padding: 10px 16px;
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #FFFFFF; display: block; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; line-height: 1.2; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 4px; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav a.x-link { background: var(--ink); color: var(--paper); font-weight: 700; margin-left: 4px; }
.nav a.x-link:hover { background: var(--accent); color: var(--paper); }

/* ヒーロー */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 48px 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.3; margin: 8px 0 16px; text-wrap: balance; }
.hero h1 .red { color: var(--red-ink); }
.hero p { margin: 0; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 4px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--sheet); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }

/* 資金の内訳（帳簿） */
.ledger { background: var(--sheet); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 16px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.ledger-head h2 { margin: 0; font-size: 15px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; line-height: 1.6; }
.chip-plan { background: var(--accent-soft); color: var(--accent); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger td { padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.ledger td:last-child { text-align: right; }
.ledger tr.total td { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 700; }
.ledger .note { padding: 10px 16px; font-size: 12px; color: var(--ink-soft); }
.goal { padding: 0 16px 14px; }
.goal-bar { height: 10px; background: var(--grid); border: 1px solid var(--rule); position: relative; }
.goal-bar span { position: absolute; inset: 0 auto 0 0; width: 10%; background: var(--ink); }
.goal-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

/* セクション */
section.block { padding-block: 40px; border-top: 2px solid var(--ink); }
.block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.block-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0; }
.block-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.block-head .more { margin-left: auto; font-size: 14px; font-weight: 700; text-decoration: none; }
.block-head .more:hover { text-decoration: underline; }

/* サムネイル（カテゴリごとの柄） */
.thumb { position: relative; max-width: 100%; color: var(--thumb-ink); display: flex; align-items: flex-end; overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.10) 2px, transparent 2px);
  background-size: 16px 16px; }
.thumb.market { background-color: var(--thumb-red); }
.thumb.psa {
  background-color: var(--thumb-sky);
  background-image:
    linear-gradient(rgba(255,255,255,.10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.10) 2px, transparent 2px),
    linear-gradient(var(--thumb-red), var(--thumb-red)),
    linear-gradient(var(--thumb-red), var(--thumb-red));
  background-size: 16px 16px, 16px 16px, 10% 60%, 10% 60%;
  background-position: 0 0, 0 0, left top, right top;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  color: var(--thumb-dark-ink);
}
.thumb.buy {
  background-color: var(--thumb-black);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.08) 2px, transparent 2px),
    linear-gradient(90deg,
      transparent calc(30% - 14px), var(--thumb-yellow) calc(30% - 14px),
      var(--thumb-yellow) calc(30% + 14px), transparent calc(30% + 14px),
      transparent calc(70% - 14px), var(--thumb-yellow) calc(70% - 14px),
      var(--thumb-yellow) calc(70% + 14px), transparent calc(70% + 14px));
  background-size: 16px 16px, 16px 16px, 100% 100%;
}
.thumb.report {
  background-color: var(--thumb-purple);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.08) 2px, transparent 2px),
    linear-gradient(var(--thumb-pink), var(--thumb-pink)),
    linear-gradient(var(--thumb-pink), var(--thumb-pink));
  background-size: 16px 16px, 16px 16px, 22% 38%, 22% 38%;
  background-position: 0 0, 0 0, left top, right top;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}
.thumb-label { font-family: var(--font-display); letter-spacing: 0.06em; line-height: 1.2; }
.thumb .sample { position: absolute; top: 10px; right: 10px; background: var(--thumb-ink); color: var(--thumb-dark-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* トップの最新記事（カード） */
.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post { display: flex; flex-direction: column; background: var(--sheet); border: 2px solid var(--ink); text-decoration: none; color: var(--ink); min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.post:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.post .thumb { aspect-ratio: 16 / 7; border-bottom: 2px solid var(--ink); padding: 14px 16px; }
.post .thumb-label { font-size: 22px; }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.meta .cat { font-weight: 700; color: var(--accent); }
.post h3 { margin: 0; font-size: 17px; line-height: 1.55; text-wrap: balance; }
.post p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.articles-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-soft); }

/* 記事一覧ページ */
.crumbs { font-size: 12px; color: var(--ink-soft); padding-top: 24px; }
.crumbs a { color: var(--ink-soft); }
.list-head { padding-block: 8px 20px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.list-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 40px); margin: 0; line-height: 1.3; }
.list-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.filter { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--sheet); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; text-decoration: none; cursor: pointer; }
.filter .count { font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); }
.filter:hover { background: var(--accent-soft); }
.filter[aria-current="true"] { background: var(--ink); color: var(--paper); }
.filter[aria-current="true"] .count { color: var(--paper); }
.rows { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--sheet); border: 2px solid var(--ink); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.row:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.row .thumb { border-right: 2px solid var(--ink); padding: 12px 14px; min-height: 120px; }
.row .thumb-label { font-size: 18px; }
.row-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; min-width: 0; }
.row h2 { margin: 0; font-size: 17px; line-height: 1.55; text-wrap: balance; }
.row p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.list-note { margin: 16px 0 0; font-size: 12px; color: var(--ink-soft); }

/* 月次レポート */
.table-wrap { overflow-x: auto; background: var(--sheet); border: 2px solid var(--ink); }
.reports { width: 100%; min-width: 560px; border-collapse: collapse; }
.reports th, .reports td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.reports th:first-child, .reports td:first-child { text-align: left; }
.reports th { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; border-bottom: 2px solid var(--ink); }
.reports td.muted { color: var(--ink-soft); }
.empty { padding: 18px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.empty p { margin: 0; font-size: 14px; min-width: 0; flex: 1 1 280px; }

/* 運営者・免責 */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about h3 { margin: 0 0 8px; font-size: 15px; }
.about p, .about li { font-size: 14px; color: var(--ink-soft); }
.about ul { margin: 0; padding-left: 1.2em; }
.about p { margin: 0 0 8px; max-width: 40em; }

.site-footer { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 40px; font-size: 12px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 記事ページ */
.back-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 8px 14px; min-height: 44px; }
.back-btn:hover { background: var(--accent-soft); color: var(--accent); }
.back-bottom { margin-top: 28px; }
.article { background: var(--sheet); border: 2px solid var(--ink); margin-top: 12px; }
.article-thumb { aspect-ratio: 16 / 5; border-bottom: 2px solid var(--ink); padding: 18px 22px; }
.article-thumb .thumb-label { font-size: clamp(24px, 4vw, 34px); }
.article-body { padding: 22px clamp(16px, 4vw, 40px) 30px; max-width: 760px; }
.article-body h1 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.5; margin: 8px 0 12px; text-wrap: balance; }
.article-body .lead { margin: 0 0 20px; color: var(--ink-soft); }
.sample-box { border: 2px dashed var(--rule); padding: 16px; font-size: 14px; color: var(--ink-soft); background: var(--paper); }
.article-body.wide { max-width: none; }
.article-body.wide > .lead, .article-body.wide > h1 { max-width: 760px; }

/* 記事：SA一覧（PSA10枚数・取得率） */
.notice { background: var(--warn-soft); color: var(--warn); border-left: 4px solid var(--warn); padding: 10px 14px; font-size: 13.5px; font-weight: 500; margin: 0 0 20px; max-width: 760px; }
.notice strong { font-weight: 700; }
.sa-intro p { margin: 0 0 12px; max-width: 760px; }
.sa-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); margin: 20px 0; max-width: 760px; }
.sa-stats div { padding: 10px 14px; border-right: 1px solid var(--rule); min-width: 0; }
.sa-stats div:last-child { border-right: 0; }
.sa-stats dt { font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; }
.sa-stats dd { margin: 0; font-family: var(--font-num); font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sa-stats dd small { font-size: 12px; font-family: var(--font-body); color: var(--ink-soft); font-weight: 500; }
.sa-tools { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.sa-tools label { font-size: 12px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.sa-tools select { font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; padding: 6px 8px; min-height: 36px; }
.sa-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.sa-kinds button { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--sheet); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 36px; }
.sa-kinds button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sa-kinds .count { font-family: var(--font-num); font-size: 12px; margin-left: 4px; opacity: .75; }
.sa-shown { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.sa-group { margin-top: 26px; }
.sa-group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 14px; }
.sa-date { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); font-size: 13px; line-height: 1.6; }
.sa-date small { font-size: 11px; font-weight: 700; padding: 0 6px; background: var(--sheet); color: var(--ink); display: flex; align-items: center; }
.sa-date time { font-family: var(--font-num); color: var(--paper); background: var(--ink); padding: 0 8px; }
.sa-promo { margin-top: 44px; }
.sa-promo .sa-group-head { border-bottom-style: double; border-bottom-width: 4px; }
.sa-figs .diff dt { font-weight: 500; padding-left: 8px; }
.sa-figs .diff dd { font-size: 12.5px; font-weight: 600; }
.sa-figs dd.up { color: var(--accent); }
.sa-figs dd.down { color: var(--red-ink); }
.sa-figs dd.flat { color: var(--ink-soft); }
.sa-figs .diff + div:not(.sa-bar) { margin-top: 2px; padding-top: 4px; border-top: 1px dashed var(--rule); }
.sa-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-stats dd.small { font-size: 15px; }
.sa-group-head h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.sa-group-head span { font-size: 12px; color: var(--ink-soft); }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sa-card { display: flex; flex-direction: column; min-width: 0; background: var(--sheet); border: 2px solid var(--ink); position: relative; }
.sa-card .rank { position: absolute; top: 6px; left: 6px; font-family: var(--font-num); font-size: 12px; font-weight: 600; background: var(--ink); color: var(--paper); padding: 0 6px; z-index: 1; }
.sa-img { aspect-ratio: 63 / 88; background: var(--grid); border-bottom: 2px solid var(--ink); }
.sa-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sa-name { font-size: 14px; font-weight: 700; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.sa-no { font-family: var(--font-num); font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; }
.sa-no span { font-family: var(--font-body); }
.sa-figs { margin: auto 0 0; display: grid; gap: 4px; }
.sa-figs div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.sa-figs dt { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.sa-figs dd { margin: 0; font-family: var(--font-num); font-size: 15px; font-weight: 600; }
.sa-bar { height: 6px; background: var(--grid); border: 1px solid var(--rule); }
.sa-bar span { display: block; height: 100%; background: var(--accent); }
.sa-foot { margin-top: 28px; font-size: 12.5px; color: var(--ink-soft); max-width: 760px; }
.sa-foot p { margin: 0 0 6px; }
.thumb.psa.has-cards { padding: 0; align-items: stretch; }
.thumb-cards { display: flex; gap: 6px; padding: 10px; align-items: flex-end; overflow: hidden; width: 100%; }
.thumb-cards img { height: 100%; max-height: 100%; aspect-ratio: 63 / 88; object-fit: cover; border: 2px solid var(--thumb-dark-ink); flex: none; }
.thumb-cards .thumb-label { align-self: flex-end; margin-left: 4px; white-space: nowrap; }
@media (max-width: 640px) {
  .sa-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-stats-4 div:nth-child(2) { border-right: 0; }
  .sa-stats-4 div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 460px) {
  /* スマホ：カードを横3列に */
  .sa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sa-card { border-width: 1.5px; }
  .sa-card .rank { font-size: 10.5px; top: 4px; left: 4px; padding: 0 4px; }
  .sa-info { padding: 5px 6px 7px; gap: 3px; }
  .sa-name { font-size: 11.5px; line-height: 1.35; }
  .sa-no { font-size: 10px; }
  .sa-figs { gap: 1px; }
  .sa-figs div { gap: 2px; }
  .sa-figs dt { font-size: 10px; white-space: nowrap; }
  .sa-figs dd { font-size: 11.5px; white-space: nowrap; letter-spacing: -0.02em; }
  .sa-figs .diff dt { font-size: 9.5px; padding-left: 0; letter-spacing: -0.03em; }
  .sa-figs .diff dd { font-size: 10.5px; }
  .sa-figs .diff + div:not(.sa-bar) { padding-top: 2px; }
  .sa-bar { height: 4px; }
  .sa-stats dd { font-size: 17px; }
  .sa-shown { margin-left: 0; width: 100%; }
}

/* コメント */
.comments { margin-top: 32px; max-width: 760px; }
.c-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.c-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0; }
.c-count { color: var(--ink-soft); font-size: 14px; }
.c-status { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.c-status:empty { display: none; }
.c-admin { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 8px 12px; margin: 0 0 14px; }
.c-form { background: var(--sheet); border: 2px solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.c-field { display: flex; flex-direction: column; gap: 4px; }
.c-field label { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.c-field input, .c-field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; padding: 8px 10px; width: 100%; resize: vertical; }
.c-field input:focus, .c-field textarea:focus { outline: none; border-color: var(--accent); }
.c-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-chars { font-size: 12px; color: var(--ink-soft); }
.c-error { font-size: 13px; color: var(--red-ink); flex: 1 1 160px; }
.c-actions .btn { margin-left: auto; }
.c-actions .btn[disabled] { opacity: .5; cursor: default; transform: none; }
.c-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.c-item { background: var(--sheet); border: 2px solid var(--ink); padding: 12px 16px; }
.c-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.c-meta strong { color: var(--ink); font-size: 14px; }
.c-meta .mine { font-weight: 700; color: var(--accent); }
.c-text { margin: 6px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.c-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vote { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 32px; }
.vote svg { width: 16px; height: 16px; }
.vote:hover { border-color: var(--ink); }
.vote[aria-pressed="true"].up { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vote[aria-pressed="true"].down { background: var(--bad-soft); border-color: var(--red-ink); color: var(--red-ink); }
.vote[disabled] { cursor: default; opacity: .6; }
.del { margin-left: auto; font: inherit; font-size: 12px; font-weight: 700; color: var(--red-ink); background: none; border: 1.5px solid var(--red-ink); border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.del.ok { background: var(--red-ink); color: var(--sheet); }
.del.cancel { margin-left: 0; color: var(--ink-soft); border-color: var(--rule); }
/* お問い合わせ */
.contact { max-width: 720px; }
.contact-intro p { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.contact-intro { margin-bottom: 18px; }
.c-field select { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; padding: 8px 10px; width: 100%; }
.c-field select:focus { outline: none; border-color: var(--accent); }
.q-done { font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 12px 16px; margin: 0 0 20px; }
.inbox { margin-top: 36px; }
.q-topic { font-weight: 700; color: var(--accent); }
.q-mail { font-family: var(--font-num); font-size: 12px; user-select: all; overflow-wrap: anywhere; }
.c-empty { border: 2px dashed var(--rule); padding: 18px; font-size: 14px; color: var(--ink-soft); text-align: center; }

@media (max-width: 820px) {
  .hero, .about { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 28px 32px; }
}
@media (max-width: 640px) {
  .articles { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .thumb { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 0; aspect-ratio: 16 / 6; }
}
@media (max-width: 460px) {
  .nav { margin-left: 0; }
}
@media (max-width: 400px) {
  /* 幅の狭いスマホ：余白と文字を少し詰めて3列に収める */
  .article-body.wide { padding-inline: 10px; }
  .sa-grid { gap: 6px; }
  .sa-info { padding: 4px 5px 6px; }
  .sa-figs dt { font-size: 9px; }
  .sa-figs dd { font-size: 10.5px; }
  .sa-figs .diff dt { font-size: 9px; }
  .sa-figs .diff dd { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .post:hover, .row:hover { transform: none; }
  .post, .row { transition: none; }
}

/* ===== 調査帳：追加分 ===== */
.marquee { position: relative; overflow: hidden; padding: 10px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee a { display: block; flex: none; margin-right: 18px; }
.marquee img { display: block; height: 260px; width: auto; aspect-ratio: 63 / 88; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--grid); transition: transform .15s ease; }
.marquee a:hover img { transform: translateY(-4px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 820px) { .marquee img { height: 200px; } }
@media (max-width: 460px) { .marquee img { height: 180px; box-shadow: 3px 3px 0 var(--ink); } .marquee a { margin-right: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.about li { margin-bottom: 6px; }
.about li strong { color: var(--ink); }

.post .series-count { font-size: 12px; color: var(--ink-soft); }

/* カード一覧のタイルはカードページへのリンク */
a.sa-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
a.sa-link:hover .sa-name { color: var(--accent); text-decoration: underline; }
.sa-card { transition: transform .15s ease, box-shadow .15s ease; }
.sa-card:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }

/* カードのページ */
.cd { padding: 0; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; padding: 24px clamp(16px, 4vw, 40px); border-bottom: 2px solid var(--ink); align-items: start; }
.cd-img img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); background: var(--grid); }
.cd-main h1 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.45; margin: 6px 0 4px; }
.cd-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
.cd-sub .num { color: var(--ink); }
.cd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { border: 2px solid var(--ink); padding: 12px 14px; background: var(--sheet); min-width: 0; }
.tile dt { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.tile .big { margin: 2px 0 0; font-family: var(--font-num); font-size: clamp(26px, 4vw, 34px); font-weight: 600; line-height: 1.2; }
.tile .big small { font-family: var(--font-body); font-size: 14px; font-weight: 700; margin-left: 2px; }
.tile .chg { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.tile .chg b { font-family: var(--font-num); font-size: 15px; }
.tile .chg b.up { color: var(--accent); }
.tile .chg b.down { color: var(--red-ink); }
.tile .tip-q { font-weight: 400; margin-left: 2px; }
.sc-meter { display: block; height: 6px; margin-top: 6px; background: rgba(0,0,0,.08); border-radius: 3px; overflow: hidden; }
.sc-meter span { display: block; height: 100%; background: var(--accent); }
.cd-body { padding: 8px clamp(16px, 4vw, 40px) 28px; }
.cd-sec { margin-top: 24px; }
.cd-sec-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.cd-sec-head h2 { margin: 0; font-size: 17px; }
.cd-sec-head span { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; max-width: 760px; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .axis text { fill: var(--ink-soft); font-family: var(--font-num); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent); stroke: var(--sheet); stroke-width: 2; }
.chart .lbl { fill: var(--ink); font-family: var(--font-num); font-size: 12px; font-weight: 600; }
.chart .hit { fill: transparent; cursor: default; }
.chart .cross { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 3; visibility: hidden; }
.cd-sc-note { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.6; }
.chart-note { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }
.reports td.up { color: var(--accent); }
.reports td.down { color: var(--red-ink); }
.cd-table-wrap { overflow-x: auto; }
#cd-table { min-width: 0; }
#cd-table .d-short { display: none; }
@media (max-width: 380px) {
  #cd-table .d-full { display: none; }
  #cd-table .d-short { display: inline; }
}
@media (max-width: 520px) {
  #cd-table th, #cd-table td { padding: 8px 4px; font-size: 12px; }
  #cd-table th { white-space: normal; }
  #cd-table th:first-child, #cd-table td:first-child { padding-left: 8px; }
  #cd-table th:last-child, #cd-table td:last-child { padding-right: 8px; }
  #cd-table th { font-size: 11px; }
}
.cd-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cd-pager a { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); padding: 8px 10px; text-decoration: none; color: var(--ink); background: var(--sheet); min-width: 0; min-height: 44px; }
.cd-pager a:hover { background: var(--accent-soft); }
.cd-pager a.next { justify-content: flex-end; text-align: right; }
.cd-pager img { width: 36px; height: auto; border: 1px solid var(--ink); flex: none; }
.cd-pager span { font-size: 13px; font-weight: 700; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.cd-pager small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 500; }
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.5; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.tip b { font-family: var(--font-num); font-size: 13px; }
@media (max-width: 640px) {
  .cd-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cd-img { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 400px) {
  .cd-tiles { gap: 8px; }
  .tile { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-card, .sa-card:hover { transition: none; transform: none; }
}
@media (max-width: 380px) {
  #cd-table th, #cd-table td { padding-inline: 3px; font-size: 11.5px; }
  #cd-table th:first-child, #cd-table td:first-child { padding-left: 6px; }
  #cd-table th:last-child, #cd-table td:last-child { padding-right: 6px; }
}
.series-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.series-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--sheet); border: 2px solid var(--ink); padding: 0 16px 0 0; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.series-item:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.series-item img { display: block; width: 100%; height: auto; border-right: 2px solid var(--ink); background: var(--grid); }
.series-item h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.series-item:hover h3 { color: var(--accent); text-decoration: underline; }
.series-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.series-body h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.series-body p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.series-range .num { color: var(--ink); }
.series-go { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.series-item:hover .series-go { text-decoration: underline; }
@media (max-width: 820px) {
  .series-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .series-item { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding-right: 12px; }
  .series-item h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .series-item, .series-item:hover { transition: none; transform: none; } }
.series-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.series-sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
.series-sub .num { color: var(--ink); }

/* ===== デザイン：青と白（ドット・方眼をなくした版）。上の指定を上書きする ===== */
:root {
  --paper: #F3F7FC; --sheet: #FFFFFF; --grid: #E8EFF8; --ink: #13294B; --ink-soft: #5B6B82;
  --rule: #DCE5F1; --accent: #1A63D6; --accent-strong: #0F4CB0; --accent-soft: #E7F0FE;
  --red-ink: #D03B3B; --warn: #8A5A00; --warn-soft: #FFF5DE; --brand: #1A63D6; --brand-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 4px 14px rgba(19, 41, 75, .06);
  --shadow-hover: 0 2px 4px rgba(19, 41, 75, .08), 0 10px 24px rgba(19, 41, 75, .10);
  --radius: 12px;
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1726; --sheet: #152238; --grid: #1C2B45; --ink: #E6EEF9; --ink-soft: #9FB0C8;
    --rule: #26385A; --accent: #6AA6FF; --accent-strong: #8DBBFF; --accent-soft: #1A2E52;
    --red-ink: #FF7C7C; --warn: #F2C063; --warn-soft: #33290F; --brand: #133E85; --brand-ink: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-hover: 0 6px 18px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --paper: #0E1726; --sheet: #152238; --grid: #1C2B45; --ink: #E6EEF9; --ink-soft: #9FB0C8;
  --rule: #26385A; --accent: #6AA6FF; --accent-strong: #8DBBFF; --accent-soft: #1A2E52;
  --red-ink: #FF7C7C; --warn: #F2C063; --warn-soft: #33290F; --brand: #133E85; --brand-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-hover: 0 6px 18px rgba(0, 0, 0, .4);
}
body { background: var(--paper); background-image: none; }

/* ヘッダー：青い帯に白文字 */
.site-header { background: var(--brand); color: var(--brand-ink); border-bottom: 0; box-shadow: 0 2px 10px rgba(15, 50, 110, .18); }
.brand { color: var(--brand-ink); }
.brand .avatar { border: 2px solid rgba(255, 255, 255, .9); }
.brand-name { font-weight: 700; letter-spacing: 0.02em; }
.brand-name small { color: rgba(255, 255, 255, .78); }
.nav a { color: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 12px; }
.nav a:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.nav a[aria-current="page"] { background: #FFFFFF; color: var(--accent-strong); }
.nav a.x-link { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .7); }
.nav a.x-link:hover { background: #FFFFFF; color: var(--accent-strong); }

/* 見出し：細いドット書体をやめて、太めのゴシックに */
.hero h1, .block-head h2, .list-head h1, .c-head h2 { font-weight: 700; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.35; }
.hero h1 .red { color: var(--accent); }
.eyebrow { color: var(--accent); }
.block-head h2 { font-size: 24px; }
.list-head h1 { font-size: clamp(26px, 4.5vw, 34px); }

/* 線と影：黒い太線・ずらした影をやめて、薄い線とやわらかい影に */
section.block { border-top: 1px solid var(--rule); }
.site-footer { border-top: 1px solid var(--rule); }
.btn { border-radius: 999px; border: 1.5px solid var(--accent); padding: 10px 20px; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: var(--sheet); color: var(--accent); }
.back-btn { border: 1px solid var(--rule); border-radius: 999px; color: var(--accent); box-shadow: var(--shadow); }
.back-btn:hover { background: var(--accent-soft); }
.article, .c-form, .c-item, .table-wrap, .tile, .series-item, .sa-card, .cd-pager a {
  border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.article { overflow: hidden; }
.series-item, .sa-card { overflow: hidden; }
.series-item:hover, .sa-card:hover, .cd-pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.series-item img { border-right: 1px solid var(--rule); }
.sa-img { border-bottom: 1px solid var(--rule); }
.sa-card .rank { background: var(--accent); border-radius: 6px; }
.cd-img img { border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); }
.cd-grid { border-bottom: 1px solid var(--rule); }
.tile { box-shadow: none; background: var(--accent-soft); border-color: transparent; }
.tile dt { color: var(--accent-strong); }
.sa-stats { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.sa-stats div { border-color: var(--rule) !important; }
.sa-tools { border-top: 1px solid var(--rule); }
.sa-kinds button { border: 1.5px solid var(--rule); color: var(--ink); }
.sa-kinds button:hover { border-color: var(--accent); color: var(--accent); }
.sa-kinds button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.sa-group-head, .cd-sec-head, .c-head { border-bottom: 1px solid var(--rule); }
.sa-group-head h2, .cd-sec-head h2 { color: var(--ink); }
.sa-date { border: 0; border-radius: 999px; overflow: hidden; background: var(--accent-soft); }
.sa-date small { background: transparent; color: var(--accent-strong); padding-left: 10px; }
.sa-date time { background: var(--accent); color: #FFFFFF; padding: 0 10px; }
.sa-promo .sa-group-head { border-bottom: 2px solid var(--accent); }
.reports th { border-bottom: 1px solid var(--rule); background: var(--accent-soft); color: var(--accent-strong); }
.notice { border-left-width: 3px; border-radius: 0 8px 8px 0; }
.meta .cat { color: var(--accent); }

/* カードが流れる部分：枠や黒い影をやめて、角丸＋やわらかい影 */
.marquee img { border: 0; border-radius: 10px; box-shadow: 0 6px 18px rgba(19, 41, 75, .18); }
.marquee { padding: 12px 0 22px; }

/* シリーズのページ上部の帯：赤い柄をやめて、青のグラデーションに */
.thumb.psa, .thumb.psa.has-cards {
  background-color: var(--accent);
  background-image: linear-gradient(120deg, #1A63D6 0%, #3E8BF0 60%, #7DB6FF 100%);
  border-bottom: 0;
}
.thumb-cards img { border: 0; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.article-thumb { border-bottom: 0; }

/* フォーム */
.c-field input, .c-field textarea, .c-field select, .sa-tools select { border-radius: 8px; background: var(--sheet); }
.c-empty { border: 1.5px dashed var(--rule); border-radius: var(--radius); }

/* グラフの線は青のまま。点の縁は白 */
.chart .dot { stroke: var(--sheet); }
.tip { background: var(--ink); border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .series-item:hover, .sa-card:hover, .cd-pager a:hover { transform: none; }
}

/* ===== 色合い2：参考サイト風（白いヘッダー、青い文字、淡い水色の背景、大きな角丸） ===== */
:root {
  --paper: #F1F5FB; --sheet: #FFFFFF; --grid: #E6EDF7; --ink: #1F3F78; --ink-soft: #5E78A6;
  --rule: #DCE5F2; --accent: #1E4FA0; --accent-strong: #163E82; --accent-soft: #EAF0FA;
  --brand: #FFFFFF; --brand-ink: #1E4FA0;
  --shadow: 0 2px 6px rgba(30, 79, 160, .05), 0 10px 30px rgba(30, 79, 160, .07);
  --shadow-hover: 0 4px 10px rgba(30, 79, 160, .08), 0 16px 40px rgba(30, 79, 160, .12);
  --radius: 22px;
}
body { letter-spacing: 0.04em; }

/* ヘッダー：白地に青い文字 */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule), 0 6px 20px rgba(30, 79, 160, .05); }
.brand { color: var(--accent); }
.brand .avatar { border: 2px solid var(--accent); }
.brand-name { letter-spacing: 0.08em; }
.brand-name small { color: var(--ink-soft); letter-spacing: 0.06em; }
.nav a { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] { background: var(--accent); color: #FFFFFF; }
.nav a.x-link { color: var(--accent); border-color: var(--accent); }
.nav a.x-link:hover { background: var(--accent); color: #FFFFFF; }

/* 見出し：青い太字で、字の間を広めに */
.hero h1, .block-head h2, .list-head h1, .article-body h1, .cd-main h1, .sa-group-head h2, .cd-sec-head h2, .series-item h3 {
  color: var(--accent); letter-spacing: 0.1em; }
.hero h1 { line-height: 1.5; }
.hero h1 .red { color: #4F86D9; }
.eyebrow { letter-spacing: 0.18em; font-weight: 500; }
.hero p, .block-head p, .list-head p, .lead { color: var(--ink-soft); }

/* ボタン：濃い青に、うすい輪をつける */
.btn-primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(30, 79, 160, .16); }
.btn-primary:hover { background: var(--accent-strong); transform: none; box-shadow: 0 0 0 7px rgba(30, 79, 160, .2); }
.btn-ghost { border-color: var(--accent); }
.back-btn { border: 1.5px solid var(--accent); box-shadow: none; background: var(--sheet); }

/* 白い大きなパネル（角を大きく丸める） */
.article { border: 0; border-radius: 40px; box-shadow: var(--shadow); }
.series-item, .sa-card, .cd-pager a, .table-wrap, .c-form, .c-item { border: 0; box-shadow: var(--shadow); }
.series-item { border-radius: 24px; }
.sa-card { border-radius: 18px; }
.sa-stats { border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.tile { border-radius: 24px; background: var(--accent-soft); }
.cd-img img { border: 0; border-radius: 16px; }
.cd-grid { border-bottom: 1px solid var(--rule); }
.sa-kinds button { border: 1.5px solid var(--accent); color: var(--accent); background: var(--sheet); }
.sa-kinds button[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }
.sa-card .rank { background: var(--accent); border-radius: 999px; padding: 0 8px; }
.sa-date { background: var(--accent-soft); }
.sa-date time { background: var(--accent); }
.sa-group-head, .cd-sec-head { border-bottom: 1px solid var(--rule); }
.sa-promo .sa-group-head { border-bottom: 2px solid var(--accent); }
.reports th { background: var(--accent-soft); color: var(--accent); }
.sa-figs dt, .tile dt { color: var(--ink-soft); }
.sa-name { color: var(--ink); }

/* 区切り線は消して、白いパネルと余白で区切る */
section.block { border-top: 0; }
#home-series { background: var(--sheet); border-radius: 40px; padding: 36px clamp(18px, 4vw, 44px); margin: 16px 0 24px; box-shadow: var(--shadow); }
#home-series .series-item { box-shadow: none; background: var(--paper); }
#home-series .series-item:hover { box-shadow: var(--shadow-hover); }

/* シリーズのページ上部の帯：濃い青から淡い青へ */
.thumb.psa, .thumb.psa.has-cards { background-image: linear-gradient(120deg, #1E4FA0 0%, #4A7FD0 55%, #A9C8F2 100%); }

/* カードが流れる部分 */
.marquee img { border-radius: 14px; box-shadow: 0 10px 28px rgba(30, 79, 160, .18); }

.site-footer { color: var(--ink-soft); }
@media (max-width: 460px) {
  .article { border-radius: 26px; }
  #home-series { border-radius: 26px; padding: 26px 16px; }
  .sa-card { border-radius: 12px; }
}
.sa-card, .sa-figs, .cd-tiles, #cd-table { letter-spacing: 0; }
.sa-name { letter-spacing: 0.02em; }

/* トップのカード検索 */
.search-box { position: relative; background: var(--sheet); border-radius: 28px; padding: 26px 24px; box-shadow: var(--shadow); min-width: 0; }
.search-label { display: block; font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--accent); border-radius: 999px; padding: 0 16px; background: var(--sheet); box-shadow: 0 0 0 5px rgba(30, 79, 160, .10); }
.search-field svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 0; letter-spacing: 0.02em; }
.search-field:focus-within { box-shadow: 0 0 0 5px rgba(30, 79, 160, .22); }
.search-hint { margin: 10px 4px 0; font-size: 12.5px; color: var(--ink-soft); }
.search-results { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow-y: auto; border-radius: 16px; background: var(--paper); }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; color: var(--ink); letter-spacing: 0.02em; }
.search-results li + li a { border-top: 1px solid var(--rule); }
.search-results a:hover, .search-results a.on { background: var(--accent-soft); }
.search-results img { width: 34px; height: auto; border-radius: 4px; flex: none; }
.search-results b { display: block; font-size: 14px; color: var(--accent); }
.search-results small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.search-results .r-num { margin-left: auto; text-align: right; font-family: var(--font-num); font-size: 12px; color: var(--ink); white-space: nowrap; }
.search-results .none { padding: 12px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 460px) { .search-box { padding: 20px 16px; border-radius: 22px; } .search-field input { font-size: 15px; } }

/* カード画像：角を切らずに全体を見せる。影はカーソルを当てたときだけ */
.sa-card { overflow: visible; box-shadow: none; background: var(--sheet); transition: box-shadow .2s ease, transform .2s ease; }
.sa-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.sa-img { aspect-ratio: auto; background: transparent; border-bottom: 0; padding: 8px 8px 0; }
.sa-img img { height: auto; object-fit: contain; border-radius: 0; }
.cd-img img { border-radius: 0; }
.series-item { overflow: visible; }
.series-item img { border-radius: 0; }
#home-series .series-item, .series-page .series-item { box-shadow: none; }
#home-series .series-item:hover, .series-page .series-item:hover { box-shadow: var(--shadow-hover); }
@media (max-width: 460px) { .sa-img { padding: 5px 5px 0; } }
@media (prefers-reduced-motion: reduce) { .sa-card:hover { transform: none; } }

/* PICK UP!! */
.pickup .block-head h2 { font-size: 26px; letter-spacing: 0.12em; }
.pickup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pickup-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--sheet); border-radius: 22px; padding: 16px; text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.pickup-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pickup-card img { display: block; width: 72%; height: auto; margin: 6px auto 14px; }
.pickup-rank { align-self: flex-start; font-size: 12px; font-weight: 700; color: #FFFFFF; background: var(--accent); border-radius: 999px; padding: 3px 12px; letter-spacing: 0.04em; }
.pickup-rank b { font-size: 15px; margin: 0 1px; }
.pickup-body { display: flex; flex-direction: column; gap: 4px; }
.pickup-body > b { font-size: 16px; color: var(--accent); letter-spacing: 0.04em; }
.pickup-body small { font-size: 12px; color: var(--ink-soft); }
.pickup-body dl { margin: 8px 0 0; display: grid; gap: 2px; letter-spacing: 0; }
.pickup-body dl div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--rule); padding-top: 4px; }
.pickup-body dt { font-size: 12px; color: var(--ink-soft); }
.pickup-body dd { margin: 0; font-size: 15px; font-weight: 600; }
@media (max-width: 640px) {
  .pickup-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pickup-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px; }
  .pickup-card img { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
  .pickup-rank { grid-column: 2; grid-row: 1; justify-self: start; align-self: start; }
  .pickup-body { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .pickup-card:hover { transform: none; } }
.brand .avatar { border-radius: 10px; border: 0; width: 42px; height: 42px; box-shadow: 0 1px 4px rgba(30, 79, 160, .18); }

/* 拡張パック・セット別 */
#packs, .sets-panel { background: var(--sheet); border-radius: 40px; padding: 36px clamp(18px, 4vw, 44px); margin: 0 0 24px; box-shadow: var(--shadow); }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.pack-item { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); border-radius: 18px; padding: 12px 10px 12px; background: var(--paper); transition: box-shadow .2s ease, transform .2s ease; }
.pack-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pack-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.pack-img img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; filter: drop-shadow(0 6px 10px rgba(30, 79, 160, .18)); }
.pack-img.card img { max-height: 86%; border-radius: 6px; }
.pack-item h3 { margin: 10px 0 2px; font-size: 14px; line-height: 1.45; color: var(--accent); letter-spacing: 0.04em; text-align: center; overflow-wrap: anywhere; }
.pack-item p { margin: 0; font-size: 12px; color: var(--ink-soft); text-align: center; letter-spacing: 0; }
.pack-item:hover h3 { text-decoration: underline; }
.pk-hero { display: flex; gap: 20px; align-items: center; margin: 4px 0 8px; }
.pk-hero img { height: 170px; width: auto; flex: none; filter: drop-shadow(0 6px 12px rgba(30, 79, 160, .2)); }
.pk-hero.card img { height: 150px; border-radius: 8px; }
.pk-hero dl { margin: 0; display: grid; gap: 4px; }
.pk-hero dl div { display: flex; gap: 10px; align-items: baseline; }
.pk-hero dt { font-size: 12px; font-weight: 700; color: var(--ink-soft); min-width: 5em; }
.pk-hero dd { margin: 0; font-size: 15px; font-weight: 600; }
@media (max-width: 460px) {
  #packs, .sets-panel { border-radius: 26px; padding: 26px 16px; }
  .pack-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .pack-item { padding: 8px 4px 10px; border-radius: 12px; }
  .pack-img { height: 130px; }
  .pack-item h3 { font-size: 11.5px; letter-spacing: 0; margin-top: 6px; }
  .pack-item p { font-size: 10.5px; }
  .pack-item p .sep { display: none; }
  .pack-item p > span { display: block; }
  #packs { scroll-margin-top: 130px; }
  /* スマホ：ヘッダーのメニューは1行にして、はみ出す分は横にスクロール */
  .site-header .wrap { gap: 6px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-left: -4px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; white-space: nowrap; padding: 5px 10px; font-size: 12.5px; }
  .pk-hero img { height: 130px; }
  .pk-hero.card img { height: 115px; }
}
@media (prefers-reduced-motion: reduce) { .pack-item:hover { transform: none; } }

/* トップ：全てのカード一覧ボタン */
.search-all { margin-top: 14px; width: 100%; justify-content: center; }
/* カード一覧のページ */
.cl-filter { background: var(--sheet); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.cl-toggle { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 16px; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 16px 22px; cursor: pointer; letter-spacing: 0.08em; text-align: center; }
.cl-toggle:hover { background: var(--accent-soft); }
.cl-badge { font-size: 12px; font-weight: 700; color: #FFFFFF; background: var(--accent); border-radius: 999px; padding: 1px 9px; letter-spacing: 0; }
.cl-arrow { position: absolute; right: 22px; top: 50%; margin-top: -0.6em; line-height: 1.2; transition: transform .2s ease; }
.cl-toggle[aria-expanded="true"] .cl-arrow { transform: rotate(180deg); }
.cl-panel { display: flex; flex-direction: column; gap: 14px; padding: 4px 22px 20px; border-top: 1px solid var(--rule); padding-top: 16px; }
.cl-panel[hidden] { display: none; }
.cl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cl-field > span, .cl-sortbox > span { font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; }
.cl-sortbox > span { white-space: nowrap; font-size: 14px; color: var(--accent); }
.cl-sortbox select { flex: 1 1 auto; min-width: 0; }
.cl-field input, .cl-sortbox select { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 10px; padding: 8px 10px; min-height: 40px; min-width: 0; letter-spacing: 0; }
.cl-field input:focus, .cl-sortbox select:focus { outline: none; border-color: var(--accent); }
.cl-dates { display: flex; align-items: center; gap: 6px; max-width: 420px; }
.cl-dates input { flex: 1 1 0; min-width: 0; font-size: 14px; padding: 8px 6px; }
.cl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-chips button { font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--sheet); border: 1.5px solid var(--accent); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 34px; letter-spacing: 0.02em; }
.cl-chips button[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }
.cl-chips .count { font-family: var(--font-num); font-size: 12px; margin-left: 4px; opacity: .75; }
.cl-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--rule); padding-top: 12px; }
.cl-reset { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: none; border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px 14px; cursor: pointer; min-height: 34px; }
.cl-reset:hover { border-color: var(--accent); color: var(--accent); }
/* 並び替え：絞り込みのすぐ右下に別の枠で */
.cl-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.cl-count { font-size: 14px; font-weight: 700; color: var(--accent); padding-bottom: 10px; }
.cl-sortbox { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-left: auto; background: var(--sheet); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; min-width: min(320px, 100%); }
.cl-note { font-size: 12.5px; color: var(--ink-soft); margin: 14px 4px; }
.cl-grid { margin-top: 6px; }
.cl-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--ink-soft); background: var(--sheet); border-radius: 18px; }
.sa-figs .hl dt, .sa-figs .hl dd { color: var(--accent); }
@media (max-width: 460px) {
  .cl-filter { border-radius: 20px; }
  .cl-toggle { padding: 14px 16px; }
  .cl-panel { padding: 14px 16px 16px; }
  .cl-bar { flex-direction: column-reverse; align-items: stretch; }
  .cl-sortbox { margin-left: 0; min-width: 0; }
  .cl-sortbox select { flex: 1 1 0; width: 0; }
  .cl-arrow { right: 16px; }
  .cl-count { padding-bottom: 0; }
}
