/* ------------------------------------------------------------- */
/* header                                                        */
/* ------------------------------------------------------------- */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    height: 80px;
    transition: transform 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, position 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* フロントページ以外では初期状態をrelativeに */
body:not(.front-page) #header {
    position: relative;
}

/* フロントページ以外でfixed状態になる時のクラス */
body:not(.front-page) #header.scroll-fixed {
    position: fixed;
}

@media (max-width: 1024px) {
    #header {
        height: 60px;
        padding: 0 1rem;
    }
}

#header:hover {
    background: #FFF;
    backdrop-filter: none;
}

/* ヘッダーが隠れている状態 */
#header.hidden {
    transform: translateY(-100%);
}

/* ヘッダーが表示されている状態 */
#header.visible {
    transform: translateY(0);
}

/* メニューが開いている時は強制的に表示 */
#header.menu-open {
    transform: translateY(0) !important;
}

.header-wrap{
    width: 100%;
    flex-wrap: nowrap;
    padding: 15px 40px 15px 20px;
}

@media (max-width: 1200px){
    .header-wrap{
        padding: 15px 20px 15px 10px;
    }
}

@media (max-width: 1024px){
    .header-wrap{
        padding: 8px 15px;
    }

    .header-logo-img{
        max-width: 160px;
    }
}

#nav{
    margin-left: auto;
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid #111;
}

#nav > ul{
    display: flex;
    justify-content: flex-end;
    gap: 2vw;
}

#nav a{
    opacity: 1;
}

@media (max-width: 1200px){
    #nav{
        padding-right: 20px;
        margin-right: 20px;
    }

    #nav > ul{
        font-size: 14px;
    }
}

@media (max-width: 1024px){
    #nav{
        display: none;
    }
}

.nav-upper{
    font-size: 12px;
}

.nav-upper a{
    transition: .3s;
}

@media ( hover: hover){
    .nav-upper a:hover{
        color: #e60416;
    }
}

@media ( hover: none){
    .nav-upper a:active{
        color: #e60416;
    }
}

.nav-lower{
    margin-top: 10px;
    font-weight: 600;
}

.nav-lower > li > a{
    padding-bottom: 19px !important;
    position: relative;
}

