@charset "UTF-8";
/* ==========================================
   変数定義
   ========================================== */

/* 変数定義 */
:root {
  /* カルーセル関連のサイズ変数 */
  --max-carousel-size: 1920px;
  --max-slide-size: 1080px;
  --slide-size-1120: 1080px; /* 掲載作品一覧の幅に合わせる */
  --slide-size-768: 728px; /* 768px - 左右パディング(40px) = 728px */
  --slide-size-576: 536px; /* 576px - 左右パディング(40px) = 536px */
  --slide-gap: 40px;
  --slide-gap-small: 30px;
  --slide-gap-smaller: 20px;
  --slide-gap-smallest: 15px;
  --slide-padding-top-bottom: 8px;
  --slide-mask-size: 94px;
  --slide-mask-size-1120: 78px;
  --slide-mask-size-950: 64px;
  --slide-mask-size-768: 50px;
  --slide-mask-size-576: 40px;
  /* スライド画像のサイズ（幅と高さ） */
  --slide-width: 1080px;
  --slide-height: 532px;
  /* スライドのアスペクト比（高さ÷幅）を計算 */
  --slide-aspect-ratio: 0.4926; /* 532px ÷ 1080px = 0.4926 */
  /* 各ブレイクポイントでのスライド高さを計算 */
  --slide-height-1120: 532px; /* 1080px × 0.4926 = 532px */
  --slide-height-768: 358.61px; /* 728px × 0.4926 = 358.61px */
  --slide-height-576: 264.04px; /* 536px × 0.4926 = 264.04px */
  
  /* 追加変数 - 余白関連 */
  --space-xs: 0.8rem;
  --space-sm: 1.2rem;
  --space-md: 2rem; 
  --space-lg: 3rem;
  --space-xl: 4rem;
  
  /* 追加変数 - ボーダー関連 */
  --border-thin: 0.1rem;
  
  /* 追加変数 - トランジション */
  --transition-duration: 0.3s;
  --transition-timing: ease;
  
  /* 追加変数 - ブレイクポイント用の余白調整 */
  --gap-desktop: 4rem;
  --gap-tablet: 2rem;
  --gap-mobile: 1.5rem;
  --gap-mobile-small: 1.2rem;
  
  /* 追加変数 - フォントサイズ */
  --font-size-xxs: 1rem;
  --font-size-xs: 1.2rem;
  --font-size-sm: 1.4rem;
  --font-size-md: 1.6rem;
  --font-size-lg: 1.8rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 2.4rem;
}

/* ==========================================
   共通コンテナスタイル
   ========================================== */

/* 共通コンテナスタイル */
.header-container,
.main-container {
  width: 100%;
  max-width: 1120px; /* 1080px + 左右パディング(20px*2) = 1120px */
  margin: 0 auto;
  padding: 0 2rem;
}

/* カルーセルは幅を広げる可能性があるため、別途定義 */
.carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ==========================================
   ヘッダースタイル
   ========================================== */

/* ヘッダー */
.header {
  padding: clamp(1.5rem, 2vw, 2rem) 0;
  position: relative;
  background-color: transparent;
  width: 100%;
  margin-bottom: clamp(0.9rem, 2vw, 1.2rem);
}

/* PC用ヘッダー */
.pc-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.pc-header .header-logo {
  width: 35%;
  margin-bottom: 0;
  padding-right: 40px;
  box-sizing: border-box;
}

.pc-header .header-content {
  width: 65%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.pc-header .header-description {
  font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.6rem);
  font-weight: 500;
  text-align: left;
  line-height: 1.48;
  margin-bottom: 0;
  max-width: 60%;
  width: 60%;
  min-width: 0;
}

/* スマホ用ヘッダー */
.sp-header {
  display: none; /* 初期状態では非表示 */
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.sp-header .header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.2rem;
  gap: 3.0rem; /* ロゴとボタンの間に30pxの余白を確保 */
}

