/* AGAMAY 下層ページ共通（2026-11-15）。ブログ一覧・記事・ダウンロード・セットアップガイド・プライバシー・特商法の9ページで使う。
   トップ（/index.html）の作法に合わせる：紺・金・生成り／見出しは明朝／直角の面と細い罫線／箱と影は使わない。
   読み込む順：/assets/motion.css → このファイル → /assets/ux.css。動きは <html class="motion"> のときだけ。
   body のクラスで出し分ける：pg-list（一覧）/ pg-post（記事）/ pg-dl（ダウンロード）/ pg-guide（手引き）/ pg-legal（規約）。 */
:root {
  --navy: #1f2a44; --navy-d: #141b2e; --navy-l: #2a3855;
  --gold: #b08d57; --gold-d: #8b6d3d; --gold-l: #d9bd8c;
  --bg: #faf8f3; --bg-soft: #f1ecdf; --text: #1b1b1b; --text-sub: #4d4d4d; --text-mute: #77736a;
  --line: #ddd6c2; --line-soft: #ebe5d3; --danger: #b93a2b; --ok: #2e7d52;
  --sans: "ryo-gothic-plusn", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;
  --min: "ryo-display-plusn", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --mono: "JetBrains Mono", Consolas, "SF Mono", monospace;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --rail: 220px; --gutter: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.9; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "palt"; overflow-wrap: break-word; word-break: auto-phrase; }
a { color: var(--gold-d); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
p, li, dd, dt, td, th, summary, figcaption { word-break: auto-phrase; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.ph { display: inline-block; white-space: nowrap; } /* 見出しを文節で折る（1文字ずつ出す動きでも語の途中で割れない） */

/* ---------- ヘッダー（ベンタロウ配下・AGAMAY 共通の形） ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(250,248,243,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-head.scrolled { box-shadow: 0 10px 30px -18px rgba(31,42,68,.35); }
.head-inner { max-width: 1180px; margin: 0 auto; padding: 8px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; color: var(--navy); font-weight: 700; line-height: 1.25; }
.logo-mark { width: 30px; height: 30px; flex: none; overflow: hidden; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { display: inline-flex; flex-direction: column; }
.logo-name { font-size: 15px; letter-spacing: .06em; }
.logo-sub { font-size: 10px; font-weight: 400; color: var(--text-mute); letter-spacing: .04em; }
.logo.agamay { font-size: 15px; letter-spacing: .12em; line-height: 1; }
.logo.agamay .logo-mark { width: 28px; height: 28px; overflow: visible; background: none; }
.logo.agamay .logo-mark img { width: 140%; height: 140%; max-width: none; object-fit: contain; }
.head-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.head-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--text-sub); transition: color .15s; }
.head-nav a:not(.nav-buy)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.head-nav a:not(.nav-buy):hover::after, .head-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.head-nav a:hover, .head-nav a[aria-current] { color: var(--navy); }
.head-nav a.nav-buy { padding: 0 18px; border: 1px solid var(--navy); color: var(--navy); font-weight: 700; letter-spacing: .06em; transition: background .2s, color .2s; }
.head-nav a.nav-buy:hover { background: var(--navy); color: #fff; }

/* ---------- フッター ---------- */
.site-foot { margin-top: 128px; background: var(--navy-d); color: rgba(255,255,255,.7); padding: 56px 0 32px; font-size: 14px; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 56px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; color: #fff; letter-spacing: .12em; font-size: 16px; }
.foot-tag { font-family: var(--min); color: rgba(255,255,255,.6); font-size: 14px; margin-top: 6px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 30px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.78); transition: color .15s; }
.foot-links a:hover { color: var(--gold-l); }
.foot-bottom { max-width: 1180px; margin: 28px auto 0; padding: 22px 32px 0; border-top: 1px solid rgba(255,255,255,.1); font: 400 11px/1.6 var(--mono); color: rgba(255,255,255,.45); letter-spacing: .05em; }

/* ---------- 共通の部品 ---------- */
.breadcrumb { display: flex; align-items: center; min-width: 0; font-size: 12px; line-height: 1.4; letter-spacing: .04em; color: var(--text-mute); white-space: nowrap; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; flex: none; color: var(--text-sub); transition: color .15s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { flex: none; margin: 0 10px; color: var(--line); font-family: var(--mono); }
.breadcrumb > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eyebrow { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.eyebrow .num { font: 500 12px/1 var(--mono); color: var(--gold-d); letter-spacing: .14em; }
.eyebrow .label { font: 400 11px/1 var(--mono); color: var(--text-mute); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow .rule { width: 28px; height: 1px; background: var(--gold); margin-top: 6px; }
.head-grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.page-head { padding: 20px 0 0; }
.page-head .head-grid { margin-top: 44px; }
.page-head h1 { font-family: var(--min); font-weight: 600; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.35; letter-spacing: .05em; color: var(--navy); }
.page-head .lead { margin-top: 26px; max-width: 40em; font-size: 16px; line-height: 2.05; color: var(--text-sub); }
.side-title { font: 500 12px/1 var(--sans); letter-spacing: .2em; color: var(--text-mute); text-transform: uppercase; }
.cta-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: .05em;
  border-bottom: 1px solid var(--navy); transition: gap .25s, color .15s, border-color .15s; }
.cta-link:hover { gap: 16px; color: var(--gold-d); border-color: var(--gold-d); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 30px; font-weight: 700; font-size: 15px; letter-spacing: .08em;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; transition: background .2s, color .2s, border-color .2s, gap .25s; }
.btn:hover { gap: 18px; background: var(--navy-l); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* ==================== ブログ一覧（pg-list） ==================== */
.list-sec { margin-top: 84px; }
.tag-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--navy); }
.tag-bar { position: relative; display: flex; flex-wrap: wrap; gap: 0 30px; }
.tag-bar a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 500; color: var(--text-sub); transition: color .2s; }
.tag-bar a:hover { color: var(--navy); }
.tag-bar a.active { color: var(--navy); font-weight: 700; }
.tag-ink { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); pointer-events: none; transition: transform .55s var(--ease), width .55s var(--ease); }
.tag-count { flex: none; padding-bottom: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; color: var(--text-mute); white-space: nowrap; }
.entries { counter-reset: entry; }
.entry { position: relative; counter-increment: entry; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) 150px 30px; column-gap: 36px; align-items: start;
  padding: 46px 0 48px; border-bottom: 1px solid var(--line); color: inherit; }
