/* ========================================
   神曲アプリ - スタイルシート
   ======================================== */

/* リセット & 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background-color: #f5f5f5;
  /* PC表示時の背景色 */
  color: #333;
  line-height: 1.6;
  margin: 0;
}

header,
section,
footer {
  background-color: #fff;
  /* デフォルトは白背景 */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 35px;
  width: auto;
}

.header-icons {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  padding: 5px;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.icon-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.icon-label {
  display: none;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
}

.icon-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* ========================================
   トップスライダー
   ======================================== */
.top-slider-wrapper {
  background: #fafafa;
  padding: 20px 0;
}

.slider-container {
  position: relative;
  max-width: 100%;
  padding: 0 50px;
}

.top-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.top-slider::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-image {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.slider-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
  min-height: 2.6em;
  /* 2 lines worth of height */
}

.slider-title:hover {
  color: #667eea;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-btn.prev {
  left: 5px;
}

.slider-btn.next {
  right: 5px;
}

/* ========================================
   会員登録セクション
   ======================================== */
.registration {
  background: #f9f9f9;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.btn-register {
  display: inline-block;
  width: 280px;
  max-width: 90%;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
  padding: 14px 0;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

.register-note {
  color: #666;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.site-notice {
  display: block;
  width: 280px;
  max-width: 90%;
  margin: 15px auto 0;
  color: #667eea;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  border: 1px solid #667eea;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  box-sizing: border-box;
}

.site-notice:hover {
  background: #667eea;
  color: #fff;
}

/* ========================================
   バナーセクション
   ======================================== */
.banner-section {
  padding: 20px 15px;
  /* 上下左右に余白 */
  background: #fff;
  text-align: center;
}

.banner-link {
  display: block;
  transition: opacity 0.3s, transform 0.3s;
}

.banner-link:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.banner-link img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* ========================================
   楽曲一覧セクション
   ======================================== */
.section-songs {
  padding-bottom: 20px;
}

.section-header {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  padding: 15px 20px;
  margin-bottom: 0;
}

.section-title {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* 新着エリア */
.new-arrivals {
  background: #f9f9f9;
  padding: 15px;
}

.new-arrival-item {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.new-arrival-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.new-arrival-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s;
}

.new-arrival-image:hover {
  opacity: 0.85;
}

.new-arrival-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-arrival-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.new-arrival-title {
  transition: color 0.3s;
}

.new-arrival-title:hover {
  color: #667eea;
}

.info-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.info-rating {
  font-size: 12px;
  color: #f5576c;
  margin-bottom: 4px;
}

.info-text {
  font-size: 12px;
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* カテゴリ一覧 */
.category-list {
  padding: 0 15px;
}

.category-row {
  border-bottom: 1px solid #eee;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 10px;
  transition: background 0.3s, color 0.3s;
}

.category-item:hover {
  background: #f5f5f5;
  color: #667eea;
}

.category-name {
  font-size: 15px;
  font-weight: 500;
}

.category-arrow {
  color: #999;
  font-size: 14px;
}

/* ========================================
   PickUpセクション
   ======================================== */
.section-pickup {
  padding-bottom: 20px;
}

.section-pickup .section-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 15px;
  background: #fafafa;
}

.pickup-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pickup-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pickup-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pickup-label {
  display: block;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

/* ========================================
   メディアタイアップセクション
   ======================================== */
.section-media {
  padding: 0 15px 20px;
}

.media-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 15px 20px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.media-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px 30px 12px 0;
  border-bottom: 1px solid #eee;
}

.media-item:last-child {
  border-bottom: none;
}

.media-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #999;
}

.media-link {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s;
}

.media-link:hover {
  opacity: 0.85;
}

.media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-title-link {
  transition: color 0.3s;
}

.media-title-link:hover {
  color: #667eea;
}

.media-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.media-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* ========================================
   ユーザーメニュー
   ======================================== */
.section-usermenu {
  background: #f0f0f0;
  padding: 20px 15px;
}

.usermenu-title {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  margin-bottom: 15px;
  color: #333;
}

.usermenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.usermenu-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 14px 30px 14px 12px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}

.usermenu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #667eea;
}

