
/* =====================================================
   推し画面
   oshi.css
   ・文字を読みやすく拡大
   ・ボタンのタップ領域を拡大
   ・付箋の2列表示と既存デザインを維持
===================================================== */


/* =====================================================
   📋 推し画面全体
===================================================== */

.oshi-page {
    padding: 18px;
}


/* =====================================================
   🔍 絞り込み
===================================================== */

.oshi-filter-area {
    display: flex;
    gap: 10px;

    margin-bottom: 18px;

    overflow-x: auto;
}

.oshi-filter-area select {
    min-width: 130px;
    min-height: 48px;

    padding: 10px 12px;

    border-radius: 10px;

    font-size: 17px;
}


/* =====================================================
   📌 推し付箋リスト
===================================================== */

.oshi-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* =====================================================
   📌 推し付箋カード
===================================================== */

.oshi-list-card {
    position: relative;

    min-width: 0;
    min-height: 180px;

    padding: 20px 14px 14px;

    box-sizing: border-box;

    border: none;
    border-radius: 2px 2px 8px 2px;

    background: var(--oshi-pin-color);
    color: #222;

    text-align: left;

    cursor: pointer;

    box-shadow: 2px 3px 7px rgba(0, 0, 0, 0.12);

    transform: rotate(-0.5deg);

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}


/* 付箋ごとに角度を変える */

.oshi-list-card:nth-child(2n) {
    transform: rotate(0.6deg);
}

.oshi-list-card:nth-child(3n) {
    transform: rotate(-0.3deg);
}


/* タップ時 */

.oshi-list-card:active {
    transform: scale(0.97) rotate(0deg);

    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.10);
}


/* =====================================================
   付箋の上部ライン
===================================================== */

.oshi-list-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: color-mix(
        in srgb,
        var(--accent) 35%,
        transparent
    );
}


/* =====================================================
   📝 推しの名前
===================================================== */

.oshi-list-name {
    margin-bottom: 12px;
    padding-right: 36px;

    font-size: 23px;
    font-weight: bold;
    line-height: 1.45;

    color: #222;

    overflow-wrap: anywhere;
}


/* =====================================================
   🏷️ ジャンル・区分
===================================================== */

.oshi-list-info {
    display: flex;
    flex-direction: column;

    gap: 6px;

    font-size: 18px;
    line-height: 1.55;

    color: #555;

    overflow-wrap: anywhere;
}


/* =====================================================
   📖 詳細・推し活記録
===================================================== */

.oshi-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 16px;
    padding-top: 10px;

    border-top: 1px solid rgba(0, 0, 0, 0.08);
}


/* =====================================================
   アクションボタン
===================================================== */

.oshi-list-action {
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px;

    margin: 0 !important;
    padding: 6px 4px !important;

    border: none !important;

    background: transparent !important;
    color: var(--accent) !important;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 5px;

    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;

    white-space: nowrap;

    box-shadow: none !important;

    cursor: pointer;
    touch-action: manipulation;
}


/* =====================================================
   アクションアイコン
===================================================== */

.oshi-list-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    font-size: 22px;
    line-height: 1;
}



/* =====================================================
   ✏️ 編集・❌ 削除ボタン
===================================================== */

.oshi-list-card-management {
    position: absolute;
    top: 5px;
    right: 5px;

    display: flex;
    align-items: center;
    gap: 0;

    z-index: 2;
}

.oshi-list-edit,
.oshi-list-delete {
    position: static !important;

    width: 36px !important;
    height: 36px;
    min-width: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    background: transparent !important;

    cursor: pointer;
    touch-action: manipulation;
}

.oshi-list-edit {
    color: #555;
    font-size: 19px;
    line-height: 1;
}

.oshi-list-delete {
    color: #555 !important;
    font-size: 25px;
    line-height: 1;
}


/* =====================================================
   📭 推しが登録されていない場合
===================================================== */