.entry[hidden] { display: none; }
.entry::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.7, 0, .15, 1); }
.entry:hover::before, .entry:focus-visible::before { transform: scaleX(1); }
.entry .no { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--text-mute); padding-top: 14px; transition: color .3s; }
.entry .no::before { content: counter(entry, decimal-leading-zero); }
.entry:hover .no { color: var(--gold-d); }
.entry-main { min-width: 0; transition: transform .6s var(--ease); }
.entry:hover .entry-main { transform: translate3d(10px, 0, 0); }
.entry h2 { font-family: var(--min); font-weight: 600; font-size: clamp(21px, 2.5vw, 31px); line-height: 1.55; letter-spacing: .04em; color: var(--navy); }
.entry p { margin-top: 14px; max-width: 42em; font-size: 15px; line-height: 1.95; color: var(--text-sub); }
.entry .tags { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 14px; font-size: 12.5px; color: var(--gold-d); letter-spacing: .03em; }
.entry .tags span { white-space: nowrap; }
.entry .meta { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; font: 400 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--text-mute); }
.entry .meta span { white-space: nowrap; }
.entry .meta .date { color: var(--text-sub); }
.entry .arrow { justify-self: end; padding-top: 8px; font: 400 18px/1.4 var(--mono); color: var(--navy); transform: translate3d(-8px, 0, 0); transition: transform .5s var(--ease), color .3s; }
.entry:hover .arrow { transform: none; color: var(--gold-d); }
.coming { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--line); color: var(--text-sub); font-size: 15px; }
.coming strong { font: 500 12px/1.6 var(--sans); letter-spacing: .14em; color: var(--text-mute); padding-top: 5px; }
.coming p { max-width: 42em; }
.list-after { margin-top: 96px; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; row-gap: 48px; align-items: start; }
.list-after > section { border-top: 1px solid var(--navy); padding-top: 20px; }
.list-after .side-title { margin-bottom: 18px; }
.author-card .name { font-family: var(--min); font-weight: 600; font-size: 19px; color: var(--navy); letter-spacing: .04em; }
.author-card .desc { margin: 8px 0 14px; font-size: 14px; line-height: 1.95; color: var(--text-sub); }
.topic-list { list-style: none; }
.topic-list li { border-bottom: 1px solid var(--line); }
.topic-list a { display: flex; justify-content: space-between; align-items: center; min-height: 46px; font-size: 14.5px; color: var(--text); transition: color .2s, padding .4s var(--ease); }
.topic-list a:hover, .topic-list a.active { color: var(--gold-d); padding-left: 8px; }
.topic-list a.active { font-weight: 700; }
.topic-list .count { font: 500 12px/1 var(--mono); color: var(--text-mute); }
.side-cta h3 { font-family: var(--min); font-weight: 600; font-size: 22px; color: var(--navy); letter-spacing: .05em; }
.side-cta p:not(.side-title) { margin: 8px 0 14px; font-size: 14px; line-height: 1.95; color: var(--text-sub); }