.sp-header .header-logo {
  width: auto; /* 自動幅に変更 */
  margin-bottom: 0;
  padding-right: 0; /* 余白はgapで設定するため削除 */
  box-sizing: border-box;
  flex-shrink: 1; /* 画面幅不足時に縮小可能に設定 */
  min-width: 0; /* flexアイテムが必要に応じて縮小できるように */
}

.sp-header .header-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sp-header .header-description {
  /* clampを使用して文字サイズを設定 */
  font-size: clamp(1.0rem, calc(0.5vw + 0.8rem), 1.4rem);
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  margin-bottom: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 共通ヘッダー要素のスタイル */
.header-logo a {
  display: block;
  text-decoration: none;
}

.header-logo img {
  width: 100%;
  max-width: 338px;
  height: auto;
  display: block;
}

/* 中間サイズ対応 */
@media screen and (max-width: 950px) and (min-width: 769px) {
  .pc-header .header-description {
    font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  }
}

.btn-toharta {
  position: relative;
  top: auto;
  right: auto;
  width: 35%;
  max-width: 222px;
  height: auto;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition-duration) var(--transition-timing);
}

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

.btn-toharta img {
  width: 100%;
  height: auto;
  display: block;
}

/* PC/スマホの切り替え */
@media screen and (max-width: 768px) {
  .pc-header {
    display: none; /* PCヘッダーを非表示 */
  }
  
  .sp-header {
    display: flex; /* スマホヘッダーを表示 */
  }
  
  .sp-header .btn-toharta {
    width: auto; /* 自動幅に変更 */
    max-width: none; /* 最大幅の制限を解除 */
    flex-shrink: 1; /* 画面幅不足時に縮小可能に設定 */
    min-width: 0; /* flexアイテムが必要に応じて縮小できるように */
  }
  
  .sp-header .btn-toharta img {
    width: 166px; /* 768px時のボタンサイズを166pxに指定 */
    height: auto; /* アスペクト比を維持するため高さはautoに変更 */
    max-width: 100%; /* ボタンの最大幅を親要素の100%に制限 */
    object-fit: contain; /* アスペクト比を保持 */
  }
  
  .sp-header .header-logo img {
    width: 215px; /* 768px時のロゴサイズを215pxに指定 */
    height: auto; /* アスペクト比を維持するため高さはautoに変更 */
    max-width: 100%; /* ロゴの最大幅を親要素の100%に制限 */
    object-fit: contain; /* アスペクト比を保持 */
  }
  
  /* 450px以下の場合の特別な調整 */
  @media screen and (max-width: 450px) {
    .sp-header .header-top {
      gap: 1.5rem; /* 狭い画面では余白を15pxに縮小 */
    }
    
    /* 縮小率の調整 */
    .sp-header .header-logo {
      flex: 3; /* ロゴにより多くのスペースを割り当て */
    }
    
    .sp-header .btn-toharta {
      flex: 2; /* ボタンには少し少ないスペースを割り当て */
    }
    
    .sp-header .header-description {
      font-size: clamp(0.9rem, calc(0.4vw + 0.75rem), 1.1rem); /* 小さい画面ではフォントサイズを少し小さく */
    }
  }

  /* 389px以下の場合の特別な調整 */
  @media (max-width: 389px) {
    html {
      width: 390px;
      overflow-x: hidden;
    }
    body {
      transform: scale(calc(100vw / 390));
      transform-origin: top left;
      width: 390px;
    }
    
    .wrapper {
      width: 100%;
      /* max-width: 100vw; */
    }
  }
  
  .header {
    padding: 1.2rem 0 0.8rem;
  }
}

/* ==========================================
   カルーセルスタイル
   ========================================== */

/* カルーセルのスタイル */
.splide-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: clamp(2.4rem, calc(1.2rem + 2vw), 4.8rem);
  min-height: calc(var(--slide-height) + 4rem);
  isolation: isolate;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

