.fs-body-cart-login .fs-l-pageMain,
.fs-body-customerDetails .fs-l-pageMain,
.fs-body-checkout .fs-l-pageMain,
.fs-body-checkout-multi .fs-l-pageMain,
.fs-body-checkout-amazon .fs-l-pageMain,
.fs-body-checkout-selectAddressee .fs-l-pageMain,
.fs-body-checkout-subscribe .fs-l-pageMain,
.fs-body-checkout-subscribe-amazon .fs-l-pageMain,
.fs-body-checkout-multiAddress .fs-l-pageMain,
.fs-body-checkout-multiAddress-products .fs-l-pageMain,
.fs-body-checkout-multiAddress-confirm .fs-l-pageMain,
.fs-body-checkout-multiAddress-options .fs-l-pageMain,
.fs-body-register .fs-l-pageMain,
.fs-body-login .fs-l-pageMain,
.fs-body-wishlist-login .fs-l-pageMain,
.fs-body-couponProduct .fs-l-pageMain,
.fs-body-my-linkedAccounts .fs-l-pageMain,
.fs-body-my-cards .fs-l-pageMain,
.fs-body-my-reviews .fs-l-pageMain,
.fs-body-my-points .fs-l-pageMain,
.fs-body-my-account-delet .fs-l-pageMain,
.fs-body-my-account-settings-edit .fs-l-pageMain,
.fs-body-my-account-settings .fs-l-pageMain,
.fs-body-my-account-password .fs-l-pageMain,
.fs-body-my-addressbook-edit .fs-l-pageMain,
.fs-body-my-addressbook-new .fs-l-pageMain,
.fs-body-my-addressbook .fs-l-pageMain,
.fs-body-my-orders-details .fs-l-pageMain,
.fs-body-my-orders .fs-l-pageMain,
.fs-body-my-account-delete .fs-l-pageMain {
    width: 100%;
}
.fs-body-login .fs-c-loginForm > *,
.fs-body-wishlist-login .fs-c-loginForm > *,
.fs-body-cart-login .fs-c-loginForm > * {
   margin-left: auto;
   margin-right: auto;
}

.fs-body-category-worries .fs-c-subgroup {
   display: none;
}


/*商品グループのみ 現在登録されている商品はありません。非表示*/
.fs-body-category .fs-c-productList__message.fs-c-noResultMessage {
   display: none;
}

/* 基礎化粧品ページの自動生成カテゴリ一覧を非表示 */
.fs-body-category-gr1 .fs-c-subgroup {
  display: none !important;
}


/* お問い合わせ・返品特約を横2列にする */
@media screen and (max-width: 767px) {

  /* 商品情報エリアを2列グリッドにする */
  .fs-body-product .fs-l-productLayout__item--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  /* それ以外の要素は横幅いっぱい */
  .fs-body-product .fs-l-productLayout__item--2 > :not(
    .fs-c-inquiryAboutProduct
  ):not(
    .fs-c-returnedSpecialContract
  ) {
    grid-column: 1 / -1;
  }

  /* お問い合わせ・返品特約 */
  .fs-body-product .fs-c-inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    margin: 8px 0;
  }

  /* ボタン共通デザイン */
  .fs-body-product .fs-c-button--inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract__link a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 8px 5px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }
}

/* お問い合わせ・返品特約ボタンの文字を統一 */
@media screen and (max-width: 767px) {

  .fs-body-product .fs-c-button--inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract__link a {
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
  }

  /* お問い合わせボタン内の文字 */
  .fs-body-product .fs-c-button--inquiryAboutProduct
  .fs-c-button__label {
    color: #333 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  /* 返品特約側のリンク */
  .fs-body-product .fs-c-returnedSpecialContract__link {
    width: 100%;
  }
}

/* お問い合わせ・返品特約の文字位置を中央に統一 */
@media screen and (max-width: 767px) {

  /* 左右の外枠 */
  .fs-body-product .fs-c-inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract {
    display: flex !important;
    align-items: stretch !important;
  }

  /* 右側の内部コンテナ */
  .fs-body-product .fs-c-returnedSpecialContract__link {
    display: flex !important;
    align-items: stretch !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 左右のボタン本体 */
  .fs-body-product .fs-c-button--inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract__link a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 8px 5px !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
  }

  /* 左側の内部テキスト */
  .fs-body-product .fs-c-button--inquiryAboutProduct
  .fs-c-button__label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
  }
}

