/* 商品詳細・見積もりフォーム用の追加調整。親テーマのCSSは変更しない。 */

/* Mailform Pro の確認画面だけをサイトの配色に合わせる */
#mfp_overlay {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  overflow-y: auto;
  padding: 3rem 1.6rem;
}

#mfp_overlay_inner {
  box-sizing: border-box;
  width: min(72rem, 100%);
  max-width: 100%;
  margin: 3vh auto;
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid #d8d0c3;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1.2rem 4rem rgba(30, 24, 18, .2);
}

#mfp_overlay_background {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(30, 24, 18, .55);
}

/* MFP がフォーム内へ差し込む制御要素はグリッド配置に参加させない */
#mailformpro > #mfp_hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#mfp_error,
#mfp_warning,
#mfp_phase_confirm {
  display: none;
}

#mfp_confirm_table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

#mfp_confirm_table th,
#mfp_confirm_table td {
  padding: 1.2rem;
  border: 1px solid #ddd6ca;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#mfp_confirm_table th {
  width: 30%;
  background: #f9f6ea;
  font-weight: 700;
}

#mfp_phase_confirm h4 {
  margin: 0 0 1.5rem;
  color: #6a5145;
  font-size: 2.4rem;
  text-align: center;
}

#mfp_phase_confirm button,
#mfp_phase_confirm input[type="button"],
#mfp_phase_confirm input[type="submit"] {
  min-height: 4.8rem;
  margin: .6rem;
  padding: 1rem 2rem;
  border: 1px solid #866937;
  border-radius: 2px;
  background: #866937;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#mfp_error {
  margin: 1.6rem 0;
  padding: 1.2rem;
  border: 1px solid #b42318;
  background: #fff5f4;
  color: #8c1d18;
}

/* 商品詳細の画像ギャラリー */
.p-product-gallery__slide {
  overflow: hidden;
  border: 1px solid #e4ded4;
  background: #f9f6f0;
}

.p-product-gallery__thumb {
  overflow: hidden;
  border: 1px solid #ded8ce;
  border-radius: 2px;
  background: #f9f6f0;
  transition: border-color .2s ease, opacity .2s ease;
}

.p-product-gallery__thumbs .swiper-slide-thumb-active .p-product-gallery__thumb {
  border: 2px solid #866937;
}

.p-product-gallery__thumb:hover {
  opacity: .78;
}

/* 商品詳細の選択肢とカート操作 */
.p-product-detail__colors {
  padding: 1.6rem 2rem;
  border-left: 3px solid #866937;
  background: #f9f6ea;
}

.p-product-detail__colors legend {
  padding: 0 .4rem;
  color: #6a5145;
}

.p-product-detail__add {
  border-radius: 2px;
  background: #866937;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.p-product-detail__add:hover {
  background: #6a5145;
}

.p-product-detail__add:focus-visible {
  outline: 3px solid #2c3e50;
  outline-offset: 3px;
}

.p-product-detail__content .mfpcart .gocart {
  display: block;
  width: 100%;
  margin-top: .8rem;
  padding: 1.2rem 1rem;
  border: 1px solid #866937;
  border-radius: 2px;
  background: #fff;
  color: #866937;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* contact/ の2カラムと入力フォームに合わせる */
.p-cart-layout {
  position: relative;
  width: 100%;
  align-items: start;
}

form#mailformpro.p-cart-layout {
  margin: 0;
  padding: 0;
}

.p-cart-layout .p-contact__content,
.p-cart-list {
  min-width: 0;
}

.p-cart-layout .p-contact-form {
  margin-top: 5rem;
}

.p-cart-layout .p-contact-form__field select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: .4rem;
  padding: 1.6rem;
  background: #fff;
  color: #000;
  font: inherit;
}

.p-cart-payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
}

.p-cart-layout .p-contact-form__field .p-cart-payment-option {
  display: inline-flex;
  min-height: 4.8rem;
  align-items: center;
  gap: .8rem;
  margin: 0;
  padding: .8rem 1.4rem;
  border: 1px solid #d8d0c3;
  border-radius: .4rem;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.p-cart-layout .p-contact-form__field .p-cart-payment-option:hover {
  border-color: #866937;
  background: #f9f6ea;
}

.p-cart-layout .p-contact-form__field .p-cart-payment-option input[type="radio"] {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #866937;
}

.p-cart-layout .p-contact-form__field input:focus-visible,
.p-cart-layout .p-contact-form__field textarea:focus-visible,
.p-cart-layout .p-contact-form__field select:focus-visible {
  outline: 2px solid #866937;
  outline-offset: 2px;
}

.p-cart-layout .p-contact-form__button button {
  min-width: min(100%, 32rem);
  padding-inline: 2.4rem;
}

.p-cart-list {
  box-sizing: border-box;
}

.p-cart-list #mfp_shopping_cart {
  width: 100%;
  overflow-x: auto;
}