/* iOSでの装飾表示を修正 */
@supports (-webkit-touch-callout: none) {
  /* iOS Safariのみに適用 */
  .slide-content::before,
  .slide-content::after {
    /* 疑似要素を実際の要素に置き換える場合の対応策 */
    content: '';
    position: absolute;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    z-index: 3;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* ハードウェアアクセラレーションを強制 */
  .splide, 
  .splide__track,
  .splide__list,
  .splide__slide {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
  }
}

/* グラデーションマスク用の固定コンテナ */
.gradient-mask-container {
  position: fixed;
  width: var(--max-carousel-size);
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

/* 左右のグラデーションマスク */
.gradient-mask-container::before,
.gradient-mask-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 16rem;
  height: 100%;
  pointer-events: none;
}

/* 左側のグラデーションマスク */
.gradient-mask-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(235, 230, 230, 1) 0%, rgba(235, 230, 230, 0) 100%);
}

/* 右側のグラデーションマスク */
.gradient-mask-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(235, 230, 230, 1) 0%, rgba(235, 230, 230, 0) 100%);
}

.splide-container {
  position: relative;
  width: 100%;
  max-width: var(--max-carousel-size);
  margin: 0 auto;
  min-height: calc(var(--slide-height) + 4rem);
}

.splide {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: var(--slide-height);
  visibility: visible;
  opacity: 1;
}

#main-carousel {
  transition: opacity 0.3s ease;
}

.splide__track {
  padding: var(--slide-padding-top-bottom) 0;
  position: relative;
}

.splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  cursor: pointer;
  max-width: 100%;
  position: relative;
}

.slide-content {
  width: var(--max-slide-size);
  height: var(--slide-height);
  display: flex;
  justify-content: center;
  position: relative;
  min-width: var(--max-slide-size);
  overflow: visible;
}

/* 画像コンテナのスタイル */
.slide-img-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* 左上の装飾（mask_left.svg） */
.slide-content::before {
  display: none;
}

/* 右下の装飾（mask_right.svg） */
.slide-content::after {
  display: none;
}

/* 新しい装飾要素のスタイル */
.slide-decor-left {
  position: absolute;
  top: calc(-1 * var(--slide-padding-top-bottom));
  left: calc(-1 * var(--slide-padding-top-bottom));
  width: var(--slide-mask-size-1120);
  height: var(--slide-mask-size-1120);
  background: url('../assets/mask_left.svg') no-repeat;
  background-size: contain;
  z-index: 3;
  pointer-events: none;
}

.slide-decor-right {
  position: absolute;
  top: auto;
  left: auto;
  bottom: calc(-1 * var(--slide-padding-top-bottom));
  right: calc(-1 * var(--slide-padding-top-bottom));
  width: var(--slide-mask-size-1120);
  height: var(--slide-mask-size-1120);
  background: url('../assets/mask_right.svg') no-repeat;
  background-size: contain;
  z-index: 3;
  pointer-events: none;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  transition: transform var(--transition-duration) var(--transition-timing);
}

/* スライドホバー時に画像を拡大 */
.splide__slide:hover .slide-img {
  transform: scale(1.05);
}

/* アクティブスライド（中央）のクリックエリアを特別扱い */
.splide__slide.is-active .click-area {
  z-index: 150;
}

