.flower__title {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4B6550;
    gap: 8px;
    margin-bottom: 17px;
}

.flower__title h2 {
    font-size: 28px;
    padding-bottom: 2px;
}

.flower__title .en {
    font-size: 22px;
    color: #4B6550;
}

.category__main h3 {
    font-family: "Yu Gothic", "游ゴシック Medium", "游ゴシック体",
        "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
    font-size: 16px;
    color: #77917B;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.category__main h4 {
    font-size: 18px;
    color: #4A4A4A;
    font-weight: inherit;
}

.flower__text {
    text-align: center;
    margin-bottom: 65px;
    line-height: 1.8;
}

.category__main h3::before,
.category__main h3::after {
    background: #E2E8DE;
    height: 2px;
    width: 32%;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.category__main h3::before {
    right: 0;
}

.category__main h3::after {
    left: 0;
}

.present h3::before,
.present h3::after {
    background: #E2E8DE;
    height: 2px;
    width: 20%;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

}

.present h3::before {
    right: 0;
}

.present h3::after {
    left: 0;
}

/* カード */
.category__card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 90px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    overflow: visible;
    margin-bottom: 40px;
}

.category__card-grid::before {
    background-image: url(../image/category__green-background.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.category__card--two-wrap {
    display: flex;
    margin: 0 auto;
    gap: 40px 90px;
    max-width: 1000px;
}

.category__card-grid.two-row {
    grid-template-columns: repeat(2, 1fr);
}

.category__card-grid.two-row::before {
    background-image: url(../image/two-row__green-background.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.card {
    background-color: transparent;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 3px 3px 12px rgba(74, 74, 74, 0.12);
    transform: translateY(-10px);
    transition-duration: 0.3s;
}

.card img {
    object-fit: cover;
    display: block;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.card__body {
    background-color: #fff;
    min-height: 63px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.card img,
.card__body {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card__body p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

@media screen and (max-width: 1200px) {
    .card__body p {
        font-size: 13px;
    }

    .category__card-grid {
        gap: 35px;
    }
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
    .card__title--arrangement {
        font-size: 15px;
    }
}

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

    .inner--small {
        width: 78%;
    }

    .flower__title h2 {
        font-size: 16px;
        padding-bottom: 2px;
    }

    .flower__title .en {
        font-size: 12px;
    }

    .flower__text {
        margin-bottom: 45px;
    }

    .category__main h3 {
        padding: 12px 0;
        font-size: 13px;
    }

    .category__main h3::before,
    .category__main h3::after {
        width: 25%;
    }

    .category__main h4 {
        font-size: 14px;
    }

    .category__card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 30px;
    }

    .category__card-grid::before {
        background-image: url(/image/green-background-sp.svg);
        width: 112%;
    }

    .category__card--two-wrap {
        flex-direction: column;
        gap: 0;
    }

    .card {
        display: flex;
    }

    .card img {
        min-width: 70px;
        border-top-left-radius: 4px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 4px;
    }

    .card__body {
        min-width: 90px;
        border-top-right-radius: 4px;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .card__body .card__text {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .category__main h4 {
        font-size: 12px;
    }
}

/* カテゴリー第三下層共通 */

.category__main--wrap .main__title {
    margin-bottom: 20px;
}

.category__main--wrap .main__text {
    font-size: 15px;
    line-height: 1.5;
}

.section__info__text {
    color: #745C4C;
    background-color: #fff;
    border: 1px solid #9A8A7F;
    border-radius: 4px;
    text-align: center;
    line-height: 1.8;
    font-size: 12px;
    padding: 8px 27px;
    margin: 25px auto 70px;
    width: 60%;
    max-width: 600px;
}

.section__info__p {
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .section__info__text {
        margin: 20px auto 50px;
        width: 100%;
    }

    .category__main--wrap .main__text {
        font-size: 13px;
    }
}

/* カード */

.category__sub--card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px 52px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}


.category__sub--card-grid img {
    border-radius: 4px;
}

@media screen and (max-width: 1200px) {
    .category__sub--card-grid {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .category__sub--card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 下部カテゴリーボタン */

.category__btn {
    margin: 107px auto 130px;
    max-width: 1440px;
}

.category__btn .inner--medium {
    width: 79%;
}

.category__sub--btn {
    display: flex;
    justify-content: space-between;
}

.category__sub--btn:first-of-type {
    padding-bottom: 25px;
}

.category__sub--btn a {
    color: #77917B;
    line-height: 1.8;
    font-weight: 700;
    padding: 2px 50px 2px 28px;
    border: 1px solid #77917B;
    border-radius: 50px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.category__btn__arrow {
    margin-left: 10px;
    /* テキストとの間隔 */
}

/* 矢印 */
.category__btn__arrow {
    position: absolute;
    content: "";
    top: 50%;
    right: 20px;
    /* 右端からの距離 */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.category__sub--btn a:hover .category__btn__arrow {
    right: 17px;
}

.category__sub--btn a:hover {
    background-color: #77917B;
    color: #fff;
}

/* 棒部分 */
.category__btn__arrow::before {
    content: "";
    display: block;
    width: 16px;
    /* 棒の長さ */
    height: 1px;
    /* 棒の太さ */
    background-color: #77917B;
}

/* 塗りつぶし三角部分 */
.category__btn__arrow::after {
    content: "";
    display: block;
    width: 7.5px;
    /* 三角の幅 */
    height: 4.5px;
    /* 三角の高さ */
    background-color: #77917B;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    /* 右向き三角 */
}

.category__sub--btn a:hover .category__btn__arrow::after {
    background-color: #fff;
}

.category__sub--btn a:hover .category__btn__arrow::before {
    background-color: #fff;
}

@media screen and (max-width: 1200px) {
    .category__btn .inner--medium {
        width: 90%;
    }

    .category__sub--btn a {
        font-size: 14px;
    }

    .category__sub--btn {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 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) {
    .card:hover {
        box-shadow: 3px 3px 12px rgba(74, 74, 74, 0.12);
        transform: translateY(-10px);
        transition-duration: 0.3s;
    }

    .category__sub--btn a:hover .category__btn__arrow {
        right: 17px;
    }

    .category__sub--btn a:hover {
        background-color: #77917B;
        color: #fff;
    }

    .category__sub--btn a:hover .category__btn__arrow::after {
        background-color: #fff;
    }

    .category__sub--btn a:hover .category__btn__arrow::before {
        background-color: #fff;
    }
}

@media (hover: none) and (pointer: coarse) {
    .card:hover {
        box-shadow: none;
        transform: none;
    }

    .category__sub--btn a:hover .category__btn__arrow {
        right: 20px;
    }

    .category__sub--btn a:hover {
        background-color: none;
        color: inherit;
    }

    .category__sub--btn a:hover .category__btn__arrow::after {
        background-color: inherit;
    }

    .category__sub--btn a:hover .category__btn__arrow::before {
        background-color: inherit;
    }
}