@charset "utf-8";
/* =========================================================================================================================================== */
/* ヘッダーCSS                                                                                                                                   */
/* =========================================================================================================================================== */
@media all {
    /* 共通 */
    #header {
        background-color: var(--color-white);
        width: 100%;
        position: fixed;
        z-index: var(--zindex-header);
    }
    .header-inner {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        height: var(--header-height);
        width: var(--width-100);
        max-width: var(--content-width-1);
        margin: 0 auto;
        padding-top: 32px;
        position: relative;
    }
    #dummy-header {
        height: var(--header-height);
    }


    /* ロゴ */
    #header .logo a {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        align-items: flex-end;
    }
    #header .logo a img {
        display: block;
        width: 127px;
    }
    #header .logo a figcaption {
        padding-left: 19px;
        flex: 1 0 0%;
    }
    #header .logo a figcaption .jp {
        font-size: 20px;
        line-height: 1;
        font-weight: var(--font-weight-bold);
        padding-bottom: 4px;
    }
    #header .logo a figcaption .en {
        line-height: 1;
    }


    /* リンクボタン */
    #header .links {
        margin-left: auto;
    }
    #header .links ul {
        display: flex;
    }
    #header .links ul li {
        padding-left: 5px;
    }
    #header .links ul li a {
        display: flex;
        width: 151px;
        height: 28px;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        background-color: var(--color-black2);
        color: var(--color-white);
        font-weight: var(--font-weight-bold);
    }
    #header .links ul li a::before {
        content: "";
        background-image: url('../../img/icon_newwindow.png');
        display: block;
        width: 13px;
        height: 13px;
        background-size: cover;
        margin-right: 6px;
    }


    /* リンクボタン スマホ */
    #header .links_sp {
        display: none;
    }
    #header .links_sp ul li {
        padding-bottom: 8px;
    }
    #header .links_sp ul li a {
        display: flex;
        width: 151px;
        height: 28px;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        background-color: var(--color-black2);
        color: var(--color-white);
        font-weight: var(--font-weight-bold);
        margin: 0 auto;
    }
    #header .links_sp ul li a::before {
        content: "";
        background-image: url('../../img/icon_newwindow.png');
        display: block;
        width: 13px;
        height: 13px;
        background-size: cover;
        margin-right: 6px;
    }


    /* メニュー */
    #header .menus {
        position: absolute;
        width: 100%;
        height: 51px;
        bottom: -29px;
        background: var(--background-gradient1);
        transform: skewX(-32deg);
    }
    #header .menus-inner {
        height: 100%;
    }
    #header .menus #gnavi {
        transform: skewX(32deg);
    }


    /* Gメニュー */
    #gnavi, .gnavi-inner {
        height: 100%;
    }
    #gnavi ul {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    #gnavi ul li {
        font-size: 16px;
        font-weight: var(--font-weight-bold);
        padding-left: 1em;
        position: relative;
    }
    #gnavi ul li a {
        color: var(--color-white);
    }
    #gnavi ul li a.new::before {
        content: "";
        width: 36px;
        display: inline-block;
        height: 15px;
        background-image: url(../../img/icon_new.gif);
        background-size: contain;
        top: -10px;
        left: -11px;
        margin-right: 3px;
    }
    #gnavi ul li::before {
        content: "／";
        color: var(--color-white);
        padding-right: 1em;
    }
    #gnavi ul li:first-child::before {
        content: none;
    }

    /* Gメニュー：サブメニュー */
    #gnavi .submenu {
        position: absolute;
        display: block;
        width: 300px;
        top: 25px;
        left: 3em;
        height: auto;
        overflow: hidden;
        height: 0;
        transition: height 0.5s ease;
    }
    #gnavi .submenu ul {
        display: block;
        height: auto;
        padding-top: 14px;
    }
    #gnavi .submenu ul li {
        width: 100%;
        height: 57px;
        padding: 0;
        border-top: solid 1px var(--color-blue2);
    }
    #gnavi .submenu ul li:last-child {
        height: 58px;
        border-bottom: solid 1px var(--color-blue2);
    }
    #gnavi .submenu ul li::before {
        content: none;
    }
    #gnavi .submenu ul li a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: var(--font-weight-bold);
        position: relative;
        background-color: var(--color-blue1);
    }
    #gnavi .submenu ul li a::after {
        content: ">";
        position: absolute;
        right: 12px;
        font-weight: var(--font-weight-regular);
        font-size: 12px;
    }
}
@media (max-width: 1023px) {
    /* 共通 */
    .header-inner {
        padding-top: 25px;
    }


    /* ロゴ */
    #header .logo {
        width: calc(100% - 57px);
    }
    #header .logo a img {
        width: 82px;
    }
    #header .logo a figcaption {
        flex: 1 0 0%;
        padding-left: 11px;
    }
    #header .logo a figcaption .jp {
        font-size: 14px;
    }
    #header .logo a figcaption .en {
        font-size: 14px;
    }


    /* リンクボタン */
    #header .links {
        display: none;
    }


    /* リンクボタン スマホ */
    #header .links_sp {
        display: block;
        padding-top: 30px;
        padding-bottom: 27px;
    }


    /* メニュー */
    #header .menus {
        top: 84px;
        transform: none;
        width: 100vw;
        left: 0px;
        height: 0;
        overflow-y: scroll;
        position: fixed;
        transition: height 0.5s ease;
    }
    #header .menus-inner {
        height: auto;
    }
    #header .menus #gnavi {
        transform: none;
        height: auto;
        padding-top: 23px;
    }
    

    /* Gメニュー */
    #gnavi ul {
        display: block;
    }
    #gnavi ul li {
        padding-left: 0;
        text-align: center;
        line-height: 30px;
    }
    #gnavi ul .submenu li > a:before {
        content: "▶︎";
        font-size: 8px;
        display: inline;
        padding-right: 5px;
        position: absolute;
        left: -13px;
    }
    #gnavi ul li a {
        position: relative;
    }
    #gnavi ul li::before {
        display: block;
        line-height: 30px;
        padding-top: 4px;
        padding-bottom: 3px;
    }
    
    
    /* Gメニュー：サブメニュー */
    #gnavi .submenu {
        position: unset;
        height: auto;
        width: 110px;
        margin: 0 auto;
    }
    #gnavi .submenu.less {
        width: 206px;
    }
    #gnavi .submenu ul {
        padding-top: 0;
    }
    #gnavi .submenu ul li {
        height: auto;
        border-top: none;
        text-align: left;
        padding-left: 13px;
    }
    #gnavi .submenu ul li a {
        background: none;
        display: inline;
    }
    #gnavi .submenu ul li:last-child {
        height: auto;
        border-bottom: none;
    }
    #gnavi .submenu ul li a::after {
        content: none;
    }


    /* Gメニュー ボタン */
    #header .btn-gnavi {
        width: 33px;
        height: 33px;
        margin-left: auto;
        background-color: var(--color-black2);
        position: relative;
        padding: 10px 9px;
        cursor: pointer;
    }
    #header .btn-gnavi span {
        position: absolute;
        display: block;
        width: 15px;
        height: 1px;
        background-color: var(--color-white);
        margin: auto;
        top: 0;
        bottom: 0;
    }
    #header .btn-gnavi span::before,
    #header .btn-gnavi span::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: var(--color-white);
        position: absolute;
    }
    #header .btn-gnavi span::before {
        top: -6px;
    }
    #header .btn-gnavi span::after {
        top: 6px;
    }
}
@media (max-width: 430px) {
    /* ロゴ */
    #header .logo a {
        align-items: flex-start;
    }
}