@charset "utf-8";
/* =========================================================
   しもたか皮フ科 コラムページ専用CSS
   既存の base.css / style.css を読み込んだ上で適用します。
   クラス名はすべて clm- で始め、既存スタイルとは干渉しません。
   ========================================================= */

/* ページ全体 */
.clm-page {
  background-color: #fbf6eb;
  color: #444;
  font-size: 1.5rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ---------- 簡易ヘッダー ---------- */
.clm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #fff;
  padding: 14px clamp(16px, 4vw, 40px);
}

.clm-header__logo img {
  height: 46px;
  width: auto;
  display: block;
}

.clm-header__cta {
  background-color: #1ab0bd;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 9px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.clm-header__cta:hover {
  opacity: 0.85;
}

/* ---------- ページタイトル帯 ---------- */
.clm-hero {
  background-color: #fdeef0;
  padding: 60px 20px 0;
  text-align: center;
}

.clm-hero__en {
  display: block;
  color: #e35b64;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: 6px;
}

.clm-hero__title {
  color: #513500;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0 0 14px;
}

.clm-hero__lede {
  max-width: 34em;
  margin: 0 auto;
  font-size: 1.4rem;
  color: #4f3718;
}

.clm-hero__wave {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 34px;
}

/* ---------- コンテンツ幅 ---------- */
.clm-body {
  background-color: #fffbf5;
  padding: 10px 0 90px;
}

.clm-inner {
  margin: 0 auto;
  width: clamp(300px, 92%, 1000px);
}

/* ---------- カテゴリ絞り込み ---------- */
.clm-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0 10px;
}

.clm-filter button {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  color: #4f3718;
  background-color: #fff;
  border: 2px solid #f0e5d6;
  border-radius: 999px;
  padding: 7px 22px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.clm-filter button:hover {
  border-color: #e899a3;
}

.clm-filter button.is-active {
  background-color: #513500;
  border-color: #513500;
  color: #fff;
}

/* ---------- カテゴリタグ ---------- */
.clm-cat {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  border-radius: 999px;
  padding: 2px 14px;
  line-height: 1.7;
}

.clm-cat--general { background-color: #1ab0bd; }
.clm-cat--biyou   { background-color: #e899a3; }
.clm-cat--kids    { background-color: #eda65c; }
.clm-cat--allergy { background-color: #7cb45c; }

/* ---------- 記事カード一覧 ---------- */
.clm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.clm-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #f0e5d6;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}

.clm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(81, 53, 0, 0.12);
}

.clm-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fbe3e6, #ddf1f3);
}

.clm-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clm-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(81, 53, 0, 0.4);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.clm-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 18px;
}

.clm-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: #513500;
  margin: 0;
}

.clm-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  color: #9c8563;
}

.clm-card__meta time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.clm-card.is-hidden {
  display: none;
}

/* NEWバッジ */
.clm-new {
  display: inline-block;
  background-color: #e35b64;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 1px 10px;
  margin-right: 8px;
  vertical-align: 2px;
}

/* 該当記事なし */
.clm-empty {
  text-align: center;
  color: #9c8563;
  padding: 60px 0;
  display: none;
}

/* ---------- 記事ページ ---------- */
.clm-article-hero {
  background-color: #fdeef0;
  padding: 60px 20px 34px;
}

.clm-article-hero__in {
  margin: 0 auto;
  width: clamp(300px, 92%, 720px);
}

.clm-article-hero__title {
  color: #513500;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 12px 0 14px;
}

.clm-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 1.25rem;
  color: #9c8563;
}

.clm-article-hero__meta time {
  font-variant-numeric: tabular-nums;
}

.clm-article {
  margin: 0 auto;
  width: clamp(300px, 92%, 720px);
  padding: 40px 0 80px;
}

.clm-article > * + * {
  margin-top: 1.6em;
}

.clm-article p {
  margin: 1em 0 0;
}

