/*
 * t8-character-list-v3-system/modules/characters/style.css
 *
 * 更新日: 2026-11-08
 *
 * 役割:
 * - Charactersモジュールの表示スタイルを管理する。
 * - Customize画像を1段4列に並べる。
 * - 画像とキャラクター名を中央揃えにする。
 * - キャラクター項目をカード化する。
 */

/*
========================================
Characters V3 ページタイトル
========================================
*/

.t8-characters-v3-title {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 12px;
    line-height: 1.4;
}

/* ====================================
   タイトル下の水平線
==================================== */

.t8-characters-v3-divider {
    border: 0;
    border-top: 1px solid #555;
    margin: 12px 0 15px;
}

/* ====================================
   イントロ
==================================== */

.t8-characters-v3-intro {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.8;
}


/* ====================================
   キャラクター一覧
==================================== */

.t8-characters-v3 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 25px;
    width: 100%;
}


/* ====================================
   キャラクターカード
==================================== */

.t8-characters-v3-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 22px 5px 10px;
    background: #252B35;
    border-radius: 8px;
    box-sizing: border-box;
}


/* ====================================
   キャラクター画像
==================================== */

.t8-characters-v3-item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}


/* ====================================
   キャラクター名
==================================== */

.t8-characters-v3-name {
    width: 100%;
    margin-top: 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}



/*
 * ====================================
 * カード・ホバーアニメーション
 * ====================================
 */

@media (hover: hover) and (pointer: fine) {

    /* カードの浮き上がり */


.t8-characters-v3-item {
    position: relative;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.t8-characters-v3-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background-color: #303A49;
    z-index: 2;
}



    /* 画像のズーム */

    .t8-characters-v3-item img {
        transition: transform 0.25s ease;
    }

    .t8-characters-v3-item:hover img {
        transform: scale(1.04);
    }

}


/*
 * ====================================
 * アニメーション軽減設定
 * ====================================
 */

@media (prefers-reduced-motion: reduce) {

    .t8-characters-v3-item,
    .t8-characters-v3-item img {
        transition: none;
    }

}
