/* ----------------------------------------------------------------------
   コラム（一覧・カテゴリ別一覧・記事詳細）
   デザイン：Figma「医療物販LP」PC｜ポケットキュア サービスサイト TOP（ワイヤー）のコラム枠に準拠
---------------------------------------------------------------------- */
:root {
  --cl-blue: #4fa8e0;
  --cl-green: #6cc08b;
  --cl-line: #06c755;
  --cl-text: #3d2b25;
  --cl-sub: #7a6e69;
  --cl-border: #dde3e6;
  --cl-placeholder: #e6eaec;
  --cl-bg: #f7fafb;
  --cl-ff-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --cl-ff-heading: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", sans-serif;
}

.column-page {
  background: var(--cl-bg);
  color: var(--cl-text);
  font-family: var(--cl-ff-base);
  font-size: 1.4rem;
  line-height: 1.8;
  word-break: break-word;
}

.column-page .divider {
  display: none;
}

/* ---------- パンくずリスト ---------- */
.column-page .c-breadcrumb {
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--cl-border);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cl-sub);
}

.column-page .c-breadcrumb .list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.column-page .c-breadcrumb .item {
  display: flex;
  align-items: center;
  min-width: 0;
}

.column-page .c-breadcrumb .item + .item::before {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 0 10px 0 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.column-page .c-breadcrumb .link {
  color: var(--cl-blue);
  text-decoration: none;
}

.column-page .c-breadcrumb .link:hover {
  text-decoration: underline;
}

.column-page .c-breadcrumb .current {
  overflow: hidden;
  max-width: 20em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--cl-text);
}

/* ---------- セクション ---------- */
.column-page .column-section,
.column-page .category-section,
.column-page .recommend-section {
  padding: 48px 20px;
}

.column-page .column-section {
  background: #fff;
}

.column-page .recommend-section .column-content {
  margin-top: 0;
}

/* ページ見出し（英字ラベル＋見出し） */
.column-page .subpage-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  text-align: center;
}

.column-page .subpage-header p:first-child {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-blue);
}

.column-page .subpage-title {
  font-family: var(--cl-ff-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cl-text);
}

.column-page .subpage-header .desc {
  font-size: 1.4rem;
  color: var(--cl-sub);
}

/* セクション見出し */
.column-page .section-title {
  margin-bottom: 20px;
  font-family: var(--cl-ff-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--cl-text);
}

/* ---------- 記事カード ---------- */
.column-page .c-column-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.column-page .c-column-list .item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cl-border);
  border-radius: 20px;
}

.column-page .c-column-list .link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.column-page .c-column-list .link:hover {
  opacity: 0.8;
}

.column-page .c-column-list .image-wrapper {
  aspect-ratio: 357 / 200;
  background: var(--cl-placeholder);
}

.column-page .c-column-list .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.column-page .c-column-list .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 20px;
}

.column-page .c-column-list .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--cl-sub);
}

.column-page .c-column-list .article-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--cl-text);
}

/* ---------- カテゴリー切り替えタブ ---------- */
.column-page .c-category-nav {
  margin: -16px -20px 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.column-page .c-category-nav::-webkit-scrollbar {
  display: none;
}

.column-page .c-category-nav .list {
  list-style: none;
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 0 20px;
}

.column-page .c-category-nav .link {
  display: block;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--cl-border);
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--cl-text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.column-page .c-category-nav .link:hover {
  border-color: var(--cl-blue);
  color: var(--cl-blue);
}

.column-page .c-category-nav .link.is-current {
  background: var(--cl-blue);
  border-color: var(--cl-blue);
  font-weight: 700;
  color: #fff;
}

.column-page .c-category-heading {
  margin-bottom: 16px;
  font-family: var(--cl-ff-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.column-page .c-category-desc {
  margin: -8px 0 20px;
  font-size: 1.3rem;
  color: var(--cl-sub);
}

.column-page .c-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--cl-sub);
}

/* ---------- カテゴリー一覧 ---------- */
.column-page .c-category-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.column-page .c-category-list .link {
  display: block;
  text-decoration: none;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--cl-border);
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cl-text);
  transition: border-color 0.2s, color 0.2s;
}

.column-page .c-category-list .link:hover {
  border-color: var(--cl-blue);
  color: var(--cl-blue);
}

