.products-show_top {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.prodcts-show_top__left {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}
.prodcts-show_top__left img {
    object-fit: cover;
    width: 100%;
    max-width: 300px;
}
  
.prodcts-show_top__right {
    width: 50%;
}

.prodcts-show_top__right--records {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.prodcts-show_top__right--record_btn {
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .prodcts-show_top__right--record_btn-text {
    display: flex;
  }
  
  .prodcts-show_top__right--record_btn_icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .prodcts-show_top__right--record_btn img {
    height: 15px;
    width: 15px;
  }
  
  .prodcts-show_top__right--records button,
  .prodcts-show_top__right--records .record-btn {
    all: unset;
    position: relative;
    margin-bottom: 0;
    max-width: 200px;
    min-width: 140px;
    flex: 1 1 auto;
    border: 2px solid #007bff;
    border-radius: 50px;
    background-color: #f0f8ff;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .prodcts-show_top__right--records button:hover,
  .prodcts-show_top__right--records .record-btn:hover {
    background-color: #e0f0ff;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  }
  
  /* アクティブ状態のボタン */
  .prodcts-show_top__right--records button:active,
  .prodcts-show_top__right--records .record-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  }
  
  
  button:nth-child(1) .prodcts-show_top__right--record_btn_icon { background-color: rgb(248, 220, 220); }
  button:nth-child(2) .prodcts-show_top__right--record_btn_icon { background-color: rgb(216, 240, 217); }
  button:nth-child(3) .prodcts-show_top__right--record_btn_icon { background-color: rgb(250, 248, 219); }
  
  .prodcts-show_top__right--record_btn-text .count {
    margin-left: 8px;
    font-size: 0.9em;
    font-weight: bold;
  }

  .prodcts-show_top__right--tag {
      text-decoration: none;
      padding: 0.25rem 0.5rem;
      font-size: 0.8rem;
      color: white;
      border-radius: 3px;
      background-color: #a3a3a3;
      display: inline-block;
      margin-bottom: 5px;
  }

  .prodcts-show_top__right--brand {
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.prodcts-show_top__right--brand:hover {
    color: #7ba88f;
    text-decoration: underline;
}

.products-scent__notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 365px) {
    .products-scent__notes {
      flex-direction: column;
      align-items: center;
    }
  }

.products-scent--notes_type img {
    width: 70px;
    height:70px;
    object-fit: cover;
}

.products-scent--notes_state {
    font-size: 0.9rem;
    margin: 0;
}

.products-scent--notes_name {
    text-align: center;
    margin: 0;
}

.detail-value__url {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

.gallery-images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.gallery-image-item {
  position: relative;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 5px;
  background-color: #fff;
}

.gallery-image-item img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gallery-image-item .btn {
  margin-top: 5px;
  width: 100%;
}

.current-main-image {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.current-main-image img {
  display: block;
  margin: 0 auto 10px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.gallery-item {
  position: relative;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 5px;
  background-color: #fff;
}

.gallery-item img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gallery-item .btn {
  margin-top: 5px;
  width: 100%;
}

/* 画像アップロードとプレビュー用のスタイル */
.image-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.main-image-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .main-image-container {
    flex-direction: row;
    align-items: center;
  }
  
  .current-main-image,
  .main-image-placeholder {
    flex: 0 0 40%;
  }
  
  .main-image-upload {
    flex: 0 0 60%;
  }
}

.current-main-image {
  padding: 1rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

.main-image-placeholder {
  padding: 2rem;
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 5px;
  text-align: center;
  color: #777;
}

.image-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

.preview-img {
  max-width: 100%;
  max-height: 200px;
  display: block;
  margin: 0 auto;
}

.gallery-preview {
  margin-top: 1rem;
}

.gallery-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.gallery-preview-item {
  width: 150px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

.gallery-images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.gallery-image-item {
  position: relative;
  width: 150px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  transition: transform 0.2s ease;
}

.gallery-image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-image-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

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

.image-actions .btn {
  width: 100%;
}

.gallery-img {
  max-width: 100%;
  border-radius: 3px;
}

.no-gallery-images {
  padding: 2rem;
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 5px;
  text-align: center;
  color: #777;
}

/* フォームアクション */
.form-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* ギャラリースライダー用のCSS */
.gallery-slider-container {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
}

.gallery-slider {
  position: relative;
  width: 100%;
  padding: 10px 40px;
  box-sizing: border-box;
  max-width: 100%;
}

.gallery-slider-wrapper {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
}

.gallery-slider-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 100%;
}

.gallery-slider-item {
  flex: 0 0 auto;
  width: calc(33.33% - 10px);
  max-width: 200px;
  margin-right: 10px;
}

.gallery-slider-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.gallery-slider-prev,
.gallery-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;
}

.gallery-slider-prev {
  left: 5px;
}

.gallery-slider-next {
  right: 5px;
}

.gallery-slider-prev.disabled,
.gallery-slider-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .gallery-slider-item {
    width: calc(50% - 10px);
    max-width: 150px;
  }
  
  .gallery-slider {
    padding: 10px 30px;
  }
}

/* Action Buttons */
.prodcts-show_top__right--records form {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 140px;
  max-width: 200px;
}

.record-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.survey-option-card.selected {
    border-color: #7ba88f !important;
    background-color: #f0f8f4;
}

.survey-option-card:hover {
    background-color: #f9f9f9;
}

