@charset "utf-8";
/* ==================================================
 コラム(一覧・カテゴリー別一覧・記事)
 読み込みは inc/column.php の dm_column_enqueue()
================================================== */
.cl-page {
  --cl-teal: #08726e;
  --cl-teal-dark: #0b4f4c;
  --cl-teal-mid: #3f8e86;
  --cl-teal-bg: #eef5f3;
  --cl-line: #dce7e4;
  --cl-orange: #ff710f;
  --cl-orange-bg: #fdf2e6;
  --cl-text: #3c3c3c;
  --cl-heading: #1d3533;
  --cl-muted: #8a9593;
  color: var(--cl-text);
  line-height: 1.8;
}
.cl-page *,
.cl-page *::before,
.cl-page *::after {
  box-sizing: border-box;
}
.cl-page img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ---------- 帯 ---------- */
.cl-band {
  background: var(--cl-teal-bg);
  border-bottom: 1px solid var(--cl-line);
}
.cl-band__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.cl-band__en {
  color: var(--cl-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.cl-band__text {
  color: var(--cl-teal-dark);
  font-size: 13px;
}

/* ---------- 枠 ----------
 事例紹介(.inner)と同じく、最大1080px・左右40px で中身を1000pxにする */
.cl-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 40px 20px;
}

/* ---------- パンくず ---------- */
.cl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--cl-text);
  margin-bottom: 20px;
}
.cl-breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 6px;
}
.cl-breadcrumb a {
  color: var(--cl-text);
  text-decoration: none;
}
.cl-breadcrumb a:hover {
  color: var(--cl-teal);
  text-decoration: underline;
}

/* ---------- カテゴリーから探す ---------- */
.cl-catnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--cl-line);
}
.cl-catnav__label {
  color: var(--cl-teal);
  font-size: 13px;
  font-weight: 700;
}
.cl-catnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cl-chip {
  display: inline-block;
  min-width: 72px;
  padding: 2px 14px;
  border: 1px solid var(--cl-teal-mid);
  border-radius: 3px;
  background: #fff;
  color: var(--cl-teal);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cl-chip:hover {
  background: var(--cl-teal-bg);
}
/* 選択中は塗りつぶし */
.cl-chip.is-current {
  background: var(--cl-teal-mid);
  color: #fff;
  font-weight: 700;
}

/* ---------- カテゴリーのラベル ---------- */
.cl-badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 3px;
  background: var(--cl-teal-bg);
  color: var(--cl-teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}
/* カテゴリーごとの色(スラッグで指定。カテゴリーを増やしたら追加する。未指定は上の緑) */
.cl-badge--gomiyashiki {
  background: #fdf0e3;
  color: #d8691b;
}
.cl-badge--kaitori {
  background: #eaf0f6;
  color: #3e6590;
}

/* ---------- 記事の見出し部分 ---------- */
.cl-head {
  margin-bottom: 24px;
}
.cl-head__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cl-head__title {
  color: var(--cl-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}
.cl-head__subtitle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cl-line);
  color: var(--cl-teal-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
.cl-head__dates {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  color: var(--cl-text);
  font-size: 12px;
}
.cl-head__dates time {
  margin-left: 4px;
}

/* ---------- アイキャッチ+リード文 ---------- */
.cl-intro {
  margin-bottom: 40px;
}
.cl-intro--has-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.cl-intro__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cl-intro__lead p + p {
  margin-top: 1em;
}

/* ---------- チェック付きリスト ---------- */
.cl-check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
}
.cl-check-list li + li {
  margin-top: 6px;
}
.cl-check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--cl-teal);
  border-bottom: 2px solid var(--cl-teal);
  transform: rotate(-45deg);
}

/* ---------- この記事はこんな方におすすめ ---------- */
.cl-recommend {
  margin-bottom: 40px;
  padding: 24px 28px;
  border-radius: 12px;
  background: var(--cl-orange-bg);
}
.cl-recommend__title {
  position: relative;
  margin-bottom: 12px;
  padding-left: 32px;
  color: var(--cl-heading);
  font-size: 17px;
  font-weight: 700;
}
.cl-recommend__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--cl-orange);
}
.cl-recommend__title::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 10px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- 目次(Table of Contents Plus) ----------
 TOC+ の CSS は設定で読み込まないようにしているので、ここで全部指定する。
 開閉ボタン(span.toc_toggle)と閉じた状態(.contracted)は TOC+ の JS が付ける。
 JS が閉じたときに display:table をインラインで付けて横幅を縮めるので、!important で打ち消す */
#toc_container {
  display: block !important;
  width: auto !important;
  margin-bottom: 48px;
  border: 1px solid #cfe0dc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
