@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/*----------------------------------------------------------------------------------------------------*/
/**
 * カラーパレット
 */
:root {
  --primary: #e60063; /* PSI: #f24875 > #E60063 */
  --primary-light: #fb86a1;
  --primary-dark: #c63766;
  --bg-primary: #fffafd;
  /* --secondary:      #48F2C8;  
  --secondary-light:#86f2c8;
  --secondary-dark: #37c69a; */
  --secondary: #ffd768;
  --secondary-light: #fff4db;
  --secondary-dark: #ffaf58;

  --bg-secondary: #fffaed;

  --side-light: #c25353;
  --side-dark: #c25353;

  --bg-header: #313948;

  /* 詳細ページのカラーパレット */
  --detail-tag-bg: #f2f2f2;
  --detail-tag-text: #4089ae;
  --detail-review-border: #ddd;
  --detail-button-bg: #e60063;
  --detail-button-shadow: #fb86a1;

  /* グレーライクカラーパレット */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #e9ecef;

  --color-text-primary: #495057;
  --color-text-secondary: #6c757d;
  --color-text-inverse: #ffffff;

  --color-border-light: #dee2e6;
  --color-border-medium: #adb5bd;
  --color-border-dark: #495057;

  --color-surface-hover: #f8f9fa;
  --color-surface-active: #495057;

  /* 動画コンポーネント用 */
  --color-shadow-light: rgba(0, 0, 0, 0.08);
  --color-shadow-medium: rgba(0, 0, 0, 0.15);
  --color-overlay-dark: rgba(0, 0, 0, 0.7);
  --color-overlay-light: rgba(255, 255, 255, 0.9);
}

.logo-text {
  padding: 0px 0 10px;
}

/************************************
** モバイル用ヘッダーのスタイル
************************************/
.menu-content .menu-drawer {
  padding-top: 24px;
}

.menu-drawer a {
  padding: 0px 0px 0px 4px;
  line-height: 1.6em;
  border-bottom: solid 1px #e6e6e6;
  font-weight: bold;
}

.hamburger-section {
  line-height: 1.6em;
  padding-top: 16px;
}

.hamburger-list {
  padding: 0 1em 30px;
}

.hamburger-list__title {
  border-bottom: solid 1px #e6e6e6;
  padding-left: 4px;
  padding-bottom: 4px;
  font-weight: bold;
}

.hamburger-list__content ul {
  padding-left: 0px;
}

.hamburger-list__content li {
  list-style: none;
  border-bottom: solid 1px #e6e6e6;
  padding: 4px 0 4px 16px;
}

.hamburger-list__content a {
  color: var(--cocoon-text-color);
}

/************************************
** 詳細ページのスタイル
************************************/

.detail-chapter {
  margin-left: 16px;
  margin-right: 16px;
}

.detail-chapter img {
  border-radius: 4px;
}

.detail-video {
  text-align: center;
}

.detail-tag__title label {
  padding-left: 4px;
}

.detail-tag__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 32px;
}

.detail-tag__item {
  background-color: var(--detail-tag-bg);
  padding: 8px 16px;
  border-radius: 24px;
}

.detail-tag__link {
  text-decoration: none;
  color: var(--detail-tag-text);
}

.detail-voice-review {
  border-bottom: 1px solid var(--detail-review-border);
  margin-bottom: 16px;
}

.detail-button {
  width: 100%; /* ボタンの横幅を設定 */
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.detail-button__link {
  width: 90%; /* ボタンの横幅を設定 */
  text-align: center;
  text-decoration: none !important; /* デフォルトのaタグのアンダーラインを無効化 */
  color: #fff;
  background: var(--detail-button-bg);
  font-weight: bold; /* 文字を太文字に */
  padding: 0.8rem 2rem;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0.1em 0.1em var(--primary-light);
  transition: 0.3s !important;
}

/* Fanzaへの遷移ボタン(マウスオーバー時のデザイン) */
.detail-button__link:hover {
  color: #fff; /* マウスオーバー時に文字色を変更させないよう色を指定 */
  box-shadow: 0 0.5em 0.5em var(--detail-button-shadow);
  transform: translateY(-0.25em);
}

.fa-crown {
  margin-right: 4px;
}

/************************************
** ピラー記事用のスタイル
************************************/
.pillar-section {
  margin-bottom: 30px;
}

.pillar-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
}

