@charset "UTF-8";


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Zen Maru Gothic", sans-serif;
  color: #FFB7C5;
  text-shadow: 2px 2px 6px rgba(255, 200, 237, 0.5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #edc9dc, #e8d5b3, #c4fff1);
  background-size: 300% 300%;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* ボタンと結果の間隔（少し下に表示される）*/
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  text-align: center;
  min-width: 300px;
  margin: 0 20px;
}

#drawButton {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.3rem;
  padding: 12px 30px;
  background: #444;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

#drawButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  background: #ada8a8;
}

#drawButton:active {
  transform: translateY(0);
}

#resultDisplay {
  font-size: 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 15px;
  background: #EEE;
  border: 2px solid #e9ecef;
}

footer {
  position: fixed;
  bottom: 20px;
  font-size: 0.9rem;
}

/* おみくじ結果に応じた背景色とスタイル */
.daikichi {
  background: linear-gradient(135deg, #ff0090, #ff8e8e) !important;
  color: white;
  border-color: #ff3cb7;
}

.chukichi {
  background: linear-gradient(135deg, #fff874, #faffb6) !important;
  color: white;
  border-color: #ccd57c;
}

.syokichi {
  background: linear-gradient(135deg, #ffa726, #ffb74d) !important;
  color: white;
  border-color: #ff9800;
}


.daikyo {
  background: linear-gradient(135deg, #080808, #1b033e) !important;
  color: white;
  border-color: #0c023a;
}

/* bodyの背景色変更 */
body.daikichi {
  background: linear-gradient(135deg, #ffe0e0, #fff5f5);
  transition: background 0.5s ease;
}

body.chukichi {
  background: linear-gradient(135deg, #fff3e0, #fffbf0);
  transition: background 0.5s ease;
}

body.syokichi {
  background: linear-gradient(135deg, #fff3e0, #fffbf0);
  transition: background 0.5s ease;
}

body.daikyo {
  background: linear-gradient(135deg, #080808, #1b033e);
  transition: background 0.5s ease;
}

/* bodyクラスに基づいたresultDisplayのスタイル */
body.daikichi #resultDisplay {
  background: linear-gradient(135deg,#ff0090, #ff8e8e) !important;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-color: #ffb8f2;
}

body.chukichi #resultDisplay {
  background: linear-gradient(135deg,#fff766, #faffb6) !important;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(221, 215, 143, 0.3);
  border-color:#fff5f5;
}

body.syokichi #resultDisplay {
  background: linear-gradient(135deg, #ffa726, #ffb74d) !important;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-color: #fff5f5;
}

body.daikyo #resultDisplay {
  background: linear-gradient(135deg, #080808, #1b033e) !important;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-color: #fff5f5;
}

@media (min-width: 601px) {
  header h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 4rem;
  background: linear-gradient(90deg, #ec64aa, #ff62f2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 6px rgba(253, 197, 241, 0.5);
  }
  
  main {
    margin: 0;
    padding: 3rem;
  }
  
  #drawButton {
    font-size: 1.5rem;
    padding: 15px 40px;
  }
  
  #resultDisplay {
    font-size: 2rem;
  }
}