/* single-tutorial-article.css - Tutorial記事個別ページ専用CSS */

/* ==========================================================================
   BASE STYLES - 基本スタイル
   ========================================================================== */

.tutorial-article-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   BREADCRUMB - パンくずリスト
   ========================================================================== */

.breadcrumb {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 30px;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumb li::after {
  content: ">";
  margin-left: 10px;
  color: #999;
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: #008b5d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #52c7a6;
  text-decoration: underline;
}

.breadcrumb .current {
  color: #666;
  font-weight: 500;
}

/* ==========================================================================
   LAYOUT - メインレイアウト
   ========================================================================== */

.tutorial-article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.article-main {
  flex: 1;
  min-width: 0;
}

.article-sidebar {
  width: 350px;
  flex-shrink: 0;
}

/* ==========================================================================
   VIDEO PLAYER - 動画プレーヤー
   ========================================================================== */

.video-player-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

.video-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   ARTICLE INFO - 記事情報
   ========================================================================== */

.article-info {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #008b5d;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.duration,
.difficulty,
.view-count,
.date {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-content {
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

.article-content h2 {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}

.article-content h3 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.article-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   VIDEO CONTROLS - 動画コントロール
   ========================================================================== */

.video-controls {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.video-controls button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-controls button:hover {
  background: #f8f9fa;
  border-color: #008b5d;
  color: #008b5d;
}

.video-controls button .icon {
  font-size: 16px;
}

.btn-bookmark.bookmarked {
  background: #008b5d;
  color: #fff;
  border-color: #008b5d;
}

/* ==========================================================================
   SIDEBAR STYLES - サイドバー
   ========================================================================== */

.article-sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 8px;
}

/* 関連動画 */
.related-videos {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.related-video-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 8px;
}

.related-video-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.related-video-item:last-child {
  margin-bottom: 0;
}

.related-video-item .thumbnail {
  position: relative;
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #333;
}

.related-video-item .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-video-item .thumbnail .no-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #333;
  color: #fff;
  font-size: 16px;
}

.related-video-item .duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.related-video-item .info {
  flex: 1;
  min-width: 0;
}

.related-video-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-video-item .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #999;
}

.no-related {
  color: #666;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* ==========================================================================
   NEXT VIDEO SECTION - 次の動画セクション
   ========================================================================== */

.next-video-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.next-video-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.next-video-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.next-thumbnail {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #333;
}

.next-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-thumbnail .no-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #333;
  color: #fff;
  font-size: 24px;
}

.next-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.next-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn-next {
  width: 100%;
  padding: 12px;
  background: #008b5d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-next:hover {
  background: #52c7a6;
}

/* ==========================================================================
   BACK TO LIST - 一覧に戻る
   ========================================================================== */

.back-to-list {
  text-align: center;
}

.btn-back {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #008b5d;
  text-decoration: none;
  border: 2px solid #008b5d;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #008b5d;
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN - レスポンシブデザイン
   ========================================================================== */

@media (max-width: 1024px) {
  .tutorial-article-layout {
    flex-direction: column;
  }

  .article-sidebar {
    width: 100%;
  }

  .related-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .related-video-item {
    flex-direction: column;
  }

  .related-video-item .thumbnail {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 22px;
  }

  .article-info {
    padding: 20px;
  }

  .article-meta {
    gap: 10px;
  }

  .video-controls {
    flex-direction: column;
  }

  .video-controls button {
    width: 100%;
    justify-content: center;
  }

  .related-videos {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .breadcrumb {
    font-size: 12px;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 20px;
  }

  .article-content h2 {
    font-size: 18px;
  }

  .article-content h3 {
    font-size: 16px;
  }

  .video-player-wrapper {
    border-radius: 8px;
  }

  .article-info {
    border-radius: 8px;
    padding: 15px;
  }
}



