/* Tagtelier 製品紹介サイト 共通スタイル
   配色はリンクページ（mono.tagtelier.com）に合わせている。
   ⚠ このファイルはサイト直下に置く前提。画像URLはここからの相対パス。 */

:root{
  /* 🔴 配色はここだけで変える。他の場所に色を直接書かないこと。
     2026-08-20にA案（青を薄める）へ変更。それ以前は紺が濃く、
     手本にした Obsidian / Linear / Raycast / Krea がすべて無彩色なのに対し
     このサイトだけ青みが2.2倍あって沈んで見えていた。 */
  --bg:#0c0f13; --bg-1:#14181c; --panel:#2c3033; --panel2:#353a3e; --line:#434a4e;
  --fg:#eaf0f4; --fg-2:#cfd8de; --muted:#96a5b0; --accent:#58c8dd; --amber:#f0bf6b;
  --on-accent:#07131a;
  /* 半透明で重ねるとき用（ぼかしたバー・ヒーローの覆いなど）。
     上の色と必ず同じ値にすること */
  --bg-rgb:12,15,19; --fg-rgb:234,240,244; --accent-rgb:88,200,221;
}
*{box-sizing:border-box}
/* 🔴 hidden 属性より class の display 指定が勝つ（.chip や .tag-card の display:flex）。
   これが無いと JS で el.hidden = true にしても消えず、
   辞典の絞り込み・検索が「件数だけ変わって中身はそのまま」になる（2026-08-17に発覚）。
   個別に .cat[hidden] だけ書いてあったが漏れが多いので全体に効かせる。 */
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%}
body{margin:0; color:var(--fg); background:var(--bg);
  font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,sans-serif;
  line-height:1.8; font-size:16px; font-feature-settings:"palt" 1}
.wrap{max-width:1040px; margin:0 auto; padding:0 22px}
a{color:var(--accent)}
img{max-width:100%}

/* ── 上のバー：全ページ共通・常に表示 ── */
.bar{position:sticky; top:0; z-index:30; background:rgba(var(--bg-rgb),.94);
  -webkit-backdrop-filter:blur(9px); backdrop-filter:blur(9px); border-bottom:1px solid var(--line)}
.bar-in{max-width:1040px; margin:0 auto; padding:9px 22px; display:flex; align-items:center; gap:16px}
.logo{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.02em;
  text-decoration:none; color:var(--fg); flex:none}
.logo img{width:26px; height:26px; border-radius:7px}
.bar .btn{padding:8px 16px; font-size:.85rem}
.bar .cta{flex:none}

/* ページのリンク */
.bar-nav{display:flex; align-items:center; gap:4px; flex:1; min-width:0}
.bar-nav a{padding:6px 11px; border-radius:8px; text-decoration:none; color:var(--muted);
  font-size:.87rem; white-space:nowrap}
.bar-nav a:hover{color:var(--fg); background:var(--panel)}
.bar-nav a.on{color:var(--fg); background:var(--panel2); font-weight:700}

@media(max-width:860px){
  /* 1段目＝ロゴとボタン、2段目＝ページのリンク（横に並べきれないため） */
  .bar-in{flex-wrap:wrap; padding:8px 16px 6px; gap:10px}
  .logo{font-size:.95rem}
  .logo img{width:23px; height:23px}
  .bar .cta{margin-left:auto}
  .bar .btn{padding:7px 12px; font-size:.78rem}
  .bar-nav{order:3; flex-basis:100%; gap:2px; overflow-x:auto; scrollbar-width:none;
    margin:0 -16px; padding:0 16px 2px}
  .bar-nav::-webkit-scrollbar{display:none}
  .bar-nav a{padding:5px 9px; font-size:.8rem; flex:none}
}

/* ── ヒーロー：イラスト全面 ── */
.hero{position:relative; min-height:80vh; display:grid; align-items:center; overflow:hidden;
  border-bottom:1px solid var(--line)}
