@charset "UTF-8";

html {
  font-size: 10px;
}
h1 {
  font-size: 2rem;
  margin: 0;
  padding: 0;
}
h2 {
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
    sans-serif;
  line-height: 1.7;
  color: #fffe99;
  min-height: 100vh;
  position: relative;
}

html,
body {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}
div {
  box-sizing: border-box;
}

.align-center {
  text-align: center;
}

.main-text {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.exp-text {
  text-align: left;
  margin-left: 20px;
}
.font-english {
  font-family: "Philosopher", sans-serif;
  font-weight: normal;
}

.Noto-serif-jp {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: medium;
  font-style: normal;
  color: #fffe99;
}

.page-header {
  background-color: #330000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* 要素間の余白を調整 */
  padding: 20px 0;
}

.page-header h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 1.5rem;
  list-style: none;
  background-color: #330000;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  width: auto; /* 画像サイズに合わせて調整 */
  height: 59px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  line-height: 40px;
  text-align: center;
  color: #fffe99;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s;
}
.main-nav ul {
  list-style: none;
  padding-left: 50px;
}

.logo_header {
  display: flex;
  justify-content: center;
}

#header-logo1 {
  width: 181px;
  height: 92px;
  font-size: 1.2rem;
  z-index: 1;
}
#header-logo1 a {
  text-decoration: none;
  color: #fffe99;
}

main {
  background-color: #330000;
  margin: 0 auto;
  padding: 20px;
  color: #fffe99;
}

footer {
  background-color: #330000;
  color: #fffe99;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  margin-top: 0px;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 100;
  height: 50px; /* 高さを明示的に指定 */
}

.carousel {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 45s linear infinite;
}

.carousel-track img {
  height: 150px; /* お好みで調整 */
  margin-right: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.main-visual-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.large-text {
  font-size: 1.4em;
  font-weight: bold;
}

/* 団員募集表のスタイル */
.member-table {
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}

.member-table th {
  font-size: 1.5em;
  font-weight: bold;
  padding: 8px;
}

.member-table td {
  padding: 8px;
  word-break: break-word;
}

/* 列幅指定 */
.member-table th:nth-child(1),
.member-table td:nth-child(1) {
  width: 25%;
}

.member-table th:nth-child(2),
.member-table td:nth-child(2) {
  width: 20%;
}

.member-table th:nth-child(3),
.member-table td:nth-child(3) {
  width: auto;
}

/* ハンバーガーメニューのスタイル */
.hamburger {
  display: block;
  width: 60px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 200;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fffe99;
  margin: 8px 0;
  border-radius: 2px;
  transition: 0.4s;
}
/* メニュー初期状態は非表示 */
.main-nav {
  display: none;
  position: static;
  width: auto;
  background: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
}
.main-nav.active {
  display: block;
  position: absolute; /* 親要素を基準に配置 */
  top: 100%; /* ハンバーガーメニューの下に配置 */
  left: 0;
  width: 100%; /* 親要素の幅いっぱいに広げる */
  background-color: #330000; /* 背景色を設定 */
  z-index: 999; /* この行を追加 */
}
/* YouTube埋め込みのレスポンシブ対応 */
.youtube-iframe {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
.youtube-iframe iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
  .main-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .exp-text {
    text-align: left;
    margin-left: 35px;
  }
  .logo_header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
  #header-logo1 {
    text-align: center;
    width: 362px;
    height: 200px;
    font-size: 1.5rem;
    margin-left: 5%;
  }
  #header-logo1 a {
    text-decoration: none;
    color: #fffe99;
  }
  .hamburger {
    display: none;
  }
  .main-nav {
    display: flex;
    position: static; /* ← 絶対配置を解除 */
    width: auto; /* ← 横幅を自動に */
    background: none; /* ← 背景色もリセット */
    padding: 0;
    margin: 0 auto;
    justify-content: center;
  }
  .main-nav ul {
    display: flex !important;
    position: static;
    background: none;
    gap: 3rem;
  }
  .main-nav.active {
    display: block;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
  .main-text {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .exp-text {
    text-align: left;
    margin-left: 50px;
  }
  .logo_header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
  #header-logo1 {
    text-align: center;
    width: 362px;
    height: 200px;
    font-size: 1.1rem;
    margin-left: 10%;
  }
  #header-logo1 a {
    text-decoration: none;
    color: #fffe99;
  }
  /* 通常時の画像 */
  .nav-about {
    width: 100px; /* 画像サイズに合わせて調整 */
  }
  .nav-concert {
    width: 100px; /* 画像サイズに合わせて調整 */
  }
  /* ホバー時の画像 */
  .nav-about:hover {
    color: chocolate;
  }
  .nav-concert:hover {
    color: chocolate;
  }
  .nav-fb img {
    width: 50px; /* 画像サイズに合わせて調整 */
    transition: filter 0.3s;
    margin-top: 15px;
  }
  .nav-fb:hover img {
    filter: blur(5px);
  }
  .nav-is img {
    width: 50px; /* 画像サイズに合わせて調整 */
    transition: filter 0.3s;
    margin-top: 15px;
  }
  .nav-is:hover img {
    filter: blur(5px);
  }
  .nav-yt img {
    width: 50px; /* 画像サイズに合わせて調整 */
    transition: filter 0.3s;
    margin-top: 15px;
  }
  .nav-yt:hover img {
    filter: blur(5px);
  }
  .nav-link img {
    width: 100px; /* 画像サイズに合わせて調整 */
    transition: filter 0.3s;
  }
  .nav-link:hover img {
    filter: brightness(2);
  }
  .hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 200;
    margin-left: 1rem;
  }
  .hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fffe99;
    margin: 8px 0;
    border-radius: 2px;
    transition: 0.4s;
  }

  /* メニュー初期状態は非表示 */
  .main-nav {
    display: flex;
    position: static; /* ← 絶対配置を解除 */
    width: auto; /* ← 横幅を自動に */
    background: none; /* ← 背景色もリセット */
    padding: 0;
    margin: 0 auto;
    justify-content: center;
  }
  .main-nav ul {
    display: flex !important;
    position: static;
    background: none;
    gap: 3rem;
  }
  .main-nav.active {
    display: block;
  }
  .conimg {
    width: 300px;
    display: block;
    margin: auto;
  }
}
