/* ===== コラム共通スタイル（トップページと同じ黒基調デザイン） ===== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #0a0a0a;
  --dark: #111;
  --dark2: #161616;
  --white: #fff;
  --gray: #888;
  --border: rgba(255,255,255,0.1);
  --muted: rgba(255,255,255,0.58);
}
html { scroll-behavior: smooth; }
body {
  background: var(--black); color: var(--white);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 300;
  overflow-x: hidden;
}

/* ===== NAV（トップページと同じ見た目） ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 58px;
  background: rgba(10,10,10,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text .main { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--white); }
.logo-text .sub { font-size: 7.5px; letter-spacing: 0.2em; color: var(--gray); }
.nav-links { display: flex; list-style: none; }
.nav-links a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0 14px; text-decoration: none; color: var(--white);
  font-size: 11px; font-weight: 500; transition: opacity 0.2s;
}
.nav-links a span { font-size: 8.5px; color: var(--gray); letter-spacing: 0.1em; }
.nav-links a:hover { opacity: 0.65; }
.nav-order-btn {
  padding: 8px 20px; background: var(--white); color: var(--black);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-decoration: none; transition: opacity 0.2s; white-space: nowrap;
}
.nav-order-btn:hover { opacity: 0.85; }

/* ===== ページ共通の枠 ===== */
.page { max-width: 880px; margin: 0 auto; padding: 110px 44px 80px; }
.sec-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px; letter-spacing: 0.38em; color: var(--gray); margin-bottom: 14px;
}
.page-h { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; margin-bottom: 14px; line-height: 1.6; }
.page-lead { font-size: 12.5px; color: var(--muted); line-height: 2.1; margin-bottom: 32px; }

/* ===== パンくずリスト ===== */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.breadcrumb li { font-size: 10.5px; color: var(--gray); letter-spacing: 0.04em; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: rgba(255,255,255,0.2); }
.breadcrumb li:last-child::after { content: ''; margin-left: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }

/* ===== 記事カード一覧 ===== */
.card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  display: flex; flex-direction: column;
  background: var(--dark2); border: 1px solid var(--border);
  padding: 24px 22px; text-decoration: none; color: var(--white);
  transition: border-color 0.3s, background 0.3s;
}
.card:hover { border-color: rgba(255,255,255,0.4); background: #1b1b1b; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-date { font-family: 'Montserrat', sans-serif; font-size: 10.5px; color: var(--gray); }
.card-cat {
  font-size: 9px; letter-spacing: 0.12em; padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.35); color: var(--muted); white-space: nowrap;
}
.card-title { font-size: 14px; font-weight: 700; line-height: 1.75; margin-bottom: 10px; }
.card-desc { font-size: 11.5px; color: var(--muted); line-height: 1.95; }
.card-more {
  margin-top: auto; padding-top: 16px;
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--gray);
  font-family: 'Montserrat', sans-serif;
}

/* ===== 記事本文 ===== */
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.article-date { font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--gray); letter-spacing: 0.08em; }
.article-cat { font-size: 9.5px; letter-spacing: 0.12em; padding: 3px 10px; border: 1px solid rgba(255,255,255,0.35); color: var(--muted); }

/* 目次 */
.toc { background: var(--dark2); border: 1px solid var(--border); padding: 22px 24px; margin-bottom: 44px; }
.toc-h { font-family: 'Montserrat', sans-serif; font-size: 9.5px; letter-spacing: 0.3em; color: var(--gray); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--border); }
.toc li:last-child { border-bottom: none; }
.toc a {
  display: block; padding: 10px 2px; text-decoration: none;
  color: var(--white); font-size: 12.5px; line-height: 1.7; transition: opacity 0.2s;
}
.toc a::before {
  content: counter(toc) '.'; font-family: 'Montserrat', sans-serif;
  color: var(--gray); margin-right: 10px; font-size: 11px;
}
.toc a:hover { opacity: 0.65; }

