@charset "UTF-8";

.c-grid {
    display: grid;
}

.u-hidden {
    display: none;
}

/* 画像がカード幅からはみ出さないように制御 */
.c-artist-card__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 853px) {
    .u-lg-only{
        display: none;
    }
    .c-select-box__btn{
        display: block;
    }
    .p-artist-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .p-artist-layout{
        display: block;
    }
}

@media screen and (min-width: 854px) {
    .u-lg-only{
        display: block;
    }
    .c-select-box__btn{
        display: none;
    }
    .p-artist-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
    .p-artist-layout{
        grid-template-columns: 1fr 3fr;
        column-gap: 24px;
        row-gap: 0px;
    }
}


/* ==========================================================================
   c-select-box (Component)
   ========================================================================== */
.c-select-box {
    position: relative;
    width: 100%;
}

/* ユーティリティ: PC以上でのみ表示 */
@media screen and (max-width: 853px) {
    .u-lg-only {
        display: none !important;
    }
}

/* --------------------------------------------------
   SP表示（~853px）：ドロップダウン
   -------------------------------------------------- */
@media screen and (max-width: 853px) {
    /* 開閉トリガーボタン */
    .c-select-box__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        text-align: left;
    }

    /* 矢印アイコン */
    .c-select-box__btn-icon {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    /* 展開時の矢印反転 */
    .c-select-box.is-open .c-select-box__btn-icon {
        transform: rotate(-135deg);
    }

    /* ドロップダウンメニュー本体 */
    .c-select-box__list {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        max-height: 240px;
        overflow-y: auto;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 50;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* 開閉フラグ */
    .c-select-box.is-open .c-select-box__list {
        display: block;
    }

    .c-select-box__link {
        display: block;
        padding: 12px 16px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    .c-select-box__item:last-child .c-select-box__link {
        border-bottom: none;
    }

    .c-select-box__link.is-active {
        background-color: #f5f5f5;
        font-weight: bold;
    }

    .c-select-box__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        text-align: left;

        /* 文字色とフォントを明示 */
        color: #333; /* 背景白に対して濃い色を指定 */
        font-family: inherit;
        line-height: 1.5;
    }

    /* ラベル側の色も念のため固定 */
    .c-select-box__btn-label {
        color: inherit;
    }
}

/* --------------------------------------------------
   PC表示（854px~）：一覧常時展開
   -------------------------------------------------- */
@media screen and (min-width: 854px) {
    /* ボタンを完全非表示 */
    .c-select-box__btn {
        display: none;
    }

    .c-select-box__title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 12px;
    }

    /* リストを常時表示 */
    .c-select-box__list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .c-select-box__link {
        display: inline-block;
        padding: 6px 12px;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        border-radius: 4px;
        transition: background-color 0.2s, color 0.2s;
    }

    .c-select-box__link:hover {
        background-color: #f0f0f0;
        color: #000;
    }

    .c-select-box__link.is-active {
        background-color: #000;
        color: #fff;
        font-weight: bold;
    }
}