.darken-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* 初期は透明 */
    pointer-events: none; /* クリックやスクロールを妨げない */
    transition: background 0.2s ease-in-out;
    z-index: -1; /* 背景に配置してテキストを隠さないように */
}

.hero {
  position: relative; /* 子要素の絶対配置の基準 */
  /* その他の既存の hero のスタイル */
}

.hero {
    position: relative;
    width: 100%;
    height: 700px; /* 高さを拡大 */
    overflow: hidden;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 48px;
  font-weight: bold;
  white-space: nowrap;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5; /* 半透明度 */
  display: none; /* 初期状態では非表示 */
  z-index: 1000; /* 必要に応じてオーバーレイが他の要素よりも上に表示されるようにz-indexを設定 */
}

.steam-club-text {
  display: inline-block;
  transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

.steam-club-text:hover {
  transform: translate(3px, 4px) scale(1.05); /* ちょい右下＆膨らむ */
  text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8); /* 光る */
  color: #f7ff00; /* 黄色に変わる */
}

.highlight {
    background: linear-gradient(to bottom, transparent 50%, #f7ff005e 50%);
    padding: 0px 0;
    border-radius: 0;
}

.club-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    position: absolute;
    left: 10px; /* アイコンを左に寄せる */
    top: 10%;
    transform: translateY(-50%);
}

.scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  font-size: 16px;
  margin-bottom: 10px;
  color: white;
  text-shadow: none;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-left: 2px solid white; /* ボーダーの色を白に変更 */
  border-bottom: 2px solid white; /* ボーダーの色を白に変更 */
  transform: rotate(-45deg);
}

.scroll-arrow {
  /* ... (既存の矢印のスタイル) ... */
  animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(10px) rotate(-45deg);
  }
}

.mission-container {
  max-width: 1200px;
  margin: 20px; /* 上下の余白と中央寄せ */
  padding: 20px;
  text-align: left; /* 左寄せ */
}

.mission-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
}

.mission-text {
  font-size: 30px;
  font-weight: bold;
  line-height: 1.8; /* 行間を調整 */
  margin-bottom: 20px;
  color: #fff;
}

.mission-description {
  font-size: 18px;
  line-height: 1.6; /* 行間を調整 */
  margin-bottom: 30px;
  color: #fff;
}

.mission-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mission-link i {
  margin-left: 10px;
  font-size: 24px;
}

.styled-button {
  background-color: #000;
  color: #fff;
  font-family: 'ヒラギノ角ゴ W6 JIS2004', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 30px 10px 33px rgba(0, 0, 0, 0.5);
}

.styled-button:hover {
  background-color: #333;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
    transform: translate(10px, 10px);
}

/* .what-we-do の基本スタイル */
.what-we-do {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 70px 0 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.85) 71%, #000000 100%);
  transition: all 0.3s ease-in-out; /* すべてのプロパティを0.3秒で変化 */
  color: white;
}

/* .what-we-do 内のテキスト要素のスタイル */
.what-we-do .text {
  /* 必要に応じてテキストのスタイルを追加 */
  color: #333;
  word-spacing: 1px;
}

/* 画像コンテナのスタイル */
.what-we-do .image-container {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}





#activities {
    background: #f8f7f6;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    justify-content: flex-start;
    padding: 192px 48px;
    transition-delay: 400ms;
    transition-duration: 1200ms;
    width: 100%;
    max-width: 92.4%;
}

#activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px; /* セクションの余白を追加 */
}

#activities-header h2 {
    font-size: 24px;
    font-weight: bold;
}

#activities-header a {
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
}

#activities-header a i {
    font-size: 14px;
    margin-left: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* 透明度と移動のアニメーション */
}

.activity-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 画像とテキストを両端揃え */
    gap: 60px; /* 画像とテキストの間隔を調整 */
    max-width: 1400px; /* セクションの横幅を広げる */
    margin: 60px auto; /* セクション間の余白を調整 */
    padding: 0 40px; /* 画面端に寄りすぎないように */
}

.activity-section:nth-child(odd) {
    flex-direction: row; /* 奇数番目（1,3,5…）は画像が左、テキストが右 */
}

.activity-section:nth-child(even) {
    flex-direction: row-reverse !important;
}

