:root {
  --primary-color: #4285F4;
  --secondary-color: #34A853;    
  --accent-color: #FBBC05;      
  --dark-accent: #EA4335;        
  --background-light: #F8F9FA;   
  --text-primary: #202124;      
  --text-secondary: #5F6368;     
}
body {
  background-color: var(--background-light);
  color: var(--text-primary);
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  margin-bottom: 0;
  padding-top: 60px; 
  line-height: 1.6;
}
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important; /* 少し透明度を下げる */
  backdrop-filter: blur(15px); /* より強いぼかし効果 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 繊細な影を追加 */
  position: fixed !important;
  top: 0;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 1030;
  padding: 0.8rem 1rem;
}
.navbar .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  position: relative;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
.navbar .navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.5rem;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.navbar .nav-link:hover::after {
  width: 100%;
}
.navbar .nav-link:hover, .navbar .navbar-brand:hover {
  color: var(--primary-color) !important;
}
.navbar-hidden {
  transform: translateY(-100%);
}
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease;
}
.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}
.hero-btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: #3367d6;
  border-color: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.navbar-visible {
  transform: translateY(0);
}
.copy-block {
  cursor: pointer;
}
.text-white {
  color: #ffffff !important;
}
.text-center {
  text-align: center !important;
}
.modern-footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
  padding: 0;
  margin-top: 3rem;
}
.footer-content {
  padding: 3rem 0;
}
.footer-heading {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}
.footer-description {
  color: #b3b3b3;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.member-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 18px;
}
.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}
.social-icon[href*="x.com"]:hover,
.social-icon[href*="twitter.com"]:hover {
  background-color: #1da1f2;
}
.social-icon[href*="youtube.com"]:hover {
  background-color: #ff0000;
}
.social-icon[href*="github.com"]:hover {
  background-color: #333;
}
.social-icon[href*="instagram.com"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-icon[href*="discord"]:hover {
  background-color: #5865f2;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: #b3b3b3;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  text-decoration: none;
}
.server-address {
  background-color: #333;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 600;
}
.copy-block {
  display: block;
  color: #fff;
  background-color: transparent;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
}
.copy-tooltip {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.8);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-block:hover + .copy-tooltip {
  opacity: 1;
}
.footer-bottom {
  background-color: #111;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.divider-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: block;
}
.divider-dot:nth-child(2) {
  width: 12px;
  height: 12px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.features-section {
  padding: 5rem 0;
  background-color: #fff;
}
.features-cards {
  margin-top: 2rem;
}
.feature-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(66, 133, 244, 0.2);
  border-bottom: 3px solid var(--primary-color);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* コンテンツセクション */
.content-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.content-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  height: 350px;
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.content-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-card:hover .content-img img {
  transform: scale(1.1);
}

.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.content-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  z-index: 1;
  transition: all 0.3s ease;
}

.content-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.content-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transform: translateY(20px);
  transition: all 0.3s ease;
  opacity: 0;
}

.content-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.content-btn:hover {
  background-color: #3367d6;
  color: white;
}

.content-card:hover .content-description,
.content-card:hover .content-btn {
  transform: translateY(0);
  opacity: 1;
}

/* 最新情報セクション */
.news-section {
  padding: 5rem 0;
  background-color: #fff;
}

.news-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.news-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 120px;
  width: 3px;
  background-color: #e0e0e0;
  z-index: 1;
}

.news-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 160px;
  z-index: 2;
}

.news-date {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 3;
}

.news-date .day {
  font-size: 2rem;
  line-height: 1;
}

.news-date .month {
  font-size: 1rem;
  margin-top: 5px;
}

.news-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.news-item:hover .news-content {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.news-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.news-link::after {
  content: '→';
  opacity: 0;
  margin-left: -10px;
  transition: all 0.3s ease;
  display: inline-block;
}

.news-link:hover::after {
  opacity: 1;
  margin-left: 5px;
}

@media (max-width: 767px) {
  .news-timeline::before {
    left: 30px;
  }
  
  .news-item {
    padding-left: 80px;
    margin-bottom: 2.5rem;
  }
  
  .news-date {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    top: 10px;
    left: 0;
  }
  
  .news-date .day {
    font-size: 1.5rem;
  }
  
  .news-date .month {
    font-size: 0.8rem;
  }
}

/* カードのスタイル */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 300px; /* 必要に応じて調整 */
}

