/* ============================================================
   コラム（静的・クロール可能）専用スタイル
   extends v3-friendly.css + v3-pages.css
   ============================================================ */

/* --- hero badge --- */
.subhero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--maru); font-weight: 800; font-size: 12px;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 6px 16px; border-radius: var(--r-pill);
  margin-bottom: 20px; letter-spacing: .06em;
}
.subhero__meta {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-family: var(--maru); font-weight: 600;
  font-size: 13px; color: var(--ink-soft);
}
.subhero__meta b { color: var(--ink-2); font-weight: 800; }
.subhero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* --- layout: article + sticky aside --- */
.col-wrap { display: grid; grid-template-columns: minmax(0,1fr) 296px; gap: 64px; }
.col-aside { align-self: start; position: sticky; top: calc(var(--nav-h, 78px) + 24px); }

/* --- answer-first lead --- */
.lead-box {
  background: linear-gradient(180deg, var(--blue-tint), var(--bg-2));
  border: 1px solid var(--blue-soft);
  border-left: 5px solid var(--blue);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin-bottom: 44px;
}
.lead-box .lead-box__l {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--maru); font-weight: 800; font-size: 12px;
  color: var(--blue-deep); letter-spacing: .06em; margin-bottom: 10px;
}
.lead-box p { margin: 0; font-size: 15.5px; line-height: 1.95; color: var(--ink); font-weight: 600; }

/* --- article: h2 sections (these articles use <h2> for sections) --- */
.article h2 {
  font-family: var(--maru); font-size: clamp(21px, 2.6vw, 27px); font-weight: 900;
  color: var(--ink);
  margin-top: 60px; margin-bottom: 20px;
  padding-bottom: 14px;
  line-height: 1.45;
  border-bottom: 2px solid var(--line-soft);
  position: relative;
  scroll-margin-top: calc(var(--nav-h, 78px) + 16px);
}
.article h2::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.article h2:first-child { margin-top: 0; }
.article h2 + p { margin-top: 0; }