/* ---------- ページ送り ---------- */
.column-page .pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.column-page .pagination .page-numbers {
  color: var(--cl-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--cl-border);
  border-radius: 999px;
  font-size: 1.4rem;
}

.column-page .pagination .page-numbers.current {
  background: var(--cl-blue);
  border-color: var(--cl-blue);
  color: #fff;
}

/* ---------- 記事詳細 ---------- */
.column-page .article-detail {
  padding-bottom: 8px;
}

.column-page .article-header {
  padding: 32px 20px 0;
  background: #fff;
}

.column-page .article-header .article-title {
  font-family: var(--cl-ff-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cl-text);
}

.column-page .article-meta {
  margin-top: 16px;
}

.column-page .meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.column-page .article-meta .category {
  padding: 4px 12px;
  background: var(--cl-blue);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.column-page .article-meta .modified-date {
  font-size: 1.2rem;
  color: var(--cl-sub);
}

.column-page .eyecatch {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 16px;
}

.column-page .eyecatch img {
  width: 100%;
}

/* 本文 */
.column-page .article-body {
  padding: 32px 20px 56px;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1.9;
}

.column-page .article-body > * + * {
  margin-top: 20px;
}

.column-page .article-body h2 {
  margin-top: 48px;
  padding: 12px 16px;
  background: var(--cl-bg);
  border-left: 4px solid var(--cl-blue);
  border-radius: 0 12px 12px 0;
  font-family: var(--cl-ff-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}

.column-page .article-body h3 {
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cl-border);
  font-family: var(--cl-ff-heading);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
}

.column-page .article-body h4 {
  margin-top: 28px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}

.column-page .article-body a {
  color: var(--cl-blue);
  text-decoration: underline;
}

.column-page .article-body ul,
.column-page .article-body ol {
  padding: 16px 20px 16px 36px;
  background: var(--cl-bg);
  border-radius: 12px;
}

.column-page .article-body ul {
  list-style: disc;
}

.column-page .article-body ol {
  list-style: decimal;
}

.column-page .article-body li + li {
  margin-top: 6px;
}

.column-page .article-body li::marker {
  color: var(--cl-blue);
}

.column-page .article-body .wp-block-image img {
  border-radius: 12px;
}

.column-page .article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.column-page .article-body th,
.column-page .article-body td {
  padding: 10px 12px;
  border: 1px solid var(--cl-border);
  text-align: left;
}

.column-page .article-body th {
  background: var(--cl-bg);
  font-weight: 700;
}

/* 目次（本文の h2/h3 から自動生成） */
html:has(.c-toc) {
  scroll-behavior: smooth;
}

.column-page .article-body :is(h2, h3) {
  scroll-margin-top: 16px;
}

.column-page .article-body .c-toc {
  position: relative;
  margin-top: 32px;
  padding: 20px 20px 24px;
  background: #fff;
  border: 1px solid var(--cl-border);
  border-radius: 16px;
}

.column-page .article-body .c-toc__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cl-border);
  font-family: var(--cl-ff-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.column-page .article-body .c-toc ol {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  list-style: none;
  counter-reset: toc;
}

.column-page .article-body .c-toc__list > li {
  counter-increment: toc;
}

.column-page .article-body .c-toc__list > li + li {
  margin-top: 10px;
}

.column-page .article-body .c-toc__list > li > a {
  display: grid;
  grid-template-columns: 2em 1fr;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
}

.column-page .article-body .c-toc__list > li > a::before {
  color: var(--cl-blue);
  font-family: var(--cl-ff-heading);
  content: counter(toc, decimal-leading-zero);
}

.column-page .article-body .c-toc__sub {
  margin-top: 6px;
  padding-left: 2em;
}

.column-page .article-body .c-toc__sub li {
  position: relative;
  margin-top: 4px;
  padding-left: 14px;
  font-size: 1.3rem;
  line-height: 1.6;
}

.column-page .article-body .c-toc__sub li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--cl-sub);
  content: "";
}

.column-page .article-body .c-toc a {
  color: var(--cl-text);
  text-decoration: none;
}

.column-page .article-body .c-toc a:hover {
  color: var(--cl-blue);
  text-decoration: underline;
}

