/* ==========================================================================
   全体設定 & スマホファーストベース
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  background-color: #0b0914;
}

.divination-app {
  background-color: #0b0914;
  color: #e3dbe8;
  font-family: 'Times New Roman', Times, serif, 'Noto Serif JP', serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 120px;
}



/* ==========================================================================
   1. メインビジュアルエリア（アップロード画像を背景に）
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-visual-bg {
  position: absolute;
  inset: 0;
  /* 保存した画像名をここに指定します（例: uranai.png） */
  background-image: url('./img/uranai.png'); 
  background-size: cover;
  background-position: center;
}

/* 画像の上に暗いレイヤーをかけて文字を読みやすくする */
.mystic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.4) 0%, rgba(11, 9, 20, 0.85) 90%, #0b0914 100%);
  pointer-events: none;
}

.hero-content {
  z-index: 1;
}

.main-title {
  font-size: 3.2rem;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(147, 112, 219, 0.6);
  margin: 0 0 5px 0;
}

.sub-title {
  font-size: 1.1rem;
  color: #ffd700;
  letter-spacing: 6px;
  margin: 0 0 40px 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.scroll-prompt {
  cursor: pointer;
  margin-top: 40vh; /* 画像の下部に配置 */
}

.pulse-text {
  font-size: 0.9rem;
  color: #d1c4e9;
  letter-spacing: 2px;
  margin: 0;
  animation: pulse 2s infinite;
  text-shadow: 0 0 5px #000;
}

.arrow {
  color: #ffd700;
  animation: bounce 2s infinite;
  margin-top: 5px;
}

/* ==========================================================================
   2. 占術メニュー・入力フォーム
   ========================================================================== */
.menu-section {
  padding: 40px 20px;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin: 0 0 25px 0;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* タブ風のボタン配置 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.menu-grid button {
  padding: 12px;
  background: rgba(25, 21, 44, 0.6);
  border: 1px solid rgba(147, 112, 219, 0.3);
  color: #b3a2c7;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.menu-grid button.active {
  background: rgba(138, 43, 226, 0.2);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* 入力カードのデザイン */
.input-form-card {
  background: rgba(20, 16, 36, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-form-card h3 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 1px;
}

.form-instruction {
  font-size: 0.85rem;
  color: #b3a2c7;
  line-height: 1.5;
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #ffd700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* 神秘的な入力フォームスタイル */
.mystic-input {
  width: 100%;
  padding: 12px;
  background: #0d0b18;
  border: 1px solid rgba(147, 112, 219, 0.4);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.mystic-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(135deg, #4a0082 0%, #1b1536 100%);
  border: 1px solid #ffd700;
  color: #ffd700;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ==========================================================================
   3. AI鑑定中モーダル & 4. 鑑定結果 (前回同様)
   ========================================================================== */
.loading-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 24, 0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-loader {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #9370db;
  border-bottom-color: #ffd700;
  animation: spin 1.5s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: #ffd700;
  letter-spacing: 2px;
  font-size: 0.95rem;
  text-align: center;
}

.result-section {
  padding: 20px;
  animation: fadeIn 1s ease-out forwards;
}

.result-card {
  background: rgba(25, 21, 44, 0.7);
  border: 1px solid rgba(147, 112, 219, 0.3);
  border-radius: 12px;
  padding: 25px 20px;
  margin-bottom: 40px;
}

.result-title {
  color: #ffd700;
  font-size: 1.1rem;
  text-align: center;
  margin: 0 0 10px 0;
}

.result-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin: 0 0 20px 0;
  color: #fff;
}

.result-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #dfd7e7;
}

.result-text p {
  margin: 0 0 15px 0;
}

.accent-text {
  color: #ffb74d;
  font-weight: bold;
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 15px;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(360deg, #0b0914 80%, transparent 100%);
  padding: 20px 15px 25px;
  z-index: 100;
}

.btn-live-connect {
  width: 100%;
  background: linear-gradient(135deg, #8a2be2 0%, #4a0082 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.btn-live-connect:active {
  transform: scale(0.98);
}

.btn-sub {
  font-size: 0.75rem;
  color: #ffd700;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.btn-main {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.footer-area {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  padding: 20px 0;
}

/* ==========================================================================
   アニメーション定義
   ========================================================================== */
@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(209, 196, 233, 0.8); }
  100% { opacity: 0.4; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