/* --- branded tables (wrapped in .tw for horizontal scroll on mobile) --- */
.tw { overflow-x: auto; margin: 8px 0 30px; border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.article table {
  width: 100%; border-collapse: collapse;
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 14px;
  min-width: 480px;
}
.article thead th {
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
  color: #fff;
  font-family: var(--maru); font-weight: 800; font-size: 13.5px;
  text-align: left;
  padding: 15px 18px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.article tbody th {
  font-family: var(--maru); font-weight: 800; color: var(--ink);
  background: var(--bg-2);
  text-align: left; padding: 14px 18px; vertical-align: top;
}
.article tbody td {
  padding: 14px 18px; vertical-align: top;
  color: var(--ink-2); line-height: 1.8; font-weight: 500;
}
.article tbody tr { border-top: 1px solid var(--line-soft); }
.article tbody tr:nth-child(even) { background: rgba(255,246,230,.4); }
.article table strong { color: var(--orange-deep); }

/* --- blockquote callout --- */
.article blockquote {
  margin: 28px 0;
  padding: 22px 28px;
  background: var(--orange-tint);
  border-radius: var(--r-md);
  border-left: 5px solid var(--orange);
  font-weight: 600; color: var(--ink-2);
  line-height: 1.95;
}
.article blockquote p:last-child { margin-bottom: 0; }

/* --- TOC card (in aside) --- */
.toc-card {
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.toc-card__t {
  font-family: var(--maru); font-weight: 800; font-size: 13px;
  color: var(--ink-soft); letter-spacing: .06em;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 8px;
}
.toc-card ol { list-style: none; counter-reset: t; padding: 0; margin: 0; }
.toc-card li { counter-increment: t; margin: 0; }
.toc-card a {
  display: grid; grid-template-columns: 22px 1fr; gap: 4px;
  padding: 7px 0; font-size: 13px; line-height: 1.6;
  color: var(--ink-2); font-weight: 600;
  transition: color .2s, transform .2s;
}
.toc-card a::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--orange); font-weight: 700;
}
.toc-card a:hover { color: var(--orange); transform: translateX(2px); }

/* --- aside CTA --- */
.aside-cta {
  background: linear-gradient(150deg, var(--ink), #2a3852);
  color: #fff; border-radius: var(--r-lg);
  padding: 26px 24px; text-align: center;
}
.aside-cta__t { font-family: var(--maru); font-weight: 900; font-size: 17px; line-height: 1.5; margin-bottom: 6px; }
.aside-cta__p { font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.8; margin-bottom: 18px; font-weight: 500; }
.aside-cta__price { font-family: var(--maru); font-weight: 900; color: var(--orange-light); }
.aside-cta a {
  display: block; background: var(--orange); color: #fff;
  font-family: var(--maru); font-weight: 800; font-size: 14px;
  padding: 13px; border-radius: var(--r-pill);
  box-shadow: 0 4px 0 var(--orange-deep);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.aside-cta a:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 6px 0 var(--orange-deep); }

/* --- FAQ (visible Q&A; also mirrored in FAQPage JSON-LD) --- */
.faq-sec { margin-top: 64px; }
.faq-sec__h {
  font-family: var(--maru); font-size: clamp(21px,2.6vw,27px); font-weight: 900; color: var(--ink);
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.faq-sec__h span {
  font-family: var(--en); font-style: italic; font-size: 18px; color: var(--orange);
}
.faq-item {
  background: var(--card); border: 2px solid var(--line-soft);
  border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden;
  transition: border-color .25s;
}
.faq-item[open] { border-color: var(--blue-soft); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--maru); font-weight: 800; font-size: 15.5px; color: var(--ink);
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q'; position: absolute; left: 24px; display: none;
}
.faq-item summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--maru); font-weight: 700; font-size: 22px; color: var(--orange);
  transition: transform .25s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__a { padding: 0 24px 22px; color: var(--ink-2); line-height: 2; font-weight: 500; font-size: 14.5px; }

/* --- author / share row --- */
.article-foot {
  margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.author {
  display: flex; align-items: center; gap: 14px;
}
.author__av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--maru); font-weight: 900; font-size: 18px;
}
.author__n { font-family: var(--maru); font-weight: 800; font-size: 14px; color: var(--ink); }
.author__r { font-size: 12px; color: var(--ink-mute); font-weight: 600; margin-top: 2px; }

/* --- related / hub cards --- */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.col-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.col-card:hover { transform: translateY(-5px); border-color: var(--orange-soft); box-shadow: var(--shadow-card); }
.col-card__top {
  height: 116px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.col-card:nth-child(3n+2) .col-card__top { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%); }
.col-card:nth-child(3n) .col-card__top { background: linear-gradient(135deg, #5566aa 0%, var(--ink) 100%); }
.col-card__num { font-family: var(--en); font-style: italic; font-weight: 500; font-size: 52px; color: rgba(255,255,255,.32); }
.col-card__cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--maru); font-weight: 800; font-size: 10.5px; letter-spacing: .06em;
  color: #fff; background: rgba(0,0,0,.22); padding: 4px 11px; border-radius: var(--r-pill);
}
.col-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.col-card__t { font-family: var(--maru); font-weight: 900; font-size: 17px; line-height: 1.5; color: var(--ink); margin-bottom: 10px; }
.col-card__d { font-size: 13px; line-height: 1.85; color: var(--ink-soft); font-weight: 500; flex: 1; }
.col-card__more {
  margin-top: 16px; font-family: var(--maru); font-weight: 800; font-size: 13px; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.col-card:hover .col-card__more { color: var(--orange); }
.col-card__more span { transition: transform .25s; }
.col-card:hover .col-card__more span { transform: translateX(4px); }

.related-h { font-family: var(--maru); font-weight: 900; font-size: 22px; color: var(--ink); margin: 0 0 24px; }

/* --- responsive --- */
@media (max-width: 1024px) {
  .col-wrap { grid-template-columns: 1fr; gap: 40px; }
  .col-aside { position: static; }
  .toc-card { display: none; }
  .col-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .col-grid { grid-template-columns: 1fr; gap: 18px; }
  .lead-box { padding: 20px 22px; }
  .article h2 { margin-top: 46px; }
  .faq-item summary { padding: 16px 48px 16px 20px; font-size: 14.5px; }
}