#toc_container .toc_title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--cl-teal-bg);
  color: var(--cl-teal);
  font-size: 16px;
  font-weight: 700;
}
#toc_container .toc_title::before {
  /* 三本線のアイコン */
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 12px;
  background: linear-gradient(var(--cl-teal) 0 2px, transparent 2px 5px, var(--cl-teal) 5px 7px, transparent 7px 10px, var(--cl-teal) 10px 12px);
}
#toc_container .toc_toggle {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
}
#toc_container .toc_toggle a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cl-teal);
  text-decoration: none;
}
/* ボタンの文字は TOC+ の設定の「開く/閉じる」(aria-label)をそのまま表示する */
#toc_container .toc_toggle a::before {
  content: attr(aria-label);
}
/* 見出しの帯全体をタップ・クリックできるようにする(開閉ボタンのリンクを帯いっぱいに広げる) */
#toc_container .toc_toggle a::after {
  content: "";
  position: absolute;
  inset: 0;
}
#toc_container .toc_toggle_indicator {
  position: relative;
  width: 10px;
  height: 10px;
}
#toc_container .toc_toggle_indicator::before,
#toc_container .toc_toggle_indicator::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 2px;
  background: currentColor;
}
#toc_container .toc_toggle_indicator::after {
  transform: rotate(90deg);
  opacity: 0;
}
#toc_container.contracted .toc_toggle_indicator::after {
  opacity: 1;
}
#toc_container .toc_list {
  padding: 16px 24px 20px;
  counter-reset: cl-toc;
  font-size: 14px;
}
#toc_container .toc_list li {
  line-height: 1.6;
}
#toc_container .toc_list > li {
  counter-increment: cl-toc;
}
#toc_container .toc_list > li + li {
  margin-top: 10px;
}
#toc_container .toc_list a {
  display: inline-flex;
  color: var(--cl-text);
  text-decoration: none;
}
#toc_container .toc_list a:hover {
  color: var(--cl-teal);
  text-decoration: underline;
}
#toc_container .toc_list > li > a::before {
  content: counter(cl-toc, decimal-leading-zero);
  flex-shrink: 0;
  width: 2em;
  color: var(--cl-teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6rem;
}
/* h3 は1段下げて、番号の代わりに短い線 */
#toc_container .toc_list ul {
  margin-top: 6px;
  padding-left: 2em;
}
#toc_container .toc_list ul li + li {
  margin-top: 4px;
}
#toc_container .toc_list ul a {
  font-size: 13px;
}
#toc_container .toc_list ul a::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 1px;
  margin: 0.8em 10px 0 0;
  background: var(--cl-muted);
}

/* ---------- セクション ---------- */
.cl-section {
  margin-bottom: 56px;
}
/* セクションの見出し(.cl-h2)と、本文エディタ内の h2 は同じ見た目。
 左の線は border ではなく box-shadow(inset)で引く。本文内の h2 は上の余白を透明な border-top で
 取るため、border-left だと上の余白の部分にも線の端が斜めにはみ出す */