.hero-bg{position:absolute; inset:0;
  background:url(img/hero-wide.jpg) center 32%/cover no-repeat}
/* 左＝文字を置く面なので暗く、右＝イラストは明るいまま残す */
.hero-veil{position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),.90) 0%, rgba(var(--bg-rgb),.74) 34%, rgba(var(--bg-rgb),.10) 62%, rgba(var(--bg-rgb),0) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb),.42) 0%, rgba(var(--bg-rgb),0) 30%, rgba(var(--bg-rgb),.92) 100%)}
/* 左端は本文（.wrap）と同じ位置に揃える */
.hero-in{position:relative; text-align:left; padding:76px 22px 60px;
  width:100%; max-width:1040px; margin:0 auto}
.hero-in > *{max-width:570px}
.eyebrow{display:inline-flex; align-items:center; gap:9px; padding:7px 16px; border-radius:999px;
  background:rgba(var(--accent-rgb),.12); border:1px solid rgba(var(--accent-rgb),.32); color:var(--accent);
  font-size:.8rem; letter-spacing:.06em; margin-bottom:24px}
.eyebrow img{width:18px; height:18px; border-radius:5px}
.hero h1{font-size:clamp(32px,6.4vw,58px); line-height:1.34; margin:0 0 18px; font-weight:800;
  text-shadow:0 4px 30px rgba(0,0,0,.55)}
.hero h1 em{font-style:normal; color:var(--accent)}
.hero p{font-size:clamp(15px,2.1vw,18px); color:var(--fg-2); margin:0 0 30px; max-width:540px;
  text-shadow:0 2px 16px rgba(0,0,0,.6)}
.cta{display:flex; gap:12px; justify-content:flex-start; flex-wrap:wrap}
.btn{display:inline-block; padding:15px 30px; border-radius:12px; text-decoration:none; font-weight:700;
  border:1px solid rgba(var(--fg-rgb),.26); color:var(--fg); background:rgba(var(--bg-rgb),.55);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); font-size:.98rem}
.btn--go{background:var(--accent); border-color:var(--accent); color:var(--on-accent)}
.tags{display:flex; gap:9px; justify-content:flex-start; flex-wrap:wrap; margin-top:24px}
.tags span{font-size:.78rem; color:var(--fg-2); background:rgba(var(--bg-rgb),.5);
  border:1px solid rgba(var(--fg-rgb),.2); padding:5px 13px; border-radius:999px}
.cta-note, .hero .cta-note{color:var(--muted); font-size:.86rem; margin:16px 0 0}

/* 狭い画面：横に文字を逃がす余白がないので、上イラスト・下文字の積み上げにする。
   横長を切ると顔が外れるため、絵は元の正方形を使って画面幅にほぼ収める */
@media(max-width:860px){
  .hero{min-height:0; display:block; padding-top:min(400px, 84vw)}
  .hero-bg{inset:0 0 auto 0; height:min(444px, 94vw);
    background-image:url(img/hero-tall.jpg); background-position:center top}
  .hero-veil{inset:0 0 auto 0; height:min(444px, 94vw);
    background:linear-gradient(180deg, rgba(var(--bg-rgb),0) 46%, rgba(var(--bg-rgb),.62) 78%, var(--bg) 100%)}
  .hero-in{text-align:center; padding:6px 20px 46px}
  .hero-in > *{max-width:none}
  .hero p{margin-left:auto; margin-right:auto}
  .cta, .tags{justify-content:center}
  .hero h1, .hero p{text-shadow:none}
}

/* #limits へ飛んだとき、見出しが上のバーに隠れないように */
[id]{scroll-margin-top:72px}

/* ── 下層ページの見出し ── */
.pagehead{padding:44px 0 8px; border-bottom:1px solid var(--line)}
.crumb{font-size:.84rem; color:var(--muted); margin:0 0 10px}
.crumb a{text-decoration:none}
.pagehead h1{font-size:clamp(26px,4vw,38px); line-height:1.35; margin:0 0 12px; font-weight:800}
.pagehead p{color:var(--fg-2); max-width:680px; margin:0 0 28px}

