/******************************/
/* Product : base layout */
/******************************/

.p-product {
  margin-bottom: 90px;
}

/* form */
.p-product select,
.p-product input[type="text"] {
  box-sizing: border-box;
  padding: 5px 10px;
  height: 40px;
  border: 1px solid #bfbfbf;
  font-size: 14px;
  border-radius: 3px;
}

/******************************/
/* Main two-column area */
/******************************/

.p-product-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

@media screen and (max-width: 1030px) {
  .p-product-main {
    display: block;
  }
}

.p-product-img {
  width: 530px;
}

@media screen and (max-width: 1030px) {
  .p-product-img {
    width: auto;
    margin-bottom: 45px;
  }
}

@media screen and (max-width: 767px) {
  .p-product-img {
    margin-left: -20px;
    margin-right: -20px;
    width: auto;
  }
}

.p-product-img__main {
  text-align: center;
}

@media screen and (max-width: 1030px) {
  .p-product-img__main {
    margin-left: auto;
    margin-right: auto;
    width: 530px;
  }
}

@media screen and (max-width: 767px) {
  .p-product-img__main {
    width: auto;
  }
}

.p-product-img__main-item {
  position: relative;
  text-align: center;
}

.p-product-img__main-item:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.p-product-img__main-item img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

/* thumbnail list */

.p-product-thumb-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -4px;
  margin-right: -4px;
  margin-top: 8px;
}

@media screen and (max-width: 1030px) {
  .p-product-thumb-list {
    margin-left: 0;
    margin-right: 0;
    flex-wrap: nowrap;
  }
}

.p-product-thumb-list__item {
  box-sizing: border-box;
  margin-bottom: 8px;
  padding-left: 4px;
  padding-right: 4px;
  width: 20%;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

@media screen and (max-width: 1030px) {
  .p-product-thumb-list__item {
    margin-right: 5px;
    padding-left: 0;
    padding-right: 0;
    width: 90px;
  }
}

@media screen and (max-width: 767px) {
  .p-product-thumb-list__item {
    margin-right: 5px;
    width: 60px;
  }
}

.p-product-thumb-list__item:hover,
.p-product-thumb-list__item.is-current {
  opacity: 0.7;
}

.p-product-thumb-list__img {
  position: relative;
  text-align: center;
}

.p-product-thumb-list__img:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.p-product-thumb-list__img img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
}

/* main image slider arrows */

.p-product-img__main .slick-track {
  margin-left: 0;
  margin-right: 0;
}

.p-product-img__main .slick-prev,
.p-product-img__main .slick-next {
  top: 50%;
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
  z-index: 1;
}

@media screen and (max-width: 767px) {
  .p-product-img__main .slick-prev,
  .p-product-img__main .slick-next {
    width: 45px;
    height: 45px;
  }
}

.p-product-img__main .slick-prev:before,
.p-product-img__main .slick-next:before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 15px;
  height: 15px;
  border-left: 1px solid #000000;
  border-top: 1px solid #000000;
  transition: all 0.3s ease;
}

@media screen and (max-width: 767px) {
  .p-product-img__main .slick-prev:before,
  .p-product-img__main .slick-next:before {
    top: 15px;
  }
}

.p-product-img__main .slick-prev {
  left: 15px;
}

@media screen and (max-width: 767px) {
  .p-product-img__main .slick-prev {
    left: 0;
  }
}

.p-product-img__main .slick-prev:before {
  transform: rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .p-product-img__main .slick-prev:before {
    left: 17px;
  }
}

.p-product-img__main .slick-next {
  right: 15px;
}

@media screen and (max-width: 767px) {
  .p-product-img__main .slick-next {
    right: 0;
  }
}

.p-product-img__main .slick-next:before {
  left: 4px;
  transform: rotate(135deg);
}

@media screen and (max-width: 767px) {
  .p-product-img__main .slick-next:before {
    left: 13px;
  }
}

/******************************/
/* Product info (右カラム) */
/******************************/

.p-product-info {
  width: 410px;
}

@media screen and (max-width: 1030px) {
  .p-product-info {
    width: auto;
  }
}

