.menu-container {
    position: relative;
}

.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.line {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態で右側に隠れる */
    height: 100%;
    width: 100%; /* メニューの幅を100%に */
    background-image: url('../img/223842.png'); /* 画像を設定 */
    background-size: cover;
    background-position: center;
    transition: right 0.3s ease;
    z-index: 50;
}

.header_menu {
    list-style: none;
    padding: 0;
    margin: 0 25px;
    text-align: center;
    display: flex;
    max-width: 600px;
    flex-wrap: wrap;
    justify-content: left;
}
.header_menu li {
    width: 50%;
    margin: .5em 0;
}


.header_menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header_menu li a:hover {
    color: #ff6347; /* ホバー時に色を変更 */
}

.side-menu.open {
    right: 0; /* メニューがスライドして表示される */
}

.burger-menu.open .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.open .line:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


#sparkle_container4 {
    position: relative;
    width: 100%;
    height: 70px; /* 親要素の高さ */
    overflow: hidden;
    background-image: url(../img/5.png);
    background-size: cover;
        background-position: center center;

  }

  .sparkle {
    position: absolute;
    border-radius: 50%;
    background-color: white; /* 白い点 */
    animation-name: twinkle;
    animation-iteration-count: infinite;
  }

  @keyframes twinkle {
    50% {
      transform: scale(0.2);   /* 50%の時に縮小 */
      opacity: 0.8;            /* 半透明になる */
    }
    100% {
      transform: scale(1);     /* 元のサイズに戻る */
      opacity: 1;              /* 完全に透明にならない */
    }
  }

  .name_header {
    font-size: 1.25em;
    line-height: 2em;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.5);
    padding: 2em 0 1em;
    color: white;
}
.name_header h1{
    font-size: 1.8em;
}
.header_sns{
    display: flex;
    list-style: none;
    gap: 1.5em;
    justify-content: center;
    margin: 2.5em 0;
}


.header_buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 1em;
}
.header_buttons a{
    display: block;
}
.dropdown {
    position: relative;
  }
.dropdown-menu {
    display: none;
    padding-left: 1em;
}
.dropdown-menu li{
      width: 100%;
  }

  .dropdown.open .dropdown-menu {
    display: block;
}
ul{
    list-style: none;
}

@media (min-width: 600px) {
    .header_menu {
        margin: 0 auto;
        max-width: 450px;
    }
  }
@media (min-width: 850px) {
    .burger-menu {
        position: fixed;
        top: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 50px;
        height: 30px;
        cursor: pointer;
        z-index: 100;
    }
    .burger-menu.open .line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    
    .burger-menu.open .line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    #sparkle_container4 {
        position: relative;
        width: 100%;
        height: 140px; /* 親要素の高さ */
        overflow: hidden;
        background-image: url(../img/5.png);
        background-size: cover;
            background-position: center center;
    
      }
  }
@media (min-width: 1150px) {
    .name_header {
        font-size: 1.6em;
        line-height: 2em;
        text-align: center;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.5);
        padding: 2.5em 0 1em;
        color: white;
    }
    .header_menu li {
        margin: 25px 0;
        width: 50%;
    }
    .dropdown-menu li{
        width: 100%;
    }
  
    
    .header_menu li a {
        color: #fff;
        text-decoration: none;
        font-size: 26px;
        font-weight: bold;
        transition: color 0.3s ease;
    }
    .header_menu {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        text-align: center;
        display: flex;
        max-width: 600px;
        flex-wrap: wrap;
    }
    
  }

  .badge {
    position: relative;
    display: inline-block;
    width: 1.1em;
    height: 1em;
    font-size: 1.2em; /* 全体のスケール */
  }
  
  .badge::before {
    content: "⭐";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em; /* 星のサイズ */
    z-index: -4;
  }
  
  .badge span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.5em;
    font-weight: bold;
    z-index: 1;
    pointer-events: none;
  }