@charset "UTF-8";
/* ============================================================
   記事（column）のレイアウト
   ------------------------------------------------------------
   対象：記事トップ / カテゴリ / タグ / 検索 / 記事詳細の追加分
   前提：html { font-size: 62.5% } のため 1rem = 10px（layout.css の規約）
         SPブレークポイントは 767px（layout.css と統一）
   配色：カテゴリごとの色分けはしない。カテゴリ名・タグ・タイルはすべて
         共通のチップ色（--a-chip-bg / --a-chip-text）で描き、
         アクセントはブランドオレンジ（--primary-color）1色だけに絞る
============================================================ */

.p-article {
  --a-text: #333;
  --a-text-sub: #777;
  --a-line: #e5e2dd;
  --a-bg-soft: #faf8f5;
  --a-radius: 0.6rem;
  --a-chip-bg: #f4f1ec;
  --a-chip-text: #4a4a4a;
}

/* ------------------------------------------------------------
   セクション
------------------------------------------------------------ */
.a-sec {
  padding: 6rem 0;
}

.a-sec--find {
  background: var(--a-bg-soft);
  padding: 4rem 0;
}

.a-sec--narrow {
  padding: 3rem 0 0;
}

.a-sec--group {
  border-top: 1px solid var(--a-line);
}

.a-sec__ttl {
  font-family: var(--serif-family);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 2.4rem;
  text-align: center;
}

.a-group__head {
  margin-bottom: 3.2rem;
  text-align: center;
}

.a-group__head .a-sec__ttl {
  margin-bottom: 0.8rem;
}

