.c-search-result-fragment {
    display: block;
    padding: 21px;
    margin-top: 20px;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    
    .c-search-result-fragment-title {
        display: block;
        font-size: 21.5px;
        line-height: 1.4em;
        color: #474747;
    }

    .c-search-result-fragment-author {
        display: block;
        font-size: 15px;
        line-height: 1.2em;
        color: #808080;
    }
    
    .c-search-result-fragment-text {
        margin-top: 16px;
        padding: 6px 12px;
        display: block;
        color: #474747;
        background: #F2F2F2;
        border-radius: 4px;
        font-size: 18px;
        line-height: 1.5em;

        &:hover {
            text-decoration: none;
            background-color: #d2d2d2;
        }

        strong {
            font-weight: normal;
            background: #FFEA00;
        }
    }
}


.c-search-result {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
    line-height: 27px;

    &.c-search-result-author {
        li {
            padding-left: 52px;
            figure {
                font-size: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 40px;
                height: 40px;
                margin-left: -52px;
                margin-right: 12px;
                overflow: hidden;
                border-radius: 50%;
                img {
                    width: 100%;
                }
            }
        }
    }

    li {
        margin-bottom: 5px;
        a {
            display: flex;
            align-items: center;
        }
    }
}


.c-search-result-collection {
    display: flex;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}



.c-search-result-pd {
    margin-top: 64px;
    padding: 34px;
    font-size: 18px;
    line-height: 24px;
    background: #E1F1F2;
    border-radius: 10px;

    h2 {
        color: #007880;
        font-size: 21px;
        line-height: 30px;
        font-weight: bold;
        margin: 0;
    }

    p {
        font-size: 18px;
        line-height: 27px;
    }
    
    > div {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 26px;
        > div {
            background: white;
            padding: 21px;
            border-radius: 10px;
            width: 343px;
            a {
                color: #474747;
                line-height: 28px;
            }

            strong {
                display: block;
                margin-bottom: 10px;
                color: #083F4D;
                font-size: 25px;
                line-height: 30px;
            }

            em {
                font-style: normal;
                font-weight: bold;
            }
        }
    }
}


.ui-autocomplete {
    .ui-menu-item {
        &:before {
        }

        span {
            border-radius: 18px;
            padding: 0px 10px;
        }

        &.type-info {
            &:before {
                content: '\1f6c8';
                position: absolute;
                left: 0;
                width:36px;
                line-height: 36px;
                text-align: center;
            }
        }
        &.type-theme {
            &:before {
                content: '☆';
                position: absolute;
                left: 0;
                width:36px;
                line-height: 36px;
                text-align: center;
            }
        }
        &.type-genre {
            a, a:hover {
                span {
                    color: black;
                    background: $wl-green;
                }
            }
        }
        &.type-epoch {
            a, a:hover {
                span {
                    background: $wl-teal;
                    color: white;
                }
            }
        }
        &.type-kind {
            a, a:hover {
                span {
                    color: black;
                    background: $wl-red;
                }
            }
        }
        &.type-author {
            img {
                border-radius: 18px;
            }
        }
        &.type-set {
            &:before {
                content: '';
                position: absolute;
                left: 0;
                width:36px;
                line-height: 36px;
                text-align: center;
                font-family: 'wl' !important;
                color: $wl-red;
            }
        }
        
        a.ui-menu-item-wrapper {
            display: flex;
            transition: none;
            padding: 0;
            align-items: center;

            &:hover {
                text-decoration: none;
            }
            
            div {
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 5px;
                img {
                    max-height: 36px;
                    max-width: 36px;
                }
            }
        }
    }
}

