@charset "utf-8";

/*--------------------------footer----------------------------*/
.l-footer {
    display: none;
}

.footer {
    background-color: #333333;
    padding: 100px 0;
    position: relative;
}

.footer-logo {
    position: absolute;
    left: 0;
    top: 0;
    color: #CF0010;
    font-weight: bold;
    background-color: rgba(255,255,255,0.9);
    display: block;
    text-align: center;
    padding: 8px 20px 16px;
    font-size: 26px;
    line-height: 1.3;
}

.footer-logo p {
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.footer-logo span {
    font-size: 18px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    width: 90%;
}

.footer-title {
    color: #fff;
    font-weight: bold;
    font-size: 39px;
    text-align: center;
    margin-bottom: 30px;
}

.footer-text {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    position: relative;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

.footer-text::before {
    content: "";
    position: absolute;
    display: block;
    width: 3px;
    height: 90%;
    background-color: #fff;
    -webkit-transform: rotate(-25deg);
        -ms-transform: rotate(-25deg);
            transform: rotate(-25deg);
    left: -20px;
    bottom: 0;
}

.footer-text::after {
    content: "";
    position: absolute;
    display: block;
    width: 3px;
    height: 90%;
    background-color: #fff;
    -webkit-transform: rotate(25deg);
        -ms-transform: rotate(25deg);
            transform: rotate(25deg);
    right: -20px;
    bottom: 0;
}

.footer-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin-top: 12px;
}

.footer-btn {
    background-color: #CF0010;
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    width: 30%;
    position: relative;
    border-radius: 50px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.footer-btn:first-of-type, .footer-btn:nth-of-type(2), .footer-btn:nth-of-type(3) {
    margin-bottom: 10px;
}

.footer-btn__text_small {
    font-size: 16px;
}

.footer-btn img {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 30px;
    display: block;
}

.footer-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: .3s;
  transition: .3s;
  z-index: 100;
}

.footer-popup {
  position: fixed;
  border: #CF0010 2px solid;
  background: #fff;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;  
  -webkit-transition: .3s;  
  transition: .3s;
  z-index: 101;
  margin: 0 20px 20px 0;
}

.footer-popup__inner {
    position: relative;
    padding: 40px 54px 40px 20px;
}

.footer-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: block;
    width: 30px;
    cursor: pointer;
}

.footer-popup__link {
    display: block;
    font-weight: bold;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.footer-popup__link:not(:first-of-type) {
    margin-top: 8px;
}

.footer-popup__overlay.active,
.footer-popup.active {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) {
    .footer-logo:hover p {
        opacity: 0.7;
    }

    .footer-btn:hover {
        opacity: 0.8;
    }

    .footer-popup__link:hover {
        opacity: 0.8;
    }
}

@media screen and (max-width: 950px) {
    .footer-popup__inner {
        padding: 28px 54px 28px 20px;
    }
}

@media screen and (max-width: 850px) {
    .footer-btn {
        width: 32%;
    }
}

@media screen and (max-width: 768px) {
    .footer-logo {
        padding: 6px 16px 12px;
        font-size: 20px;
    }

    .footer-logo span {
        font-size: 14px;
    }

    .footer-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .footer-text {
        font-size: 16px;
    }

    .footer-content {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }

    .footer-btn {
        width: 100%;
        position: relative;
        border-radius: 50px;
        padding: 12px;
        max-width: 400px;
    }

    .footer-btn.footer-btn:nth-of-type(4), .footer-btn:nth-of-type(5) {
        margin-bottom: 10px;
    }

    .footer-popup {
        margin: 0 20px 0 -35px;
    }

    .footer-popup__close {
        top: -36px;
        right: 0;
        width: 30px;
    }
}

@media screen and (max-width: 500px) {
    .footer-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 350px) {
    .footer-popup__inner {
        padding: 20px 54px 20px 20px;
    }
}
