/******************************/
/* Product */
/******************************/
@media screen and (min-width: 1024px) {
  header .toolbar__item--menu {
    display: none;
  }
}
.p-product {
  margin-bottom: 90px;
}
.p-product-main {
  display: block;
}
@media screen and (min-width: 1024px) {
  .p-product-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 30px;
  }
}
/* form */
.p-product select {
  box-sizing: border-box;
  padding: 5px;
  height: 40px;
  border: 1px solid #bfbfbf;
  font-size: 16px;
}
.p-product input[type='text'] {
  box-sizing: border-box;
  padding: 5px;
  height: 40px;
  border: 1px solid #bfbfbf;
  font-size: 16px;
}
/******************************/
/* 商品画像 Swiper カスタマイズ */
/******************************/
.p-product-img {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}
@media screen and (min-width: 1024px) {
  .p-product-img {
    width: 50%;
  }
}
.p-product-img__main-item {
  display: flex !important;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 300px;
}
.p-product-img__main-item img {
  align-self: center;
  max-height: 300px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media screen and (min-width: 768px) {
  .p-product-img__main-item {
    height: 500px;
  }
  .p-product-img__main-item img {
    max-height: 500px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
}
.product-main-swiper-wrapper {
  position: relative;
  padding-bottom: 10px;
}
/* ナビゲーションボタン */
.product-swiper-button-next,
.product-swiper-button-prev {
  position: absolute;
  color: var(--color-black) !important;
  --swiper-navigation-size: 30px;
  margin-top: -30px !important;
  width: 60px !important;
  height: 60px !important;
}
.product-swiper-button-prev {
  left: -20px !important;
}
.product-swiper-button-next {
  right: -20px !important;
}
/* サムネイル画像スライダー */
.p-product-img__thumb {
  position: relative;
  width: 100%;
  padding-bottom: 20px;
}
.product-thumbs-swiper {
  width: 100%;
  height: 100%;
}
@media screen and (min-width: 768px) {
  .p-product-img__thumb {
    padding-bottom: 30px;
  }
}
/* サムネイル個別アイテム */
.p-product-thumb-list__item {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s;
  box-sizing: border-box;
  border: 1px solid transparent;
}
/* サムネイルアクティブ状態の強調 */
.p-product-thumb-list__item.swiper-slide-thumb-active {
  opacity: 0.7;
}
.p-product-thumb-list__img {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
}
.p-product-thumb-list__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumbs-scrollbar {
  bottom: 0;
}
/***** 商品情報 *****/
.p-product-info {
  width: auto;
}
@media screen and (min-width: 1024px) {
  .p-product-info {
    width: calc(50% - 60px);
  }
}
.p-product-info__ttl {
  margin: 0;
  font-size: 21px;
  font-weight: normal;
  overflow-wrap: break-word;
}
@media screen and (min-width: 768px) {
  .p-product-info__ttl {
    font-size: 24px;
  }
}
.p-product-info__ttl img {
  vertical-align: middle;
}

.p-product-info__id {
  font-size: 10px;
  margin-top: 4px;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .p-product-info__id {
    font-size: 16px;
  }
}
.p-product-price {
  margin-top: 20px;
  margin-bottom: 20px;
}
.p-product-price__sell {
  font-size: 18px;
}
.p-product-price__normal {
  font-size: 12px;
}
@media screen and (min-width: 768px) {
  .p-product-price__normal {
    font-size: 14px;
  }
}
.p-product-price__list-price {
  font-size: 12px;
}
@media screen and (min-width: 768px) {
  .p-product-price__list-price {
    font-size: 14px;
  }
}
/* オプション table */
.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 table div {
  display: inline-block !important;
}
.p-product-option-tbl th {
  min-width: 100px;
}
.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;
}
.p-product-option-tbl input {
  margin-top: 0;
}
/* オプション select */
.p-product-option-select {
  margin-top: 30px;
  margin-bottom: 30px;
}
.p-product-option-select__box {
  margin-top: 15px;
}
.p-product-option-select__ttl {
  margin-bottom: 5px;
  font-weight: bold;
}
/* 名入れ */
.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-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.p-product-form-stock__input {
  display: flex;
  align-items: center;
}
.p-product-form-stock__input input {
  width: 60px;
}
.p-product-form-stock__unit {
  margin-left: 10px;
}
.p-product-form-stock__stock {
  margin-left: 25px;
}
.p-product-btn-area-container {
  display: grid;
  grid-auto-flow: row;
  grid-template-areas:
    'cart links'
    'sns sns';
}
.p-product-btn-area-cart {
  grid-area: cart;
}
.p-product-btn-area-links {
  grid-area: links;
}
.p-product-btn-area-sns {
  grid-area: sns;
}
@media screen and (min-width: 1024px) {
  .p-product-btn-area-container {
    display: flex;
    flex-direction: column;
  }
}
/* ボタン */
.p-product-form-btn__cart {
  width: auto;
}
@media screen and (mim-width: 1024px) {
  .p-product-form-btn__cart {
    width: 100%;
  }
}
/* 固定追従カートボタン */
.p-product-form-btn-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.p-product-form-btn-fixed.is-visible {
  transform: translateY(0);
}
.p-product-form-btn-fixed__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.p-product-form-btn-fixed__cart {
  flex-shrink: 0;
  width: 100%;
}
.p-product-form-btn-fixed .rico-btn-cart {
  width: 100%;
  min-width: 150px;
  padding: 25px;
  font-size: 14px;
}
/* カートボタンの処理中状態 */
.rico-btn-cart.is-processing {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.rico-btn-cart.is-processing:hover {
  transform: none !important;
}
@media screen and (min-width: 768px) {
  .p-product-form-btn-fixed {
    padding: 20px 30px;
  }
  .p-product-form-btn-fixed .rico-btn-cart {
    min-width: 180px;
    padding: 25px;
    font-size: 16px;
  }
}
@media screen and (min-width: 1024px) {
  .p-product-form-btn-fixed {
    display: none;
  }
}
.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: #db5656;
  margin-top: 15px;
}
/* link */
.p-product-link-list {
  padding-left: 10px;
  font-size: 12px;
}
.p-product-link-list__item {
  margin-bottom: 5px;
}
@media screen and (min-width: 768px) {
  .p-product-link-list {
    font-size: 14px;
  }
  .p-product-link-list__item {
    margin-bottom: 10px;
  }
}
@media screen and (min-width: 1024px) {
  .p-product-link-list {
    padding-top: 30px;
    padding-left: 0px;
    font-size: 16px;
  }
  .p-product-link-list__item {
    margin-bottom: 10px;
  }
}
.p-product-link-list__item a {
  color: var(--color-main-orange);
}
/* SNS */
.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: 30px;
  display: block;
}
.p-product__ttl {
  margin-top: 0;
  margin-bottom: 35px;
  line-height: 1.4;
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 0.3em;
}
@media screen and (min-width: 768px) {
  .p-product__ttl {
    margin-bottom: 30px;
    font-size: 18px;
  }
}
.p-product-explain {
  margin-bottom: 60px;
  width: auto;
}
.p-product-explain__body {
  line-height: 2;

  /* テキスト折り返し設定を追加 */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
/* リンクなどの長いURLも折り返し */
.p-product-explain__body a {
  word-break: break-all;
  max-width: 100%;
  display: inline-block;
}
/* 画像やテーブルも最大幅を超えないように */
.p-product-explain__body img,
.p-product-explain__body table {
  max-width: 100%;
  height: auto;
}
@media screen and (min-width: 1024px) {
  .p-product-explain__body {
    /* テキスト折り返し設定を追加 */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    white-space: pre-line;
  }
}
.p-product-other {
  width: auto;
}
/* おすすめ商品 */
.p-product-recommend-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list {
    margin-bottom: 60px;
  }
}
@media screen and (min-width: 1024px) {
  .p-product-recommend-list {
    margin-bottom: 30px;
  }
}
@media screen and (min-width: 1440px) {
  .p-product-recommend-list {
    margin-bottom: 60px;
  }
}
.p-product-recommend-list__item {
  box-sizing: border-box;
  padding-left: 5px;
  padding-right: 5px;
  width: calc(100% / 3);
  word-break: break-all;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__item {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (min-width: 1024px) {
  .p-product-recommend-list__item {
    padding-left: 5px;
    padding-right: 5px;
  }
}
@media screen and (min-width: 1440px) {
  .p-product-recommend-list__item {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.p-product-recommend-list__img {
  position: relative;
  margin-bottom: 5px;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__img {
    margin-bottom: 30px;
    text-align: center;
  }
}
@media screen and (min-width: 1024px) {
  .p-product-recommend-list__img {
    margin-bottom: 5px;
    text-align: center;
  }
}
@media screen and (min-width: 1440px) {
  .p-product-recommend-list__img {
    margin-bottom: 30px;
    text-align: center;
  }
}
.p-product-recommend-list__img:before {
  content: '';
  display: block;
  padding-top: 100%;
}
.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;
  margin: auto;
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.p-product-recommend-list__price {
  font-size: 12px;
  color: #909090;
  margin-top: 0;
}
@media screen and (min-width: 768px) {
  .p-product-recommend-list__price {
    margin-top: 15px;
  }
}
.p-product-recommend-list__price.is-strikethrough {
  margin-top: 0;
  text-decoration: line-through;
}
.p-product-recommend-list__expl {
  margin-top: 15px;
  font-size: 12px;
}
/* レビュー */
.p-product-review {
  margin-bottom: 60px;
}
.p-product-review__item {
  box-sizing: border-box;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f8f8;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
@media screen and (min-width: 768px) {
  .p-product-review__item {
    padding: 40px;
  }
}
@media screen and (min-width: 1024px) {
  .p-product-review__item {
    padding: 20px;
  }
}
@media screen and (min-width: 1200px) {
  .p-product-review__item {
    padding: 40px;
  }
}
.p-product-review__heading {
  margin-bottom: 8px;
}
.p-product-review__ttl {
  margin: 8px 0;
  line-height: 1.4;
  font-size: 16px;
}
.p-product-review-info {
  margin: 8px 0;
}
.p-product-review-info__item {
  display: inline-block;
  font-size: 12px;
}
.p-product-review-info__item.is-type {
  /* margin-right: 35px; */
}
.p-product-review__img {
  margin-bottom: 15px;
  text-align: center;
}
.p-product-review__body {
  font-size: 12px;
  line-height: 1.4;
}
.p-product-review__rates {
  display: flex;
  flex-wrap: wrap;
}
.p-product-review__rate {
  width: 18px;
  height: 18px;
  vertical-align: -0.3em;
  fill: currentColor;
  fill: #d8d8d8;
}
.p-product-review__rate.is-color {
  fill: var(--color-main-orange);
}
/* レビュー 返信 */
.p-product-review-reply {
  box-sizing: border-box;
  margin-top: 16px;
  padding: 8px 0;
  border-top: 1px solid #aaaaaa;
  border-bottom: 1px solid #aaaaaa;
}
.p-product-review-reply__ttl {
  font-weight: bold;
  font-size: 16px;
}
.p-product-review-reply__body {
  font-size: 12px;
}
.p-product-review-reply__date {
  font-size: 12px;
}
.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;
}