/* PC版：お問い合わせ・返品特約を横2列にする */
@media screen and (min-width: 768px) {

  /* 商品情報エリアを2列にする */
  .fs-body-product .fs-l-productLayout__item--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }

  /* その他の商品情報は横幅いっぱい */
  .fs-body-product .fs-l-productLayout__item--2 > :not(
    .fs-c-inquiryAboutProduct
  ):not(
    .fs-c-returnedSpecialContract
  ) {
    grid-column: 1 / -1;
  }

  /* 左右のボタン外枠 */
  .fs-body-product .fs-c-inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract {
    display: flex !important;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
    margin: 8px 0;
  }

  /* 返品特約の内部コンテナ */
  .fs-body-product .fs-c-returnedSpecialContract__link {
    display: flex !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ボタン共通デザイン */
  .fs-body-product .fs-c-button--inquiryAboutProduct,
  .fs-body-product .fs-c-returnedSpecialContract__link a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 10px 8px !important;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
  }

  /* お問い合わせボタン内の文字 */
  .fs-body-product .fs-c-button--inquiryAboutProduct
  .fs-c-button__label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }
}

/* ========================================
   SP版 商品画像サムネイル横スクロール化
======================================== */

@media screen and (max-width: 767px) {

  /* サムネイル全体を横1列にする */
  .fs-body-product .fs-c-productThumbnail {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box;
    padding: 0 0 10px !important;
    margin-bottom: 10px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #777 #e8e8e8;
  }

  /* 各サムネイルのサイズ */
  .fs-body-product .fs-c-productThumbnail > * {
    flex: 0 0 calc((100% - 40px) / 5.3) !important;
    min-width: 0;
    margin: 0 !important;
  }

  /* サムネイル画像 */
  .fs-body-product .fs-c-productThumbnail img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* スクロールバー */
  .fs-body-product .fs-c-productThumbnail::-webkit-scrollbar {
    height: 6px;
  }

  /* スクロールバーの背景 */
  .fs-body-product .fs-c-productThumbnail::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 3px;
  }

  /* スクロールバーの移動部分 */
  .fs-body-product .fs-c-productThumbnail::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 3px;
  }

}

/* SP版 メイン商品画像のスワイプ対応 */
@media screen and (max-width: 767px) {

  .fs-body-product .fs-c-productMainImage {
    touch-action: pan-y pinch-zoom;
  }

}

/* SP版 商品画像の虫眼鏡（拡大ボタン）を非表示 */
@media screen and (max-width: 767px) {

  .fs-body-product .fs-c-productMainImage__expandButton {
    display: none !important;
  }

}

/* ========================================
   SP版 カート周辺（統合版）
======================================== */
.olive-capacity-source { display: none !important; }