/* 項目が多いときは途中まで表示して「すべて見る」で開く */
.column-page .article-body .c-toc:has(.c-toc__more):not(.is-open) .c-toc__list {
  overflow: hidden;
  max-height: 220px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.column-page .article-body .c-toc__more {
  display: block;
  margin: 12px auto 0;
  padding: 8px 28px;
  background: #fff;
  border: 1px solid var(--cl-blue);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cl-blue);
  cursor: pointer;
}

.column-page .article-body .c-toc.is-open .c-toc__more {
  display: none;
}

/* 監修者 */
.column-page .article-supervisor {
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cl-sub);
}

.column-page .article-body .c-supervisor {
  margin-top: 56px;
  padding: 20px;
  background: var(--cl-bg);
  border: 1px solid var(--cl-border);
  border-radius: 16px;
}

.column-page .article-body .c-supervisor__label {
  display: inline-block;
  padding: 2px 12px;
  background: var(--cl-blue);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

.column-page .article-body .c-supervisor__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.column-page .article-body .c-supervisor__photo {
  flex-shrink: 0;
  overflow: hidden;
  width: 72px;
  height: 72px;
  background: var(--cl-placeholder);
  border-radius: 50%;
}

.column-page .article-body .c-supervisor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.column-page .article-body .c-supervisor__role {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--cl-sub);
}

.column-page .article-body .c-supervisor__name {
  margin-top: 2px;
  font-family: var(--cl-ff-heading);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
}

.column-page .article-body .c-supervisor__profile {
  margin-top: 14px;
  font-size: 1.3rem;
  line-height: 1.8;
}

/* 関連記事・カテゴリー（記事詳細の下） */
.column-page .related-articles {
  padding: 48px 20px 0;
}

.column-page .article-detail .category-section {
  padding-bottom: 56px;
}

/* ---------- 追従CTA（LPと同じボタン） ---------- */
.column-page .ms-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 50;
  width: 100%;
  max-width: 430px;
  padding: 0 20px calc(30px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  pointer-events: none;
}

.column-page .ms-cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-top: 31px;
  padding-left: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #53c023, #06b93f 86%);
  box-shadow: 0 5px 4.7px rgba(217, 96, 126, 0.3);
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  animation: cl-cta-breath 4s ease-in-out infinite;
}

.column-page .ms-cta__btn::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  pointer-events: none;
  content: "";
  animation: cl-cta-shine 4s ease-in-out infinite;
}

@keyframes cl-cta-breath {
  0%,
  30%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.02);
  }
}

@keyframes cl-cta-shine {
  0%,
  10% {
    background-position: 150% 0;
  }
  40%,
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .column-page .ms-cta__btn,
  .column-page .ms-cta__btn::before {
    animation: none;
  }
}

.column-page .ms-cta__text {
  position: relative;
  font-family: "Zen Kaku Gothic New", var(--cl-ff-base);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
}

.column-page .ms-cta__micro {
  position: absolute;
  top: -18px;
  left: 50%;
  padding: 4px 12px;
  border: 1px solid #f0cccc;
  border-radius: 999px;
  background: #fff;
  color: #bf5570;
  font-family: var(--cl-ff-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-42%);
}

.column-page .ms-cta__badge {
  position: absolute;
  top: -27px;
  left: -11px;
  width: 84px;
}