/* ── 本文 ── */
section{padding:56px 0}
.head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:22px;
  border-bottom:1px solid var(--line); padding-bottom:12px; flex-wrap:wrap}
h2{font-size:1.28rem; margin:0}
.head a{font-size:.86rem; text-decoration:none}
.read{color:var(--fg-2); max-width:680px; margin:0 0 6px}
h3{font-size:1.06rem; margin:34px 0 8px; line-height:1.5}
.sub h3:first-of-type{margin-top:8px}

.cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(232px,1fr)); gap:14px}
.card{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:18px 18px 20px}
.card .n{font-size:.72rem; letter-spacing:.14em; color:var(--accent); display:block; margin-bottom:9px}
.card b{display:block; font-size:1rem; margin-bottom:6px}
.card span{color:var(--muted); font-size:.88rem; line-height:1.7}
.card.wide{grid-column:1/-1; display:grid; gap:22px; align-items:start}
.card.wide .txt{padding-top:2px}
.card ul{list-style:none; margin:10px 0 0; padding:0}
.card ul li{color:var(--muted); font-size:.88rem; line-height:1.7; padding-left:16px; position:relative}
.card ul li::before{content:""; position:absolute; left:0; top:.72em; width:6px; height:6px;
  border-radius:50%; background:var(--accent); opacity:.85}
@media(min-width:760px){ .card.wide{grid-template-columns:1fr 1.15fr} }
.card.wide img{width:100%; height:auto; border-radius:10px; display:block; border:1px solid var(--line)}

.two{display:grid; gap:14px; grid-template-columns:1fr}
@media(min-width:760px){ .two{grid-template-columns:1fr 1fr} }
.box{background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:26px}
.box .yen{font-size:2.3rem; font-weight:800; display:block; line-height:1.25}
.box .sub-note{color:var(--muted); font-size:.88rem; margin:2px 0 20px}
.spec{list-style:none; margin:0; padding:0}
.spec li{display:flex; gap:12px; padding:8px 0; border-bottom:1px dashed var(--line); font-size:.9rem}
.spec li:last-child{border-bottom:0}
.spec b{flex:0 0 108px; color:var(--muted); font-weight:600}
.warn{color:var(--amber); font-size:.86rem; margin-top:14px}

/* 記事本文まわり（下層ページ） */
.prose p{margin:12px 0; color:var(--fg-2)}
.prose ul{padding-left:1.3em; margin:12px 0; color:var(--fg-2)}
.prose li{margin:6px 0}
.prose figure{margin:22px 0}
.prose figure img{width:100%; height:auto; border:1px solid var(--line); border-radius:12px; display:block}
.prose figcaption{color:var(--muted); font-size:.88rem; margin-top:8px}
.prose strong{color:var(--fg)}
.grid-feat{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin:20px 0 8px}
.grid-feat figure{margin:0}
.grid-feat img{width:100%; height:auto; display:block; border:1px solid var(--line); border-radius:12px}
.grid-feat figcaption{color:var(--muted); font-size:.86rem; line-height:1.65; margin-top:8px}
.grid-feat figcaption b{display:block; color:var(--fg); font-size:.95rem; margin-bottom:2px}

.tbl-wrap{overflow-x:auto}
table{width:100%; border-collapse:collapse; margin:16px 0; font-size:.94rem}
th,td{border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top}
th{background:var(--panel); width:32%; font-weight:600; white-space:nowrap}

.qa details{background:var(--panel); border:1px solid var(--line); border-radius:12px; margin-bottom:10px; padding:0 18px}
.qa summary{cursor:pointer; padding:15px 0; font-weight:700; list-style:none; font-size:.96rem}
.qa summary::-webkit-details-marker{display:none}
.qa summary::before{content:"Q. "; color:var(--accent)}
.qa div{padding:14px 0 16px; color:var(--muted); font-size:.92rem; border-top:1px solid var(--line)}