.usermenu-link {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usermenu-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #999;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-license-jasrac,
.footer-license-nextone {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.8;
}

.copyright {
  font-size: 11px;
  opacity: 0.6;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* PC・タブレット共通レイアウト (481px～) */
@media (min-width: 481px) {

  .header-inner,
  .slider-container,
  .registration,
  .banner-section,
  .section-songs,
  .section-pickup,
  .section-media,
  .section-usermenu,
  .footer-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    /* コンテンツの境界を明確に */
  }

  .registration {
    background-color: #fff;
  }

  /* ヘッダーアイコンをテキストに変更 */
  .icon-btn img {
    display: none;
  }

  .icon-btn .icon-label {
    display: block;
  }

  .icon-btn {
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 4px;
  }

  .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
    text-decoration: underline;
  }
}

/* タブレット以上 (768px～) */
@media (min-width: 768px) {

  /* ヘッダー */
  .logo img {
    height: 45px;
  }

  .icon-btn img {
    width: 35px;
    height: 35px;
  }

  /* スライダー */
  .slider-item {
    flex: 0 0 180px;
  }

  .slider-image {
    width: 180px;
    height: 180px;
  }

  .slider-title {
    font-size: 14px;
  }

  /* 会員登録 */
  .btn-register {
    padding: 16px 60px;
    font-size: 20px;
  }

  .site-notice {
    font-size: 15px;
  }

  /* 新着エリア - 2列グリッド */
  .new-arrivals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .new-arrival-item {
    margin-bottom: 0;
  }

  .new-arrival-image {
    width: 100px;
    height: 100px;
  }

  /* PickUpグリッド - 4列 */
  .pickup-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
  }

  /* メディアタイアップ - 2列 */
  .section-media {
    padding: 0 20px 30px;
  }

  .media-items-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .media-item {
    border-bottom: none;
    background: #fff;
    border-radius: 10px;
    padding: 15px 35px 15px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
  }

  .media-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .media-link {
    width: 110px;
    height: 110px;
  }

  /* ユーザーメニュー - 4列 */
  .usermenu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .usermenu-item {
    padding: 16px 14px;
    font-size: 14px;
  }
}

/* PC以上 (1024px～) */
@media (min-width: 1024px) {

  /* ヘッダー */
  .logo img {
    height: 50px;
  }

  /* スライダー */
  .slider-item {
    flex: 0 0 200px;
  }

  .slider-image {
    width: 200px;
    height: 200px;
  }

  .slider-title {
    font-size: 15px;
  }

  /* 新着エリア - 3列 */
  .new-arrivals {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
  }

  .new-arrival-image {
    width: 120px;
    height: 120px;
  }

  .info-label {
    font-size: 15px;
  }

  .info-text {
    font-size: 13px;
  }

  /* PickUpグリッド - 6列 */
  .pickup-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    padding: 25px;
  }

  .pickup-label {
    font-size: 13px;
  }

  /* メディアタイアップ - 2列（サイズ拡大） */
  .media-link {
    width: 130px;
    height: 130px;
  }

  .media-label {
    font-size: 14px;
  }

  .media-desc {
    font-size: 15px;
  }
}

/* 大画面PC (1440px～) */
@media (min-width: 1440px) {

  .header-inner,
  .slider-container,
  .registration,
  .banner-section,
  .section-songs,
  .section-pickup,
  .section-media,
  .section-usermenu,
  .footer-content {
    max-width: 1400px;
  }

  /* 新着エリア - 4列 */
  .new-arrivals {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* スマホ専用 (480px以下) */
@media (max-width: 480px) {
  .pickup-grid {
    gap: 8px;
    padding: 10px;
  }

  .media-link {
    width: 70px;
    height: 70px;
  }

  .usermenu-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
}