/* ----------------------------------------------------------------------
   PC・タブレット（768px以上）：スマホ枠をやめて画面幅いっぱいに表示
---------------------------------------------------------------------- */
@media (min-width: 768px) {
  .column-page {
    --cl-gutter: max(40px, calc((100% - 1080px) / 2));
    --cl-gutter-article: max(40px, calc((100% - 760px) / 2));
    background: var(--cl-bg);
  }

  .column-page::before {
    display: none;
  }

  .column-page .container {
    max-width: none;
  }

  .column-page .header {
    padding: 18px var(--cl-gutter);
    background: #fff;
    border-bottom: 1px solid var(--cl-border);
  }

  .column-page .header__logo-text {
    font-size: 1.8rem;
  }

  .column-page .hamburger-menu {
    left: auto;
    right: 0;
    transform: none;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  }

  .column-page .c-breadcrumb {
    padding: 16px var(--cl-gutter);
    font-size: 1.2rem;
  }

  .column-page .c-breadcrumb .current {
    max-width: 40em;
  }

  .column-page .column-section,
  .column-page .category-section,
  .column-page .recommend-section {
    padding: 72px var(--cl-gutter);
  }

  .column-page .subpage-header {
    margin-bottom: 48px;
  }

  .column-page .subpage-header p:first-child {
    font-size: 1.4rem;
  }

  .column-page .subpage-title {
    font-size: 3.6rem;
  }

  .column-page .section-title {
    margin-bottom: 32px;
    font-size: 2.6rem;
  }

  /* カテゴリー切り替え：横スクロールをやめて中央に折り返し表示 */
  .column-page .c-category-nav {
    margin: -8px 0 48px;
    overflow: visible;
  }

  .column-page .c-category-nav .list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: auto;
    padding: 0;
  }

  .column-page .c-category-nav .link {
    padding: 10px 24px;
    font-size: 1.4rem;
  }

  .column-page .c-category-heading {
    margin-bottom: 24px;
    font-size: 2.2rem;
  }

  .column-page .c-category-desc {
    margin: -12px 0 28px;
    font-size: 1.4rem;
  }

  /* 記事カード：2列 */
  .column-page .c-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .column-page .c-column-list .link {
    height: 100%;
  }

  .column-page .c-column-list .link:hover {
    opacity: 1;
  }

  .column-page .c-column-list .item {
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .column-page .c-column-list .item:hover {
    box-shadow: 0 8px 24px rgba(61, 43, 37, 0.08);
    transform: translateY(-2px);
  }

  .column-page .c-column-list .image-wrapper {
    overflow: hidden;
  }

  .column-page .c-column-list .image-wrapper img {
    transition: transform 0.3s;
  }

  .column-page .c-column-list .item:hover .image-wrapper img {
    transform: scale(1.04);
  }

  .column-page .c-column-list .body {
    padding: 18px 24px 24px;
  }

  .column-page .c-category-list {
    gap: 12px;
  }

  .column-page .c-category-list .link {
    padding: 10px 24px;
    font-size: 1.4rem;
  }

  .column-page .pagination .nav-links {
    margin-top: 48px;
  }

  /* 記事詳細：本文は読みやすい幅（760px）で中央に */
  .column-page .article-header {
    padding: 56px var(--cl-gutter-article) 0;
  }

  .column-page .article-header .article-title {
    font-size: 3.2rem;
  }

  .column-page .article-meta {
    margin-top: 20px;
  }

  .column-page .eyecatch {
    margin-top: 32px;
    border-radius: 20px;
  }

  .column-page .article-body {
    padding: 48px var(--cl-gutter-article) 80px;
    font-size: 1.6rem;
    line-height: 2;
  }

  .column-page .article-body > * + * {
    margin-top: 24px;
  }

  .column-page .article-body h2 {
    margin-top: 64px;
    padding: 14px 20px;
    font-size: 2.4rem;
  }

  .column-page .article-body h3 {
    margin-top: 48px;
    font-size: 2rem;
  }

  .column-page .article-body h4 {
    font-size: 1.8rem;
  }

  .column-page .article-body .c-toc {
    padding: 28px 32px 32px;
  }

  .column-page .article-supervisor {
    font-size: 1.3rem;
  }

  .column-page .article-body .c-supervisor {
    padding: 28px 32px;
  }

  .column-page .article-body .c-supervisor__photo {
    width: 88px;
    height: 88px;
  }

  .column-page .article-body .c-supervisor__profile {
    font-size: 1.4rem;
  }

  .column-page .article-body .c-toc__title {
    font-size: 1.8rem;
  }

  .column-page .article-body .c-toc__list > li > a {
    font-size: 1.5rem;
  }

  .column-page .article-body .c-toc__sub li {
    font-size: 1.4rem;
  }

  .column-page .related-articles {
    padding: 72px var(--cl-gutter) 0;
  }

  .column-page .article-detail .category-section {
    padding-bottom: 80px;
  }

  /* 追従CTA：本文にかぶらないよう右下に置く */
  .column-page .ms-cta {
    left: auto;
    right: 32px;
    max-width: 400px;
    padding: 0 0 calc(32px + env(safe-area-inset-bottom));
    transform: none;
  }

  /* フッター：リンクを横並び・中央寄せ */
  .column-page .ms-footer {
    padding-left: var(--cl-gutter);
    padding-right: var(--cl-gutter);
    font-size: 1.2rem;
  }

  .column-page .ms-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
  }
}

/* PC（1024px以上）：記事カード3列 */
@media (min-width: 1024px) {
  .column-page .c-column-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
  }
}