.note-card{background:var(--panel2); border:1px solid var(--line); border-radius:14px; padding:20px 22px; margin:16px 0}
.note-card ul{margin:0; padding-left:1.25em; color:var(--fg-2)}
.note-card li{margin:9px 0}

.links{display:grid; grid-template-columns:repeat(auto-fit,minmax(268px,1fr)); gap:12px; margin:16px 0}
.link-item{display:flex; align-items:center; gap:13px; padding:12px 14px; background:var(--panel);
  border:1px solid var(--line); border-radius:12px; text-decoration:none; color:var(--fg)}
.link-item .txt{min-width:0; flex:1}
.link-item b{display:block; color:var(--accent); line-height:1.5}
.link-item span.d{display:block; font-size:.86rem; color:var(--muted); line-height:1.6}
.li-thumb{flex:0 0 auto; width:52px; height:52px; border-radius:11px; object-fit:cover;
  border:1px solid var(--line); background:var(--bg)}
.li-ico{flex:0 0 auto; width:44px; height:44px; border-radius:11px; display:grid; place-items:center;
  color:#fff; font-weight:800; font-size:16px; line-height:1}
.b-x{background:#101418; border:1px solid var(--line)}
.b-pixiv{background:linear-gradient(135deg,#3aa5ff,#0a7cf0)}
.b-note{background:linear-gradient(135deg,#3ecdb0,#22a58a)}
.b-mono{background:linear-gradient(135deg,var(--accent),#2f9fb5)}
.b-split{background:linear-gradient(135deg,#ffd23f,#e6a700); color:#1a1400}
.b-uniform{background:linear-gradient(135deg,#5b9cf8,#2f6fd0)}
.b-mosaic{background:linear-gradient(135deg,#a78bfa,#7c5cd6)}
.r18{color:#e88; font-weight:700}

.endcta{background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:30px 26px;
  text-align:center; margin:8px 0 0}
.endcta b{display:block; font-size:1.15rem; margin-bottom:16px}
.endcta .cta{justify-content:center}

footer{padding:56px 0 84px; color:var(--muted); font-size:.85rem; text-align:center; line-height:2;
  border-top:1px solid var(--line); margin-top:40px}
footer a{text-decoration:none}

/* ── プロンプト辞典（/prompts/） ── */
.dict-tools{display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:0 0 20px}
.dict-search{flex:1 1 260px; min-width:200px; padding:12px 15px; border-radius:11px; font-size:1rem;
  background:var(--panel); border:1px solid var(--line); color:var(--fg);
  font-family:inherit; -webkit-appearance:none}
.dict-search::placeholder{color:var(--muted)}
.dict-search:focus{outline:2px solid var(--accent); outline-offset:1px}
.dict-count{color:var(--muted); font-size:.88rem; white-space:nowrap; font-variant-numeric:tabular-nums}

.dict-grid{display:grid; gap:13px; grid-template-columns:repeat(auto-fill,minmax(144px,1fr))}
.tag-card{background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden;
  display:flex; flex-direction:column}
/* 🔴 縦横比は画像そのものに任せる（width/height属性から決まる）＝切り取らない。
   flex:none がないと、画像なしのカードで枠が潰れる */
.tag-card img, .tag-card .noimg{flex:none; width:100%; height:auto; display:block; background:var(--bg-1)}
.tag-card img{cursor:zoom-in}
.tag-card .noimg{aspect-ratio:1/1; display:grid; place-items:center; color:var(--muted); font-size:.72rem}
.tag-card .body{padding:10px 11px 11px; display:flex; flex-direction:column; gap:3px; flex:1}
.tag-card .ja{font-size:.9rem; font-weight:700; line-height:1.45}
.tag-card .en{font-size:.8rem; color:var(--accent); line-height:1.4; overflow-wrap:break-word;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tag-card .cnt{font-size:.72rem; color:var(--muted); font-variant-numeric:tabular-nums; margin-top:auto; padding-top:5px}
/* 生成のコツ（part.memo）。全部開くと一覧が読めなくなるので、既定は畳んでおく */
.tag-card .memo{margin-top:8px; border-top:1px dashed var(--line); padding-top:7px}
.tag-card .memo summary{cursor:pointer; list-style:none; font-size:.76rem; font-weight:700;
  color:var(--amber); display:flex; align-items:center; gap:5px}
.tag-card .memo summary::-webkit-details-marker{display:none}
.tag-card .memo summary::before{content:"💡"; font-size:.82rem}
.tag-card .memo summary::after{content:"メモ"; color:var(--muted); font-weight:400}
.tag-card .memo[open] summary::after{content:"閉じる"}
.tag-card .memo p{margin:7px 0 0; font-size:.78rem; line-height:1.7; color:var(--fg-2)}
.dict-count .memo-n{color:var(--amber); margin-left:10px}

.tag-card button{margin-top:8px; padding:7px 0; width:100%; border-radius:8px; cursor:pointer;
  background:var(--panel2); border:1px solid var(--line); color:var(--fg); font-size:.78rem;
  font-family:inherit; font-weight:700}
.tag-card button:hover{border-color:var(--accent); color:var(--accent)}
.tag-card button.done{background:var(--accent); border-color:var(--accent); color:var(--on-accent)}
.dict-empty{color:var(--muted); padding:28px 0}

/* 一覧（テキストだけのカテゴリ） */
.dict-list{display:grid; gap:10px; grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.dict-list div{background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:11px 13px}
.dict-list .en{color:var(--accent); font-size:.85rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; word-break:break-word}
.dict-list .ja{font-size:.88rem; color:var(--muted)}

/* 辞典ページの上に置く案内バナー（アプリへの導線） */
.appbanner{display:grid; gap:16px; align-items:center; margin:22px 0 0;
  background:linear-gradient(180deg, var(--panel2), var(--panel));
  border:1px solid var(--line); border-radius:14px; padding:18px 20px}
@media(min-width:860px){ .appbanner{grid-template-columns:1fr auto; gap:24px} }
.appbanner .t{display:flex; gap:14px; align-items:flex-start; min-width:0}
.appbanner .t .art{width:78px; height:78px; border-radius:11px; flex:none; object-fit:cover;
  border:1px solid var(--line)}
@media(max-width:520px){ .appbanner .t .art{width:62px; height:62px} }
.appbanner b{display:block; font-size:.98rem; margin-bottom:4px; line-height:1.5}
.appbanner p{color:var(--muted); font-size:.86rem; line-height:1.7; margin:0}
.appbanner .cta{gap:10px; flex-wrap:wrap}
.appbanner .btn{padding:11px 20px; font-size:.88rem; -webkit-backdrop-filter:none; backdrop-filter:none;
  background:var(--panel); border-color:var(--line)}
.appbanner .btn--go{background:var(--accent); border-color:var(--accent); color:var(--on-accent)}
@media(max-width:859px){ .appbanner .cta .btn{flex:1 1 auto; text-align:center} }

/* 項目の選び方（丸いチップ）。1段目＝グループ、2段目＝全カテゴリ */
.dict-nav{display:flex; gap:7px; flex-wrap:wrap; margin:0 0 8px}
.dict-nav + .dict-nav{margin-top:8px}
.dict-nav a{display:inline-flex; align-items:center; gap:5px; padding:6px 13px; border-radius:999px;
  background:var(--panel); border:1px solid var(--line); color:var(--muted);
  text-decoration:none; font-size:.82rem; white-space:nowrap}
.dict-nav a:hover{color:var(--fg); border-color:var(--accent)}
.dict-nav a.on{background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:700}
.dict-nav .n{opacity:.65; font-size:.76rem; font-variant-numeric:tabular-nums}
/* スマホ：項目チップを1行の横スクロールにする。
   折り返すと13項目で4段になり、本文（見本画像）が画面外まで押し出される（375px幅で実測）。
   指で横になぞって選ぶ形にすると1段で済む。※選択中のチップはJS側で画面内に送る */
@media(max-width:640px){
  .dict-nav{flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
    /* 端に影を出して「まだ続きがある」と分かるようにする */
    background:linear-gradient(90deg,var(--bg) 30%,transparent) left / 16px 100% no-repeat,
               linear-gradient(270deg,var(--bg) 30%,transparent) right / 16px 100% no-repeat;
    background-attachment:local,local}
  .dict-nav::-webkit-scrollbar{display:none}
  .dict-nav a, .dict-chips .chip{flex:0 0 auto}
}
/* 目次へ戻る＝移動だと分かるように、項目のチップとは見た目を分ける */
.dict-nav a.back{background:transparent; border-style:dashed}
/* 「全部まとめて見る」ページのボタン（その場で絞り込む＝移動しない） */
.dict-chips .chip{display:inline-flex; align-items:center; gap:5px; padding:6px 13px; border-radius:999px;
  background:var(--panel); border:1px solid var(--line); color:var(--muted);
  font-size:.82rem; white-space:nowrap; cursor:pointer; font-family:inherit}
.dict-chips .chip:hover{color:var(--fg); border-color:var(--accent)}
.dict-chips .chip.on{background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:700}
.dict-chips .chip .n{opacity:.65; font-size:.76rem; font-variant-numeric:tabular-nums}
/* 目次から「全部まとめて見る」への案内 */
.jump{display:grid; gap:16px; align-items:center; padding:18px 20px; border-radius:14px;
  background:var(--panel); border:1px solid var(--line)}
@media(min-width:760px){ .jump{grid-template-columns:1fr auto; gap:24px} }
.jump b{display:block; font-size:1rem; margin-bottom:4px}
.jump p{margin:0; color:var(--muted); font-size:.88rem; line-height:1.7}
.jump .btn{padding:12px 24px; font-size:.92rem; text-align:center;
  -webkit-backdrop-filter:none; backdrop-filter:none}

/* 絞り込みを画面上部に固定（392語をスクロールしても使えるように） */
.sticky-filter{position:sticky; top:0; z-index:20; padding:14px 0 12px; margin-bottom:8px;
  background:rgba(var(--bg-rgb),.95); -webkit-backdrop-filter:blur(9px); backdrop-filter:blur(9px);
  border-bottom:1px solid var(--line)}
.sticky-filter .head{margin-bottom:12px; padding-bottom:9px}
.sticky-filter .dict-tools{margin-bottom:10px}
@media(max-width:720px){
  .sticky-filter{padding:10px 0 8px}
  .sticky-filter .head{margin-bottom:9px; padding-bottom:7px}
  .sticky-filter .dict-tools{margin-bottom:8px}
}
.cat[hidden]{display:none}
.cat .head .g{font-size:.72rem; color:var(--accent); letter-spacing:.12em; display:block; margin-bottom:3px}
.cat .dict-count a{text-decoration:none; font-size:.82rem}
@media(max-width:720px){
  /* 縦に何段も積むと画面が埋まるので、2段目は横スクロールにする */
  .dict-nav--cat{flex-wrap:nowrap; overflow-x:auto; margin-left:-22px; margin-right:-22px;
    padding:0 22px 3px; scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);
    mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .dict-nav--cat::-webkit-scrollbar{display:none}
  .dict-nav--cat a{flex:none}
}

/* クリックで実サイズに拡大 */
.zoom{position:fixed; inset:0; z-index:60; display:none; place-items:center; padding:20px;
  background:rgba(var(--bg-rgb),.9); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px)}
.zoom.on{display:grid}
.zoom figure{margin:0; max-width:100%; display:flex; flex-direction:column; align-items:center; gap:14px}
.zoom img{max-width:min(92vw,512px); max-height:76vh; width:auto; height:auto; display:block;
  border-radius:14px; border:1px solid var(--line)}
.zoom figcaption{text-align:center}
.zoom .ja{display:block; font-size:1.05rem; font-weight:700}
.zoom .en{display:block; font-size:.9rem; color:var(--accent); margin-top:2px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.zoom .px{display:block; font-size:.76rem; color:var(--muted); margin-top:5px}
.zoom .x{position:absolute; top:14px; right:16px; width:42px; height:42px; border-radius:50%;
  background:var(--panel); border:1px solid var(--line); color:var(--fg); font-size:1.1rem;
  cursor:pointer; font-family:inherit; line-height:1}
.zoom .x:hover{border-color:var(--accent); color:var(--accent)}
/* 目次のグループ。縦の余白を詰める（section既定の56pxだと間延びする） */
.dict-group{padding:0; margin-bottom:26px}
.dict-group .head{margin-bottom:14px; padding-bottom:10px; align-items:center}
.dict-group h2{display:flex; align-items:center; gap:12px}
.dict-group .gthumb{width:46px; height:46px; border-radius:10px; object-fit:cover; flex:none;
  border:1px solid var(--line); background:var(--bg-1)}
@media(max-width:520px){ .dict-group .gthumb{width:38px; height:38px} }

/* ── 無料版とWindows版の比較表（機能ページ・トップ共通）──
   既存の table 指定（th は 32%固定・nowrap）だと3列で崩れるので、
   この表だけ列幅を上書きする。色は既存トークンのまま。 */
.cmp th, .cmp td{white-space:normal}
.cmp thead th{width:auto; text-align:center; white-space:nowrap; font-size:.88rem}
.cmp thead th:first-child{text-align:left}
.cmp tbody th{width:auto; background:transparent; font-weight:400; color:var(--fg-2)}
.cmp td{text-align:center; white-space:nowrap; width:160px; font-weight:700}
.cmp .y{color:var(--accent)}
.cmp .n{color:var(--muted); font-weight:400}
.cmp .p{color:var(--amber); font-size:.84rem; font-weight:600}
@media(max-width:640px){ .cmp td{width:104px; font-size:.9rem} .cmp .p{font-size:.76rem} }

/* 機能ごとの「無料で使える／Windows版だけ」の印 */
.f-tag{display:inline-block; font-size:.7rem; line-height:1.6; padding:1px 9px; border-radius:999px;
  border:1px solid var(--line); background:var(--panel2); color:var(--muted);
  margin-left:10px; vertical-align:.15em; font-weight:600; white-space:nowrap}
.f-tag--free{color:var(--accent); border-color:rgba(var(--accent-rgb),.38)}

/* ── 機能ページ：まとめ画像とページ内目次 ──
   ⚠ 上のバーに見出しが隠れないよう [id]{scroll-margin-top:72px} が効いている前提。 */
.feat-hero{margin:26px 0 0}
.feat-hero img{width:100%; height:auto; display:block; border:1px solid var(--line); border-radius:14px}
.toc{display:grid; gap:10px; grid-template-columns:1fr; margin:22px 0 0}
@media(min-width:700px){ .toc{grid-template-columns:1fr 1fr} }
.toc a{display:block; background:var(--panel); border:1px solid var(--line); border-radius:12px;
  padding:14px 17px; text-decoration:none; color:var(--fg)}
.toc a:hover{border-color:var(--accent); background:var(--panel2)}
.toc b{display:block; font-size:.98rem}
.toc span{display:block; color:var(--muted); font-size:.85rem; line-height:1.6; margin-top:2px}

/* 縦長の作例を本文幅いっぱいに広げない（.prose figure img は width:100% のため） */
.prose figure.narrow{max-width:420px; margin-left:auto; margin-right:auto}
