/* =============================================================
   column.css — コラム一覧・記事共通スタイル
   ProfitScope株式会社
   ============================================================= */

/* ===== Column List Hero ===== */
.column-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(165deg, #F2FAFF, #DCF1FD 50%, #BFE6FB);
  text-align: center;
}

.column-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 1rem;
}

.column-hero__eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.column-hero h1 {
  font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .8rem;
}

.column-hero p {
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Category Filter ===== */
.category-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.category-filter__btn {
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  padding: .45em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--slate);
  cursor: pointer;
  transition: all .2s;
}

.category-filter__btn:hover {
  border-color: var(--sky-deep);
  color: var(--sky-deep);
}

.category-filter__btn.is-active {
  background: var(--sky-deep);
  color: #fff;
  border-color: var(--sky-deep);
}

/* ===== Column Grid ===== */
.column-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px var(--pad-x) 80px;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.6rem;
}

/* ===== Column Card ===== */
.column-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.column-card__thumb {
  height: 160px;
  background: linear-gradient(135deg, #0E4FA3, #0284C7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.column-card__thumb svg {
  width: 80px;
  height: 80px;
  opacity: .18;
}

.column-card__thumb .thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(.9rem,2vw,1.1rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}

.column-card__body {
  padding: 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.column-card__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.column-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(2,132,199,.12);
  color: var(--sky-deep);
  border-radius: 6px;
  padding: .2em .7em;
}

.column-card__tag--gold  { background: rgba(244,200,67,.22); color: #7a5e00; }
.column-card__tag--slate { background: var(--ice); color: var(--slate); }
.column-card__tag--green { background: rgba(16,185,129,.12); color: #0f7a56; }

.column-card__date-time {
  font-size: .75rem;
  color: var(--slate);
  font-family: var(--font-data);
}

.column-card h2 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.column-card p {
  font-size: .88rem;
  color: var(--slate);
  flex: 1;
  line-height: 1.7;
}

.column-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--sky-deep);
  margin-top: .2rem;
}

.column-card__link::after { content: "→"; }

/* Hidden card (filtered out) */
.column-card.is-hidden {
  display: none;
}

/* ===== Article: Header & Meta ===== */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 60px) var(--pad-x) 80px;
}

.article-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  background: rgba(2,132,199,.12);
  color: var(--sky-deep);
  border-radius: 6px;
  padding: .25em .8em;
  margin-bottom: 1.2rem;
}

.article-title {
  font-size: clamp(1.6rem,4vw,2.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: .8rem;
}

.article-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--slate);
  margin-bottom: 2rem;
  font-family: var(--font-data);
}

.article-meta__author {
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font);
}

/* ===== Table of Contents ===== */
.toc {
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.4rem;
}

.toc__title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: .08em;
  margin-bottom: .9rem;
}

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.toc__list a {
  font-size: .9rem;
  color: var(--sky-deep);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.toc__list a::before {
  content: attr(data-num);
  font-size: .72rem;
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--slate);
  flex-shrink: 0;
}

.toc__list a:hover { text-decoration: underline; }

/* ===== Article Body ===== */
.article-body {
  font-size: 1.05rem;
  color: #2C3A5A;
}

.article-body h2 {
  font-size: clamp(1.15rem,2.8vw,1.45rem);
  font-weight: 700;
  color: var(--ink);
  margin: 2.8rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
  line-height: 1.4;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8rem 0 .7rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body ul {
  margin: .8rem 0 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.article-body ul li { list-style: disc; }
.article-body strong { font-weight: 700; color: var(--ink); }

/* ===== Highlight Box ===== */
.highlight-box {
  background: linear-gradient(120deg, var(--ice), var(--line));
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--indigo);
  border-left: 4px solid var(--gold);
  line-height: 1.7;
}

/* ===== Summary Box ===== */
.summary-box {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin: 2.4rem 0;
}

.summary-box h3 {
  color: var(--gold);
  font-size: 1.02rem;
  margin-bottom: .9rem;
}

.summary-box ul {
  margin-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.summary-box ul li {
  list-style: disc;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}

/* ===== Author Box ===== */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  margin-top: 3rem;
}

.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  font-family: var(--font-data);
}

.author-box__info {}

.author-box__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--slate);
  margin-bottom: .3rem;
}

.author-box__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
}

.author-box__bio {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ===== Related Articles ===== */
.related-articles {
  margin-top: 3rem;
}

.related-articles h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding-left: .8rem;
  border-left: 3px solid var(--gold);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}

.related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.related-card__thumb {
  height: 80px;
  background: linear-gradient(135deg, #0E4FA3, #0284C7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card__thumb span {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: .5rem;
  line-height: 1.4;
}

.related-card__body {
  padding: .9rem 1rem;
  flex: 1;
}

.related-card__tag {
  font-size: .68rem;
  font-weight: 700;
  color: var(--sky-deep);
  background: rgba(2,132,199,.1);
  border-radius: 4px;
  padding: .15em .5em;
  margin-bottom: .4rem;
  display: inline-block;
}

.related-card__title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

/* ===== Article Navigation ===== */
.col-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
}

.col-nav a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--sky-deep);
  padding: .6em 1.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: background .2s;
}

.col-nav a:hover { background: var(--ice); }

/* ===== Article CTA ===== */
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--ice);
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--line);
}

.article-cta p {
  color: var(--slate);
  margin-bottom: 1.2rem;
  font-size: .97rem;
}

.article-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ===== Column CTA (list page) ===== */
.column-cta {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 80px;
}

/* ===== SP ===== */
@media (max-width: 640px) {
  .column-grid { grid-template-columns: 1fr; }
  .column-card__thumb { height: 130px; }
  .related-grid { grid-template-columns: 1fr; }
  .col-nav { flex-direction: column; }
  .article-body h2 { margin-top: 2rem; }
}
