/* =========================================================
   Case Study 15｜船橋市・東芝 縦型洗濯機分解洗浄
   ・Case Study 13 の会話型UIを継承
   ・最新SEOブログのメタ情報 / 内部リンク / CTA UI を統合
   ========================================================= */

.cs-article{
  background: #ffffff;
  padding: 28px 16px 60px;
}

.cs-article__container{
  max-width: 900px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   パンくず
   functions.php の .crumbs と旧 .cs-article__breadcrumb の両方に対応
   --------------------------------------------------------- */
.cs-article .crumbs,
.cs-article__breadcrumb{
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.8;
  color: #6b7280;
}

.cs-article .crumbs a,
.cs-article__breadcrumb a{
  color: inherit;
  text-decoration: none;
}

.cs-article .crumbs a:hover,
.cs-article__breadcrumb a:hover{
  text-decoration: underline;
}

.cs-article__breadcrumb span{
  margin: 0 6px;
}

/* ---------------------------------------------------------
   タイトル・メタ
   --------------------------------------------------------- */
.cs-article__title{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: .01em;
  color: #0f172a;
}

.cs-article__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
}

.cs-article__meta-item{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  line-height: 1.4;
}

.cs-article__meta-item time{
  color: #334155;
}

.cs-article__byline a{
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}

.cs-article__byline a:hover{
  text-decoration: underline;
}

.cs-article__cat,
.cs-article__tag{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
}

.cs-article__cat{
  background: #eff6ff;
  color: #1d4ed8;
}

.cs-article__tag{
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #64748b;
}

/* ---------------------------------------------------------
   サムネ
   --------------------------------------------------------- */
.cs-article__thumb{
  margin: 12px 0 18px;
}

.cs-article__thumb img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------------------------------------------------------
   リード / 強調
   --------------------------------------------------------- */
.cs-article__lead{
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 2.05;
  color: #111827;
}