.cl-h2,
.cl-body h2 {
  margin-bottom: 20px;
  padding: 10px 16px 10px 20px;
  background: var(--cl-teal-bg);
  box-shadow: inset 4px 0 0 var(--cl-teal-dark);
  color: var(--cl-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

/* 写真+本文(写真は左に回り込み、h3 から下は写真の下に回す) */
.cl-body::after {
  content: "";
  display: block;
  clear: both;
}
.cl-body__photo,
.cl-body .alignleft {
  float: left;
  width: 42%;
  margin: 0 24px 16px 0;
}
.cl-body .alignright {
  float: right;
  width: 42%;
  margin: 0 0 16px 24px;
}
.cl-body .aligncenter {
  display: block;
  margin: 0 auto 16px;
}
/* 画像そのもの(img.alignleft)は上の 42% のまま、キャプション付きの枠の中の画像だけ枠いっぱいにする */
.cl-body__photo img,
.cl-body .wp-caption img {
  width: 100%;
}
.cl-body .wp-caption {
  max-width: 100%;
}
.cl-body .wp-caption-text {
  margin-top: 4px;
  color: var(--cl-muted);
  font-size: 12px;
}
.cl-body p {
  margin-bottom: 1em;
}
/* h3・h4 は clear で写真の下に回すが、clear した要素の margin-top は回り込みの解除量に
 吸収されて効かない(直前が写真だと間隔が写真の margin-bottom 16px だけになる)。
 そのため上の余白は padding-top で取る。直前が段落でも写真でも間隔がそろう */
.cl-body h3 {
  clear: both;
  margin: 0 0 16px;
  padding-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cl-line);
  color: var(--cl-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.cl-body h4 {
  clear: both;
  margin: 0 0 12px;
  padding-top: 28px;
  color: var(--cl-teal-dark);
  font-size: 16px;
  font-weight: 700;
}
/* 本文内の h2 も写真の回り込みを解除する。背景色があるので padding-top では余白にならない
 (上に色の帯が伸びる)ため、透明な border-top で余白を取り、背景は padding の内側だけに塗る */
.cl-body h2 {
  clear: both;
  margin-top: 0;
  border-top: 56px solid transparent;
  background-clip: padding-box;
}
/* 本文の先頭の見出しはセクションの h2 の直下なので上の余白を取らない。
 本文内の h2 の直後の h3 も同じ */
.cl-body > h2:first-child {
  border-top-width: 0;
}
.cl-body > h3:first-child,
.cl-body > h4:first-child,
.cl-body h2 + h3,
.cl-body h2 + h4 {
  padding-top: 0;
}
.cl-body a {
  color: var(--cl-teal);
  text-decoration: underline;
}
.cl-body strong {
  font-weight: 700;
}

/* 箇条書き */
.cl-body ul,
.cl-body ol {
  display: flow-root; /* 回り込んだ写真の横でも行頭の記号が写真の下に潜らないように */
  margin: 0 0 1.2em;
  padding: 0;
}
.cl-body ul li,
.cl-body ol li {
  position: relative;
  padding-left: 1.5em;
}
.cl-body li + li {
  margin-top: 4px;
}
.cl-body ul li::before {
  content: "";
  position: absolute;
  left: 0.4em;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cl-teal);
}
.cl-body ol {
  counter-reset: cl-ol;
}
.cl-body ol li {
  counter-increment: cl-ol;
}
.cl-body ol li::before {
  content: counter(cl-ol) ".";
  position: absolute;
  left: 0;
  color: var(--cl-teal);
  font-weight: 700;
}

/* 表 */
.cl-body table {
  clear: both;
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.cl-body th,
.cl-body td {
  padding: 12px 16px;
  border: 1px solid var(--cl-line);
  text-align: left;
  vertical-align: top;
}
/* 見出し行: thead があればその行、なければ(TinyMCE の既定)最初の行の th */
.cl-body thead th,
.cl-body table > tbody:first-child > tr:first-child > th {
  background: var(--cl-teal-mid);
  color: #fff;
  font-weight: 700;
}
.cl-body tbody th {
  width: 28%;
  background: var(--cl-teal-bg);
  color: var(--cl-teal-dark);
  font-weight: 500;
}

/* ポイント枠 */
.cl-point {
  clear: both;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--cl-teal-bg);
}
.cl-point__title {
  margin-bottom: 10px;
  color: var(--cl-teal);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- 記事の途中の CTA(サイト共通の見積もり枠) ----------
 記事幅がサイト共通の枠と同じ1000pxなので、外側の余白だけ打ち消してそのまま置く */
.cl-cta {
  margin: 0 0 56px;
}
/* スマホでは design.css が固定ヘッダー分の margin-top:-60px を付けているので打ち消す */
.cl-cta .estimate-guide {
  margin: 0;
  padding: 0;
}
.cl-cta .estimate-grid.inner {
  width: auto;
  max-width: none;
  padding: 0;
}

/* ---------- よくある質問 ---------- */
.cl-faq__item {
  border: 1px solid var(--cl-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cl-faq__item + .cl-faq__item {
  margin-top: 12px;
}
.cl-faq__q,
.cl-faq__a {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
}
.cl-faq__q {
  position: relative;
  padding-right: 48px;
  cursor: pointer;
  list-style: none;
  color: var(--cl-heading);
  font-weight: 700;
}
.cl-faq__q::-webkit-details-marker {
  display: none;
}
.cl-faq__q::before,
.cl-faq__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--cl-muted);
  transition: transform 0.2s;
}
.cl-faq__q::after {
  transform: rotate(90deg);
}
.cl-faq__item[open] .cl-faq__q::after {
  transform: rotate(0deg);
}
.cl-faq__a {
  padding-top: 0;
  font-size: 15px;
}
.cl-faq__mark {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.cl-faq__q .cl-faq__mark {
  color: var(--cl-teal);
}
.cl-faq__a .cl-faq__mark {
  color: var(--cl-orange);
}

/* ---------- カード(一覧・関連記事) ---------- */
/* 一覧の見出し。見た目はサイト共通の .page-guide .h1_ttl。.page-guide の下余白だけ打ち消す */
.cl-archive-head {
  padding-bottom: 0;
}
.cl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 18px;
  margin-bottom: 40px;
}
.cl-card {
  border: 1px solid #e3e6e5;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.cl-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.cl-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.cl-card__img {
  aspect-ratio: 16 / 10;
  background: #d9d9d9;
  overflow: hidden;
}
.cl-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cl-card__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.cl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 10px;
}
.cl-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--cl-text);
  font-size: 11px;
}
.cl-card__meta time {
  margin-left: auto;
}
.cl-card__title {
  color: var(--cl-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.cl-card__excerpt {
  margin-top: 6px;
  color: #6b7472;
  font-size: 12px;
  line-height: 1.6;
}
.cl-card__more {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-end;
  color: var(--cl-teal);
  font-size: 11px;
}
.cl-card__more::after {
  content: "→";
  margin-left: 6px;
}
.cl-cards--related .cl-card__title {
  font-size: 14px;
}
.cl-empty {
  margin-bottom: 40px;
}

/* ---------- 関連記事 ---------- */
.cl-related {
  margin-bottom: 40px;
}
.cl-related__title {
  margin-bottom: 16px;
  color: var(--cl-heading);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- 著者 ---------- */
.cl-author {
  max-width: 820px;
  margin: 0 auto 40px;
  border: 1px solid #cfe0dc;
  border-radius: 12px;
  overflow: hidden;
}
.cl-author__heading {
  padding: 10px 16px;
  background: var(--cl-teal-bg);
  color: var(--cl-teal);
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.05em;
}
.cl-author__body {
  padding: 24px 48px 28px;
}
.cl-author__body--has-photo {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}
.cl-author__photo img {
  width: 100%;
  border-radius: 8px;
}
.cl-author__company {
  font-size: 12px;
}
.cl-author__name {
  margin-bottom: 8px;
  color: var(--cl-heading);
  font-size: 20px;
  font-weight: 700;
}
.cl-author__position {
  margin-right: 10px;
  font-size: 12px;
  font-weight: 400;
}
.cl-author__bio {
  font-size: 14px;
  line-height: 1.8;
}
.cl-author__bio p + p {
  margin-top: 0.3em;
}

/* ---------- 一覧へ戻る ----------
 見た目は style.css の .block_btn .btn.orange。文字サイズだけ、事例紹介一覧の
 「この事例を見る」(design.css の .case-guide ... .block_btn li .btn)に合わせる */
.cl-back {
  margin-bottom: 20px;
}
.cl-back li .btn {
  font-size: 20px;
}

/* ---------- スマートフォン ---------- */
@media only screen and (max-width: 767px) {
  .cl-band__inner {
    display: block;
    padding: 12px 16px;
  }
  .cl-band__en,
  .cl-band__text {
    font-size: 12px;
  }
  .cl-wrap {
    width: 92%; /* .inner と同じ */
    padding: 16px 0 12px;
  }
  .cl-catnav {
    margin-bottom: 24px;
  }
  .cl-head__title {
    font-size: 22px;
  }
  .cl-head__subtitle {
    font-size: 16px;
  }
  .cl-intro--has-photo {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cl-intro,
  .cl-recommend {
    margin-bottom: 32px;
  }
  .cl-recommend {
    padding: 18px 18px;
  }
  .cl-section,
  .cl-cta {
    margin-bottom: 40px;
  }
  .cl-h2,
  .cl-body h2 {
    font-size: 18px;
  }
  .cl-body h2 {
    border-top-width: 40px;
  }
  .cl-body > h2:first-child {
    border-top-width: 0;
  }
  .cl-body__photo,
  .cl-body .alignleft,
  .cl-body .alignright {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
  .cl-body th,
  .cl-body td {
    padding: 10px;
  }
  .cl-cards,
  .cl-cards--related {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cl-author__body,
  .cl-author__body--has-photo {
    display: block;
    padding: 20px;
  }
  /* スマホは1カラム(写真を上に中央寄せ、その下に名前と経歴) */
  .cl-author__photo {
    width: 160px;
    margin: 0 auto 16px;
  }
  /* 「この事例を見る」と同じ文字サイズ・高さ。横幅は単独のボタンなので style.css 既定の 90% */
  .cl-back li .btn {
    font-size: 3.4vw;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .cl-wrap {
    width: 94%; /* .inner と同じ */
    padding-left: 0;
    padding-right: 0;
  }
  .cl-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cl-cards--related {
    grid-template-columns: repeat(3, 1fr);
  }
  .cl-back li .btn {
    font-size: 16px;
  }
}
