@charset "UTF-8";
/* ==========================================================================
   コラム記事詳細ページ 専用スタイル
   --------------------------------------------------------------------------
   読み込み条件 : functions.php の tarutani_column_assets() により
                  「投稿 かつ columnカテゴリ」の詳細ページでのみ読み込まれる。
   影響範囲     : <section class="... p-column"> 配下のみ。
                  お知らせ詳細・コラム一覧・静的サイト側には一切影響しない。
   共有の /assets/css/style.css は変更していないため、
   このファイルを外せば完全に元の表示へ戻せる。
   ========================================================================== */

.p-column {
  /* --- カラー --- */
  --clm-main: #4dbab9;            /* テーマのメインカラー（ティール） */
  --clm-main-dark: #14403f;       /* 見出し文字用の濃いティール */
  --clm-main-pale: #f1f9f9;       /* 見出し背景の淡いティール */
  --clm-accent: #ff6600;          /* 日付などのアクセント（既存踏襲） */
  --clm-text: #2b2b2b;            /* 本文カラー（長文向けに黒より少し柔らかく） */
  --clm-muted: #6b7676;           /* 補足テキスト */
  --clm-border: #e3ebeb;

  /* --- 寸法 --- */
  --clm-measure: 820px;           /* 本文の最大幅（日本語の可読行長） */
  --clm-body-size: 1.0625rem;     /* 17px */

  padding-top: 72px;
}

/* --------------------------------------------------
   記事カラム：本文幅を読みやすい幅に絞る
-------------------------------------------------- */
.p-column .p-news__box {
  display: block;
}

.p-column .p-news__dateBox {
  max-width: var(--clm-measure);
  margin: 0 auto;
}

/* --------------------------------------------------
   投稿日
-------------------------------------------------- */
.p-column .p-news__date {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--clm-accent);
  margin: 0 0 18px;
}

/* --------------------------------------------------
   記事タイトル（テンプレート側の h2.p-news__title）
-------------------------------------------------- */
.p-column .p-news__title {
  font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #111c1c;
  margin: 0 0 44px;
  padding: 0 0 26px;
  position: relative;
}

.p-column .p-news__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: var(--clm-main);
}

/* --------------------------------------------------
   本文エリア
-------------------------------------------------- */
.p-column .p-news__content {
  margin: 0;
  color: var(--clm-text);
}

.p-column .p-news__content > *:first-child {
  margin-top: 0;
}

.p-column .p-news__content > *:last-child {
  margin-bottom: 0;
}

/* 段落 */
.p-column .p-news__content p {
  font-size: var(--clm-body-size);
  line-height: 2;
  letter-spacing: 0.04em;
  margin: 0 0 1.6em;
}

/* 強調（テーマカラーのマーカー）
   <strong> を多用している記事でも密集して見えないよう、
   マーカーの濃度は控えめ（0.22）にしている。 */
.p-column .p-news__content strong {
  font-weight: 700;
  color: #14322f;
  background: linear-gradient(transparent 64%, rgba(77, 186, 185, 0.22) 64%);
}

/* 見出しの中の <strong> にはマーカーを付けない
   （見出し自体がすでに装飾されているため二重になる） */
.p-column .p-news__content h1 strong,
.p-column .p-news__content h2 strong,
.p-column .p-news__content h3 strong,
.p-column .p-news__content h4 strong,
.p-column .p-news__content h5 strong,
.p-column .p-news__content h6 strong {
  background: none;
  color: inherit;
  font-weight: inherit;
}

/* リンク */
.p-column .p-news__content a {
  color: #12807f;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s ease 0s;
}

.p-column .p-news__content a:hover {
  color: var(--clm-main);
  text-decoration-color: transparent;
}

/* --------------------------------------------------
   見出し h2 ── 左ライン＋淡い背景
-------------------------------------------------- */
.p-column .p-news__content h2 {
  font-size: clamp(1.3125rem, 1.05rem + 0.85vw, 1.625rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--clm-main-dark);
  background: var(--clm-main-pale);
  border-left: 6px solid var(--clm-main);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 80px 0 32px;
}

/* 記事内に紛れ込んだ h1 も h2 と同じ見た目に揃える（3.5rem での破綻を防ぐ） */
.p-column .p-news__content h1 {
  font-size: clamp(1.3125rem, 1.05rem + 0.85vw, 1.625rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--clm-main-dark);
  background: var(--clm-main-pale);
  border-left: 6px solid var(--clm-main);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 80px 0 32px;
}

/* --------------------------------------------------
   見出し h3 ── 小さな四角マーク
-------------------------------------------------- */
.p-column .p-news__content h3 {
  position: relative;
  font-size: clamp(1.125rem, 1.02rem + 0.36vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #16302f;
  padding: 0 0 0 26px;
  margin: 56px 0 20px;
}

.p-column .p-news__content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--clm-main);
}

/* h2 の直後に h3 が来る場合は間隔を詰める */
.p-column .p-news__content h2 + h3,
.p-column .p-news__content h1 + h3 {
  margin-top: 32px;
}