/* 左右のナビゲーションボタン */
.splide-nav-button {
  position: absolute;
  top: var(--slide-padding-top-bottom);
  height: var(--slide-height);
  width: var(--max-slide-size);
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

.splide-nav-prev {
  left: calc((min(100vw, var(--max-carousel-size)) - var(--max-slide-size) - var(--slide-gap) * 2) / 2);
  transform: translateX(-100%);
}

.splide-nav-next {
  right: calc((min(100vw, var(--max-carousel-size)) - var(--max-slide-size) - var(--slide-gap) * 2) / 2);
  transform: translateX(100%);
}

/* Splideのページネーションをカスタマイズ */
.splide__pagination {
  position: static;
  padding: 0;
  margin: var(--space-md) 0 0;
  padding-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.6rem;
  z-index: 5;
  position: relative;
}

.splide__pagination li {
  width: 1.6rem;
  height: 1.6rem;
}

.splide__pagination__page {
  min-width: 100%;
  min-height: 100%;
  background: url('../assets/ellipse.svg') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  border: none;
  opacity: 1;
  margin: 0;
  transform: scale(1);
  padding: 0;
}

.splide__pagination__page:hover {
  transform: scale(1.1);
}

.splide__pagination__page.is-active {
  background: url('../assets/ellipse-active.svg') no-repeat center center;
  background-size: contain;
  transform: scale(1);
  opacity: 1;
}

/* ==========================================
   レスポンシブ対応（カルーセル）
   ========================================== */

/* カルーセルのレスポンシブ対応 */
@media screen and (max-width: 1120px) {
  .splide-container {
    transform: scale(calc(min(100vw - 4rem, 1080px) / 1080));
    transform-origin: center top;
    height: calc(var(--slide-height) * (min(100vw - 4rem, 1080px) / 1080));
    margin-bottom: calc(4rem * (min(100vw - 4rem, 1080px) / 1080));
  }
  
  .splide-wrapper {
    height: calc((var(--slide-height) + 4rem) * (min(100vw - 4rem, 1080px) / 1080));
  }

  .slide-decor-left,
  .slide-decor-right {
    width: var(--slide-mask-size-950);
    height: var(--slide-mask-size-950);
  }
  
  .splide-wrapper,
  .splide-container {
    min-height: auto;
  }
  
  .splide {
    min-height: auto;
  }
  
  .slide-content {
    width: calc(min(1080px, 100vw - 4rem));
    height: calc(min(1080px, 100vw - 4rem) * var(--slide-aspect-ratio));
    min-width: auto;
  }
  
  .splide-nav-button {
    width: calc(min(1080px, 100vw - 4rem));
    height: calc(min(1080px, 100vw - 4rem) * var(--slide-aspect-ratio));
  }
  
  .splide-nav-prev {
    left: calc((100vw - min(1080px, 100vw - 4rem) - var(--slide-gap-small) * 2) / 2);
    transform: translateX(-100%);
  }
  
  .splide-nav-next {
    right: calc((100vw - min(1080px, 100vw - 4rem) - var(--slide-gap-small) * 2) / 2);
    transform: translateX(100%);
  }
}

@media screen and (max-width: 768px) {
  .splide-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    height: auto;
    overflow: visible !important;
    transform: none;
  }
  
  .splide-wrapper {
    height: auto;
    min-height: auto;
    overflow: visible !important;
    margin-bottom: clamp(2.4rem, calc(1.2rem + 2vw), 4.8rem);
  }
  
  .main {
    padding-top: 0;
  }

  .splide__track {
    overflow: visible !important;
  }
  
  .splide__list {
    overflow: visible !important;
  }
  
  .splide {
    min-height: auto;
    width: 100%;
    overflow: visible !important;
  }
  
  .splide__slide {
    overflow: visible !important;
    width: 100%;
  }

  .slide-content {
    width: 100%;
    max-width: var(--slide-size-768);
    min-width: auto;
    height: auto;
    overflow: visible !important;
    position: relative;
    margin: 0 auto;
  }
  
  .slide-img-container {
    width: 100%;
    padding-top: calc(var(--slide-aspect-ratio) * 100%);
    position: relative;
    overflow: hidden;
  }
  
  .slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-decor-left,
  .slide-decor-right {
    width: var(--slide-mask-size-768);
    height: var(--slide-mask-size-768);
  }
  
  .slide-decor-left {
    top: -0.8rem;
    left: -0.8rem;
  }
  
  .slide-decor-right {
    bottom: -0.8rem;
    right: -0.8rem;
  }
  
  .splide-nav-button {
    width: 100%;
    max-width: var(--slide-size-768);
    height: 100%;
    top: 0;
    z-index: 2;
  }
  
  .splide-nav-prev {
    left: 0;
    transform: none;
  }
  
  .splide-nav-next {
    right: 0;
    transform: none;
  }
 
  .splide__pagination li {
    width: 1.2rem;
    height: 1.2rem;
  }

  .splide__pagination {
    gap: 2.0rem;
    margin: 1rem 0 0;
  }
  
  @media screen and (max-width: 576px) {
    .slide-decor-left,
    .slide-decor-right {
      width: var(--slide-mask-size-576);
      height: var(--slide-mask-size-576);
    }
    
    .slide-content {
      max-width: var(--slide-size-576);
    }
  }
}

