@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/*見出し１をカスタマイズ*/
.article h1 {
  color: #1f3554;
  border: 0;
  border-bottom: 3px solid #dbe5ef;
  padding: 0 0 0.45em;
  border-radius: 0;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.article h1::before {
  content: "車買取相場";
  display: block;
  width: fit-content;
  margin-bottom: 0.7em;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: #edf4f8;
  color: #43546a;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 記事冒頭の相場ヒーロー */
.sl-market-hero {
  margin: -0.2em 0 1em;
  padding: 0.65em 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  color: #43546a;
}

.sl-market-hero__lead {
  margin: 0;
  color: #1f3554;
  font-size: 0.96em;
  font-weight: 600;
  line-height: 1.55;
}

.sl-market-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.75em;
  margin: 0.25em 0 0;
  color: #68788f;
  font-size: 0.84em;
  line-height: 1.5;
}

.sl-market-hero__meta span + span::before {
  content: "｜";
  margin-right: 0.75em;
  color: #a2adba;
}

.sl-market-estimate {
  display: block;
  margin: 0 0 1.2em;
  padding: 1.15em;
  border: 1px solid #c9d8e6;
  border-radius: 14px;
  background: #f5faff;
  box-shadow: 0 3px 14px rgba(31, 53, 84, 0.06);
}

.sl-market-estimate__title {
  margin: 0 0 0.7em;
  color: #364a63;
  font-size: 0.95em;
  font-weight: 800;
}

.sl-market-estimate__values {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 0.7em;
}

.sl-market-estimate__values div {
  padding: 0.8em;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e6edf5;
}

.sl-market-estimate__range {
  border-left: 5px solid #2f6f9f;
  background: #fff;
}

.sl-market-estimate__values span {
  display: block;
  margin-bottom: 0.25em;
  color: #68788f;
  font-size: 0.82em;
  font-weight: 700;
}

.sl-market-estimate__values strong {
  color: #1f3554;
  font-size: 1.12em;
  line-height: 1.35;
}

.sl-market-estimate__range strong {
  color: #18304f;
  font-size: 1.42em;
}

.sl-market-estimate__meta,
.sl-market-estimate__note {
  margin: 0.65em 0 0;
  color: #68788f;
  font-size: 0.84em;
  line-height: 1.55;
}

.sl-market-estimate__note {
  margin-top: 0.3em;
  color: #7a8798;
}

.sl-badge {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.12em 0.45em;
  border-radius: 999px;
  background: #fff3d8;
  color: #8a5a00;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.article table strong {
  color: #1f3554;
  font-weight: 800;
}

.eye-catch,
.article .eye-catch,
.article .wp-post-image {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

.eye-catch img,
.article .eye-catch img,
.article .wp-post-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.toc,
.toc-content,
.toc-list,
.article .toc {
  font-size: 0.92em;
}

.toc,
.article .toc {
  margin: 1em 0;
  padding: 0.85em 1em;
}

.toc ul,
.toc ol,
.toc-list {
  margin-top: 0.45em;
  margin-bottom: 0.45em;
}

.toc li {
  margin: 0.25em 0;
}

/************************************
** satei-lab 共通UI
************************************/
/* 記事内で使い回す共通枠 */
.sl-box,
.sl-related-box,
.sl-author-box,
.sl-cta {
  margin: 1.25em 0;
  padding: 1em;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #fff;
}

.sl-box > :first-child,
.sl-related-box > :first-child,
.sl-author-box > :first-child,
.sl-cta > :first-child {
  margin-top: 0;
}

.sl-box > :last-child,
.sl-related-box > :last-child,
.sl-author-box > :last-child,
.sl-cta > :last-child {
  margin-bottom: 0;
}

/* 補足・注意向け */
.sl-box--note {
  border-color: #d8e3f0;
  background: #f7fbff;
}

/* 要点整理やチェック向け */
.sl-box--check {
  border-color: #cfe3db;
  background: #f5fbf7;
}

/* 記事下CTAの基本レイアウト */
.sl-cta {
  padding: 1.25em;
  text-align: left;
  box-shadow: 0 2px 10px rgba(31, 53, 84, 0.06);
}

.sl-cta__title {
  margin: 0 0 0.4em;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.5;
  color: #1f3554;
}

.sl-cta__text {
  margin: 0;
  color: #43546a;
  line-height: 1.8;
}

.sl-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin-top: 1em;
}

/* 再利用する共通ボタン */
.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85em 1.2em;
  border: 1px solid transparent;
  border-radius: 999px;
  box-sizing: border-box;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.sl-btn:hover,
.sl-btn:focus {
  text-decoration: none;
  opacity: 0.92;
}

.sl-btn--primary {
  background: #1f3554;
  border-color: #1f3554;
  color: #fff;
}

.sl-btn--secondary {
  background: #fff;
  border-color: #c6d2df;
  color: #1f3554;
}

/* 回遊導線と信頼訴求の共通枠 */
.sl-related-box {
  background: #f8fafc;
}

.sl-author-box {
  background: #fbfcfe;
}

/* 比較表の横スクロール対策 */
.sl-table-wrap {
  width: 100%;
  margin: 1.25em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sl-table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  .sl-box,
  .sl-related-box,
  .sl-author-box,
  .sl-cta {
    padding: 0.9em;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .sl-cta {
    padding: 1em;
  }

  .sl-cta__title {
    font-size: 1.05em;
  }

  .sl-market-hero {
    padding: 0.6em 0;
  }

  .sl-market-hero__meta {
    gap: 0.1em 0.55em;
  }

  .sl-market-estimate {
    padding: 1em;
    border-radius: 12px;
  }

  .sl-market-estimate__values {
    grid-template-columns: 1fr;
    gap: 0.5em;
  }

  .sl-market-estimate__values strong {
    font-size: 1.08em;
  }

  .sl-market-estimate__range strong {
    font-size: 1.24em;
  }

  .eye-catch,
  .article .eye-catch,
  .article .wp-post-image {
    max-width: 100%;
  }

  .eye-catch img,
  .article .eye-catch img,
  .article .wp-post-image {
    max-height: 220px;
  }

  .toc,
  .article .toc {
    padding: 0.75em 0.85em;
  }

  .sl-btn {
    min-height: 44px;
    padding: 0.8em 1em;
  }

  .sl-table-wrap table {
    min-width: 560px;
  }
}
