header a, header a:hover, header a:visited {
  color: white; 
  text-decoration: none;
}

summary {
  display: block;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details {
  display: block;
}

/* スクロールトップボタン */
#click_warp {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#click_warp:hover {
  background-color: var(--accent-color);
  transform: scale(1.05);
}

/* メニュー関連スタイル */
/* 新しいトップヘッダー */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.451);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
}

.top_logo {
  height: 40px !important;
  height: auto;
}

/* PC用メニュー */
.desktop-menu {
  display: flex;
}

.desktop-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu li {
  margin: 0 15px;
}


/* PC用検索フォーム */
.desktop-search {
  display: flex;
  border: solid 2px #26ff00;
  border-radius: 50px;
  height: 40px;
  overflow: hidden;
}

#sbox1 {
  width: 200px;
  background-color: black;
  color: white;
  border: none;
  outline: none;
  padding: 0 15px;
}

#sbtn1 {
  width: 70px;
  background-color: rgba(127, 191, 255, 0.3);
  border: none;
  color: white;
  cursor: pointer;
}

#sbtn1:hover {
  background-color: #92dbff;
}



/* オーバーレイ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.451);
  z-index: 997;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
  visibility: visible;
  opacity: 1;
}

/* メインコンテンツ */
.content {
  margin-top: 60px;
  padding: 20px;
}

main.content {
  margin-top: 60px;
  padding-top: 20px;
}

/* menu.cssからの追加スタイル */
.menu-logo {
  padding: 10px;
  display: flex;
  align-items: center;
}

.menu-logo img {
  max-height: 40px;
  width: auto;
}

/* 検索コンテナの追加スタイル */
.menu-search {
  display: flex;
  align-items: center;
  background-color: #555;
  border-radius: 10px;
  padding: 5px;
}

.menu-search input {
  flex: 1;
  padding: 5px;
  border: none;
  border-radius: 5px;
  outline: none;
}

.menu-search button {
  padding: 5px 10px;
  margin-left: 5px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.menu-search button:hover {
  background-color: #777;
}

.top_menu {
  z-index: 1000;
}

.top_info {
  color: white;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", sans-serif;
  font-size: 25px;
}

/* お知らせバナー */
.notice {
  box-sizing: border-box;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 998;
  display: none;
  justify-content: center;
  pointer-events: auto;
}

.notice-text a , .notice-text a:visited {
  color: #fff;
  text-decoration: underline;
}

.notice .notice-inner {
  text-align: center;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 0px 0px 12px 12px;
  padding-left: 12px;
  padding-right: 12px;
}

.notice .notice-inner,
.notice p {
  background-color: #4a4646a9;
}

.notice .notice-text {
  display: block;
  width: 100%;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  padding: 8px 12px;
  transition: opacity 0.28s ease;
  opacity: 1;
  pointer-events: auto;
}

/* 表示トリガークラス */
.notice.show {
  display: flex;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
  .hamburger-menu, .mobile-menu-container , .menu-overlay {
    display: none;
  }
  
  .desktop-menu, .desktop-search {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .desktop-menu, .desktop-search {
    display: none !important;
  }
  
  .top-header {
    padding: 0 15px;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block !important;
    cursor: pointer;
    z-index: 1001;
  }
  
  .logo-container {
    flex: 1;
    justify-content: flex-start;
  }
  
  .mobile-menu-container {
    display: none;
    position: fixed;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.451);
    z-index: 998;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    padding: 2px 0; /* 上下 2px */
  }

  .mobile-menu-container.open {
    display: block;
    max-height: 100vh; /* 子要素の高さまで自動で伸びる */
  }

/* ハンバーガーメニュー */
  .hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger-icon {
    width: 30px;
    height: 25px;
    position: relative;
  }

  .hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
  }

  .hamburger-icon span:nth-child(1) {
    top: 0px;
  }

  .hamburger-icon span:nth-child(2) {
    top: 20px;
  }

  .hamburger-icon.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
  }

  .hamburger-icon.open span:nth-child(2) {
    top: 10px;
    transform: rotate(-135deg);
  }

  /* スマホ用検索フォーム */
  .mobile-search-form-container {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-search-form {
    display: flex;
    width: 80%;
    margin: 0 auto;
  }

  .mobile-search-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #26ff00;
    border-radius: 25px 0 0 25px;
    padding: 10px 15px;
    color: white;
    outline: none;
  }

  .mobile-search-button {
    background-color: rgba(38, 255, 0, 0.3);
    border: 2px solid #26ff00;
    border-left: none;
    border-radius: 0 25px 25px 0;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
  }

  .mobile-search-button:hover {
    background-color: rgba(38, 255, 0, 0.5);
  }




  .mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgb(28, 28, 30);
    width: 90%;
    border-radius: 20px;
    margin: 20px auto;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu li {
    height: 60px;
    line-height: 60px;
    text-align: center;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-menu-container.open .mobile-menu li {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-container.open .mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu-container.open .mobile-menu li:nth-child(2) { transition-delay: 0.2s; }
  .mobile-menu-container.open .mobile-menu li:nth-child(3) { transition-delay: 0.3s; }
  .mobile-menu-container.open .mobile-menu li:nth-child(4) { transition-delay: 0.4s; }

}

@media screen and (max-width: 767px) {
  .top-header {
    padding: 0 10px;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  /* フッターをモバイルメニュー表示時に確実に非表示にする */
  body.menu-open .site-footer,
  body.menu-open .ls_s {
    visibility: hidden;
  }

  .notice {
    top: 56px;
  }

  .notice .notice-inner,
  .notice p {
    font-size: 16px;
    height: auto !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .notice .notice-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    text-align: center;
    padding: 8px 12px;
  }
}