/* ===== 全体スタイル ===== */
body {
  margin: 0;
  padding-top: 100px;
  font-family: "Helvetica Neue", sans-serif;
  background: #132b6f;
}

.usj-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: #0b4dbb;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
}

.logo img {
  height: 68px;
  transition: transform 0.25s ease;
  margin-top: 5px;   /* ← 上に少し移動（-4〜-10pxで微調整） */
}

.logo img:hover {
  transform: scale(1.2);
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 100px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #0b4dbb;
  color: white;
  text-align: center;
  font-size: 36px;
  padding: 24px;
  font-weight: bold;
}

.filter-bar {
  display: flex;
  gap: 12px;
  padding: 12px 28px;   /* 帯自体を少し高く */
}

.filter-btn {
  background: #0b4dbb;
  color: white;
  border: none;
  border-radius: 22px;
  padding: 8px 18px;    /* ボタンを少し大きく */
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;     /* 文字も少し大きく */
}

.filter-btn.active,
.filter-btn:hover {
  background: #ffd800;
  color: black;
}

.year-select {
  position: relative;
}

.year-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 160px;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: none;
  z-index: 100;
}

.year-dropdown.open {
  display: block;
}

.year-dropdown div {
  padding: 10px 14px;
  cursor: pointer;
}

.year-dropdown div:hover {
  background: #e6f0ff;
}

.result-count {
  background: #fff;
  color: #132b6f;
  padding: 8px 24px 4px;
  font-weight: bold;
  font-size: 14px;
}

main {
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 24px 40px;
}

.playlist-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: black;
}

.playlist-card:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.playlist-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.playlist-card span {
  display: block;
  padding: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.playlist-card:hover span {
  text-decoration: underline;
  color: #1a5cff;
}
.sort-note {
  background: #fff;
  color: #666;
  padding: 0 24px 4px;   /* 下の余白を10px → 4pxくらいに */
  font-size: 12px;
  margin-bottom: 0;   /* ここも追加（間隔を詰める） */
}



/* ===== フッター（USJ公式風 完成形） ===== */

.usj-footer {
  background: #132b6f;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
}

.usj-footer .disclaimer {
  font-size: 14px;
  margin-bottom: 12px;
  color: #ffffff;
}

.usj-footer .disclaimer a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.usj-footer .disclaimer a:hover {
  color: #ffd800;
}

.footer-line {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 20px auto;
  max-width: 600px;
}

.footer-owner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #ffffff;
}

.x-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.x-link:hover .x-icon {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ===== 検索バー内 × ボタン完成版 ===== */

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 45px;   /* 右端から少し離す（16〜40pxで調整可） */
}



.search-wrapper {
  position: relative;
}

#searchInput {
  height: 42px;
  width: 240px;
  border-radius: 21px;
  border: none;
  padding: 0 44px 0 16px;  /* 右に×の分の余白 */
  font-size: 16px;
}

/* 検索アイコン */
.search-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ×ボタン */
#clearSearch {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s ease;
}

/* ホバーで拡大 */
#clearSearch:hover {
  transform: translateY(-50%) scale(1.3);
}

/* ===== スマホ用レイアウト ===== */
@media screen and (max-width: 768px) {
  #modalCard {
    width: 95%;
    max-width: 95%;
  }
  #modalImage {
    height: 200px;   /* 画像も少し低くしてはみ出し防止 */
  }
  #searchInput {
    width: 150px;
    height: 34px;
    font-size: 14px;
    padding-right: 40px;
  }

  .search-icon {
    width: 18px;
    height: 18px;
  }

  #clearSearch {
    width: 34px;
    height: 34px;
    font-size: 24px;
    line-height: 34px;
  }
  .search-box {
    margin-right: 12px;  /* スマホは端に近づける */
  }
  .logo img {
  height: 68px;
  transition: transform 0.25s ease;
  margin-top: 5px;   /* ← 上に少し移動（-4〜-10pxで微調整） */
  }

  body {
    padding-top: 70px;
  }

  .usj-header {
    height: 70px;
    padding: 0 12px;
  }

  .logo img {
    height: 60px;
  }

  
  .hero-title {
    font-size: 22px;
    padding: 12px;
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .playlist-card img {
  height: 105px;
}


  .playlist-card span {
    font-size: 13px;
    padding: 10px;
  }

  .result-count {
    font-size: 12px;
    padding: 6px 12px;
  }

}
/* ===== モーダル表示（最終安定版） ===== */

#modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

#modalOverlay.show {
  display: flex;
}

#modalCard {
  background: #fff;
  border-radius: 18px;
  width: 90%;
  max-width: 520px;   /* ← これに変更 */
  overflow: hidden;
  padding: 0;
  animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* 上の青帯（画像に直結） */
