/* 全体 */
.pc-img {
  display: block;
}
.sp-img {
  display: none;
}

/* メインビジュアル */
.main-image img {
  width: 100%;
}

/* メインコンテナ */
.main-container {
  display: flex;
}
.main-side {
  background-image: url("../img/line-toukou.png");
  background-repeat: repeat-y;
  background-size: contain;
  width: 7%;
}
.main-content {
  width: 93%;
  padding: 80px 100px 40px 100px;
}

/* タイトル */
.title-h2 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 50px;
}
.title-h3 {
  font-size: 32px;
  font-weight: bold;
  margin-top: 120px;
  margin-bottom: 30px;
}

/* 本文 */
.section-p {
  font-size: 21px;
  line-height: 1.8;
}

/* イントロ本文直後の見出しのみ余白を2倍に */
.section-p + .title-h3 {
  margin-top: 120px;
}

/* 記事カードグリッド */
.driving-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.driving-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.driving-card:hover {
  transform: translateY(-3px);
}
.driving-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.driving-card a:hover {
  text-decoration: none;
}
.driving-card img {
  margin: 0;
  display: block;
}
.driving-card-title {
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

/* SNSボタン上の余白 */
.driving-sns-wrap {
  margin-top: 160px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 800px) {
  .pc-img {
    display: none;
  }
  .sp-img {
    display: block;
  }
  .main-content {
    padding: 60px 40px 30px 40px;
  }
  .title-h2 {
    font-size: 40px;
  }
  .title-h3 {
    font-size: 26px;
    margin-top: 80px;
  }
}
@media screen and (max-width: 600px) {
  .main-content {
    padding: 40px 20px 20px 20px;
  }
  .title-h2 {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .title-h3 {
    font-size: 22px;
    margin-top: 60px;
  }
  .section-p {
    font-size: 18px;
  }
  .driving-grid {
    grid-template-columns: 1fr;
  }
}
