@charset "UTF-8";


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%; 
    overflow-x: hidden; 
}

body {
    color: #4C4948;
    background-color: #fff;
}


h1, h2, h3, h4 {
    font-weight: bold;
}

h1 {
    font-size: 24px;
}

h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 24px;
    text-align: center;
}

h3 {
    font-size: 18px;
    text-align: center;
}

p, a {
    font-size: 14px;
    color: inherit;
    
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.inner {
    padding: 70px 50px;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.line {
    background-color: #4C4948;
    width: 55px;
    height: 1px;
    margin: 30px auto 60px;
}

img {
    max-width: 100%;
    height: auto;
}


header {
    background-color: #4C4948;
    color: #fff;
    position: relative;
}

header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 980px;
    margin: auto;
    height: 50px;
}

header .inner h1 {
    font-size: 16px;
    margin: 0;
}

.logo-title {
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.logo-title .logo-img {
    max-width: 50px; 
    height: auto; 
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
}


header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}


#menu-toggle {
    display: none; 
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    position: fixed; 
    top: 10px; 
    right: 20px; 
    cursor: pointer;
    z-index: 15;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); 
    transition: text-shadow 0.3s ease; 
}

#menu-toggle:hover {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
}



#nav-menu {
    display: flex;
}


@media (max-width: 768px) {
    #menu-toggle {
        display: block; 
        position: fixed; 
        top: 10px; 
        right: 20px; 
        font-size: 2rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 15; 
    }
    
    #nav-menu {
        display: none; 
        flex-direction: column;
        gap: 10px;
        background-color: #4C4948;
        position: fixed; 
        top: 50px; 
        right: 20px; 
        padding: 10px; 
        border-radius: 5px; 
        z-index: 10; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    }
    
    #nav-menu.active {
        display: flex; 
    }
}

  


.mainvisual {
    position: relative; 
    height: auto;
    min-height: 60vh; 
    background-image: url(img/MFLPfunabashiⅢ02.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 0 20px;
    box-sizing: border-box; 
}

.mainvisual::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 1; 
    pointer-events: none;
}

@media (min-width: 769px) {
    .mainvisual {
        min-height: 60vh;
    }
}


.mainvisual .inner {
    position: relative;
    z-index: 2; 
    width: 100%; 
}

.mainvisual .company-name {
    font-size: 38px; 
    font-weight: bold; 
    color: #fff; 
    text-align: left; 
}

.mainvisual h2, .mainvisual p {
    margin: 0; 
}

.mainvisual h2 {
    font-size: 60px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: #cacaca;
    text-align: left; 
    line-height: 1.4; 
    margin-bottom: 10px; 
    max-width: calc(100% - 40px); 
}

.mainvisual p {
    font-size: 23px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: #cacaca;
    text-align: left; 
    line-height: 1.6; 
    max-width: calc(100% - 40px); 
}

.mainvisual .mobile-text {
    display: none; 
}


.mainvisual .company-name,
.mainvisual h2,
.mainvisual p {
    opacity: 0; 
}

.mainvisual .company-name .desktop-text,
.mainvisual .company-name .mobile-text {
    transform: translateY(-30px); 
}

.mainvisual h2,
.mainvisual p {
    transform: translateX(-30px); 
}


@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.mainvisual .company-name.animate .desktop-text,
.mainvisual .company-name.animate .mobile-text {
    animation: fadeInDown 3s linear forwards; 
}

.mainvisual h2.animate {
    animation: fadeInLeft 3s linear 1s forwards; 
}

.mainvisual p.animate {
    animation: fadeInLeft 3s linear 2s forwards; 
}


.mainvisual .company-name.animate {
    animation-delay: 0s; 
}

.mainvisual h2.animate {
    animation-delay: 1s; 
}

.mainvisual p.animate {
    animation-delay: 2s; 
}




.about {
    background-color: #ffffff;
    margin-top: 80px;
    max-width: 720px;
    margin: 0 auto;
}

.about .inner {
    padding: 0 20px;
}

.about .inner h2 {
    margin-top: 100px;
    margin-bottom: 20px;
}

.about .inner p {
    font-size: 16px;
    line-height: 2;
    text-align: left;
    margin-bottom: 140px;
}


.service {
    background-color: #f3f2f2;
    padding: 60px 0;
}

.service-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex: 1 1 calc(50% - 20px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease forwards;
}

.service-card-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.service-image {
    max-width: 100px;
    height: auto;
    margin-right: 20px;
}

.service h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 23px;
    color: #4C4948;
    margin: 0;
}

.service p {
    font-size: 15px;
    text-align: left;
}