.oshi-empty {
    grid-column: 1 / -1;

    padding: 44px 20px;

    text-align: center;

    color: var(--text-sub);

    font-size: 17px;
    line-height: 1.8;
}


/* =====================================================
   📝 推し登録モーダル
===================================================== */

.oshi-register-modal {
    max-width: 430px;
}


/* =====================================================
   推し登録モーダルの表示切り替え
===================================================== */

#oshiRegisterModal {
    display: none;
}

#oshiRegisterModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
   🔤 推しのローマ字候補
===================================================== */

.oshi-reading-suggestion {
    display: none;

    width: 100%;

    margin-top: 10px;
    padding: 10px;

    box-sizing: border-box;
}


/* 候補の説明 */

.oshi-reading-suggestion-label {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;
    line-height: 1.6;
}


/* 候補ボタン */

.oshi-reading-suggestion-button {
    display: block;

    width: 100%;
    min-height: 52px;

    padding: 12px 14px;

    box-sizing: border-box;

    border: 1px solid #ccc;
    border-radius: 8px;

    background: #f5f5f5;
    color: #333;

    font-size: 18px;
    line-height: 1.5;

    text-align: left;

    cursor: pointer;
    touch-action: manipulation;
}


/* =====================================================
   📱 スマホ表示
===================================================== */

@media (max-width: 600px) {

    /* 2列表示を維持 */

    .oshi-page {
        padding: 14px;
    }

    .oshi-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* 付箋カード */

    .oshi-list-card {
        min-height: 180px;

        padding: 20px 10px 12px;
    }

    /* 推しの名前 */

    .oshi-list-name {
        margin-bottom: 12px;
        padding-right: 30px;

        font-size: 21px;
        line-height: 1.5;
    }

    /* ジャンル・区分 */

    .oshi-list-info {
        gap: 3px;

        font-size: 16px;
        line-height: 1.55;
    }

    /* 詳細・推し活記録 */

    .oshi-list-actions {
        gap: 6px;

        margin-top: 14px;
        padding-top: 10px;
    }

    .oshi-list-action {
        min-height: 42px;

        gap: 4px;
        padding: 6px 2px !important;

        font-size: 13px;
    }

    /* アイコン */

    .oshi-list-action-icon {
        font-size: 21px;
    }

    /* 削除ボタン */

    .oshi-list-delete {
        width: 36px !important;
        height: 36px;
        min-width: 36px;

        font-size: 24px;
    }

    /* 絞り込み */

    .oshi-filter-area select {
        min-height: 48px;
        font-size: 16px;
    }

    /* 空状態 */

    .oshi-empty {
        padding: 36px 12px;

        font-size: 16px;
    }

    /* ローマ字候補 */

    .oshi-reading-suggestion-label {
        font-size: 15px;
    }

    .oshi-reading-suggestion-button {
        min-height: 50px;

        font-size: 17px;
    }
}


/* =========================
   推しリスト：＋アイコン
   このボタンだけ個別指定
========================= */

.page-header .oshi-add-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    line-height: 1;
    font-weight: normal;

    /* テーマのボタン色を上書き */
        color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;

    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

/* 押したときも背景色を付けない */
.page-header .oshi-add-icon-btn:hover,
.page-header .oshi-add-icon-btn:active,
.page-header .oshi-add-icon-btn:focus {
    color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}







/* 推しリストのタイトルと＋を同じ段に配置 */
.page-header:has(.oshi-add-icon-btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
}

.page-header:has(.oshi-add-icon-btn) .page-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}


/* ゆめかわ星空：推しリストの＋をタイトルと同じ色にする */

body.theme-dreamy-star .page-header .oshi-add-icon-btn,
body.theme-dreamy-star .page-header .oshi-add-icon-btn:hover,
body.theme-dreamy-star .page-header .oshi-add-icon-btn:active,
body.theme-dreamy-star .page-header .oshi-add-icon-btn:focus {
    color: var(--accent) !important;
    -webkit-text-fill-color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}



/* =========================
   モーダル表示
========================= */

.modal.show {
    display: block;
}