.card.transition:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor:pointer
}

.card .title-text {
    font-size:12px;
}

.anime-img {
    aspect-ratio: 216 / 300;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.anime-card:hover .anime-img {
    transform: scale(1.05);
}

.anime-card {
    transition: box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.anime-card:hover {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

.anime-link-card {
    background-color: var(--main-color);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    min-width: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.anime-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.anime-link-card .bi {
    flex-shrink: 0;
}

.anime-link-card .link-label {
    white-space: nowrap;
}

.anime-link-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-30deg);
    transition: all 0.5s ease;
    pointer-events: none;
}

.anime-link-card:hover::after {
    right: 100%;
}

.anime-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.anime-scroll::-webkit-scrollbar {
    display: none;
}
.anime-scroll > div {
    scroll-snap-align: start;
}
.scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.9); /* 薄めの黄色 */
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.scroll-btn i {
    font-size: 1.5rem;
}

.scroll-btn.scroll-left {
    left: 8px;
}

.scroll-btn.scroll-right {
    right: 8px;
}

.responsive-card {
        width: 150px; /* デフォルト：PC */
}

@media (max-width: 992px) {
    .responsive-card {
        width: 120px; /* タブレット：画面の約1/3 */
    }
}

@media (max-width: 768px) {
    .responsive-card {
        width: 110px;
    }
}

@media (max-width: 576px) {
    .scroll-btn {
        width: 36px;
        height: 36px;
    }

    .scroll-btn i {
        font-size: 1.2rem;
    }

    .responsive-card {
            width: 100px;
    }
}

.ad-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
    background-color: #1c1c1c;
    border: 2px solid #dc3545; /* 赤で強調 */
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.ad-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.ad-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #ffc107;
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0.25rem;
    z-index: 1;
}

.ad-top-bar {
    height: 6px;
    width: 100%;
    background-color: #dc3545;
}

.responsive-a8-banner {
    display: block;
    width: 100%;
    max-width: 728px;
    height: auto;
    margin: 2rem auto;
}

.multi-line-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

.shop-link-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.shop-link-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 60px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.shop-link-button i {
    margin-right: 10px;
    font-size: 20px;
}

.shop-link-button.animate {
    background: linear-gradient(45deg, #00C9FF, #92FE9D);
}

.shop-link-button.amiami {
    background: linear-gradient(45deg, #F7971E, #FFD200);
}

.shop-link-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.card.bg-dark:hover {
        transform: scale(1.01);
        box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
    }

    .btn-outline-info {
        border-radius: 50px;
    }

/* フラッシュメッセージ */
/* 親コンテナは画面上部に固定 */
#flash-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 700px;
    z-index: 1050; /* Bootstrapのmodalよりも上 */
    pointer-events: none; /* 下の操作を邪魔しない */
}

.flash-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    border: 2px solid #444;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 1rem;
    animation: flashSlideFade 0.6s ease-out;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
    pointer-events: auto; /* ボタン操作可能に */
}

.flash-card.success {
    border-left: 6px solid #0f0;
    background: rgba(0, 50, 20, 0.85);
}

.flash-card.error {
    border-left: 6px solid #f00;
    background: rgba(50, 0, 0, 0.85);
}

.flash-card.info {
    border-left: 6px solid #0af;
    background: rgba(0, 40, 60, 0.85);
}

.flash-card.warning {
    border-left: 6px solid #fc0;
    background: rgba(60, 50, 0, 0.85);
}

.flash-card .flash-text {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
}

.flash-card .btn-close {
    position: relative;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #fff;
    transition: opacity 0.3s ease;
}

.flash-card .btn-close:hover {
    opacity: 1;
}

@keyframes flashSlideFade {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .flash-card {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .flash-card .btn-close {
        font-size: 1.25rem;
    }
}