@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Shippori+Mincho&display=swap');

*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
}

body{
    font-size: 18px;
    letter-spacing: 1px;
    color: #000000;
    position: relative;
    line-height: 2;
    overflow-x: hidden;
}

p,
.header-links,
.desktop-item{
    font-size: 18px;
}

a{
    cursor: pointer;
    color: #000000;
}

img{
    width: 100%;
}

.side-btns{
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    justify-content: space-between;
    z-index: 9;
}

.side-blank-div{
    min-height: 0px;
    width: 50px;
    background: transparent;
}

    .side-contact {
        width: 50px;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .side-contact-btn{
        width: 50px;
    }

    .sp-top-btn{
        display: flex;
        align-items: flex-end;
        transition: transform 0.4s ease, opacity 0.4s ease;
        transition-delay: 0.1s;
    }

    .top-btn{
        width: 50px;
        margin-top: auto;
        margin-bottom: 50px;
    }

    #side-contact.hidden,
    #sp-top-btn.hidden{
        transform: translateX(50px);
        opacity: 0;
        pointer-events: none;
    }

    #side-contact.visible,
    #sp-top-btn.visible{
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    #side-contact:hover,
    .sp-top-btn.hover{
        opacity: 0.7;
    }

/* ヘッダー　スタイル　header css */

header{
    position: fixed;
    width: 100%;
    padding: 1rem 0;
    background-color: #ffffff;
    z-index: 999;
}

