/* --------------------------------------------
  SOZO AIコンテスト受賞作品エリア
  ベースフォントサイズが異なるため、
  /campaign/brz-sozo-2025/css/style.cssから
  移植と調整
-------------------------------------------- */


/* ===== style.css ===== */
:root {
  --subaru-blue: #071391;
  --ease: cubic-bezier(0.4, 0.4, 0, 1);
  --duration: 0.3s;
  --vw-safe: min(100vw, calc(100vh * 16 / 9));
}
/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.6rem, 2vw, 3.2rem);
  z-index: 1000;
  pointer-events: none;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}
.modal[aria-hidden="false"] {
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  background: #fff;
  color: var(--subaru-blue);
  width: min(1200px, 90vw);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--subaru-blue);
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
  z-index: 1;
  z-index: 100000;
}
.modal[aria-hidden="false"] .modal-dialog {
  opacity: 1;
}

.modal-header {
  padding: 1.36rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--subaru-blue);
}
.modal-title {
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: 500;
}
.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 0;
}
.modal-close:hover {
  opacity: 0.75;
}
.modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal-body {
  padding: 1.76rem 2rem 2rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--subaru-blue) transparent;
  line-height: 1.75;
  font-size: 1.44rem;
}
.modal-body p {
  margin: 0 0 1.6rem;
}
.modal-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.6rem;
}
.modal-image {
  width: min(90%, 500px);
  height: auto;
  display: block;
}
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: #f2f4fb;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--subaru-blue);
}

/* Lock scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* pseudo overlay */
.modal::before {
  content: "";
  position: fixed; /* viewport 全体をカバー */
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.74));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none; /* 非表示状態はクリック通過 */
}
.modal[aria-hidden="false"]::before {
  opacity: 1;
  pointer-events: auto; /* 表示時は背景クリックで閉じられるようイベント取得 */
}

@media (max-width: 540px) {
  .contact-content {
    padding: 2rem 2rem 2.4rem;
  }
  .modal-dialog {
    width: 100%;
    max-height: 90dvh;
  }
  .modal-body {
    font-size: 1.44rem;
  }
}

/* ===== KV ===== */
.badge-sozo {
  width: fit-content;
  padding: .2em;
  font-size: 2.4rem;
  font-weight: var(--fwBold);
  line-height: 1;
  background-color: var(--white);
}
@media screen and (max-width: 768px) {
  .badge-sozo {
    font-size: 1.6rem;
    position: absolute;
    bottom: 20px;
  }
}

/* ===== 受賞作品カルーセル ===== */
.award-works {
  /* background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%); */
  overflow: hidden;
}

.award-carousel-container {
  width: 100%;
  /* max-width: 1400px; :*/
  margin: 0 auto;
  padding: 0 20px;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}

.award-carousel {
  overflow: visible;
  padding: 1.6rem 0;
}

/* 受賞カルーセル: ページネーション（ドット） */
.award-carousel .swiper-pagination {
  position: static;
  margin-top: 12px;
  text-align: center;
}

.award-carousel .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--subaru-blue);
  opacity: 0.25;
}

.award-carousel .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Swiper 初期化前（JS読み込み前）に縦積み/薄表示にならないようにする */
.award-carousel:not(.swiper-initialized) .swiper-button-prev,
.award-carousel:not(.swiper-initialized) .swiper-button-next {
  display: none;
}

.award-carousel:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  justify-content: center;
}

.award-carousel:not(.swiper-initialized) .swiper-slide {
  display: none;
}

.award-carousel:not(.swiper-initialized) .swiper-slide:first-child {
  display: flex;
  width: calc(100% / 1.5);
  max-width: 100%;
}

@media (min-width: 640px) {
  .award-carousel:not(.swiper-initialized) .swiper-slide:first-child {
    width: calc(100% / 2);
  }
}

@media (min-width: 1024px) {
  .award-carousel:not(.swiper-initialized) .swiper-slide:first-child {
    width: calc(100% / 3);
  }
}

