/* 全体の背景と余白 */
.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;
  }
}