/* ブログ。作りは ITmedia NEWS（公開日時・著者・共有・関連リンク・右側にランキング）、
   本文の読みやすさは note（大きめの文字・広い行間）を手本にする。ガラスと動きは glass.css。 */

.b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 20px; padding-bottom: 64px; align-items: start; }
.b-main { min-width: 0; }
.b-side { position: sticky; top: 72px; display: grid; gap: 16px; }
.glass { border-radius: var(--radius); }
.cat { display: inline-block; padding: 1px 9px; border-radius: var(--radius); background: var(--brand-grad); color: var(--on-brand); font-size: .68rem; font-weight: 700; }
time { color: var(--muted); font-size: .78rem; }

/* ---------- 一覧 ---------- */
.list-h1 { margin: 0; font-size: 2rem; }
.list-lead { margin: 4px 0 18px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs a { flex: 0 0 auto; padding: 6px 14px; border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: .85rem; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.tabs a.on { color: var(--on-brand); font-weight: 700; background: var(--brand-grad); box-shadow: none; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

.ph { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 100%; padding: 14px; color: #fff; background: #12307a; border-left: 6px solid #c8102e; }
@keyframes phflow { to { background-position: 100% 100%; } }
.ph-cat { font-size: .66rem; opacity: .75; margin-bottom: 2px; }
.ph-title { font-weight: 700; font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; color: inherit; text-decoration: none; margin-bottom: 16px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: none; }
.feature-thumb { aspect-ratio: 1200 / 630; overflow: hidden; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.feature:hover .feature-thumb img { transform: scale(1.05); }
.feature-thumb .ph-title { font-size: 1.15rem; -webkit-line-clamp: 4; }
.feature-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; }
.feature-body .cat { align-self: flex-start; }
.feature-title { font-size: 1.25rem; font-weight: 700; line-height: 1.5; color: var(--ink); }
.feature-excerpt { font-size: .86rem; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px; color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s; }
.row:hover { transform: translateX(4px); background: rgba(255, 255, 255, .85); }
.row-thumb { aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-body .cat { align-self: flex-start; }
.row-title { font-weight: 700; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row:hover .row-title { color: #1d4ed8; }
.row-excerpt { font-size: .8rem; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 記事 ---------- */
.article { padding: 32px 40px 36px; background: var(--glass-strong) !important; }
.article .crumb { margin-bottom: 14px; }
.a-h1 { margin: 0; font-size: 1.9rem; line-height: 1.45; color: var(--ink); }
.a-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 16px 0 0; font-size: .82rem; }
.a-meta > div { display: flex; align-items: center; gap: 6px; }
.a-meta dt { color: var(--muted); }
.a-meta dd { margin: 0; color: var(--ink); }
.a-meta time { font-size: inherit; color: inherit; }
.a-by { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-grad); color: var(--on-brand); font-size: .7rem; font-weight: 700; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.2rem; flex: 0 0 auto; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 24px; }
.share-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.sh { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .78rem; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.sh:hover { transform: translateY(-3px) scale(1.06); background: var(--brand-grad); color: var(--on-brand); box-shadow: none; }

.a-lead { margin: 0 0 28px; padding: 16px 20px; border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; background: rgba(37, 99, 235, .06); font-weight: 700; line-height: 1.9; color: #333; }
.a-cover { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0 0 32px; }

/* 目次 */
.pm-toc { margin: 0 0 36px; padding: 18px 22px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(20, 37, 74, .08); }
.pm-toc-title { margin: 0 0 6px; font-weight: 700; font-size: .88rem; }
.pm-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.pm-toc li { font-size: .9rem; line-height: 1.7; padding: 3px 0; }
.pm-toc li.lv1 { counter-increment: toc; }
.pm-toc li.lv1::before { content: counter(toc) ". "; color: var(--blue); font-weight: 700; }
.pm-toc li.lv2 { padding-left: 1.6em; font-size: .85rem; }
.pm-toc a { color: var(--ink); text-decoration: none; }
.pm-toc a:hover { color: #1d4ed8; }

/* 本文（note の読みやすさ。段落は ITmedia のように1文字下げる） */
.pm { font-size: 1.0625rem; line-height: 2; color: #222; overflow-wrap: anywhere; line-break: strict; }
.pm > :first-child { margin-top: 0; }
.pm > p { margin: 0 0 1.6em; text-indent: 1em; }
.pm h2 { position: relative; margin: 2.6em 0 1em; padding: 0 0 10px 16px; font-size: 1.4rem; line-height: 1.55; color: var(--ink); scroll-margin-top: 80px; border-bottom: 1px solid rgba(20, 37, 74, .1); }
.pm h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: calc(10px + .25em); width: 5px; background: var(--brand); }
.pm h3 { margin: 2.2em 0 .8em; font-size: 1.18rem; line-height: 1.6; color: var(--ink); scroll-margin-top: 80px; }
.pm h4 { margin: 2em 0 .6em; font-size: 1.05rem; color: var(--ink); }
.pm strong { font-weight: 700; color: var(--ink); }
.pm mark { background: #fff1a8; color: inherit; padding: 0 2px; }
.pm .pm-u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: #9fb0d6; }
.pm a { color: #1d4ed8; text-underline-offset: 3px; }
.pm ul, .pm ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.pm li { margin-bottom: .4em; }
.pm li::marker { color: var(--blue); }
.pm blockquote { margin: 0 0 1.6em; padding: 4px 0 4px 20px; border-left: 3px solid #ddd; color: #555; }
.pm figure { margin: 0 0 2em; }
.pm figure img { width: 100%; height: auto; border-radius: 10px; display: block; }
.pm figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); text-align: center; }
.pm hr { border: 0; text-align: center; margin: 3em 0; }
.pm hr::before { content: "・・・"; color: #bbb; letter-spacing: .5em; }

.pm-table { overflow-x: auto; margin: 0 0 2em; border-radius: 12px; border: 1px solid rgba(20, 37, 74, .1); background: rgba(255, 255, 255, .7); }
.pm table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.7; }
.pm th, .pm td { padding: 10px 14px; border-bottom: 1px solid rgba(20, 37, 74, .08); text-align: left; vertical-align: top; }
.pm tbody tr:last-child td { border-bottom: 0; }
.pm thead th { background: var(--brand-grad); color: var(--on-brand); font-size: .82rem; white-space: nowrap; }

.pm-box { margin: 0 0 2em; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .7); border: 1px solid rgba(20, 37, 74, .08); }
.pm-box-title { padding: 10px 20px; font-weight: 700; font-size: .9rem; color: #fff; background: var(--muted); }
.pm-box-body { padding: 14px 20px 16px; font-size: .97rem; line-height: 1.9; }
.pm-box-body > :last-child { margin-bottom: 0; }
.pm-box-body > p { text-indent: 0; }
.pm-box-body ul, .pm-box-body ol { margin-bottom: 0; }
.pm-summary .pm-box-title { background: var(--brand-grad); color: var(--on-brand); }
.pm-summary { background: rgba(37, 99, 235, .06); }
.pm-point .pm-box-title { background: #b45309; }
.pm-point { background: rgba(37, 99, 235, .07); }
.pm-warn .pm-box-title { background: #c8102e; }
.pm-warn { background: rgba(201, 42, 42, .05); }

.pm-cta { margin: 0 0 2em; padding: 28px 24px; border-radius: var(--radius); text-align: center; background: #f5f8ff; border: 1px solid #d6e0f5; }
.pm-cta p { margin: 0 0 16px; font-size: .95rem; line-height: 1.8; text-indent: 0; }
.pm-cta-btn { position: relative; overflow: hidden; display: inline-block; padding: 13px 40px; border-radius: var(--radius); background: var(--brand-grad); color: var(--on-brand) !important; font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: none; transition: transform .2s, box-shadow .2s; }

@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.pm-cta-btn:hover { transform: translateY(-2px); box-shadow: none; }

.pm-check { position: relative; display: block; margin: 0 0 2em; padding: 20px 24px; border-radius: 16px; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.pm-check:hover { transform: translateY(-3px); box-shadow: none; }
.pm-check-label { display: inline-block; padding: 1px 10px; border-radius: var(--radius); background: var(--brand-grad); color: var(--on-brand); font-size: .7rem; font-weight: 700; }
.pm-check-title { display: block; margin-top: 6px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.pm-check-text { display: block; margin-top: 2px; font-size: .88rem; color: var(--muted); line-height: 1.7; }

.a-links, .a-author-box { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(20, 37, 74, .1); }
.a-links h2, .a-author-box h2, .related h2 { margin: 0 0 10px; font-size: 1rem; color: var(--ink); }
.a-links ul { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.a-links a { color: #1d4ed8; }
.a-author-in { display: flex; gap: 14px; align-items: flex-start; }
.a-author-name { margin: 4px 0 0; font-weight: 700; }
.a-author-name span { margin-left: 8px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.a-author-bio { margin: 6px 0 0; font-size: .9rem; color: #444; line-height: 1.8; white-space: pre-wrap; }
.related { margin-top: 28px; }
.related h2 { font-size: 1.15rem; margin-bottom: 14px; }

/* ---------- 右側 ---------- */
.side-tool { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px; color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.side-tool { border-top: 4px solid #c8102e !important; }
.side-tool:hover { transform: translateY(-3px); box-shadow: none; }
.side-tool-label { align-self: flex-start; padding: 1px 10px; border-radius: var(--radius); background: var(--brand-grad); color: var(--on-brand); font-size: .68rem; font-weight: 700; }
.side-tool-title { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.side-tool-text { font-size: .82rem; line-height: 1.7; color: #3a4150; }
.side-tool-btn { margin-top: 6px; padding: 10px; border-radius: 10px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--on-brand); background: var(--brand-grad); box-shadow: none; }

.side-sec { padding: 16px 18px; }
.side-sec h2 { margin: 0 0 10px; font-size: .95rem; color: var(--ink); }
.side-sec > p { margin: 0 0 10px; font-size: .8rem; line-height: 1.7; color: #3a4150; }
.remind { display: grid; gap: 8px; }
.remind .btn-main { padding: 10px; font-size: .9rem; }
.remind-msg { margin: 0; font-size: .8rem; color: var(--ok); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.s-thumb { aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-thumb .ph { padding: 6px; }
.s-thumb .ph-title, .s-thumb .ph-cat { display: none; }
.s-title { font-size: .8rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-list a:hover .s-title { color: #1d4ed8; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed rgba(20, 37, 74, .1); font-size: .82rem; line-height: 1.55; }
.rank li:last-child { border-bottom: 0; }
.rank a { color: var(--ink); text-decoration: none; font-weight: 700; }
.rank a:hover { color: #1d4ed8; }
.rank-n { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(20, 37, 74, .08); color: var(--muted); font-size: .72rem; font-weight: 700; }
.rank-n.top { background: var(--brand-grad); color: var(--on-brand); }

@media (max-width: 960px) {
  .b-layout { grid-template-columns: minmax(0, 1fr); }
  .b-side { position: static; }
}
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; }
  .row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .row-excerpt { display: none; }
  .article { padding: 22px 18px 26px; }
  .a-h1 { font-size: 1.45rem; }
  .pm { font-size: 1rem; }
  .pm h2 { font-size: 1.25rem; }
  .pm h3 { font-size: 1.1rem; }
  .list-h1 { font-size: 1.6rem; }
}

/* 運営者情報などのページ */
.b-layout.one { grid-template-columns: minmax(0, 860px); justify-content: center; }
.legal-updated { margin: 8px 0 20px; font-size: .8rem; color: var(--muted); }
.legal .groups { margin-top: 16px; }
.legal .pm-table th { width: 30%; text-align: left; font-weight: 700; background: rgba(37, 99, 235, .06); white-space: nowrap; }
.legal .pm-table th, .legal .pm-table td { padding: 12px 16px; border-bottom: 1px solid rgba(20, 37, 74, .08); vertical-align: top; }
.todo { color: var(--danger); font-weight: 700; }
.contact-form { margin-top: 20px; }
.legal .pm-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal .pm-table tr:last-child th, .legal .pm-table tr:last-child td { border-bottom: 0; }