.p-product-info__ttl {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

@media screen and (max-width: 767px) {
  .p-product-info__ttl {
    font-size: 21px;
  }
}

/* リードブロック */

.p-product-lead {
  margin-bottom: 20px;
}

.p-product-lead__copy {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
}

.p-product-lead__points {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.7;
}

.p-product-lead__points li {
  margin-bottom: 4px;
}

/* price */

.p-product-price {
  margin-top: 20px;
  margin-bottom: 20px;
}

.p-product-price__sell {
  font-size: 18px;
  font-weight: 600;
}

.p-product-price__sell span + span {
  margin-left: 8px;
  font-size: 14px;
}

.p-product-price__normal,
.p-product-price__list-price {
  font-size: 13px;
  color: #666666;
}

@media screen and (max-width: 767px) {
  .p-product-price__normal,
  .p-product-price__list-price {
    font-size: 12px;
  }
}

/* options table / select */

.p-product-option-tbl {
  margin-top: 30px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.p-product-option-tbl table {
  margin-bottom: 0;
  border-left: 0;
  border-right: 0;
  width: 100%;
}

.p-product-option-tbl th,
.p-product-option-tbl td {
  padding: 12px 5px;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  text-align: center;
}

.p-product-option-tbl th {
  min-width: 100px;
  background: #f5f7fa;
  font-weight: 500;
}

.p-product-option-select {
  margin-top: 30px;
  margin-bottom: 30px;
}

.p-product-option-select__box + .p-product-option-select__box {
  margin-top: 15px;
}

.p-product-option-select__ttl {
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 13px;
}

/* name input */

.p-product-name {
  margin-top: 30px;
  margin-bottom: 30px;
}

.p-product-name__box + .p-product-name__box {
  margin-top: 15px;
}

.p-product-name__ttl {
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 13px;
}

.p-product-name__body input {
  width: 100%;
}

/* quantity & stock */

.p-product-form-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 15px;
}

.p-product-form-stock__input {
  display: flex;
  align-items: center;
}

.p-product-form-stock__input input {
  width: 60px;
  text-align: right;
}

.p-product-form-stock__unit {
  margin-left: 8px;
  font-size: 13px;
}

.p-product-form-stock__stock {
  font-size: 13px;
  color: #666666;
}

/* cart buttons */

.p-product-form-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.p-product-form-btn__cart {
  width: 100%;
}

@media screen and (max-width: 1030px) {
  .p-product-form-btn__cart {
    flex: 1;
    width: auto;
  }
}

.p-product-form__error-message {
  color: #db5656;
  margin-top: 15px;
  font-size: 13px;
}

/* SNS buttons */

.p-product-sns-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
}

.p-product-sns-list__item {
  margin-right: 20px;
}

/******************************/
/* 下部セクション全体 */
/******************************/

.p-product-detail {
  margin-top: 80px;
}

.p-product-section {
  margin-bottom: 72px;
  padding-top: 40px;
  border-top: 1px solid #e3e7ea;
}

.p-product-section__ttl {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

@media screen and (max-width: 767px) {
  .p-product-section__ttl {
    font-size: 16px;
  }
}

.p-product-section__sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #889199;
}

.p-product-section__body {
  line-height: 2;
  font-size: 14px;
}

/* DETAIL body */

.p-product-explain__body p {
  margin-bottom: 1em;
}

/* STORY grid */

.p-product-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.p-product-story-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media screen and (max-width: 767px) {
  .p-product-story-grid {
    grid-template-columns: 1fr;
  }
}

/* SIZE GUIDE */

