@charset "utf-8";

body {
  width: 1440px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  padding: 20px;
  margin: auto;
}

.main {
  width: 1440px;
  width: 100%;
  margin: auto;
}

h1 {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 30px;
  font-size: 64px;
  font-weight: bold;
  color: #333;
}

h2 {
  font-size: 32px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #2c3e50;
}

h3 {
  margin-top: 20px;
  font-size: 26px;
  color: #1a5276;
}
h4 {
  text-align: center;
  color: #6c98e4;
 transition: color 0.3s ease; /* なめらかに変化させる */
}
h4:hover {
  color: #cfd8e6;
}
h4 a {
  font-size: 18px!important;
}
.section {
  margin-bottom: 40px;
}

.image-area {
  display: flex;
  justify-content: center;
}

/* モーダルの基本スタイル */
#price-modal {
  width: 600px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8fdb6;
  border: 4px solid red;
  border-radius: 10px;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 9999;
  overflow-y: auto;
}

#price-modal.visible {
  opacity: 1;
  transform: translateY(0); 
}

#price-modal.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

/* モーダルの背景オーバーレイ */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#modal-overlay.visible {
  opacity: 1;
}

/* モーダルのコンテンツスタイル */
#price-modal h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

#price-modal p {
  font-size: 1em;
  margin: 10px 0;
  text-align: center;
}

.final-price {
  font-size: 36px;
  font-weight: 600;
  color: #e60012;

}

#price-modal .price {
  font-size: 2em;
  color: #0288d1;
  font-weight: bold;
}

#close-button {
  display: block;
  width: 100%;
  padding: 10px 0;
  background-color: #0288d1;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

#close-button:hover {
  background-color: #026ca0;
}

/* ラジオボタンエリアのスタイル */
.radio-group {
  display: flex;
  flex-wrap: wrap;               /* 折り返し可能にする */
  gap: 14px;                     /* 余白はそのままでもOK */
  justify-content: flex-start;  /* 左寄せ整列 */
  margin-top: 12px;
}

.radio-group label {
  flex: 1 0 calc(33.333% - 14px); /* 各ボタンの幅を均等に */
  min-width: 180px;
  max-width: 240px; /* 必要なら最大幅も指定して抑えるにゃ */
  box-sizing: border-box;
  padding: 12px;
  height: 48px;
  text-align: center;
  overflow: hidden;          /* はみ出し対策（必要なら） */
  white-space: nowrap;       /* 折り返さず1行で表示にゃ */
  text-overflow: ellipsis;   /* 長い文は「...」にすることも可能にゃ */
}


.radio-group input[type="radio"] {
  display: none;
}

.radio-group input[type="radio"]:checked + label {
  background-color: #0288d1;
  color: white;
  border-color: #026ca0;
}

.radio-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;            /* 余白強めに */
  margin-top: 12px;
  z-index: 2;
}

.radio-group label {
  flex: 1 0 calc(33.333% - 14px);
  min-width: 180px;
  height: 48px;
  box-sizing: border-box;
  padding: 12px;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  border: 1px solid #afee8b;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-group label:hover:not(.selected) {
  background-color: #d2f0ff;
  box-shadow: 0 0 4px rgba(0, 128, 255, 0.2);
  transform: translateY(-2px); /* ちょっと持ち上げてみるにゃ */
}

.radio-group input[type="radio"]:checked + label,
.radio-group label.selected {
  background-color: #0288d1;
  color: white;
  border-color: #026ca0;
  box-shadow: 0 0 6px rgba(0, 128, 255, 0.4) !important;
}


/* 価格表示セクション */
#price-output {
  font-size: 36px;
  color: #e60012;
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
}

.note {
  background-color: #fff4d6;
  padding: 1em;
  margin: 2em auto;
  max-width: 960px;
  border-radius: 6px;
  border: 1px solid #ffd584;
}

.cautionary-note p {
  margin: 0;
  font-size: 0.95em;
  color: #884400;
}
.color-option input[type="radio"] {
  display: none;
}

.radio-group label.selected {
  border: 2px solid #ff5c5c;
  background-color: #fff0f0;
}