/* ========================================
   ホームページ専用CSS
   style.css のCSS変数を共有して使用
   ======================================== */

/* ヒーローセクション（キービジュアル） */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/bg/key_visual.jpg') center center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom,
      rgba(26,26,46,0.55) 0%,
      rgba(26,26,46,0.1) 20%,
      transparent 45%,
      rgba(26,26,46,0.2) 70%,
      rgba(26,26,46,0.7) 100%
    );
  z-index: 1;
}

/* === タイトルエリア === */
.hero-title-area {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 20px;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.title-meat {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 16px rgba(255, 100, 0, 0.7));
  animation: title-meat-pulse 2s ease-in-out infinite;
}

@keyframes title-meat-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.title-text {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(180deg,
    #fff8dc 0%,
    #ffd700 20%,
    #ff8c00 50%,
    #e94560 80%,
    #ff4500 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.9));
  text-shadow: none;
  letter-spacing: 6px;
  position: relative;
}

.title-text::before {
  content: 'それ俺の肉！';
  position: absolute;
  left: 0;
  top: 0;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px rgba(255, 215, 0, 0.35);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #eee;
  letter-spacing: 10px;
  text-shadow:
    0 0 24px rgba(233, 69, 96, 0.7),
    0 0 48px rgba(255, 100, 0, 0.4),
    0 2px 4px rgba(0,0,0,0.9);
  font-weight: bold;
}

/* === メインコンテンツ（キービジュアル上に重ねる） === */
.home-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  margin: auto auto 0;
  padding: 20px 20px 40px;
  text-align: center;
}

/* ガラスモーフィズムパネル（横並び） */
.glass-panel {
  background: rgba(22, 33, 62, 0.7) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.lobby-panel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.lobby-panel .panel-section {
  flex: 1;
  padding: 20px;
}

.lobby-panel .panel-section h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* 縦の区切り線 */
.lobby-panel .divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
  margin: 16px 0;
  font-size: 0;
  overflow: hidden;
}

.lobby-panel .panel-section form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lobby-panel .panel-section input {
  width: 100%;
  box-sizing: border-box;
}

/* ルールボタン */
.btn-rules {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: rgba(83, 52, 131, 0.5);
  border: 1px solid rgba(83, 52, 131, 0.4);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background 0.2s;
}

.btn-rules:hover {
  background: rgba(83, 52, 131, 0.85);
}

/* 待機画面もガラス風 */
.home-content .waiting-room {
  background: rgba(22, 33, 62, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* === レスポンシブ === */
@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
  }

  .hero-title-area {
    padding: 28px 12px 12px;
  }

  .title-text {
    font-size: 2.4rem;
    letter-spacing: 3px;
  }

  .title-text::before {
    content: 'それ俺の肉！';
    -webkit-text-stroke: 2px rgba(255, 215, 0, 0.3);
  }

  .title-meat {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
  }

  /* モバイルでは縦並びに戻す */
  .lobby-panel {
    flex-direction: column;
  }

  .lobby-panel .divider {
    width: auto;
    height: 1px;
    margin: 0 16px;
  }

  .home-content {
    padding: 12px 12px 32px;
  }
}

@media (max-width: 400px) {
  .title-text {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .title-meat {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }
}

/* === 大画面 === */
@media (min-width: 1200px) {
  .hero-title-area {
    padding: 56px 20px 20px;
  }

  .title-text {
    font-size: 5rem;
    letter-spacing: 8px;
  }

  .title-text::before {
    -webkit-text-stroke: 3px rgba(255, 215, 0, 0.35);
  }

  .title-meat {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
    letter-spacing: 14px;
  }

  .home-content {
    max-width: 800px;
  }
}