/* 見出し・本文 */
.article h2 {
  font-size: clamp(16px, 2.1vw, 20px); font-weight: 700; line-height: 1.7;
  margin: 52px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  scroll-margin-top: 74px;
}
.article h3 { font-size: 14px; font-weight: 700; line-height: 1.8; margin: 32px 0 12px; color: var(--white); }
.article p { font-size: 13px; color: var(--muted); line-height: 2.15; margin-bottom: 18px; }
.article strong { color: var(--white); font-weight: 500; }
.article ul, .article ol { margin: 0 0 20px 0; padding-left: 20px; }
.article li { font-size: 13px; color: var(--muted); line-height: 2.05; margin-bottom: 6px; }
.article a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--border); }
.article a:hover { opacity: 0.7; }

/* 補足ボックス */
.note {
  background: rgba(255,255,255,0.04); border-left: 2px solid rgba(255,255,255,0.35);
  padding: 16px 18px; margin: 0 0 24px;
}
.note p { margin-bottom: 0; font-size: 12px; line-height: 2.0; }
.note p + p { margin-top: 10px; }
.caption { font-size: 11px; color: var(--gray); line-height: 1.9; margin: -8px 0 24px; }

/* 表（スマホでは横スクロール枠に入れる） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; border: 1px solid var(--border); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table-wrap th {
  background: rgba(255,255,255,0.06); color: var(--white);
  font-size: 11.5px; font-weight: 500; text-align: left;
  padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table-wrap td {
  font-size: 12px; color: var(--muted); line-height: 1.85;
  padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap td.em { color: var(--white); }
.scroll-hint { font-size: 10.5px; color: var(--gray); margin-bottom: 24px; display: none; }

/* 図解：層構造 */
.layers { max-width: 460px; margin: 0 auto 14px; display: flex; flex-direction: column; gap: 5px; }
.layer {
  position: relative; padding: 13px 14px 13px 46px;
  font-size: 12px; line-height: 1.6; border: 1px solid var(--border);
}
.layer .no {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif; font-size: 10px; color: var(--gray);
}
.layer .nm { font-weight: 500; color: var(--white); }
.layer .rl { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.layer.liner { background: rgba(255,255,255,0.03); border-style: dashed; }
.layer.top { background: rgba(255,255,255,0.14); }
.layer.base { background: rgba(255,255,255,0.22); }
.layer.glue { background: rgba(255,255,255,0.10); }
.layer-axis { max-width: 460px; margin: 0 auto 24px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--gray); }

/* 図解：横棒（厚みの比較など） */
.bars { margin-bottom: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.bar-label { width: 150px; flex-shrink: 0; font-size: 11.5px; color: var(--white); }
.bar-track { flex: 1; min-width: 120px; height: 12px; background: rgba(255,255,255,0.06); }
.bar-fill { height: 100%; background: rgba(255,255,255,0.65); }
.bar-val { font-size: 11px; color: var(--muted); width: 160px; flex-shrink: 0; }

/* 図解：流れ（ステップ） */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.step { border: 1px solid var(--border); background: var(--dark2); padding: 18px 16px; }
.step-no { font-family: 'Montserrat', sans-serif; font-size: 9.5px; letter-spacing: 0.25em; color: var(--gray); margin-bottom: 8px; }
.step-t { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.step-d { font-size: 11.5px; color: var(--muted); line-height: 1.85; }

/* 2カラムの比較ボックス */
.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.pair-box { border: 1px solid var(--border); background: var(--dark2); padding: 20px 18px; }
.pair-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.pair-box ul { margin: 0; padding-left: 18px; }
.pair-box li { font-size: 11.5px; line-height: 1.95; margin-bottom: 4px; }

/* チェックリスト */
.checks { list-style: none; padding-left: 0; }
.checks li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: 13px; color: var(--muted); line-height: 2.0;
}
.checks li::before {
  content: '\2713'; position: absolute; left: 0; top: 0;
  color: var(--white); font-size: 12px;
}
.checks li strong { display: block; color: var(--white); font-weight: 500; }

/* ===== 記事末尾のCTA ===== */
.cta-box {
  border: 1px solid rgba(255,255,255,0.28); background: var(--dark2);
  padding: 32px 30px; margin: 56px 0 44px;
}
.cta-badge {
  display: inline-block; background: var(--white); color: var(--black);
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; padding: 4px 10px; margin-bottom: 14px;
}
.cta-h { font-size: 17px; font-weight: 700; line-height: 1.7; margin-bottom: 12px; }
.cta-p { font-size: 12.5px; color: var(--muted); line-height: 2.05; margin-bottom: 22px; }
.btn-fill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; background: var(--white); color: var(--black);
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-decoration: none; transition: opacity 0.2s;
}
.btn-fill:hover { opacity: 0.85; }

