/* ===== Column detail page ============================================= */
.col-detail {
  background: #fffefd;
  padding: 32px 0 96px;
}
.col-detail__inner {
  width: 1240px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
  padding: 0 24px;
}
.col-detail__main { min-width: 0; }

/* ── Photo placeholder (used for hero, related cards, popular sidebar) ── */
.photo-ph {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg,
      #f6f7f9 0 12px,
      #eaeef4 12px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.photo-ph::before {
  /* a subtle wash that shifts on hover for the related/popular cards */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,66,107,0) 60%, rgba(37,66,107,.04));
  pointer-events: none;
}
.photo-ph__lbl {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 14px;
  color: #25426B;
  background: rgba(255,255,255,.7);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.col-detail__hero {
  width: 100%;
  aspect-ratio: 880 / 460;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 22px;
}

/* ── Title block ───────────────────────────────────────────────────────── */
.col-detail__meta { margin-bottom: 30px; }
.col-detail__cat {
  display: inline-block;
  background: #25426B;
  color: #fff;
  padding: 6px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.col-detail__title {
  font-size: 32px;
  font-weight: 700;
  color: #25426B;
  margin: 0 0 14px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.col-detail__date {
  font-size: 14px;
  color: #4d4d4d;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  letter-spacing: .06em;
}

/* ── Table of contents ─────────────────────────────────────────────────── */
.col-detail__toc {
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 22px 28px;
  margin-bottom: 36px;
  background: #fffefd;
}
.col-detail__toc-head {
  font-weight: 700;
  color: #25426B;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.col-detail__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-detail__toc-list a {
  color: #25426B;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  transition: border-color .2s var(--ease-sharp),
              color .2s var(--ease-sharp),
              transform .2s var(--ease-sharp);
  display: inline-block;
}
.col-detail__toc-list a:hover {
  border-bottom-color: #25426B;
  color: #1a3354;
  transform: translateX(3px);
}

/* ── Body text ─────────────────────────────────────────────────────────── */
.col-detail__body {
  font-size: 15px;
  line-height: 1.95;
  color: #4d4d4d;
  margin: 0 0 28px;
  text-wrap: pretty;
}

/* ── Sub-section heading + decorative dots underline ───────────────────── */
.col-detail__sub { margin-top: 48px; }
.col-detail__sub-h {
  font-size: 26px;
  font-weight: 700;
  color: #25426B;
  margin: 0 0 14px;
  letter-spacing: .02em;
}
.col-detail__sub-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.col-detail__sub-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #25426B;
  flex-shrink: 0;
  opacity: .9;
}

/* ── Author profile card ───────────────────────────────────────────────── */
.col-detail__author {
  margin-top: 72px;
  background: #f0f8ff;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 26px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.col-detail__author-avatar {
  width: 120px; height: 120px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #d7dee8;
}
.col-detail__author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-detail__author-body { min-width: 0; flex: 1; }
.col-detail__author-name {
  display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 12px;
}
.col-detail__author-name .bold { font-size: 18px; font-weight: 700; color: #25426B; }
.col-detail__author-name .muted { font-size: 13px; color: #4d4d4d; }
.col-detail__author-body p {
  font-size: 13px; line-height: 1.8; color: #4d4d4d; margin: 0;
  text-wrap: pretty;
}

/* ── Related articles ──────────────────────────────────────────────────── */
.col-detail__related { margin-top: 80px; }
.col-detail__related-h {
  font-size: 22px;
  font-weight: 700;
  color: #25426B;
  margin: 0 0 22px;
  letter-spacing: .02em;
}
.col-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.col-card {
  text-decoration: none; color: inherit;
  display: block;
  cursor: pointer;
  transition: transform .3s var(--ease-sharp);
}
.col-card:hover { transform: translateY(-6px); }
.col-card:hover .col-card__photo .photo-ph::before { background: linear-gradient(180deg, rgba(37,66,107,0) 50%, rgba(37,66,107,.10)); }
.col-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(37,66,107,.06);
  transition: box-shadow .3s var(--ease-sharp);
}
.col-card:hover .col-card__photo { box-shadow: 0 16px 36px rgba(37,66,107,.18); }
.col-card__cat {
  display: inline-block;
  background: #25426B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.col-card__title {
  font-size: 14px;
  color: #25426B;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 8px;
}
.col-card__date {
  font-size: 12px;
  color: #4d4d4d;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  letter-spacing: .06em;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.col-detail__side {
  position: sticky;
  top: 24px;
  align-self: start;
}
.col-side__head {
  font-size: 18px;
  font-weight: 700;
  color: #25426B;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: .04em;
}
.col-side__cats {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.col-side__cats a {
  display: inline-block;
  min-width: 180px;
  border: 1px solid #25426B;
  border-radius: 999px;
  padding: 9px 24px;
  text-align: center;
  color: #25426B;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .25s var(--ease-sharp),
              color .25s var(--ease-sharp),
              transform .25s var(--ease-sharp),
              box-shadow .25s var(--ease-sharp);
  position: relative;
  overflow: hidden;
}
.col-side__cats a:hover {
  background: #25426B;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,66,107,.22);
}

.col-side__popular {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.col-side__popular li { position: relative; }
.col-side__popular li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 1px;
  background: #d7dee8;
}
.col-side__popular li:last-child::after { display: none; }
.col-side__popular a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .25s var(--ease-sharp);
}
.col-side__popular a:hover { transform: translateY(-2px); }
.col-side-card__photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: box-shadow .25s var(--ease-sharp);
}
.col-side__popular a:hover .col-side-card__photo {
  box-shadow: 0 10px 24px rgba(37,66,107,.20);
}
.col-side-card__cat {
  display: inline-block;
  background: #25426B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.col-side-card__title {
  font-size: 14px;
  color: #25426B;
  font-weight: 700;
  margin-bottom: 4px;
}
.col-side-card__date {
  font-size: 12px;
  color: #4d4d4d;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  letter-spacing: .06em;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .col-detail__inner {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
  }
  .col-detail__title { font-size: 26px; }
}
@media (max-width: 900px) {
  .col-detail__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    width: 100%;
  }
  .col-detail__side { position: static; }
  .col-detail__related-grid { grid-template-columns: 1fr; gap: 16px; }
  .col-detail__author {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 20px;
  }
  .col-detail__author-avatar { width: 96px; height: 96px; }
  .col-detail__title { font-size: 22px; }
}