.nav-lower > li > a::after{
    content: "";
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 8888;
    height: 4px;
    background-image: linear-gradient(90deg, #e60416 0%, #e60416 23.44%, #ff5d02 47.92%, #ff7204 72.4%, #f5a000 100%, #f5a000 100%);
    transform: scaleX(0);
    transition: .3s;
}

@media ( hover: hover){
    .nav-lower > li > a:hover{
        color: #e60416;
    }

    .nav-lower > li > a:hover::after{
        transform: scaleX(1);
    }
}

@media ( hover: none){
    .nav-lower > li > a:active{
        color: #e60416;
    }

    .nav-lower > li > a:active::after{
        transform: scaleX(1);
    }
}

/* ------------------------------------------------------------- */
/* megamenu                                                      */
/* ------------------------------------------------------------- */

.mega-menu__titlebox-text {
    font-size: 20px;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.mega-menu__wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.mega-menu__container {
    width: calc(100%/2 - 30px);
}

.mega-menu-sol__container {
    width: calc(100%/3 - 30px);
}

.mega-menu-sol__box {
    display: flex;
}

.mega-menu-sol__list {
    margin-left: 20px;
}

.mega-menu-sol__item {
    margin-bottom: 10px;
    font-weight: 100;
    display: flex;
    margin-right: 0 !important;
}

.mega-menu-sol__item::before {
    background: url(../img/common/link_arw_small.png) no-repeat;
    margin-right: 6px;
    width: 22px;
    height: 22px;
    background-size: contain;
    content: "";
    flex-shrink: 0;
}

.mega-menu-sol__item a {
    padding-bottom: 0 !important;
}

.mega-menu-sol__item p {
    font-size: 14px;
}

.mega-menu__container02 {
    width: 100%;
    display: flex;
}

.mega-menu__top-link {
    color: #e60012;
    text-decoration: underline;
    padding-bottom: 0 !important;
    margin-bottom: 20px;
    display: block;
}

.mega-menu__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: space-between;
}

.mega-menu-com__list {
    display: flex;
    padding-right: 40px;
    border-right: 1px solid #ccc;
    width: 52%;
    margin-right: 40px;
}

.mega-menu__item {
    width: calc(100%/3 - 25px);
    margin-right: 0 !important;
    margin-left: 37px;
    margin-bottom: 10px;
}

.mega-menu__item a p {
    display: flex;
}

.mega-menu__item a p::before {
    background: url(../img/common/link_arw_small.png) no-repeat;
    margin-right: 2px;
    width: 22px;
    height: 22px;
    background-size: contain;
    content: "";
    flex-shrink: 0;
}

.mega-menu__item:first-of-type {
    margin-left: 0;
}

.mega-menu__item:nth-of-type(4) {
    margin-left: 0;
}

.mega-menu__item:nth-of-type(7) {
    margin-left: 0;
}

.mega-menu-com__item {
    width: 250px;
    margin-right: 20px !important;
    margin-bottom: 20px;
}

.mega-menu-com__item a p {
    display: flex;
}

.mega-menu-com__item a p::before {
    background: url(../img/common/link_arw_small.png) no-repeat;
    margin-right: 6px;
    width: 22px;
    height: 22px;
    background-size: contain;
    content: "";
}

.mega-menu-com__item:last-of-type {
    margin-right: 0;
}

.mega-menu-com__list-child {
    margin-left: 40px;
}

.mega-menu-com__item-child {
    display: flex;
    margin-right: 0 !important;
    margin-bottom: 10px;
}

.mega-menu-com__item-child:last-of-type {
    margin-bottom: 0;
}

.mega-menu-com__item-child::before {
    background: url(../img/common/link_arw_small.png) no-repeat;
    margin-right: 6px;
    width: 22px;
    height: 22px;
    background-size: contain;
    content: "";
    flex-shrink: 0;
}

.mega-menu-com__item-child a {
    padding-bottom: 0 !important;
    font-size: 14px;
}

.mega-menu-com__item a img {
    width: 100%;
}

.mega-menu__item img {
    width: 100%;
    height: auto;
}

.mega-menu__item p {
    margin-top: 5px;
    font-weight: 100;
    font-size: 14px;
    color: #333;
}

.mega-menu-com__item p {
    margin-top: 5px;
    font-weight: 100;
    font-size: 14px;
    color: #333;
}

.mega-menu-com__item-child p {
    font-weight: 100;
}

.mega__menu:first-of-type a {
    padding-bottom: 32px;
    white-space: nowrap;
}

.mega__menu:nth-of-type(2) a {
    padding-bottom: 32px;
}

.mega__menu:nth-of-type(n+6):nth-child(-n+7) a {
    padding-bottom: 32px;
}

.mega__menu-second {
    visibility: hidden;
    opacity: 0;
}

li.mega__menu .mega__menu-second {
    position: absolute;
    /* top: 120px; */
    left: 0;
    width: 100%;
    z-index: 500;
    background: #F3F1EF;
    padding: 60px 7vw;
    box-sizing: border-box;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease-in-out;
}

li.mega__menu:hover .mega__menu-second {
    /* top: 120px; */
    visibility: visible;
    opacity: 1;
}

li.mega__menu h2 {
    color: #333;
    font-size: 25px;
    margin-bottom: 30px;
    text-decoration: underline;
}

@media (max-width: 1460px) {
    .mega-menu__wrap {
        flex-wrap: wrap;
    }

    .mega__menu:last-of-type .mega-menu__wrap {
        width: 1090px;
    }

    .mega__menu:last-of-type .mega__menu-second {
        padding: 60px 0 60px 7vw !important;
    }

    .mega-menu-sol__container {
        width: 45%;
    }

    .mega-menu-sol__container:last-of-type {
        margin-top: 20px;
    }

    .mega-menu__container02 {
        display: block;
    }

    .mega-menu-com__list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
        margin-bottom: 20px;
    }

    .mega-menu-com__list-child {
        display: flex;
    }

}



