/* ポケカルテの枠（ヘッダー・パンくず・一覧・フッター）と、本文 .rte の土台だけ。
   本文の見た目は本文内で読み込む Shopify Files の CSS（price-article-ver2.css など）が持つ。docs/65「本文・デザインを変えない」 */
:root { --fg:#1f2328; --muted:#636c76; --line:#d0d7de; --bg:#fff; --wrap:1080px;
  /* ロゴのカード 3 枚の色（mark-512.png から拾った値）。枠の飾りだけに使い、本文には使わない */
  --red:#e53434; --blue:#2273d6; --yellow:#f5c400;
  /* 文字に使う色は白地で 4.5:1 以上に濃くしたもの */
  --accent:#c8102e; --link:#1a5fb4; --soft:#f6f8fa; }
* { box-sizing:border-box; }
body { margin:0; color:var(--fg); background:var(--bg); font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif; line-height:1.8; }
a { color:inherit; }
img { max-width:100%; height:auto; }
.wrap { max-width:var(--wrap); margin:0 auto; padding:0 16px; }
.site-header { border-bottom:1px solid var(--line); background:var(--bg); position:relative; }
/* ヘッダーの上に、ロゴのカードと同じ赤・青・黄の帯 */
.site-header::before { content:""; display:block; height:4px; background:linear-gradient(90deg,var(--red) 0 33.4%,var(--blue) 33.4% 66.7%,var(--yellow) 66.7%); }
/* ヘッダーはロゴ案 05a' 間隔 中の見本に合わせる（PC: 高さ 64px・ロゴ 40px／スマホ: メニュー・ロゴ・検索の 56px） */
.site-header .bar { display:flex; align-items:center; gap:32px; height:64px; }
.site-name { display:block; line-height:0; flex:none; }
.site-name img { display:block; height:40px; width:auto; }
.site-nav ul { display:flex; flex-wrap:wrap; gap:4px 20px; margin:0; padding:0; list-style:none; font-size:14px; line-height:1.5; }
.site-nav a { text-decoration:none; }
.site-nav a:hover { color:var(--link); text-decoration:underline; }
.hbtn { display:none; width:44px; height:44px; padding:0; border:0; background:transparent; color:var(--fg); align-items:center; justify-content:center; cursor:pointer; }
.site-search { display:none; }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (max-width:767px) {
  .site-header .bar { height:56px; padding:0 6px; gap:0; justify-content:space-between; }
  .hbtn { display:flex; }
  .site-name img { height:36px; }
  .site-nav { display:none; position:absolute; top:56px; left:0; right:0; z-index:10; background:var(--bg); border-bottom:1px solid var(--line); }
  .site-nav.open { display:block; }
  .site-nav ul { flex-direction:column; flex-wrap:nowrap; gap:0; font-size:15px; }
  .site-nav a { display:block; padding:14px 16px; border-top:1px solid var(--line); }
  .site-search.open { display:block; border-top:1px solid var(--line); padding:10px 0; }
  .site-search .wrap { display:flex; gap:8px; }
  .site-search input[type=search] { flex:1; min-width:0; height:40px; padding:0 10px; border:1px solid var(--line); border-radius:4px; font:inherit; font-size:16px; }
  .site-search button { height:40px; padding:0 14px; border:0; border-radius:4px; background:var(--fg); color:var(--bg); font:inherit; font-size:14px; }
}
.breadcrumbs ol { display:flex; flex-wrap:wrap; gap:4px; margin:16px 0; padding:0; list-style:none; font-size:.8rem; color:var(--muted); }
.breadcrumbs li + li::before { content:"›"; margin-right:4px; }
.breadcrumbs a { text-decoration:none; color:var(--link); }
.breadcrumbs a:hover { text-decoration:underline; }
.article { max-width:720px; margin:0 auto; }   /* shop の本文の幅 */
.article-title, .list-title { font-size:1.6rem; line-height:1.4; margin:8px 0 4px; }
.article-meta { color:var(--muted); font-size:.85rem; margin:0 0 16px; }
/* 本文の土台は shop のテーマ（main.css・t/33）の指定を写す（2026-09-30。shop と新サイトの計算済みの値を比べて合わせた）。
   テーマの指定は要素だけ（h2・table など）で弱いので、:where(.rte) で同じ強さにそろえ、記事ごとの CSS が勝つようにする。
   フォントは shop と同じ Noto Sans Japanese（Shopify の配布。SIL OFL）を tools/mirror_site_assets.py で写して配信する */
@font-face { font-family:"Noto Sans Japanese"; font-weight:500; font-style:normal; font-display:fallback; src:url("/assets/shop/fonts/notosansjapanese_n5.woff2") format("woff2"); }
@font-face { font-family:"Noto Sans Japanese"; font-weight:600; font-style:normal; font-display:fallback; src:url("/assets/shop/fonts/notosansjapanese_n6.woff2") format("woff2"); }
@font-face { font-family:"Noto Sans Japanese"; font-weight:700; font-style:normal; font-display:fallback; src:url("/assets/shop/fonts/notosansjapanese_n7.woff2") format("woff2"); }
@font-face { font-family:"Noto Sans Japanese"; font-weight:900; font-style:normal; font-display:fallback; src:url("/assets/shop/fonts/notosansjapanese_n9.woff2") format("woff2"); }
.rte { --fs:calc((28px - 15px) * .16); margin-bottom:50px; font-family:"Noto Sans Japanese",sans-serif; font-size:15px; font-weight:600; line-height:1.6; color:rgb(109 113 117); overflow-wrap:anywhere; }
@media (max-width:767.98px) { .rte { --fs:calc((22px - 15px) * .16); } }
:where(.rte) :where(h1,h2,h3,h4,h5,h6) { margin:0 0 10px; font-family:"Noto Sans Japanese",sans-serif; font-weight:700; line-height:1.2; color:rgb(35 35 35); text-transform:none; }
:where(.rte) h1 { font-size:28px; }
:where(.rte) h2 { font-size:calc(5 * var(--fs) + 15px); }
:where(.rte) h3 { font-size:calc(4 * var(--fs) + 15px); }
:where(.rte) h4 { font-size:calc(3 * var(--fs) + 15px); }
:where(.rte) h5 { font-size:calc(2 * var(--fs) + 15px); }
:where(.rte) h6 { font-size:calc(var(--fs) + 15px); }
@media (max-width:767.98px) { :where(.rte) h1 { font-size:22px; } }
:where(.rte) :where(p,table) { margin:0 0 1em; }
:where(.rte) :where(strong,b) { font-weight:700; }
:where(.rte) :where(ul,ol) { padding:0; }   /* テーマはリストの内側の余白を 0 にして、字下げを .rte ul の margin-inline-start だけで付ける */
:where(.rte) a { color:rgb(35 35 35); text-decoration:none; }
:where(.rte) table { border-spacing:0; border-collapse:collapse; }
:where(.rte) :where(th,td) { padding:.7em; border-top:1px solid rgb(109 113 117 / .14); border-bottom:1px solid rgb(109 113 117 / .14); text-align:start; }
/* テーマの .rte 付きの指定（こちらは強さも同じ） */
.rte h1, .rte h2, .rte h3, .rte h4, .rte h5, .rte h6 { margin:1em 0 15px; }
.rte h1:first-child, .rte h2:first-child, .rte h3:first-child, .rte h4:first-child, .rte h5:first-child, .rte h6:first-child { margin-top:0; }
.rte a { text-decoration:underline; text-underline-offset:2px; text-decoration-color:rgb(35 35 35 / .4); text-decoration-thickness:1px; }
.rte a:hover { text-decoration-color:currentColor; }
.rte > p:last-child { margin-bottom:0; }
.rte ul, .rte ol { margin-inline-start:2em; margin-bottom:1em; }
.rte ul li { list-style:disc outside; }
.rte ol li { list-style:decimal outside; }
.rte iframe { max-width:100%; }
/* 目次（shop の目次アプリの部品）。JS が本文の最初の h2 の直前へ動かす */
.toc-slot { margin:0 0 1em; }
.tags { margin:32px 0 0; font-size:.85rem; color:var(--muted); }
.tags a { margin-right:8px; color:var(--link); }
.pager { display:flex; justify-content:space-between; gap:16px; margin:32px auto; max-width:760px; font-size:.9rem; }
.pager .count { color:var(--muted); }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin:16px 0; padding:0; list-style:none; }
.card a { display:block; text-decoration:none; }
.card a:hover .card-title { color:var(--link); text-decoration:underline; }
.card img { width:100%; aspect-ratio:16/9; object-fit:cover; border:1px solid var(--line); }
.card-title { display:block; font-size:.9rem; line-height:1.5; margin-top:6px; }
.card-date { display:block; font-size:.75rem; color:var(--muted); }
.home-section h2 { font-size:1.2rem; margin:32px 0 8px; padding-left:10px; border-left:4px solid var(--accent); line-height:1.4; }
.home-section h2 a { text-decoration:none; }
.home-section .more { text-align:right; font-size:.9rem; }
.home-section .more a, .pager a { color:var(--link); }
.tagline { color:var(--muted); }
.site-footer { border-top:1px solid var(--line); margin-top:48px; padding:24px 0; font-size:.85rem; color:var(--muted); background:var(--soft); }
.footer-links { display:flex; flex-wrap:wrap; gap:4px 16px; margin:0 0 8px; padding:0; list-style:none; }
