body {
    font-family: "Yuji Syuku", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    background-image: url('shrine-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  header {
    background-color: rgba(120, 78, 0, 0.8);
    color: white;
    padding: 10px;
  }
  
  main {
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
  }
  
  #omikuji-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #8a3a00;
    border-radius: 8px;
  }
  
  #draw-button, 
  #draw-10-button {
    font-family: "Yuji Syuku", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
    padding: 5px 20px;
    background-color: #8a3a00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
  }
  
  #draw-button:hover,
  #draw-10-button:hover {
    background-color: #502b00;
  }
  
  #probability-table {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #8a3a00;
    border-radius: 8px;
  }
  
  #probability-list {
    list-style: none;
    padding: 0;
    display: inline-block; /* リスト全体を中央に配置 */
    width: 270px; /* リスト全体の幅を制限 */
    margin-left: -20px;
  }
  
  #probability-list li {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    line-height: 1;
    padding: 3px 0;
  }
  
  #probability-list li span:nth-child(1) {
    flex: 1; /* 結果 */
    text-align: right;
  }
  
  #probability-list li span:nth-child(2) {
    flex: 1; /* 設定確率 */
    text-align: right;
  }
  
  #probability-list li span:nth-child(3) {
    flex: 1; /* 試行確率 */
    text-align: right;
  }

  #probability-list li span:nth-child(4) {
    flex: 1; /* 試行確率 */
    text-align: right;
  }

  footer,
  footer p,
  footer a {
    margin-top: 20px;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 1px 1px 1px #000000;
  }
  
  h1{
    font-size: 40px;
    margin: 0px;
  }

  h2{
    font-size: 40px;
    margin: 0px;
    margin-top: 10px;
  }

  h3{
    font-size: 30px;
    margin: 0px;
  }

  h4{
    font-weight: normal;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: -15px;

  }

  p{
    font-size: 20px;
    margin: 0px;
    margin-bottom: 5px;
  }

  #result{
    height: 95px;
    display: flex;
    flex-wrap: wrap; /* 複数行にわたって表示する */
    justify-content: center; /* 中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    gap: 0px; /* 各要素間の間隔 */
  }

  /* 10回分の結果表示を小さく整列 */
#result span.omikuji-result-small {
  display: inline-block;
  width: calc(10%); /* 5列に収まるよう調整 */
  font-size: 28px;
  font-weight: bold;
}
