.tab__wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;
    max-width: 1260px;
    margin: 0 auto;
}

.tab__wrap img {
    width: 48px;
    max-height: 61px;
}

.tab__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 30%;
    height: 100px;
    transition: all 0.3s ease-in-out;
}


.tab__celebration h2 {
    padding-bottom: 8px;
}

.tab__home h2 {
    padding-bottom: 8px;
}


.tab__container h2 {
    color: #4B6550;
    font-size: 28px;
}

.tab__container p {
    text-align: center;
    font-size: 14px;
    color: #4B6550;
}

#celebration-tab,
#funeral-tab,
#home-tab {
    scroll-margin-top: 130px;
}

.tab__container:hover {
    background-color: #fff;
}

@media screen and (max-width: 1200px) {

    .tab__container {
        width: 32%;
        gap: 2px;
    }

    .tab__container h2 {
        font-size: 22px;
    }

    .tab__wrap {
        gap: 0px;
    }


}

@media screen and (max-width: 768px) {
    .tab__container {
        flex-direction: column;
        height: 84px;
        gap: 0;
    }

    .tab__container h2 {
        font-size: 15px;
    }

    .tab__container p {
        font-size: 10px;
    }

    .tab__wrap img {
        width: 31px;
        max-height: 31px;
    }
}

@media screen and (max-width: 480px) {

    .main__contents .inner--medium {
        width: 100%;
    }

    .tab__wrap {
        gap: 9px;
    }
}

/* メインコンテンツ */

.purpose__main {
    background-color: #fff;
    max-width: 1260px;
    margin: 0 auto 100px;
}

.purpose__title--wrap {
    display: flex;
    padding: 70px 45px 100px;
    gap: 37px;
}

.purpose__title--wrap h3 {
    font-size: 28px;
    color: #77917B;
}

.purpose__title--wrap p {
    line-height: 1.8;
}

.purpose__title--info {
    font-size: 12px;
    color: #9A8A7F;
    padding-bottom: 30px;
}

.purpose__text {
    padding: 12px 0 20px;
    max-width: 600px;
}

.purpose__title--wrap img {
    border-radius: 4px;
}

.scroll__button {
    padding: 6px 20px;
    color: #9A8A7F;
    border: 1px solid #9A8A7F;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.scroll__button--wrap {
    max-width: 620px;
}

.scroll__button:hover {
    background: #9A8A7F;
    color: #fff;
    border: 1px solid #fff;
}

.scroll__button--wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

.scroll__button .arrow {
    margin-right: 6px;
    margin-bottom: 2px;
}


.scroll__button .arrow::before,
.scroll__button .arrow::after {
    background-color: #9A8A7F;
    transition: background-color 0.3s ease-in-out;
}

.scroll__button:hover .arrow::before,
.scroll__button:hover .arrow::after {
    background-color: #fff;
}



@media screen and (max-width: 1200px) and (min-width: 768px) {
    .purpose__title--wrap img {
        max-width: 509px;
    }
}

@media screen and (max-width: 1200px) {
    .purpose__title--wrap {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding: 50px 20px 70px;

    }

    .purpose__title--wrap h3 {
        font-size: 18px;
        text-align: center;
        padding-bottom: 12px;
    }
}

@media screen and (max-width: 768px) {
    .purpose__title--wrap {
        gap: 0px;
    }

    .purpose__text {
        padding-bottom: 10px;
    }

    .purpose__title--info {
        padding-bottom: 50px;
    }
}

.purpose__main--container {
    padding-bottom: 20px;
}

.contents-title--wrap {
    display: flex;
    gap: 60px;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #77917B;
    padding: 21px 40px;
}


.purpose__contents--wrap {
    margin: 0 40px;
}

.main__title {
    font-size: 26px;
    font-family: "Shippori Mincho", serif;
    font-weight: 600;
    line-height: 1.8;
    color: #77917B;
    margin-bottom: 0;
    margin-left: 41px;
    white-space: nowrap;
}

.main__title::before {
    top: 50%;
    left: -35px;
    width: 38px;
}

.main__title::after {
    display: none;
}


/* スライド */
.purpose__slide-wrap {
    display: flex;
    align-items: center;
    gap: 50px;
    overflow-x: auto;
    scroll-behavior: smooth;
    margin-bottom: 80px;
}

.purpose__slide-wrap::-webkit-scrollbar {
    display: none;
}

/* --- カード --- */
.slide-item {
    flex: 0 0 auto;
    max-width: 302px;
    overflow: hidden;
}

.slide-item img {
    display: block;
    width: 100%;
    max-height: 302px;
    object-fit: cover;
    border-radius: 4px;
}

.slide-item p {
    color: #77917B;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    margin-top: 11px;
    line-height: 1.8;
}

/* --- スクロールバー --- */
.scrollbar__wrap {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
}

.scrollbar__wrap p {
    font-weight: 600;
    color: #4B6550;
    font-size: 14px;
    margin-bottom: 8px;
}

.scrollbar {
    position: relative;
    height: 3px;
    background-color: #E2E8DE;
    border-radius: 3px;
    width: 200px;
}