.modal-header {
  background: #0b4dbb;
  color: white;
  padding: 26px 20px 18px;
  padding-right: 10px;  /* ×ボタン分の逃げ */
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  position: relative;
}

/* ×ボタン */
#modalClose {
  position: absolute;
  right: 2px;   /* さらに右端へ */
  top: 2px;     /* 上にも寄せる */
  font-size: 36px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}


#modalClose:hover {
  transform: scale(1.3);
}

/* 画像（青帯と隙間ゼロ・縦長） */
#modalImage {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* 説明 */
#modalDesc {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
}

/* 区切り線 */
.modal-line {
  border: none;
  border-top: 1px solid #ddd;
  margin: 6px 16px;
}

/* アプリアイコン */
.modal-links {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 12px 0 16px;
}

.modal-links img {
  width: 30px;
  transition: transform 0.2s ease;
}

.modal-links img:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  #modalImage {
    height: 190px;
  }
}
/* YouTube Watch Button */
.watch-btn {
  display: block;
  margin: 14px auto 6px;
  padding: 10px 18px;
  background: #ff0000;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  text-align: center;
  width: fit-content;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watch-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.hero {
  position: relative;
  width: 100%;
  height: 60vh;   /* ← ここで高さを縮める（50〜70vhで好み調整） */
  overflow: hidden;
}

/* スライド背景 */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;                 /* 画像を横に4枚分並べる */
  height: 100%;
  background: url("images/top_haike.jpg") repeat-x;
  background-size: auto 100%; /* 高さフィット、横は自然 */
  animation: heroScroll 120s linear infinite;
}

@keyframes heroScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* 中央ロゴ固定 */
.hero-logo {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 470px;          /* ← 少し大きく */
  max-width: 85%;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}
@media screen and (max-width: 768px) {

  /* ヒーローの高さをスマホ用に低く */
  .hero {
    height: 35vh;   /* 縦長になりすぎない */
  }

  /* ロゴをスマホ用に少し小さくして中央キープ */
  .hero-logo {
    width: 370px;   /* PCより小さめ */
    max-width: 80%;
    top: 35%;
  }

}
/* 免責モーダル用 */
.disclaimer-btn {
  margin-top: 20px;   /* ← 12〜30pxくらいで好み調整 */
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: #0b4dbb;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* ホバー時：カードと同じく浮いて拡大 */
.disclaimer-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  background: #ffd800;
  color: black;
}

/* 押した瞬間 */
.disclaimer-btn:active {
  transform: scale(0.95);
}


.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 6000;
}

.disclaimer-overlay.show {
  display: flex;
}

.disclaimer-card {
  background: white;
  width: 90%;
  max-width: 520px;   /* modalCard と同じ */
  border-radius: 18px;
  overflow: hidden;
  animation: modalZoom 0.3s ease;  /* 同じアニメ */
}


.disclaimer-header {
  background: #0b4dbb;
  color: white;
  padding: 26px 20px 18px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  position: relative;
}

#closeDisclaimer {
  position: absolute;
  right: 2px;
  top: 2px;
  font-size: 36px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#closeDisclaimer:hover {
  transform: scale(1.3);
}

.disclaimer-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: #ffffff;
  margin: 12px 0 18px;
  line-height: 1.5;
}
#noticePopup {
  position: fixed;
  right: 20px;
  bottom: -400px;
  z-index: 8000;
  transition: bottom 0.6s ease;
}

#noticePopup.show {
  bottom: 20px;
}

.notice-card {
  background: white;
  width: 280px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  text-align: center;
  animation: modalZoom 0.3s ease;
}

.notice-card button {
  position: absolute;
  top: -8px;
  right: -8px;
  color: #fff;
  background: #0b4dbb;
  border-radius: 0;   /* 丸 → 角丸の四角 */
  width: 36px;         /* 大きく */
  height: 36px;        /* 大きく */
  line-height: 34px;
  font-size: 22px;     /* ×も少し大きく */
}

/* ホバー時 */
.notice-card button:hover {
  transform: scale(1.2) rotate(90deg);  /* くるっと回って拡大 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* クリック時 */
.notice-card button:active {
  transform: scale(0.95);
}

.notice-image {
  width: 100%;
  display: block;
}

.notice-text {
  font-weight: bold;
  margin: 12px 0 6px;
}

.notice-btn {
  display: inline-block;
  margin: 10px 0 16px;
  padding: 8px 18px;
  background: #0b4dbb;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
}

.notice-btn:hover {
  background: #ffd800;
  color: rgb(255, 255, 255);
}
.survey-btn {
  display: inline-block; /* ← これが重要 */
  text-decoration: none;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.survey-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  background-color: #ffd800;
  color: #000;
}

.survey-btn:active {
  transform: scale(0.95);
}
