.works {
    width: 320px;
    margin: 100px auto;
}

.works img {
    width: 162px;
    margin: auto;
}

.works span {
    display: block;
    border-top: 1px #5D5C5C solid;
    text-align: center;
    color: #5D5C5C;
    font-size: 36px;
}

.bread {
    margin-bottom: 100px;
}

.bread span {
    display: inline-block;
    width: 183px;
    font-size: 20px;
    border-bottom: #C8CFD6 1px solid;
    color: #C8CFD6;
    font-weight: 700;
    margin-right: 30px;
}

.bread span::before {
    content: "";
    width: 10px;
    height: 18px;
    display: inline-block;
    background-image: url(../images/case/right.png);
    background-size: cover;
}

.bread span.current {
    border-bottom: #2CAEEB 1px solid;
    color: #2CAEEB;
}

.bread span.current::before {
    background-image: url(../images/case/right_crt.png);
}

.search {
    background-color: #F3F3E9;
    border-top: 5px #5D5C5C solid;
    padding: 0 40px 40px;
}

.search .title {
    border-bottom: 1px #5D5C5C solid;
    position: relative;
}

.search .title img {
    width: 116px;
    margin: auto;
}

.search .title a {
    position: absolute;
    width: 100px;
    text-align: center;
    display: block;
    font-size: 16px;
    color: #fff;
    background-color: #5D5C5C;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 2px 0 5px;
    border-radius: 5px;
}

.search form {
    display: flex;
    justify-content: space-between;
}

.search form h3 {
    font-size: 21px;
    color: #5D5C5C;
    margin: 10px 0;
}

.search form label {
    display: inline-block;
    min-width: 70px;
    font-size: 16px;
}

.flex_col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 50px);
}

.search form select {
    display: block;
    width: 260px;
    border: #707070 1px solid;
    border-radius: 5px;
    padding: 5px 10px;
}

.search form button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5D5C5C;
    border: none;
    padding: 5px 0;
    border-radius: 5px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search form button:hover {
    opacity: 0.7;
}

.search form button img {
    width: 30px;
}

h3.title {
    text-align: center;
    font-size: 48px;
    font-weight: 500;
}

h3.title span {
    color: #2CAEEB;
}

.grid_cases {
    margin: 50px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
}

.grid_cases a{
    color: #000;
}

.grid_cases img {
    width: 100%;
}

.grid_cases p {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
}

.grid_cases p span {
    color: #2CAEEB;
}

.grid_cases small {
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    color: #5D5C5C;
    border: #5D5C5C 1px solid;
    padding: 0 8px 2px;
    border-radius: 10px;
}

.page {
    margin: 100px 0;
    text-align: center;
}

.page a {
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
}

.page a.current {
    color: #eba82c;
    border-bottom: #eba82c 1px solid;
}

.page a.arrow {
    color: #fff;
    background-color: #5D5C5C;
}


.tabs {
    text-align: center;
}

.tabs small {
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    color: #5D5C5C;
    border: #5D5C5C 1px solid;
    padding: 0 15px 2px;
    border-radius: 20px;
}

.detail_info {
    width: 900px;
    margin: 80px auto;
}

.detail_info img {
    width: 100%;
    margin-bottom: 50px;
}

.detail_info div {
    display: flex;
    border-bottom: #707070 1px solid;
}

.detail_info div span {
    display: block;
    font-size: 19px;
    padding: 20px 40px;
}

.detail_info div span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 275px;
    background-color: #5D5C5C15;
}

.ref_info {
    margin: 50px 0;
    background-color: #F4F3E9;
    padding: 30px;
}

.ref_info h3 {
    width: fit-content;
    margin: auto;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 2px #707070 solid;
}

.ref_info p {
    width: 620px;
    margin: auto;
    font-size: 16px;
}

.bfaf {
    width: 90%;
    max-width: 900px;
    margin: 100px auto;
}

