/* ai.jfsc.jp 柱記事 共通スタイル（モックとトーン統一） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #0a0a0a; --dark: #111318; --card: #1a1d24; --card2: #14171d;
  --border: #2a2d36; --accent: #4f8ef7; --accent2: #7c5cfc; --green: #34d399;
  --text: #e8eaf0; --muted: #8890a4; --white: #fff;
}
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; line-height: 1.85; -webkit-font-smoothing: antialiased; }

nav { position: fixed; top: 0; width: 100%; background: rgba(10,10,10,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 100; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: .95rem; font-weight: 700; letter-spacing: .06em; }
.logo span { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff; padding: .4rem 1.1rem; border-radius: 6px; font-size: .82rem; font-weight: 600; text-decoration: none; }

.article { max-width: 760px; margin: 0 auto; padding: 100px 5vw 60px; }
.crumb { font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumb a { color: var(--accent); text-decoration: none; }
.cat-tag { display: inline-block; font-size: .72rem; letter-spacing: .12em; color: var(--accent); font-weight: 600; border: 1px solid var(--accent); border-radius: 16px; padding: .25rem .8rem; margin-bottom: 1.2rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.3; margin-bottom: 1.2rem; }
.meta-line { font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.meta-line strong { color: var(--text); }

/* アンサーカプセル（AIが冒頭抽出する結論ブロック） */
.answer-capsule { background: linear-gradient(135deg, rgba(79,142,247,.12), rgba(124,92,252,.08)); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 1.5rem 1.8rem; margin-bottom: 2.5rem; }
.answer-capsule .lbl { font-size: .72rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; margin-bottom: .6rem; }
.answer-capsule p { font-size: 1.02rem; color: var(--text); margin: 0; }

.article h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin: 2.8rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article h2 em { font-style: normal; color: var(--accent); }
.article h3 { font-size: 1.1rem; font-weight: 700; margin: 1.8rem 0 .7rem; color: var(--text); }
.article p { margin-bottom: 1.2rem; color: #d2d6e0; }
.article a { color: var(--accent); }
.article strong { color: var(--white); }
.article ul, .article ol { margin: 0 0 1.4rem 1.4rem; }
.article li { margin-bottom: .6rem; color: #d2d6e0; }
.hl { color: var(--accent); font-weight: 700; }

.fig { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem 1.6rem; margin: 1.6rem 0; }
.fig .cap { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.5rem 0; }
th { text-align: left; padding: .8rem 1rem; background: var(--card); border-bottom: 1px solid var(--border); font-size: .85rem; }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
td strong { color: var(--text); }

blockquote { border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1.3rem; margin: 1.5rem 0; color: var(--text); font-size: 1.02rem; }

.note { background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1.5rem 0; font-size: .9rem; color: var(--muted); }
.note strong { color: var(--green); }

/* FAQ */
.faq { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 1.1rem 0; font-size: .98rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font-family: inherit; }
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.4rem; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { color: var(--muted); font-size: .9rem; padding-bottom: 1.1rem; }

/* 監修者 */
.author { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin: 2.5rem 0; }
.author .av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; font-size: .95rem; }
.author .lbl { font-size: .7rem; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.author .nm { font-weight: 800; margin: .2rem 0; }
.author .bio { font-size: .82rem; color: var(--muted); }

/* 関連記事（トピッククラスター内部リンク） */
.related { margin: 3rem 0 1rem; }
.related h2 { font-size: 1.2rem; border: none; padding: 0; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; display: block; }
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card .rc-tag { font-size: .68rem; color: var(--accent); font-weight: 600; }
.related-card .rc-title { font-size: .9rem; font-weight: 600; margin-top: .3rem; }

/* CTA */
.cta { background: linear-gradient(135deg, rgba(79,142,247,.15), rgba(124,92,252,.15)); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; text-align: center; margin: 3rem 0; }
.cta h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .8rem; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; font-size: .92rem; }
.cta a { background: var(--accent); color: #fff; padding: .8rem 2rem; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-block; }

footer { border-top: 1px solid var(--border); padding: 2rem 5vw; text-align: center; font-size: .8rem; color: var(--muted); }
footer a { color: var(--muted); }
