/* TechSnap 記事ページ共通スタイル（各記事インライン<style>の外出し。2026-08-12）
   ※ 2026-07に廃止した旧 css/article.css（.article-layout等の別クラス系）とは無関係の別物。
      こちらは現行インライン<style>と同一クラス・同一値をそのまま外出しした共通ベース。
   単品レビュー／スチューデント／楽天ボタンの全バリアントを内包する上位集合。
   未使用ルールが載っていても無害。新規記事は scripts/_TEMPLATE-single-review.html 経由でこの1本をlinkするだけ。
   .inline-review-link / .review-badge は css/style.css 側（サイト共通）にあるためここには持たない。 */

.article-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.article-wrap.has-sidebar { max-width: 1120px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media(max-width:860px){ .article-wrap.has-sidebar { grid-template-columns: 1fr; } }

.article-header { margin-bottom: 32px; }
.article-header .tag { display: inline-block; background: rgba(60,50,40,0.1); color: var(--text); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; border: 1px solid rgba(60,50,40,0.2); }
.article-header h1 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.4; margin-bottom: 12px; }
.article-header .meta { font-size: 0.8rem; color: var(--text-muted); }

.article-body { line-height: 1.9; font-size: 1rem; color: var(--text); }
.article-body h2 { display: block; font-size: 1.25rem; font-weight: 700; margin: 40px 0 16px; padding-left: 16px; border-left: 4px solid var(--accent); line-height: 1.4; box-sizing: border-box; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; }

.product-img-wrap { width: 100%; border-radius: 12px; margin-bottom: 40px; overflow: hidden; background: var(--bg2); }
.product-img-wrap img { width: 100%; height: auto; max-height: 260px; object-fit: contain; display: block; margin: 0 auto; }
@media (min-width: 769px) { .product-img-wrap img { max-height: 360px; object-fit: contain; } }

.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 0.88rem; }
.spec-table th, .spec-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { background: var(--bg2); font-weight: 600; width: 36%; white-space: nowrap; }
.spec-table td { background: var(--bg); }

.callout { border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.callout.good { background: #f0faf4; border-left: 4px solid #2ecc71; }
.callout.warn { background: #fff8f0; border-left: 4px solid #f39c12; }
.callout-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.callout.good .callout-title { color: #27ae60; }
.callout.warn .callout-title { color: #e67e22; }
.callout ul { margin: 0; padding-left: 18px; }
.callout li { margin-bottom: 6px; font-size: 0.92rem; line-height: 1.7; }

.amazon-btn-wrap { text-align: center; margin: 40px 0; }
.amazon-btn { display: inline-flex; align-items: center; gap: 10px; background: #FF9900; color: #111; font-weight: 700; font-size: 1rem; padding: 14px 32px; border-radius: 8px; transition: opacity 0.15s; text-decoration: none; }
.amazon-btn:hover { opacity: 0.85; color: #111; }
.amazon-btn svg { flex-shrink: 0; }

.rakuten-btn { display: inline-flex; align-items: center; gap: 10px; background: #bf0000; color: #fff; font-weight: 700; font-size: 1rem; padding: 14px 32px; border-radius: 8px; transition: opacity 0.15s; text-decoration: none; }
.rakuten-btn:hover { opacity: 0.85; color: #fff; }
.rakuten-btn svg { flex-shrink: 0; }
.amazon-btn-wrap .rakuten-btn { margin-top: 14px; }

.student-cta { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; margin: 40px 0; text-align: center; }
.student-cta p.lead { font-size: 0.95rem; margin-bottom: 18px; color: var(--text); }
.student-btn { display: inline-flex; align-items: center; gap: 10px; background: #232f3e; color: #fff; font-weight: 700; font-size: 1rem; padding: 14px 32px; border-radius: 8px; transition: opacity 0.15s; text-decoration: none; }
.student-btn:hover { opacity: 0.85; color: #fff; }
.student-btn svg { flex-shrink: 0; }
.student-cta p.note { font-size: 0.75rem; color: var(--text2); margin-top: 12px; }

.sidebar { position: sticky; top: 24px; }
.sidebar-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.score-big { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }
.score-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 20px; }
.score-bars { display: flex; flex-direction: column; gap: 10px; }
.score-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.score-row span:first-child { width: 72px; flex-shrink: 0; color: var(--text-muted); }
.score-bar-bg { flex: 1; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.score-row span:last-child { width: 24px; text-align: right; font-weight: 600; }
.fit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fit-list li { font-size: 0.87rem; display: flex; gap: 8px; line-height: 1.5; }
.fit-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.related-list li a { font-size: 0.85rem; line-height: 1.5; color: var(--text); }
.related-list li a:hover { color: var(--accent); }
.related-list .tag.sm { font-size: 0.68rem; margin-right: 4px; }

.breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }
