:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #0F1720;
  --ink-2: #2A323D;
  --muted: #4A5361;
  --line: #DDE1E7;
  --line-soft: #EEF0F4;
  --chip-bg: #E8ECF3;
  --accent: #2346D8;
  --accent-ink: #16308F;
  --hot: #B8430F;
  --dark: #0F1720;
  --dark-line: #263040;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9CFD8;
  --notice-bg: #FFF4E5;
  --notice-line: #F1D9B5;
  --notice-ink: #6A4A12;
  --font-body: 'Noto Sans JP', system-ui, sans-serif;
  --font-head: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F14;
    --surface: #151B23;
    --ink: #EEF1F5;
    --ink-2: #D3D8E0;
    --muted: #A3ACB9;
    --line: #2A3340;
    --line-soft: #222A35;
    --chip-bg: #232C38;
    --accent: #7D97FF;
    --accent-ink: #A9BAFF;
    --hot: #F08A57;
    --notice-bg: #2A2112;
    --notice-line: #4A3A1E;
    --notice-ink: #F1D9B5;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.6; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ヘッダー */
.site-header { background: var(--dark); color: var(--on-dark); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.logo:hover { color: var(--on-dark); }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #2346D8; font-family: var(--font-mono); font-size: 15px; }
.logo-text { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.search input { width: 260px; max-width: 100%; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid #3A4452; background: #1B2430; color: #fff; font: inherit; font-size: 14px; }
@media (max-width: 600px) { .search, .search input { width: 100%; } }
.cat-nav { border-top: 1px solid var(--dark-line); }
.cat-nav-row { display: flex; gap: 4px; overflow-x: auto; }
.cat-nav a { display: flex; align-items: center; height: 46px; padding: 0 14px; color: var(--on-dark-2); text-decoration: none; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover { color: #fff; }
.cat-nav a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom-color: #7D97FF; }

.notice { background: var(--notice-bg); border-bottom: 1px solid var(--notice-line); color: var(--notice-ink); font-size: 13px; }
.notice-row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }

.main { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }

/* タグ */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tag-top { font-size: 12px; font-weight: 700; color: #fff; background: var(--hot); padding: 3px 10px; border-radius: 999px; }
.tag-company { font-size: 12px; font-weight: 700; background: var(--chip-bg); padding: 3px 10px; border-radius: 999px; }
.tag-cat { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.when { font-size: 12px; color: var(--muted); }

/* トップ */
.hero { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-main { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { .hero-main { padding: 22px; } }
.hero-title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; }
.hero-title a, .card-title a { color: inherit; text-decoration: none; }
.hero-title a:hover, .card-title a:hover { text-decoration: underline; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.75; }
.hero-points li { display: flex; gap: 12px; }
.hero-points .num { color: var(--accent); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.source { font-size: 13px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 8px; background: #2346D8; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.btn:hover { background: #16308F; color: #fff; }

.digest { flex: 1 1 320px; min-width: 0; background: var(--dark); color: var(--on-dark); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
@media (prefers-color-scheme: dark) { .digest { border: 1px solid var(--line); } }
.digest .eyebrow { font-size: 12px; color: #9AA4B2; }
.digest h2 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 24px; }
.digest ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.7; color: #E6E9EE; }
.digest-note { font-size: 12px; color: #9AA4B2; margin: 0; }

/* 新着一覧 */
.columns { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.feed-head h1, .feed-head h2, .panel h2, .related h2, .detail-box h2 { margin: 0; font-family: var(--font-head); font-weight: 900; }
.feed-head h2 { font-size: 26px; }
.feed-head h1 { font-size: clamp(24px, 3vw, 30px); line-height: 1.4; }
.lead { margin: 0; font-size: 14px; color: var(--muted); }
.more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
a.tag-company { color: var(--ink); text-decoration: none; }
a.tag-cat { text-decoration: none; }
a.tag-company:hover, a.tag-cat:hover { text-decoration: underline; }
.feed-count { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: #2346D8; border-color: #2346D8; color: #fff; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card .when { margin-left: auto; }
.card-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.5; }
.card-summary { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ext { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; font-weight: 700; text-decoration: none; }
.empty, .empty-state { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; margin: 0; }

.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 18px; }
.panel p { margin: 0; font-size: 14px; color: var(--muted); }
.co-list { display: flex; flex-wrap: wrap; gap: 8px; }
.co { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 8px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 13px; }
.co .mono { color: var(--muted); font-size: 12px; }
.guide-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; background: var(--bg); text-decoration: none; }
.guide-links a:hover .guide-link-title { text-decoration: underline; }
.guide-link-title { font-weight: 700; font-size: 15px; color: var(--accent); }
.guide-link-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 記事詳細 */
.detail { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.back { font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
.detail-title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; }
.original { margin: 0; font-size: 14px; color: var(--muted); }
.detail-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.detail-box h2 { font-size: 20px; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; }
.kw a { font-size: 13px; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.detail-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.note { font-size: 13px; color: var(--muted); }
.related { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.related h2 { font-size: 20px; }
.prose h2 { font-family: var(--font-head); font-size: 22px; margin: 16px 0 0; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose p { margin: 0; }

/* 広告枠(PR) */
.pr-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-pr { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--muted); padding: 1px 8px; border-radius: 4px; }
.pr-note { font-size: 12px; color: var(--muted); }
.pr-item { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pr-name { margin: 0; font-weight: 700; font-size: 15px; }
.pr-desc { margin: 0; font-size: 14px; color: var(--ink-2); }
.pr-link { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pr-link img { max-width: 100%; height: auto; }
.info-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.info-table th { width: 9em; color: var(--muted); font-weight: 500; }

/* 料金比較 */
.pricing { display: flex; flex-direction: column; gap: 24px; }
.pricing-head { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.pricing-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.pricing-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.tag-unverified { display: inline-block; font-size: 11px; font-weight: 700; color: var(--hot); border: 1px solid var(--hot); padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.price-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.price-table thead th { font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table tbody th { font-weight: 700; }
.price-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table .model { font-weight: 500; white-space: nowrap; }
.price-table tr.group-start > * { border-top: 1px solid var(--line); }
.price-table th[scope="rowgroup"] a { color: var(--ink); }
.price-table .co-name { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.uses-table tbody th { white-space: nowrap; }
.uses-table .pick { font-weight: 700; color: var(--accent-ink); }
@media (max-width: 600px) { .detail-box { padding: 20px; } .uses-table tbody th { white-space: normal; min-width: 8em; } }
.section-title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.service-list { display: flex; flex-direction: column; gap: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.service { scroll-margin-top: 16px; }
.service-summary { margin: 0; font-size: 14px; color: var(--ink-2); }
.service-block ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.service-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.service-caution { margin: 0; font-size: 13px; color: var(--notice-ink); background: var(--notice-bg); border-radius: 8px; padding: 8px 12px; }
.service-caution strong { margin-right: 4px; }
.service-sources { flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; }

/* 特集(Claude Code) */
.guide { max-width: 900px; display: flex; flex-direction: column; gap: 28px; }
.guide-head { display: flex; flex-direction: column; gap: 12px; }
.guide-lead { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.guide-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.guide-toc ol { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; font-size: 14px; }
.guide-sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.guide-sec h2 { margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 900; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.4; }
.guide-sec h3 { margin: 6px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.guide-sec > p { margin: 0; font-size: 15px; line-height: 1.85; }
.guide p code, .guide li code, .guide td code { font-family: var(--font-mono); font-size: .88em; background: var(--chip-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.guide .price-table td.mono, .guide .price-table th.mono { font-family: var(--font-mono); font-size: 13px; }
.tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.75; }
.point { background: var(--notice-bg); color: var(--notice-ink); border-radius: 10px; padding: 12px 16px; }
.point strong { margin-right: 6px; }
.code { margin: 0; border-radius: 10px; overflow: hidden; background: #0F1720; border: 1px solid var(--dark-line); min-width: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 14px; background: #1B2430; color: #C9CFD8; font-size: 12px; }
.code-head .mono { overflow-wrap: anywhere; }
.copy { flex: none; min-height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid #3A4452; background: transparent; color: #FFFFFF; font: inherit; font-size: 12px; cursor: pointer; }
.copy:hover { background: #263040; }
.copy:focus-visible { outline: 2px solid #7D97FF; outline-offset: 2px; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: #E6E9EE; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; tab-size: 2; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-label { flex: 0 0 6.5em; font-size: 12px; font-weight: 700; color: var(--muted); }
.flow-step { position: relative; padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.flow-step + .flow-step::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 12px; }
.flow-step + .flow-step { margin-left: 10px; }
@media (max-width: 600px) { .flow-label { flex-basis: 100%; } }
.link-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* フッター */
.site-footer { background: var(--dark); color: var(--on-dark-2); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.footer-about { display: flex; flex-direction: column; gap: 8px; max-width: 440px; font-size: 13px; line-height: 1.7; }
.footer-title { font-family: var(--font-head); font-weight: 900; font-size: 18px; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-nav a { color: #fff; min-height: 32px; display: inline-flex; align-items: center; }
