/* Header Layout
============================================================================= */
@media screen and (max-width: 767px) {
    .header__wrapper {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background: #fff;
        z-index: 99;
    }
}

header {
    background: #fff;
}

#header {
    width: 100%;
    height: 132px;
}

@media screen and (max-width: 989px) {
    #header {
        height: 139px;
    }
}

@media screen and (max-width: 767px) {
    #header {
        height: 60px;
    }
}

.header-sub {
    width: 1200px;
    height: 40px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media screen and (max-width: 989px) {
    .header-sub {
        width: 710px;
    }
}

@media screen and (max-width: 767px) {
    .header-sub {
        width: auto;
        height: 60px;
    }
}

.header__middle {
    background: #3c0fbc;
}

.header__inner {
    position: relative;
    width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 989px) {
    .header__inner {
        width: 710px;
    }
}

@media screen and (max-width: 767px) {
    .header__inner {
        width: auto;
        position: static;
    }
}

.header__main {
    width: 202px;
    position: absolute;
    left: 0;
    top: 28px;
}

@media screen and (max-width: 989px) {
    .header__main {
        width: 177px;
        top: 35px;
    }
}

@media screen and (max-width: 767px) {
    .header__main {
        width: 150px;
        left: 10px;
        top: 17px;
    }
}

.header__sub {
    position: relative;
}

/* header-main
============================================================================= */
.header-main__logo {
    width: 202px;
    font-size: 1px;
}

@media screen and (max-width: 989px) {
    .header-main__logo {
        width: 160px;
    }
}

@media screen and (max-width: 767px) {
    .header-main__logo {
        width: 150px;
    }
}

.header-main__logo .header-main__image {
    max-width: 100%;
}

.header-main__logo .header-main__image--dark {
    display: none;
}

/* header-contents
============================================================================= */
.header-sub__nav-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

@media screen and (max-width: 989px) {
    .header-sub__nav-wrapper {
        margin-right: 15px;
    }
}

@media screen and (max-width: 767px) {
    .header-sub__nav-wrapper {
        display: none;
    }
}

.header-sub-nav__lists {
    display: flex;
    justify-content: flex-end;
    position: relative;
    top: -1px;
}

.header-sub-nav__list {
    margin-left: 22px;
}

@media screen and (max-width: 989px) {
    .header-sub-nav__list {
        margin-left: 24px;
    }
}

.header-sub-nav__link {
    line-height: 1;
}

.header-sub-nav__txt {
    font-size: 12px;
    padding-left: 19px;
}

.header-sub-nav__txt--icon1 {
    background: url("../../image/header-ic001.png") no-repeat left top 2px;
    padding-left: 17px;
}

.header-sub-nav__txt--icon2 {
    background: url("../../image/header-ic002.png") no-repeat left top 2px;
}

.header-sub-nav__txt--icon3 {
    background: url("../../image/header-ic003.png") no-repeat left top 2px;
}

.header-sub-nav__txt--icon4 {
    background: url("../../image/header-ic004.png") no-repeat left top 2px;
    padding-left: 22px;
}

.header-sub__menu {
    display: flex;
    justify-content: flex-end;
}

@media screen and (max-width: 989px) {
    .header-sub__menu {
        padding-right: 70px;
    }
}

@media screen and (max-width: 767px) {
    .header-sub__menu {
        position: static;
        padding-right: 0;
    }
}

/* font-size
============================================================================= */
#fontController {
    margin-right: 20px;
}

@media screen and (max-width: 989px) {
    #fontController {
        margin-right: 0;
    }
}

@media screen and (max-width: 767px) {
    #fontController {
        display: none;
    }
}

#fontController .fsize {
    display: flex;
    justify-content: end;
    height: 40px;
    align-items: center;
}

#fontController .fsize-title {
    width: 87px;
    height: 40px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e9e7ff;
    color: #1d1a68;
}

#fontController dd {
    width: 50px;
    height: 40px;
}

#fontController a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    color: #1d1a68;
    background: #e9e7ff;
}

#fontController a:hover,
#fontController .small .small-btn-on,
#fontController .middle .reset-btn-on,
#fontController .large .large-btn-on {
    color: #fff;
    background: #4b4599;
}

#fontController .small {
    display: none;
}

/* search-area
============================================================================= */
.site-search {
    width: 190px;
    position: relative;
    height: 23px;
    top: 12px;
    font-size: 1px;
}

@media screen and (max-width: 989px) {
    .site-search {
        position: absolute;
        top: 40px;
        right: 0;
        width: 100vw;
        height: 139px;
        z-index: 55;
        background: rgba(0, 0, 0, 0.6);
        transition: all 0.3s;
        overflow: hidden;
        max-height: 0;
        min-height: 0;
        transform: translateX(calc(((100vw - 710px) / 2) * 1));
    }
}