.clm-eyecatch {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, #fbe3e6, #ddf1f3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(81, 53, 0, 0.4);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.clm-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 目次 */
.clm-toc {
  background-color: #fbf6eb;
  border: 1px solid #f0e5d6;
  border-radius: 14px;
  padding: 22px 28px;
}

.clm-toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #513500;
  margin-bottom: 10px;
}

.clm-toc__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e899a3;
}

.clm-toc ol {
  margin: 0;
  padding-left: 1.6em;
  font-size: 1.35rem;
  list-style: decimal;
}

.clm-toc li + li {
  margin-top: 5px;
}

.clm-toc a {
  color: #1ab0bd;
  text-decoration: none;
}

.clm-toc a:hover {
  text-decoration: underline;
}

/* 記事内見出し */
.clm-article h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #513500;
  background-color: #e9f6f7;
  border-left: 6px solid #1ab0bd;
  border-radius: 6px;
  padding: 12px 20px;
  line-height: 1.6;
  margin-top: 2.4em;
}

.clm-article h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #513500;
  border-bottom: 2px dashed #e899a3;
  padding-bottom: 6px;
  margin-top: 2em;
}

/* ワンポイント枠 */
.clm-point {
  background-color: #fdeef0;
  border-radius: 14px;
  padding: 20px 26px;
  font-size: 1.4rem;
}

.clm-point__title {
  font-weight: 700;
  color: #e35b64;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* WordPress本文用の補正（base.cssのリセットを戻す） */
.clm-article ul {
  list-style: disc;
  padding-left: 1.6em;
  margin: 1em 0 0;
}

.clm-article ol {
  list-style: decimal;
  padding-left: 1.6em;
  margin: 1em 0 0;
}

.clm-article li + li {
  margin-top: 0.4em;
}

.clm-article strong {
  font-weight: 700;
  color: #513500;
}

.clm-article blockquote {
  background-color: #fdeef0;
  border-radius: 14px;
  padding: 18px 24px;
  margin: 1.4em 0 0;
}

.clm-article img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.clm-article figure {
  margin: 1.4em 0 0;
}

.clm-article figcaption {
  font-size: 1.2rem;
  color: #9c8563;
  text-align: center;
  margin-top: 6px;
}

.clm-article a {
  color: #1ab0bd;
}

.clm-article table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1.4em;
}

.clm-article th,
.clm-article td {
  border: 1px solid #f0e5d6;
  padding: 10px 14px;
  font-size: 1.35rem;
}

.clm-article th {
  background-color: #fbf6eb;
  color: #513500;
}

/* 監修ボックス */
.clm-doctor {
  display: flex;
  gap: 18px;
  align-items: center;
  background-color: #fbf6eb;
  border: 1px solid #f0e5d6;
  border-radius: 14px;
  padding: 20px 24px;
}

.clm-doctor__face {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #f8d4d9, #e899a3);
}

.clm-doctor__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clm-doctor__label {
  font-size: 1.1rem;
  color: #9c8563;
  letter-spacing: 0.1em;
}

.clm-doctor__name {
  font-weight: 700;
  color: #513500;
  font-size: 1.5rem;
}

.clm-doctor__text {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-top: 2px;
}

/* 一覧へ戻る */
.clm-back {
  text-align: center;
  margin-top: 50px;
}

.clm-back a {
  display: inline-block;
  color: #1ab0bd;
  border: 2px solid #1ab0bd;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 11px 36px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.clm-back a:hover {
  background-color: #1ab0bd;
  color: #fff;
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 900px) {
  .clm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .clm-grid {
    grid-template-columns: 1fr;
  }

  .clm-hero {
    padding-top: 44px;
  }

  .clm-hero__title {
    font-size: 2.6rem;
  }

  .clm-article-hero__title {
    font-size: 2.1rem;
  }

  .clm-doctor {
    flex-direction: column;
    text-align: center;
  }
}