.award-carousel:not(.swiper-initialized) .award-slide {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.award-carousel .swiper-slide {
  display: flex;
  border: 8px solid var(--subaru-blue);
}

/* 最優秀賞のみ: 金色グラデーション枠 */
.award-carousel .swiper-slide.award-slide--grand {
  border: 8px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
        135deg,
        #b8860b 0%,
        #ffd76a 22%,
        #fff3b0 50%,
        #ffd76a 78%,
        #b8860b 100%
      )
      border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

@supports (background: conic-gradient(from 0deg, #000, #fff)) {
  .award-carousel .swiper-slide.award-slide--grand {
    background:
      linear-gradient(#fff, #fff) padding-box,
      conic-gradient(
          from 210deg,
          #916a00 0deg,
          #f6d36b 40deg,
          #fff7c7 70deg,
          #d6a21a 110deg,
          #fff1ad 150deg,
          #b07f00 200deg,
          #fff7c7 250deg,
          #f6d36b 300deg,
          #a07707 360deg
        )
        border-box;
  }
}

.award-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.award-slide.swiper-slide-active {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.award-slide.swiper-slide-prev,
.award-slide.swiper-slide-next {
  transform: scale(0.85) !important;
  opacity: 0.6 !important;
}

.award-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  opacity: 0.4 !important;
}

.award-video-wrapper {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 40px rgba(7, 19, 145, 0.2);
}

.award-video,
.award-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 受賞作品: 再生ボタン（モーダル再生） */
.award-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 140px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--subaru-blue);
  border: 2px solid var(--subaru-blue);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.award-play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--subaru-blue);
  transform: translateX(1px);
}

.award-play-btn:hover {
  transform: scale(1.04);
}

.award-play-btn:active {
  transform: scale(0.98);
}

.award-play-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* 中央（アクティブ）スライドのみ再生ボタンを表示 */
.award-slide .award-play-btn {
  display: none;
}

.award-slide.swiper-slide-active .award-play-btn {
  display: inline-flex;
}

/* Swiper初期化前は1枚表示なのでボタンを表示 */
.award-carousel:not(.swiper-initialized) .award-slide .award-play-btn {
  display: inline-flex;
}

/* モーダル内の動画レイアウト */
.award-modal-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* 受賞作品動画: ほぼ全画面オーバーレイ */
.award-video-modal {
  --award-video-modal-header-h: 56px;
}

.award-video-modal .modal-dialog {
  /* 9:16の縦長動画に合わせて、画面内（最大90vh）で最大化 */
  width: min(90vw, calc((90vh - var(--award-video-modal-header-h)) * 9 / 16));
  height: auto;
  max-height: 90vh;
  border: none;
  box-shadow: none;
  background: #000;
}

.award-video-modal .modal-body {
  padding: 0;
  overflow: hidden; /* モーダル中スクロールしない */
  height: auto;
  display: flex;
  flex-direction: column;
}

/* 既存モーダルヘッダーに合わせて高さを揃える（受賞作品のみ） */
.award-video-modal .modal-header {
  height: var(--award-video-modal-header-h);
  padding: 0 1.6rem;
  flex: 0 0 auto;
}

.award-video-modal .modal-title {
  justify-content: flex-start;
}

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

.award-info {
  text-align: center;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.award-name {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--subaru-blue);
  display: inline;
  word-break: keep-all;
}

.award-title {
  font-size: 2.24rem;
  font-weight: 600;
  color: var(--subaru-blue);
  display: block;
}

/* Swiper ナビゲーション */
.award-carousel .swiper-button-prev,
.award-carousel .swiper-button-next {
  color: var(--subaru-blue);
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.award-carousel .swiper-button-prev:hover,
.award-carousel .swiper-button-next:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.award-carousel .swiper-button-prev::after,
.award-carousel .swiper-button-next::after {
  font-size: 1.92rem;
  font-weight: bold;
}

/* レスポンシブ: タブレット */
@media (max-width: 1024px) {
  .award-slide {
    transform: scale(0.65);
  }
  
  .award-slide.swiper-slide-active {
    transform: scale(1);
  }
  
  .award-name {
    font-size: 1.6rem;
  }
  
  .award-title {
    font-size: 1.92rem;
  }
}

/* レスポンシブ: スマートフォン */
@media (max-width: 640px) {
  .award-carousel-container {
    padding: 0 10px;
  }
  
  .award-slide {
    transform: scale(0.6);
    opacity: 0.4;
  }
  
  .award-slide.swiper-slide-active {
    transform: scale(1);
    opacity: 1;
  }
  
  .award-video-wrapper {
    border-radius: 0;
  }
  
  .award-name {
    font-size: 1.44rem;
  }
  
  .award-title {
    font-size: 1.6rem;
  }
  
  .award-carousel .swiper-button-prev,
  .award-carousel .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  
  .award-carousel .swiper-button-prev::after,
  .award-carousel .swiper-button-next::after {
    font-size: 1.6rem;
  }
}


