@charset "UTF-8";
/****************************************
    ヘッダーのスタイル設定
****************************************/


:root{
    --main-color: #000;
    --logo-color1: #ffe74c;
    --logo-color2: #ff4f58;
    --logo-color3: #4f9dff;
    --logo-color4: #30e3ca;
    --text-color:#333;
}

nav.gnavi {
    background-color: var(--logo-color1);
    position: fixed;
    position: relative;
    z-index: 10;
    height: 130px;
    width: 100vw;
    transition: 0.3s ease;
}
nav.gnavi::after{
    content: "";
    background-image: url( "./images/common/header-wave.png" ) ;
    background-size: contain;
    background-repeat: repeat-x;
    position: absolute;
    left: 0;    
    bottom: -23px;
    width: 1857px;
    width: 100%;
    height: 154px;
    z-index: -1;
}
.gnavi-list{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    background-color: #fff;
    height: 130px;
    gap: 70px;
    transition:  0.3s ease;
    margin-left: -70px;
}
.gnavi-list a{
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}
.gnavi-list .gnavi-logo {
    margin-top: 150px;
}
.gnavi-list .submenu {
    display: none;
}
@media screen and (max-width: 1799px) {

    nav.gnavi::after{
        left: 0;    
    }
    .gnavi-list {
        height: 130px;
        gap: 55px;
    }
    
}

/* サブメニューは初期非表示 */
.submenu {
  display: none;
  position: absolute;
  margin: 0 0 0;
  z-index: 10;
  top: 100%;
  left: 50%;
  width: 219px;
  transform:  translateX(-50%);
}
.submenu-list{
  background: var(--logo-color3);
  padding: 30px 0;
  border-radius: 25px;
  list-style: none;
  margin-top: 0;
}
/* サブメニュー項目 */
.submenu-item {
  white-space: nowrap;
  text-align: left;
  transition: 0.3s;
}
.submenu-item:not(:last-child) {
   /* margin-bottom: 40px;*/
}

.submenu-item a{
    color: #fff;
    line-height: 2;
    display: block;
    padding: 8px 30px;
    width: 100%;
    transition: 0.3s;
}
.gnavi-item {
  position: relative;
  transition: 0.3s;
}
.gnavi-item:last-child{
    margin-right: 56px;
}
.gnavi-item a{
    display: block;
    line-height: 2;
}
/* hover時にサブメニュー表示 */
.gnavi-item:hover > .submenu {
  display: block;
}

.gnavi-item:hover{
    margin-top: -1em;
}
.submenu-item:hover a{
    color: var(--logo-color1);
}

/* スクロール時のスタイル */
.logo-left{
    display: none;
    transition: 0.3s ease;
}

/* スクロール後（縮小） */
.gnavi.shrink {
    position: fixed;
}
.gnavi.shrink ,
.gnavi.shrink .gnavi-list {
  height: 120px;
  z-index: 100;
  top: 0;
}
.gnavi.shrink .gnavi-logo {
  margin: 0 200px 0 0;
  order: -1; /* 左端へ移動 */
}
.gnavi.shrink .logo {
  width: 222px;
}
.gnavi.shrink .gnavi-list{
    justify-content: flex-start;
    margin-left: 10px;
}
.gnavi.shrink .logo-center{
    display: none;
}
.gnavi.shrink .logo-left{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}


.header-contact{
    position: absolute;
    top: 72px;
    right: 54px;
    aspect-ratio: 120/116;
    width: 120px;
    height: auto;
    transition: 0.3s;
    z-index: 2;
}
.header-contact img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    transition: 0.3s;
}
.header-contact:hover::before{
    content: "";
    background: url( "./images/common/header-contact-hover.png" )  no-repeat center center / contain;
    position: absolute;
    top: 0px;
    left: 0px;
    aspect-ratio: 120/116;
    width: 100%;
    height: auto;
    z-index: 1;
}

@media screen and (min-width: 2300px) {
    .header-contact {
        right: calc(50vw - 1000px);
    }
}

@media screen and (max-width: 1650px) {
    .header-contact {
        top: 90px;
        right: 20px;
        width: 100px;
        height: auto;
    }
}

@media screen and (max-width: 1650px) {
    .logo-center{
        width: 260px;
        height: auto;
    }
    .gnavi{
        height: 130px;
    }
    .gnavi-list {
        height: 130px;
        gap: 35px;
        margin-left: -50px;
    }
    .gnavi-item:last-child {
        margin-right: 10px;
    }
}

@media screen and (max-width: 1300px) {
    .logo-center{
        width: 200px;
        height: auto;
    }
    nav.gnavi{
        height: 110px;
    }
    .gnavi-list {
        height: 110px;
        gap: 24px;
        padding: 0 16px;
    }
    .gnavi-list a {
        font-size: 16px;
        white-space: nowrap;
    }
   
}

@media screen and (max-width: 1200px) {
    .gnavi-list {
        gap: 16px;
        margin-left: 0;
    }
   
}


nav.sp-gnavi{
  display: none;
}

/* ハンバーガーボタンのスタイル */
.hamburger {
  display: none;
  position: absolute;
  position: fixed;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}
.hamburger span {
    display: block;
    width: 60px;
    height: 8px;
    margin: 12px 0;
    background: #4f9dff;
    transition: 0.3s;
    border-radius: 10px;
}

/* 開閉時のハンバーガー変形（お好みで） */
.hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(16px, 16px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(12px, -12px);
}

