.eventsImg {
    width: 50vw;
    aspect-ratio: 1 / 1;
    align-items: end;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .eventsImg {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .eventsImg {
        max-width: 100%;
    }
}

.eventsDetail-text {
    position: relative;
}

/* カード全体 */
.cardImg {
    background-image: url('../images/eventCard.png');
    background-size: cover;
    background-position: center;
    border: 2px solid #AED3FF;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---- スマホ時の調整 ---- */
@media (max-width: 767.98px) {
    .event-thumb img {
        width: 100%;
        /* スマホは横幅いっぱい */
        height: auto;
        /* 高さ自動 */
        max-width: 250px;
        /* 画像が大きすぎないように上限 */
        margin: 0 auto;
        /* 中央寄せ */
        display: block;
    }

    .event-text {
        margin-top: 0.5rem;
        /* 画像と文字の間隔 */
        text-align: center;
        /* 文字も中央寄せ */
    }
}

.card-title,
.card-group-text {
    font-family: "fot-chiaro-std", sans-serif;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.underGradation {
    background-image: linear-gradient(to right, #FFDBE6, #FFFFFF);
    background-size: 0% 3px;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-bottom: 10px;
    animation: underlineExpand 1s ease forwards;
}

@keyframes underlineExpand {
    from {
        background-size: 0% 3px;
    }

    to {
        background-size: 100% 3px;
    }
}

/*ドロップダウンメニューのスタイル*/
.btn-custom {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #ccc !important;
    border-radius: 0.5rem !important;
}

/* 絞り込み中だけ色を付けたいボタン用 */
.active-filter {
    background-color: #ABD3FF !important;
    /* 水色 */
    color: #fff !important;
    /* 文字は白 */
    border-color: #ABD3FF !important;
}

/* 通常時は hover しても色を変えない */
.btn-custom:hover {
    background-color: #ABD3FF !important;
    color: white !important;
}


.dropdown-menu {
    border-radius: 0.5rem !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #ABD3FF !important;
    color: #ffffff !important;
}

/* ドロップダウンの本体(閉じているときのボタン部分)を強調 */
.active-filter {
    background-color: #AED3FF !important;
    /* 水色 */
    color: #fff !important;
    /* 文字は白 */
    border-color: #AED3FF !important;
}

.dropdown-item.active {
    background-color: #AED3FF !important;
    color: #000 !important;
}

/* ホバー時にプレースホルダーを濃く */
.custom-search-bar .form-control:hover::placeholder {
    font-weight: bold;
}

.custom-search-bar .form-control:focus {
    box-shadow: none;
}

.input-group-text:hover,
.input-group-text:focus {
    background-color: #dfdfdf !important;
    border: none !important;
    box-shadow: none !important;
}

/* ×ボタンのスタイル */
.clear-btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

/* スマホでもドロップダウンを横並びに */
@media (max-width: 768px) {
    .selector {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 0.3rem !important;
        margin-bottom: 1rem !important;
    }

    .selector .dropdown {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .selector .col-auto {
        flex: 1 1 auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 0.15rem !important;
    }

    .selector .btn-custom {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.3rem !important;
        white-space: nowrap !important;
        width: 100% !important;
    }
}


/* 企画詳細のスケジュール部分のスタイル */
.schedule {
    font-size: 1.2rem;
    line-height: 1.6;
    white-space: pre-wrap;
    /* 改行を保持 */
}

.eventsDetail-text p {
    white-space: pre-line;
}

/* 関連企画カード */
.related-card {
    width: 80%;
    /* スマホ時は画面の8割 */
    max-width: 16rem;
    /* PCでも大きくなりすぎない */
    cursor: pointer;
}

/* 矢印ボタン */
.custom-arrow {
    width: auto;
    background: none;
    border: none;
    opacity: 1;
}

.custom-prev-icon,
.custom-next-icon {
    font-size: 2rem;
    /* 大きさ */
    color: white;
    /* 白矢印 */
    font-weight: bold;
    user-select: none;
}

/* PC版: 矢印を外側に */
@media (min-width: 768px) {
    .carousel-control-prev {
        left: -6rem !important;
    }

    .carousel-control-next {
        right: -6rem !important;
    }
}

/* スマホ版: 矢印を近くに */
@media (max-width: 767px) {
    .carousel-control-prev {
        left: -2rem !important;
    }

    .carousel-control-next {
        right: -2rem !important;
    }
}

.related-img {
    width: 100%;
    height: 200px;
    /* ← お好みで調整 (例: 150〜220px) */
    object-fit: cover;
    /* 画像をトリミングして枠にフィット */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.related-card .card-title {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.related-card .card-text {
    margin-top: auto;
}

/* カルーセル全体の高さを固定 */
#relatedEventsCarousel .carousel-inner {
    min-height: 400px;
}

#relatedEventsCarousel .carousel-item {
    min-height: 400px;
}

*/