@charset "utf-8";
/* 全体レイアウト */
body {
  width: 1440px;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}

.container h2 {
  margin-top: 0px;
}

p {
  font-size: 24px;
}

.explanation {
  width: 100%;
  font-size: 18px;
}

.size-group {
      width: 100%;
    text-align: center;
}

.deck-width {
  margin-bottom: 10px;
}

.deck-depth {
  margin-bottom: 10px;
}

.deck-height {
  margin-bottom: 10px;

}

/* セクション見出し */
h2 {
  margin-top: 200px;
  margin-bottom: 10px;
}

/* ボタングループ */
.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

/* ラジオボタン非表示 */
.button-group input[type="radio"] {
  display: none;
}

/* ボタン風ラベル */
.button-group button {
  height: 109px;
  padding: 10px 20px;
  border: 2px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
}
.step-choice {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.fence-choice1 {
  display: flex;
  justify-content: center;
}

.fence-choice2 {
  display: flex;
  justify-content: center;
}

.fence-choice2 img {
  width: 30%;
}

/* ホバー時 */
.button-group button:hover {
  background-color: #e0f0ff;
  border-color: #3399ff;
}

/* 選択時（JSで .selected を付ける） */
.button-group label.selected button {
  background-color: #3399ff;
  color: white;
  border-color: #3399ff;
}

/* 見積りボタン */
#estimateBtn {
  padding: 12px 24px;
  font-size: 24px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  position: relative;
  left: 40%;
}

#estimateBtn:hover {
  background-color: #005fa3;
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.best-price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff3c3c;
  text-align: center;
  text-shadow: 0 0 10px #ffaaaa;
  will-change: transform;
}

.addition3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 20px;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  border: 3px solid rgb(234, 51, 51);
  max-width: 400px;
  width: 90%;
  position: relative;
}

.constoruction-cost {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.contact-button {
  display: flex;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  border-radius: 10px;
  background-color: #f5633e;
  margin-bottom: 10px;
}

.close-btn {
  display: flex;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
  background-color: #5280e3;
}

