body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    background-color: #ffff;
    font-family: "Zen Maru Gothic";
    font-weight: bold;
    justify-content: center;
    
}
#loading-screen{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #50BAFF, #4049FF);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: circle(150%);
  transition:clip-path 1s cubic-bezier(0.77, 0, 0.01, 1);
  pointer-events: auto;
}
#loading-screen.is-hidden {
  clip-path: circle(0%);
  pointer-events: none;
}
.loading-content {
  text-align: center;
}
.loading-chars1{
  width: 30%;
  margin-bottom: 20px;
}
.loading-chars2{
  width: 30%;
  margin-bottom: 20px;
}
.loading-text{
  color: white;
  font-size: 24px;
  font-weight: bold;
  font-family: "Zen Maru Gothic";
}
.loading-text span{
  opacity: 0;
  animation: blink 1.5s infinite;
}
.loading-text span:nth-child(2){
  animation-delay: 0.3s;
}
.loading-text span:nth-child(3){
  animation-delay: 0.5s;
}
@keyframes blink{
  0%{
    opacity: 0;
  }
  50%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: auto;
    background-image: url("../img/background.png");
    background-size: 150%;
    background-position: center;
    background-repeat: repeat;
    height: 100%;
    z-index: -2;
    /* テキストなどコンテンツの背面に配置 */
}

.siteheader {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 8vh;
    background: linear-gradient(to right, #50BAFF, #4049FF);
    position: relative;
    z-index: 100;
}

.headerinner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90vw;
    height: 8vh;
    margin: 0 auto;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.sitelogo {
    margin: 0;
    padding: 0;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

button.menu {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.bar {
    display: block;
    margin: 4px;
    width: 30px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* メニューが開いたときにボタンを「×」にする */
@media screen and (max-width: 768px) {
    .menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

.menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

.menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .menu.is-active .bar:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
    }

    .menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu.is-active .bar:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }
}
@media screen and (min-width: 1025px) {
    .menu.is-active .bar:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    .menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu.is-active .bar:nth-child(3) {
        transform: translateY(-14px) rotate(-45deg);
    }
}

.g-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: rgba(42, 39, 42, 0.5);
    backdrop-filter: blur(5px);
    padding: 80px 25px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 50;
}

/* メニュー表示時のスタイル */
.g-nav.is-active {
    transform: translateX(0);
}

/* メニューリスト */
.g-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10vh;
}

/* メニュー項目 */
.g-nav li {
    margin-bottom: 22px;
}

/* メニューのリンク */
.g-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

/* SNSアイコンのコンテナ */
.g-nav .sns {
    position: absolute;
    bottom: 25px;
    left: 25px;
    display: flex;
    gap: 15px;
}

/* SNSアイコンの画像 */
.g-nav .sns img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.g-nav .sns a:hover img {
    opacity: 1;
}

.site-footer {
    /* ヘッダーと同じグラデーション背景 */
    background: linear-gradient(to right, #4FBEFF, #4049FF);
    color: white;
    /* テキストの基本色を白に */
    padding: 25px 20px;
    /* 内側の余白（上下に多め） */
    text-align: center;
    /* 中の要素を中央揃えに */
    bottom: 0;
    z-index: 1000;
    /* ヘッダーと同じく、最前面に表示 */
}


.footer-content {
    height: 100px;
    max-width: 1200px;
    margin: 0 auto;
    /* コンテンツ全体の横幅を制限し、中央に配置 */
    z-index: 1000;
    /* ヘッダーと同じく、最前面に表示 */
}

/* SNSアイコンのリンクのコンテナ */
.sns-links {
    display: flex;
    /* アイコンを横並びにする */
    justify-content: center;
    /* 中央に寄せる */
    align-items: center;
    /* 垂直方向の中央を揃える */
    gap: 50px;
    /* アイコン間の隙間 */
    margin-bottom: 15px;
    /* 下のアカウント名との余白 */
    z-index: 1000;
    /* ヘッダーと同じく、最前面に表示 */
}

/* SNSアイコンの画像 */
.sns-links img {
    width: 50px;
    /* アイコンの幅 */
    height: 50px;
    /* アイコンの高さ */
    transition: opacity 0.3s;
    /* ホバー時のアニメーション */
    z-index: 1000;
    /* ヘッダーと同じく、最前面に表示 */
}

/* アイコンにマウスを乗せたときに少し薄くする */
.sns-links a:hover img {
    opacity: 0.8;
}

/* アカウント名 */
.account-name {
    margin: 0;
    /* pタグのデフォルトマージンをリセット */
    font-size: 14px;
    /* 文字サイズを少し小さめに */
    font-weight: bold;
    /* 文字を太く */
    letter-spacing: 1px;
    /* 文字間隔を少し広げる */
    z-index: 1000;
    /* ヘッダーと同じく、最前面に表示 */
}

.img3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    /* 箱より少し大きくして、回転しても隙間ができないように */
    height: auto;
    opacity: 0.5;
    /* translateで中央に補正し、rotateで回転 */
    transform: translate(-50%, -50%) rotate(30deg);
    /* 画像に合わせて角度を調整 */
    z-index: 0;
    /* 背景として配置 */
}

