@charset "UTF-8";

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

body {
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

main {
  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-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: #000;
}

#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;
}

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

.fragrantolive {
  background: linear-gradient(135deg, #ecbf7c, #fbf994fb) !important;
  color: white;
  border-color: #d6c6ae;
}

.taiwancherry {
  background: linear-gradient(135deg, #fccdef, #c97bb4) !important;
  color: white;
  border-color: #f5c0f3;
}

.clematis {
  background: linear-gradient(135deg, #915dae, #a278ad) !important;
  color: white;
  border-color: #ad7eb7;
}

.cherryblossom {
  background: linear-gradient(135deg, #f7b2fc, #f1afcb) !important;
  color: white;
  border-color: #eabcd4;
}

.bougainvillea {
  background: linear-gradient(135deg, #a72a5a, #bd3434) !important;
  color: white;
  border-color: #b23949;
}

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

body.fragrantolive {
  background: linear-gradient(135deg, #e4c839, #d0b979);
  transition: background 0.5s ease;
}

body.taiwancherry {
  background: linear-gradient(135deg, #e8f5e8, #f1f8f1);
  transition: background 0.5s ease;
}

body.clematis {
  background: linear-gradient(135deg, #a570c0, #8a4cb7);
  transition: background 0.5s ease;
}

body.cherryblossom {
  background: linear-gradient(135deg, #b95858, #b74c4c);
  transition: background 0.5s ease;
}

body.bougainvillea {
  background: linear-gradient(135deg, #b95858, #b74c4c);
  transition: background 0.5s ease;
}

body.heather #resultDisplay {
  background: linear-gradient(135deg, #d23636, #931a1a) !important;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-color: #ffffff;
}

body.fragrantolive #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: #ff9800;
}

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

body.clematis #resultDisplay {
  background: linear-gradient(135deg, #9e6da9, #71457e) !important;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-color: #86689e;
}

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

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

@media (min-width: 601px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  main {
    margin: 0;
    padding: 3rem;
  }
  
  #drawButton {
    font-size: 1.5rem;
    padding: 15px 40px;
  }
  
  #resultDisplay {
    font-size: 2rem;
  }
}