/* ==================== 記事（pg-post） ==================== */
.post-head { padding-top: 20px; }
.post-head-grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; margin-top: 40px; }
.post-title { grid-column: 2; grid-row: 1; min-width: 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 10px; }
.article-tags a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: .03em; color: var(--gold-d); transition: color .2s; }
.article-tags a:hover { color: var(--navy); }
.post-head h1 { font-family: var(--min); font-weight: 600; font-size: clamp(27px, 3.7vw, 48px); line-height: 1.45; letter-spacing: .04em; color: var(--navy); }
.post-meta { grid-column: 1; grid-row: 1; margin-top: 12px; border-top: 1px solid var(--navy); }
.post-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.post-meta dt { font: 500 11px/1.6 var(--sans); letter-spacing: .16em; color: var(--text-mute); }
.post-meta dd { font-size: 13px; line-height: 1.6; color: var(--text); text-align: right; }
.post-meta dd.mono { font-size: 12.5px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font: 500 11px/1 var(--mono); letter-spacing: .2em; color: var(--text-mute); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; font-size: 13px; font-weight: 500; color: var(--text-sub); transition: color .2s, transform .4s var(--ease); }
.share-btn svg { width: 14px; height: 14px; flex: none; }
.share-btn:hover { color: var(--navy); transform: translate3d(0, -2px, 0); }
.post-grid { display: grid; grid-template-columns: var(--rail) minmax(0, 43em); column-gap: var(--gutter); align-items: start; margin-top: 72px; font-size: 17px; }
.toc { position: sticky; top: 92px; font-size: 16px; margin-left: -16px; padding-left: 16px; } /* 金の線を枠の内側に収める（出現の切り抜きで欠けないように） */
.toc .side-title { padding-bottom: 14px; border-bottom: 1px solid var(--navy); }
.toc-rail { position: relative; }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 13.5px; line-height: 1.55; color: var(--text-sub); transition: color .25s, padding .45s var(--ease); }
.toc-list a::before { content: counter(toc, decimal-leading-zero); flex: none; width: 30px; font: 500 11px/1 var(--mono); color: var(--text-mute); transition: color .25s; }
.toc-list a:hover { color: var(--navy); }
.toc-list a[aria-current] { color: var(--navy); font-weight: 700; padding-left: 6px; }
.toc-list a[aria-current]::before { color: var(--gold-d); }
.toc-ink { position: absolute; left: -16px; top: 0; width: 2px; height: 44px; background: var(--gold); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), height .6s var(--ease), opacity .3s; }
.post-body { min-width: 0; font-size: 1em; line-height: 1.95; }
.post-body p { margin: 0 0 1.55em; }
.post-body strong { font-weight: 700; color: var(--navy); }
.post-body h2 { position: relative; margin: 3.3em 0 1.1em; padding-top: 1.25em; border-top: 1px solid var(--line);
  font-family: var(--min); font-weight: 600; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.55; letter-spacing: .04em; color: var(--navy); }
