/*
 * Category Yomi Sort - フロント表示スタイル
 * 2段階アコーディオンカテゴリーリスト
 */

/* リスト全体のコンテナ */
.cys-category-list {
    margin: 0;
    padding: 0;
}

/* ============================================
   第1段階：「女優名を選択」見出し（クリック不可・常時表示）
   ============================================ */

.cys-top-label-heading {
    padding: 9px 14px;
    background-color: #f0f0f0;
    color: #000;
    font-size: 1em;
    font-weight: normal;
    border: 1px solid #000;
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
    line-height: 1.4;
}

/* ============================================
   第2段階：行見出しパネル（あ行・か行…のまとまり）
   ============================================ */

.cys-row-panel {
    border: 1px solid #000;  /* 枠線：黒 */
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 6px 8px;
    background: #fff;        /* 背景色：白 */
}

.cys-row-panel[hidden] {
    display: none;
}

/* 行グループ（あ行・か行…それぞれ1塊） */
.cys-row-group {
    margin-bottom: 4px;
}

/* 行見出しボタン（あ・か・さ…） */
.cys-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    background-color: #fff;  /* 背景色：白 */
    color: #000;             /* 文字色：黒 */
    font-size: 0.92em;
    font-weight: normal;     /* 太字を解除 */
    border: 1px solid #000;  /* 枠線：黒 */
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    box-sizing: border-box;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
}

.cys-row-header:hover,
.cys-row-header:focus {
    background-color: #f0f0f0; /* ホバー時背景：薄いグレー */
    color: #000;
    text-decoration: none;
}

.cys-row-header[aria-expanded="true"] {
    background-color: #f0f0f0; /* 展開時背景：薄いグレー */
    border-radius: 4px 4px 0 0;
}

/* 行ラベル文字（あ・か・さ…） */
.cys-row-label {
    flex: 1;
}

/* 開閉矢印アイコン（CSSで描画） */
.cys-row-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #000; /* 矢印の色：黒 */
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 展開中は矢印を上向きに回転 */
.cys-row-header[aria-expanded="true"] .cys-row-arrow {
    transform: rotate(180deg);
}

/* ============================================
   カテゴリーリスト（アコーディオン内容）
   ============================================ */

.cys-row-items {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #000;  /* 枠線：黒 */
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fff;        /* 背景色：白 */
    overflow: hidden;
}

.cys-row-items[hidden] {
    display: none;
}

/* 各カテゴリー項目 */
.cys-row-item {
    border-bottom: 1px solid #ccc; /* 区切り線：グレー */
    margin: 0;
    padding: 0;
}

.cys-row-item:last-child {
    border-bottom: none;
}

/* カテゴリーリンク */
.cys-row-item a {
    display: block;
    padding: 6px 14px;
    color: #000;             /* 文字色：黒 */
    text-decoration: none;
    font-size: 0.88em;
    transition: background-color 0.15s;
}

.cys-row-item a:hover {
    background-color: #f0f0f0; /* ホバー時背景：薄いグレー */
    color: #000;               /* ホバー時文字：黒 */
    text-decoration: underline;
}

/* 記事件数表示 */
.cys-count {
    color: #555;
    font-size: 0.9em;
    margin-left: 2px;
}

/* 読み仮名表示（カテゴリー名の右側） */
.cys-yomi-disp {
    color: #777;
    font-size: 0.9em;
    margin-left: 2px;
}