.flex_bfaf {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex_bfaf .before,
.flex_bfaf .after {
    width: 420px;
    position: relative;
}

.flex_bfaf .before::before,
.flex_bfaf .after::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 32px;
    background-size: cover;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.flex_bfaf .before::before {
    background-image: url(../images/detail/before.png);
}

.flex_bfaf .after::after {
    background-image: url(../images/detail/after.png);
}


.flex_bfaf .before img,
.flex_bfaf .after img {
    width: 100%;
}

.arrow {
    width: 30px;
}

.bfaf>div {
    margin: 100px 0 50px;
}

.bfaf p {
    font-size: 18px;
    margin: 10px 0;
}

.back {
    display: block;
    width: 278px;
    text-align: center;
    background-color: #2CAEEB;
    color: #fff!important;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 0;
    margin: auto;
    margin-bottom: 100px;
    text-decoration: none;
}

.comment {
    background-color: #E9EEF2;
    padding: 50px 0;
}

.comment h3 {
    width: fit-content;
    margin: auto;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 2px #707070 solid;
}

.comment p {
    width: 767px;
    margin: 30px auto;
    font-size: 16px;
    line-height: 1.8;
}


@media screen and (max-width:767px) {

    .works {
        width: 60%;
        margin: 30px auto;
    }

    .works img {
        width: 140px;
        margin: auto;
    }

    .works span {
        display: block;
        border-top: 1px #5D5C5C solid;
        text-align: center;
        color: #5D5C5C;
        font-size: 28px;
    }

    .bread {
        margin-bottom: 0;
        padding: 5vw;
    }

    .bread span {
        display: inline-block;
        width: fit-content;
        font-size: 16px;
        margin-right: 10px;
    }

    .bread span::before {
        content: "";
        width: 8px;
        height: 12px;
        display: inline-block;
        background-image: url(../images/case/right.png);
        background-size: cover;
    }

    .bread span.current {
        border-bottom: #2CAEEB 1px solid;
        color: #2CAEEB;
    }

    .bread span.current::before {
        background-image: url(../images/case/right_crt.png);
    }

    .search {
        padding: 0 5% 20px;
    }

    .search .title {
        border-bottom: 1px #5D5C5C solid;
        position: relative;
    }

    .search .title img {
        width: 30%;
        margin: auto;
    }

    .search .title a {
        width: 80px;
        font-size: 14px;
        padding: 2px 0 5px;
        border-radius: 5px;
    }

    .search form {
        display: block;
        justify-content: space-between;
    }

    .search form h3 {
        font-size: 18px;
        color: #5D5C5C;
        margin: 10px 0;
        text-align: center;
    }

    .search form label {
        display: inline-block;
        min-width: 50px;
        font-size: 14px;
        line-height: 2;
        margin-right: 20px;
    }

    .flex_col {
        display: block;
        height: auto;
    }

    .price_search {
        width: 70%;
        margin: 30px auto;
    }

    .price_search h3{
        text-align: left!important;
    }

    .search form select {
        display: block;
        width:100%;
        border: #707070 1px solid;
        border-radius: 5px;
        padding: 5px 10px;
        margin-bottom: 20px;
    }

    .search form button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #5D5C5C;
        border: none;
        padding: 5px 0;
        border-radius: 5px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.3s;
    }

    .search form button:hover {
        opacity: 0.7;
    }

    .search form button img {
        width: 20px;
    }

    h3.title {
        text-align: center;
        font-size: 28px;
        font-weight: 500;
    }

    h3.title span {
        color: #2CAEEB;
    }

    .grid_cases {
        margin: 50px 0;
        padding: 5%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3vw;
    }

    .grid_cases img {
        width: 100%;
    }

    .grid_cases p {
        font-size: 16px;
        font-weight: 500;
        margin: 10px 0;
    }

    .grid_cases p span {
        color: #2CAEEB;
    }

    .grid_cases small {
        font-size: 8px;
        font-weight: 500;
        display: inline-block;
        color: #5D5C5C;
        border: #5D5C5C 1px solid;
        padding: 0 8px 2px;
        border-radius: 10px;
    }

    .page {
        margin: 100px 0;
        text-align: center;
    }

    .page a {
        display: inline-block;
        padding: 10px 15px;
        text-align: center;
    }

    .page a.current {
        color: #eba82c;
        border-bottom: #eba82c 1px solid;
    }

    .page a.arrow {
        color: #fff;
        background-color: #5D5C5C;
    }


    .tabs {
        text-align: center;
    }

    .tabs small {
        font-size: 11px;
        font-weight: 500;
        display: inline-block;
        color: #5D5C5C;
        border: #5D5C5C 1px solid;
        padding: 0 5px 2px;
        border-radius: 10px;
    }

    .detail_info {
        width: 100%;
        margin: 20px auto;
    }

    .detail_info img {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .detail_info div {
        display: flex;
        flex-direction: column;
        border-bottom: none;
        padding:0 5%;
    }

    .detail_info div span {
        display: block;
        font-size: 16px;
        padding: 20px 40px;
        text-align: center;
    }

    .detail_info div span:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        width: 100%;
        background-color: #5D5C5C15;
    }

    .ref_info {
        margin: 50px 0;
        background-color: #F4F3E9;
        padding: 5%;
    }

    .ref_info h3 {
        width: fit-content;
        margin: auto;
        margin-bottom: 20px;
        font-size: 20px;
        font-weight: 500;
        padding-bottom: 5px;
        border-bottom: 2px #707070 solid;
    }

    .ref_info p {
        width: 100%;
        margin: auto;
        font-size: 16px;
        line-height: 1.8;
    }

    .bfaf {
        width: 90%;
        max-width: 900px;
        margin: 100px auto;
    }

    .flex_bfaf {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .flex_bfaf .before,
    .flex_bfaf .after {
        width: 100%;
        position: relative;
    }

    .flex_bfaf .before::before,
    .flex_bfaf .after::after {
        position: absolute;
        content: "";
        width: 100px;
        height: 32px;
        background-size: cover;
        top: 0;
        left: 0;
        transform: translateY(-100%);
    }

    .flex_bfaf .before::before {
        background-image: url(../images/detail/before.png);
    }

    .flex_bfaf .after::after {
        background-image: url(../images/detail/after.png);
    }


    .flex_bfaf .before img,
    .flex_bfaf .after img {
        width: 100%;
    }

    .arrow {
        width: 30px;
        rotate: 90deg;
        padding: 30px;
    }

    .bfaf>div {
        margin: 100px 0 50px;
    }

    .bfaf p {
        text-align: center;
        margin: 10px 0;
    }

    .back {
        display: block;
        width: 278px;
        text-align: center;
        background-color: #2CAEEB;
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        padding: 10px 0;
        margin: auto;
        margin-bottom: 100px;
    }

    .comment {
        background-color: #E9EEF2;
        padding: 50px 0;
    }

    .comment h3 {
        width: fit-content;
        margin: auto;
        margin-bottom: 30px;
        font-size: 22px;
        font-weight: 500;
        padding-bottom: 5px;
        border-bottom: 2px #707070 solid;
    }

    .comment p {
        width: 90%;
        margin: 30px auto;
        font-size: 16px;
        line-height: 1.8;
    }
}