.header-logos{
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.east-header-logo{
    height: 70px;
    width: 300px;
    object-fit: contain;
}

.fifty-logo:hover,
.east-header-logo:hover{
    opacity: 0.7;
}

.header-contact-btn{
    display: flex;
    justify-content: center;
    max-width: 212px;
    font-size: 16px;
    padding: 5px 15px;
    border-radius: 30px;
    color: #ffffff;
    background-color: #F9661A;
    transition: 0.3s all ease;
}

.header-contact-btn:hover{
    background-color: #e65a14;
}

.desktop-item span{
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
}

.desktop-item span > img{
    width: 15px;
    object-fit: contain;
}

.service-bottom-line{
    display: block;
    height: 1px;
    width: 0;
    background-color: #000000;
    transition: 0.3s all ease;
}

.desktop-item:hover .service-bottom-line,
.service-bottom-line.active{
    width: 100%;
}

.burger-menu{
    display: none;
}

.header-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.fifty-logo{
    width: 70px;
    object-fit: contain;
}

.header-links li{
    transition: all 0.3s ease;
}

.header-links li:hover:not(.header-contact-btn) .service-bottom-line{
    width: 100%;
}

.nav-links{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 0.9px solid #000000;
}

.nav-link a{
    background-color: white;
    border: 1px solid #000000;
    color: #000000;
    font-weight: 600;

    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: all 0.3s ease;
}

.nav-link a:hover{
    background-color: #000000;
    color: white;
}

.wrapper {
  position: relative;
  width: 100%;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.drop-links {
    width: 100%;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 0.9px solid #000000;
}

.header-links .mobile-item {
  display: none;
}

@keyframes scale {
  from{
    transform-origin: top;
    transform: scaleY(0%);
  }
  to{
    transform-origin: top;
    transform: scaleY(100%);
  }
}

@keyframes notscale {
  from{
    transform-origin: top;
    transform: scaleY(1);
  }
  to{
    transform-origin: top;
    transform: scaleY(1);
  }
}

/* ドロップダウンスタイル - FIXED VERSION */

.mega-box {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mega-box.active {
    opacity: 1;
    transform: translateY(0);
}

.mega-box.active .desktop-item{
    padding-bottom: 5px;
    border-bottom: 1px solid black;
}

.service-down-icon {
    transition: transform 0.3s ease;
}

.service-down-icon.rotate {
    transform: rotate(180deg);
}

.header-links li .mega-box {
    position: absolute;
    width: 100%;
    left: 0;
    top: 102px;
    transform: scale(1); 
    transform-origin: center top;
    transition: opacity 0.3s ease-in-out,
                transform 0.3s ease-in-out,
                visibility 0.3s ease-in-out;
}


.mega-box .content {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 2rem 4rem;
    height: 100%;
}

.service-links{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.service-links .service-card{
    background-color: transparent;
    list-style: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-links .service-card .service-title{
    display: grid;
    grid-template-columns: 7px 1fr;
    gap: 10px;
}

.service-links .service-card li > .service-img{
    height: auto;
}

.service-links .service-card .service-title .side-line{
    margin-top: 4px;
}

.service-links .service-card .service-title p{
    font-size: 18px;
}

.service-links .service-card li a{
    display: flex;
    gap: 10px;
    transition: none;
}

.service-links .service-card li a:hover{
    padding-bottom: 0;
    border-bottom: 0;
}

.service-links .service-card li a p{
    font-size: 14px;
}

.service-links .service-card li a p:hover{
    text-decoration: underline;
}

.service-arrow{
    width: 10px;
    object-fit: contain;
}

.company-dropmenu{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: flex-start;
}

.black-card .side-line{
    background-color: #303030;
}

.black-card .service-title{
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ababab;
}

.black-card li span{
    display: flex;
    align-items: center;
    gap: 60px;
}


/* SP版のドラップダウンメニューのスタイル */
        
.mobile-menu {
            display: none;
            width: 77%;
            margin-left: auto;
            background-color: #f5f5f5;
            height: 100vh;
            padding-bottom: 3rem;
            overflow-y: scroll;
            position: fixed;
            top: 71px;
            right: -77%;
            transition: right 0.3s ease;
            z-index: 999;
        }

        .mobile-menu.open {
            right: 0;
        }

        .menu-item {
            width: 90%;
            margin: 0 auto;
            border-bottom: 1px solid #cdcdcd;
        }

        .menu-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 25px;
            color: black;
            text-decoration: none;
            font-size: 16px;
            cursor: pointer;
        }

        .menu-icon {
            font-size: 2rem;
            font-weight: 200;
            transition: transform 0.3s ease;
        }

        .menu-icon.rotated {
            transform: rotate(0deg);
        }

        .submenu{
            display: none;
            height: 100%;
        }

        .submenu.open {
            display: block;
            max-height: 100%;
        }

        .submenu a {
            display: block;
            padding: 15px 0 15px 26px;
            color: black;
            text-decoration: none;
            font-size: 14px;
            border-bottom: 1px solid #cdcdcd;
            transition: background-color 0.3s ease;
        }

        .submenu p{
            padding: 10px;
            display: grid;
            grid-template-columns: 5px 1fr;
            align-items: center;
            gap: 7px;
        }

        .sp-side-line{
            width: 5px;
            height: 75%;
        }

        .yellow-line{
            background-color: #F4A237;
        }

        .red-line{
            background-color: #E6312A;
        }

        .green-line{
            background-color: #15903D;
        }

        .blue-line{
            background-color: #285EAB;
        }

        .submenu a:last-child {
            border-bottom: none;
        }

        .contact-button {
            background: #F9661A;
            color: white;
            padding: 18px 25px;
            text-align: center;
            text-decoration: none;
            display: block;
            font-size: 16px;
            margin: 30px 20px;
            border-radius: 5px;
            margin-bottom: 3rem;
        }

        .regular-link {
            padding: 15px 25px;
            color: black;
            text-decoration: none;
            display: block;
            font-size: 16px;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2;
        }

        .overlay.active{
            display: block;
        }


/* footer css フッター　スタイル */

    footer{
        position: relative;
        z-index: 0;
    }

    .sp-footer{
        display: none;
    }

    .footer-wrapper{
        width: 100%;
        background-color: #444444;
    }

    .color-img{
        margin-bottom: 1rem;
        height: 65px;
        background-color: #444444;
        display: flex;
    }

    .color-img > img{
        margin-top: auto;
        width: 100%;
        height: 50px;
        object-fit: cover;
    }

    .footer-grid{
        width: 90%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 2rem 0;

        display: grid;
        grid-template-columns: 1fr 2fr 2px 1fr;
        gap: 1rem;
        color: #ffffff;
    }

    .foot-east-pmark{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .links-contact{
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .car-byakko{
        padding-top: 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7%;
    }

    .vertical-line{
        flex: 2px;
        width: 1px;
        background-color: white;
    }

    .car-creative-logo, .byakko-logo{
        width: 130px;
        height: 100px;
        object-fit: contain;
        margin: 0 auto;
    }

    .car-creative-logo{
        height: 120px;
    }
/* 
    .byakko-logo{
        margin-bottom: 5px;
    } */

    .foot-east-pmark a{
        width: 140px;
        margin-left: 20%;
    }

    .footer-east-logo{
        width: 140px;
        margin: 0 auto;
    }

    .footer-pmark{
        width: 100px;
        margin-left: 20%;
        object-fit: contain;
    }

    .east-contact{
        grid-area: econt;
    }

    .car-contact{
        grid-area: ccont;
    }

    .east-logo{
        grid-area: east;
    }

    .pmark-logo{
        grid-area: pmark;
    }
    
    .car-creative{
        grid-area: car;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .car-creative > p{
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        color: white;
    }

    .byakko{
        grid-area: byakko;
        text-align: center;
    }

    .byakko > p,
    .car-byakko .car-contact > p{
        font-size: 14px;
        line-height: 1.3;
        color: white;
        text-align: center;
    }

    .car-creative:hover,
    .byakko:hover,
    .car-contact:hover{
        opacity: 0.7;
    }

    .footer-links{
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-links-col{
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .link-list{
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .link-title{
        display: flex;
        align-items: flex-start;
        line-height: 1;
        font-size: 24px;
        gap: 10px;
    }

    .link-title p{
        font-size: 20px;
        line-height: 1.4;
    }

    .circle-icon{
        width: 15px;
        height: 15px;
        margin-top: 7px;
        object-fit: contain;
    }

    .link{
        margin-left: 25px;
        line-height: 1.2;
    }

    .link-list > li > a{
        font-size: 15px;
        line-height: 15px;
        color: white;
        transition: all 0.3s ease;
    }

    .link-list > li > a:hover{
        text-decoration: underline;
    }

    .one{
        grid-area: link1;
    }

    .two{
        grid-area: link2;
    }

    .three{
        grid-area: link3;
    }

    .four{
        grid-area: link4;
    }

    .five{
        grid-area: link5;
    }

    .east-contact{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;

        background-color: white;
        border-radius: 10px;
        padding: 1rem;

        color: #000000;
    }

    .east-contact > .add{
        /* width: 61%; */
        width: 53%;
        text-decoration: none;
    }

    .add{
        display: flex;
        flex-direction: column;
    }

    .add p{
        font-size: 12px;
        line-height: 1.5;
    }

    .telfax{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
        "tel"
        "fax";
    }

    .car-contact{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        gap: 5px;
        padding: 1.14rem;
        color: #000000;
    }

    .organic-logo{
        max-width: 220px;
        margin: 0 auto;
    }

    .car-contact > .tel{
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5;
        color: #000000;
        text-align: center;
        text-decoration: none;
    }

    .add{
        grid-area: add;
        font-size: 12px;
        line-height: 1.5;
        text-decoration: none;
    }

    .tel{
        grid-area: tel;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.5;
        text-decoration: none;
    }

    .fax{
        font-size: 10px;
        grid-area: fax;
        line-height: 1.5;
        text-decoration: none;
    }

    .copyright{
        width: 90%;
        max-width: 1280px;
        margin: 0 auto;
        display: flex;
        height: 50px;
        align-items: center;
        justify-content: center;
    }

    .copyright p{
        font-size: 11px;
        line-height: 1.5;
        font-weight: 100;
        color: #ffffff;
    }

    .sp-copyright{
        display: none;
    }

@media (min-width: 865px) and (max-width: 1290px) {
    .header-links,
    .desktop-item{
        font-size: 14px;
    }

    .header-links{
        gap: 1rem;
    }
} 

@media (min-width: 865px) and (max-width: 1120px) {
    .header-links,
    .desktop-item{
        font-size: 12px;
    }

    .add p > br{
        display: block;
    }

    .east-header-logo{
        height: auto;
        max-width: 200px;
    }

    .fifty-logo{
        width: 48px;
    }

    .header-links li .mega-box{
        top: 80px;
    }

    .footer-grid{
        width: 95%;
    }
}

@media (min-width: 865px) and (max-width: 985px){ 

    .header-contact-btn{
        font-size: 12px;
    }

    .header-links{
        gap: 10px;
    }
}

/* header and footer sp 768px */

@media (max-width: 864px){

    body{
        font-size: 14px;
    }

    p{
        font-size: 14px;
    }
    
    header {
        position: fixed;
        top: 0;
        padding: 0;
    }

    .header-links{
        display: none;
    }

    .wrapper {
        display: none;
    }

    .header-logos {
        margin: 1rem auto;
    }

    .header-logos a{
        height: 40px;
    }

    .east-header-logo {
        width: auto;
        max-width: none;
        height: 40px;
        object-fit: contain;
    }

    .fifty-logo{
        width: 40px;
    }

    .burger-menu {
        width: 35px;
        height: 35px;
        margin-left: auto;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        background: none;
        border: none;
        padding: 0;
        transition: all 0.3s ease;
    }

    .burger-line {
        width: 100%;
        height: 3px;
        background-color: black;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .burger-menu.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu {
        display: block;
        top: 72px;
    }

    .main-link {
        padding: 0;
    }

    .regular-link, .menu-link, .contact-button{
        font-size: 15px;
        font-weight: 400;
        padding: 10px;
        line-height: 1.5;
    }

    .menu-icon{
        font-size: 18px;
    }

    .submenu a{
        font-size: 14px;
        padding: 10px;
        line-height: 1.3;
        padding-left: 26px;
    }

    /* .submenu > a:nth-child(1){
        border-top: 1px solid #555;
    } */

    .dropdown-sp-link {
        padding: 0;
    }

    .nav-link a {
        border: 0;
        justify-content: flex-start;
        align-items: center;
        background-color: #424242;
        color: white;
        width: 100%;
        height: 50px;
        font-size: 14px;
        margin: auto;
        padding-left: 1rem;
        transition: all 0.3s ease;
    }

    .nav-link a > span {
        display: none;
    }

    .side-contact{
        display: none;
    }

    /* footer sp */

    footer{
        background-color: #444444;
    }

    .footer-wrapper{
        display: none;
    }

    .color-img{
        display: none;
    }

    .sp-footer{
        width: 100%;
        margin: 0 auto;
        margin-top: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        background-color: #444444;
    }

    .footer-east-logo{
        margin-top: 3rem;
        padding-left: 10px;
    }

    .footer-pmark{
        width: 40px;
        margin-left: auto;
    }

    .contact-us-btn{
        width: 90%;
        margin: 0 auto;
        height: 50px;
        color: white;

        background: #F9661A;

        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        font-weight: 600;

        border-radius: 5px;
    }

    .sp-contact{
        width: 90%;
        margin: 0 auto;
        background-color: white;
        padding: 2rem 1.5rem;
        border-radius: 10px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .east-contact, .car-contact{
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .east-contact > .add, .fax{
        width: 100%;
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
    }

    .car-contact{
        width: 90%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 1.5rem;
        margin: 0 auto;
    }

    .sp-contact > .east-contact{
        flex-direction: column;
        align-items: flex-start;
    }

    .telfax{
        grid-template-areas: 
            "fax"
            "tel"
            ;
    }

    .car-contact > .tel{
        font-size: 6.8vw;
        text-align: left;
    }

    .tel{
        font-size: 6.8vw;
    }

    .car-creative{
        margin-top: 1rem;
        grid-template-rows: auto;
        text-align: center;
    }

    .pmark-logo{
        margin-top: 2rem;
    }

    .car-creative-logo{
        height: 110px;
    }

    .byakko-logo{
        max-width: 120px;
        height: auto;
        margin: 0 auto;
    }

    .organic-logo{
        max-width: 220px;
    }

    .sp-copyright {
        width: 100%;
        padding: 2rem 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        border: 0;
        background-color: #000000;
        margin-top: 2rem;
    }

    .copyright > p:nth-child(1){
        grid-area: copyyear;
        text-align: center;
        font-size: 10px;
    }
}

@media (max-height: 650px){
    .side-blank-div{
        min-height: 80px;
    }
}