/* フッターを中央揃えにする */
footer {
  text-align: center;
  padding: 20px 0 0; /* 下部のパディングを0に修正 */
  background-color: #f8f9fa; /* 背景色を薄いグレーに設定 */
  color: #000; /* テキスト色を黒に設定 */
  width: 100%; /* 親要素の幅いっぱいに広げる */
  margin-bottom: 0; /* フッターの下部マージンを0に設定 */
  position: relative; /* 位置関係を確立 */
}

/* フッター内の段落にマージンをつけない */
footer p {
  margin-bottom: 0;
}

/* 広告コンテナのスタイル */
.ad-container {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  line-height: 0; /* 行間を0に設定 */
}

/* 広告のスタイル */
.adsbygoogle {
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  line-height: 0;
}

/* トップ画像のスタイル調整 */
.top-image-container {
  position: relative;
  min-height: 200px; /* 必要に応じて調整 */
  overflow: hidden; /* 画像がはみ出さないように */
}

.top-image {
  object-fit: cover; /* 画像を親要素にフィットさせる */
  width: 100%; /* 横幅を100%に設定 */
  height: 100%; /* 高さも100%に設定 */
  display: block; /* 画像の余計な隙間を防ぐ */
  object-position: center center; /* 画像の表示位置を中央に調整 */
}

/* お知らせカードのスタイル */
.card-title {
  font-weight: bold; /* 太字 */
  font-family: 'Arial', 'Helvetica', 'sans-serif'; /* ゴシック体 */
}

.card-text {
  font-weight: bold; /* 太字 */
  font-family: 'Arial', 'Helvetica', 'sans-serif'; /* ゴシック体 */
  font-size: 1rem;
}

.text-end {
  text-align: right !important;
}

/* 入り方入り方カードのスタイル */
.join-card {
  min-height: 150px; /* 必要に応じて調整 */
  padding: 10px 15px; /* 内側の余白を調整 */
}

.join-card .card-body {
  padding: 10px; /* カード内の余白をさらに調整 */
}

/* お知らせカードの緑の縁取り */
.card.notice {
  border: 2px solid #28a745; /* 緑色の縁取り */
  border-radius: 0.5rem; /* 角を丸くする */
}

/* トースト通知のスタイル */
#toast {
  animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
  0% {
      opacity: 0;
      transform: translateY(100%);
  }
  10%, 90% {
      opacity: 1;
      transform: translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateY(100%);
  }
}

/* スマホ表示以下の場合に適用 */
@media (max-width: 991.98px) { /* Bootstrapのlgブレイクポイント以下 */
  .navbar-collapse.show .navbar-nav.justify-content-end {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
    margin-left: 0 !important;
  }

  .navbar-collapse.show .navbar-nav.justify-content-end .nav-item {
    margin-left: 5px; /* アイコン同士の左右の余白 */
    margin-right: 5px;
    margin-bottom: 0; /* アイコン間の縦の余白をなくす */
  }

  .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important; /* 背景を白の半透明に */
    backdrop-filter: blur(10px); /* 背景をぼかす */
  }

  body {
    padding-top: 70px; /* スマホでは少し多めのパディング */
  }
}

/* カード内の画像をスクエアにする */
.square-image {
  width: 100%; /* カードの幅に合わせる */
  height: 150px; /* 高さを固定 */
  object-fit: cover; /* 画像を中央にトリミング */
  border-radius: 8px; /* 角を少し丸める */
}

#fixed-ad {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1050;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 5px;
  display: none; /* 必要に応じて広告表示のための条件を設定 */
}

/* スマホ表示時に広告を表示する場合 */
@media (max-width: 768px) {
  #fixed-ad {
    display: block; /* モバイルでのみ表示 */
  }
}

/* スクロールアニメーション用スタイル */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-element.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.news-item:nth-child(2) {
  transition-delay: 0.2s;
}