.service-more {
    position: relative;
    background-image: url('/img/background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.service-more .inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item h3 {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 20px;
}


.modal {
    background-color: rgba(0, 0, 0, 0.9);
    display: none; 
    justify-content: center; 
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}


.modal.show {
    display: flex; 
}


.modal-content {
    max-width: 100%; 
    max-height: 90vh; 
    background-color: #fff; 
    border-radius: 8px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; 
    box-sizing: border-box;
    transform: scale(0.8); 
    opacity: 0; 
    transition: transform 0.4s ease-out, opacity 0.4s ease-out; 
}


@keyframes mobileZoomIn {
    0% {
        transform: scale(0.8); 
        opacity: 0; 
    }
    100% {
        transform: scale(1); 
        opacity: 1; 
    }
}


.modal.show .modal-content {
    transform: scale(1); 
    opacity: 1; 
}


.modal {
    background-color: rgba(0, 0, 0, 0.9); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}


.modal.show {
    display: flex; 
}


@keyframes mobileZoomIn {
    0% {
        transform: scale(0.8); 
        opacity: 0; 
    }
    100% {
        transform: scale(1); 
        opacity: 1; 
    }
}


.modal-content img {
    width: 100%; 
    height: auto; 
}


.modal-content {
    max-width: 100%; 
    max-height: 90vh; 
    background-color: #fff; 
    border-radius: 8px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; 
    box-sizing: border-box;
}


.modal.show .modal-content {
    animation: mobileZoomIn 0.4s ease-out; 
}


.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: none; 
}

.modal.show .modal-close {
    display: block; 
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}



