:root {
  /* 商品画像 */
  --main-image-border-radius: 10px;
  --thumbnail-image-border-radius: 4px;
  
  /* 商品の文字 */
  --product-name-font-size-sp: 21px;
  --product-name-font-size-pc: 24px;
  --product-name-font-weight: 400;
  --product-price-font-size-sp: 18px;
  --product-price-font-size-pc: 20px;
  --product-price-font-weight: 400;
  
  /* カートボタン */
  --cart-button-background-color: var(--general-background-color);
  --cart-button-border-radius: 6px;
  --cart-button-text-color: #fff;
  --cart-button-font-size-sp: 14px;
  --cart-button-font-size-pc: 14px;

  /* 詳細ページのセクション */  
  --product-section-margin-sp: 40px auto 60px;
  --product-section-margin-pc: 60px auto 80px;

  /* オプション表の丸印 */
  --option-table-dot-color: var(--general-text-color);
}

/******************************/
/* Product */
/******************************/
/* 商品詳細用のセクション */
.c-section {
  margin: var(--product-section-margin-sp);
}
@media screen and (min-width: 768px) {
  .c-section {
    margin: var(--product-section-margin-pc);
  }
}

.p-product {
  margin-bottom: 60px;
}
@media screen and (min-width: 768px) {
  .p-product {
    margin-bottom: 100px;
  }
}
.p-product-form {
  margin-top: 30px; 
}
@media screen and (min-width: 768px) {
  .p-product-form {
    margin-top: 40px; 
  }
}
.p-product-form-btn .c-btn-favorite {
  position: static;
}
.p-product-form-btn .c-btn-favorite svg {
  width: 30px;
  height: 30px;
}
/* form */
.p-product select {
  box-sizing: border-box;
  padding: 5px;
  height: 40px;
  border: 1px solid #ddd;
  font-size: 1.1em;
}
.p-product input[type=text] {
  box-sizing: border-box;
  padding: 5px;
  height: 40px;
  border: 1px solid #bfbfbf;
  font-size: 1.1em;
}
.p-product-main {
  display: block;
}
@media screen and (min-width: 768px) {
  .p-product-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

  }
}
.p-product-img {
  width: auto;
  margin-bottom: 30px;
  margin-left: -20px;
  margin-right: -20px;
}
@media screen and (min-width: 768px) {
  .p-product-img {
    width: 50%;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
  }
}
.p-product-img__main {
  text-align: center;
  width: auto;
  /*height: calc(100vw * 1.2); CLS対応、適宜指定したほうがいい*/
}
@media screen and (min-width: 768px) {
  .p-product-img__main {
    /*height: calc((100vw - 40px - 14px) / 2 * 1.2); CLS対応、適宜指定したほうがいい*/
  }
}
@media screen and (min-width: 1160px) {
  .p-product-img__main {
    /*height: calc(1160px / 2 * 1.2); CLS対応、適宜指定したほうがいい*/
  }
}
.p-product-img__main-item {
  position: relative;
  text-align: center;
}
.p-product-img__main-item:before {
  content: "";
  display: block;
  padding-top: var(--item-img-before-padding-top);
}
.p-product-img__main-item a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.p-product-img__main-item img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  object-fit: cover;
  width: auto !important;
  height: 100%;
  /*max-width: 100%;
  max-height: 100%;
  text-align: center;*/
}
@media screen and (min-width: 768px) {
  .p-product-img__main-item img {
    border-radius: var(--main-image-border-radius);
  }
}
.p-product-thumb-list {
  display: flex;
  flex-wrap: wrap;
  /* overflow用
  flex-wrap: nowrap; */
  column-gap: 6px;
  row-gap: 6px;
  margin-top: 6px;
  margin-right: 1px;
  margin-left: 1px;
}
@media screen and (min-width: 768px) {  
  .p-product-thumb-list {
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
  }
}
.p-product-thumb-list__item {
  width: calc(16.6666% - 6px * 5 / 6);
  /* overflow用
  width: 60px; */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media screen and (min-width: 768px) {
  .p-product-thumb-list__item {
    width: calc(16.6666% - 6px * 5 / 6);
  }
}
.p-product-thumb-list__item:hover, .p-product-thumb-list__item.is-current {
  opacity: 0.7;
  cursor: pointer;
}
.p-product-thumb-list__img {  
  position: relative;
  text-align: center;
  width: 100%;
  /* overflow用
  width: 60px; */
  /*height: calc((100vw - 32px) / 6 * 1.2); CLS対応、適宜指定したほうがいい*/
}
@media screen and (min-width: 768px) {
  .p-product-thumb-list__img {
    width: 100%;
    /*height: calc((50vw - 30px) / 6 * 1.2); CLS対応、適宜指定したほうがいい*/
  }
}
@media screen and (min-width: 1160px) {
  .p-product-thumb-list__img {
    /*height: calc((580px - 30px) / 6 * 1.2); CLS対応、適宜指定したほうがいい*/
  }
}
.p-product-thumb-list__img:before {
  content: "";
  display: block;
  padding-top: var(--item-img-before-padding-top);
}
.p-product-thumb-list__img img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid #fff;
  border-radius: var(--thumbnail-image-border-radius);
  margin: auto;
  object-fit: var(--item-img-object-fit);
  width: var(--item-img-width);
  height: var(--item-img-height);
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.is-current .p-product-thumb-list__img img {
  border: 1px solid var(--general-text-color);
}
/* 商品画像 slider */
.p-product-img__main {
  opacity: 0;
  transition: opacity 0.3s ease 0s;
}
.p-product-img__main.slick-initialized {
  opacity: 1;
}
.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: 45px;
  height: 45px;
  transition: all 0.4s ease;
  z-index: 1;
}
@media screen and (min-width: 768px) {
  .p-product-img__main .slick-prev, .p-product-img__main .slick-next {
    width: 30px;
    height: 50px;
  }
}
.p-product-img__main .slick-prev:before, .p-product-img__main .slick-next:before {
  content: "";
  position: absolute;
  top: 13px;
  width: 20px;
  height: 20px;
  border-left: 1px solid var(--general-text-color);
  border-top: 1px solid var(--general-text-color);
  transition: all 0.4s ease;
  z-index: 1;
}
@media screen and (min-width: 768px) {
  .p-product-img__main .slick-prev:before, .p-product-img__main .slick-next:before {
    top: 15px;
  }
}
.p-product-img__main .slick-prev {
  left: 0px;
}
@media screen and (min-width: 768px) {
  .p-product-img__main .slick-prev {
    left: 15px;
  }
}
.p-product-img__main .slick-prev:before {
  left: 17px;
  transform: rotate(-45deg);
}
@media screen and (min-width: 768px) {
  .p-product-img__main .slick-prev:before {
    left: 6px;
  }
}
.p-product-img__main .slick-next {
  right: 0;
}
@media screen and (min-width: 768px) {
  .p-product-img__main .slick-next {
    right: 15px;
  }
}
.p-product-img__main .slick-next:before {
  left: 7px;
  transform: rotate(135deg);
}
@media screen and (min-width: 768px) {
  .p-product-img__main .slick-next:before {
    left: 4px;
  }
}
/***** 商品情報 *****/
.p-product-info {
  width: auto;

}
@media screen and (min-width: 768px) {
  .p-product-info {
    width: 45%; 
  }
}
.p-product-info__ttl {
  font-size: var(--product-name-font-size-sp);
  font-weight: var(--product-name-font-weight);
  line-height: 1.1;
  margin: 0;
  word-break: break-all;
}
@media screen and (min-width: 768px) {
  .p-product-info__ttl {
    font-size: var(--product-name-font-size-pc);
    margin-top: 5px;
  }
}
.p-product-info__ttl img {
  vertical-align: middle;
}

