.header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;

}
.header.is-active {
    display: flex;
}
#menuBtn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    z-index: 10;
    background: snow;
    border: .2rem solid black;
    color: black;
    width: 4rem;
    height: 4rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    margin-right: 1%;
    margin-top: 1%;
    user-select: none;
    transition: 0.2s;
    pointer-events: all;

}

/* 中央のバーラッパー */
.menubarwrapper {
    position: relative;
    width: 50%;
    height: 40%;
    left: 25%;
}

/* hover時 */
#menuBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .8);
}

/* バー本体 */
#menuBtn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: black;
    border-radius: 9px;
    left: 0;
    transition: .25s ease-in-out;
    transform-origin: center center;
}

/* 各バーの配置 */
#menuBtn span:nth-of-type(1) {
    top: 0;
}

#menuBtn span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

#menuBtn span:nth-of-type(3) {
    bottom: 0;
}

/* アクティブ時のアニメーション */
#menuBtn.active span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menuBtn.active span:nth-of-type(2) {
    opacity: 0;
}

#menuBtn.active span:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


.line {
    width: 100%;
    height: 1%;
    background-color: lightgray;
}



.test {
    border-radius: 10px;
    border-width: 1%;
    border-color: black;
    border-style: solid;
    margin: 5%;
}
.test p {
    padding-left: 3rem;
}


#menu-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
    padding: 5rem 0 2rem;
    visibility: hidden;
}
#menu-overlay.loaded {
    visibility: visible;
}
#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    text-align: center;
    justify-content: center;
}
nav li {
    margin-top: 5%;
    padding: 0;
}
nav a {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    color: black;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 1.5px solid black;
}
nav a .en {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: .3rem;

}
nav a:hover {
    border-color: #1E8EA4;
    color: #1E8EA4;
}


.sns {
    display: flex;
    gap: 12px; /* ボタン間の隙間 */
    margin-top: 0;
    justify-content: center;
}

.sns-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px; /* ロゴと文字の間 */
    padding: 0.5rem 1rem;
    border-radius: 1.2rem;
    text-decoration: none;
    color: snow;
    font-weight: bold;
    font-size: 12px;
    overflow: hidden;
    transition: background 0.3s, filter 0.3s, transform 0.3s, box-shadow 0.3s;
    /*will-change: transform;
    isolation: isolate;*/
}

.sns-btn img {
    height: 29px;        /* Instagram規約より29px以上 */
    width: auto;
}.sns-btn.x img {
    height: 29px;
}

/* 個別色 */
.sns-btn.instagram {
    background: linear-gradient(45deg, #e6c100, #e66e00, #e6005e, #be00b1, #6a32e1); /* Instagram ピンク */
    isolation: isolate;
}
.sns-btn.instagram::before {
    content: "";
    position: absolute;
    background: linear-gradient(45deg, #ffd600, #ff7a00, #ff0069, #d300c5, #7638fa); /* Instagram ピンク */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: inherit;
    clip-path: inset(0 100% 0 0);
    transition: clip-path .3s ease;
}
.sns-btn.instagram:hover {
    /*filter: brightness(1.3);*/
    transform: scale(1.05, 1.05);
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .8);
}
.sns-btn.instagram:hover::before, .sns-btn.x:hover::before {
    clip-path: inset(0 0 0 0);
}

.sns-btn.x {
    background-color: black;

}
.sns-btn.x::before {
    content: "";
    position: absolute;
    background-color: snow;
    mix-blend-mode: difference;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    /*transform: scaleX(0);
    transform-origin: -50% 0;*/
    clip-path: inset(0 100% 0 0);
    transition: clip-path .3s ease;
}

.sns-btn.x:hover {
    /*background-color: #1DA1F2; */
    transform: scale(1.05);
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .8);
}

.btnContent {
    position: relative;
    z-index: 1;
}


.split-line {
    width: 90%;
    height: 5px;
    background-color: #999;
    margin: 3rem 0 1rem;
}
#follow-me {
    padding: 0;
    margin: 0 0 1rem;
    font-size: 1.6rem;
}

@media (min-width: 1024px) {
.split-line {
    width: 70%;
}
#menu-overlay {
    padding: 0;
}
.sns-btn {
    font-size: 14px;
}
}