/* =========================================================
   基本設定
========================================================= */

.custom-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-top: 2px solid #c5e8e5;
    border-bottom: 1px solid #e5e5e5;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        YuGothic,
        "游ゴシック体",
        "ヒラギノ角ゴ ProN W3",
        Arial,
        sans-serif;
}

.custom-header *,
.custom-header *::before,
.custom-header *::after {
    box-sizing: border-box;
}

.custom-header a {
    text-decoration: none;
}

.custom-header button {
    font: inherit;
}


/* =========================================================
   PCヘッダー
========================================================= */

.custom-header__main {
    background: #fff;
}

.custom-header__inner {
    display: flex;
    align-items: center;
    width: min(100% - 40px, 1440px);
    min-height: 100px;
    margin: 0 auto;
}

.custom-header__logo-area {
    flex: 0 0 auto;
}

.custom-header__logo-link {
    display: flex;
    align-items: center;
}

.custom-header__logo {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   PCナビゲーション
========================================================= */

.custom-header__pc-navigation {
    flex: 1;
    min-width: 0;
    margin-left: 45px;
}

.custom-header__nav {
    width: 100%;
}

.custom-header__menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-header__menu>li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.custom-header__menu>li>a {
    display: block;
    padding: 38px 0;
    color: #111;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.custom-header__menu>li>a:hover,
.custom-header__menu>li.current-menu-item>a,
.custom-header__menu>li.current-menu-ancestor>a {
    color: #27bdb2;
}


/* =========================================================
   右側ボタン
========================================================= */

.custom-header__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 22px;
    margin-left: 35px;
}

.custom-header__advertisement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid #111;
    border-radius: 2px;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.custom-header__advertisement:hover {
    color: #fff;
    background: #111;
}

.custom-header__search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d6d6d6;
    cursor: pointer;
}

.custom-header__search-button svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
}

.custom-header__login {
    display: inline-flex;
    align-items: center;
    color: #aaa;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.custom-header__register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 999px;
    color: #fff;
    background: #31beb4;
    box-shadow: 0 4px 10px rgb(0 0 0 / 18%);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.custom-header__register:hover {
    color: #fff;
    background: #21aaa1;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgb(0 0 0 / 20%);
}

.custom-header__register svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}


/* =========================================================
   検索フォーム
========================================================= */

.custom-header__search {
    border-top: 1px solid #eee;
    background: #f8f8f8;
}

.custom-header__search[hidden] {
    display: none;
}

.custom-header__search-inner {
    width: min(100% - 40px, 1440px);
    margin: 0 auto;
    padding: 20px 0;
}

.custom-header__search-form {
    display: flex;
    max-width: 700px;
    margin-left: auto;
}

.custom-header__search-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #fff;
    font-size: 16px;
}

.custom-header__search-form button {
    flex: 0 0 auto;
    height: 48px;
    margin: 0;
    padding: 0 25px;
    border: 0;
    border-radius: 0 4px 4px 0;
    color: #fff;
    background: #31beb4;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   ハンバーガー
========================================================= */

.custom-header__hamburger {
    display: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.custom-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: #333;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.custom-header__hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.custom-header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   スマートフォンメニュー
========================================================= */

.custom-header__sp-menu {
    border-top: 1px solid #eee;
    background: #fff;
}

.custom-header__sp-menu[hidden] {
    display: none;
}

.custom-header__sp-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-header__sp-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.custom-header__sp-menu-list a {
    display: block;
    padding: 17px 20px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

.custom-header__sp-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
}

.custom-header__sp-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px;
    border: 1px solid #ddd;
    color: #111;
    font-weight: 700;
}

.custom-header__sp-links .custom-header__sp-register {
    grid-column: 1 / -1;
    border-color: #31beb4;
    border-radius: 999px;
    color: #fff;
    background: #31beb4;
}


/* =========================================================
   タブレット
   画像のTB表示を想定
========================================================= */

@media screen and (max-width: 1200px) {

    .custom-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo actions"
            "nav nav";
        width: 100%;
        min-height: 0;
        padding: 16px 24px 0;
    }

    .custom-header__logo-area {
        grid-area: logo;
    }

    .custom-header__logo {
        width: 210px;
    }

    .custom-header__pc-navigation {
        grid-area: nav;
        margin: 18px -24px 0;
        overflow-x: auto;
        border-bottom: 2px solid #d8f1ef;
        scrollbar-width: none;
    }

    .custom-header__pc-navigation::-webkit-scrollbar {
        display: none;
    }

    .custom-header__menu {
        justify-content: space-between;
        min-width: 760px;
        padding: 0 28px;
        gap: 45px;
    }

    .custom-header__menu>li>a {
        padding: 19px 0 18px;
        font-size: 19px;
    }

    .custom-header__actions {
        grid-area: actions;
        margin-left: 30px;
    }

    .custom-header__advertisement {
        display: none;
    }

    .custom-header__register {
        min-width: 150px;
    }
}


/* =========================================================
   スマートフォン
   画像のSP表示を想定
========================================================= */

@media screen and (max-width: 767px) {

    .custom-header {
        border-top-width: 1px;
    }

    .custom-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 8px 10px 0;
    }

    .custom-header__logo {
        width: 155px;
    }

    .custom-header__actions {
        gap: 15px;
        margin-left: 12px;
    }

    .custom-header__search-button {
        width: 30px;
        height: 30px;
    }

    .custom-header__search-button svg {
        width: 25px;
        height: 25px;
    }

    .custom-header__login {
        font-size: 14px;
    }

    .custom-header__register {
        display: none;
    }

    .custom-header__hamburger {
        display: none;
    }

    .custom-header__pc-navigation {
        margin: 10px -10px 0;
    }

    .custom-header__menu {
        justify-content: flex-start;
        min-width: max-content;
        padding: 0 27px;
        gap: 40px;
    }

    .custom-header__menu>li>a {
        padding: 16px 0 15px;
        font-size: 16px;
    }

    .custom-header__search-inner {
        width: 100%;
        padding: 15px 10px;
    }

    .custom-header__search-form {
        max-width: none;
    }

    .custom-header__search-form input {
        height: 44px;
        font-size: 14px;
    }

    .custom-header__search-form button {
        height: 44px;
        padding: 0 18px;
        font-size: 14px;
    }
}


/* =========================================================
   さらに狭い画面
========================================================= */

@media screen and (max-width: 420px) {

    .custom-header__logo {
        width: 145px;
    }

    .custom-header__actions {
        gap: 10px;
    }

    .custom-header__login {
        font-size: 13px;
    }

    .custom-header__menu {
        gap: 34px;
        padding-inline: 25px;
    }
}