/* セクション共通スタイル */
.section-padding {
  padding: 80px 20px;
}

/* タブレットサイズ（768px以上）の場合 */
@media screen and (min-width: 768px) {
  .section-padding {
    padding: 20px 90px 30px 20px;
  }
}

.bg-light {
  background-color: #f9f9f9;
}

/* メインビジュアル */
.course-hero {
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.course-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.course-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.course-hero__title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.course-hero__lead {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* コース概要 */
.course-overview__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.course-overview__image {
  flex: 1;
  min-width: 300px;
  max-width: 30%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-overview__image img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-overview__text {
  flex: 1;
  min-width: 300px;
}

.course-overview__text h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.course-overview__text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #d4a373;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #d4a373;
  font-weight: bold;
}

/* おすすめグリッド */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.recommend-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.recommend-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.recommend-icon {
  font-size: 2.5rem;
  color: #d4a373;
  margin-bottom: 20px;
}

.recommend-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

/* テーブルスタイル */
.course-table {
  overflow-x: auto;
  margin-top: 40px;
}

.course-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.course-table th,
.course-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.course-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  width: 200px;
}

.course-table tr:last-child td {
  border-bottom: none;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  padding: 5px 0;
}

.course-content dt {
  font-weight: 600;
  margin-top: 15px;
  color: #333;
}

.course-content dd {
  margin-left: 0;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 3px solid #d4a373;
  padding-left: 15px;
}

/* YouTube動画スタイル */
.video-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 動画説明文 */
.video-description {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.video-description p {
  margin: 5px 0;
}

.video-description p:last-child {
  font-size: 0.85rem;
  color: #888;
  margin-top: 10px;
}

/* お問い合わせセクション */
.contact-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-area {
  margin: 30px 0;
}

.contact-tel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.tel-number {
  font-size: 1.8rem;
  font-weight: 600;
  color: #d4a373;
  margin: 10px 0;
}

.course-card {
  border: 1px solid #e0e0e0;
  border-color: rgba(231, 133, 114, 0.5);
  border-radius: 8px;
  padding: 30px;
  margin: 15px 80px 20px 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-title {
  font-size: 1.5rem;
  color: #e67c67;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row; /* 明示的に横並びを指定 */
  justify-content: space-between; /* 両端揃え */
  align-items: center;
  gap: 10px;
  width: 100%; /* 親要素いっぱいに広げる */
}

.course-count {
  background-color: #f8f8f8;
  color: #e67c67;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: inherit;
  white-space: nowrap; /* 改行を防ぐ */
  flex-shrink: 0; /* 縮小を防ぐ */
}

.course-content {
  color: #666;
  line-height: 1.6;
}
.course-content p {
  font-size: 1.3rem;
}

/* スマホサイズ（768px以下）の場合 */
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .section-padding {
    padding: 40px 20px;
  }

  .course-card {
    margin: 15px 5px 15px 5px;
  }

  .course-title {
    flex-wrap: nowrap; /* スマホでも折り返さない */
    flex-direction: row; /* 横並びを維持 */
    justify-content: space-between; /* 両端揃えを維持 */
    align-items: center; /* 中央揃え */
  }
  
  .course-count {
    margin-top: 0; /* 余白をリセット */
    margin-left: 10px; /* 左側に余白を追加 */
  }

  .course-content p {
    font-size: 1rem;
  }

  .course-overview__content {
    flex-direction: column;
  }
  
  .course-overview__image,
  .course-overview__text {
    width: 100%;
  }
  
  .recommend-grid {
    grid-template-columns: 1fr;
  }
  
  .course-hero__title {
    font-size: 2.2rem;
  }
  
  .course-hero__lead {
    font-size: 1.2rem;
  }
  
  .contact-box {
    padding: 30px 20px;
  }
  
  .course-table th {
      background-color: #f5f5f5;
      font-weight: 600;
      width: 125px;
  }

  .tel-number {
    font-size: 1.5rem;
  }
  
  .video-container {
    padding: 10px 0;
  }
  
  .video-wrapper {
    margin: 20px 0;
  }
}
