/* ヘッダー全体のスタイル */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease;
    max-width: 480px;
    margin: 0 auto;
}
header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/*globalnav*/
.hamburger {
    margin: 5px auto 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 100%;
    filter: drop-shadow(2px 3px 3px #c1c1c1);
    z-index: 1001;
}
/*
.logo img:hover {
    filter: drop-shadow(2px 3px 0px #aaa);
}
*/
.hamburger .btn-gNav {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    z-index: 12;
    opacity: 0.7;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}
.hamburger .btn-gNav span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(73, 73, 73, 0.9);
    border-radius: 10px;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}
.hamburger .btn-gNav span:nth-child(1) {
    top: 0;
}
.hamburger .btn-gNav span:nth-child(2) {
    top: 10px;
}
.hamburger .btn-gNav span:nth-child(3) {
    top: 20px;
}
/***activeクラスが付与されると線が回転して×になる***/
.hamburger .btn-gNav.active span:nth-of-type(1) {
    top: -10px;
    left: 0px;
    -webkit-transform: translateY(20px) rotate(-315deg);
    transform: translateY(20px) rotate(-315deg);
    width: 100%;
    /*background: hsl(0, 95%, 84%);*/
}
.hamburger .btn-gNav.active span:nth-of-type(2) {
    opacity: 0;/*真ん中の線は透過*/
    transform: translateX(50px); /* 右に20px移動 */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.hamburger .btn-gNav.active span:nth-of-type(3){
    top: 30px;
    left: 0px;
    transform: translateY(-20px) rotate(315deg);
    width: 100%;
    /*background: hsl(0, 95%, 84%);*/
}
/**回転して×ここまで**/
.hd-btns {
    display: flex;
    gap: 20px;
    justify-content: end;
    margin: 0 0 15px;
}
.hd-btns a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    width: 150px;
}
.bgc-bl {
    background-color: #5a8fbd;
}
.bgc-pk {
    background-color: #d45d99;
}
.hd-btns a:hover {
    opacity: 0.8;
}
.btn-gNav {
    display: none;
}
.logo {
    margin: 0 0 0 10px;
}
.gNav {
    margin: 0 10px 0 0;
}
.gNav .gNav-menu {
    display: flex;
    justify-content: space-between;
}
.gNav .gNav-menu li {
    margin: 0 auto;
    padding: 0 10px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #333;
}
/* リストメニューのリンクにスタイルを適用 */
.gNav-menu a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 0.875rem;
    font-weight: bold;
    transition: color 0.3s;
}
/* ホバー時のアンダーラインのアニメーション */
.gNav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff8f8f;
    transition: width 0.5s ease;
    transform: translateX(-50%);
}
/* リンクにホバー時のカラー変更 */
.gNav-menu a:hover {
    color: #ff8f8f;
}
/* リンクのホバー時にアンダーラインを表示 */
.gNav-menu a:hover::after {
    width: 100%;
}
/* SP版メニュー */
.sp-menu-wrap {
    display: none;
}
.sp-menu .sp-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
}
.sp-menu .sp-btn-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}
.sp-menu.open .sp-btn-line:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}
.sp-menu.open .sp-btn-line:nth-child(2) {
    opacity: 0;
}
.sp-menu.open .sp-btn-line:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}
/***hader_end***/
.logo {
    margin: 0;
    z-index: 50;
}
.logo img {
    max-width: 200px;
}
/*nav*/
.btn-gNav {
    display: block;
}
.gNav {
    position: fixed;
    top: -100%;
    max-width: 480px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    box-sizing: border-box;
    z-index: 1;
    padding-top: 20px;
    transition: .3s;
}
.gNav.open {
    top: 61px;
    height: 80vh;
    /*z-index: 2;*/
    border-top: 1px solid #ff7d72;
    margin: 0;
    max-width:480px;
}
.gNav .gNav-menu {
    padding: 0;
    width: 100%;
    height: 100%;
    display: block;
    flex-direction: column;
    text-align: center;
    /*justify-content: center;*/
}
.gNav .gNav-menu li {
    width: 86%;
    padding: 15px;
    font-size: 1rem;
    letter-spacing: 2px;
    border-bottom: #ffb3b3 1px solid;
    color: #ffffff;
}
.hd-btns {
    justify-content: center;
    margin: 20px 0 20px;
}

@media (max-width: 768px) {
    .logo {
        margin: 0;
    }
    .logo img {
        max-width: 200px;
    }
	/*nav*/
    .btn-gNav {
        display: block;
    }
    .hamburger .btn-gNav {
        right: 20px;
    }
    .gNav {
        position: fixed;
        top: 0;
        right: -105%;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        padding-top: 20px;
        transition: .3s;
    }
    .gNav.open {
        right: 0;
        top: 61px;
        height: 80vh;
        z-index: 2;
        border-top: 1px solid #ff7d72;
        margin: 0;
    }
    .gNav .gNav-menu {
        padding: 0;
        width: 100%;
        height: 100%;
        display: block;
        flex-direction: column;
        text-align: center;
        /*justify-content: center;*/
    }
    .gNav .gNav-menu li {
        width: 86%;
        padding: 15px;
        font-size: 1rem;
        letter-spacing: 2px;
        border-bottom: #ffb3b3 1px solid;
        color: #ffffff;
    }
    .hd-btns {
        justify-content: center;
        margin: 20px 0 20px;
    }
}