/* --------------------------------------------------
   見出し h4
-------------------------------------------------- */
.p-column .p-news__content h4 {
  position: relative;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #16302f;
  padding: 0 0 0 18px;
  margin: 40px 0 14px;
}

.p-column .p-news__content h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 2px;
  background: var(--clm-main);
}

.p-column .p-news__content h3 + h4 {
  margin-top: 24px;
}

/* --------------------------------------------------
   リスト ── reset で消えたマーカーを復活
-------------------------------------------------- */
.p-column .p-news__content ul,
.p-column .p-news__content ol {
  list-style: none;
  margin: 0 0 2em;
  padding: 24px 28px;
  background: #fafcfc;
  border: 1px solid var(--clm-border);
  border-radius: 8px;
}

.p-column .p-news__content li {
  position: relative;
  font-size: var(--clm-body-size);
  line-height: 1.9;
  letter-spacing: 0.04em;
  padding: 0 0 0 28px;
  margin: 0 0 14px;
}

.p-column .p-news__content li:last-child {
  margin-bottom: 0;
}

/* ul：丸ポチ */
.p-column .p-news__content ul > li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clm-main);
}

/* ol：連番 */
.p-column .p-news__content ol {
  counter-reset: clm-ol;
}

.p-column .p-news__content ol > li {
  counter-increment: clm-ol;
  padding-left: 34px;
}

.p-column .p-news__content ol > li::before {
  content: counter(clm-ol);
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clm-main);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* 入れ子リスト */
.p-column .p-news__content li > ul,
.p-column .p-news__content li > ol {
  margin: 12px 0 0;
  padding: 0;
  background: none;
  border: none;
}

/* --------------------------------------------------
   画像・動画
-------------------------------------------------- */
.p-column .p-news__content figure,
.p-column .p-news__content .wp-block-image {
  margin: 48px 0;
}

.p-column .p-news__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.p-column .p-news__content figcaption,
.p-column .p-news__content .wp-element-caption {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--clm-muted);
  text-align: center;
  margin: 12px 0 0;
}

.p-column .p-news__content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 48px auto;
  border-radius: 10px;
}

/* 配置指定つき画像は幅指定を引き継ぐ */
.p-column .p-news__content .wp-block-image.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------
   引用・表・区切り線
-------------------------------------------------- */
.p-column .p-news__content blockquote {
  margin: 40px 0;
  padding: 24px 28px;
  background: #f7fafa;
  border-left: 4px solid #c5dedd;
  border-radius: 0 8px 8px 0;
  color: #4a5757;
}

.p-column .p-news__content blockquote p:last-child {
  margin-bottom: 0;
}

.p-column .p-news__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 1rem;
}

.p-column .p-news__content th,
.p-column .p-news__content td {
  border: 1px solid var(--clm-border);
  padding: 14px 16px;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
}

.p-column .p-news__content th {
  background: var(--clm-main-pale);
  color: var(--clm-main-dark);
  font-weight: 700;
  white-space: nowrap;
}

.p-column .p-news__content hr {
  border: 0;
  border-top: 1px solid var(--clm-border);
  margin: 56px 0;
}

/* --------------------------------------------------
   タブレット
-------------------------------------------------- */
@media screen and (max-width: 991px) {
  .p-column {
    padding-top: 56px;
  }

  .p-column .p-news__content h2,
  .p-column .p-news__content h1 {
    margin-top: 64px;
  }

  .p-column .p-news__content h3 {
    margin-top: 44px;
  }
}

/* --------------------------------------------------
   スマートフォン
-------------------------------------------------- */
@media screen and (max-width: 767px) {
  .p-column {
    --clm-body-size: 1rem;
    padding-top: 40px;
  }

  .p-column .p-news__date {
    margin-bottom: 12px;
  }

  .p-column .p-news__title {
    margin-bottom: 32px;
    padding-bottom: 20px;
    line-height: 1.45;
  }

  .p-column .p-news__title::after {
    width: 56px;
    height: 3px;
  }

  .p-column .p-news__content p {
    line-height: 1.9;
    margin-bottom: 1.5em;
  }

  .p-column .p-news__content h2,
  .p-column .p-news__content h1 {
    padding: 16px 16px;
    border-left-width: 5px;
    margin: 52px 0 24px;
  }

  .p-column .p-news__content h3 {
    padding-left: 22px;
    margin: 36px 0 16px;
  }

  .p-column .p-news__content h3::before {
    width: 11px;
    height: 11px;
  }

  .p-column .p-news__content h4 {
    margin: 28px 0 12px;
  }

  .p-column .p-news__content ul,
  .p-column .p-news__content ol {
    padding: 18px 18px;
  }

  .p-column .p-news__content li {
    margin-bottom: 12px;
    line-height: 1.85;
  }

  .p-column .p-news__content figure,
  .p-column .p-news__content .wp-block-image {
    margin: 32px 0;
  }

  .p-column .p-news__content video {
    margin: 32px auto;
  }

  .p-column .p-news__content blockquote {
    padding: 18px 20px;
  }

  .p-column .p-news__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .p-column .p-news__content hr {
    margin: 40px 0;
  }
}
