@charset "utf-8";

footer{
    position: relative;
    width: 100%;
    height: 351px;
    background-color: #F8F9FA;
    color: #333333;
}

.footer-inner {
    width: 100%;
    height: 100%;
    max-width: 1320px;
    padding: 0 20px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 0 34px 0;
    border-bottom: 1px solid #E9E9E9;
}

.footer-top .terms {
    display: flex;
    gap: 40px;
}
.footer-top .terms a {
    color: #767676;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px; /* 125% */
    transition: all 0.2s ease;
}
.footer-top .terms a:hover {
    font-weight: 700;
    color: #333;
}

.footer-dropdown{
    position: relative;
    width: 215px;
}
.footer-dropdown-btn {
    display: inline-flex;
    padding: 13px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: #333;
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.footer-dropdown-btn:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.footer-dropdown-btn svg {
    transition: transform 0.3s ease;
}

.footer-dropdown.active .footer-dropdown-btn svg {
    transform: rotate(180deg);
}

.footer-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
    z-index: 100;
}

.footer-dropdown.active .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
}

.footer-dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.footer-dropdown-menu li:last-child {
    border-bottom: none;
}

.footer-dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.footer-dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(51, 51, 51, 0.05) 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.footer-dropdown-menu a:hover {
    color: #333;
    font-weight: 700;
    padding-left: 28px;
}

.footer-dropdown-menu a:hover::before {
    width: 100%;
}

.footer-dropdown-menu li:first-child a {
    border-radius: 10px 10px 0 0;
}

.footer-dropdown-menu li:last-child a {
    border-radius: 0 0 10px 10px;
}

.footer-bottom {
    display: flex;
    gap: 77px;
    padding-top: 34px;
}

.footer-bottom .footer-logo {
    width: 242px;
}
.footer-bottom .footer-logo img {
    width: 100%;
}


.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info p {
    color: #333;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px; /* 133.333% */
    word-break: keep-all;
}

.footer-info span {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

.footer-info p.footer-info-pc {
    display: block;
}

.footer-info p.footer-info-mobile {
    display: none;
}

@media all and (max-width: 768px) {
    footer{
        height: auto;
    }
    
    .footer-inner {
        padding: 53px 20px 100px 20px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        padding: 0 0 40px 0;
    }
    
    .footer-top .terms {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-dropdown{
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-top: 30px;
    }
    
    .footer-bottom .footer-logo {
        width: 242px;
    }
    .footer-bottom .footer-logo img {
        width: 100%;
    }
    
    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-info p.footer-info-pc {
        display: none;
    }

    .footer-info p.footer-info-mobile {
        display: block;
    }
}

.btn-top{
    position: absolute;
    top: -27px;
    right: 200px;
    width: 54px;
    height: 54px;
    background: #10488C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
}

.btn-top i{
    font-size: 24px;
    color: #fff;
}

@media all and (max-width: 768px) {
    .btn-top{
        right: 30px;
    }
}