.mega-menu-com__item-child {
    width: 250px;
    margin-right: 20px !important;
}

.mega-menu-com__list-child {
    margin-left: 0;
}

.mega-menu__container.csr__container {
    width: 100%;
}

.mega-menu__container.csr__container li {
    margin-left: 20px;
}

.mega-menu__container.csr__container li:nth-of-type(4) {
    margin-left: 20px;
}

.mega-menu__container.csr__container li:nth-of-type(7) {
    margin-left: 20px;
}

.mega-menu__container .csr__list {
    flex-wrap: nowrap !important;
}

@media (max-width: 1460px) {
    .mega-menu__container .csr__list {
        flex-wrap: wrap !important;
        justify-content: flex-start;
    }

    .mega-menu__container .csr__list li:nth-of-type(5) {
        margin-left: 0;
    }

    .mega-menu__container .csr__list li {
        width: calc(100%/4 - 25px);
    }
}

.mega-menu__container .case__list {
    flex-wrap: wrap !important;
    justify-content: flex-start;
}

@media (max-width: 1460px) {
    .mega-menu__container .case__list li:nth-of-type(5) {
        margin-left: 0;
    }

    .mega-menu__container .case__list li {
        width: calc(100%/4 - 25px);
    }
}


/* ------------------------------------------------------------- */
/* drawer                                                        */
/* ------------------------------------------------------------- */

.drawer-btn{
    width: 40px;
    cursor: pointer;
}

.drawer-btn__bar{
    position: relative;
    height: 20px;
    width: 32px;
    margin: 5px auto;
}

.drawer-btn__bar span{
    height: 3px;
    width: 32px;
    background: #111;
    border-radius: 10px;
    position: absolute;
    left: 0;
    transition: .3s;
}

.drawer-btn__bar span:nth-child(1){
    top: 0;
}

.drawer-btn__bar span:nth-child(1){
    top: 50%;
    transform: translateY(-50%);
}

.drawer-btn__bar span:nth-child(3){
    bottom: 0;
}

.drawer-btn.is-open .drawer-btn__bar span:nth-child(1){
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
}

.drawer-btn.is-open .drawer-btn__bar span:nth-child(2){
    opacity: 0;
}

.drawer-btn.is-open .drawer-btn__bar span:nth-child(3){
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(-45deg);
}

.drawer-btn__txt{
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: .3s;
}

/* ------------------------------------------------------------- */
/* drawer                                                        */
/* ------------------------------------------------------------- */

#header-sitemap{
    display: none;
    overflow: scroll;
    position: fixed;
    width: 100vw;
    background: #FFF;
    z-index: 9999;
    transition: .1s;
}

.sitemap__wrap{
    padding: 60px 40px;
    display: flex;
}

.sitemap__colmun{
    flex: auto;
    padding-right: 40px;
}

.sitemap__colmun:nth-child(1){
    margin-right: 40px;
    padding-right: 40px;
    border-right: 1px solid #CCC;
    min-width: 40%;
}

.sitemap__colmun:nth-child(n+1){
    width: calc((60% - 40px) / 2);
}

@media (max-width: 1024px){
    .sitemap__wrap{
        flex-wrap: wrap;
        padding: 40px 0;
        margin: 0 auto;
        max-width: 768px;
        width: 100%;
    }

    .sitemap__colmun:nth-child(1){
        width: 100%;
        margin: 0 0 40px 0;
        padding-right: 0;
        border: none;
    }
}

@media (max-width: 768px){
    .sitemap__wrap{
        width: 90%;
        max-width: 500px;
    }

    .sitemap__colmun{
        width: 100% !important;
        margin: 0 0 30px 0 !important;
    }
}

.sitemap__block{
    margin-bottom: 40px;
}

.sitemap__block:last-child{
    margin-bottom: 0;
}

.sitemap__nav li{
    font-size: 13px;
    position: relative;
}

