@charset "utf-8";

.tab-wrap{
    display: flex;
    gap: 5%;
    margin: 20px 0;
    height: 100%;
}
.tabmenu {
    width: 20%;
    padding: 0;
    margin: 0;
    list-style-type: none;
    border-right: 1px solid #dadada;
}

.tabmenu>li {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #dadada;
    border-right: none;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tabmenu>li.on {
    color: #FFFFFF;
    background-color: #93979F;
}

.tabmenu>li:hover {
    background-color: #e0e0e0;
}

.tabcon{
    width: 72%;
    height: 100%;
}

.tabcon h4{
    text-align: center;
    font-size: 40px;
    margin-bottom: 32px;
}

.tabcon h5 {
    font-size: 30px;
    margin-bottom: 20px;
}

.tabcon p{
    margin-bottom: 10px;
    font-size: 20px;
}

.img_box {
    width: 100%;
    background: #f8f8f8;
    border: #dadada 1px solid;
    padding: 10px;
    margin: 20px 0 30px 0;
}

.img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}


/*수제천 악기*/
.con-wrap{
    display: flex;
    gap: 20px;
}

.con-wrap img{
    border: 1px solid black;
}



.underlined-text {
    position: relative;
    display: inline-block;
    color: white; /* Adjust color as needed */
}

.underlined-text::after {
    content: "";
    position: absolute;
    width: 80%; /* Set the underline width to 80% */
    height: 2px; /* Adjust thickness of the underline */
    bottom: -20px; /* Adjust distance between text and underline */
    left: 50%;
    transform: translateX(-50%); /* Center the underline */
    background-color: white; /* Adjust underline color */
}



@media (max-width:540px){
    .tab-wrap{
        flex-direction: column;
        height: max-content;
        align-items: center;
        gap: 20px;
    }

    .tabmenu {
        width: 100%;
        display: flex;
        border: none;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tabmenu>li {
        width: auto;
        flex: none;
        padding: 10px 15px;
        border: 1px solid #dadada;
        margin-bottom: 0;
        border-right: 1px solid #dadada;
        border-left: 1px solid #dadada;
    }

    .tabmenu>li:last-child {
        border-right: 1px solid #dadada;
    }

    .tabmenu>li.on {
        background-color: #93979F;
    }

    .tabcon {
        width: 100%;
    }

    .con-wrap{
        flex-direction: column;
    }
    
}