.p-product-size {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.p-product-size img {
  max-width: 100%;
  height: auto;
}

/******************************/
/* Accordion (Q&A) */
/******************************/

.p-product-accordion {
  border-radius: 4px;
  border: 1px solid #e3e7ea;
  background: #ffffff;
  margin-bottom: 10px;
  overflow: hidden;
}

.p-product-accordion__input {
  display: none;
}

.p-product-accordion__label {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.p-product-accordion__label::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.p-product-accordion__content {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.8;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* open state */
.p-product-accordion__input:checked + .p-product-accordion__label {
  background: #f8fafc;
}

.p-product-accordion__input:checked + .p-product-accordion__label::after {
  content: "−";
}

.p-product-accordion__input:checked + .p-product-accordion__label + .p-product-accordion__content {
  max-height: 500px;
  padding: 10px 16px 16px;
}

/******************************/
/* VOICE スクロールボックス */
/******************************/

.okyakusama_inner {
  margin: 5px 0 0;
  border: solid 1px #d1d7dd;
  width: 100%;
  max-height: 480px;
  background-color: #f8fafc;
  overflow-y: auto;
  padding: 15px 15px 10px;
  font-size: 13px;
  box-sizing: border-box;
}

/* 吹き出し風レビュー */

.fu-red,
.fu-navy {
  position: relative;
  margin: 0 0 1.5em;
  padding: 0.8em 0.9em;
  line-height: 1.6;
  border-radius: 5px;
  color: #ffffff;
  font-size: 90%;
}

.fu-red {
  background: #f70841;
}

.fu-navy {
  background: #1f3b5b;
}

.fu-red::after,
.fu-navy::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 10%;
  margin-left: -10px;
  border-top: 12px solid currentColor;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.fu-2 {
  display: block;
  margin-top: 6px;
  font-size: 70%;
  font-weight: 400;
  color: #ffffff;
}

/* その他 VOICE 内で使われている要素の軽い整形 */

.buy_info {
  font-size: 12px;
}

h3.d {
  font-size: 14px;
  margin: 0;
}

/******************************/
/* Review block (shop built-in) */
/******************************/

.p-product-review {
  margin-bottom: 60px;
}

.p-product-review__item {
  box-sizing: border-box;
  margin-bottom: 30px;
  padding: 30px;
  background: #f8fafc;
}

@media screen and (max-width: 767px) {
  .p-product-review__item {
    padding: 20px;
  }
}

.p-product-review__ttl {
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 16px;
}

.p-product-review-info__item {
  display: inline-block;
  font-size: 12px;
}

.p-product-review-info__item.is-type {
  margin-right: 35px;
}

.p-product-review__body {
  margin-top: 15px;
  line-height: 2;
}

.p-product-review__rates {
  display: flex;
  flex-wrap: wrap;
}

.p-product-review__rate {
  width: 18px;
  height: 18px;
  fill: #d8d8d8;
}

.p-product-review__rate.is-color {
  fill: #000000;
}

/******************************/
/* Amazon Pay など 汎用入力 */
/******************************/

.input-prepend.input-append input {
  font-size: 24px;
  padding-top: 11px;
  padding-bottom: 11px;
  width: 100px;
  text-align: right;
}

/******************************/
/* Quick cart-in modal */
/******************************/

.cart_in_modal,
.cart_in_error_modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .7);
  z-index: 20000;
  display: flex;
  overflow: auto;
}

@media screen and (min-width: 960px) {
  .cart_in_modal,
  .cart_in_error_modal {
    align-items: center;
  }
}

.cart_in_modal__bg {
  background-color: rgba(0, 0, 0, .7);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 20000;
}

.cart_in_modal__outline {
  width: 90%;
  margin: 20px 5%;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
  box-sizing: border-box;
  text-align: center;
  position: absolute;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__outline {
    width: 900px;
    margin: auto;
    padding: 20px 70px;
    position: relative;
  }
}

.cart_in_modal__heading,
.cart_in_error_modal__heading {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0;
  line-height: 1.4;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__heading,
  .cart_in_error_modal__heading {
    font-size: 26px;
    margin: 30px 0;
    line-height: 1.2;
  }
}

.cart_in_modal__detail {
  display: flex;
  padding: 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  align-items: center;
  flex-direction: column;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__detail {
    flex-direction: row;
  }
}

.cart_in_modal__name {
  font-size: 16px;
  flex: 1;
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__name {
    font-size: 18px;
  }
}

.cart_in_modal__image-wrap {
  padding: 5px;
  width: 170px;
  height: 170px;
  background: rgba(0, 0, 0, .1);
  position: relative;
  border: 5px solid transparent;
  box-sizing: border-box;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__image-wrap {
    margin: 0 30px 0 0;
    flex-basis: 170px;
  }
}

.cart_in_modal__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.cart_in_modal__text-link {
  color: #2169f3;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin: 20px 0 0;
  padding-left: 20px;
  line-height: 1.15;
}

.cart_in_modal__text-link::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #2169f3;
  border-right: 2px solid #2169f3;
  transform: rotate(225deg);
}

.cart_in_modal__button-wrap {
  width: 100%;
  margin: 30px auto;
  font-size: 17px;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__button-wrap {
    width: 350px;
  }
}

.cart_in_modal__button {
  font-size: 17px;
  font-weight: bold;
  line-height: 23px;
  display: inline-block;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  border: 0;
  border-radius: 4px;
  width: 100%;
  height: 58px;
  padding: 15px;
  background: #2169f3;
  box-shadow: 0 2px 0 #1a54c2;
}

.cart_in_modal__button:hover,
.cart_in_modal__button:focus {
  color: #e9f0fe;
  background-color: #1e5fdb;
  box-shadow: none;
  transform: translate3d(0, 2px, 0);
}

.cart_in_modal__close-icon {
  cursor: pointer;
}

.cart_in_modal__close-icon::before,
.cart_in_modal__close-icon::after {
  content: "";
  width: 35px;
  height: 6px;
  display: block;
  position: absolute;
  top: 30px;
  right: 20px;
  background: #eee;
  border-radius: 4px;
}

.cart_in_modal__close-icon::before {
  transform: rotate(-45deg);
}

.cart_in_modal__close-icon::after {
  transform: rotate(45deg);
}

.spinner::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100px;
  width: 100px;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 50%;
  border: 5px solid #eee;
  border-top-color: #fd7f23;
  animation: spinner 0.5s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (min-width: 960px) {
  .sp-br {
    display: none;
  }
}