@media screen and (max-width: 767px) {
    .site-search {
        top: 60px;
        width: 100%;
        transform: translateX(0);
    }
}

@media screen and (max-width: 989px) {
    .site-search__inner {
        position: relative;
        width: 190px;
        margin: 19px auto 0;
    }
}

.site-search .input-q {
    font-size: 12px;
    width: 190px !important;
    height: 23px !important;
    position: absolute;
    top: 0;
    left: 0;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #111 !important;
    padding: 3px !important;
}

@media screen and (max-width: 989px) {
    .site-search .input-q {
        height: 33px !important;
        border: 1px solid #333;
    }
}

.site-search__search-button {
    position: absolute;
    top: 0;
    right: 6px;
}

@media screen and (max-width: 989px) {
    .site-search__search-button {
        top: 8px;
    }
}

.site-search__state-check {
    display: none;
}

.site-search-sp-button {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 40px;
    cursor: pointer;
}

@media screen and (max-width: 989px) {
    .site-search-sp-button {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .site-search-sp-button {
        right: 60px;
        width: 60px;
        height: 60px;
    }
}

.site-search-sp-button__open {
    max-width: 100%;
    display: block;
}

.site-search-sp-button__close {
    max-width: 100%;
    display: none;
}

.site-search__state-check:checked + .site-search-sp-button .site-search-sp-button__open {
    display: none;
}

.site-search__state-check:checked + .site-search-sp-button .site-search-sp-button__close {
    display: block;
}

.site-search__state-check:checked ~ .site-search {
    max-height: 70px;
    min-height: 70px;
}

/* gnavi
============================================================================= */
@media screen and (max-width: 767px) {
    .gnavi-area {
        display: none;
    }
}

.global-nav__wrapper {
    width: 935px;
    margin: 0 0 0 auto;
    position: relative;
}

@media screen and (max-width: 989px) {
    .global-nav__wrapper {
        width: 535px;
        padding: 22px 0 23px;
    }
}

.global-nav__lists {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

@media screen and (max-width: 989px) {
    .global-nav__lists {
        flex-wrap: wrap;
    }
}

.global-nav__list {
    line-height: 1;
    position: relative;
}

.global-nav__list + .global-nav__list::before {
    content: '';
    display: block;
    width: 1px;
    height: 13px;
    background: #fff;
    position: absolute;
    left: -26px;
    top: 41px;
}

@media screen and (max-width: 989px) {
    .global-nav__list {
        width: calc(100% / 4);
        text-align: center;
    }
    .global-nav__list:nth-child(n + 5) {
        width: calc(100% / 3);
    }
    .global-nav__list:nth-child(-n + 4) {
        margin-bottom: 22px;
    }
    .global-nav__list + .global-nav__list:nth-child(2)::before {
        left: -5px;
        top: 3px;
    }
    .global-nav__list + .global-nav__list:nth-child(3)::before {
        left: 11px;
        top: 3px;
    }
    .global-nav__list + .global-nav__list:nth-child(4)::before {
        left: -10px;
        top: 3px;
    }
    .global-nav__list + .global-nav__list:nth-child(5)::before {
        content: none;
    }
    .global-nav__list + .global-nav__list:nth-child(6)::before {
        left: 1px;
        top: 3px;
    }
    .global-nav__list + .global-nav__list:nth-child(7)::before {
        left: -3px;
        top: 3px;
    }
}

.global-nav__link {
    display: block;
    width: 100%;
    height: 92px;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    color: #fff;
    padding-top: 40px;
    position: relative;
}

@media screen and (max-width: 989px) {
    .global-nav__link {
        height: auto;
        display: inline;
        padding-top: 0;
    }
}

.global-nav__txt {
    color: #fff;
    font-weight: 400;
}

.global-nav__link.current,
.global-nav__link:hover {
    overflow: visible;
}

.global-nav__link.current::after,
.global-nav__link:hover::after {
    content: '';
    display: block;
    border-right: 7px solid transparent;
    border-top: 12px solid #fff;
    border-left: 7px solid transparent;
    position: absolute;
    z-index: 1;
    top: 20px;
    left: calc(50% - 7px);
}

@media screen and (max-width: 989px) {
    .global-nav__link.current::after,
    .global-nav__link:hover::after {
        border-right: 5px solid transparent;
        border-top: 10px solid #fff;
        border-left: 5px solid transparent;
        top: 7px;
        left: -16px;
    }
}
