/* 全体の基本設定 */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #333;
}

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #111;
}

.logo {
  height: 50px;
}

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

.site-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ヒーローセクション */
.hero {
  text-align: center;
  padding: 180px 120px;
  background-image: url('img/contents/castle.jpeg');
  background-size: contain;
  background-position: center;
  color: white;
  position: relative;
  max-width: none;
  margin-bottom: 40px;
}

/* .hero h1 {
  font-size: 3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  word-break: keep-all;
}

.hero p {
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  word-break: keep-all;
  line-height: 1.5;
} */

/* --- ヒーローセクションのテキストアニメーション --- */

/* テキスト全体を囲む箱 */
.hero-text {
  background-color: rgba(0,0,0, 0.4);
  border-radius: 20px;
  font-size: 2rem; /* 文字の大きさを指定 */
  font-weight: bold; /* 文字を太くして緊迫感を出す */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* 文字の影を濃くする */
  line-height: 3; /* 行の高さを調整 */
}

/* 各行の初期設定 */
.hero-text div {
  opacity: 0; /* 最初は透明にして見えなくする */
  animation: fadeInUp 1s ease-out forwards; /* 下からふわっと表示するアニメーションを適用 */
}

/* 1行目のアニメーション */
.hero-text div:nth-child(1) {
  animation-delay: 0.5s; /* 0.5秒後に開始 */
}

/* 2行目のアニメーション（少し遅れて開始） */
.hero-text div:nth-child(2) {
  animation-delay: 1.8s; /* 1.8秒後に開始 */
}

/* 3行目のアニメーション（さらに遅れて開始） */
.hero-text div:nth-child(3) {
  animation-delay: 3.1s; /* 3.1秒後に開始 */
}

/* 4行目の企画名だけスタイルを調整 */
.hero-text .project-name {
  font-size: 1.5rem; /* 他の行より文字を小さく */
  font-weight: normal; /* 太字を解除 */
  margin-top: 1rem; /* 上の行との余白を少し確保 */
}

/* 4行目のアニメーション（さらに遅れて開始） */
.hero-text div:nth-child(4) {
  animation-delay: 4.4s; /* 4.4秒後に開始 */
}

/* --- アニメーションの動きを定義 --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px); /* 少し下の位置からスタート */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* 本来の位置に移動 */
  }
}

/* セクション共通 */
section {
  padding: 10px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* 見出し */
h2 {
  font-size: 2em;
  border-bottom: 3px solid #910000;
  /* padding-bottom: 8px; */
  /* margin-bottom: 20px; */
  text-align: center;
  max-width: 900px;
  margin: auto;
}

h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  color: #444;
  border-left: 6px solid #910000;
  padding-left: 12px;
}

/* h4 {
  font-size: 1.5rem;
  border-bottom: 3px solid #910000;
  padding-bottom: 8px;
  margin-bottom: 20px;
  text-align: center;
} */

/* purpose セクションの背景 */
.purpose p {
  /* background-color: #f5f5f5;
  border-radius: 16px; */
  /* padding: 20px 20px; */
  margin-top: 0; /* ← 上の余白だけを0にする */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  max-width: 900px;
  line-height: 2.5;
  text-align: center;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
}

.purpose h2{
  font-size: 2em;
  border-bottom: 3px solid #910000;
  max-width: 900px;
  margin: auto;
  text-align: center;
  margin-bottom: 2rem;
}

/* SNSリンク */
.sns-links {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
}

.sns-links a {
  text-decoration: none;
  color: #1da1f2;
}

/* ギャラリー */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.gallery img {
  width: 30%;
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 200px;
}

/* record セクションのリスト装飾 */
.record ul {
  list-style: none;
  padding: 0;
}

.record ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.record ul li::before {
  content: "🍎";
  position: absolute;
  left: 0;
  top: 0;
  /* color: #910000; */
  font-size: 0.9em;
}

/* ボタン */
.button {
  display: inline-block;
  background-color: #910000;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #C13584;
}

/* フッター */
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #fff;
}

/* 基本はヘッダー横並びメニュー */
nav.sidebar-nav {
  display: flex;
  gap: 20px;
}

/* ハンバーガーメニューはデフォルト非表示 */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* レスポンシブ設定 */
@media (max-width: 768px) {
  header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #111;
  }

  nav.sidebar-nav {
    position: fixed;
    top: 0;
    right: -250px; /* ← 左ではなく右に隠す */
    width: 250px;
    height: 100vh;
    background-color: #111;
    flex-direction: column;
    gap: 0;
    padding-top: 60px;
    transition: right 0.3s ease; /* ← rightのアニメーション */
    z-index: 1000;
  }

  nav.sidebar-nav.open {
    right: 0; /* ← 開いたときは右0に */
  }

  nav.sidebar-nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  nav.sidebar-nav ul li {
    border-bottom: 1px solid #111;
  }

  nav.sidebar-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 40px 20px; /* モバイル用に左右の余白を小さく */
  }

  .hero p {
    font-size: 1rem;
    word-break: keep-all; /* 日本語の途中改行を防ぐ */
    line-height: 1.6;
  }
}