/* ===== 関連記事 ===== */
.related { border-top: 1px solid var(--border); padding-top: 32px; }
.related-h { font-family: 'Montserrat', sans-serif; font-size: 9.5px; letter-spacing: 0.3em; color: var(--gray); margin-bottom: 16px; }
.related-list { list-style: none; }
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:first-child { border-top: 1px solid var(--border); }
.related-list a {
  display: block; padding: 16px 2px; text-decoration: none; color: var(--white);
  font-size: 12.5px; line-height: 1.8; transition: opacity 0.2s;
}
.related-list a:hover { opacity: 0.65; }
.related-list .rl-date { font-family: 'Montserrat', sans-serif; font-size: 10px; color: var(--gray); display: block; margin-bottom: 3px; }

/* ===== 戻る導線 ===== */
.back-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.btn-border {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 24px; border: 1px solid var(--white);
  font-size: 11px; letter-spacing: 0.18em; color: var(--white);
  text-decoration: none; width: fit-content; transition: all 0.3s;
}
.btn-border:hover { background: var(--white); color: var(--black); }

/* ===== FOOTER ===== */
footer { background: var(--dark2); border-top: 1px solid var(--border); }
.footer-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 44px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 20px;
}
.f-logo { display: flex; align-items: center; gap: 10px; }
.f-logo .main { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; }
.f-logo .sub { font-size: 7.5px; letter-spacing: 0.2em; color: var(--gray); }
.f-nav { display: flex; list-style: none; flex-wrap: wrap; }
.f-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0 12px; text-decoration: none; color: var(--muted);
  font-size: 11px; transition: color 0.2s;
}
.f-nav a span { font-size: 8.5px; color: var(--gray); }
.f-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 44px; font-size: 10px; color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em; flex-wrap: wrap; gap: 10px;
}
.f-links { display: flex; gap: 20px; }
.f-links a { color: rgba(255,255,255,0.22); text-decoration: none; font-size: 10px; transition: color 0.2s; }
.f-links a:hover { color: var(--muted); }

/* ===== スマホ対応（横スクロールが出ないようにする） ===== */
@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .page { padding: 88px 16px 60px; }
  .card-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .scroll-hint { display: block; }
  .bar-label { width: 100%; }
  .bar-val { width: 100%; }
  .cta-box { padding: 26px 20px; }
  .footer-main, .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .footer-main { justify-content: flex-start; }
}

/* 黄変の4ステップ図解 */
.deg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 14px; }
.deg-card { position: relative; border: 1px solid var(--border); background: var(--dark2); padding: 16px 14px 18px; }
.deg-card:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 46px; width: 8px; height: 8px; border-top: 2px solid var(--gray); border-right: 2px solid var(--gray); transform: rotate(45deg); }
.deg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.deg-no { font-family: 'Montserrat', sans-serif; font-size: 10px; letter-spacing: 0.2em; color: var(--gray); }
.deg-tag { font-size: 9.5px; color: #e6b450; border: 1px solid rgba(230,180,80,0.5); padding: 1px 7px; letter-spacing: 0.05em; }
.deg-ico { display: block; width: 100%; height: 68px; margin: 4px 0 12px; }
.deg-t { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.deg-d { font-size: 11.5px; color: var(--muted); line-height: 1.85; }
.deg-note { border-left: 3px solid #e6b450; background: rgba(230,180,80,0.07); padding: 14px 18px; font-size: 12.5px; line-height: 1.9; margin: 4px 0 14px; }
@media (max-width: 900px) {
  .deg { grid-template-columns: 1fr; gap: 22px; }
  .deg-card:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -17px; margin-left: -4px; transform: rotate(135deg); }
  .deg-ico { height: 56px; }
}

/* 黄変の図解：PCは画像、スマホはHTMLカード */
.deg-img { margin: 0 0 14px; }
.deg-img img { display: block; width: 100%; height: auto; border-radius: 6px; }
@media (min-width: 901px) { .deg { display: none; } }
@media (max-width: 900px) { .deg-img { display: none; } }