.rotated-image-wrapper {
    width: 100%;
    height: 800px;
    /* ← 高さを少し調整（見ながら変更してください） */
    position: relative;
    overflow: hidden;
    margin-top: -250px;
    /* ← 上の要素との重なりは維持 */
    margin-bottom: 20px;
    /* ← ★最重要：マイナスをやめ、フッターとの間に余白を作る */
    pointer-events: none;
    z-index: -1;
}



@media (min-width: 768px) {
    .siteheader {
        margin: 0;
        padding: 0;
        width: 100vw;
        height: 8vh;
        background: linear-gradient(to right, #50BAFF, #4049FF);
        position: relative;
        z-index: 100;
    }

    .headerinner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90vw;
        height: 8vh;
        margin: 0 auto;
        justify-content: flex-end;
        align-items: center;
        position: relative;
    }

    .sitelogo {
        margin: 0;
        padding: 0;
        color: white;
        font-size: 38px;
        font-weight: bold;
        text-align: center;
        text-align: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    button.menu {
        margin: 0;
        padding: 0;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 200;
    }

    .bar {
        display: block;
        margin: 8px;
        width: 40px;
        height: 5px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .g-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 30vw;
        height: 100vh;
        background-color: rgba(42, 39, 42, 0.5);
        backdrop-filter: blur(5px);
        padding: 80px 25px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 50;
    }

    .img3 {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 140%;
        /* 箱より少し大きくして、回転しても隙間ができないように */
        height: auto;
        opacity: 0.5;
        /* translateで中央に補正し、rotateで回転 */
        transform: translate(-50%, -50%) rotate(30deg);
        /* 画像に合わせて角度を調整 */
        z-index: 0;
        /* 背景として配置 */
    }

    .rotated-image-wrapper {
        width: 100%;
        height: 1500px;
        /* ← 高さを少し調整（見ながら変更してください） */
        position: relative;
        overflow: hidden;
        margin-top: -250px;
        /* ← 上の要素との重なりは維持 */
        margin-bottom: 20px;
        /* ← ★最重要：マイナスをやめ、フッターとの間に余白を作る */
        pointer-events: none;
    }
}

@media (min-width: 1200px) {
    .siteheader {
        margin: 0;
        padding: 0;
        width: 100vw;
        height: 5vw;
        background: linear-gradient(to right, #50BAFF, #4049FF);
        position: relative;
        z-index: 100;
    }

    .headerinner {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 90vw;
        height: 5vw;
        margin: 0 auto;
        position: relative;
    }

    .sitelogo {
        margin: 0;
        padding: 0;
        color: white;
        font-size: 38px;
        font-weight: bold;
        text-align: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    button.menu {
        margin: 0;
        padding: 0;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 200;
    }

    .bar {
        display: block;
        margin: 8px;
        width: 40px;
        height: 5px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .g-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 30vw;
        height: 100vh;
        background-color: rgba(42, 39, 42, 0.5);
        backdrop-filter: blur(5px);
        padding: 80px 25px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 50;
    }

    .rotated-image-wrapper {
        width: 100%;
        height: 2400px;
        /* ← 高さを少し調整（見ながら変更してください） */
        position: relative;
        overflow: hidden;
        margin-top: -250px;
        /* ← 上の要素との重なりは維持 */
        margin-bottom: 20px;
        /* ← ★最重要：マイナスをやめ、フッターとの間に余白を作る */
        pointer-events: none;
    }
}