.activity-image, .activity-video {
    width: 700.4px;
    height: 520px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.activity-text {
    flex-basis: 45%; /* 説明テキストの幅を調整 */
    text-align: left;
}

.activity-section:nth-child(even) .activity-text {
    text-align: left; /* 右寄せをなくし、統一感を出す */
}

.activity-section a.text {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333; /* 文字色 */
    font-weight: bold;
    padding: 15px 30px; /* ボタンのサイズ調整 */
    border-radius: 5px; /* 角を少し丸く */
    transition: all 0.3s ease; /* なめらかな動き */
    background: #f0f0f0; /* 背景色（お好みで変更） */
    border: 1px solid #ccc; /* ボーダー（お好みで） */
}

/* 矢印アイコンのスタイル */
.activity-section a.text i {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease; /* ホバー時の動きをなめらかに */
}

/* ホバー時のエフェクト */
.activity-section a.text:hover {
    background: #ddd; /* ホバー時の背景色（お好みで変更） */
    transform: scale(1.05); /* ちょっと拡大 */
}

.activity-section a.text:hover i {
    transform: translateX(5px); /* 矢印を右にスワイプ */
}

#activities-header a:hover {
    opacity: 0.3; /* 透明度を下げる */
}

#activities-header a:hover .icon {
    transform: translateX(10px); /* 矢印を右にスワイプ */
}






/* ４コマ劇場 */




.manga-section {
  text-align: center;
  background-color: #f8f7f6; /* 追加：背景を白に */
  padding-top: 100px;      /* コンテンツに余白を追加すると見やすいよ */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 軽く影も追加してカード感UP */
}

.manga-section h2 {
  margin-top: 0px;
  font-size: 2rem;
  margin-bottom: 100px;
  color: #333;
}

.manga-banner {
  display: inline-block;
  width: 320px;
  position: relative; /* バッジを重ねるため */
}

.manga-banner img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
  transform: scale(1);
}

.manga-banner:hover img {
  transform: scale(1.2); /* ホバー時に拡大 */
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.4);
}

.manga-banner img:active {
  transform: scale(0.7); /* クリック時に少し縮む */
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.manga-update-badge {
  position: absolute;
  top: -50px;    /* ←ここをマイナスにして“少しだけ重ねる” */
  right: -20px;  /* ←横にも少しはみ出すと吹き出し感UP */
  background-color: #ff4757;
  color: white;
  font-size: 20px;
  padding: 13px 15px;
  font-weight: bold;
  box-shadow: 1px 2px 5px rgba(0,0,0,0.2);
  font-family: "Arial", sans-serif;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 60% 90%, 40% 100%, 40% 90%, 0 90%);
  z-index: 2;
  pointer-events: none;
}






/* 新着ニュース */






.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    align-content: flex-start;
    align-items: flex-start;
    height: auto;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    border: solid 0px #000;
    border-bottom: solid 1px #EEEEEE;
    border-radius: 10px;
    justify-content: flex-start;
    margin: 0px 12px 24px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 24px;
    width: calc(90% - 24px);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    border-radius: 10px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: white;
    background-color: #007bff;
}

.news-title {
    text-align: left;
    font-size: 18px;
    margin: 10px 0;
}

.news-date {
    font-size: 14px;
    color: gray;
}

.news-banner {
    position: relative;
    width: 100%;
    max-height: 250px;
    overflow: hidden;
    text-align: center;
}

.news-banner img {
    width: 100%;
    height: auto;
    filter: brightness(0.7);
}

#topNewsList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

#news {
    background: #f8f7f6;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    justify-content: flex-start;
    padding: 100px 48px;
    padding-bottom: 50px;
    transition-delay: 400ms;
    transition-duration: 1200ms;
    width: 100%;
    max-width: 92.4%;
}

#news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

#news-header a {
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
}

#news-header a i {
    font-size: 14px;
    margin-left: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#news-header a:hover {
    opacity: 0.3;
}

#news-header a:hover .icon {
    transform: translateX(10px);
}





/* ---------------------------------------------------------------------------------------------------------------------------------------------- */





@media (max-width: 768px) {
  .hero {
    height: 400px; /* ヒーローエリアを少し縮める */
  }

  .hero-text {
    font-size: 28px;
  }

  .steam-club-text {
    font-size: 20px;
  }

  .mission-text {
    font-size: 22px;
  }

  .mission-description {
    font-size: 16px;
  }

  .activity-section {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .activity-image, .activity-video {
    width: 100%;
    height: auto;
  }

  .news-card {
    width: 100%;
    padding: 16px;
  }

  #topNewsList {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .manga-banner {
    width: 90%;
  }
}



@media (max-width: 480px) {
  .hero-text {
    font-size: 22px;
  }

  .steam-club-text {
    font-size: 18px;
  }

  .mission-text {
    font-size: 20px;
  }

  .scroll-text {
    font-size: 14px;
  }
}