.pillar-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-primary);
  text-align: center;
}

.pillar-section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* タイトルとリンクの間隔 */
}

.pillar-more-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
}

.pillar-more-link:hover {
  text-decoration: underline;
}

/************************************
** 動画コンポーネント共通スタイル
************************************/

/* 共通：カードホバーエフェクト */
.video-card-hover {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.video-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-medium);
}

/* 共通：画像スタイル */
.video-image {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* 共通：画像ホバーズーム */
.video-image-zoom {
  transition: transform 0.2s ease;
}

.video-card-hover:hover .video-image-zoom {
  transform: scale(1.05);
}

/* 共通：再生アイコン */
.video-play-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 共通：リンクスタイル */
.video-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* 共通：タイトル行数制限 */
.video-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* 共通：メタ情報スタイル */
.video-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/************************************
** 動画横スクロールコンポーネント
************************************/
.video-horizontal-scroll {
  overflow: hidden;
  position: relative;
}

.video-horizontal-scroll__container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 8px 0 16px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.video-horizontal-scroll__container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.video-horizontal-scroll__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-overlay-light);
  box-shadow: 0 2px 8px var(--color-shadow-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.video-horizontal-scroll__nav:hover {
  background: var(--color-bg-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.video-horizontal-scroll__nav--prev {
  left: 8px;
}

.video-horizontal-scroll__nav--next {
  right: 8px;
}

.video-horizontal-scroll__nav-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-text-primary);
  transition: fill 0.2s ease;
}

.video-horizontal-scroll__nav:hover .video-horizontal-scroll__nav-icon {
  fill: #000;
}

.video-horizontal-scroll__item {
  flex: 0 0 auto;
  width: 320px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.video-horizontal-scroll__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-horizontal-scroll__image {
  height: 157px;
  /* 共通スタイルを使用 */
}

/************************************
** 関連タグリストコンポーネント
************************************/
.related-tag-list {
  margin-top: 4px;
}

.related-tag-list__container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.related-tag-list__item {
  flex: 0 0 auto;
}

.related-tag-list__link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.related-tag-list__link:hover {
  background: var(--color-surface-active);
  border-color: var(--color-surface-active);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow-light);
}

.related-tag-list__link:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px var(--color-shadow-light);
}

.related-tag-list__text {
  display: inline-block;
}

/************************************
** 動画ランキングコンポーネント
************************************/
.video-ranking {
  margin-top: 4px;
}

.video-ranking__header {
  text-align: center;
}

.video-ranking__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--color-text-primary);
}

.video-ranking__subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
}

.video-ranking__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-ranking__item {
  background: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow-light);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-ranking__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-ranking__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
}

.video-ranking__rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-overlay-dark);
  color: var(--color-text-inverse);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.video-ranking__rank-number--top {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.video-ranking__link {
  /* 共通スタイルを使用 */
}

.video-ranking__image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.video-ranking__image {
  height: 100%;
  /* 共通スタイルを使用 */
}

.video-ranking__play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-overlay-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.video-ranking__item:hover .video-ranking__play-overlay {
  opacity: 1;
}

.video-ranking__play-icon {
  /* 共通スタイルを使用 */
  fill: var(--color-text-inverse); /* ランキング用は白色を維持 */
}

.video-ranking__content {
  padding: 12px 12px 8px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-ranking__video-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--color-text-primary);
  /* 共通スタイルを使用 */
}

.video-ranking__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.video-ranking__item-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-ranking__item-category {
  display: inline-block;
  padding: 2px 6px;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.video-ranking__item-category:hover {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  border-color: var(--color-border-dark);
  transform: translateY(-2px);
}

.video-ranking__date {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.video-ranking__views {
  font-weight: 500;
}

/* ページング */
.video-ranking__pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--color-border-light);
}