.news-item:nth-child(3) {
  transition-delay: 0.4s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* 疲れた */

/* ローディング画面のスタイル */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3367d6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* ナビゲーションバーより前面に */
  transition: all 0.8s ease-in-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 分割アニメーション */
.split-screen-top,
.split-screen-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3367d6 100%);
  z-index: 9998;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: none; /* 初期状態では非表示 */
}

.split-screen-top {
  top: 0;
  transform: translateY(0);
}

.split-screen-bottom {
  bottom: 0;
  transform: translateY(0);
}

.split-screen-top.animate {
  transform: translateY(-100%);
}

.split-screen-bottom.animate {
  transform: translateY(100%);
}

/* ローディングアニメーション */
.loading-logo {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease forwards, glow 2s ease-in-out infinite alternate;
  opacity: 0;
}

.loading-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: white;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.5px;
  opacity: 0;
  animation: fadeInDown 1s ease 0.3s forwards;
}

@keyframes glow {
  from {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.8);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モダンなローディングスピナー */
.loading-spinner {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.6s forwards;
}

.loading-spinner::before,
.loading-spinner::after {
  content: '';
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.loading-spinner::before {
  animation-delay: -0.32s;
}

.loading-spinner::after {
  animation-delay: 0.32s;
}

.loading-spinner span {
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ローディングテキスト */
.loading-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.8s forwards, fadePulse 1.5s ease-in-out 0.8s infinite;
}

@keyframes fadePulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* プログレスバー */
.loading-progress {
  width: 280px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.5s ease 1s forwards;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
  border-radius: 3px;
  width: 0%;
  animation: progressAnim 2s ease-out forwards;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progressAnim {
  0% { width: 0%; }
  50% { width: 70%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

/* メインコンテンツの初期状態 */
.main-content {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.main-content.show {
  opacity: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .loading-logo {
    font-size: 2rem;
  }
  
  .loading-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .loading-progress {
    width: 250px;
  }
}

/* ハンバーガーメニューのタッチ対応改善 */
.navbar-toggler {
  border: none !important;
  padding: 8px 12px;
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 24px;
  height: 24px;
}

/* モバイルでのタッチエリアを拡大 */
@media (max-width: 991.98px) {
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 10px;
    border-radius: 8px;
    padding: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* タッチデバイス用の改善 */
@media (hover: none) and (pointer: coarse) {
  .navbar-toggler {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px;
  }
  
  .navbar-toggler:active {
    background-color: rgba(0, 0, 0, 0.2) !important;
  }
  
  .nav-link:active {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px;
  }
}

/* お知らせセクションのスタイル調整 */
#news-section {
  margin-bottom: 50px; /* 通常のマージンに調整 */
}

/* 情報一覧ページのスタイル */
.page-header {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3367d6 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="white" fill-opacity="0.05" width="50" height="50" x="0" y="0" /><rect fill="white" fill-opacity="0.05" width="50" height="50" x="50" y="50" /></svg>');
  opacity: 0.4;
}

.notification-icon {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card-inner {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.info-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.card-icon-bg {
  background-color: #f5f5f5;
  color: var(--primary-color);
}

.seiti-bg {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--secondary-color);
}

.event-bg {
  background-color: rgba(251, 188, 5, 0.1);
  color: var(--accent-color);
}

.card-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-img-wrapper {
  height: 180px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.info-card-inner:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.empty-state {
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 3rem 0;
  }
  
  .notification-icon {
    width: 80px;
    height: 80px;
    margin-top: 1rem;
  }
  
  .notification-icon i {
    font-size: 2rem !important;
  }
}

/* 応募フォームのスタイル */
/* 余白を完全に削除するスタイル */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin-bottom: 0;
}

.container-fluid.px-0 {
    max-width: 100%;
    width: 100vw;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0;
    margin-left: 0;
}

.row.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.col-12.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 1200px) {
    .container-fluid:not(.px-0) {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* メンバーページのスタイル */
/* メンバーカードのスタイリング */
.member-card {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.member-banner {
    height: 80px;
    position: relative;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), #5a6acf);
}

.bg-gradient-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #4ad878);
}

.member-avatar {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 聖地ページのスタイル */
/* 聖地ページ専用のスタイル */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 聖地ページ用のオーバーレイ - 茶色のグラデーション */
.seiti-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.7) 0%, 
        rgba(160, 82, 45, 0.6) 50%, 
        rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* ルールアイテムのスタイル */
.rules-container {
  margin: 20px 0;
}

.rule-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.rule-item:hover {
  transform: translateX(5px);
  background: #f0f4ff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.rule-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
  flex-shrink: 0;
}

.rule-text {
  font-size: 1rem;
  font-weight: 500;
}

/* ホームページのスタイル */
/* スマホ表示時にh1タグを非表示にする */
@media (max-width: 767px) {
    h1 {
        display: none;
    }
}

/* 特別なニュースアイテムのハイライト */
.highlight-news {
    position: relative;
    background-color: rgba(66, 133, 244, 0.05);
    transition: all 0.3s ease;
}

.highlight-news .news-content {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(66, 133, 244, 0.05);
}

.highlight-news:hover {
    transform: translateY(-5px);
}

.highlight-news .news-content:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-news .news-title {
    color: var(--primary-color);
}

.highlight-news .news-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.highlight-news .news-link:hover {
    transform: translateX(5px);
}

/* 参加方法ページのスタイル */
/* ページ全体の最小高さを確保 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* 規約ポップアップのスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ヘルプページのスタイル */
/* マインクラフトキューブの装飾 */
.minecraft-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* ルールページのスタイル */
/* Modern Table Styling */
.modern-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.modern-table thead {
    background: linear-gradient(45deg, var(--primary-color), #5a6acf);
}

.modern-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
}

.modern-table td {
    padding: 15px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background-color: rgba(66, 133, 244, 0.05);
    transform: scale(1.005);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}
/* 役割アイコン */
.role-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* カード装飾 */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* フォームスタイリング */
.apply-form-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.form-control, .form-select {
    padding: 0.75rem;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(66, 133, 244, 0.25);
}

/* チェックボックススタイル */
.role-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-check-input.position-checkbox.is-invalid {
    border-color: #dc3545;
}

/* howtojoin.php 専用スタイル */
.join-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.play-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.05) 0%, rgba(66, 133, 244, 0.08) 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234285f4' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -100 !important;
    pointer-events: none !important;
}

.light-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -100 !important;
    animation: pulse 8s infinite alternate;
    pointer-events: none !important;
}

.light-effect-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.light-effect-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.minecraft-decoration-top, 
.minecraft-decoration-left, 
.minecraft-decoration-right {
    position: absolute;
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: -100 !important;
    pointer-events: none !important;
}

.minecraft-decoration-top {
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--primary-color), var(--primary-color) 10px, transparent 10px, transparent 20px);
}

.minecraft-decoration-left {
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: repeating-linear-gradient(0deg, var(--secondary-color), var(--secondary-color) 10px, transparent 10px, transparent 20px);
}

.minecraft-decoration-right {
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: repeating-linear-gradient(0deg, var(--secondary-color), var(--secondary-color) 10px, transparent 10px, transparent 20px);
}

.join-header {
    margin-bottom: 50px;
    position: relative;
}

.play-now-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
    position: relative;
    z-index: 5;
}

