/* ヘッダーのスタイリング */
.header {
    height: 80px;
    background-color: #FFFFFF;
    margin: 0 auto;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: inherit;
    color: #FFFFFF;
    padding: 0 50px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.header-logo {
    width: 227px;
    height: 34px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-icon  {
    background-color: #D9D9D9;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    position: relative;
    object-fit: cover;
}
.default-header-icon {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    position: relative;
    object-fit: cover;
}
.nav-wrapper {
    display: none;
}


/* SNSシェアボタン */
.modal-container-small {
    position: absolute;
    display: inline-block;
    vertical-align: middle;
    max-width: 240px;
    width: 90%;
    border-radius: 10px;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 検索機能のスタイリング */
input[type="text"] {
    background-color: transparent;
    width: 225px;
    border:none;
    outline: none;
}
.search-outer input::placeholder {
    opacity: .5;
}
.search-outer {
    z-index: 300;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: solid 2px #8C8C8C;
    padding: 5px;
}
.search-icon {
    filter: invert(57%) sepia(4%) saturate(24%) hue-rotate(331deg) brightness(97%) contrast(86%);
}

.search-nav {
    display: none;
    margin: 0 30px 30px;
}
.search-nav .search-nav_input {
    width: 100%;
    color: #FFF;
}

.nav {
    font-family: "Oswald", sans-serif;
    position: fixed;
    width: 400px;
    height: calc(100vh + 60px);
    top: 0%;
    background-color: #DE3341;
    color: #FFFFFF;
    padding: 5px 0;
    transition: all 0.5s;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    right: 0%;
    overflow-y: scroll;
    z-index: 400;
}
.open .nav{
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.open .overlay {
    opacity: 1;
    visibility: visible;
}

.overlay {
    cursor: pointer;
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 100vw;
    z-index: 1;
}

/* モーダル */
.modal, .modal-link, .modal-btn {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0,0,0,50%);
    padding: 40px 20px;
    overflow: auto;
    transition: .3s;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.modal-container {
    position: absolute;
    display: inline-block;
    vertical-align: middle;
    max-width: 350px;
    width: 90%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid;
    border-color: #F66E7A;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.modal-content {
    padding: 30px 0;
    margin: 0 auto;
}
.modal-content p {
    margin-bottom: 30px;
}
.modal-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.modal-button .modal-cancel {
    color: #F23041;
    border: solid 2px #F23041;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 250px;
    line-height: 56px;
}
.modal-close, .modal-close-link, .modal-close-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}
.modal-cancel-link, .modal-cancel-btn {
    color: #F23041;
    border: solid 2px #F23041;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 250px;
    line-height: 56px;
}
.btn-red-link, .btn-red-cancel {
    display: block;
    line-height: 56px;
}
.header-modal .btn-red {
    padding: 18px 0;
}
.header-modal .btn-white {
    padding: 0;
}
@media screen and (width <= 1024px) {
    .nav-wrapper {
        display: block;
    }
    .header-icon, .default-header-icon {
        display: none;
    }
    .open .search-outer {
        border-bottom-color: #FFF;
    }
    .open .search-outer input, .open .search-outer input::placeholder {
        color: #FFF;
        opacity: .8;
    }
    .open .search-icon {
        filter: invert(100%) sepia(10%) saturate(7500%) hue-rotate(202deg) brightness(118%) contrast(108%);
    }
    .open .header-icon_wrap {
        display: none;
    }
    /* ハンバーガーアイコン */
.hamburger {
    width: 35px;
    height: 30px;
    cursor: pointer;
    z-index: 405;
    position: relative;
}

.hamburger_line {
    position: absolute;
    width: 35px;
    height: 2px;
    right: 0;
    background-color: #000000;
    transition: all 0.5s;
}

.hamburger_line-1 {
    top: 3px;
}

.hamburger_line-2 {
    top: 13px;
}

.hamburger_line-3 {
    top: 23px;
}

/* ハンバーガーがクリックされた時の挙動 */
.open .hamburger_line-1 {
    transform: rotate(-45deg);
    top: 18px;
    background-color: #FFF;
}

.open .hamburger_line-2 {
    opacity: 0;
}

.open .hamburger_line-3 {
    transform: rotate(45deg);
    top: 18px;
    background-color: #FFF;
}
.link-list {
    margin-top: 70px;
}
}
@media screen and (max-width: 768px) {
    .header {
        height: 60px;
    }
    .header-container {
        padding: 0 20px;
    }
    .header-logo {
        width: 150px;
        height: auto;
    }
    .header-right{
        gap: 15px;
    }
    .header-icon {
        width: 35px;
        height: 35px;
    }
    .hamburger {
        width: 30px;
    }
    .hamburger_line {
        width: 30px;
    }
    .open .hamburger_line-1, .open .hamburger_line-3 {
        top: 14px;
    }
    /* .open .hamburger_line {
        right: -5px;
    } */
    /* ハンバーガーメニューを開いた時に検索フォームを表示 */
    .search-header {
        display: none;
    }
    .search-nav {
        display: flex;
        margin: 0 50px;
    }
    .nav {
        padding: 0;
        width: 75vw;
        height: calc(100svh + 18px);
    }
    /* ハンバーガーメニューを開いた時の検索フォームのスタイリング */
    .link-list form {
        margin-bottom: 6px;
    }
    .link-item {
        padding: 0 20px;
    }
    .link-item a {
        padding: 17px 0;
        font-size: 16px;
    }
    .link-logout {
        margin: 0 20px;
    }
    .link-logout a {
        font-size: 15px;
        padding: 10px 0;
    }
    .nav-hanchou {
        width: 100vw;
        height: calc(100vh + 60px);
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .2s;
    }
    .open .nav-hanchou {
        background-color: #000000;
        visibility: visible;
        opacity: .5;
    }
}

@media screen and (width >= 1024px) {
    .nav {
        display: none;
    }
}
