/* ======================================================================
 * == 女優一覧 共通スタイル
 * ======================================================================
 * ph-page-actress-index.php と ph-page-actress-group.php の
 * 両方で読み込むための共通CSSファイルです。
 */

/* ▼▼▼ 新規追加: タブナビゲーション ▼▼▼ */
.actress-tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
}
.actress-tab-nav a {
    padding: 10px 20px;
    margin-bottom: -2px; /* ボーダーを重ねるため */
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: #555;
    font-size: 1.1em;
    font-weight: bold;
    transition: border-color 0.2s, color 0.2s;
}
.actress-tab-nav a:hover {
    color: #337ab7;
}
.actress-tab-nav a.active-tab {
    color: #337ab7;
    border-bottom-color: #337ab7;
}
/* ▲▲▲ 新規追加 ▲▲▲ */


/* 50音ナビゲーション 全体 (縦カラムレイアウト) */
.initial-sitemap-nav-vertical {
    display: flex;
    flex-direction: row-reverse; /* ▼修正: 右から左へ (あ行が右端) */
    flex-wrap: wrap; /* 折り返す */
    justify-content: center; /* 中央寄せ */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    background: #f9f9f9;
}
/* ナビの各列 (あ行、か行...) */
.initial-nav-column {
    list-style: none;
    margin: 5px 10px;
    padding: 0;
}
.initial-sitemap-nav-vertical li {
    margin: 0;
    padding: 0;
    min-width: 40px; /* 各ボタンの最小幅 */
    height: 40px; /* 各ボタンの高さ */
}
/* ナビの各ボタン */
.initial-sitemap-nav-vertical li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #337ab7;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    padding: 0 5px; /* 最小幅を確保しつつ、少し余白 */
}
.initial-sitemap-nav-vertical li a:hover {
    background-color: #eee;
}
/* や行などのプレースホルダー */
.nav-placeholder span {
    display: block;
    width: 100%;
    height: 100%;
    visibility: hidden; /* 非表示にするが場所は確保 */
}
/* や行のリンクなしプレースホルダー (ゆ, よ) */
.initial-sitemap-nav-vertical li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-weight: bold;
    font-size: 16px;
    padding: 0 5px;
}


/* その他リンク */
.initial-nav-other-link {
    text-align: center;
    margin: 10px 0 20px 0;
}
.initial-nav-other-link ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}
.initial-nav-other-link li {
    display: inline-block;
    margin: 0 5px;
}
.initial-nav-other-link li a {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
}
.initial-nav-other-link li a:hover {
    background: #f0f0f0;
}

/* ▼▼▼ groupページ専用 ▼▼▼ */

/* ▼▼▼ 削除 (タブナビゲーションに変更したため) ▼▼▼
.actress-index-link-container {
    text-align: center;
    margin-top: 20px;
}
.actress-index-link-container a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
    background: #f9f9f9;
    font-weight: bold;
}
.actress-index-link-container a:hover {
    background: #f0f0f0;
}
*/
/* ▲▲▲ 削除 ▲▲▲ */

/* 選択中のイニシャルをハイライト */
.initial-sitemap-nav-vertical li a.active-initial,
.initial-nav-other-link li a.active-initial {
    background-color: #337ab7;
    color: #fff;
}

/* タググループ本体（リスト） */
.tag-group-list-container {
    margin-top: 20px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}
/* おすすめ女優コンテナ */
.featured-actress-container {
    margin-top: 20px;
    /* (タブ化に伴い、h2側でボーダーを持つためコンテナのボーダーは削除) */
}
/* h2 タイトル (groupページ用) */
#actress-list-result h2 {
    font-size: 2em;
    border-bottom: 2px solid #337ab7;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}


/* 女優リスト (ul) - indexとgroupで共通 */
ul.actress-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -5px; /* liのマージン相殺 */
}
/* 女優リスト (li) */
ul.actress-list li {
    width: calc(20% - 10px); /* PC: 5列 */
    margin: 5px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden; /* 角丸のため */
    transition: box-shadow 0.2s;
}
ul.actress-list li:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* タブレット: 3列 */
@media (max-width: 768px) {
    ul.actress-list li {
        width: calc(33.333% - 10px);
    }
}
/* スマホ: 2列 */
@media (max-width: 480px) {
    ul.actress-list li {
        width: calc(50% - 10px);
    }
    .initial-sitemap-nav-vertical li {
         min-width: 32px; /* スマホではボタンを小さく */
         height: 32px;
    }
    .initial-sitemap-nav-vertical li a,
    .initial-sitemap-nav-vertical li span {
        font-size: 14px;
        min-width: 32px;
    }
}

/* リスト内のリンク */
ul.actress-list li a {
    display: block;
    text-decoration: none;
    color: #333;
}
/* 画像 */
ul.actress-list li img {
    width: 100%;
    height: auto;
    aspect-ratio: 100 / 100; /* 画像の縦横比を固定 */
    object-fit: cover; /* 比率を保ったままトリミング */
    display: block;
    border-bottom: 1px solid #eee;
}
/* 名前 */
ul.actress-list li span.actress_name {
    display: block;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* はみ出た名前を ... で表示 */
    background: #fff;
}