/* === 初期表示制御 === */
.item-option dt.hidden,
.item-option dd.hidden,
.item-option input[type="text"].hidden {
  display: none;
}

/* === スタイリング === */
.item-option {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
}

#preview-area h3,
#preview-area .preview-items{
  font-family: 'Noto Sans JP', "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight:500;
}

.item-option dt {
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.3em;
  color: #333;
}

.item-option dd {
  margin: 0;
}

.iopt_select,
.iopt_text {
  width: 100%;
  max-width: 320px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  appearance: none;
  transition: border-color 0.2s ease;
}

.iopt_select:focus,
.iopt_text:focus {
  border-color: #007acc;
  outline: none;
  background-color: #fff;
}

.iopt_text::placeholder {
  color: #aaa;
}

.iopt_text { font-weight:400; }

.iopt_label {
  display: none;
}

#preview-area {
  border-top: 1px solid #ccc;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 10px;
}

.preview-items {
  display: flex;
  flex-wrap: wrap;
  gap: .8em;
  justify-content: flex-start;
}

.preview-block {
  border: 1px solid #ddd;
  padding: 0.5em;
  width: calc(25% - 0.75em); /* 4列（gap考慮） */
  box-sizing: border-box;
  text-align: center;
  font-size: 12px;
  background-color: #fafafa;
  border-radius: 6px;
}

.preview-block img {
  width: 80px;
  height: auto;
  margin: 0 auto;
}

.preview-block .preview-title {
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 0.3em;
  color: #333;
}

.preview-block .label {
  margin-top: 0.5em;
  color: #555;
}

/* スマホでは2列 */
@media (max-width: 768px) {
  .preview-block {
    width: calc(50% - 0.5em);
  }
}


.preview-block {
  position: relative;
  overflow: visible;
}

.preview-block img {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

/* === 共通スタイル === */
.preview-block {
  position: relative;
  text-align: center;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* ← スクロールバー防止 */
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* ← これ重要！モーダル外に出る要素を隠す */
}

.image-modal .modal-content {
  position: relative;
  background: white;
  padding: 10px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 0 10px #333;
  border-radius: 6px;
}

.image-modal .modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* クローズボタンをモーダル内右上に */
.image-modal .close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
}



.gift-option-label {
  background-color: #f5f5f5;
  border-left: 4px solid #c48d3d;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.gift-option-label.highlight-box {
  background-color: #fff8e1;
  border-left: 6px solid #f5b041;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}

.step-label {
  font-family: 'Noto Sans JP', "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 500;
  font-size: 1.2em;
  color: #b3541e;
  margin-bottom: 8px;
}

.step-description {
  font-size: 0.95em;
  color: #333;
  line-height: 1.5em;
}