.scrollbar-thumb {
    position: absolute;
    height: 3px;
    background-color: #77917B;
    border-radius: 3px;
    left: 0;
    width: 10%;
    transition: left 0.2s ease-out;
}

/* --- ボタン --- */
.purpose__slide--controller {
    display: flex;
    gap: 12px;
}

.slide-btn {
    background: #77917B;
    border: none;
    border-radius: 50%;
    width: 33px;
    height: 33px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.slide-btn .btn__arrow {
    position: absolute;
    content: "";
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    width: 19px;
}

.slide-btn:hover {
    background: #4B6550;
}

.prev .btn__arrow {
    transform: rotate(180deg);
    top: 45%;
}

@media screen and (max-width: 1200px) {
    .contents-title--wrap {
        gap: 30px;
        padding: 16px 16px;
    }


    .main__title {
        font-size: 22px;
    }


    .contents-title--wrap {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .contents-title--wrap {
        flex-direction: column;
        gap: 7px;
        align-items: flex-start;
        padding: 17px 20px;
    }

    .purpose__contents--wrap {
        margin: 0 20px;
    }

    .purpose__slide-wrap {
        gap: 14px;
        margin-bottom: 60px;
    }

    .scrollbar__wrap p {
        font-weight: 600;
        color: #77917B;
        font-size: 12px;
    }

    .slide-item {
        max-width: 210px;
    }

    .slide-item img {
        width: 100%;
        max-height: none;
        min-height: 158px;
        object-fit: cover;
        display: block;
        height: auto;
    }

    .slide-item p {
        font-size: 13px;
    }

    .purpose__main--container {
        padding-bottom: 50px;
    }
}

@media screen and (max-width: 480px) {
    .main__title {
        font-size: 20px;
        margin-left: 20px;
    }
}

.flower-cta {
    position: relative;
    overflow: hidden;
    height: 207px;
    z-index: 1;
}

.flower-cta::before {
    position: absolute;
    content: "";
    background-image: linear-gradient(0deg, #e2e8de, #f5f3f1);
    width: 100%;
    height: 120px;
    top: 0;
    left: 0;
    z-index: -1;
}

.flower-cta::after {
    content: "OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI OHANAYA HIIRAGI";
    position: absolute;
    top: 48%;
    left: 0;
    font-family: "Marcellus", serif;
    display: inline-block;
    font-size: 55px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    transform: translateY(-50%);
    animation: marquee 100s linear infinite;
    z-index: -1;
}

@keyframes marquee {
    0% {
        transform: translateX(0) translateY(-50%);
    }

    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

.flower-cta__container {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    background-color: #fff;
    color: #745C4C;
    line-height: 1.8;
    margin: 50px auto 0;
    width: 93%;
    padding: 22px 20px;
    border-radius: 4px;
    max-width: 900px;
}

.flower-cta__img {
    background-color: #E2E8DE;
    width: 115px;
    height: 90px;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}


.flower-cta__img::after {
    background-image: url(/image/smp-img.png);
    position: absolute;
    content: "";
    height: 89px;
    width: 115px;
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.flower-cta__img::before {
    background-image: url(/image/smp-img-sub.png);
    position: absolute;
    content: "";
    z-index: 3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 143px;
    height: 97.2px;
    left: -16px;
    top: -8px;
}

.flower-cta__text--wrap {
    padding-left: 30px;
    width: 70%;
}

@media screen and (max-width: 1200px) {
    .flower-cta__container {
        font-size: 14px;
        width: 100%;
        gap: 10px;
    }

    .flower-cta__text--wrap {
        padding-left: 20px;
    }
}

@media screen and (max-width: 768px) {
    .flower-cta__container {
        font-size: 12px;
    }

    .category__main--wrap {
        margin-bottom: 30px;
    }

    .flower-cta::after {
        font-size: 35px;
    }

}

@media screen and (max-width: 480px) {
    .flower-cta__img::after {
        width: 80px;
    }

    .flower-cta__img::before {
        width: 100px;
    }

    .flower-cta__text--wrap {
        padding-left: 10px;
    }

    .flower-cta__img {
        width: 75px;
        height: 90px;
    }

    .flower-cta__container {
        padding: 18px 10px;
    }
}

.content-nav {
    margin: 100px auto 130px;
}

@media screen and (max-width: 768px) {
    .content-nav {
        margin: 80px auto 110px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .tab__container:hover {
        background-color: #fff;
    }

    .scroll__button:hover {
        background: #9A8A7F;
        color: #fff;
        border: 1px solid #fff;
    }

    .scroll__button:hover .arrow::before,
    .scroll__button:hover .arrow::after {
        background-color: #fff;
    }

    .slide-btn:hover {
        background: #4B6550;
        color: #fff;
    }

}

@media (hover: none) and (pointer: coarse) {
    .tab__container:hover {
        background-color: none;
    }

    .scroll__button:hover {
        background: none;
        color: inherit;
        border: inherit;
    }

    .scroll__button:hover .arrow::before,
    .scroll__button:hover .arrow::after {
        background-color: none;
    }

    .slide-btn:hover {
        background: inherit;
    }

}