.play-now-icon i {
    color: white;
    font-size: 30px;
    margin-left: 5px;
}

.play-now-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(66, 133, 244, 0.6);
    animation: pulse-ring 2s linear infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-glow:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 1.5s ease;
    z-index: -1;
}

.btn-glow:hover:after {
    left: 100%;
    transition: all 1.5s ease;
}

.server-address-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
}

.server-address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.3);
}

.server-address-highlight {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.server-address-card:hover .server-address-highlight {
    opacity: 1;
}

.server-platform {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.server-platform i {
    color: var(--primary-color);
}

.server-address-container {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.copy-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.copy-hint i {
    margin-right: 5px;
}

.server-address-card:hover .server-address-container {
    background: #eef2ff;
}

.join-features .feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.join-features .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.join-features .feature-card:hover .feature-glow {
    opacity: 1;
    transform: scale(1.5);
}

.join-features .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.join-features .feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
}

.join-features .feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.join-features .feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* サーバー情報セクション */
#serverInfo {
    min-height: 70vh;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* トーストスタイル */
.modern-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-width: 90%;
    overflow: hidden;
    display: none;
    z-index: 1060;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.toast-icon {
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.toast-message {
    flex-grow: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.toast-progress {
    height: 3px;
    background: var(--secondary-color);
    width: 0%;
}

/* マインクラフトキューブアニメーション */
.minecraft-cubes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.minecraft-cube {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    opacity: 0.05;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(30px) rotate(270deg);
    }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .play-now-icon {
        width: 60px;
        height: 60px;
    }
    
    .play-now-icon i {
        font-size: 24px;
    }
    
    .join-features .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .minecraft-cube {
        opacity: 0.025;
    }
}

/* seiti.php 専用スタイル */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-section {
    background: #f8f9fa;
}

.gallery-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content h5 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay-content p {
    font-size: 0.9rem;
    line-height: 1.3;
}

.info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.info-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.wiki-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.z-index-2 {
    z-index: 2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gallery-image-wrapper {
        height: 250px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
.join-methods-container {
    max-width: 1200px;
    margin: 0 auto;
}

.server-address {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.platform-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.platform-card .platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    color: white;
}

.java-card .platform-icon {
    background: linear-gradient(135deg, #f89b29 0%, #ff6c23 100%);
}

.bedrock-card .platform-icon {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.console-card .platform-icon {
    background: linear-gradient(135deg, #ab47bc 0%, #7b1fa2 100%);
}

.platform-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.platform-action {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.platform-card:hover .platform-action {
    color: var(--secondary-color);
}

/* モーダル/ポップアップスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.slide-container {
    text-align: center;
}

.slide-image {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.slide-counter {
    color: var(--text-secondary);
    font-weight: 500;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
}

.btn-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .platform-card {
        padding: 1.5rem;
    }
    
    .platform-card .platform-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .slide-image {
        max-height: 50vh;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 2025年9月29日 - キャッシュクリアリング用強制スタイル */
body.cache-cleared {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif !important;
}

/* 強制的に新しいnavbarスタイルを適用 */
nav.navbar.navbar-expand-lg {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    padding: 0.8rem 1rem !important;
}

nav.navbar.navbar-expand-lg .navbar-brand {
    color: #4285F4 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

nav.navbar.navbar-expand-lg .nav-link {
    color: #202124 !important;
    font-weight: 500 !important;
    margin: 0 0.5rem !important;
}

nav.navbar.navbar-expand-lg .nav-link:hover {
    color: #4285F4 !important;
}

/* 強制的にfooterスタイルを適用 */
footer.modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: #ffffff !important;
    margin-top: auto !important;
}

footer.modern-footer .footer-heading {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

footer.modern-footer .footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

footer.modern-footer .footer-links a:hover {
    color: #4285F4 !important;
}

body::before {
    content: "CSS Updated: 2025-09-29 v2.0";
    position: fixed;
    top: -100px;
    left: -100px;
    z-index: -1;
    opacity: 0;
}

#agreementModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 1rem;
}

#agreementModal .modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 2rem;
    margin: auto;
}

#agreementModal .rules-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    margin: 1.5rem 0;
}

#agreementModal .rules-container::-webkit-scrollbar {
    width: 6px;
}

#agreementModal .rules-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#agreementModal .rules-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

#agreementModal .rules-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

#agreementModal .scroll-indicator {
    display: block;
    opacity: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (max-width: 768px) {
    #agreementModal .modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    #agreementModal .rules-container {
        max-height: 40vh;
    }
}

#serverInfo .btn,
#serverInfo .server-address-card,
#serverInfo .join-header a {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

#serverInfo .join-container {
    position: relative !important;
    z-index: 500 !important;
}

#serverInfo .join-header {
    position: relative !important;
    z-index: 1000 !important;
}

.server-address-card {
    cursor: pointer !important;
    position: relative !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
}

.server-address-card:hover {
    transform: translateY(-2px) !important;
    z-index: 1002 !important;
}


.btn-glow {
    position: relative !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
}

.btn-glow:hover {
    z-index: 1002 !important;
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.5) !important;
}
#toast.modern-toast {
    z-index: 9999;
    position: fixed;
}