@media screen and (max-width: 767px) {
  .fs-body-product .olive-sp-purchase {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, calc(50% - 4px)) !important;
    column-gap: 8px !important;
  }
  .fs-body-product .olive-sp-purchase > .fs-c-productPrices {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 8px !important;
    margin: 12px 0 0 !important;
  }
  .olive-sp-purchase .olive-capacity {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px !important;
    font-weight: normal;
    color: #333;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .olive-sp-purchase .olive-capacity-original { display: none !important; }
  .fs-body-product .olive-sp-purchase .fs-c-productPrices > .fs-c-productPrice--selling {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: baseline !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }
  .olive-sp-purchase .fs-c-productPrice__main {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .olive-sp-purchase .fs-c-productPrice__main__label { display: none; }
  .olive-sp-purchase .fs-c-price__currencyMark,
  .olive-sp-purchase .fs-c-price__value {
    font-size: 26px !important;
    line-height: 1.2 !important;
    color: #48673b !important;
  }
  .olive-sp-purchase .fs-c-productPrice__addon {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 12px !important;
  }
  .fs-body-product .olive-sp-purchase > .fs-c-productPointDisplay {
    grid-column: 1 / -1 !important;
    text-align: right !important;
    padding: 0 8px 0 0 !important;
    margin: 0 0 12px !important;
    font-size: 12px;
    color: #48673b;
    line-height: 1.2 !important;
  }
  .fs-body-product .olive-sp-purchase > .fs-c-productQuantityAndWishlist { display: contents !important; }
  .fs-body-product .olive-sp-purchase .fs-c-productQuantityAndWishlist__quantity {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 0 8px !important;
    margin: 0 0 14px !important;
  }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__quantity::before { display: none !important; }
  .olive-sp-purchase .olive-quantity-label,
  .olive-sp-purchase .olive-quantity-button,
  .olive-sp-purchase .fs-c-quantity__select,
  .olive-sp-purchase .fs-c-quantity__number {
    flex: 0 0 auto !important;
    float: none !important;
    align-self: center !important;
  }
  .olive-sp-purchase .olive-quantity-label {
    width: auto !important;
    margin: 0 10px 0 0 !important;
    white-space: nowrap !important;
    font-size: 14px;
    color: #333;
  }
  .olive-sp-purchase .olive-quantity-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 36px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .olive-sp-purchase .olive-quantity-minus { border-radius: 5px 0 0 5px; }
  .olive-sp-purchase .olive-quantity-plus { border-radius: 0 5px 5px 0; }
  .olive-sp-purchase .fs-c-quantity__select,
  .olive-sp-purchase .fs-c-quantity__number {
    box-sizing: border-box;
    width: 48px !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 1px solid #ddd !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    text-align: center;
    text-align-last: center;
    font-size: 16px !important;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
  }
  .olive-sp-purchase .fs-c-quantity__message { flex: 0 0 100% !important; text-align: right; }
  .olive-sp-purchase .fs-c-quantity__message:empty { display: none !important; }
  .fs-body-product .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist {
    grid-column: 1 !important;
    grid-row: auto;
    order: 0;
    align-self: center !important;
    justify-self: start !important;
    width: 76px !important;
    max-width: 76px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist button {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist button::after,
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist .fs-c-button__label::before { display: none !important; }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist button::before {
    content: "♡" !important;
    display: block !important;
    position: static !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    font-family: Arial, sans-serif !important;
    font-size: 42px !important;
    line-height: 1 !important;
    color: #cb8996;
  }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist button.fs-c-button--removeFromWishList--detail::before { content: "♥" !important; }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist .fs-c-button__label {
    display: block !important;
    font-size: 0 !important;
    color: #555 !important;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap !important;
  }
  .olive-sp-purchase .fs-c-productQuantityAndWishlist__wishlist .fs-c-button__label::after {
    content: "お気に入り登録";
    display: block !important;
    position: static !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    font-size: 10px !important;
    color: #555 !important;
    line-height: 1.3 !important;
  }
  .olive-sp-purchase .fs-c-button--removeFromWishList--detail .fs-c-button__label::after { content: "お気に入り解除"; }
  .fs-body-product .olive-sp-purchase > .fs-c-productActionButton {
    grid-column: 2 / 4 !important;
    grid-row: auto;
    justify-self: end !important;
    align-self: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .olive-sp-purchase .fs-c-button--addToCart--detail {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border-radius: 30px !important;
    font-size: 15px !important;
  }
  .fs-body-product .olive-sp-purchase > .fs-c-inquiryAboutProduct { grid-column: 1 / 3 !important; width: 100% !important; }
  .fs-body-product .olive-sp-purchase > .fs-c-returnedSpecialContract { grid-column: 3 !important; width: 100% !important; }
}
@media screen and (min-width: 768px) {
  .olive-capacity, .olive-quantity-label, .olive-quantity-button { display: none !important; }
}

/* SP版 数量欄の配置順を修正 */
@media screen and (max-width: 767px) {

  .fs-body-product .olive-sp-purchase {
    grid-auto-flow: row !important;
  }

  /* 数量欄の配置順を初期化 */
  .fs-body-product .olive-sp-purchase
  .fs-c-productQuantityAndWishlist__quantity {
    order: 0 !important;
    grid-row: auto !important;
    grid-column: 1 / -1 !important;
    position: static !important;
  }

}