@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;
  /* 赤のグラデーションと和紙風テクスチャ */
  background:
    url('https://www.transparenttextures.com/patterns/cream-paper.png'),
    linear-gradient(135deg, #b71c1c 0%, #ffebee 100%);
  background-size: auto, cover;
}

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

header h1 {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'MS Mincho', serif;
  color: #b71c1c;
  display: inline-block;
  padding: 0.5em 1.5em;
  text-shadow: 2px 2px 0 #fff, 0 0 6px #d4af37;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

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;
  background: #fff8e1;
  border: 4px double #d4af37;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.15);
  padding: 2.5rem;
}

#drawButton {
  font-size: 1.3rem;
  padding: 12px 30px;
  background: linear-gradient(90deg, #fff 0%, #ffe082 100%);
  color: #b71c1c;
  border: 2px solid #d4af37;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.15);
  margin-bottom: 2rem;
}

#drawButton:hover {
  background: linear-gradient(90deg, #ffe082 0%, #fff 100%);
  color: #d32f2f;
  transform: scale(1.05);
}

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

#resultDisplay {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'MS Mincho', serif;
  font-size: 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 18px 0;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
  min-width: 160px;
}

footer {
  position: fixed;
  bottom: 20px;
  font-size: 0.9rem;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'MS Mincho', serif;
  color: #d4af37;
  font-size: 1rem;
  margin-top: 2rem;
}

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