.post-body h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--gold); transform-origin: left; }
.post-body h3 { display: flex; gap: 12px; margin: 2.3em 0 .75em; font-size: 1.06em; font-weight: 700; line-height: 1.7; color: var(--navy); letter-spacing: .02em; }
.post-body h3::before { content: ""; flex: none; width: 14px; height: 1px; margin-top: .88em; background: var(--gold-d); }
.post-body ul, .post-body ol { list-style: none; margin: 1.1em 0 1.8em; }
.post-body li { position: relative; padding-left: 1.5em; margin-bottom: .6em; line-height: 1.9; }
.post-body li::before { content: ""; position: absolute; left: .15em; top: .95em; width: .7em; height: 1px; background: var(--gold-d); }
.post-body code { font-family: var(--mono); font-size: .84em; padding: .16em .45em; background: var(--bg-soft); color: var(--navy); white-space: nowrap; }
.msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 16px; margin: 2.2em 0; padding: 1.15em 0 1.2em; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); font-size: .94em; line-height: 1.95; }
.msg-icon { width: 26px; height: 26px; margin-top: .32em; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; font: 500 13px/1 var(--mono); color: var(--navy); }
.msg-good { border-top-color: var(--ok); } .msg-good .msg-icon { color: var(--ok); }
.msg-warn { border-top-color: var(--gold); } .msg-warn .msg-icon { color: var(--gold-d); }
.msg-danger { border-top-color: var(--danger); } .msg-danger .msg-icon { color: var(--danger); }
.post-body > .msg:first-child { margin-top: 0; font-size: 1em; }
.tbl-wrap { margin: 2em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.8; border-top: 2px solid var(--navy); }
.tbl th { padding: 12px 18px 12px 0; text-align: left; font-size: .86em; font-weight: 700; letter-spacing: .08em; color: var(--navy); border-bottom: 1px solid var(--navy); white-space: nowrap; }
.tbl td { padding: 14px 18px 14px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl td:first-child { font-weight: 700; color: var(--navy); }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr:hover { background: rgba(176,141,87,.08); }
.tbl.marks th:not(:first-child), .tbl.marks td:not(:first-child) { text-align: center; width: 4.6em; padding-left: 4px; padding-right: 4px; }
.check-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 14px; padding: 1.5em 0 .3em; border-bottom: 1px solid var(--line); }
.check-num { font-family: var(--min); font-weight: 600; font-size: 34px; line-height: 1.25; color: var(--gold-d); letter-spacing: .02em; }
.check-body h3 { margin: 0 0 .5em; }
.check-body h3::before { display: none; }
.bottom-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 40px; align-items: center; margin: 4.2em 0 0; padding: 46px 48px; background: var(--navy); color: #fff; }
.bottom-cta h3 { display: block; margin: 0 0 8px; font-family: var(--min); font-weight: 600; font-size: 25px; line-height: 1.5; letter-spacing: .05em; color: #fff; }
.bottom-cta h3::before { display: none; }
.bottom-cta p { margin: 0; font-size: 14.5px; line-height: 1.95; color: rgba(255,255,255,.84); }
.bottom-cta .btn { background: #fff; border-color: #fff; color: var(--navy); white-space: nowrap; }
.bottom-cta .btn:hover { background: var(--gold-l); border-color: var(--gold-l); }
.share-bar.bottom { margin-top: 3em; }
.article-foot { margin-top: 1.6em; font-size: 13px; line-height: 1.8; color: var(--text-mute); }
.article-foot a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.post-after { margin-top: 104px; }
.post-after-grid { margin-left: calc(var(--rail) + var(--gutter)); max-width: calc(43em * 17 / 16); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; row-gap: 48px; align-items: start; }
.post-after-grid > section { border-top: 1px solid var(--navy); padding-top: 20px; }
.post-after .side-title { margin-bottom: 18px; }
.related-list { list-style: none; }
.related-list li { border-bottom: 1px solid var(--line); }
.related-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; font-size: 15px; line-height: 1.6; color: var(--navy); font-weight: 500; transition: color .2s, padding .45s var(--ease); }
.related-list a::after { content: "→"; flex: none; font-family: var(--mono); font-weight: 400; transition: transform .45s var(--ease); }
.related-list a:hover { color: var(--gold-d); padding-left: 8px; }
.related-list a:hover::after { transform: translate3d(6px, 0, 0); }

/* ==================== ダウンロード（pg-dl） ==================== */
.pg-dl .page-head { padding-top: 64px; }
.pg-dl .page-head .head-grid { margin-top: 0; }
.dl-col { margin-left: calc(var(--rail) + var(--gutter)); max-width: 860px; }
.ver { margin-top: 24px; font-size: 14px; color: var(--text-sub); }
.ver b { font: 500 17px/1 var(--mono); color: var(--navy); letter-spacing: .04em; margin: 0 4px 0 2px; }
#released-date { margin-left: 8px; color: var(--text-mute); font-size: 13px; }
.release-notes { margin-top: 22px; padding: 16px 0 16px 18px; border-left: 2px solid var(--gold); max-width: 44em; font-size: 14px; line-height: 1.95; color: var(--text-sub); }
.release-notes b { display: block; font: 500 11px/1.6 var(--sans); letter-spacing: .16em; color: var(--gold-d); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 64px; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); }
.dl-opt { display: flex; flex-direction: column; align-items: flex-start; padding: 38px 44px 44px 0; }
.dl-opt + .dl-opt { padding-left: 44px; padding-right: 0; border-left: 1px solid var(--line); }
.dl-opt .ptag { font: 500 11px/1 var(--mono); letter-spacing: .18em; color: var(--gold-d); margin-bottom: 16px; }
.dl-opt h2 { font-family: var(--min); font-weight: 600; font-size: 25px; line-height: 1.5; letter-spacing: .04em; color: var(--navy); }
.dl-opt .desc { flex: 1; margin-top: 10px; font-size: 14.5px; line-height: 1.95; color: var(--text-sub); }
.dl-opt .size { margin: 16px 0 22px; font: 400 12px/1.6 var(--mono); letter-spacing: .03em; color: var(--text-mute); }
.note-box { margin-top: 48px; padding: 20px 0 22px 20px; border-left: 2px solid var(--gold); font-size: 14.5px; line-height: 2; color: var(--text-sub); }
.note-box b { color: var(--navy); }
.note-box > b:first-child { font-size: 15.5px; }
.faq { margin-top: 88px; }
.faq > h2 { font-family: var(--min); font-weight: 600; font-size: 26px; letter-spacing: .05em; color: var(--navy); padding-bottom: 18px; border-bottom: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 62px; padding: 14px 0; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--navy); transition: color .2s, padding .45s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-d); padding-left: 8px; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; transition: transform .5s var(--ease);
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 0 24px; max-width: 44em; font-size: 15px; line-height: 2; color: var(--text-sub); }
.faq details > div b { color: var(--navy); }
.faq details a, .note-box a, .release-notes a { text-decoration: underline; text-underline-offset: 3px; }