.hl-pen{
  display: inline;
  padding: 0 .12em;
  background: linear-gradient(transparent 55%, #fde68a 55%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 800;
}

/* ---------------------------------------------------------
   概要
   --------------------------------------------------------- */
.cs-overview{
  margin: 20px 0 18px;
}

.cs-overview__title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.cs-overview__table{
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.cs-overview__table table{
  width: 100%;
  border-collapse: collapse;
}

.cs-overview__table th,
.cs-overview__table td{
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.9;
}

.cs-overview__table tr:first-child th,
.cs-overview__table tr:first-child td{
  border-top: none;
}

.cs-overview__table th{
  width: 30%;
  background: #f9fafb;
  font-weight: 800;
  color: #0f172a;
}

.cs-overview__table td{
  color: #111827;
}

/* ---------------------------------------------------------
   目次
   --------------------------------------------------------- */
.cs-article .independence-blog__toc{
  margin: 0 0 32px;
  padding: 22px 24px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.cs-article .independence-blog__toc-heading{
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
}

.cs-article .independence-blog__toc-list{
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #e5e7eb;
  list-style: none;
  counter-reset: toc;
}

.cs-article .independence-blog__toc-list li{
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  counter-increment: toc;
}

.cs-article .independence-blog__toc-list li:first-child{
  border-top: none;
}

.cs-article .independence-blog__toc-list li::before{
  content: counter(toc) " |";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #6b7280;
}

.cs-article .independence-blog__toc-list a{
  color: #111827;
  text-decoration: none;
}

.cs-article .independence-blog__toc-list a:hover{
  text-decoration: underline;
}

/* ---------------------------------------------------------
   本文 / 見出し
   --------------------------------------------------------- */
.cs-body{
  font-size: 16px;
  line-height: 2.05;
  color: #111827;
}

.cs-section{
  padding: 40px 0;
  border-top: 1px solid #e5e7eb;
}

.cs-section:first-of-type{
  padding-top: 14px;
  border-top: none;
}

.cs-section--last{
  padding-bottom: 32px;
}

.cs-h2{
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.7;
  letter-spacing: .01em;
  color: #0f172a;
}

.cs-h2--catch{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.cs-h3{
  margin: 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.8;
  color: #0f172a;
}

.cs-h3--q{
  position: relative;
  padding-left: 2.4em;
}

.cs-h3--q::before{
  content: "Q.";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: #1d4ed8;
}

.cs-photo-heading{
  margin: 34px 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #dbe4ee;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.7;
  color: #1f2937;
}

.cs-p{
  margin: 0 0 16px;
}

/* ---------------------------------------------------------
   施工画像
   --------------------------------------------------------- */
.cs-figure{
  margin: 22px 0 14px;
}

.cs-figure img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.cs-figure--wide img{
  aspect-ratio: 3 / 4;
}

.cs-figure--top img{
  object-position: center top;
}

.cs-figure--bottom img{
  object-position: center bottom;
}

.cs-figure figcaption{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.cs-grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.cs-figure--portrait{
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cs-figure--portrait img{
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.cs-figure--featured{
  margin-top: 26px;
  margin-bottom: 26px;
}

.cs-figure--finish{
  margin-top: 30px;
}

/* ---------------------------------------------------------
   会話UI
   --------------------------------------------------------- */
.cs-chat{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.2rem 0;
}

.cs-chat__item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cs-chat__item.is-right{
  flex-direction: row-reverse;
}

.cs-chat__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  overflow: hidden;
  border: 2px solid rgba(15,23,42,.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.cs-chat__item.is-staff .cs-chat__icon{
  border-color: rgba(37, 99, 235, .35);
}

.cs-chat__item.is-customer .cs-chat__icon{
  border-color: rgba(239, 68, 68, .35);
}

.cs-chat__item.is-dot .cs-chat__icon{
  border-color: rgba(99, 102, 241, .35);
}

.cs-chat__icon img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-chat__item.is-staff .cs-chat__icon img,
.cs-chat__item.is-customer .cs-chat__icon img{
  object-position: center 18%;
}

.cs-chat__body{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-chat__name{
  margin: 4px 0 0;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: .78;
}

.cs-chat__bubble{
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  line-height: 1.75;
}

.cs-chat__item.is-staff .cs-chat__bubble{
  background: #e9f6ff;
}

.cs-chat__item.is-customer .cs-chat__bubble{
  background: #ffecec;
}

.cs-chat__item.is-dot .cs-chat__bubble{
  background: #f2f5ff;
}

.cs-chat__item.is-right .cs-chat__bubble{
  border-top-right-radius: 10px;
}

.cs-chat__item:not(.is-right) .cs-chat__bubble{
  border-top-left-radius: 10px;
}

/* ---------------------------------------------------------
   関連ページ（最新ブログの内部リンクUIを事例用に移植）
   --------------------------------------------------------- */
.cs-related{
  padding: 42px 0 12px;
  border-top: 1px solid #e5e7eb;
}

.cs-related__title{
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.65;
  color: #0f172a;
}

.cs-related__links{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 34px;
}

.cs-related__link{
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  color: #1f2937;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cs-related__link:hover{
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .08);
}

.cs-related__label{
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.cs-related__link strong{
  font-size: 14.5px;
  line-height: 1.7;
  color: #1f2937;
}

/* ---------------------------------------------------------
   本文内CTA
   --------------------------------------------------------- */
.cs-local-cta{
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

.cs-local-cta__kicker{
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.cs-local-cta h3{
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.6;
  color: #1f2937;
}

.cs-local-cta p{
  margin: 0;
}

.cs-local-cta__actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cs-local-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.cs-local-cta__btn--line{
  border: 1px solid #06c755;
  background: #06c755;
  color: #fff;
}

.cs-local-cta__btn--reserve{
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

.cs-local-cta__btn:hover{
  opacity: .92;
}

/* ---------------------------------------------------------
   記事末尾 大型CTA
   --------------------------------------------------------- */
.cs-contact-cta{
  margin-top: 48px;
  padding-top: 46px;
  border-top: 1px solid #e5e7eb;
}

.cs-contact-cta__heading{
  margin: 0 0 24px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
  color: #0f172a;
}

.cs-reserve-card,
.cs-line-card{
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}

.cs-reserve-card__head,
.cs-line-card__head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.cs-reserve-card__head{
  background: #eef2ff;
}

.cs-line-card__head{
  background: #ecfdf3;
}

.cs-reserve-card__pill,
.cs-line-card__pill{
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
}

.cs-reserve-card__pill{
  background: #2563eb;
  color: #fff;
}

.cs-line-card__pill{
  background: #06c755;
  color: #fff;
}

.cs-reserve-card__title,
.cs-line-card__title{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.cs-reserve-card__body,
.cs-line-card__body{
  padding: 22px;
}

.cs-reserve-card__body > p{
  margin: 0 0 18px;
}

.cs-big-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.cs-big-btn--reserve{
  background: #2563eb;
  color: #fff;
}

.cs-big-btn--line{
  background: #06c755;
  color: #fff;
}

.cs-big-btn:hover{
  opacity: .92;
}

.cs-line-card__inner{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

.cs-line-card__qr img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d1fae5;
  border-radius: 12px;
}

.cs-line-card__text h3{
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.6;
  color: #0f172a;
}

.cs-line-card__text ul{
  margin: 0;
  padding-left: 1.25em;
}

.cs-line-card__text li{
  margin: 4px 0;
}

/* アンカー位置 */
.cs-overview,
.cs-toc,
.cs-section{
  scroll-margin-top: 90px;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 768px){
  .cs-article{
    padding: 18px 12px 44px;
  }

  .cs-article__title{
    font-size: 22px;
  }

  .cs-article__meta{
    gap: 6px;
    font-size: 11.5px;
  }

  .cs-article__meta-item,
  .cs-article__cat,
  .cs-article__tag{
    min-height: 26px;
    padding: 3px 8px;
  }

  .cs-body{
    font-size: 15.5px;
  }

  .cs-section{
    padding: 32px 0;
  }

  .cs-h2,
  .cs-related__title{
    font-size: 20px;
  }

  .cs-overview__table th{
    width: 38%;
  }

  .cs-grid2{
    grid-template-columns: 1fr;
  }

  .cs-article .independence-blog__toc{
    padding: 18px 18px 14px;
  }

  .cs-chat__bubble{
    max-width: 100%;
  }

  .cs-related__links{
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0 28px;
  }

  .cs-related__link{
    min-height: 0;
    padding: 14px;
  }

  .cs-local-cta{
    margin-top: 28px;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .cs-local-cta h3{
    font-size: 18px;
  }

  .cs-local-cta__actions{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cs-local-cta__btn{
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .cs-contact-cta{
    margin-top: 38px;
    padding-top: 36px;
  }

  .cs-contact-cta__heading{
    font-size: 22px;
  }

  .cs-reserve-card__head,
  .cs-line-card__head{
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .cs-reserve-card__body,
  .cs-line-card__body{
    padding: 18px 14px;
  }

  .cs-line-card__inner{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cs-line-card__qr{
    width: min(180px, 65%);
    margin: 0 auto;
  }

  .cs-line-card__text h3{
    font-size: 18px;
  }
}
