/* ============================================================================
   1. 共通
   ============================================================================ */
/* section */
section {
  margin-bottom: 3.0rem;
  padding: 2rem;
}

section {
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
}
   /* Subtitle */
.subtitle {
  margin-bottom: 1.5rem;
}

.subtitle h2 {
  font-size: 1.4rem;
  color: var(--bs-primary);
  position: relative;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 2px solid var(--bs-primary);
  border-radius: 8px;
  margin: 0;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.subtitle h2::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #2196F3 0%, var(--bs-primary) 100%);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.1;
}

/* Cardの余白調整 */
@media (min-width: 768px) {

  /* PCの時だけ余白を広めに */
  .card-body {
    padding: 2rem;
  }
}

.steps-title h3 {
  -webkit-writing-mode: vertical-rl;
  -moz-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  -ms-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

/* ============================================================================
   15. ログインボタン
   ============================================================================ */
.top-login-btn a img{
  width: 40px;
  height: 40px;
  margin-right: 2rem;
}

/* ============================================================================
   2. 視聴確認動画と推奨視聴環境
   ============================================================================ */
@media (min-width: 576px) {
  .d-sm-flex .video-wrapper {
    max-width: 400px;
    flex-shrink: 0;
  }
}

/* 動画wrapper - アスペクト比を保持 */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* 動画の基本設定 */
.video-js.vjs-fluid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* 視聴確認動画セクションの上下余白を調整 */
.d-sm-flex {
  margin-bottom: 1rem !important;
  margin-top: 0.5rem !important;
}

.subtitle h2::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(135deg, #2196F3 0%, var(--bs-primary) 100%);
  border-radius: 2px;
}

/* pre-movie section */
.premovie-section .system-requirements {
  flex: 1;
  font-size: 92%;
  padding: 0.4rem 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.premovie-section .system-requirements .h5,
.premovie-section .system-requirements .h6 {
  font-weight: bold;
  color: var(--bs-primary);
}

/* ============================================================================
   3. 講義一覧
   ============================================================================ */
/* 講義テーブルのレスポンシブレイアウト */
.lecture-tables-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lecture-list {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: white;
  margin: 0;
  border: 1px solid #e9ecef;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lecture-list th {
  width: 90px;
  white-space: nowrap;
  background-color: var(--bs-secondary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1rem;
  text-align: center;
  border: none;
  min-width: 90px;
}

.table.lecture-list tbody tr:hover {
  background-color: #e3f2fd !important;
}

.lecture-list td {
  padding: 0.8rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  line-height: 1.5;
  color: #495057;
}

.lecture-list tr:last-child td {
  border-bottom: none;
}

/* スマホ　tableが縦に重なったときのradius調整 */
.lecture-list:first-child {
  border-radius: 0.4rem 0.4rem 0 0;
}

.lecture-list:last-child {
  border-radius: 0 0 0.4rem 0.4rem;
}

/* スマホ　tableが縦に重なったときのborderの調整 */
.lecture-list:first-child,
.lecture-list:first-child tr:last-child th,
.lecture-list:first-child tr:last-child td {
  border-bottom: none;
}

.lecture-list:last-child,
.lecture-list:last-child tr:first-child th,
.lecture-list:last-child tr:first-child td {
  border-top: none;
}

.lecture-list tr {
  transition: background-color 0.2s ease;
}

/* 1行おきに背景色を交互に */
.lecture-list:first-child tr:nth-child(odd) {
  background-color: white;
}

.lecture-list:first-child tr:nth-child(even) {
  background-color: var(--bs-theme-light);
}

.lecture-list:last-child tr:nth-child(even) {
  background-color: white;
}

.lecture-list tr:nth-child(odd) {
  background-color: var(--bs-theme-light);
}

/* PCとタブレット：横並び */
@media (min-width: 768px) {
  .lecture-list:last-child tr:nth-child(odd) {
    background-color: white !important;
  }

  .lecture-list tr:nth-child(even) {
    background-color: var(--bs-theme-light) !important;
  }

  .lecture-tables-wrapper {
    flex-direction: row;
    justify-content: start;
    gap: 0;
    /* 完全に隙間なし */
  }

  .lecture-list {
    width: inherit;
  }

  /* PC　tableが横になったときのradius調整 */
  .lecture-list:first-child {
    border-radius:  0.4rem 0 0 0.4rem;
  }

  .lecture-list:last-child {
    border-radius: 0 0.4rem 0.4rem 0;
  }

  /* PC　tableが横になったときのborderの調整 */
  .lecture-list:first-child,
  .lecture-list:first-child tr:last-child th,
  .lecture-list:first-child tr:last-child td {
    border-bottom: none;
  }

  .lecture-list:last-child,
  .lecture-list:last-child tr:first-child th,
  .lecture-list:last-child tr:first-child td {
    border-top: none;
  }
}
/* ============================================================================
   4. 受講資格と受講料金
   ============================================================================ */
.requirements-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  background: white;
  border-radius: 0.4rem;
  overflow: hidden;
}
.requirements-table tr:nth-child(even){
  background-color: var(--bs-theme-light);
}
.requirements-table th{
  background-color: var(--bs-secondary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1rem;
  text-align: center;
  border: none;
  width: 150px;
  min-width: 120px;
}
.requirements-table td{
  padding: 0.8rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  line-height: 1.5;
  color: #495057;
}
/* ============================================================================
   5. 講義・講師紹介
   ============================================================================ */
.instructors-table{
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  background: white;
  border-radius: 0.4rem;
  overflow: hidden;
}
.instructors-table tr:nth-child(even){
  background-color: var(--bs-theme-light);
}
.instructors-table th{
  background-color: var(--bs-secondary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1rem;
  text-align: center;
  border: none;
}
.instructors-table td{
  padding: 0.8rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  line-height: 1.5;
  color: #495057;
}
.instructors-table .lecture-title{
  font-weight: normal;
  font-size: 100%;
}
.instructors-table .lecture-no,
.instructors-table .instructor-name{
  white-space: nowrap;
  font-size: 1rem;
}
.instructors-table .lecture-no,
.instructors-table .instructor-affiliation{
  font-size: 0.9rem;
}
/* ============================================================================
   6. How to 
   ============================================================================ */
.guide-flow {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  border-radius: 15px;
  margin: 3rem 0;
}
.guide-flow-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  border-radius: 0.25rem;
  padding: 0.2rem;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.guide-flow-title h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.guide-flow-wrapper {
  display: flex;
  align-items: stretch;
  /* 高さを揃える */
  justify-content: center;
  gap: 0.6rem;
  flex: 1;
}

.guide-flow-step {
  flex: 1;
  max-width: 340px;
  text-align: center;
  padding: 0.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #f7f7f7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.guide-step-header {
  position: relative;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}

.guide-step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
/* 番号を非表示にする */
.guide-step-number {
  display: none;
}

.guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bs-primary);
  margin: 0 0 0 0;
  line-height: 1.3;
  text-align: left;
}

.guide-step-description {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.guide-flow-arrow {
  display: flex;
  align-items: center;
  /* 垂直方向の中央に配置 */
  justify-content: center;
  align-self: stretch;
  /* 親要素の高さに合わせる */
}

.guide-flow-arrow span img {
  width: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .guide-flow-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .guide-flow {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
    align-items: stretch;
  }

  .guide-flow-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    min-width: auto;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }

  .guide-flow-steps {
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }

  .guide-flow-arrow {
    transform: rotate(90deg);
    margin: 0;
    align-self: center;
    height: 40px;
  }

  .guide-flow-step {
    max-width: 100%;
  }

  .guide-step-icon {
    width: 70px;
    height: 70px;
  }
}
/* ============================================================================
   7. モーダル　詳細ステップ 
   ============================================================================ */

.guide-detail-step{
  border: 1px solid var(--bs-primary);
  border-radius: 0.4rem;
  padding: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.8rem;
  background: white;
}
.guide-detail-step-title{
  color: var(--bs-primary);
  font-size: 1.2rem;
  font-weight: bold;
}
.guide-detail-step-description{
  font-size: 0.95rem;
}
.guide-detail-step-number{
  display: none;
}
.guide-detail-step-figure{
  margin-bottom: 1rem;
}
.guide-detail-step-figure img{
  width: 100%;
}
.guide-detail-step-arrow{
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.guide-detail-step-arrow span img{
  height: 30px;
  width: 30px;
  transform: rotate(90deg);
}
ol.guide-detail-step-list{
  list-style: none;
  counter-reset: step-counter;
}
ol.guide-detail-step-list li{
  counter-increment: step-counter;
  margin-bottom: 1rem;
  padding-left: 2.4rem;
  position: relative;
}
ol.guide-detail-step-list li::before{
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.86rem;
}