.p-cart-list .mfp_shoppingcart {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  color: #222;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1.6;
}

.p-cart-list .mfp_shoppingcart th,
.p-cart-list .mfp_shoppingcart td {
  padding: 1rem .8rem;
  border: 0;
  border-bottom: 1px solid #d8d3ca;
  background: transparent;
  vertical-align: middle;
}

.p-cart-list .mfp_shoppingcart thead th {
  color: #6a5145;
  font-weight: 700;
  text-align: center;
}

.p-cart-list .mfp_shoppingcart .msc_name {
  min-width: 14rem;
  text-align: left;
}

.p-cart-list .mfp_shoppingcart .msc_image {
  width: 7.2rem;
  min-width: 7.2rem;
}

.p-cart-list .mfp_shoppingcart .msc_image img {
  display: block;
  width: 7.2rem;
  height: 7.2rem;
  object-fit: contain;
  background: #f9f6f0;
}

.p-cart-list .mfp_shoppingcart .msc_name span {
  display: block;
  color: #666;
  font-size: 1.2rem;
  font-weight: 400;
}

.p-cart-list .mfp_shoppingcart .msc_label {
  display: block;
  color: #777;
  font-size: 1.1rem;
}

.p-cart-list .mfp_shoppingcart .msc_amount {
  white-space: nowrap;
}

.p-cart-list .mfp_shoppingcart select {
  min-width: 6rem;
  padding: .5rem;
  border: 1px solid #bbb;
  border-radius: 2px;
  background: #fff;
  font: inherit;
}

.p-cart-list .mfp_shoppingcart tfoot th,
.p-cart-list .mfp_shoppingcart tfoot td {
  border-top: 2px solid #866937;
  border-bottom: 0;
  font-weight: 700;
}

.p-cart-list .mfp_shoppingcart tfoot th {
  text-align: right;
}

.p-cart-list .p-contact-list__note {
  text-align: left;
}

@media screen and (max-width: 1099.98px) {
  .p-cart-list {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-product-gallery__thumb,
  .p-product-detail__add {
    transition: none;
  }
}

.p-estimate-complete__panel {
  box-sizing: border-box;
  width: min(80rem, 100%);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 5.6rem);
  border: 1px solid #e2ddd3;
  background: #fff;
  text-align: center;
}

.p-estimate-complete__mark {
  display: grid;
  width: 5.6rem;
  height: 5.6rem;
  margin: 0 auto 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: #f2eee5;
  color: #866937;
  font-size: 3rem;
  font-weight: 700;
}

.p-estimate-complete__lead {
  margin: 0 0 1.2rem;
  color: #6a5145;
  font-size: 2rem;
  font-weight: 700;
}

.p-estimate-complete__receipt {
  margin: 2.4rem 0;
  padding: 1.2rem;
  background: #f9f6ea;
}

.p-estimate-complete__contact {
  margin-top: 2.4rem;
  line-height: 1.8;
}

.p-estimate-complete__contact a {
  color: #6a5145;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: underline;
}

.p-estimate-complete__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3.2rem;
}

.p-estimate-complete__actions .c-link-button {
  min-width: min(100%, 24rem);
  margin: 0;
}

/* Product detail section layouts */
.p-product-features__item--image_only {
  display: block;
}

.p-product-features__item--image_only .p-product-features__image {
  width: 100%;
}

.p-product-features__item--text_only,
.p-product-features__item--heading_text {
  display: block;
}

.p-product-features__item--text_only .p-product-features__content,
.p-product-features__item--heading_text .p-product-features__content {
  width: 100%;
}

@media screen and (min-width: 1100px), print {
  .p-product-features__item--image_right .p-product-features__image {
    grid-column: 2;
    grid-row: 1;
  }

  .p-product-features__item--image_right .p-product-features__content {
    grid-column: 1;
    grid-row: 1;
  }
}
.p-contact-form__captcha {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Inline validation and both confirmation modes. */
#mailformpro .mfp_err {
  margin-top: .8rem;
  color: #b42318;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
}
#mfp_button_send, #mfp_button_cancel {
  display: inline-block;
  min-height: 4.8rem;
  margin: .6rem;
  padding: 1.2rem 2.4rem;
  border: 1px solid #866937;
  border-radius: .3rem;
  background: #866937;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
#mfp_button_cancel { background: #fff; color: #6a5145; }
#mfp_button_send:hover, #mfp_button_cancel:hover { filter: brightness(.9); }
#mfp_button_send:focus-visible, #mfp_button_cancel:focus-visible {
  outline: 2px solid #2c3e50;
  outline-offset: 3px;
}
