/*-----------------------
main-visual 全体
-------------------------*/
.main-visual {
    width: 100%;            /* 画面幅いっぱいにする */
    max-width: 100%;        /* 最大幅の制限を解除 */
    margin: 0 auto;
    background: var(--bg-color-white);
    overflow: hidden;       /* 画面外のはみ出しを隠す */
}
.slider {
    width: 100%;
    height: 100%;
    align-items: center; /* 縦方向を中央に */
}
/* スライド1枚の箱 */
.slide {
    width: 100%;
    transition: all 0.2s ease;
    opacity: 0.4;           /* 左右のスライドを薄く */
}

/* スマホでは幅を広げる */
@media screen and (max-width: 767px) {

}

/* 中央のスライド */
.slide-active {
    opacity: 1;
}

/* リンクと画像 */
.slide a {
    display: block;
    width: 100%;
    transform: scale(0.9); /* 左右は少し小さく */
    transition: transform 0.2s ease;
    pointer-events: none; /* クリックを反応させない */
    cursor: default;      /* カーソルを指のマークにしない */
}
.slide-active a {
    transform: scale(1); /* 中央は等倍 */
    pointer-events: auto; /* クリックを有効化 */
    cursor: pointer;      /* カーソルを指のマークにする */
}
.slide img {
    width: 100%;
    height: auto;
    border-radius: 40px 0;
    object-fit: cover;
}
/* 中央スライド */
.slide-active {
    opacity: 1;
}
.slide-active img {
    transform: scale(1);
    opacity: 1;
}

.slide img:hover{
    opacity: 0.6;
}

/* --- テキストエリア（group-sub） --- */
.group-sub {
    margin: 20px 0 0;
    width: 100%;
    max-width: 800px; /* 画像の幅に合わせる */
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    font-size: 14px;
    color: var(--text-color-black);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 中央のスライドの時だけテキストを表示 */
.slide-active .group-sub {
    opacity: 1;
}
/*-category-*/
.category{
    display: flex;
    align-items: center;
    gap:5px;
}

/*-circle-*/
.circle{
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.group1 .circle,
.group2 .circle{
    background: var(--category-color-1);
}
.group3 .circle,
.group4 .circle{
    background: var(--category-color-2);
}
.group5 .circle{
    background: var(--category-color-3);
}

/*-tag-*/
.slide .tag{
    display: flex;
    gap: 10px;
    font-size: 14px;
    align-items: center;
}
/* アクティブじゃない時は少し下に下げておく（ふわっと浮き上がる演出） */
.slide .group-sub {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
/* アクティブになったら定位置に戻して表示 */
.slide-active .group-sub {
    opacity: 1 !important;
    transform: translateY(0);
}
/* スライドの重なり順（中央を一番上に） */
.slide-active {
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .group-sub {
        margin: 20px 0 0;
        gap: 20px;
        font-size: 18px;
        flex-direction: column;
    }
}


/* --- ナビゲーションボタン --- */
.button-prev,
.button-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);  /* 縦方向だけ中央 */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px !important;
    height: 50px !important;
    background: #fdf5f0;
    box-shadow: 1px 1px 10px 0px rgb(180 180 180);
    border-radius: 50%;
    cursor: pointer;
}
.button-prev{
    left: 25%;
}
.button-next{
    right: 25%;
}
.button-prev::after,
.button-next::after {
    font-size: 18px !important; /* 矢印のサイズ */
    font-weight: bold;
}

@media screen and (min-width: 769px) {
    .button-prev:hover,
    .button-next:hover {
        background-color: #f5e9e0;
    }
}

@media screen and (max-width: 768px) {
    /* --- ナビゲーションボタン --- */
    .button-prev,
    .button-next {
        top: 40%;
        transform: translateY(-50%);
        width: 32px !important;
        height: 32px !important;
    }
    .button-prev{
        left: 10%;
    }
    .button-next{
        right: 10%;
    }
}

/*----------arrow ----------*/
.arrow {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 34.3px;
}
/* right */
.arrow-next::before,
.arrow-next::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.75px);
    right: 0px;
    width: 12px;
    height: 2px;
    border-radius: 9999px;
    background: var(--text-color-black);
    transform-origin: calc(100% - 0.75px) 50%;
}
.arrow-next::before {
    transform: rotate(45deg);
}
.arrow-next::after {
    transform: rotate(315deg);
}

/* left */
.arrow-prev::before,
.arrow-prev::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.75px);
    left: 0px;
    width: 12px;
    height: 2px;
    border-radius: 9999px;
    background: var(--text-color-black);
    transform-origin: 0.75px 50%;
}
.arrow-prev::before {
    transform: rotate(45deg);
}
.arrow-prev::after {
    transform: rotate(315deg);
}


@media screen and (max-width: 768px) {

}