/* ローディング画面 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.loading-text {
  color: #0cf;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #0cf, #00ff88);
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 全体設定 */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ヘッダー */
header {
  background-color: rgba(17, 17, 17, 0.95);
  padding: 1rem;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 20px rgba(0, 204, 255, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 8px;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  position: absolute;
  left: 400px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  margin-left: 0;
  z-index: 10;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #0cf;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav a {
  color: #0cf;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

nav a:hover {
  background-color: rgba(0, 204, 255, 0.1);
  transform: translateY(-2px);
}

/* SNSリンク */
.social-links {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.social-links a {
  color: #0cf;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.social-links a:hover {
  color: #00ff88;
  transform: scale(1.2);
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/1920x1080/?cyber,esports') center/cover no-repeat;
  color: rgb(65, 94, 255);
  text-shadow: 0 0 10px #000;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,204,255,0.1) 0%, rgba(0,255,136,0.1) 100%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  text-align: center;
  z-index: 1;
  position: relative;
}

.about {
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(255, 255, 255);
  text-shadow: 0 0 5px #000;
  background: linear-gradient(135deg, #111 0%, #222 50%, #111 100%);
}

/* セクション共通 */
section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #111;
  border-top: 1px solid #333;
  max-width: 1200px;
  margin: 0 auto;
}

section img {
  width: 100%;
  max-width: 800px;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}

/* アニメーション */
.fade-in, .slide-in, .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.show,
.slide-in.show,
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-content {
    position: relative;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 0 0 10px 10px;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    padding: 2rem 0;
    gap: 1rem;
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 204, 255, 0.1);
  }

  .social-links {
    margin-left: 0;
    justify-content: center;
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .hero, .about {
    height: 60vh;
  }

  section {
    padding: 2rem 1rem;
  }

  .logo img {
    height: 45px;
    width: 45px;
  }
}

@media screen and (max-width: 480px) {
  header {
    padding: 0.5rem 1rem;
  }

  .hero, .about {
    height: 50vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 1.5rem 0.5rem;
  }

  .logo img {
    height: 40px;
    width: 40px;
  }
}

@media screen and (max-width: 600px) {
  .hamburger {
    display: flex;
    left: 300px;
  }
}

/* フッター */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #000;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

#event-form{
  text-align: center;
  padding: 2rem;
  background-color: #000;
  color: #afafaf;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* お問い合わせフォーム最適化 */
#contact-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem 2rem 1.5rem 2rem;
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,204,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.7em 1em;
  margin-top: 0.3em;
  border: 1px solid #222;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border: 1.5px solid #0cf;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,204,255,0.15);
}

#contact-form textarea {
  min-height: 90px;
  max-height: 200px;
}

#contact-form button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.7em 0;
  background: linear-gradient(90deg, #0cf 0%, #00ff88 100%);
  color: #111;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,204,255,0.08);
}

#contact-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #00ff88 0%, #0cf 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 600px) {
  #contact-form {
    padding: 1rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
}

#owner{
  color: rgb(255, 230, 0);
}

#operator{
  color: rgb(119, 0, 255);
}

#competition{
  color: rgb(234, 0, 255);
}

#streamer{
  color: rgb(255, 102, 0);
}

#designer{
  color: rgb(0, 255, 13);
}

#training{
  color: rgb(0, 255, 255);
}

/* Owner（オーナー）用 */
#owner-form {
  background: linear-gradient(135deg, #222 60%, #fff70022 100%);
  border-left: 6px solid #ffe600;
  color: #ffe600;
  margin-bottom: 2rem;
}
#owner-form h2, #owner-form h4 { color: #ffe600; }

/* Operator（運営）用 */
#operator-form {
  background: linear-gradient(135deg, #222 60%, #7d00ff22 100%);
  border-left: 6px solid #7d00ff;
  color: #b47cff;
  margin-bottom: 2rem;
}
#operator-form h2, #operator-form h4 { color: #b47cff; }

/* Competition（競技）用 */
#competition-form {
  background: linear-gradient(135deg, #222 60%, #ea00ff22 100%);
  border-left: 6px solid #ea00ff;
  color: #ea00ff;
  margin-bottom: 2rem;
}
#competition-form h2, #competition-form h4 { color: #ea00ff; }

/* training(育成)用 */
#training-form {
  background: linear-gradient(135deg, #222 60%, #c300ff22 100%);
  border-left: 6px solid #a200ff;
  color: #a200ff;
  margin-bottom: 2rem;
}
#training-form h2, #training-form h4 { color: #a200ff; }

/* Streamer（ストリーマー）用 */
#streamer-form {
  background: linear-gradient(135deg, #222 60%, #ff660022 100%);
  border-left: 6px solid #ff6600;
  color: #ffae7b;
  margin-bottom: 2rem;
}
#streamer-form h2, #streamer-form h4 { color: #ffae7b; }

/* designer（デザイナー）用 */
#designer-form {
  background: linear-gradient(135deg, #222 60%, #00ff1522 100%);
  border-left: 6px solid #00ff15;
  color: #7bff7b;
  margin-bottom: 2rem;
}
#designer-form h2, #designer-form h4 { color: #7bff7b; }

/* 共通：フォーム内の画像を大きく中央に */
#owner-form img,
#operator-form img,
#competition-form img,
#training-form img,
#streamer-form img,
#designer-form img{
  margin: 1.5rem auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  max-width: 350px;
  width: 100%;
  height: auto;
}

/* 共通：フォームのテキスト中央寄せ */
#owner-form, #operator-form, #competition-form, #training-form, #streamer-form, #designer-form{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* モバイル対応 */
@media (max-width: 600px) {
  #owner-form, #operator-form, #competition-form, #training-form, #streamer-form, #designer-form{
    padding: 1rem 0.2rem;
  }
  #owner-form img,
  #operator-form img,
  #competition-form img,
  #streamer-form img,
  #designer-form img{
    max-width: 95vw;
  }
}