body {
  margin: 0 !important;
  padding: 0 !important;
  background: #cdeef7 !important;
}

.navbar.bg-body-tertiary {
  background-color: #5eb6ff !important;
  min-height: 98px !important;
}

.navbar-toggler {
  background-color: white !important;
}

.calculator {
  width: 90%;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 30px;
}

.description {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left; /* 左揃えに変更 */
  margin-bottom: 50px;
  padding: 20px; /* パディングを追加 */
  background: #ffffff; /* 背景色を白に設定 */
  border-radius: 8px; /* 角を丸くする */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
}

#display {
  width: 90%;
  max-width: 250px;
  padding: 15px;
  margin: 0 auto;
  margin-bottom: 30px;
}

p {
  padding: 7px;
}

h3 {
  padding: 7px;
  color: #333; /* 見出しの色を変更 */
}

.custom-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-button:hover {
  background-color: #45a049;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

button {
  padding: 20px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background-color: #f0f0f0;
  touch-action: manipulation;
}

button:hover {
  background-color: #e0e0e0;
}

.koukoku {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center; /* 左揃えに変更 */
  margin-bottom: 50px;
  padding: 20px; /* パディングを追加 */
  background: #ffffff; /* 背景色を白に設定 */
  border-radius: 8px; /* 角を丸くする */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
}

.change {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 45px;
}
.centered-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.centered-buttons {
  text-align: center;
  margin-bottom: 20px;
}

.centered-buttons input[type="radio"] {
  width: 22px; /* ラジオボタンの幅を設定 */
  height: 22px; /* ラジオボタンの高さを設定 */
  transform: scale(1.0); /* ラジオボタンのサイズを1.5倍に拡大 */
  margin-right: 10px; /* ラジオボタンとラベルの間にスペースを追加 */
}

.centered-buttons label {
  font-size: 1.2em; /* ラベルのフォントサイズを大きく */
  margin-right: 20px; /* ラベル間のスペースを追加 */
}

@media only screen and (max-width: 600px) {
  .calculator {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  #display {
    padding: 15px;
    margin-bottom: 30px;
  }
  button {
    padding: 20px;
    font-size: 18px; /* フォントサイズをさらに小さく */
  }
  .description {
    max-width: 90%; /* 最大幅を90%に設定 */
    margin: 0 auto;
    text-align: left; /* 左揃えに変更 */
    margin-bottom: 20px;
    padding: 15px; /* パディングを調整 */
  }
  .koukoku {
    max-width: 90%; /* 最大幅を90%に設定 */
    margin: 0 auto;
    text-align: center; /* 左揃えに変更 */
    margin-bottom: 20px;
    padding: 15px; /* パディングを調整 */
  }
  
}
