.bg-gradient {
    background: linear-gradient(135deg, #111827 0%, #312e81 50%, #1f2937 100%);
}


/* ヒーロー専用 */
.hero-area .lead {
    line-height: 1.8;
}

.hero-area h1 {
    background: linear-gradient(90deg, #d63384, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-area .badge.bg-danger {
    background: linear-gradient(90deg, #d63384, #dc3545);
}


.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: .15s ease-in-out;
    text-decoration: none;
    line-height: 1.2;
}

/* メイン（今のピンクに寄せる） */
.hero-btn-primary {
    background: linear-gradient(135deg, #ff6b81 0%, #f06595 45%, #ff9f9a 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(240, 101, 149, .25);
}

.hero-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(240, 101, 149, .35);
}

/* セカンダリ（同じ丸・同じ高さ） */
.hero-btn-secondary {
    background: #fff;
    border: 1px solid rgba(240, 101, 149, .35);
    /* 色を合わせるのがポイント */
    color: #0f172a;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, .4);
    border-color: rgba(240, 101, 149, .6);
    transform: translateY(-1px);
}


/* カード画像をきれいに見せる */
.object-fit-cover {
    object-fit: cover;
}


/* sectionの底をゆるく */
section {
    scroll-margin-top: 4rem;
}

.voice-card-thumb {
    width: 100%;
    background-color: #fff;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
    position: relative;
    /* 絶対配置の基準 */
    overflow: hidden;
    /* 角丸からはみ出さないように */
    display: block;
    /* flexじゃなくてOKならこれで */
    height: 180px;
    /* PHP側のstyleと合わせる */
}

/* 背景の模様は一番下に敷く */
.voice-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background: repeating-linear-gradient(45deg,
            #f8f9fa,
            #f8f9fa 10px,
            #ffffff 10px,
            #ffffff 20px);
    opacity: 0.3;
    z-index: 1;
    /* 一番下 */
}

/* 画像を一番上に */
.voice-card-thumb .voice-thumb {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* バッジも画像と同じ上のレイヤーに */
.voice-card-thumb .badge {
    position: absolute;
    z-index: 3;
    /* 画像よりさらに上 */
}

/* 画像エラー時の処理：背景だけ薄く残すならこんな感じでもOK */
.voice-card-thumb img[style*="display:none"] {
    display: none !important;
}

.voice-cv {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.voice-player .btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: none;
    transition: background-color 0.2s ease;
}

.voice-player .btn:hover {
    background-color: #e9ecef;
}

.voice-player .btn i {
    font-size: 1.2rem;
    color: #0d6efd;
}



.voice-player {
    gap: 0.5rem;
    width: 100%;
}

.voice-player-time {
    white-space: nowrap;
}

.sample-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff5b5b;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.6rem;
    line-height: 1;
    padding: 2px 5px;
    border: 2px solid #fff;
    /* ボタンと溶け込ませる */
    min-width: 18px;
    text-align: center;
}







@media (max-width: 480px) {
    .voice-player {
        flex-wrap: wrap;
    }

    .voice-player-time {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }
}


/* 声優一覧 */

.cv-card {
    transition: .15s ease-in-out;
}

.cv-card:hover {
    border-color: rgba(13, 110, 253, .35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .03);
    transform: translateY(-2px);
}

.cv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #e9f3ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0d6efd;
    font-size: .9rem;
}

.cv-heading-sticky {
    position: sticky;
    top: 68px;
    /* ヘッダー高さに合わせる */
    background: #f5f5f5;
    z-index: 5;
}





/* PC〜タブレットはグリッドで均等に */
.sample-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    align-items: center;
}

.sample-thumb {
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.sample-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sample-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 110, 253, 0.25);
}

/* スマホ時は中央寄せのフレックスに切り替え */
@media (max-width: 576px) {
    .sample-gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .sample-thumb {
        width: 28vw;
        /* 画面幅の約1/3ずつ */
        max-width: 110px;
        /* 大きくなりすぎ防止 */
        aspect-ratio: 1 / 1;
    }
}





.cv-chip-label {
    background: #e0f2fe;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: .78rem;
    color: #0369a1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cv-chip:hover {
    opacity: .85;
    transform: translateY(-1px);
    transition: .1s ease-in-out;
    text-decoration: none;
}






.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    /* ← 内側の余白を広げる */
    font-size: 0.85rem;
    /* ← 少し小さめで整える */
    background-color: #f8f9fa;
    /* ← 背景薄めグレー */
    border: 1px solid #dee2e6;
    /* ← 枠を淡く */
    border-radius: 9999px;
    /* ← pill形状 */
    transition: background-color 0.2s, border-color 0.2s;
}

.tag-badge:hover {
    background-color: #e9ecef;
    /* ← hover時少し濃く */
    border-color: #adb5bd;
    text-decoration: none;
    /* ← hover下線を無効に */
}




.hover-shadow-sm:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: .15s ease-in-out;
}

















section.pickups-block {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}