/* メンバー一覧アイコン */
.member-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.member-icon {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.member-icon img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-icon:hover img {
  transform: scale(1.1);
}

/* メンバー詳細レイアウト */
.member-detail {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  opacity: 1;
  transition: opacity 0.5s ease;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-image img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.detail-text {
  flex: 1;
}

.detail-text h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.detail-text .role {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #555;
}

/* --- スクロールでふわっと表示 --- */
.up {
  opacity: 0; /* 最初は透明 */
  transform: translateY(50px); /* 少し下にずらす */
  transition: opacity 1s, transform 1s; /* 1秒かけて変化させる */
}

.up.is-show {
  opacity: 1; /* 透明じゃなくする */
  transform: translateY(0); /* 元の位置に戻す */
}

/* --- 左右交互のレイアウト --- */
/* --- 左右交互レイアウト（クラス名: top） --- */

/* 全体の箱 */
.bg_back {
  /* background-color: #111; */
  max-width: none;
}

.bg {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  /* margin-bottom: 3rem; */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* テキストの箱 */
.bg__text {
  flex: 2;
  border-radius: 16px;
  /* padding: 40px; */
  line-height: 4;
  color: black;
}

/* 画像の箱 (画像を中央に配置する設定を追加) */
.bg__image {
  flex: 1;
  display: flex;            /* ← 追加 */
  justify-content: center;  /* ← 追加 (左右中央) */
  align-items: center;      /* ← 追加 (上下中央) */
}

/* 画像がコンテナに収まるようにする (ここでサイズを調整) */
.bg__image img {
  width: 60%; /* ← 100%から80%などに変更 */
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 左右の並びを逆にする設定 */
.bg--reverse {
  flex-direction: row-reverse;
}


/* --- スマホ用の設定 (画面幅が768px以下の場合) --- */
@media (max-width: 768px) {
  .bg,
  .bg--reverse {
    flex-direction: column;
    max-width: 90%;
  }

  .bg__text {
    padding: 25px;
  }
}

/* 全体の箱 */
.media-block {
  display: flex; /* 画像とテキストを横並びにする */
  align-items: center; /* 上下の位置を中央揃えに */
  gap: 2rem; /* 画像とテキストの間の余白 */
  margin-bottom: 3rem; /* 次のブロックとの下の余白 */
  max-width: 900px;
  padding: 10px 20px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 3rem;
}

/* 画像とテキストの各ブロック */
.media-block__image {
  flex: 1;
}
.media-block__text {
  flex: 1; /* 幅を均等に分ける (50%ずつ) */
  line-height: 2;
}

/* 画像がコンテナに収まるようにする */
.media-block__image img {
  width: 80%;
  height: auto;
  display: block; /* 画像下の余分な余白を消す */
  border-radius: 8px; /* 角を少し丸くする */
}

/* テキストブロック内の見出し */
.media-block__text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}


/* 【重要】左右の並びを逆にする設定 */
.media-block--reverse {
  flex-direction: row-reverse;
}

.overview p{
  /* padding: 20px 20px; */
  margin-top: 0; /* ← 上の余白だけを0にする */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
  max-width: 900px;
  line-height: 3;
  text-align: center;
}

.overview h2 {
  font-size: 2em;
  border-bottom: 3px solid #910000;
  max-width: 900px;
  margin: auto;
  text-align: center;
  margin-bottom: 2rem;
}


/* --- スマホ用の設定 (画面幅が768px以下の場合) --- */
@media (max-width: 768px) {
  .media-block,
  .media-block--reverse {
    flex-direction: column; /* 横並びを縦並びに変更 */
  }
}


/* モバイル対応 */
@media (max-width: 768px) {
  .member-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .detail-image img {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .detail-text h3 {
    font-size: 1.6rem;
  }

  .detail-text .role {
    font-size: 1.1rem;
  }
}

/* 表 */
table {
  border: 2px solid rgb(140 140 140);
  margin: 0 auto;
  margin-top: 0;
  align-items: center;
}

th,
td {
  border: 1px solid rgb(160 160 160);
  text-align: center;
  padding: 10px 50px;

}

.cntr {
  text-align: center;
  max-width: 900px;
  margin: auto;
}