/* ベースフォントと見出し */
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 20px;
}
h1 {
  font-size: 48px;
  text-align: center;
  margin-top: 80px;
}
h2 {
  font-size: 18px;
  color: #333;
  margin-top: 30px;
}

/* ラジオボタングループのレイアウト */
.radio-group,
.options,
.material-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* ラジオボタン非表示＋ラベルスタイル */
input[type="radio"] {
  display: none;
}
label {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
label:hover {
  background-color: #e6f2ff;
  border-color: #69b2f8;
}
input[type="radio"]:checked + label {
  background-color: #cbe8ff;
  border-color: #3498db;
  font-weight: bold;
}

/* 視覚選択用カラーオプション（床材など） */
.material-item,
.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-wrapper {
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 6px;
}
.img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.item-name {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}
.color-option.selected .img-wrapper,
.material-item.selected .img-wrapper {
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}

/* モーダル表示エリア（完全統一） */
#price-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 228, 232, 0.95); /* 桜色風 */
  border: 2px solid #f4a7b9;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  padding: 16px 24px;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* 非表示時 */
.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
/* 表示時 */
#price-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* モーダル内テキスト */
.final-price {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}
.selection-summary p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}
.frontage-photo {
  display: flex;
  justify-content: center;
}
.depth-photo {
  display: flex;
  justify-content: center;
}