.service-graphic {
    position: relative;
    cursor: pointer; 
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-graphic:hover {
    transform: scale(1.05); 
    opacity: 0.8; 
}


.service-graphic::after {
    content: "\f00e"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 24px; 
    color: rgba(255, 255, 255, 0.8); 
    opacity: 0; 
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.service-graphic:hover::after {
    opacity: 1; 
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



.case {
    background-image: url('img/rectangle-5.svg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.case::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.case .inner {
    position: relative;
    z-index: 2;
}

.case h2 {
    font-size: 24px;
    color: #4C4948;
    z-index: 2;
}


.case .line {
    background-color: #000000;
    z-index: 2;
}

.project {
    background-color: rgba(255, 255, 255, 1);
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.project h3,
.project p {
    position: relative;
    z-index: 2;
}


.case .project p {
    font-size: 14px;
    line-height: 2.5;
    text-align: left;
    color: #000000;
}

.case .project {
    margin-top: 30px;
}

.case .project h3 {
    font-size: 16px;
    text-align: left;
}




.message {
    background-color: #ffffff;
    margin-top: 80px;
    max-width: 720px;
    margin: 0 auto;
}

.message .inner h2 {
    font-size: 24px;
    margin-top: 50px;
}

.message .inner p {
    font-size: 16px;
    line-height: 2.5;
    text-align: left;
}

.message span {
    font-size: 16px;
    font-weight: bold;
}


.company {
    position: relative; 
    height: auto; 
    background-image: url('img/MFLPSkypod.jpg'); 
    background-size: cover; 
    background-position: top; 
    padding: 20px; 
}

.company::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 1; 
    pointer-events: none; 
}

.company .inner {
    position: relative; 
    z-index: 2; 
    padding: 20px; 
}

.company .inner h2 {
    margin-top: 60px; 
    margin-bottom: 30px; 
    color: #fff; 
    text-align: center; 
}

.company .line {
    height: 1px; 
    margin: 20px auto 55px; 
    background-color: #fff; 
}

.company .inner p {
    font-size: 16px; 
    line-height: 3; 
    text-align: center; 
    color: #fff; 
    margin-bottom: 100px;
}

.company .inner p span {
    font-weight: 400; 
    display: inline; 
    margin-bottom: 0; 
    color: #fff; 
}



.contact .inner h2 {
    font-size: 24px;
    margin-top: 50px;
}

.contact .contact-flex {
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; 
    justify-content: center; 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.contact .google-map,
.contact .contact-form {
    flex: 1; 
    max-width: 450px; 
    box-sizing: border-box; 
    height: 400px; 
}

.contact .google-map iframe {
    width: 100%; 
    height: 100%; 
}

.contact .contact-form {
    background-color: #4C4948; 
    color: #fff; 
    padding: 20px; 
    box-sizing: border-box; 
    display: flex; 
    justify-content: center;
    align-items: center;
    text-align: center; 
    height: 400px; 
}


footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    margin: 0 auto;
}

footer .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    min-height: 60px;
}

footer .logo {
    display: flex;
    align-items: center;
}

footer .logo img {
    max-width: 70px;
    height: auto;
    margin-right: 10px;
}

footer .logo h3 {
    font-size: 1.3rem;
}

footer .info {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav ul li {
    margin-bottom: 5px;
}

footer nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

footer nav ul li a:hover {
    text-decoration: underline;
}

footer .copyright {
    max-width: 720px;
    text-align: left;
    font-size: 0.8rem;
    margin: 10px auto 0;
}


#about p, .service-item, .project, .message p, .company .inner p {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    transition: opacity 0.5s ease, transform 0.5s ease;
}


@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }

    header .inner {
        display: flex; 
        justify-content: space-between;
        align-items: center; 
        padding: 0 20px; 
        max-width: 980px; 
        margin: auto; 
        height: 50px; 
    }

    .logo-title .logo-img {
        max-width: 40px; 
        height: auto; 
    }

    
    .logo-title h1 {
        font-size: 13px !important; 
        line-height: 1.2; 
        margin: 5px 0 0; 
    }

   
    .logo-title {
        align-items: center; 
        justify-content: flex-start; 
        gap: 10px; 
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mainvisual {
        height: auto; 
        min-height: 100vh; 
        background-image: url(img/MFLPfunabashiⅢ02.jpg);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 20px;
        box-sizing: border-box;
    }    
    
    .mainvisual h2 {
        font-size: 30px !important; 
        margin-left: 0px; 
        margin-bottom: 10px; 
        line-height: 1.4;
    }
    
    .mainvisual p {
        font-size: 14px !important; 
        margin-left: 0px; 
        line-height: 1.6;
    }    
    

    .mainvisual .inner {
        padding: 20px 10px; 
    }

    .mainvisual .company-name {
        font-size: 26px; 
    }

    
    .mainvisual .desktop-text {
        display: none;
    }

    
    .mainvisual .mobile-text {
        display: inline; 
    }

    .inner {
        padding: 0 20px;
    }

    .about .inner p {
        font-size: 15px;
        line-height: 2.3; 
    }

    .service-card-wrapper {
            flex-direction: column;
            gap: 20px;
            align-items: center;
        }
    
        .service-card {
            width: 100%;
            margin-bottom: 20px;
        }

        .service-more .service-item h3 {
            font-size: 14px; 
            line-height: 1.6; 
            text-align: left; 
            margin-bottom: 10px;
        }

        .case .project h3 {
            font-size: 15px; 
            font-weight: bold; 
            text-align: left; 
            margin-bottom: 10px; 
        }
        
        .case .project p {
            font-size: 15px; 
            line-height: 1.6; 
            color: #000; 
        }


.modal-content {
    max-width: 100%; 
    max-height: 90vh; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: #fff; 
    border-radius: 8px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}


.modal {
    background-color: rgba(0, 0, 0, 0.9); 
    display: flex;
    justify-content: center; 
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none; 
}


.modal.show {
    display: flex; 
}


.modal-content img {
    width: 100%; 
    height: auto; 
    transition: transform 0.3s ease; 
}


@media (max-width: 768px) {
    
    .modal-content {
        animation: none; 
    }

    
    .modal-content img {
        max-height: 80vh; 
        width: auto; 
    }
}


@keyframes mobileZoomIn {
    0% {
        transform: scale(0.8); 
        opacity: 0; 
    }
    100% {
        transform: scale(1); 
        opacity: 1; 
    }
}


.service-graphic {
    padding: 5px; 
    position: relative; 
}

    
    
        
        .message .inner p {
            font-size: 14px; 
            line-height: 2.3; 
            text-align: center; 
        }
    
        
        .company .inner p {
            font-size: 14px; 
            line-height: 1.8; 
            text-align: center; 
        }
    
        
        .company .inner p span {
            color: #808080; 
        }    

    footer .flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .company {
        height: auto; 
        background-size: cover; 
        background-position: top; 
        padding: 20px; 
    }

    .company .inner {
        padding: 20px; 
    }

    .company .inner h2 {
       
        margin-top: 20px; 
    }

    .company .line {
        width: 40px; 
        height: 2px; 
        margin: 20px auto; 
    }

    .company .inner p {
        font-size: 14px; 
        line-height: 1.8; 
        text-align: center; 
        color: #fff; 
    }

    .company .inner p span::after {
        content: ""; 
    }

    .company .inner p span {
        font-weight: 400; 
        display: block; 
        margin-bottom: 0px; 
        color: #dbdbdb; 
    }

    .company .inner p .separator {
        display: none; 
    }

    
    .contact .contact-flex {
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
    }

    .contact .google-map,
    .contact .contact-form {
        max-width: 100%; 
        margin: 0 auto; 
        text-align: center; 
    }

    .contact .google-map iframe {
        width: 100%; 
        height: 300px; 
    }

    .contact .contact-form {
        padding: 15px; 
    }
    
    footer .logo {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        margin-bottom: 0px; 
    }

    footer .logo img {
        margin-bottom: 5px; 
    }

    footer .logo h3 {
        font-size: 15px; 
        text-align: center; 
        margin-bottom: 1px; 
    }

    footer .info nav ul {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        margin: 0 auto; 
        padding: 0; 
        margin-top: 2px; 
    }

    footer nav ul li {
        margin-bottom: 3px; 
    }

    footer nav ul li a {
        font-size: 14px; 
        text-decoration: none; 
    }

}




@media (max-width: 1024px) {
    .mainvisual h2 {
        font-size: 50px;
    }

    .mainvisual p {
        font-size: 20px;
    }

    .inner {
        padding: 30px;
    }

    .service-card-wrapper {
        gap: 20px;
    }

    .service-card {
        flex: 1 1 calc(50% - 10px); 
    }
}