:root {
  --brand-blue: #2f7ad9;
  --blue-600: #2563eb;
  --blue-50: #eef3fe;

  --line-600: #06C755;
  --line-50: #ebfbf2;

  --red-600: #ec413e;
  --red-50: #fff0f0;

  --text: #1f2937;
  --border: #e5e7eb;
}


.button-area {
  padding-top: 1rem;
}

/* 共通ボタン（形・余白・配置） */
.custom-btn {
  display: inline-flex;
  /* アイコンと文字を横並び */
  align-items: center;
  /* 縦中央揃え */
  gap: 8px;
  /* アイコンと文字の間隔 */
  padding: 15px 20px;
  /* ボタン内余白 */
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 9999px;
  /* pill型に統一 */
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-width: 260px;
}

.custom-btn:hover {
  opacity: 0.85;
  /* 共通hover（薄く） */
  text-decoration: none;
}


/* LINE（緑） */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* アイコンとの間隔 */
  padding: 14px 20px;
  /* ボタンのサイズ */
  background-color: #06C755;
  /* LINEグリーン */
  color: #fff;
  border: none;
  border-radius: 9999px;
  /* カプセル型 */
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-right: 1rem;
}

.btn-line:hover {
  background-color: #05b34c;
  /* hover時 */
  transform: translateY(-1px);
}

.btn-line i {
  font-size: 28px;
  /* 現状40px → ボタンに合わせて少し小さく推奨 */
  color: #fff;
  /* アイコンも白 */
  line-height: 1;
}

/* 資料請求（黄） */
.btn-download {
  background: #2f7ad9;
  color: #fff;
  border-color: rgba(245, 158, 11, .25);
  margin-right: 1rem;
}

/* 電話（赤系） */
.btn-phone {
  background: #c9302c;
  /* Bootstrap Dangerの濃い色 */
  color: #fff;
  border-color: rgba(201, 48, 44, .3);

}

/* WEB無料査定（青） */
.btn-assessment {
  background: #961717;
  color: #fff;
  border-color: rgba(0, 0, 0, 0);
  margin-right: 1rem;
}

/* すでに :root と .custom-btn / .btn-line / .btn-download / .btn-assessment を定義済みなら、下だけ追加でOK */
@media (max-width: 768px) {
  .gnav .nav_sp a.custom-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--border);
    text-align: center;
  }

  .gnav .nav_sp a.btn-download {
    background: #ffe8b3;
    color: var(--amber-600);
    border-color: rgba(245, 158, 11, .25);
  }

  .gnav .nav_sp a.btn-assessment {
    background: var(--brand-blue);
    color: #fff;
    border-color: transparent;
  }

  /* アイコンサイズの微調整 */
  .gnav .nav_sp a i {
    font-size: 16px;
    line-height: 1;
  }
}

@media (max-width: 768px) {
  .gnav .nav_sp a.custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ← これで中央寄せ */
    gap: 8px;
    width: 100%;
    padding: 20px 16px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    /* 複数行でも中央 */
    border: 1px solid var(--border);
    border-radius: 0;
    /* 丸みなし */
  }

  .gnav .nav_sp a i {
    font-size: 16px;
    line-height: 1;
  }
}/* 全体の背景と余白 */
.yt-main {
  padding: 80px 20px 120px;
  background: #f3f6fb;
}

/* スマホ対応 */
@media only screen and (max-width: 768px) {
  .yt-main {
    padding: 1px 20px 120px;
  }
}


/* 中央の白いカード */
.yt-main__content {
  max-width: 1160px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* スマホ対応 */
@media only screen and (max-width: 768px) {
  .yt-main__content {
    padding: 48px 20px;
  }
}

.yt-title {
  background: linear-gradient(to right, #3091ce 0%, #0b4281 100%);
  display: inline-block;
  font-weight: bold;
  letter-spacing: .06em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
}

/* スマホ対応 */
@media only screen and (max-width: 768px) {
  .yt-title {
    font-size: 18px;
    line-height: 1.62;
  }
}

.yt-thumbnail {
  margin: 2rem auto;
  text-align: center;
}

.yt-thumbnail img {
  object-fit: cover;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

#content {
  margin-top: 5rem;
}

@media only screen and (max-width: 768px) {
  #content {
    margin-top: 2rem;
  }
}

.yt-main__content #content img {
  margin: 2rem auto;
}

.yt-main__content #content h2 {
  font-size: 23px;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media only screen and (max-width: 768px) {
  .yt-main__content #content h2 {
    font-size: 14px;
  }
}

/* ここから中身　*/
.yt-main__content #content p {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 箇条書きにも対応 */
.yt-main__content #content li {
  font-size: 18px;
  line-height: 2;
}

/* スマホは少し抑える */
@media (max-width: 768px) {

  .yt-main__content #content p,
  .yt-main__content #content li {
    font-size: 12px;
  }
}

/* リンクを青色にする */
.yt-main__content #content a {
  color: #0071c6;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ホバー時のアクセント */
.yt-main__content #content a:hover {
  color: #005a9d;
  text-decoration: none;
}

/* YouTube iframe 共通スタイル */
.yt-main__content #content iframe {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2rem;
  aspect-ratio: 500 / 281;
  height: auto;
  border: none;
}

/* 前へ / 次へ ナビゲーション */
.yt-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  gap: 1rem;
}

.yt-nav-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  background: #ffffff;
  color: #0b63c5;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease;
}

/* 片方しかない場合も自然に配置 */
.yt-nav-btn.prev {
  margin-right: auto;
}

.yt-nav-btn.next {
  margin-left: auto;
}

/* スマホでも横並びのままにする */
@media (max-width: 768px) {
  .yt-nav {
    flex-direction: row;
    /* ← 縦並びを解除 */
  }

  .yt-nav-btn.prev {
    margin-right: auto;
  }

  .yt-nav-btn.next {
    margin-left: auto;
  }
}