.a-group__lead {
  color: var(--a-text-sub);
  font-size: 1.4rem;
  line-height: 1.7;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .a-sec {
    padding: 4rem 0;
  }

  .a-sec__ttl {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

/* ------------------------------------------------------------
   検索フォーム
------------------------------------------------------------ */
.a-search {
  margin: 0 auto;
  max-width: 62rem;
}

.a-search__label {
  display: block;
  font-family: var(--serif-family);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.a-search__row {
  display: flex;
  gap: 0.8rem;
}

.a-search__input {
  appearance: none;
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  flex: 1 1 auto;
  font-size: 1.5rem;
  min-width: 0;
  padding: 1.2rem 1.4rem;
}

.a-search__input:focus {
  border-color: var(--primary-color);
  outline: 2px solid rgba(244, 132, 20, 0.25);
  outline-offset: 1px;
}

.a-search__btn {
  background: var(--primary-color);
  border: 0;
  border-radius: var(--a-radius);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 1.5rem;
  padding: 1.2rem 2.4rem;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .a-search__btn:hover {
    opacity: 0.85;
  }
}

.a-find__tags {
  margin: 2.8rem auto 0;
  max-width: 76rem;
  text-align: center;
}

.a-find__tags-ttl {
  color: var(--a-text-sub);
  font-size: 1.3rem;
  margin: 0 0 1.2rem;
}

/* ------------------------------------------------------------
   タグチップ
------------------------------------------------------------ */
.a-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-tags__link {
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: 100px;
  color: var(--a-text-sub);
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
  .a-tags__link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
}

.a-tags__link.is-current {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* ------------------------------------------------------------
   カテゴリナビ（タイル）
------------------------------------------------------------ */
.a-catnav__list {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-catnav__link {
  align-items: center;
  background: var(--a-chip-bg);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  box-sizing: border-box;
  color: var(--a-text);
  display: flex;
  font-size: 1.5rem;
  font-weight: 600;
  gap: 0.8rem;
  justify-content: space-between;
  line-height: 1.4;
  min-height: 6.4rem;
  padding: 1.4rem 1.8rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .a-catnav__link:hover {
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
    transform: translateY(-0.2rem);
  }
}

.a-catnav__link.is-current {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.a-catnav__count {
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: 100px;
  color: var(--a-text-sub);
  flex: 0 0 auto;
  font-size: 1.2rem;
  padding: 0.3rem 0.9rem;
}

.a-catnav--compact .a-catnav__list {
  grid-template-columns: repeat(4, 1fr);
}

.a-catnav--compact .a-catnav__link {
  font-size: 1.3rem;
  min-height: 5rem;
  padding: 1rem 1.4rem;
}

@media screen and (max-width: 767px) {
  .a-catnav__list,
  .a-catnav--compact .a-catnav__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .a-catnav__link {
    font-size: 1.3rem;
    min-height: 5.6rem;
    padding: 1.2rem 1.4rem;
  }
}

/* ------------------------------------------------------------
   グリッド
------------------------------------------------------------ */
.a-grid {
  display: grid;
  gap: 3.2rem 2.4rem;
}

.a-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.a-grid--4 {
  gap: 2.4rem 2rem;
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 767px) {
  .a-grid--3,
  .a-grid--4 {
    gap: 2.4rem 1.6rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .a-grid--large {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   記事カード
------------------------------------------------------------ */
.a-card__link {
  color: var(--a-text);
  display: block;
  text-decoration: none;
}

.a-card__thumb {
  background: var(--a-chip-bg);
  border-radius: var(--a-radius);
  overflow: hidden;
  position: relative;
}

.a-card__thumb img {
  aspect-ratio: 1200 / 630;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

@media (hover: hover) {
  .a-card__link:hover .a-card__thumb img {
    transform: scale(1.04);
  }

  .a-card__link:hover .a-card__ttl {
    color: var(--primary-color);
  }
}

.a-card__body {
  padding: 1.4rem 0 0;
}

.a-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 0.8rem;
}

.a-card__cat {
  background: var(--a-chip-bg);
  border-radius: 0.3rem;
  color: var(--a-chip-text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem 0.9rem;
}

.a-card__date {
  color: var(--a-text-sub);
  font-size: 1.2rem;
}

.a-card__ttl {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: 1.6rem;
  font-weight: 600;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  transition: color 0.3s ease;
}

.a-card__excerpt {
  -webkit-box-orient: vertical;
  color: var(--a-text-sub);
  display: -webkit-box;
  font-size: 1.3rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.7;
  margin: 0.8rem 0 0;
  overflow: hidden;
}

/* 注目の記事（大カード） */
.a-card--large .a-card__ttl {
  font-size: 1.8rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* 4列（カテゴリブロック内）は情報量を絞る */
.a-grid--4 .a-card__ttl {
  font-size: 1.4rem;
}

@media screen and (max-width: 767px) {
  .a-card__ttl {
    font-size: 1.4rem;
  }

  .a-card--large .a-card__ttl {
    font-size: 1.6rem;
  }

  .a-card__excerpt {
    font-size: 1.2rem;
  }
}

/* ------------------------------------------------------------
   カテゴリブロック（記事トップのグループ内）
------------------------------------------------------------ */
.a-catblock {
  border-top: 1px solid var(--a-line);
  padding: 3.2rem 0 0;
}

.a-catblock + .a-catblock {
  margin-top: 3.2rem;
}

.a-catblock__head {
  align-items: baseline;
  display: flex;
  gap: 1.6rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.a-catblock__ttl {
  align-items: baseline;
  display: flex;
  font-family: var(--serif-family);
  font-size: 1.8rem;
  font-weight: 600;
  gap: 1rem;
  margin: 0;
}

.a-catblock__ttl a {
  border-bottom: 2px solid var(--primary-color);
  color: var(--a-text);
  padding-bottom: 0.3rem;
  text-decoration: none;
}

.a-catblock__count {
  color: var(--a-text-sub);
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 400;
}

.a-catblock__more {
  color: var(--primary-color);
  flex: 0 0 auto;
  font-size: 1.3rem;
  text-decoration: none;
}

.a-catblock__more::after {
  content: " →";
}

@media (hover: hover) {
  .a-catblock__more:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 767px) {
  .a-catblock__ttl {
    font-size: 1.6rem;
  }

  .a-catblock__head {
    margin-bottom: 1.6rem;
  }
}

/* ------------------------------------------------------------
   アーカイブ見出し（カテゴリ / タグ / 検索）
------------------------------------------------------------ */
.a-archive__head {
  background: var(--a-bg-soft);
  padding: 5rem 0;
  text-align: center;
}

.a-archive__eyebrow {
  color: var(--a-text-sub);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.a-archive__ttl {
  font-family: var(--serif-family);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0;
}

.a-archive__count {
  color: var(--a-text-sub);
  font-size: 1.3rem;
  margin: 1.2rem 0 0;
}

.a-archive__desc {
  line-height: 1.9;
  margin: 2rem auto 0;
  max-width: 68rem;
  text-align: left;
}

@media screen and (max-width: 767px) {
  .a-archive__head {
    padding: 3.2rem 0;
  }

  .a-archive__ttl {
    font-size: 2.2rem;
  }

  .a-archive__desc {
    font-size: 1.4rem;
    margin-top: 1.6rem;
  }
}

/* ------------------------------------------------------------
   ページャ（既存 .s-column__pages の見た目を踏襲）
------------------------------------------------------------ */
.a-pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4rem 0 0;
}

.a-pager a,
.a-pager span {
  color: var(--primary-color);
  font-size: 1.4rem;
  height: 3.5rem;
  line-height: 1.8;
  margin: 0.65rem;
  padding: 0.4rem;
  text-align: center;
  text-decoration: none;
  width: 3.5rem;
}

.a-pager a {
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .a-pager a:hover {
    opacity: 0.8;
  }
}

.a-pager .current {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  color: #fff;
}

/* ------------------------------------------------------------
   0件表示
------------------------------------------------------------ */
.a-empty {
  color: var(--a-text-sub);
  line-height: 1.9;
  padding: 4rem 0;
  text-align: center;
}

/* ------------------------------------------------------------
   記事詳細の追加分
------------------------------------------------------------ */
.a-detail__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0 0 1.6rem;
}

.a-detail__meta .a-card__cat {
  text-decoration: none;
}

.a-detail__date {
  color: var(--a-text-sub);
  font-size: 1.2rem;
}

.a-detail__tags {
  border-top: 1px solid var(--a-line);
  margin-top: 4rem;
  padding-top: 2.4rem;
}

.a-detail__tags .a-tags,
.a-detail__tags .a-find__tags-ttl {
  text-align: left;
}

.a-detail__tags .a-tags {
  justify-content: flex-start;
}

/* 監修者：入っている記事にだけ出す（空欄で権威性を装わない） */
.a-detail__supervisor {
  background: var(--a-bg-soft);
  border-left: 3px solid var(--primary-color);
  margin-top: 3.2rem;
  padding: 1.8rem 2rem;
}

.a-detail__supervisor-label {
  color: var(--a-text-sub);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}

.a-detail__supervisor-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* ------------------------------------------------------------
   本文内のブロックパターン
   （inc/blocks.php で登録したパターンの見た目。編集画面側は
     assets/css/editor-blocks.css に同等のものを置いている）
------------------------------------------------------------ */

/* 注意ボックス */
.column-detail__content .a-notice {
  background: #fff7ef;
  border: 1px solid #f2c795;
  border-radius: 0.6rem;
  margin: 3rem 0;
  padding: 2rem 2.2rem;
}

.column-detail__content .a-notice__ttl {
  color: #c86a12;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.column-detail__content .a-notice__ttl::before {
  content: "！ ";
}

/* チェックリスト */
.column-detail__content .a-checklist {
  background: var(--a-bg-soft);
  border-radius: 0.6rem;
  margin: 3rem 0;
  padding: 2rem 2.2rem;
}

.column-detail__content .a-checklist__ttl {
  font-weight: 700;
  margin: 0 0 1rem;
}

.column-detail__content .a-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-detail__content .a-checklist li {
  padding-left: 2.4rem;
  position: relative;
}

.column-detail__content .a-checklist li + li {
  margin-top: 0.8rem;
}

.column-detail__content .a-checklist li::before {
  color: var(--primary-color);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

/* Q&A */
.column-detail__content .a-qa {
  border-top: 1px solid var(--a-line);
  margin: 4rem 0 0;
  padding-top: 2.4rem;
}

.column-detail__content .a-qa__q {
  font-weight: 700;
  margin-top: 2.4rem;
  padding-left: 3rem;
  position: relative;
}

.column-detail__content .a-qa__q::before {
  color: var(--primary-color);
  content: "Q.";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.column-detail__content .a-qa__a {
  margin-top: 0.8rem;
  padding-left: 3rem;
  position: relative;
}

.column-detail__content .a-qa__a::before {
  color: var(--a-text-sub);
  content: "A.";
  font-weight: 700;
  left: 0;
  position: absolute;
}

/* 専門家相談の注記（YMYLカテゴリで必須） */
.column-detail__content .a-expert {
  background: #f4f7f7;
  border-left: 3px solid #3f7a72;
  font-size: 1.4rem;
  margin: 3rem 0;
  padding: 1.8rem 2rem;
}

.column-detail__content .a-expert p {
  margin-top: 0;
}

.column-detail__content .a-expert__src {
  color: var(--a-text-sub);
  font-size: 1.3rem;
  margin-top: 1rem !important;
}

/* 施工写真（作業前・作業後） */
.column-detail__content .a-beforeafter {
  background: var(--a-bg-soft);
  border-radius: 0.6rem;
  margin: 3.6rem 0;
  padding: 2rem;
}

.column-detail__content .a-beforeafter__ttl {
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.column-detail__content .a-beforeafter .wp-block-columns {
  display: flex;
  gap: 1.6rem;
}

.column-detail__content .a-beforeafter .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.column-detail__content .a-beforeafter figure {
  margin: 0;
}

.column-detail__content .a-beforeafter img {
  border-radius: 0.4rem;
  display: block;
  min-width: 0;
  width: 100%;
}

.column-detail__content .a-beforeafter figcaption {
  color: var(--a-text-sub);
  font-size: 1.3rem;
  margin-top: 0.6rem;
  text-align: center;
}

.column-detail__content .a-beforeafter__note {
  color: var(--a-text-sub);
  font-size: 1.3rem;
}

/* 自社データの引用 */
.column-detail__content .a-datafact {
  border: 1px solid var(--primary-color);
  border-radius: 0.6rem;
  margin: 3rem 0;
  padding: 2rem 2.2rem;
}

.column-detail__content .a-datafact__label {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.8rem;
}

/* 記事末の案内 */
.column-detail__content .a-inarticle-cta {
  background: var(--primary-color-light, #fef3e7);
  border-radius: 0.6rem;
  margin: 4rem 0 0;
  padding: 2.4rem;
  text-align: center;
}

.column-detail__content .a-inarticle-cta p {
  margin-top: 0;
  text-align: left;
}

.column-detail__content .a-inarticle-cta .wp-block-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.column-detail__content .a-inarticle-cta .wp-block-button__link {
  background: var(--primary-color);
  border-radius: 0.6rem;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  padding: 1.2rem 3.2rem;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .column-detail__content .a-beforeafter .wp-block-columns {
    gap: 1rem;
  }
}

/* ============================================================
   記事詳細：2カラム
   ------------------------------------------------------------
   .inner は 980px。本文640 + 余白40 + サイド300 で割り付ける。
   ヘッダーは position:fixed（高さ約142px）なので、追従要素の top と
   アンカーリンクの scroll-margin をその分ずらす。
============================================================ */
.p-article-detail {
  --a-header-h: 15rem;
}

.a-detail {
  padding: 3rem 0 0;
}

.a-detail__grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1fr) 30rem;
}

.a-detail__main {
  min-width: 0;
}

/* 本文中のH2アンカーが固定ヘッダーに隠れないように */
.p-article-detail .column-detail__content h2[id] {
  scroll-margin-top: var(--a-header-h);
}

.a-detail__head {
  margin-bottom: 2.4rem;
}

.p-article-detail .column-detail__page-title {
  font-size: 2.8rem;
  line-height: 1.5;
  margin: 0 0 2rem;
}

/* アイキャッチ：本文の主役ではないので高さを抑える */
.a-detail__eyecatch {
  border-radius: var(--a-radius);
  margin: 0;
  overflow: hidden;
}

.a-detail__eyecatch img {
  aspect-ratio: 1200 / 630;
  display: block;
  height: auto;
  min-width: 0;
  object-fit: cover;
  width: 100%;
}

.a-detail__toc-sp {
  display: none;
}

/* ------------------------------------------------------------
   目次
------------------------------------------------------------ */
.a-toc__ttl {
  border-bottom: 1px solid var(--a-line);
  font-family: var(--serif-family);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
  padding-bottom: 0.8rem;
}

.a-toc__list {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-toc__item + .a-toc__item {
  margin-top: 0.9rem;
}

.a-toc__item a {
  color: var(--a-text);
  display: block;
  font-size: 1.3rem;
  line-height: 1.6;
  padding-left: 2.2rem;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.a-toc__item a::before {
  color: var(--primary-color);
  content: counter(toc) ".";
  counter-increment: toc;
  font-size: 1.2rem;
  font-weight: 700;
  left: 0;
  position: absolute;
}

@media (hover: hover) {
  .a-toc__item a:hover {
    color: var(--primary-color);
  }
}

/* 読んでいる見出しを強調（JSで .is-active を付ける） */
.a-toc__item a.is-active {
  color: var(--primary-color);
  font-weight: 700;
}

/* ------------------------------------------------------------
   ボタン（記事内で共通）
------------------------------------------------------------ */
.a-btn {
  align-items: center;
  border-radius: var(--a-radius);
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4;
  padding: 1.3rem 1.6rem;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .a-btn:hover {
    opacity: 0.85;
  }
}

.a-btn--primary {
  background: var(--primary-color);
  color: #fff;
}

.a-btn--line {
  background: var(--line-color, #059e45);
  color: #fff;
}

.a-btn--tel {
  background: #fff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.a-btn__num {
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.a-btn__sub {
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.a-btn--lg {
  font-size: 1.6rem;
  padding: 1.6rem 2rem;
}

/* ------------------------------------------------------------
   サイドバー
------------------------------------------------------------ */
.a-side {
  min-width: 0;
}

.a-side__sticky {
  position: sticky;
  top: calc(var(--a-header-h) + 1.5rem);
}

.a-side__box {
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  margin-bottom: 1.6rem;
  padding: 1.8rem;
}

/* 目次が長い記事でも画面内に収める */
.a-side__box--toc {
  max-height: 42vh;
  overflow-y: auto;
}

.a-side__ttl {
  border-bottom: 1px solid var(--a-line);
  font-family: var(--serif-family);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
  padding-bottom: 0.8rem;
}

/* 相談CTA */
.a-side__cta {
  background: var(--primary-color-light, #fef3e7);
  border-color: var(--primary-color);
}

.a-side__cta-ttl {
  font-family: var(--serif-family);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1.2rem;
  text-align: center;
}

.a-side__cta-price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin: 0 0 1rem;
}

.a-side__cta-plan {
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}

.a-side__cta-num {
  color: var(--primary-color);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}

.a-side__cta-unit {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
}

.a-side__cta-tax {
  font-size: 1.1rem;
}

.a-side__cta-note {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 0 1.4rem;
  text-align: center;
}

.a-side__cta-btns {
  display: grid;
  gap: 0.8rem;
}

/* 同カテゴリの記事リスト */
.a-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-side__item + .a-side__item {
  border-top: 1px solid var(--a-line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.a-side__link {
  align-items: flex-start;
  color: var(--a-text);
  display: flex;
  gap: 1rem;
  text-decoration: none;
}

.a-side__thumb {
  border-radius: 0.4rem;
  flex: 0 0 8rem;
  overflow: hidden;
}

.a-side__thumb img {
  aspect-ratio: 1200 / 630;
  display: block;
  height: auto;
  min-width: 0;
  object-fit: cover;
  width: 100%;
}

.a-side__text {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: 1.25rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.5;
  overflow: hidden;
}

@media (hover: hover) {
  .a-side__link:hover .a-side__text {
    color: var(--primary-color);
  }
}

.a-side__more {
  color: var(--primary-color);
  display: inline-block;
  font-size: 1.3rem;
  margin-top: 1.4rem;
  text-decoration: none;
}

.a-side__more::after {
  content: " \2192";
}

/* サイドのカテゴリ一覧 */
.a-side__cats {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-side__cat {
  align-items: center;
  background: var(--a-chip-bg);
  border-radius: 0.4rem;
  color: var(--a-text);
  display: flex;
  font-size: 1.25rem;
  font-weight: 600;
  gap: 0.6rem;
  justify-content: space-between;
  line-height: 1.4;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.a-side__cat.is-current {
  box-shadow: inset 0 0 0 2px var(--primary-color);
  color: var(--primary-color);
}

.a-side__cat-count {
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: 100px;
  color: var(--a-text-sub);
  flex: 0 0 auto;
  font-size: 1.1rem;
  padding: 0.2rem 0.7rem;
}

/* ------------------------------------------------------------
   本文中のインラインCTA（2つ目のH2の直前に自動挿入）
------------------------------------------------------------ */
.column-detail__content .a-inline-cta {
  background: var(--primary-color-light, #fef3e7);
  border-radius: var(--a-radius);
  margin: 4rem 0;
  padding: 2.2rem 2.4rem;
}

.a-inline-cta__lead {
  font-family: var(--serif-family);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.a-inline-cta__note {
  font-size: 1.35rem;
  line-height: 1.7;
  margin: 0 0 1.6rem !important;
}

.a-inline-cta__btns {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

/* ------------------------------------------------------------
   読み終わり直後のCTA
------------------------------------------------------------ */
.a-endcta {
  background: var(--a-bg-soft);
  border-radius: var(--a-radius);
  margin-top: 4.8rem;
  padding: 3rem;
  text-align: center;
}

.a-endcta__ttl {
  font-family: var(--serif-family);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1.2rem;
}

.a-endcta__lead {
  font-size: 1.4rem;
  line-height: 1.9;
  margin: 0 auto 2.2rem;
  max-width: 52rem;
  text-align: left;
}

.a-endcta__btns {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}

.a-endcta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
  margin: 2rem 0 0;
}

.a-endcta__links a {
  color: var(--a-text-sub);
  font-size: 1.3rem;
}

/* ------------------------------------------------------------
   SP：1カラムに戻す
------------------------------------------------------------ */
@media screen and (max-width: 767px) {
  .p-article-detail {
    --a-header-h: 9rem;
  }

  .a-detail__grid {
    display: block;
  }

  /* サイドバーはSPでは出さない。CTAは画面下の追従バー、
     目次は本文上の .a-detail__toc-sp が担当する。 */
  .a-side {
    display: none;
  }

  .a-detail__toc-sp {
    background: var(--a-bg-soft);
    border-radius: var(--a-radius);
    display: block;
    margin-bottom: 2.4rem;
    padding: 1.8rem;
  }

  .p-article-detail .column-detail__page-title {
    font-size: 2.1rem;
  }

  .a-inline-cta__btns,
  .a-endcta__btns {
    grid-template-columns: 1fr;
  }

  .a-endcta {
    padding: 2.4rem 1.8rem;
  }

  .a-endcta__ttl {
    font-size: 1.7rem;
  }

  /* 画面下の追従バーに隠れる分の余白 */
  .p-article-detail .main-content {
    padding-bottom: 7rem;
  }
}

/* ------------------------------------------------------------
   記事の追従CTAバー（画面下）
   ------------------------------------------------------------
   既存 .floating-menu の枠組み（is-enable でスライドイン）はそのまま使い、
   記事用の3ボタン版だけ見た目を上書きする。
   並びは 見積り・お問合せ → LINE → 電話（CVの優先順）。
------------------------------------------------------------ */
.floating-menu--article .floating-menu__btn-wrapper {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin: 0 auto;
  max-width: 78rem;
  padding: 1rem 1.6rem;
  width: 100%;
}

.floating-menu--article .floating-menu__btn {
  align-items: center;
  /* layout.css の .floating-menu__btn が min-width を持っており、
     そのままだと grid の fr が効かず3ボタンが画面幅からはみ出す */
  min-width: 0;
  border-radius: 0.6rem;
  display: flex;
  font-size: 1.4rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.3;
  min-height: 4.8rem;
  padding: 0.8rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .floating-menu--article .floating-menu__btn:hover {
    opacity: 0.85;
  }
}

.floating-menu--article .floating-menu__btn--form {
  background: var(--primary-color);
  color: #fff;
}

.floating-menu--article .floating-menu__btn--line {
  background: var(--line-color, #059e45);
  color: #fff;
}

.floating-menu--article .floating-menu__btn--tel {
  background: #fff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

@media screen and (max-width: 767px) {
  .floating-menu--article .floating-menu__btn-wrapper {
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .floating-menu--article .floating-menu__btn {
    font-size: 1.25rem;
    min-height: 4.4rem;
    padding: 0.6rem 0.4rem;
  }
}

/* ============================================================
   SPの左右余白
   ------------------------------------------------------------
   layout.css の .inner はSPで width:100% のみで、左右パディングを持たない。
   既存ページは各セクションが個別に余白を持っているが、今回追加した
   記事まわりのセクションは .inner に直接コンテンツを置いているため、
   そのままだとカードが画面端に貼りついてしまう。
   グローバルな .inner は他ページに影響するので触らず、記事側の
   セクションにだけガターを与える。
============================================================ */
@media screen and (max-width: 767px) {
  /* 既存サイトのSP左右余白は 3.73333vw（.breadcrumbs や本文が使っている値）。
     同じ値を使い、どの要素も画面の同じ縦線から始まるように揃える。 */
  .p-article .a-sec > .inner,
  .p-article .a-detail > .inner,
  .p-article .a-archive__head > .inner {
    box-sizing: border-box;
    padding-left: 3.73333vw;
    padding-right: 3.73333vw;
  }

  /* パンくずは .breadcrumbs 自身が同じ余白を持っているので二重にしない */

  /* カード2列のときの列間。左右の余白を優先して少し詰める */
  .p-article .a-grid--3,
  .p-article .a-grid--4 {
    gap: 2.4rem 1.2rem;
  }
}

@media screen and (max-width: 767px) {
  /* layout.css の .column-detail__content は SP で左右 4.16vw のパディングを持つ。
     .a-detail > .inner 側でガターを取っているため二重になり、本文だけ
     見出し・カードより内側にズレる。ここで打ち消して基準線を揃える。 */
  .p-article-detail .column-detail__content {
    padding-left: 0;
    padding-right: 0;
  }
}