.p-product-info__id {
  margin-top: 5px;
  margin-left: 2px;
  font-size: 0.7em;
}
.p-product-price {
  margin-top: 20px;
  margin-bottom: 20px;
}
.p-product-price__sell {
  font-size: var(--product-price-font-size-sp);
  font-weight: var(--product-price-font-weight);
}
@media screen and (min-width: 768px) {
  .p-product-price__sell {
    font-size: var(--product-price-font-size-pc);
  }
}
.p-product-price__taxin {
  color: #999;
  font-size: 0.9em;
  padding-left: 5px;
}
.p-product-price__discount {
  color: var(--general-text-color-red); 
}
.p-product-price__normal {
  color: #ccc;
  font-size: 0.8em;
  text-decoration: line-through;
}
.p-product-price__list-price {
  color: #aaa;
  font-size: 0.8em;
  margin-top: 3px;
}
/* オプション table */
#option_tbl {
  margin-bottom: 10px; 
}
.table_price {
  font-weight: 500; 
}
.t_stock_num, .stock_zero {
  font-size: 12px; 
}
/* iPhoneは不具合があり表の右に余白を入れられない */
.p-product-option {
  margin-left: -20px;
  margin-right: -20px;
}
@media screen and (min-width: 768px) {
  .p-product-option {
    margin-left: 0;
    margin-right: 0;
  }
}
.p-product-option-tbl {
  margin: 30px 0;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: thin;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
@media screen and (min-width: 768px) {
  .p-product-option-tbl {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-left: 0;
    padding-right: 0;
  }
}
.p-product-option-tbl table {
  margin-bottom: 0;
  border-left: 0;
  border-right: 0;
  width: 100%;
}
.p-product-option-tbl table div {
  display: inline-block !important;
}
.p-product-option-tbl th {
  min-width: 100px;
}
.p-product-option-tbl td {
  accent-color: var(--option-table-dot-color); 
}
.p-product-option-tbl th, .p-product-option-tbl td {
  padding: 12px 5px;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  border-left: 0;
  text-align: center;
}
.p-product-option-tbl label {
  display: inline-block !important;
  margin-left: 5px;
  margin-bottom: 0;
  vertical-align: middle;
}
.p-product-option-tbl input {
  margin-top: 0;
}
/* オプション select */
.p-product-option-select {
  margin: 40px 20px;
}
@media screen and (min-width: 768px) {
  .p-product-option-select {
    margin: 40px 0;
  }
}
.p-product-option-select__box {
  margin-top: 15px;
}
.p-product-option-select__ttl {
  margin-bottom: 5px;
  font-weight: 500;
}
/* 名入れ */
.p-product-name {
  margin-top: 30px;
  margin-bottom: 30px;
}
.p-product-name__box {
  margin-top: 15px;
}
.p-product-name__ttl {
  margin-bottom: 5px;
  font-weight: bold;
}
.p-product-name__body input {
  width: 100%;
}
/* 数量 */
.p-product-form__quantity {
  font-weight: 500;
}
.p-product-form-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 20px;
}
.p-product-form-stock__input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: var(--cart-button-border-radius);
}
.p-product-form-stock__input a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  padding: 0 5px;
}
.p-product-form-stock__input svg {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  width: 20px;
  height: 20px;  
}
.p-product-form-stock__input input {
  border: none !important;
  text-align: center;
  width: 60px;
}
.p-product-form-stock__unit {
  margin-left: 10px;
}
.p-product-form-stock__stock {
  margin-left: 25px;
}
/* ボタン */
.p-product-form-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.p-product-form-btn__cart {
  flex: 1;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .p-product-form-btn__cart {
    width: 100%;
  }
}
.p-product-form-btn__favorite {
  width: 50px;
}
.p-product-form-btn__favorite-btn {
  display: inline-block;
  margin-top: 22px;
  margin-left: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8d8d8;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.p-product-form-btn__favorite-btn.is-added {
  color: #000000;
}
.p-product-form-btn__favorite-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.p-product-form__error-message {
  color: var(--general-text-color-red);
  margin-top: 15px;
}
/* SNS */
.p-product-sns-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}
.p-product-sns-list__item {
  margin-right: 20px;
}
/* link */
.p-product-link-list {
  margin-top: 30px;
}
@media screen and (min-width: 768px) {
  .p-product-link-list {
    margin-top: 40px;
  }
}
.p-product-link-list__item {
  margin-bottom: 5px;
}
@media screen and (min-width: 768px) {
  .p-product-link-list__item {
    margin-bottom: 5px;
  }
}
/***** 商品詳細 *****/
.p-product__ttl {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: 0.1em;
}
@media screen and (min-width: 768px) {
  .p-product__ttl {
    margin-bottom: 18px;
  }
}
.p-product-detail {
  display: block;
  margin: 40px auto;
}
@media screen and (min-width: 768px) {
  .p-product-detail {
    display: block;
    margin: var(--product-section-margin-pc);
  }
}
.p-product-explain {
  /*width: 410px;*/
}
.p-product-explain__body {
  line-height: 2;
}
/*.p-product-other {
  width: 510px;
}*/
/* おすすめ商品 */
.p-product-recommend {
  margin: 40px auto;
}
@media screen and (min-width: 768px) {
  .p-product-recommend {
    margin: var(--product-section-margin-pc);
  }
}
.p-product-recommend-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--item-column-gap-sp);
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list {
    column-gap: var(--item-column-gap-pc);
  }
}
.p-product-recommend-list__item {
  box-sizing: border-box;
  width: calc(33.3333% - (var(--item-column-gap-sp) *2 / 3));
  word-break: break-all;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__item {
    width: calc(25% - (var(--item-column-gap-pc) *3 / 4));
  }
}
.p-product-recommend-list__item a {
  display: block;
  position: relative;
}
.p-product-recommend-list__img {
  border-radius: var(--item-border-radius);
  position: relative;
  overflow: hidden;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__img {
    text-align: center;
  }
}
.p-product-recommend-list__img:before {
  content: "";
  display: block;
  padding-top: var(--item-img-before-padding-top);
}

