@charset "UTF-8";

/* ==========================================
   ショートドラマLAB スタイル
========================================== */

/* Reset & Base */

body:has(.shortdrama-lab-main) {
  background: #ffffff;
}

.shortdrama-lab-main * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.shortdrama-lab-main {
  font-family: 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.7;
}

.dummy-image {
  border: 1px solid #e5e5e5;
}


/* Header */
.shortdrama-lab-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.logo-image {
  margin-inline: auto;
  width: 255px;
}

.header-right {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.search-input {
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  width: 180px;
  outline: none;
}
.search-input::placeholder {
  color: #ddd;
}
.search-btn {
  background: #333;
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  width: 14px;
  height: 14px;
  stroke: white;
}

/* Navigation */
.nav-bar {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-primary {
  display: flex;
  gap: 25px;
  padding: 10px 0;
  overflow-x: auto;
}

.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.nav-link:hover {
  color: #667eea;
  border-bottom-color: #667eea;
}

.nav-contact {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  padding: 5px 0;
  border-left: 1px solid #ddd;
  padding-left: 15px;
  white-space: nowrap;
}

.nav-contact:hover {
  color: #667eea;
}

/* Main Container */
.main-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 25px 20px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* Hero Carousel */
.hero-carousel {
  padding-block: 25px;
  position: relative;
  margin-bottom: 40px;
  overflow: visible;
}

.swiper-horizontal {
  overflow: visible;
}

.hero-carousel-container {
  height: 100%;
  overflow: visible;
  padding-bottom: 120px;
}

.hero-slides {
  height: 100%;
}

.swiper-slide.hero-slide {
  position: relative;
  height: 100%;
  width: 50%;
}

.hero-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: opacity 0.3s;
}

.hero-slide-link:hover .hero-image {
  opacity: 0.8;
}

.hero-overlay {
  padding: 20px 24px;
  background: transparent;
  color: #333;
}

.hero-category {
  display: inline-block;
  padding: 4px 12px;
  background: #667eea;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  border-radius: 3px;
  color: white;
}

.hero-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #333;
  transition: color 0.3s;
}

.hero-slide-link:hover .hero-title {
  color: #667eea;
}

.hero-meta {
  font-size: 13px;
  color: #999;
}

/* Carousel Controls */
.carousel-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  pointer-events: none;
  z-index: 20;
}

.carousel-btn {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 20px;
  font-weight: bold;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-pagination {
  width: 100%;
  padding-top: 15px;
  position: absolute;
  bottom: 0;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 3px;
  z-index: 20;
}

.carousel-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 1;
}

.carousel-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: #667eea;
}

/* Category Sections */
.category-section {
  margin-bottom: 50px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #333;
}

.category-title {
  font-size: 20px;
  font-weight: 900;
  color: #333;
}