/* ==========================================
   メインコンテンツスタイル
   ========================================== */

/* メインコンテンツ */
.main {
  padding-top: 0;
  background-color: transparent;
}

.content-section {
  margin-bottom: var(--space-md);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
}

.section-line {
  width: 100%;
  height: var(--border-thin);
  background-color: var(--color-line-blue);
  margin-top: 0.4rem;
}

.section-title {
  font-size: var(--font-size-xxl);
  color: var(--color-blue);
  position: relative;
  font-weight: bold;
  white-space: nowrap;
  z-index: 1;
}

.card-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-md);
  isolation: isolate;
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--gap-desktop);
}

.card {
  position: relative;
  width: calc(50% - 2rem);
  max-width: 100%;
  margin-bottom: var(--space-md);
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-img-container {
  position: relative;
  width: 100%;
  padding-top: 49.4%; /* CMSの画像アスペクト比 */
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-duration) var(--transition-timing);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-info {
  padding: 0;
  margin-top: 1.2rem;
}

.author {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-gray);
  padding: 0;
}

.title {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 1rem;
  padding: 0;
}

.description {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  padding: 0;
}

/* 短い説明文用のスタイル */
.short-description {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  padding: 0;
}

/* JSON作品、またはCMSでshortDescriptionが空の場合のみ省略表示 */
.short-description.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-line {
  width: 100%;
  height: var(--border-thin);
  background-color: var(--color-line-gray);
  margin: 0 0 0.8rem 0;
}

/* メディアクエリを追加 */
@media screen and (max-width: 768px) {
  .card-row {
    flex-direction: column;
  }
  
  .card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }
}

/* フッター */
.c-footer {
  /* フッター全体のスタイル */
}

/* Twitter部分 */
.c-twitter {
  font-family: "Quicksand", sans-serif;
  text-align: center;
  padding-top: var(--space-md);
}
@media screen and (min-width: 750px) {
  .c-twitter {
    padding-top: var(--space-md);
    padding-bottom: 6rem;
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
  }
}

