/* ===== FOOTER STYLES ===== */
.main-footer {
    position: relative;
    margin-top: -6.4rem;
    padding: 0;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/footer_background.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 0rem 2rem;
    color: #fff;
}

/* Footer Top Section */
.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 3rem; /* Back to original gap */
}

/* Contact Button - Position to the left of social icons */
.footer-contact {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.contact-btn {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn .icon-before,
.contact-btn .icon-after {
    width: 138px;
    height: 70px;
    transition: opacity 0.3s ease;
}

.contact-btn .icon-after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.contact-btn:hover .icon-before {
    opacity: 0;
}

.contact-btn:hover .icon-after {
    opacity: 1;
}

/* Social Media Section - Centered */
.footer-social {
    flex: 0 0 auto;
    text-align: center;
}

.follow-text {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 27px;
    color: #fff;
    position: relative;
    left: 5.75rem; /* Shift slightly to align with Instagram icon center */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Gap between social icons */
    flex-wrap: wrap;
    align-items: center;
    margin-left: 120px;
}

.social-icons a {
    margin-left: 1rem;
}

.social-icon {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon .icon-before,
.social-icon .icon-after {
    width: 68px;
    height: 46px;
    transition: opacity 0.3s ease;
}

.social-icon .icon-after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.social-icon:hover .icon-before {
    opacity: 0;
}

.social-icon:hover .icon-after {
    opacity: 1;
}

/* Rocket Section - Position to the right of social icons */
.footer-rocket {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    margin-top: -220px;
}

.rocket-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.rocket-img {
    width: 118px;
    height: 215px;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rocket-img-after {
    width: 118px;
    height: 280px;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rocket-img-after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Rocket flying animation */
.rocket-flying {
    position: fixed !important;
    z-index: 9999 !important;
    animation: flyToTop 3s ease-out forwards;
    pointer-events: none;
}

@keyframes flyToTop {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.rocket-btn:active .rocket-img {
    opacity: 0;
}

.rocket-btn:active .rocket-img-after {
    opacity: 1;
}

.rocket-top-arrow {
    width: 20px;
    height: 20px;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rocket-top-arrow.hide-on-click {
    opacity: 0;
    visibility: hidden;
}

.rocket-text {
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.rocket-text.hide-on-click {
    opacity: 0;
    visibility: hidden;
}

/* Footer Middle Section */
.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 0 3rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10%;
}

.footer-left .contact-btn {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: -25px;
}

.footer-left .contact-btn:hover {
    transform: scale(1.05);
}

.footer-left .contact-btn .icon-before,
.footer-left .contact-btn .icon-after {
    width: 155px;
    height: 85.44px;
    transition: opacity 0.3s ease;
}

.footer-left .contact-btn .icon-after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.footer-left .contact-btn:hover .icon-before {
    opacity: 0;
}

.footer-left .contact-btn:hover .icon-after {
    opacity: 1;
}

.footer-office-info {
    color: #fff;
}

.footer-office-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-office-hours {
    font-size: 15px;
    color: #fff;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-right {
    text-align: left;
}

.footer-phone-large {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 64px;
    font-weight: bold;
    margin-left: 5%;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.footer-phone-large:hover {
    color: #f0f0f0;
}

.footer-phone-number {
    font-size: 50px;
    margin-right: 0.5rem;
    font-family: 'Bahnschrift', sans-serif;
}

.footer-phone-arrow {
    font-size: 56px;
}

.footer-phone-description {
    font-size: 10px;
    color: #fff;
    line-height: 1.4;
    max-width: 600px;
    font-family: 'Noto Sans JP', sans-serif;
    margin-left: auto;
    margin-right: 10%;
    margin-top: -40px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-links {
    font-size: 15px;
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link,
.footer-phone {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-phone:hover {
    color: #ffe066;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    background: #AB5858;
    padding: 1rem 2rem;
    margin: 1rem -2rem 0 -2rem;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .main-footer {
        margin-top: -2rem;
    }
    
    .footer-content {
        padding: 1rem 1rem 0rem 1rem;
    }

    .footer-background {
        background-size: cover;
    }
    
    .footer-top {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .contact-btn .icon-before,
    .contact-btn .icon-after {
        width: 80px;
        height: 40px;
    }
    
    .footer-social {
        margin-left: 0.3rem;
    }
    
    .follow-text {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }

    .footer-phone-arrow {
        font-size: 22px;
    }
    
    .social-icons {
        gap: 0.5rem;
        margin-left: 0;
    }
    
    .social-icon .icon-before,
    .social-icon .icon-after {
        width: 40px;
        height: 28px;
    }
    
    .footer-rocket {
        margin-top: -80px;
    }
    
    .rocket-img {
        width: 60px;
        height: 110px;
    }
    
    .rocket-img-after {
        width: 60px;
        height: 130px;
    }
    
    .rocket-text {
        font-size: 14px;
    }
    
    .rocket-top-arrow {
        width: 12px;
        height: 12px;
    }
    
    .footer-middle {
        flex-direction: row;
        align-items: center;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .footer-left {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        margin-left: 0;
    }
    
    .footer-left .contact-btn {
        margin-top: -20px;
    }
    
    .footer-left .contact-btn .icon-before,
    .footer-left .contact-btn .icon-after {
        width: 70px;
        height: 35px;
    }
    
    .footer-office-title {
        font-size: 14px;
        font-weight: bold;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-office-hours {
        font-size: 10px;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-phone-large {
        font-size: 28px;
        justify-content: center;
        margin-left: 0;
    }
    
    .footer-phone-number {
        font-size: 17px;
        font-family: 'Bahnschrift', sans-serif;
    }
    
    .footer-phone-description {
        font-size: 8px;
        max-width: 300px;
        text-align: right;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-description {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .footer-bottom {
        padding-top: 0.5rem;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 1rem;
        font-size: 10px;
        margin-bottom: 0.5rem;
    }
    
    .footer-link,
    .footer-phone {
        font-size: 10px;
    }
    
    .footer-copyright {
        font-size: 9px;
        padding: 0.5rem 1rem;
        margin: 0.3rem -1rem 0 -1rem;
        background: #AB5858;
    }
}

/* iPhone 14 Pro Max and similar large phones (430px width) */
@media (max-width: 430px) {
    .main-footer {
        margin-top: -1.8rem;
    }
    
    .footer-content {
        padding: 0.9rem 0.5rem 0rem 0.5rem;
    }
    
    .footer-top {
        margin-bottom: 0.5rem;
        gap: 0.9rem;
    }
    
    .contact-btn .icon-before,
    .contact-btn .icon-after {
        width: 70px;
        height: 35px;
    }
    
    .footer-social {
        margin-left: 0.25rem;
    }
    
    .follow-text {
        left: 10%;
        font-size: 15px;
        margin-bottom: 0.45rem;
    }
    
    .social-icons {
        gap: 0.45rem;
    }
    
    .social-icon .icon-before,
    .social-icon .icon-after {
        width: 38px;
        height: 26px;
    }
    
    .footer-rocket {
        margin-top: -75px;
    }
    
    .rocket-img {
        width: 55px;
        height: 100px;
    }
    
    .rocket-img-after {
        width: 55px;
        height: 120px;
    }
    
    .rocket-text {
        font-size: 13px;
    }
    
    .rocket-top-arrow {
        width: 11px;
        height: 11px;
    }
    
    .footer-middle {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
        margin-left: 0;
    }
    
    .footer-left .contact-btn {
        margin-top: 0;
    }
    
    .footer-left .contact-btn .icon-before,
    .footer-left .contact-btn .icon-after {
        width: 70px;
        height: 35px;
    }
    
    .footer-office-title {
        font-size: 12px;
        font-weight: bold;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-office-hours {
        font-size: 8px;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-right {
        margin-top: -25px;
        margin-bottom: -10px;
        text-align: center;
        min-width: 0;
    }
    
    .footer-phone-large {
        font-size: 24px;
        justify-content: center;
        margin-left: 0;
    }
    
    .footer-phone-number {
        font-size: 20px;
        font-family: 'Bahnschrift', sans-serif;
    }

    .footer-phone-arrow {
        font-size: 22px;
    }
    
    .footer-phone-description {
        font-size: 5px;
        max-width: 300px;
        text-align: center;
        margin-right: auto;
        margin-left: auto;
        margin-top: 1%;
        font-family: 'Noto Sans JP', sans-serif;
    }

    .footer-office-info {
        margin-bottom: -25px;
    }
    
    .footer-description {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .footer-bottom {
        padding-top: 0.45rem;
    }
    
    .footer-links {
        gap: 0.9rem;
        font-size: 9.5px;
        margin-bottom: 0.45rem;
    }
    
    .footer-link,
    .footer-phone {
        font-size: 9.5px;
    }
    
    .footer-copyright {
        font-size: 10px!important;
        padding: 0.45rem 0.5rem;
        margin: 0.25rem -0.5rem 0 -0.5rem;
        background: #AB5858;
    }
}

/* iPhone 12 Pro and similar medium phones (390px width) */
@media (max-width: 390px) {
    .main-footer {
        margin-top: -1.5rem;
    }
    
    .footer-content {
        padding: 0.8rem 0.4rem 0rem 0.4rem;
    }
    
    .footer-top {
        gap: 0.8rem;
    }
    
    .contact-btn .icon-before,
    .contact-btn .icon-after {
        width: 65px;
        height: 32px;
    }
    
    .footer-social {
        margin-left: 0.2rem;
    }
    
    .follow-text {
        font-size: 14px;
        margin-bottom: 0.4rem;
    }
    
    .social-icons {
        gap: 0.1rem;
    }
    
    .social-icon .icon-before,
    .social-icon .icon-after {
        width: 35px;
        height: 24px;
    }
    
    .footer-rocket {
        margin-top: -70px;
    }
    
    .rocket-img {
        width: 50px;
        height: 90px;
    }
    
    .rocket-img-after {
        width: 50px;
        height: 110px;
    }
    
    .rocket-text {
        font-size: 12px;
    }
    
    .rocket-top-arrow {
        width: 10px;
        height: 10px;
    }
    
    .footer-middle {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 35px;
    }
    
    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        margin-bottom: 0.1rem;
        margin-left: 0;
    }
    
    .footer-left .contact-btn {
        margin-top: -20px;
    }
    
    .footer-left .contact-btn .icon-before,
    .footer-left .contact-btn .icon-after {
        width: 70px;
        height: 35px;
    }
    
    .footer-office-title {
        font-size: 12px;
        font-weight: bold;
        font-family: 'Noto Sans JP', sans-serif;
    }
    .footer-office-info{
        margin-bottom: 0px;
    }

    .footer-office-hours {
        font-size: 7px;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-phone-large {
        font-size: 20px;
        justify-content: center;
        margin-left: 0;
    }
    
    .footer-phone-number {
        font-size: 18px;
        font-family: 'Bahnschrift', sans-serif;
    }
    
    .footer-phone-arrow {
        font-size: 20px;
    }

    .footer-phone-description {
        font-size: 4px;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
        font-family: 'Noto Sans JP', sans-serif;
    }
    
    .footer-description {
        font-size: 9px;
        line-height: 1.2;
    }
    
    .footer-bottom {
        padding-top: 0.4rem;
    }
    
    .footer-links {
        gap: 0.8rem;
        font-size: 9px;
        margin-bottom: 0.4rem;
    }
    
    .footer-link,
    .footer-phone {
        font-size: 9px;
    }
    
    .footer-copyright {
        font-size: 8px!important;
        padding: 0.4rem 0.4rem;
        margin: 0.2rem -0.4rem 0 -0.4rem;
        background: #AB5858;
    }
}

/* iPhone SE and smaller phones (375px width and below) */
@media (max-width: 375px) {
    .main-footer {
        margin-top: -1.2rem;
    }
    
    .footer-content {
        padding: 0.7rem 0.3rem 0rem 0.3rem;
    }
    
    .footer-top {
        gap: 0.7rem;
    }
    
    .contact-btn .icon-before,
    .contact-btn .icon-after {
        width: 60px;
        height: 30px;
    }
    
    .footer-social {
        margin-left: 0.15rem;
    }
    
    .follow-text {
        font-size: 13px;
        margin-bottom: 0.35rem;
    }
    
    .social-icons {
        gap: 0.35rem;
    }
    
    .social-icon .icon-before,
    .social-icon .icon-after {
        width: 32px;
        height: 22px;
    }
    
    .footer-rocket {
        margin-top: -65px;
    }
    
    .rocket-img {
        width: 45px;
        height: 80px;
    }
    
    .rocket-img-after {
        width: 45px;
        height: 100px;
    }
    
    .rocket-text {
        font-size: 11px;
    }
    
    .rocket-top-arrow {
        width: 9px;
        height: 9px;
    }
    
    .footer-description {
        font-size: 8.5px;
        line-height: 1.15;
    }
    
    .footer-bottom {
        padding-top: 0.35rem;
    }
    
    .footer-links {
        gap: 0.7rem;
        font-size: 8.5px;
        margin-bottom: 0.35rem;
    }
    
    .footer-link,
    .footer-phone {
        font-size: 8.5px;
    }
    
    .footer-copyright {
        font-size: 7.5px!important;
        padding: 0.35rem 0.3rem;
        margin: 0.15rem -0.3rem 0 -0.3rem;
        background: #AB5858;
    }
}

/* Very small phones (360px width and below) */
@media (max-width: 360px) {
    .main-footer {
        margin-top: -1rem;
    }
    
    .footer-content {
        padding: 0.6rem 0.2rem 0rem 0.2rem;
    }
    
    .footer-top {
        gap: 0.6rem;
    }
    
    .contact-btn .icon-before,
    .contact-btn .icon-after {
        width: 55px;
        height: 28px;
    }
    
    .footer-social {
        margin-left: 0.1rem;
    }
    
    .follow-text {
        font-size: 12px;
        margin-bottom: 0.3rem;
    }
    
    .social-icons {
        gap: 0.3rem;
    }
    
    .social-icon .icon-before,
    .social-icon .icon-after {
        width: 30px;
        height: 20px;
    }
    
    .footer-rocket {
        margin-top: -60px;
    }
    
    .rocket-img {
        width: 40px;
        height: 70px;
    }
    
    .rocket-img-after {
        width: 40px;
        height: 90px;
    }
    
    .rocket-text {
        font-size: 10px;
    }
    
    .rocket-top-arrow {
        width: 8px;
        height: 8px;
    }
    
    .footer-description {
        font-size: 8px;
        line-height: 1.1;
    }
    
    .footer-bottom {
        padding-top: 0.3rem;
    }
    
    .footer-links {
        gap: 0.6rem;
        font-size: 8px;
        margin-bottom: 0.3rem;
    }
    
    .footer-link,
    .footer-phone {
        font-size: 8px;
    }
    
    .footer-copyright {
        font-size: 7px!important;
        padding: 0.3rem 0.2rem;
        margin: 0.1rem -0.2rem 0 -0.2rem;
        background: #AB5858;
    }
} 