.p-product-recommend-list__img a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.p-product-recommend-list__img img {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: var(--item-border-radius);
  margin: auto;
  object-fit: var(--item-img-object-fit);
  width: var(--item-img-width);
  height: var(--item-img-height);  
  max-width: 100%;
  max-height: 100%;
  text-align: center;
  transition: transform .6s ease;
}
.p-product-recommend-list__img:hover img {
  transform: scale(1.05);
}
.p-product-recommend-list__ttl {
  font-size: var(--item-name-font-size-sp);
  font-weight: var(--item-name-font-weight-sp);
  margin-top: 12px;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__ttl {
    font-size: var(--item-name-font-size-pc);
    font-weight: var(--item-name-font-weight-pc);
  }
}
.p-product-recommend-list__price {
  font-size: var(--item-price-font-size-sp);
  font-weight: var(--item-price-font-weight-sp);
  line-height: 1;
  margin-top: 6px;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__price {
    font-size: var(--item-price-font-size-pc);
    font-weight: var(--item-price-font-weight-pc);
  }
}
.p-product-recommend-list__price.is-strikethrough {
  color: #ccc;
  margin-top: 8px;
  text-decoration: line-through;
}
.p-product-recommend-list__discount {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 100;
  background: var(--general-background-color-red);
  color: #fff;
  font-size: 0.7em;
  font-weight: 400;
  padding: 4px 5px 4px;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__discount {
    top: 10px;
    left: 10px;
    font-size: 0.9em;
    padding: 4px 5px 2px;
  }
}
.p-product-recommend-list__expl {
  display: none;
  margin-top: 15px;
  font-size: 0.9em;
}
/* レビュー */
.p-product-review {
  margin: 40px auto;
}
@media screen and (min-width: 768px) {
  .p-product-review {
    margin: var(--product-section-margin-pc);
  }
}
.p-product-review__item {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--general-background-color-gray);
  border-radius: var(--item-border-radius);
}
@media screen and (min-width: 768px) {
  .p-product-review__item {
    padding: 40px;
  }
}
.p-product-review__heading {
  margin-bottom: 15px;
}
.p-product-review__ttl {
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 1.2em;
}
.p-product-review-info {
  margin-top: 0.7em;
  margin-bottom: 10px;
}
.p-product-review-info__item {
  display: inline-block;
  font-size: 0.9em;
}
.p-product-review-info__item.is-type {
  margin-right: 35px;
}
.p-product-review__img {
  margin-bottom: 15px;
  text-align: center;
}
.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;
  vertical-align: -0.3em;
  color: #d8d8d8;
}
.p-product-review__rate.is-color {
  color: #fc0;
}
/* レビュー 返信 */
.p-product-review-reply {
  box-sizing: border-box;
  margin-top: 30px;
  padding: 15px 0;
  border-top: 1px solid #aaaaaa;
  border-bottom: 1px solid #aaaaaa;
}
.p-product-review-reply__ttl {
  font-weight: bold;
}
.p-product-review-reply__body {
  font-size: 0.9em;
}
.p-product-review-reply__date {
  font-size: 0.9em;
}
.p-product-review__btn {
  margin-top: 30px;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .p-product-review__btn {
    margin-top: 45px;
  }
}
.input-prepend.input-append input {
  font-size: 24px;
  padding-top: 11px;
  padding-bottom: 11px;
  width: 100px;
  text-align: right;
}
.p-product-form__error-message:empty {
  display:none;
}