.view-all-link {
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  font-weight: 700;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.article-card {
  cursor: pointer;
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-thumb {
  width: 100%;
  position: relative;
  margin-bottom: 12px;
}

.article-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 310 / 175;
  object-fit: cover;
  border-radius: 6px;
}

.article-card-category {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #667eea;
  color: white;
  border-radius: 3px;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  margin-bottom: 8px;
}

.article-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  font-size: 12px;
  color: #999;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}

.tag-item:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Ranking */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ranking-item {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.ranking-number {
  font-size: 18px;
  font-weight: 900;
  color: #667eea;
  min-width: 25px;
}

.ranking-thumb {
  width: 80px;
  flex-shrink: 0;
}

.ranking-thumb-image {
  width: 100%;
  height: auto;
  aspect-ratio: 80 / 45;
  object-fit: cover;
  border-radius: 4px;
}

.ranking-content {
  flex: 1;
  min-width: 0;
}

.ranking-category {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.ranking-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}

/* Footer */
.shortdrama-lab-footer {
  background: #f8f8f8;
  border-top: 1px solid #e5e5e5;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.footer-link:hover {
  color: #333;
}

.footer-company-link {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.footer-company-link::before {
  position: absolute;
  content: "";
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #333;
  pointer-events: none;
}
.footer-company-link:hover {
  color: #667eea;
}

.footer-copy {
  font-size: 12px;
  color: #999;
}

/* Mobile Styles */
@media screen and (max-width: 767.98px) {

  .shortdrama-lab-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .shortdrama-lab-main {
    margin-top: 73px;
  }

  .header-top {
    padding: 12px 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-image {
    width: 180px;
  }

  .header-right {
    display: none;
  }

  /* ハンバーガーボタン */
  .sdl-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    transform: translateY(-2px);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
  }

  .sdl-hamburger-left {
    order: -1;
  }

  .sdl-hamburger-right {
    order: 1;
  }

  .sdl-hamburger-line {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
  }

  /* 左ボタンがアクティブ時（三本線→バツマーク） */
  .sdl-hamburger-left.is-active .sdl-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .sdl-hamburger-left.is-active .sdl-hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .sdl-hamburger-left.is-active .sdl-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sdl-hamburger-en {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    font-size: 10px;
    color: #333;
  }

  .sdl-search-icon {
    width: 24px;
    height: 24px;
    stroke: #333;
    transition: opacity 0.3s;
  }

  /* 右ボタンがアクティブ時（虫眼鏡→バツマーク） */
  .sdl-hamburger-right.is-active .sdl-search-icon {
    opacity: 0;
  }

  .sdl-hamburger-right.is-active::before,
  .sdl-hamburger-right.is-active::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    top: 50%;
    left: 50%;
  }

  .sdl-hamburger-right.is-active::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .sdl-hamburger-right.is-active::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* サイドメニュー */
  .sdl-side-menu {
    position: fixed;
    top: 64px;
    bottom: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .sdl-side-menu.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .sdl-side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .sdl-side-menu-content {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 85vw;
    background: #ffffff;
    overflow-y: auto;
    transition: transform 0.3s ease-out;
    padding: 20px;
  }

  /* 左メニュー */
  .sdl-side-menu-left {
    z-index: 9998;
  }

  .sdl-side-menu-left .sdl-side-menu-content {
    left: 0;
    transform: translateX(-100%);
  }

  .sdl-side-menu-left.is-active .sdl-side-menu-content {
    transform: translateX(0);
  }

  /* 右メニュー */
  .sdl-side-menu-right {
    z-index: 9999;
  }

  .sdl-side-menu-right .sdl-side-menu-content {
    right: 0;
    transform: translateX(100%);
  }

  .sdl-side-menu-right.is-active .sdl-side-menu-content {
    transform: translateX(0);
  }

  /* カテゴリーナビゲーション */
  .sdl-side-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sdl-side-menu-link {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
    transition: color 0.3s;
    position: relative;
  }
  .sdl-side-menu-link:hover {
    color: #667eea;
  }
  .sdl-side-menu-link::after {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transition: color 0.3s;
  }
  .sdl-side-menu-link:hover::after {
    border-top-color: #667eea;
    border-right-color: #667eea;
  }

  /* 検索フォーム */
  .sdl-side-menu-title {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    padding-bottom: 14px;
    border-bottom: 1px solid #333;
    margin-bottom: 14px;
  }

  .sdl-side-menu-search {
    margin-bottom: 30px;
  }

  .sdl-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
  }

  .sdl-search-input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 16px;
    outline: none;
  }

  .sdl-search-input::placeholder {
    color: #999;
  }

  .sdl-search-submit {
    background: #333;
    border: none;
    padding: 13px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
  }

  .sdl-search-submit:hover {
    background: #555;
  }

  .sdl-search-submit-icon {
    width: 16px;
    height: 16px;
    stroke: white;
  }

  /* タグリスト */
  .sdl-side-menu-tags {
    margin-bottom: 20px;
  }

  .sdl-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sdl-tag-item {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
  }

  .sdl-tag-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
  }

  /* ナビゲーションバーを非表示 */
  .nav-bar {
    display: none;
  }

  .nav-container {
    flex-direction: row;
    justify-content: flex-start;
  }

  .nav-primary {
    gap: 20px;
    padding: 10px 0;
  }

  .nav-link {
    font-size: 12px;
  }

  .nav-contact {
    display: none;
  }

  .main-wrapper {
    padding: 20px 15px;
  }

  .content-layout {
    display: flex;
    flex-direction: column;
  }

  .hero-carousel {
    border-radius: 0;
    margin: 0 0 30px;
    padding: 25px 0;
  }

  .swiper-slide.hero-slide {
    width: 75%;
  }

  .hero-overlay {
    padding: 15px;
  }

  .hero-title {
    font-size: 16px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .category-section {
    margin-bottom: 40px;
  }

  .category-title {
    font-size: 18px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-card-title {
    font-size: 14px;
  }

  .article-card-excerpt {
    font-size: 12px;
  }

  .ranking-item:nth-child(n+7) {
    display: none;
  }

  .ranking-thumb {
    width: 70px;
    height: 39px;
  }

  .ranking-number {
    font-size: 16px;
    min-width: 22px;
  }

  .ranking-title {
    font-size: 12px;
  }

  .footer-nav-wrapper {
    flex-direction: column;
  }

  .footer-company-link::before {
    display: none;
  }
}

/* ==========================================
   タクソノミー一覧ページ用スタイル
========================================== */

/* Breadcrumb */
.breadcrumb {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 20px;
  font-size: 12px;
  color: #999;
  list-style: none;
  display: flex;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:first-child)::before {
  content: ">";
  margin: 0 8px;
  color: #999;
}

.breadcrumb-item:last-child {
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.breadcrumb-item a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: #667eea;
}

.breadcrumb-current {
  color: #333;
}

/* Taxonomy Header */
.taxonomy-header {
  margin-bottom: 40px;
}

.taxonomy-title {
  font-size: 28px;
  font-weight: 900;
  color: #333;
  margin-bottom: 15px;
}

.taxonomy-description {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* Article List - 2 Column Grid */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination-btn:hover {
  background: #e8e8e8;
}

.pagination-btn.active {
  background: #667eea;
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #999;
}

/* Mobile Styles for Taxonomy Pages */
@media screen and (max-width: 767.98px) {
  .breadcrumb-list {
    font-size: 11px;
    padding: 12px 15px;
  }

  .taxonomy-title {
    font-size: 22px;
  }

  .taxonomy-description {
    font-size: 13px;
  }

  /* Article list - 1 column on mobile */
  .article-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .pagination-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* ==========================================
   記事詳細ページ用スタイル
========================================== */

/* Article Detail Layout */
.article {
  max-width: 720px;
}

/* Article Header */
.article-header {
  margin-bottom: 30px;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: #667eea;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 15px;
  text-decoration: none;
}

.article-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  color: #333;
  margin-bottom: 15px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Article Eyecatch */
.article-eyecatch {
  width: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.article-eyecatch-image {
  width: 100%;
}

/* Article Content */
.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 50px 0 20px;
  padding-left: 15px;
  border-left: 4px solid #667eea;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 15px;
}

.article-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 10px;
}

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

.article-content ul {
  margin: 20px 0;
}
.article-content ul li {
  padding-left: 24px;
  position: relative;
}
.article-content ul li::before {
  position: absolute;
  top: 12px;
  left: 7px;
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}

.article-content ol {
  margin: 20px 0;
  counter-reset: item;
}
.article-content ol li {
  position: relative;
  padding-left: 30px;
  counter-increment: item;
}
.article-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  top: 0;
  left: 0;
  color: #333;
}

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

.article-content blockquote {
  border-left: 4px solid #e5e5e5;
  padding: 20px;
  background: #f9f9f9;
  font-style: italic;
  margin: 30px 0;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 30px 0;
}

.article-content pre {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 30px 0;
}

.article-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.article-content strong {
  font-weight: bolder;
}

/* Article Tags */
.article-tags {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

.article-tags-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.article-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}

.article-tag:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* SNS Share */
.article-share {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-facebook {
  background: #1877f2;
}

.share-twitter {
  background: #000000;
}

.share-line {
  background: #06c755;
}

.share-hatena {
  background: #00a4de;
}

/* Related Articles */
.related-articles {
  margin-top: 60px;
}

.related-articles-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 3px solid #333;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  transition: background 0.3s;
}

.related-article-item:hover {
  background: #f9f9f9;
}

.related-article-thumb {
  width: 120px;
  flex-shrink: 0;
}

.related-article-image {
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 68;
  border-radius: 4px;
  object-fit: cover;
}

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

.related-article-category {
  font-size: 10px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.related-article-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  margin-bottom: 5px;
}

.related-article-meta {
  font-size: 11px;
  color: #999;
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding: 0;
}

.toc-item {
  margin-bottom: 10px;
}

.toc-link {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.toc-link:hover {
  color: #667eea;
}

/* Mobile Styles for Article Detail */
@media (max-width: 767.98px) {
  .article {
    max-width: 100%;
    order: 1;
  }

  .article-title {
    font-size: 24px;
  }

  .article-eyecatch {
    border-radius: 0;
    margin-bottom: 25px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-content h2 {
    font-size: 20px;
    margin: 40px 0 15px;
  }

  .article-content h3 {
    font-size: 18px;
    margin: 30px 0 12px;
  }

  /* Related articles - order 2 */
  .related-articles {
    order: 2;
    margin-top: 50px;
  }

  .related-article-item {
    gap: 12px;
  }

  .related-article-thumb {
    width: 100px;
    height: 56px;
  }

  .related-article-title {
    font-size: 13px;
  }

  /* Sidebar (ranking only) - order 3 (last) */
  .sidebar {
    position: static;
    order: 3;
  }

  /* Hide TOC on mobile */
  .sidebar-section:has(.toc-list) {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .sdl-side-menu {
    display: none;
  }
}