/* ==============================================
   フロントページ全体
=============================================== */
.front-page {
  padding-bottom: 96px;
}

/* ==============================================
   ヒーロースライダー（マルチスライド・中央フォーカス）
=============================================== */
/* front-hero が clip 役・front-hero__slider が visible ではみ出す構造 */
/* SWELLの l-container（#content）を突き破ってフルワイドに */
.front-hero {
  margin-bottom: 72px;
  overflow: hidden; /* 左右端でスライドをクリップ */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.front-hero__slider {
  overflow: visible !important; /* swiper デフォルトの hidden を解除して左右チラ見せ */
  position: relative; /* nav ボタンの絶対配置基準 */
}

/* 前後ナビゲーションボタン */
.front-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1a17;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.front-hero__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.front-hero__nav--prev { left: 24px; }
.front-hero__nav--next { right: 24px; }

.front-hero__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* 各スライド */
.front-hero__slide {
  position: relative;
  border-radius: 4px;
  background: #140f0d; /* 白っぽいバナーの背景色 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22); /* 白背景バナーをベースから浮かせてはっきり見せる */
  overflow: hidden;

  /* 非アクティブは少し暗く・小さく */
  opacity: 0.55;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* アクティブスライド（.swiper-slide と .front-hero__slide は同一要素なのでスペースなし） */
.swiper-slide-active.front-hero__slide,
.swiper-slide-duplicate-active.front-hero__slide {
  opacity: 1;
  transform: scale(1);
}

/* スライド内リンク・ラッパー */
.front-hero__slide-link,
.front-hero__slide-inner {
  display: block;
  width: 100%;
}

/* 画像：元のアスペクト比のままぴったり収まるように */
.front-hero__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.front-hero__slide-link:hover .front-hero__image {
  transform: scale(1.03);
}

/* バナー未設定時のプレースホルダー（画像がないので高さを確保） */
.front-hero__slide.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(143, 45, 45, 0.5) 0%, #140f0d 100%);
}

.front-hero__empty-label {
  color: rgba(255, 253, 248, 0.5);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

/* ページネーション（ドット） */
.front-hero__pagination {
  margin-top: 16px;
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.front-hero__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(31, 26, 23, 0.25);
  opacity: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.front-hero__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ==============================================
   トップ共通セクション
=============================================== */
.front-section {
  margin-top: 72px;
}

.front-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.front-section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.front-section__more {
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.front-section__body {
  min-height: 160px;
  padding: 32px;
  border: 1px solid var(--color-line);
  background: rgba(255, 253, 248, 0.7);
}

/* ==============================================
   新着作品グリッド
=============================================== */
.front-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.front-work-card {
  position: relative;
  border: 1px solid rgba(122, 60, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 235, 255, 0.94) 100%);
  box-shadow: 0 14px 28px rgba(59, 34, 112, 0.08);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.front-work-card__link {
  display: block;
  height: 100%;
  color: var(--color-text);
}

.front-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 60, 255, 0.24);
  box-shadow: 0 20px 36px rgba(59, 34, 112, 0.14);
}

.front-work-card__thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(236, 227, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.front-work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.front-work-card__link:hover .front-work-card__thumb img {
  transform: scale(1.03);
}

.front-work-card__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.front-work-card__body {
  padding: 14px 14px 16px;
}

.front-work-card__genre {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.front-work-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.front-work-card__credits {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.front-work-card__credit {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.front-work-card__credit-label {
  color: var(--color-text);
}

.front-work-card__credit-value {
  color: inherit;
}

/* ==============================================
   ニュースリスト
=============================================== */
.front-news-list {
  display: grid;
  gap: 14px;
}

.front-news-card__link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 28px;
  border: 1px solid var(--color-line);
  background: rgba(255, 253, 248, 0.7);
  color: var(--color-text);
}

.front-news-card__date {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.front-news-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ==============================================
   作品一覧ページ ヒーロースライダー
=============================================== */
.works-hero {
  margin-bottom: 72px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.works-hero__slider {
  overflow: visible !important;
}

.works-hero__slide {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.55;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.swiper-slide-active.works-hero__slide,
.swiper-slide-duplicate-active.works-hero__slide {
  opacity: 1;
  transform: scale(1);
}

/* リンク・ラッパー：画像のアスペクト比に合わせて伸縮 */
.works-hero__slide-link,
.works-hero__slide-inner {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* 画像：元のアスペクト比のままぴったり収まるように */
.works-hero__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.works-hero__slide-link:hover .works-hero__image {
  transform: scale(1.03);
}

/* ロゴ表示（バナー未設定時） */
.works-hero__slide.is-logo .works-hero__slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(143, 45, 45, 0.5) 0%, #140f0d 100%);
}

.works-hero__logo {
  max-width: 240px;
  height: auto;
  opacity: 0.75;
}

.works-hero__logo-text {
  color: rgba(255, 253, 248, 0.5);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

/* ページネーション */
.works-hero__pagination {
  margin-top: 16px;
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.works-hero__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(31, 26, 23, 0.25);
  opacity: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.works-hero__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ==============================================
   レスポンシブ
=============================================== */
@media (min-width: 1200px) {
  .front-works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .front-page {
    padding-bottom: 72px;
  }

  .front-hero {
    margin-bottom: 48px;
  }

  .front-hero__nav {
    width: 36px;
    height: 36px;
  }

  .front-hero__nav--prev { left: 8px; }
  .front-hero__nav--next { right: 8px; }

  .works-hero {
    margin-bottom: 48px;
  }

  .front-section {
    margin-top: 56px;
  }

  .front-section__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .front-section__body {
    min-height: 120px;
    padding: 24px;
  }

  .front-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .front-work-card__thumb-placeholder {
    min-height: 220px;
  }

  .front-news-card__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
}