.sitemap__nav li a{
    position: relative;
    display: block;
    padding: 7px 20px;
    border-bottom: 1px solid #EFEFEF;
    opacity: 1 !important;
}

.sitemap__nav li a::after{
    content: "";
    width: 13px;
    height: 13px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(../img/common/sitemap/i_link.svg) no-repeat center / contain;
    transition: .3s;
}

.sitemap__nav li a::before{
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, #e60416 0%, #e60416 23.44%, #ff5d02 47.92%, #ff7204 72.4%, #f5a000 100%, #f5a000 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: .3s;
}

@media ( hover: hover){
    .sitemap__nav li a:hover{
        color: #e60416;
    }

    .sitemap__nav li a:hover::after{
        transform: translate(3px,-50%);
        background: url(../img/common/sitemap/i_link_or.svg) no-repeat center / contain;
    }

    .sitemap__nav li a:hover::before{
        transform: scaleX(1);
    }
}

@media ( hover: none){
    .sitemap__nav li a:active{
        color: #e60416;
    }

    .sitemap__nav li a:active::after{
        transform: translate(3px,-50%);
        background: url(../img/common/sitemap/i_link_or.svg) no-repeat center / contain;
    }

    .sitemap__nav li a:active::before{
        transform: scaleX(1);
    }
}

.sitemap__nav.layer1 > li > a{
    font-size: 14px;
    font-weight: bold;
}

.sitemap__nav.layer2 > li a{
    padding-left: 20px;
}

.sitemap__heading{
    display: flex;
    align-items: center;
    padding-bottom: 20px;

}

li.sitemap__heading{
    padding: 20px 0 10px;
}

.sitemap__heading h2{
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
}

.sitemap__heading h2 span{
    font-size: 18px;
}

.sitemap__heading h3{
    font-weight: 600;
}

.sitemap__pickup{
    position: relative;
}

.swiper-container__pickup{
    overflow: hidden;
}

.swiper-container__pickup .swiper-slide{
    width: 100%;
    max-width: 100%;
    height: auto;
}

.swiper-container__pickup .swiper-slide > a{
    height: 100%;
    display: block;
    border-bottom: 2px solid #CCC;
    padding-bottom: 20px;
    position: relative;
    font-weight: bold;
}
.swiper-container__pickup .swiper-slide > a::before{
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-image: linear-gradient(90deg, #e60416 0%, #e60416 23.44%, #ff5d02 47.92%, #ff7204 72.4%, #f5a000 100%, #f5a000 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: .3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.swiper-container__pickup .swiper-slide > a::after{
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: url(../img/common/sitemap/i_link.svg) no-repeat center / contain;
    position: absolute;
    bottom: 20px;
    right: 0;
    transition: .3s;
}

@media (hover : hover){
    .swiper-container__pickup .swiper-slide > a:hover{
        color: #e60416;
        opacity: 1 !important;
    }
    
    .swiper-container__pickup .swiper-slide > a:hover::before{
        transform: scaleX(1);
    }

    .swiper-container__pickup .swiper-slide > a:hover::after{
        background: url(../img/common/sitemap/i_link_or.svg) no-repeat center / contain;
    }
}

.swiper-container__pickup .swiper-slide img{
    width: 80%;
    max-width: 600px;
}

.swiper-container__pickup .btn-area{
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 20px;
}

.swiper-button-next__pickup,
.swiper-button-prev__pickup{
    width: 30px;
    height: 30px;
    background: url(../img/common/sitemap/i_arrow_right.svg) no-repeat center / contain;
    cursor: pointer;
    transition: .3s;
}

.swiper-button-prev__pickup{
    transform: rotate(180deg);
}

@media ( hover: hover){
    .swiper-button-next__pickup:hover{
        transform: scale(1.05);
    }

    .swiper-button-prev__pickup:hover{
        transform: rotate(180deg) scale(1.05);
    }
}

.swiper-container__pickup .swiper__txt-box{
    margin-top: 20px;
    width: 80%;
}