/* Custom New Footer Styles */
.custom-footer-area {
    padding: 60px 0 20px;
    background-color: #fff;
    border-top: none;
    font-family: "Noto Sans JP", sans-serif;
}

.custom-footer-area a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col-group {
    display: grid;
    grid-template-columns: 2.2fr 1fr 2fr 1.5fr 1.3fr 1.6fr;
    gap: 0px 25px;
}

@media (max-width: 1200px) {
    .footer-col-group {
        grid-template-columns: 2fr 1fr 1.8fr 1.2fr 1fr 1.2fr;
        gap: 0px 15px;
    }
}

@media (max-width: 991px) {
    .footer-col-group {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-col-group {
        grid-template-columns: 1fr;
    }
}

/* Explicit Grid Cells to perfectly lock row heights on Cols 4-6 */
.f-grid-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.f-grid-oic {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.f-grid-course {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.f-grid-job {
    grid-column: 4;
    grid-row: 1;
}

.f-grid-admiss {
    grid-column: 5;
    grid-row: 1;
}

.f-grid-guide {
    grid-column: 6;
    grid-row: 1;
}

.f-grid-life {
    grid-column: 4;
    grid-row: 2;
    margin-top: 30px;
}

.f-grid-open {
    grid-column: 5;
    grid-row: 2;
    margin-top: 30px;
}

.f-grid-news {
    grid-column: 6;
    grid-row: 2;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .container-fluid {
        padding: 0 20px !important;
    }

    .footer-col-group {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    /* Reset Grid Placements on Mobile */
    .f-grid-logo,
    .f-grid-oic,
    .f-grid-course,
    .f-grid-job,
    .f-grid-admiss,
    .f-grid-guide,
    .f-grid-life,
    .f-grid-open,
    .f-grid-news {
        grid-column: auto !important;
        grid-row: auto !important;
        margin-top: 0 !important;
    }

    /* Use order to group sections logically */
    .f-grid-logo {
        order: 1;
        grid-column: 1 / span 2 !important;
        text-align: center;
    }

    .f-logo-img {
        margin: 0 auto 10px;
    }

    .f-grid-oic {
        order: 2;
    }

    .f-grid-course {
        order: 3;
    }

    .f-grid-job {
        order: 4;
    }

    .f-grid-life {
        order: 5;
    }

    .f-grid-admiss {
        order: 6;
    }

    .f-grid-open {
        order: 7;
    }

    .f-grid-guide {
        order: 8;
    }

    .f-grid-news {
        order: 9;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding: 0 15px !important;
    }

    .footer-col-group {
        grid-template-columns: 1fr;
    }

    .f-grid-logo {
        grid-column: 1 !important;
    }

    .f-bottom-right {
        text-align: center;
        margin-top: 30px;
    }
}

.f-logo-img {
    max-width: 250px;
    margin-bottom: 20px;
}

.f-contact-info {
    font-size: 12px;
    line-height: 1.6;
    color: #004697;
    font-weight: 600;
}

.f-section {
    margin-bottom: 30px;
}

.f-section-title,
.f-section-title-link {
    font-size: 14px;
    font-weight: 700;
    color: #004697;
    margin-bottom: 25px;
    padding-bottom: 15px;
    display: inline-block;
    transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    position: relative;
    padding-right: 25px;
    cursor: pointer;
}

/* Insert the arrow icon via pseudo element on the right side */
.f-section-title::before,
.f-section-title-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23004697"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.2 10.8l-4.8 3.2a.96.96 0 01-1.4-.8v-6.4a.96.96 0 011.4-.8l4.8 3.2a.96.96 0 010 1.6z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.3s ease;
}

/* Base Light Line Underneath */
.f-section-title::after,
.f-section-title-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

/* Wrap the inner text to animated underline it */
.f-section-title span,
.f-section-title-link span {
    position: relative;
}

/* The Animated Color Underline */
.f-section-title span::after,
.f-section-title-link span::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #004697;
    transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    transform-origin: left;
    transform: scaleX(1);
    z-index: 2;
}

/* Animation on hover - extending line by scaling the width artificially */
.f-section-title:hover span::after,
.f-section-title-link:hover span::after {
    transform: scaleX(1.3);
}

.f-section-title:hover::before,
.f-section-title-link:hover::before {
    right: -5px;
}

.f-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.f-list a {
    color: #004697;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.f-list a:hover {
    color: #004697;
}

.f-bottom-right {
    text-align: right;
    margin-top: 50px;
    color: #004697;
    font-size: 11px;
    font-weight: bold;
}