.video-ranking__pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-ranking__pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.video-ranking__pagination-btn:hover {
  background: var(--color-surface-active);
  border-color: var(--color-surface-active);
  color: var(--color-text-inverse);
}

.video-ranking__pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px;
}

.video-ranking__pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.video-ranking__pagination-number:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-medium);
  color: var(--color-text-primary);
}

.video-ranking__pagination-number--current {
  background: var(--color-surface-active);
  border-color: var(--color-surface-active);
  color: var(--color-text-inverse);
  cursor: default;
}

.video-ranking__pagination-number--current:hover {
  background: var(--color-surface-active);
  border-color: var(--color-surface-active);
  color: var(--color-text-inverse);
}

.video-ranking__pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.video-ranking__pagination-info {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  font-weight: 500;
}

.video-ranking__pagination-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/************************************
** サイドバー用のスタイル
************************************/
.widget-sidebar ul {
  padding-left: 20px;
}

.widget-sidebar li {
  font-size: 16px;
}

.sidebar-tag__list li::marker {
  font-size: 0.6rem;
}

.sidebar-tag__list a {
  text-decoration: none;
}

/************************************
** フッター用のスタイル
************************************/
.footer-link {
  text-align: center;
}

.footer-link {
  padding-left: 0px;
}

.footer-link__item {
  list-style: none;
}