/* SPメニューへ切り替え */
@media screen and (max-width: 1000px) {

    .hamburger {
        display: block;
        
    }
    nav.gnavi{
        display: none;
    }
    nav.sp-gnavi.open{
        display: block;
    }
    nav.sp-gnavi{
        padding: 70px 20px 150px;
        background-color: var(--logo-color1);
        position: absolute;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 101;
        overflow-y: auto;
        .menu-box{
            background-color: #fff;
            border-radius: 20px;
            height: 100px;
            width: 100%;
            display: flex;
            align-items: center;
            .link{
                color: var(--main-color);
                display: flex;
                align-items: center;
                justify-content: flex-start;
                gap: 23px;
                font-size: 22px;
                padding: 10px 5px 5px 40px;
                width: 100%;
                height: 100%;
            }
        }
        .menu-box.column{
            height: 170px;
            justify-content: center;
            .link{
                flex-direction: column;
                justify-content: center;
                gap: 10px;
                padding: 0;
            }   
        }
        .sp-gnavi-list {
            display: grid;
            grid-template-columns: repeat(2, auto);
            grid-template-rows: repeat(8, auto);
            grid-column-gap: 15px;
            grid-row-gap: 15px;
            max-width: 610px;
            margin: auto;
        }
        .sp-gnavi-item:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
        .sp-gnavi-item:nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
        .sp-gnavi-item:nth-child(3) { grid-area: 3 / 1 / 4 / 2; }
        .sp-gnavi-item:nth-child(4) { grid-area: 3 / 2 / 4 / 3; }
        .sp-gnavi-item:nth-child(5) { grid-area: 4 / 1 / 5 / 2; }
        .sp-gnavi-item:nth-child(6) { grid-area: 4 / 2 / 5 / 3; }
        .sp-gnavi-item:nth-child(7) { grid-area: 5 / 1 / 6 / 3; }
        .sp-gnavi-item:nth-child(8) { grid-area: 6 / 1 / 7 / 3; }
        .sp-gnavi-item:nth-child(9) { grid-area: 7 / 1 / 8 / 3; }
        .sp-gnavi-item:nth-child(10) { grid-area: 8 / 1 / 9 / 3; }


        .sp-gnavi-list-contact{
            max-width: 610px;
            margin: 35px auto 0;
            .tel a{
                font-size: 40px;
                color: var(--logo-color4);
                font-weight: 900;
                text-align: center;
            }
            .tel,
            .mail{
                justify-content: center;
                padding: 0;
            }
        }
        .sp-gnavi-title{
            font-size: 21px;
            font-weight: 500;
            text-align: center;
            margin-bottom: 5px;
        }
        .sp-gnavi-text{
            font-size: 18px;
            font-weight: 400;
            text-align: center;
            margin-top: 5px;
        }
    }
}


@media screen and (max-width: 767px) {
    nav.sp-gnavi {
        padding: 70px 35px 150px;
    }
}
@media screen and (max-width: 550px) {
    nav.sp-gnavi {
        .sp-gnavi-list {        
            grid-column-gap: 15px;
            grid-row-gap: 15px;
            max-width: 305px;
        }
        .menu-box {
            height: 53px;
            width: 100%;
            margin: auto;
            border-radius: 10px;
            .link{
                font-size: 16px;
                font-weight: 500;
                padding: 10px 5px 5px 20px;
            }
            .link img{
                zoom: 50%;
            }
        }
        .menu-box.column{
            height: 85px;
            .link{
                font-size: 14px;
                padding: 6px 0 0;
                gap: 5px;
            }   
            .link img{
                width: 32px;
                height: 36px;
                zoom: 100%;
            }
        }
        .sp-gnavi-list-contact{
            max-width: 305px;
            margin: 20px auto 0;
            .tel a {
                font-size: 25px;
            }
            .link{
                gap: 10px;
            }
            .sp-gnavi-title{
                font-size: 15px;
            }
            .sp-gnavi-text{
                font-size: 13px;
            }

        }
    }
    .hamburger span {
        width: 40px;
        height: 4px;
        margin: 8px 0;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/*SPメニューが開いている時、後ろのスクロール禁止*/
.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


/* SP固定ヘッダー設定 */
.sp-header{
    display: none;
}

/* スクロール後（縮小） */
/*.sp-header.shrink {
    height: 80px;
    transition: 0.3s;
    .sp-header-logo-link{
        zoom: 70%;
        transition: 0.3s;
    }
}
.sp-header.shrink::after{
    top: -10px;
}
*/
@media screen and (max-width: 1000px) {
    .sp-header{
        display: block;
        position: fixed;
        width: 100%;
        /*height: 120px;*/
        height: 100px;
        z-index: 100;
        background-color: #fff;
        transition: 0.3s;
    }
    .sp-header::after{
        content: "";
        background-image: url( "./images/common/header-wave.png" ) ;
        background-size: contain;
        background-repeat: repeat-x;
        position: absolute;
        left: 0;    
        top: 30px;
        width: 100%;
/*        height: 120px;*/
        height: 100px;
        z-index: -1;
        transition: 0.3s;
    }

    .home #main_content{
        padding-top: 100px;
    }
    .sp-header-logo-link{
        position: absolute;
        top: 30px;
        left: 5%;
        z-index: 100;
        width: 260px;
        height: auto;
        aspect-ratio: 120/32;
        transition: 0.3s;
    }
    .sp-header-logo{
        transition: 0.3s;
    }
}


@media screen and (max-width: 550px) {
    .sp-header{
        height: 80px;
    }

    .sp-header-logo-link{
        top: 25px;
        left: 5%;
        width: 170px;
    }

    .sp-header::after{
        top: 0;
    }

    /* スクロール後（縮小） 
    .sp-header.shrink {
        height: 70px;
        transition: 0.3s;
        .sp-header-logo-link{
            zoom: 60%;
            zoom: 58%;
            transition: 0.3s;
        }
    }*/
    .home #main_content{
        padding-top: 80px;
    }
}