/* ==================== セットアップガイド（pg-guide）。画面は紙1枚の見立て、印刷はそのまま紙へ ==================== */
.toolbar { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 24px; background: var(--navy); color: #fff; }
.toolbar-title { min-width: 0; font-size: 13px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar-act { display: flex; align-items: center; gap: 16px; flex: none; }
.toolbar-msg { font: 400 12px/1.4 var(--sans); color: var(--gold-l); white-space: nowrap; }
.toolbar button { min-height: 44px; padding: 0 22px; border: 1px solid var(--gold-l); background: var(--gold-l); color: var(--navy-d); font: 700 14px/1 var(--sans); letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s; }
.toolbar button:hover { background: transparent; color: var(--gold-l); }
.pg-guide { background: var(--bg-soft); }
.guide { max-width: 820px; margin: 44px auto 88px; padding: 68px 76px 60px; background: #fff; border: 1px solid var(--line); font-size: 15px; line-height: 1.95; }
.cover { text-align: center; padding: 8px 0 40px; margin-bottom: 36px; border-bottom: 1px solid var(--navy); position: relative; }
.cover::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 56px; height: 3px; margin-left: -28px; background: var(--gold); }
.cover .mark { width: 60px; height: 60px; margin: 0 auto 16px; background: var(--navy); overflow: hidden; }
.cover .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover h1 { font-family: var(--min); font-weight: 600; font-size: 2.3em; line-height: 1.4; letter-spacing: .1em; color: var(--navy); }
.cover .subtitle { margin-top: 6px; font: 500 .8em/1.6 var(--mono); letter-spacing: .3em; color: var(--gold-d); }
.cover .order-info { margin-top: 16px; font-size: .82em; color: var(--text-sub); letter-spacing: .03em; }
.guide p { font-size: 1em; margin-bottom: .6em; }
.guide h2 { margin: 2.7em 0 .9em; padding-top: 1.1em; border-top: 1px solid var(--line); position: relative; font-family: var(--min); font-weight: 600; font-size: 1.42em; line-height: 1.5; letter-spacing: .05em; color: var(--navy); break-after: avoid; page-break-after: avoid; }
.guide h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: var(--gold); }
.guide a { text-decoration: underline; text-underline-offset: 3px; }
.guide small { font-size: .87em; color: var(--text-sub); }
.license-box { margin: 1.4em 0; padding: 26px 30px; background: var(--navy); color: #fff; border-top: 3px solid var(--gold);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; page-break-inside: avoid; }
.license-box .label { font: 500 .74em/1.6 var(--sans); letter-spacing: .14em; color: var(--gold-l); margin-bottom: 2px; }
.license-box .value { font-family: var(--mono); font-size: 1.1em; letter-spacing: .06em; line-height: 1.6; word-break: break-all; color: #fff; margin-bottom: 16px; }
.license-box .value:last-child { margin-bottom: 0; }
.step { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; padding: 1em 0; border-bottom: 1px solid var(--line); break-inside: avoid; page-break-inside: avoid; }
.step-num { font-family: var(--min); font-weight: 600; font-size: 1.65em; line-height: 1.25; color: var(--gold-d); }
.step-body b, .features b { color: var(--navy); }
.features { line-height: 2.05; }
.guide .note, .guide .warn, .guide .danger { margin: 1.1em 0; padding: .3em 0 .3em 1.1em; border-left: 2px solid var(--gold); font-size: .93em; line-height: 1.95; break-inside: avoid; page-break-inside: avoid; }
.guide .note b { color: var(--navy); }
.guide .warn { border-left-color: var(--gold-d); }
.guide .danger { border-left-color: var(--danger); }
.guide .danger b { color: var(--danger); }
.guide-foot { margin-top: 3.4em; padding-top: 1.4em; border-top: 1px solid var(--line); text-align: center; font-size: .78em; color: var(--text-sub); }
.guide-foot .brand { font-weight: 700; font-size: 1.15em; letter-spacing: .14em; color: var(--navy); }

/* ==================== 規約（pg-legal） ==================== */
.pg-legal .page-head { padding-top: 72px; }
.pg-legal .page-head .head-grid { margin-top: 0; }
.legal-col { min-width: 0; max-width: 46em; }
.legal-body { margin-top: 26px; font-size: 15.5px; line-height: 2.05; }
.legal-body h2 { position: relative; margin: 2.9em 0 1em; padding-top: 1.2em; border-top: 1px solid var(--line); font-family: var(--min); font-weight: 600; font-size: 1.36em; line-height: 1.55; letter-spacing: .04em; color: var(--navy); }
.legal-body h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: var(--gold); transform-origin: left; }
.legal-body p { margin: .9em 0; }
.legal-body ul { list-style: none; margin: .9em 0 1.2em; }
.legal-body li { position: relative; padding-left: 1.5em; margin: .5em 0; }
.legal-body li::before { content: ""; position: absolute; left: .15em; top: 1em; width: .7em; height: 1px; background: var(--gold-d); }
.legal-body b { color: var(--navy); }
.legal-body a, .pg-legal .lead a, .legal-table a { text-decoration: underline; text-underline-offset: 3px; }
.legal-body .meta { margin-top: 3.2em; padding-top: 1.3em; border-top: 1px solid var(--navy); text-align: right; font-size: 13px; color: var(--text-sub); letter-spacing: .04em; }
.legal-table { width: 100%; margin-top: 44px; border-collapse: collapse; border-top: 1px solid var(--navy); font-size: 15px; line-height: 2; }
.legal-table th, .legal-table td { padding: 20px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.legal-table th { width: 13.5em; padding-right: 28px; font-weight: 700; color: var(--navy); letter-spacing: .03em; }
.legal-table td b { color: var(--navy); }
.legal-table td .note, .legal-table td small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.9; color: var(--text-sub); }
.legal-table tr { transition: background .25s; }
.back { margin-top: 56px; }

/* ==================== 動き（<html class="motion"> のときだけ） ==================== */
/* motion.js が動き出す前に一瞬見えてから消えるのを防ぐ。スクリプトが読めなかったときは 2.5 秒後に必ず見える */
@keyframes pg-unhide { to { opacity: 1; visibility: visible; } }
.motion [data-rv]:not(.rv) { opacity: 0; animation: pg-unhide 0s linear 2.5s forwards; }
.motion [data-split]:not(.sp) { visibility: hidden; animation: pg-unhide 0s linear 2.5s forwards; }
.motion .post-body > .rv, .motion .legal-body > .rv, .motion .guide > .rv { transform: translate3d(0, 14px, 0); transition-duration: .7s, .85s, 1s; }
.motion .post-body > .rv.in, .motion .legal-body > .rv.in, .motion .guide > .rv.in { transform: none; }
.motion .post-body h2::before, .motion .legal-body h2::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.7, 0, .15, 1) .15s; }
.motion .post-body h2.in::before, .motion .legal-body h2.in::before { transform: scaleX(1); }
.motion .msg.rv .msg-icon { transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .8s var(--ease) .25s, opacity .5s .25s; }
.motion .msg.rv.in .msg-icon { transform: none; opacity: 1; }
.motion .check-item.rv .check-num { transform: translate3d(-14px, 0, 0); opacity: 0; transition: transform .9s var(--ease) .1s, opacity .7s .1s; }
.motion .check-item.rv.in .check-num { transform: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height .55s var(--ease), opacity .45s, content-visibility .55s allow-discrete; }
    .faq details[open]::details-content { height: auto; opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* ==================== 幅ごとの調整 ==================== */
@media (max-width: 1040px) {
  :root { --rail: 170px; --gutter: 48px; }
  .entry { grid-template-columns: 56px minmax(0, 1fr) 30px; }
  .entry .meta { grid-column: 2; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 2px 18px; padding-top: 14px; }
  .entry .arrow { grid-column: 3; grid-row: 1; }
  .coming { grid-template-columns: 56px minmax(0, 1fr); }
  .coming strong { grid-column: 2; }
  .coming p { grid-column: 2; }
  .list-after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .list-after .side-cta { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .wrap, .head-inner, .foot-inner, .foot-bottom { padding-left: 22px; padding-right: 22px; }
  .head-nav { gap: 18px; }
  .logo-sub { display: none; }
  .site-foot { margin-top: 88px; padding-top: 44px; }
  .head-grid, .post-head-grid, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 0; margin-bottom: 14px; }
  .eyebrow .rule { display: none; }
  .head-grid { gap: 0; }
  .page-head .head-grid { margin-top: 22px; }
  .page-head .lead { margin-top: 18px; font-size: 15.5px; line-height: 1.95; }
  .list-sec { margin-top: 52px; }
  .tag-bar { gap: 0 22px; }
  .entry { padding: 30px 0 32px; column-gap: 0; grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .entry .no { padding-top: 9px; font-size: 12px; }
  .entry p { font-size: 14.5px; }
  .entry:hover .entry-main { transform: none; }
  .coming { grid-template-columns: minmax(0, 1fr); padding: 26px 0; }
  .coming strong, .coming p { grid-column: 1; }
  .list-after { grid-template-columns: minmax(0, 1fr); margin-top: 64px; row-gap: 40px; }
  .post-head-grid { margin-top: 14px; }
  .post-title, .post-meta { grid-column: 1; }
  .post-meta { grid-row: 2; margin-top: 0; display: flex; flex-wrap: wrap; gap: 0 22px; border-top: 0; border-bottom: 1px solid var(--line); }
  .post-meta > div { border-bottom: 0; gap: 8px; padding: 10px 0; }
  .share-bar { margin-top: 22px; gap: 0 20px; }
  .post-grid { margin-top: 36px; font-size: 16px; row-gap: 44px; }
  .toc { position: static; }
  .toc .side-title { padding-top: 18px; border-top: 1px solid var(--navy); border-bottom: 0; padding-bottom: 6px; }
  .toc-ink { display: none; }
  .toc-list li:last-child { border-bottom-color: var(--navy); }
  .post-body { line-height: 1.9; }
  .post-body h2 { margin-top: 2.8em; }
  .check-item { grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; }
  .check-num { font-size: 27px; line-height: 1.5; }
  .bottom-cta { grid-template-columns: minmax(0, 1fr); padding: 34px 26px 36px; }
  .bottom-cta h3 { font-size: 22px; }
  .bottom-cta .btn { width: 100%; }
  .post-after { margin-top: 64px; }
  .post-after-grid { margin-left: 0; max-width: none; grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .pg-dl .page-head, .pg-legal .page-head { padding-top: 40px; }
  .dl-col { margin-left: 0; }
  .dl-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .dl-opt { padding: 30px 0 34px; }
  .dl-opt + .dl-opt { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .dl-opt .btn { width: 100%; }
  .faq { margin-top: 64px; }
  .faq > h2 { font-size: 23px; }
  .legal-table { margin-top: 32px; }
  .legal-table th, .legal-table td { display: block; width: auto; }
  .legal-table th { padding: 18px 0 0; border-bottom: 0; font-size: 13.5px; letter-spacing: .06em; color: var(--gold-d); }
  .legal-table td { padding: 4px 0 18px; }
  .guide { margin: 0 auto; padding: 36px 22px 48px; border-width: 0 0 1px; font-size: 14.5px; }
  .toolbar { padding: 8px 14px; }
  .toolbar-msg { display: none; }
}
@media (max-width: 560px) {
  .pg-legal .site-head { position: static; }
  .pg-legal .head-inner { flex-wrap: wrap; gap: 0 16px; padding-bottom: 4px; }
  .pg-legal .head-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 13px; }
  .breadcrumb .sep { margin: 0 6px; }
  .share-bar { gap: 0 18px; }
  .share-label { display: none; }
  .article-tags { gap: 0 16px; }
  .tag-row { flex-direction: column; align-items: stretch; gap: 0; }
  .tag-count { order: -1; padding-bottom: 4px; }
  .foot-links { gap: 0 24px; }
}
@media (max-width: 420px) {
  .head-nav { gap: 14px; }
  .pg-bentaro .head-nav a.nav-top { display: none; } /* 狭い画面ではロゴがトップへのリンクを兼ねる */
  .head-nav a.nav-buy { padding: 0 13px; }
  .tbl.marks { font-size: .82em; }
  .tbl.marks th:not(:first-child), .tbl.marks td:not(:first-child) { width: 2.9em; padding-left: 2px; padding-right: 2px; }
  .tbl.marks th { letter-spacing: 0; white-space: normal; }
  .toolbar button { padding: 0 14px; font-size: 13px; }
}

/* ==================== 印刷（主にセットアップガイド）。動きの初期状態で文字が消えないよう、必ず全部表示 ==================== */
@media print {
  .rv, .sp .sp-i, .msg-icon, .check-num, [data-rv], [data-split] { opacity: 1 !important; visibility: visible !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
  .post-body h2::before, .legal-body h2::before { transform: none !important; transition: none !important; }
  [data-progress], .toolbar, .site-head, .share-bar { display: none !important; }
  body, .pg-guide { background: #fff; }
  .toc { position: static; }
  .guide { max-width: none; margin: 0; padding: 20px 30px; border: 0; font-size: 13.5px; line-height: 1.85; }
  .guide h2 { margin-top: 2.1em; }
  @page { margin: 12mm; }
}
