/* ヘッダー関連 */
.under-sm {
    display: block
}

@media screen and (min-width:768px) {
    .under-sm {
        display: none
    }
}

.over-sm {
    display: none
}

@media screen and (min-width:768px) {
    .over-sm {
        display: block
    }
}

header {
    height: 72px;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
}

@media screen and (min-width:768px) {
    header {
        height: auto;
    }
}

header>div:first-child {
    display: flex;
    flex-grow: 0;
}


header>div:first-child h1 {
    display: flex;
    flex-grow: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: .75em 0
}

header>div:first-child h1 a {
    height: 100%;
    display: flex;
    margin-left: 1em;
    align-items: center;
    justify-content: start;
}

header>div:first-child h1 img {
    max-height: 100%;
    max-width: 285px;
}

@media screen and (min-width:768px) {
    header>div:first-child h1 {
        justify-content: start;
        padding: 0
    }

    header>div:first-child h1 a {
        height: auto;
    }

    header>div:first-child h1 img {
        height: 5em;
        width: auto;
        max-width: fit-content;
    }
}

header>div:nth-child(2)>.under-sm {
    height: 100%;
    width: 100%
}

header>div:nth-child(2)>.under-sm>div {
    align-items: center;
    display: flex;
    height: 100%;
    padding: .75em;
    width: 100%
}

header>div:nth-child(2)>.under-sm>div button {
    height: 3em;
    width: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #18448f;
    border: none;
    border-radius: .25em;
}

.mobile-navimenu {
    height: 0;
    position: relative
}

.mobile-navimenu>* {
    background: rgba(0, 0, 0, .7);
    color: #fff;
    min-height: calc(100vh - 72px);
    padding: 1em;
    position: absolute;
    width: 100%;
    z-index: 2
}

.mobile-navimenu>*>:first-child {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 1.25em
}

.mobile-navimenu>*>:nth-child(2) a {
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: .5em 0;
    text-decoration: none;
    width: 100%
}

.mobile-navimenu>*>:nth-child(2) li {
    border-bottom: 1px dotted #fff
}

.mobile-navimenu>*>:nth-child(2) ul {
    border-left: 1px dotted #fff;
    margin-bottom: 1em;
    margin-left: 1.5em
}

.mobile-navimenu>*>:nth-child(2) ul>li {
    padding-left: 1em
}

.desktop-navimenu {
    align-items: center;
    display: flex;
    font-weight: 700;
    justify-content: center;
    width: 100%
}

.desktop-navimenu>li {
    position: relative;
}

.desktop-navimenu>li>a {
    align-items: center;
    color: #fff;
    display: inline-flex;
    height: 3.5em;
    padding: 0 2.5em;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
}

.desktop-navimenu>li>a:hover {
    background-color: #133672
}

.desktop-navimenu>li>div {
    display: none;
    left: 50%;
    padding-top: 1em;
    position: absolute;
    transform: translateX(-50%);
    width: auto;
    word-break: keep-all;
    z-index: 2
}

.desktop-navimenu>li:hover>div,
.desktop-navimenu>li:focus-within>div {
    display: block;
}

.desktop-navimenu>li>div:before {
    border-bottom: .5em solid #18448f;
    border-left: .5em solid transparent;
    border-right: .5em solid transparent;
    content: "";
    left: 50%;
    position: absolute;
    top: .55em;
    transform: translateX(-50%)
}

.desktop-navimenu>li>div>ul {
    background-color: #fff;
    border: 4px solid #18448f;
    border-radius: .5em;
    padding: .5em
}

.desktop-navimenu>li>div>ul>li a {
    color: #333;
    display: block;
    padding: .25em .75em;
    text-decoration: none;
    width: 100%
}

.desktop-navimenu>li>div>ul>li a:hover {
    color: #007ac1;
    text-decoration: underline
}

.desktop-navimenu>li>div>ul>li>ul {
    padding-left: 1em
}

nav.over-sm {
    background-color: #18448f;
    width: auto;
}

header .over-sm>div {
    width: auto;
    display: flex;
    align-items: end;
    flex-direction: column;
    padding: 1em;
}

header .over-sm>div>div {
    padding-top: .5em;
}

/* ハンバーガーメニューボタン */
button#hambugerMenuOpenButton svg {
    width: 2em;
    height: 2em;
}

button#hambugerMenuOpenButton svg rect {
    fill: #ffffff;
}

button#hambugerMenuCloseButton svg {
    width: 2em;
    height: 2em;
}

button#hambugerMenuCloseButton svg polygon {
    fill: #ffffff;
}

/* 検索 */
form.search-form>div {
    display: flex;
}

header .over-sm form input {
    border: #18448f solid 4px;
    padding: 0.175em 0.25em;
    width: 17em;
}

header .over-sm form button {
    background-color: #18448f;
    border-color: #18448f;
    padding: 0.5em;
    padding-bottom: 0.3em;
    padding-right: calc(0.5em + 4px);
    cursor: pointer;
}

nav.under-sm form input {
    border: #ffffff solid 4px;
    padding: 0 0.5em;
    width: 17em;
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    outline: none;
}

nav.under-sm form button {
    background-color: #ffffff;
    border-color: #ffffff;
    padding: 0.3em;
    padding-bottom: 0.1em;
    padding-right: calc(0.5em + 4px);
    cursor: pointer;
}

header div.over-sm form button>svg {
    fill: #ffffff;
    width: 1.25em;
    height: 1.25em;
}

nav.under-sm form button>svg {
    fill: #333333;
    width: 1.25em;
    height: 1.25em
}

/* 問い合わせ、会員専用ページ */
header .over-sm .contact {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #18448f;
    color: #ffffff;
    text-decoration: none;
    padding: 0.2em 1.75em;
    height: 2.5em;
    border-radius: 1.25em;
    margin-right: 0.25em;
}

a.contact>svg {
    fill: #ffffff;
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
}

nav.under-sm .contact {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #18448f;
    color: #ffffff;
    text-decoration: none;
    height: 2em;
    border-radius: 1em;
    margin-right: 0.25em;
    width: 16em;
}

header .over-sm .members {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #c3261d;
    color: #ffffff;
    text-decoration: none;
    padding: 0.2em 1.75em;
    height: 2.5em;
    border-radius: 1.25em;
}

a.members>svg {
    fill: #ffffff;
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.25em;
}

nav.under-sm .members {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #c3261d;
    color: #ffffff;
    text-decoration: none;
    height: 2em;
    border-radius: 1em;
    width: 16em;
}

a.contact>span,
a.members>span {
    font-size: 0.85em;
}

div#mobileNaviMenu a.contact>span,
div#mobileNaviMenu a.members>span {
    font-weight: bold;
}