@media screen and (min-width: 750px) {
  .c-twitter-txt {
    font-size: 2.8rem;
    letter-spacing: 0.1rem;
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-txt {
    font-size: 1.8rem;
  }
}
.c-twitter-txt::before, .c-twitter-txt::after {
  display: inline-block;
  position: relative;
  background-position: left top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  content: "";
}
@media screen and (min-width: 750px) {
  .c-twitter-txt::before, .c-twitter-txt::after {
    width: 2.5rem;
    height: 2.8rem;
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-txt::before, .c-twitter-txt::after {
    width: 1.6rem;
    height: 1.8rem;
  }
}
@media screen and (min-width: 750px) {
  .c-twitter-txt::before {
    top: 0.5rem;
    left: -0.5rem;
    background-image: url(../assets/bg_twitter_left.svg);
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-txt::before {
    top: 0.2rem;
    left: -0.5rem;
    background-image: url(../assets/bg_twitter_left.svg);
  }
}
@media screen and (min-width: 750px) {
  .c-twitter-txt::after {
    top: 0.3rem;
    left: 0.8rem;
    background-image: url(../assets/bg_twitter_right.svg);
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-txt::after {
    top: 0.2rem;
    left: 0.4rem;
    background-image: url(../assets/bg_twitter_right.svg);
  }
}

.c-twitter-btn {
  display: block;
  margin: 0 auto;
}
@media screen and (min-width: 750px) {
  .c-twitter-btn {
    width: 11rem;
    margin-top: 1.4rem;
  }
  .c-twitter-btn:hover {
    opacity: 0.8;
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-btn {
    margin-top: 0.5rem;
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-btn img {
    width: 5rem;
    height: 5rem;
  }
}
.c-twitter-btn span {
  display: block;
  letter-spacing: 0.1rem;
}
@media screen and (min-width: 750px) {
  .c-twitter-btn span {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
  }
}
@media screen and (max-width: 749.9px) {
  .c-twitter-btn span {
    margin-top: 0.8rem;
    font-size: var(--font-size-xs);
  }
}

/* コピーライト部分 */
.c-copyright {
  text-align: center;
  background-color: var(--color-footer); /* すべてのサイズで背景色を統一 */
  color: var(--color-white); /* すべてのサイズで文字色を統一 */
}
@media screen and (min-width: 750px) {
  .c-copyright {
    padding: 1.5rem 2rem;
  }
}
@media screen and (max-width: 749.9px) {
  .c-copyright {
    padding: 1.5rem 3.5rem 0.5rem;
  }
}
.c-copyright small {
  display: block;
}
@media screen and (min-width: 750px) {
  .c-copyright small {
    margin-top: 1rem;
    font-size: var(--font-size-xxs);
  }
}
@media screen and (max-width: 749.9px) {
  .c-copyright small {
    padding: 1rem 0;
    font-size: var(--font-size-xxs);
  }
}

/* ABJマーク部分 */
.abj-mark {
  margin: 0 auto;
  text-align: left;
}
@media screen and (min-width: 750px) {
  .abj-mark {
    display: flex;
    align-items: center;
    max-width: 108rem;
  }
}

/* ABJマークのリンク色を常に白に */
.abj-mark a {
  color: var(--color-white);
}

.abj-img {
  display: block;
}
@media screen and (max-width: 749.9px) {
  .abj-img {
    width: 7.6rem;
    height: auto;
    margin: 0 auto;
  }
}

.abj-txt {
  line-height: 1.4;
}
@media screen and (min-width: 750px) {
  .abj-txt {
    margin-left: 2rem;
    font-size: var(--font-size-xs);
  }
}
@media screen and (max-width: 749.9px) {
  .abj-txt {
    margin-top: 1.5rem;
    font-size: var(--font-size-xs);
  }
}

/* ==========================================
   モーダルウィンドウスタイル
   ========================================== */

/* モーダルウィンドウ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.is-visible .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 650px;
  background-color: var(--color-background);
  border-radius: 0;
  overflow: hidden;
  margin: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.is-visible .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal-inner {
  display: flex;
  flex-direction: column;
}

.modal-image-container {
  flex: 0 0 auto;
  background-color: #f0f0f0;
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-top: 49.4%;
}

.modal-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-details {
  flex: 1 1 auto;
  padding: 1.6rem 3rem;
  overflow-y: visible;
}

.modal-header {
  margin-bottom: 2.4rem;
}

.modal-title-container {
  margin-bottom: 1.4rem;
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--color-black);
  margin: 0 0 1.4rem 0;
}

.modal-author {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-gray);
  margin: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.modal-section {
  margin-bottom: 0;
}

.modal-section .section-header {
  margin-bottom: 1.2rem;
}

.modal-section .section-title {
  font-size: 1.8rem;
  color: var(--color-black);
  margin: 0;
  line-height: 0.8333333333333334em;
}

.modal-section .section-line {
  height: 0.2rem;
  background-color: #9D9D9D;
  margin-top: 1.2rem;
}

.section-text {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-black);
  margin: 0;
}

.section-links {
  font-size: var(--font-size-sm);
  line-height: 2;
  color: var(--color-blue);
  margin: 0;
  font-weight: 500;
}

/* エピソードリストのスタイル */
.episode-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0 0.8rem;
}

.episode-list li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
}

.episode-list li::before {
  content: "・";
  position: absolute;
  left: -0.6rem;
  top: 0.2rem;
  color: var(--color-blue);
  font-size: var(--font-size-sm);
}

.episode-list li:last-child {
  margin-bottom: 0;
}

.episode-link {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.episode-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* BOOK WALKERコンテナ */
.bookwalker-container {
  margin-bottom: 0.8rem;
}

.bookwalker-link {
  display: block;
  width: calc(50% - 0.4rem);
}

.bookwalker-link img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ストアリンク */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
}

.store-link.bookwalker-link {
  display: block;
  width: calc(50% - 0.4rem);
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(25% - 0.6rem);
}

.store-link img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-link:hover {
  opacity: 0.8;
}

/* 閉じるボタン */
.modal-close-top-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1002;
  background: none;
  border: none;
  cursor: pointer;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.modal-close-top-btn:hover {
  opacity: 0.8;
}

.modal-close-top-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.4rem auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.modal-close-btn:hover {
  opacity: 0.8;
}

.modal-close-btn img {
  width: 3.2rem;
  height: 3.2rem;
}

.modal-close-btn span {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .modal-content {
    max-width: 364px;
  }

  .modal-details {
    padding: 1.6rem 2rem;
  }

  .modal-title {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
  }

  .modal-author {
    font-size: var(--font-size-sm);
  }

  .modal-body {
    gap: 2rem;
  }

  .modal-section {
    margin-bottom: 2rem;
  }

  .modal-section .section-title {
    font-size: var(--font-size-md);
  }

  .episode-link {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .episode-list li {
    padding-left: 1rem;
  }

  .episode-list li::before {
    font-size: 1.2rem;
    top: -0.1rem;
  }
  
  .bookwalker-container {
    margin-bottom: 0.3rem;
  }

  .store-links {
    gap: 0.6rem;
  }

  .store-link.bookwalker-link {
    width: calc(66.667% - 0.15rem);
  }

  .store-link {
    width: calc(33.333% - 0.4rem);
  }

  .modal-close-top-btn {
    top: 0.8rem;
    right: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .modal-close-btn {
    margin: 2rem auto;
  }
}

/* モバイルサイズでの左右ボタン非表示 */
@media (max-width: 768px) {
  .splide-nav-button {
    display: none !important;
  }
}

/* 空でない場合のみ表示する設定 */
.modal-section p:not(:empty)::before {
  content: "";
  display: block;
  margin-bottom: 10px;
}

.description:not(:empty)::before {
  content: "";
  display: block;
  margin-top: 10px;
}

/* スワイプ中のトランジション制御 */
.is-dragging .card-img {
  transition: none !important;
}

@media screen and (max-width: 389px) {
  .modal-overlay {
    padding: 1rem;
  }

  .modal-content {
    width: 100%;
    max-height: 80vh;
    margin: auto;
    transform: scale(0.9);
    transform-origin: center center;
  }

  .modal-details {
    padding: 1.2rem 1.6rem;
  }

  .modal-image-container {
    max-height: 40vh;
    overflow: hidden;
  }

  .modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .store-link {
    width: calc(33.333% - 0.4rem);
  }

  .modal-close-top-btn {
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
  }

  .modal-close-btn {
    margin: 1.6rem auto;
  }

  .modal-close-btn img {
    width: 2.4rem;
    height: 2.4rem;
  }
}
