@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;
    font-family: "MFW-ShinGoPro-Regular";

    position: relative;
    line-height: 2;
}

p{
    font-size: 18px;
}

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

img{
    width: 100%;
}

h2{
    font-family: "MFW-RyuminPro-ExHeavy";
    font-weight: 600;
}

h3{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
    font-weight: 600;
}

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

header{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background-color: #000000;

    position: absolute;
    right: 0;
    left: 0;
    top: 15px;

    z-index: 1;
}

.header-logos{
    margin: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.header-pmark{
    height: 70px;
    width: 70px;
    object-fit: contain;
}

.burger-menu{
    display: none;
}

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

.header-links li a{
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.header-links li a:hover{
    border-bottom: 1px solid #ffffff;
    padding-bottom: 5px;
}

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

.drop-links > li > a,
.drop-links > li > p {
    background: linear-gradient(to bottom, #acacac 0%, #ffffff 50%, #acacac 100%);
    border: 1px solid #000000;
    color: #000000;
    font-weight: 500;

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

    transition: all 0.3s ease;
}

.dropdown-links li a{
    font-size: 17px;
    font-weight: 400;
}

.drop-links > li > a:hover,
.drop-links > li > p:hover {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.dropdown-links li a:hover {
    text-decoration: underline;
}

.drop-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(0);
  }
}

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

.mega-box {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
}

.drop-links li:hover .mega-box {
    transition: all 0.25s ease;
    top: 49px;
    opacity: 1;
    visibility: visible;
    animation: 0.25s scale linear;
    transform-origin: top;
    transform: scaleY(1);
    pointer-events: auto;
}

.drop-links li:not(:hover) .mega-box {
    transition: all 0.25s ease;
    top: 3rem;
    opacity: 0;
    visibility: hidden;
    animation: 0.25s notscale linear;
    transform-origin: top;
    transform: scaleY(0);
    pointer-events: none;
}

.mega-box .content {
    width: 83.4%;
    margin-left: auto;
    background: white;
    border-left:2px solid #000000;
    border-right:2px solid #000000;
    border-bottom:2px solid #000000;
    padding: 38px 5%;
    /* display: grid;
    grid-template-columns: 2fr 1fr 1fr; */
    /* display: flex;
    justify-content: center;
    align-items: flex-start; */
    box-shadow: 0 0.375rem 0.625rem rgba(0,0,0,0.15);
    height: 100%;
}

.img-links{
    /* display: grid;
    grid-template-columns: repeat(4, 1fr); */
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 38px;
}

.img-links > a:hover{
    opacity: 0.80;
}

.dropdown-links{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 27px;
    font-size: 16px;
}

.dropdown-links > li{
    border-left: 2px solid #ababab;
    padding-left: 32px;
}

.drop-links > li:nth-child(4) > .mega-box > .content > .img-links{
    justify-content: flex-start;
}

/* .drop-links > li:nth-child(3) > .mega-box > .content{
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
} */


.img-links img{
    max-width: 280px;
    max-height: 150px;
}
      

/* SP版のドラップダウンメニューのスタイル */
        
.mobile-menu {
            display: none;
            width: 75%;
            margin-left: auto;
            background-color: #303030;
            min-height: calc(100vh - 70px);
            position: fixed;
            top: 71px;
            right: -75%;
            transition: right 0.3s ease;
            z-index: 999;
        }

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

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

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

        .menu-link:hover {
            background-color: #404040;
        }

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

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

        .submenu {
            background-color: #424242;
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.3s ease;
        }

        .submenu.open {
            max-height: 300px;
        }

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

        .submenu a:hover {
            background-color: #525252;
        }

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

        .contact-button {
            background: linear-gradient(to bottom, #EA6F45, #BB441C);
            color: white;
            padding: 18px 25px;
            text-align: center;
            text-decoration: none;
            display: block;
            font-size: 16px;
            margin: 30px 20px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        .contact-button:hover {
            background-color: #b8621a;
        }

        .regular-link {
            padding: 15px 25px;
            color: white;
            text-decoration: none;
            display: block;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .regular-link:hover {
            background-color: #404040;
        }


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

    footer{
        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;
        justify-content: space-between;
        align-items: center;
    }

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

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

    .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: grid;
        grid-template-rows: 1fr 2fr;
        grid-template-areas: 
        "cartext"
        "logo"
        ;
    }

    .car-creative-logo{
        grid-area: logo;
    }

    .car-creative > p{
        grid-area: cartext;
        font-size: 0.8rem;
        color: white;
    }

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

    .byakko > p{
        font-size: 12px;
        line-height: 1.8;
    }

    .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{
        font-family: "MFW-RyuminPro-ExHeavy";
        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%;
    }

    .add p > br{
        display: 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;
        background-color: white;
        border-radius: 10px;
        padding: 1.14rem;
    }

    .car-contact > p:nth-last-child(1), .car-contact > p:nth-last-child(2){
        color: #000000;
        text-align: center;
        font-size: 12px;
        line-height: 1.5;
    }

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

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

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

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

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

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

    .sp-copyright{
        display: none;
    }

@media (min-width: 841px) and (max-width: 1253px){
    .img-links{
        justify-content: center;
    }

    .drop-links > li:nth-child(4) > .mega-box > .content > .img-links{
        justify-content: flex-start;
    }
}

@media (min-width: 841px) and (max-width: 1100px) {
    .add p > br{
        display: block;
    }

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

@media (min-width: 841px) and (max-width: 950px){
    .header-links li a{
        font-size: 13px;
        line-height: 1.5;
    }

    .header-links{
        gap: 6px;
    }

    .drop-links li a, .drop-links li p{
        font-size: 14px;
    }
}


/* header and footer sp ipad 840px */

@media (min-width: 769px) and (max-width: 840px){
    
    header {
        position: fixed;
        top: 0;
        z-index: 9;
    }

    .header-links{
        display: none;
    }

    .wrapper {
        display: none;
    }

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

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

    .header-pmark {
        height: 60px;
        width: auto;
        margin-left: auto;
    }

    .burger-menu {
        width: 45px;
        height: 45px;
        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: white;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

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

    .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: 92px;
    }

    .main-link {
        padding: 0;
    }

    .regular-link, .menu-link, .contact-button{
        font-size: 20px;
        font-weight: 600;
    }

    .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;
    }

    /* footer sp */

    footer{
        background-color: #444444;
    }

    .footer-wrapper{
        display: none;
    }

    .color-img{
        display: none;
    }

    #main .sp-footer{
        margin-top: 0;
    }

    .sp-footer{
        width: 100%;
        margin: 0 auto;

        display: flex;
        flex-direction: column;
        gap: 2rem;

        background-color: #444444;
    }

    .footer-east-logo{
        margin-top: 3rem;
    }

    .footer-pmark{
        margin: 0 auto;
    }

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

        background: linear-gradient(to bottom, #EA6F45, #BB441C);

        display: flex;
        justify-content: center;
        align-items: center;
        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, .car-contact, .fax, 
    .car-contact > p:nth-last-child(1), .car-contact > p:nth-last-child(2) {
        width: 100%;
        font-size: 15.5px;
        text-align: left;
    }

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

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

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

    .tel{
        font-size: 7.5vw;
    }

    .car-creative{
        margin-top: 71px;
        grid-template-rows: auto;
        grid-template-areas: 
            "logo"
            "cartext"
        ;
    }

    .car-creative-logo{
        margin-bottom: 1rem;
    }

    .car-creative > p{
        color: #000000;
        font-size: 15.5px;
    }

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

    .sp-copyright {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-template-areas:
        "copytext"
        "copyyear";
        border: 0;
        background-color: #444444;
    }

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

    .copyright > p:nth-last-child(1){
        grid-area: copytext;
        font-size: 14px;
        text-align: left;
    }

}

/* header and footer sp 768px */

@media (max-width: 768px){
    
    header {
        position: fixed;
        top: 0;
        z-index: 9;
    }

    .header-links{
        display: none;
    }

    .wrapper {
        display: none;
    }

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

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

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

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

    .burger-menu {
        width: 35px;
        height: 35px;
        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: white;
        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;
    }

    .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;
    }


    /* 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;
        gap: 2rem;

        background-color: #444444;
    }

    #main-main > .sp-footer{
        margin-top: 0;
    }

    .footer-east-logo{
        margin-top: 3rem;
    }

    .footer-pmark{
        margin: 0 auto;
    }

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

        background: linear-gradient(to bottom, #EA6F45, #BB441C);

        display: flex;
        justify-content: center;
        align-items: center;
        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, .car-contact, .fax, 
    .car-contact > p:nth-last-child(1), .car-contact > p:nth-last-child(2) {
        width: 100%;
        font-size: 15.5px;
        text-align: left;
    }

    .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: 71px;
        grid-template-rows: auto;
        grid-template-areas: 
            "logo"
            "cartext"
        ;
    }

    .car-creative-logo{
        margin-bottom: 1rem;
    }

    .car-creative > p{
        color: #000000;
        font-size: 15.5px;
    }

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

    .sp-copyright {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-template-areas:
        "copytext"
        "copyyear";
        border: 0;
        background-color: #444444;
    }

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

    .copyright > p:nth-last-child(1){
        grid-area: copytext;
        font-size: 14px;
        text-align: left;
    }

}