.footer-link__item a {
  text-decoration: none;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1024px以上*/
@media screen and (min-width: 1024px) {
  /* .single .main {
    width: 800px;
  }

  .single .wrap {
    width: 1062px;
  }

  .single #sidebar {
    width: 240px;
  } */
}

/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
  .video-ranking__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .video-ranking__image-wrapper {
    height: 140px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
  .single .wrap {
    width: auto;
  }

  .single .main {
    width: auto;
  }

  .video-horizontal-scroll {
    padding: 0 16px;
  }

  .video-horizontal-scroll .video-horizontal-scroll__nav {
    display: none !important; /* スマホでは矢印ボタンを非表示 */
  }

  .video-horizontal-scroll__item {
    width: 280px;
  }

  .video-horizontal-scroll__image {
    height: 135px;
  }

  .video-horizontal-scroll__content {
    padding: 12px;
  }

  .related-tag-list {
  }

  .related-tag-list__container {
    gap: 6px;
  }

  .related-tag-list__link {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 18px;
  }

  .video-ranking__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-ranking__image-wrapper {
    height: 120px;
  }

  .video-ranking__content {
    padding: 10px 10px 6px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .video-ranking__video-title {
    font-size: 12px;
    margin: 0 0 4px 0;
  }

  .video-ranking__meta {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .video-ranking__item-categories {
    gap: 3px;
  }

  .video-ranking__item-category {
    padding: 1px 4px;
    font-size: 12px;
    border-radius: 6px;
  }

  .video-ranking__pagination {
    padding: 16px 0;
  }

  .video-ranking__pagination-nav {
    gap: 6px;
  }

  .video-ranking__pagination-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .video-ranking__pagination-numbers {
    margin: 0 8px;
    gap: 3px;
  }

  .video-ranking__pagination-number {
    min-width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .video-ranking__pagination-dots {
    min-width: 38px;
    height: 38px;
  }

  .video-ranking__pagination-info {
    font-size: 13px;
  }

  .video-ranking__categories {
    margin-top: 20px;
    padding-top: 16px;
  }

  .video-ranking__categories-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .video-ranking__categories-list {
    gap: 6px;
  }

  .video-ranking__category-link {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 18px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
  .single .wrap {
    width: auto;
  }

  .single .main {
    width: auto;
  }

  .detail-button__link {
    width: 100%;
  }

  .video-ranking__container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .video-ranking__image-wrapper {
    height: 180px;
  }

  .video-ranking__content {
    padding: 8px 8px 4px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .video-ranking__video-title {
    font-size: 14px;
    margin: 0 0 3px 0;
  }

  .video-ranking__meta {
    font-size: 9px;
    margin-bottom: 3px;
  }

  .video-ranking__item-categories {
    gap: 2px;
  }

  .video-ranking__item-category {
    padding: 1px 3px;
    font-size: 12px;
    border-radius: 6px;
  }

  .video-ranking__title {
    font-size: 20px;
  }

  .video-ranking__pagination {
    padding: 20px 0;
    gap: 12px;
  }

  .video-ranking__pagination-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .video-ranking__pagination-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .video-ranking__pagination-numbers {
    margin: 0 4px;
    gap: 2px;
  }

  .video-ranking__pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .video-ranking__pagination-dots {
    min-width: 36px;
    height: 36px;
  }

  .video-ranking__pagination-info {
    font-size: 12px;
  }

  .video-ranking__categories {
    margin-top: 16px;
    padding-top: 12px;
  }

  .video-ranking__categories-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .video-ranking__categories-list {
    gap: 4px;
  }

  .video-ranking__category-link {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 16px;
  }

  .related-tag-list__link {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 16px;
  }

  .videoPage__voicePlayer {
    position: relative;
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    padding-top: 30px;
  }

  .videoPage__voicePlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/************************************
** アーカイブページソート機能
************************************/

/* タイトルとソートボタンの横並び表示 */
.archive-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.archive-title {
  margin: 0 !important;
  flex: 1;
  min-width: 0;
}

.archive-title-sort {
  flex-shrink: 0;
}

.archive-title-sort .archive-sort-controls {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.archive-title-sort .archive-sort-buttons {
  margin: 0;
  justify-content: flex-end;
}

.search-form-wrapper {
  width: 100%;
  margin-top: 20px;
}

/* ソートボタンスタイル */
.archive-sort-controls {
  margin: 20px 0 30px 0;
  padding: 20px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow-light);
}

.archive-sort-controls.inline {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.archive-sort-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.archive-sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border-light);
  border-radius: 8px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.archive-sort-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow-light);
}

.archive-sort-btn.active {
  background: var(--color-surface-active);
  border-color: var(--color-border-dark);
  color: var(--color-text-inverse);
}

.archive-sort-btn.active:hover {
  background: var(--color-surface-active);
  border-color: var(--color-border-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow-medium);
}

.archive-sort-btn .fa {
  font-size: 14px;
}

/* モバイル対応：画面幅が狭い時は縦並びに */
@media screen and (max-width: 768px) {
  .archive-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .archive-title-sort {
    width: 100%;
  }

  .archive-title-sort .archive-sort-buttons {
    justify-content: center;
  }

  .archive-sort-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/************************************
** 動画詳細ページ専用スタイル
************************************/

.videoPage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* タイトル */
.videoPage__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0 0 20px;
  word-wrap: break-word;
}

/* メインコンテンツ（動画+サイドバー） */
.videoPage__mainContent {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.videoPage__videoFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.videoPage__twitterFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videoPage__twitterFrame iframe,
.videoPage__twitterFrame .twitter-video,
.videoPage__twitterFrame .twitter-tweet {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.videoPage__twitterImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.videoPage__playOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videoPage__playButton {
  width: 68px;
  height: 68px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videoPage__playButton i {
  font-size: 24px;
  color: #ffffff;
  margin-left: 3px;
}

/* `aspect-ratio` 未対応ブラウザ用フォールバック */
@supports not (aspect-ratio: 1 / 1) {
  .videoPage__twitterFrame {
    padding-top: 56.25%; /* 16:9 = 9/16 */
  }
}

/* サイドバー全体をフレックスレイアウトに */
.videoPage__sidebar {
  display: flex;
  flex-direction: column;
  height: 100%; /* 動画の高さと同じに */
  gap: 4px;
}

/* オリジナルリンクエリアを残りの高さ全てに */
.videoOriginal--fullHeight {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

/* オリジナルリンクボタンを高さ全体に */
.videoOriginal__button--fullHeight {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #ff6b6b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #ff5252;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  min-height: 48px;
}

.videoOriginal__button--fullHeight:hover {
  color: white;
  transform: translateY(-2px);
}

.videoOriginal__button--fullHeight i {
  margin-right: 8px;
}

/* メタ情報 - コンパクトデザイン */
.videoMeta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

/* タグ */
.videoMeta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.videoMeta__tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 0.8rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.videoMeta__tag:hover {
  background: var(--color-surface-active);
  border-color: var(--color-surface-active);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow-light);
}

/* 投稿ユーザー情報 */
.videoPage__author {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px var(--color-shadow-light);
}

.authorInfo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.authorInfo__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.authorInfo__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-secondary);
  border-radius: 50%;
  border: 2px solid var(--color-border-light);
}

.authorInfo__avatar i {
  font-size: 24px;
  color: var(--color-text-secondary);
}

.authorInfo__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.authorInfo__name a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.authorInfo__name a:hover {
  color: var(--primary);
}

.authorInfo__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border-light);
  margin: 0;
}

.authorInfo__description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.authorInfo__details {
  flex: 1;
  min-width: 0;
}

.authorInfo__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* 音声再生プレイヤー */
.videoPage__voicePlayer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

/* 本文 */
.videoPage__content {
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  line-height: 1.7;
  margin-bottom: 30px;
}

.videoPage__content h2,
.videoPage__content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

.videoPage__content p {
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

/* 動画下メタ情報 */
.videoMetaInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.8rem;
}

.videoMetaInfo__left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.videoMetaInfo__item {
  font-size: 0.9rem;
  color: #000;
  font-weight: 500;
}

.videoMetaInfo__item--runtime::before {
  content: "⏱ ";
  margin-right: 4px;
}

.videoMetaInfo__item--date::before {
  content: "📅 ";
  margin-right: 4px;
}

.videoMetaInfo__right {
  display: flex;
  align-items: center;
}

.videoMetaInfo__original {
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.videoMetaInfo__original:hover {
  background: var(--color-surface-active);
  border-color: var(--color-surface-active);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow-light);
}

/* 関連動画 */
.videoPage__related {
  margin-top: 40px;
}

.videoPage__relatedTitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* 動画ページ レスポンシブ対応 */
@media (max-width: 1024px) {
  .videoPage__mainContent {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .authorInfo__avatar {
    width: 36px;
    height: 36px;
  }

  .authorInfo__avatar i {
    font-size: 20px;
  }

  .authorInfo__name {
    font-size: 0.9rem;
  }

  .authorInfo__description {
    font-size: 0.75rem;
  }

  .authorInfo__meta {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .videoPage__title {
    font-size: 1.4rem;
  }

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

  .videoPage__metaInfo {
    padding: 0 15px;
  }

  .videoMetaInfo {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px 0;
  }

  .videoMetaInfo__left {
    justify-content: center;
    gap: 16px;
  }

  .videoMetaInfo__right {
    justify-content: center;
  }

  .videoMeta {
    padding: 10px 12px;
  }

  .videoMeta__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .videoMeta__item {
    flex: 1;
    min-width: 0;
  }

  .authorInfo__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .authorInfo__avatar {
    width: 48px;
    height: 48px;
  }

  .authorInfo__avatar i {
    font-size: 28px;
  }

  .authorInfo__name {
    font-size: 1.1rem;
  }

  .authorInfo__description {
    font-size: 0.9rem;
    text-align: center;
  }

  .authorInfo__meta {
    font-size: 0.9rem;
  }

  .relatedVideos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .videoPage__title {
    font-size: 1.2rem;
  }

  .videoPage__content {
    padding: 20px;
  }

  .videoPage__metaInfo {
    padding: 0 10px;
  }

  .videoMetaInfo {
    padding: 10px 0;
  }

  .videoMetaInfo__left {
    gap: 12px;
  }

  .videoMetaInfo__item {
    font-size: 0.85rem;
  }

  .videoMetaInfo__original {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .videoMeta {
    padding: 8px 10px;
  }

  .videoMeta__row {
    flex-direction: column;
    align-items: stretch;
  }

  .videoMeta__item {
    padding: 3px 6px;
    font-size: 0.75rem;
  }

  .videoMeta__tag {
    padding: 2px 6px;
  }

  .videoPage__author {
    padding: 15px;
  }

  .authorInfo__header {
    gap: 6px;
  }

  .authorInfo__avatar {
    width: 42px;
    height: 42px;
  }

  .authorInfo__avatar i {
    font-size: 24px;
  }

  .authorInfo__name {
    font-size: 1rem;
  }

  .authorInfo__description {
    font-size: 0.85rem;
  }
}

/* Gallery responsive heights */
@media (max-width: 1024px) {
  .gallery__main { height: 420px; }
}
@media (max-width: 768px) {
  .gallery__main { height: 360px; }
}
@media (max-width: 480px) {
  .gallery__main { height: 280px; }
}

/* --- Gallery Base --- */
.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 4px;
  border: 1px solid #eee;
  box-sizing: border-box; /* ボーダー/パディング込みで100%に収める */
  max-width: 100%; /* 親幅を超えない */
  overflow: hidden; /* 念のため横溢れ抑止 */
}

/* --- Main Image --- */
.gallery__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 540px; /* メイン画像領域を一定高さに固定（PC） */
}
.gallery__link { /* 画像アンカーも幅・高さを制御 */
  display: block;
  width: 100%;
  height: 100%;
}
.gallery__img {
  width: 100%;
  height: 100%; /* 常にコンテナの高さにフィット */
  object-fit: contain; /* アスペクト比を維持して収める */
  border-radius: 4px;
}

/* --- Thumbnails --- */
.gallery__thumbs {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  position: relative;
  overflow: hidden; /* コンテナからはみ出さない */
  padding: 0 0; /* 余白は親側で管理（必要なら左右にスペースを） */
}
.gallery__thumbs-track {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;   /* 横スクロール */
  overflow-y: hidden; /* 縦方向は隠す */
  -webkit-overflow-scrolling: touch; /* iOS 慣性スクロール */
  scroll-behavior: smooth;
  padding: 8px 0;
  margin: 0; /* マージンでの左右確保はオーバーフロー原因になるため排除 */
}
.gallery__thumbs-track::-webkit-scrollbar { /* 必要に応じて非表示 */
  height: 8px;
  display: none;
}
.gallery__thumb {
  width: 80px;     /* 一定幅のサムネイル */
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  flex: 0 0 auto;  /* 折り返さず横並び・縮まない */
  transition: transform 0.2s;
}
.gallery__thumb:hover {
  transform: scale(1.05);
}
.gallery__thumb.is-active {
  margin: 2px;
  outline: 2px solid #ffc400;
}

/* --- Navigation Buttons (Common) --- */
.gallery__nav,
.gallery__thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30, 30, 30, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.gallery__nav:hover,
.gallery__thumbs-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* --- Main Image Navigation --- */
.gallery__nav {
  opacity: 0;
}
.gallery:hover .gallery__nav {
  opacity: 1;
}
.gallery__nav--prev {
  left: 10px;
}
.gallery__nav--next {
  right: 10px;
}

/* --- Thumbnail Navigation --- */
.gallery__thumbs-nav--prev {
  left: 0;
}
.gallery__thumbs-nav--next {
  right: 0;
}

/* --- Dots Indicator --- */
.gallery__dots {
  display: none;
  text-align: center;
  padding: 10px 0;
}
.gallery__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery__dot--active {
  background-color: #333;
  transform: scale(1.2);
}

/* --- Lightbox --- */
#baguetteBox-overlay img {
  max-height: 80% !important;
}

/* --- Mobile Styles --- */
@media (max-width: 767px) {
  .gallery__nav {
    display: none;
  }
  .gallery__main {
    padding: 0 40px; /* Space for swipe */
  }
  .gallery__thumbs {
    display: none;
  }
  .gallery__dots {
    display: block;
  }
}
