@charset "utf-8";

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
main {
  width: 1440px;
}

h1, h2, h3, h4 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: #004080;
}

h1 {
  font-size: 36px;
  text-align: center;
}

h2 {
  font-size: 28px;
}

h4 {
  font-size: 20px;
  text-align: center;
}
.carport-section {
  background-color: #fff;
  margin: 2em auto;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 960px;
}
.image-area {
  text-align: center;
}

.image-area img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1em;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1.5em;
  justify-content: center;
}

.radio-group label {
  background-color: #eef2f7;
  padding: 0.6em 1em;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: 0.2s ease;
}

.radio-group label:hover {
  background-color: #d8e4f5;
}

.radio-group input[type="radio"] {
  margin-right: 6px;
}

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

.radio-group label.selected {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #0078d4;
  background-color: #e0f0ff;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}


.roof-note {
  margin-top: -1em;
  font-size: 0.9em;
  color: #666;
}

.color-option {
  display: inline-block;
  margin: 10px;
}

.color-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  width: 120px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.color-option label:hover {
  border-color: #f4a7b9; /* 淡い赤でアクセント */
}

.color-option {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.color-option img {
  max-width: 100%;
  height: auto;
  margin-bottom: 6px;
}

.color-option span {
  font-size: 14px;
}

.colvari-image {
  width: 80px;
  height: 80px;
  margin-bottom: 0.3em;
}

.colvari-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #aaa;
  border-radius: 4px;
}

#top_btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #004080;
  color: #fff;
  padding: 0.8em 1.2em;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

#price-modal {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 100%); /* 初期位置：下に隠す */
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  top: 50%;
  background: #f8fdb6;;
  border: 2px solid #f4a7b9; /* ← 淡い赤の枠線（桜ピンク系） */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  padding: 2em;
  z-index: 9999;
  width: 90%;
  max-width:600px;
}

#price-modal.visible {
  transform: translate(-50%, -50%); /* 表示位置：中央 */
  opacity: 1;
}

#price-modal.hidden {
  display: none; /* 表示を完全に消す時用 */
}

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

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

#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: 36px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

#close-button:hover {
  background-color: #026ca0;
  font-size: 36px;
}

.final-price {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1em;
  color: #e60012;
}

.selection-summary p {
  margin: 0.5em 0;
  font-size: 1rem;
}

.note {
  background-color: #fff4d6;
  padding-top: 10px;
  padding-bottom: 10px;
  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;
}
