/* =============================================================
   Front Page – GameMusic DB Theme
   Spotify ライト風（最終版）
   ============================================================= */

.front-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* -----------------------
   共通セクション
------------------------ */
.front-section {
  margin-bottom: 36px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.95);
}






/* =============================================================
   SECTION 1: 検索
   ============================================================= */

/* 検索フォーム全体のセンタリング */
.front-search-section {
    max-width: 760px;        /* 見た目の黄金比。大きすぎず小さすぎない */
    margin: 16px auto 40px;  /* 上少なめ, 下やや広めで締まった印象 */
    padding: 0 16px;
}

/* 検索フォーム本体 */
.front-search-form {
    width: 100%;
}

/* 上のラベル（アイコン + テキスト）は表示しない場合はここで調整してもOK */
.front-search-label {
    display: none;
}

/* 入力欄 + ボタンを一体化した箱 */
.front-search-input-wrap {
    display: flex;
    width: 100%;
    border-radius: 6px;
    overflow: hidden; /* 角丸を共有させる */
    background: #1c1c1e; /* 入力欄背景（Spotifyの検索バー系に寄せる） */
    border: 1px solid rgba(255,255,255,0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* フォーカス時：帯が光る */
.front-search-input-wrap:focus-within {
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 0 8px rgba(255,255,255,0.15);
}

/* 入力欄 */
.front-search-input-wrap input[type="search"] {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
}

/* placeholder（より控えめ） */
.front-search-input-wrap input[type="search"]::placeholder {
    color: rgba(255,255,255,0.45);
}

/* 検索ボタン（右端） */
.front-search-submit {
    padding: 0 22px;
    background: rgba(255,255,255,0.1); /* 周囲と馴染むカラー */
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-left: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

/* ホバー：軽く浮く */
.front-search-submit:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

/* クリック時 */
.front-search-submit:active {
    transform: translateY(0);
}

/* スマホ調整 */
@media (max-width: 768px) {
    .front-search-section {
        max-width: 100%;
        margin: 12px auto 32px;
        padding: 0 12px;
    }

    .front-search-submit {
        padding: 0 16px;
        font-size: 13px;
    }
}


/* =============================================================
   SECTION 2: 最新アルバム – カードグリッド
   ============================================================= */

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}


@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 16px;
  }
}

/* ================================
   最新アルバム：グリッド設定
================================ */
.front-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC＝4列 */
    gap: 20px;
    width: 100%;
    margin: 0 auto 40px;
}

@media (max-width: 768px) {
    .front-latest-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホ＝2列 */
        gap: 16px;
    }
}

/* ================================
   アルバムカード本体
================================ */
.album-card {
    display: block;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.album-card:hover {
    background: #222; /* わずかに濃くする */
}

/* ================================
   サムネイル（1:1を完全固定）
================================ */
.album-card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.album-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   タイトル部（余白をかなりタイトに）
================================ */
.album-card-body {
    padding: 4px 10px 10px;
}

/* 2行まで表示・省略 */
.album-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.32;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
    text-overflow: ellipsis;

    overflow-wrap: anywhere;   /* 数字・英字・記号でも自然に改行 */
    word-break: break-word;    /* 旧ブラウザ対策 */
    line-break: anywhere;      /* 日本語 + 数字混在対策 */
}

/* フルタイトルの tooltip */
.album-card-title:hover {
    white-space: normal;
}

.front-more-link-wrap {
  margin-top: 18px;
  text-align: right;
}

.front-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  transition: background .15s ease, transform .15s ease;
}

.front-more-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* =============================================================
   SECTION 3〜6: タクソノミー（ゲームタイトル等）
   ============================================================= */

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


@media (max-width: 768px) {
  .taxonomy-grid {
    grid-template-columns: repeat(1, minmax(0,1fr));
  }
}


.taxonomy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #161616;
  border-radius: 4px;
  color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  transition: .15s ease;
    gap: 12px;                /* 左右の間隔を確保 */
    min-height: 48px;         /* 押しやすい高さを維持 */
}

.taxonomy-card:hover {
  background: #1b1b1b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.75);
}

.taxonomy-name {
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
    flex: 1 1 auto;           /* 余った領域を使用 */
    min-width: 0;             /* 長文での縮小を許可（重要） */

    overflow-wrap: anywhere;   /* 数字・英字・記号でも自然に改行 */
    word-break: break-word;    /* 旧ブラウザ対策 */
    line-break: anywhere;      /* 日本語 + 数字混在対策 */
}

.taxonomy-count {
  font-size: 13px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(255,255,255,0.75);
  min-width: 38px;
  text-align: center;
    flex-shrink: 0;           /* 右側が縮むのを禁止 */
    white-space: nowrap;      /* 改行しない（←これが重要） */

    min-width: 48px;          /* 右端幅を固定（スマホでも改行しない） */
}

.taxonomy-card:hover .taxonomy-count {
  background: rgba(255,255,255,0.18);
}

.front-tax-section .section-title {
  margin: 32px 0 20px; /* 上を軽く詰めると洗練される */
}



/* =============================================================
   SECTION 7: サービス選択（後で拡張）
   ============================================================= */

.service-select-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 10px;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.05);
}

.service-select-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.front-empty {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
