@charset "UTF-8";

/* ========================================
   Product Section
======================================== */

.product {
  --product-bg: #efede6;
  --product-green: #718f6b;
  --product-text: #626262;

  background-color: var(--product-bg);
  color: var(--product-text);
  padding: 92px 40px 54px;
  box-sizing: border-box;
}

.product *,
.product *::before,
.product *::after {
  box-sizing: border-box;
}

.product__inner {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  grid-template-rows: max-content max-content minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 0;
}


/* PC：商品情報と購入フォームの間にある背景の隙間だけ白くする */
.product__inner::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  background-color: #fff;
  border-radius: 10px;
  pointer-events: none;
}

.product__info,
.product__colorme-cart {
  position: relative;
  z-index: 1;
}

.product__before-cart {
  display: contents;
}


.product__gallery {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.product__info {
  grid-column: 2;
  grid-row: 1;
}


.product__colorme-cart {
  grid-column: 2;
  grid-row: 2;
  background: #fff;
  padding: 62px clamp(26px, 3.5vw, 48px) 62px;
  border-radius: 0 0 10px 10px;
}


/* 商品画像 */
.product__gallery {
  min-width: 0;
}

.product__main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}


.product__main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* デザイン選択画像のみ拡大 */
#product-rhythm .product__main-image img.is-design-preview,
#product-rhythm .product__sp-carousel-slide img.is-design-preview {
  transform: scale(2.5);
  transform-origin: 50% 60%;
}

#product-swing .product__main-image img.is-design-preview,
#product-swing .product__sp-carousel-slide img.is-design-preview {
  transform: scale(1.35);
  transform-origin: 50% 60%;
}

#product-wave .product__main-image img.is-design-preview,
#product-wave .product__sp-carousel-slide img.is-design-preview {
  transform: translate(8%, -7%) scale(1.20);
  transform-origin: 50% 60%;
}


/* SPスワイプギャラリー：PCでは使用しない */
.product__sp-carousel {
  display: none;
}

/* デザイン確認バー：PCでは非表示 */
.product__selected-summary {
  display: none;
}

/* 選択中のデザイン名（画像プレビュー用） */
.product__selected-design {
  min-height: 1.5em;
  margin: 8px 0 16px;
  color: #606060;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}


.product__selected-design-name {
  font-size: 16px;
  font-weight: 450;
}

/* サムネイル */
.product__thumbnails {
  width: 90%;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.product__thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.product__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__thumbnail:hover,
.product__thumbnail.is-active {
  border-color: var(--product-green);
}

/* 購入情報パネル */

.product__info {
  min-width: 0;
  background: #fff;
  border-radius: 10px 10px 0 0;
  padding: clamp(26px, 3.5vw, 48px);
  padding-bottom: 0;
}

.cushion__heading {
  margin-bottom: 40px;
}

.product__title {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.product__lead {
  margin: 5px 0 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.product__form {
  margin-top: 28px;
}

.product__field {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.product__label {
  display: block;
  float: none;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* デザイン選択 */

.product__field--design {
  margin: 0;
}

.product__designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 65px);
  column-gap: 10px;
  row-gap: 12px;
  width: 100%;
}

.product__design {
  position: relative;
  display: block;
  cursor: pointer;
  width: 65px;
  height: 65px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}


.product__design input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.product__design img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(1.05);
}


.product__design input:checked+img {
  border-color: #999;
  outline: 1px solid #aaa;
  outline-offset: 2px;
}

.product__design input:focus-visible+img {
  outline: 2px solid var(--product-green);
  outline-offset: 3px;
}


/* クッションページ専用：カラー選択スウォッチ */
#product-cushion .cushion__colors {
  display: flex;
  align-items: center;
  gap: 12px;
}

#product-cushion .cushion__color {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#product-cushion .cushion__color input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#product-cushion .cushion__color-swatch {
  display: block;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 1px solid #999;
  border-radius: 50%;
  pointer-events: none;
}

#product-cushion .cushion__color-swatch--green {
  background: #718f6b;
}

#product-cushion .cushion__color-swatch--white {
  background: #fff;
}

#product-cushion .cushion__color input:checked+.cushion__color-swatch {
  outline: 1px solid #999;
  outline-offset: 2px;
}

#product-cushion .cushion__color input:focus-visible+.cushion__color-swatch {
  outline: 2px solid #718f6b;
  outline-offset: 3px;
}

/* モール選択 */
.product__field--mole {
  margin-top: 30px;
}

.product__mole-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product__mole {
  position: relative;
  width: 120px;
  height: 44px;
  border: 1px solid #999;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
  background: transparent;
}

.product__mole input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  border: 1px solid #888;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.product__mole input:checked {
  border-color: #3380b2;
  background: #3380b2;
  box-shadow: inset 0 0 0 3px #fff;
}

.product__mole input:focus-visible {
  outline: 2px solid var(--product-green);
  outline-offset: 3px;
}

.product__mole-text {
  margin-left: 12px;
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* 数量選択 */
.product__field--quantity {
  margin-top: 24px;
}

.product__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 120px;
  height: 44px;
  border: 1px solid #999;
  border-radius: 6px;
}

.product__quantity-button {
  width: 36px;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 21px;
}

.product__quantity input {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 40px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--product-text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.product__quantity input::-webkit-inner-spin-button,
.product__quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 価格・購入 */
.product__purchase {
  margin-top: 28px;
}

.product__price {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.product__tax {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.product__cart {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background: var(--product-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.product__cart:hover {
  opacity: 0.85;
}

.product__cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product__message {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.product__message:empty {
  display: none;
}

/* 追従カート */
.product-floating-cart {
  position: fixed;
  left: 0;
  top: 73%;
  transform: translateY(-50%);
  z-index: 900;
  width: 236px;
  min-height: 64px;
  padding: 12px 18px;
  border: none;
  border-radius: 0 12px 12px 0;
  background: #718f6b;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-floating-cart:hover {
  background: #607f5a;
}


/* ========================================
   Page Top Button (PC / SP)
======================================== */

.page-top-button {
  position: fixed;
  right: 15%;
  bottom: 45px;
  z-index: 950;
  display: block;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  --page-top-footer-offset: 0px;
  --page-top-hover-offset: 0px;

  transform: translateY(calc(var(--page-top-footer-offset) + var(--page-top-hover-offset) + 10px));

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));

}

.page-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(calc(var(--page-top-footer-offset) + var(--page-top-hover-offset)));
}


.page-top-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.page-top-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .page-top-button.is-visible:hover img {
    transform: translateY(-4px);
  }
}


.page-top-button:focus-visible {
  outline: 2px solid #718f6b;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  .page-top-button,
  .page-top-button img {
    transition: none;
  }
}


/* ========================================
   Product Details
======================================== */

.product-details {
  width: 100%;
  padding: 60px 40px 90px;
  background-color: #efede6;
  color: #626262;
}

.product-details *,
.product-details *::before,
.product-details *::after {
  box-sizing: border-box;
}

.product-details__inner {
  width: min(100%, 1000px);
  margin-inline: auto;
}

/* ========================================
   Tabs
======================================== */

.product-details__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.product-details__tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 10px 18px;
  border: none;
  border-bottom: 1px solid #c5c5c5;
  background: transparent;
  color: #b5b5b5;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.product-details__tab.is-active {
  color: #626262;
  border-bottom-color: #626262;
}

.product-details__tab:hover {
  color: #626262;
}

.product-details__tab:focus-visible {
  outline: 2px solid #718f6b;
  outline-offset: 4px;
}

/* 非表示パネル */
.product-details__panel[hidden] {
  display: none;
}

/* ========================================
   Product Information
======================================== */

.product-details__features {
  display: flex;
  flex-direction: column;
  gap: 55px;
  margin-top: 65px;
}

/* 画像とテキストの1グループ */
.product-details__feature {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 70px;
}

/* 2段目は左右を逆転 */
.product-details__feature:nth-child(2) .product-details__image {
  grid-column: 2;
  grid-row: 1;
}

.product-details__feature:nth-child(2) .product-details__content {
  grid-column: 1;
  grid-row: 1;
}

/* 4段目は左右を逆転 */
.product-details__feature:nth-child(4) .product-details__image {
  grid-column: 2;
  grid-row: 1;
}

.product-details__feature:nth-child(4) .product-details__content {
  grid-column: 1;
  grid-row: 1;
}

/* 商品画像 */
.product-details__image {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.product-details__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* 商品説明 */
.product-details__content {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
  text-align: left;
}

.product-details__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.09em;
  text-align: left;
}

.product-details__text+.product-details__text {
  margin-top: 26px;
}

.product-details__title {
  font-weight: 600;

  font-size: 18px;
}

.product-details__notes {
  margin-top: 20px;

  font-size: 14px;

  letter-spacing: 0.09em;

  color: #de4335;
  text-align: left;
}

.product-details__br-pc {
  display: inline;
}

.product-details__link {
  display: inline-block;

  margin-top: 10px;

  font-size: 14px;

  font-weight: 550;

  border-bottom: 1px solid #606060;

  text-align: left;
}

/* ========================================
   Product Specifications
======================================== */

.product-details__specs {
  display: flex;
  flex-direction: column;
  width: min(100%, 850px);
  margin: 55px auto 0;
}

/* PC版の並び順 */
.product-details__spec--code {
  order: 1;
}

.product-details__spec--size {
  order: 2;
}

.product-details__spec--weight {
  order: 3;
}

.product-details__spec--load {
  order: 4;
}

.product-details__spec--age {
  order: 5;
}

.product-details__spec--material {
  order: 6;
}

.product-details__spec--care {
  order: 7;
}

/* 項目 */
.product-details__spec {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  column-gap: 30px;
  min-height: 95px;
  padding: 22px 35px;
  border-bottom: 1px solid #c5c5c5;
}

.product-details__spec-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.product-details__spec-text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

ul.product-details__spec-text {
  list-style: disc;
}

/* ========================================
   Care Accordion
======================================== */

.product-details__spec--care {
  display: block;
  padding: 0 35px;
}

.product-details__accordion {
  width: 100%;
}

.product-details__accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 95px;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-details__accordion-title::-webkit-details-marker {
  display: none;
}

.product-details__accordion-title::marker {
  content: "";
}

.product-details__accordion-title:focus-visible {
  outline: 2px solid #718f6b;
  outline-offset: 4px;
}

/* 下向き矢印 */
.product-details__accordion-icon {
  display: block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border-right: 1px solid #626262;
  border-bottom: 1px solid #626262;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

/* 開いたとき */
.product-details__accordion[open] .product-details__accordion-icon {
  transform: rotate(225deg) translateY(-3px);
}

.product-details__accordion-content {
  padding: 0 0 28px;
}

.product-details__accordion-content p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
}


/* ========================================
   商品ポイントカルーセル
======================================== */
.product-points {
  --points-gap: 32px;
  --points-card-width: clamp(300px, 32vw, 360px);
  background: #f0ede6;
  color: #606060;
  padding: 20px 0 70px;
  overflow: hidden;
}

.product-points__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.product-points__viewport::-webkit-scrollbar {
  display: none;
}

.product-points__track {
  display: flex;
  align-items: stretch;
  gap: var(--points-gap);
  width: max-content;
  padding-inline: max(0px, calc((100vw - var(--points-card-width)) / 2));
}

.product-points__card {
  box-sizing: border-box;
  flex: 0 0 var(--points-card-width);
  width: var(--points-card-width);
  min-width: 0;
  min-height: 390px;
  padding: 24px 26px 32px;
  background: #fff;
  text-align: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.product-points__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.product-points__title {
  margin: 20px 0 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.12em;
}

.product-points__body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  text-align: left;
}


.product-points__body p {
  margin: 0;
}

.product-points__body p+p {
  margin-top: 14px;
}

.product-points__notes {
  font-size: 13px;
  color: #b5b5b5;
}

.product-points__count {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.14em;
}

@media screen and (max-width: 768px) {
  .product-points {
    --points-card-width: min(72vw, 330px);
    --points-gap: 16px;
    padding: 16px 0 48px;
  }

  .product-points__card {
    min-height: 370px;
    padding: 20px 18px 24px;
  }

  .product-points__title {
    font-size: 16px;
    margin: 16px 0 14px;
  }

  .product-points__body {
    font-size: 14px;
    line-height: 1.85;
  }

  .product-points__count {
    margin-top: 24px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-points__viewport {
    scroll-behavior: auto;
  }
}


/* ========================================
   RELATED PRODUCTS
======================================== */

.related-products {
  width: 100%;
  padding: 0 40px;
  background-color: #efede6;
  color: #626262;
}

.related-products *,
.related-products *::before,
.related-products *::after {
  box-sizing: border-box;
}

.related-products__inner {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: 45px 0 65px;
  border-top: 1px solid #b9b9b9;
  border-bottom: 1px solid #b9b9b9;
}

/* タイトル */
.related-products__title {
  margin: 0 0 30px;
  padding: 0;
  color: #626262;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: left;
}

/* 商品一覧 */
.related-products__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

/* 商品カード */
.related-products__item {
  flex: 0 0 152px;
  width: 152px;
  min-width: 0;
}

.related-products__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-products__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #fff;
}

.related-products__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.related-products__link:hover .related-products__image img {
  transform: scale(1.03);
}

/* 商品名 */
.related-products__name {
  margin: 8px 0 0;
  color: #626262;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

/* 価格 */
.related-products__price {
  margin: 4px 0 0;
  color: #626262;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* ========================================
   OTHER SIZES
======================================== */

.other-sizes {
  width: 100%;
  padding: 0 40px;
  background-color: #efede6;
  color: #626262;
}

.other-sizes *,
.other-sizes *::before,
.other-sizes *::after {
  box-sizing: border-box;
}

.other-sizes__inner {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: 45px 0 110px;
}

/* タイトル */
.other-sizes__title {
  margin: 0 0 40px;
  padding: 0;
  color: #626262;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: left;
}

/* 商品一覧 */
.other-sizes__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

/* 商品カード */
.other-sizes__item {
  flex: 0 0 152px;
  width: 152px;
  min-width: 0;
}

.other-sizes__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 商品画像 */
.other-sizes__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #fff;
}

.other-sizes__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.other-sizes__link:hover .other-sizes__image img {
  transform: scale(1.03);
}

/* 商品名 */
.other-sizes__name {
  margin: 8px 0 0;
  color: #626262;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

/* 価格 */
.other-sizes__price {
  margin: 4px 0 0;
  color: #626262;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {

  .product-details__tab,
  .product-details__accordion-icon {
    transition: none;
  }

  .related-products__image img {
    transition: none;
  }

  .other-sizes__image img {
    transition: none;
  }

}

/* ========================================
   PC 768px以上
======================================== */

@media screen and (min-width: 769px) {

  .site-header .global-nav a,
  .site-header .nav-products-button,
  .site-header .header-cart__link {
    color: #333;
    text-shadow: none;
  }

  .product-floating-cart {
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      background-color 0.2s ease;
  }

  .product-floating-cart.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

}

/* ========================================
   SP 768px以下
======================================== */

@media screen and (max-width: 768px) {
  .product {
    padding: 70px 20px 20px;
  }

  .product__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .product__inner::before {
    display: none;
  }

  .product__before-cart {
    display: block;
    position: relative;
    width: 100%;
  }

  .product__gallery {
    position: relative;
    width: 100%;
  }

  /* ========================================
   SP：デザイン確認バー
======================================== */

  .product__selected-summary {
    display: none;
  }

  /* デザインが選択された場合のみ表示 */
  .product__selected-summary.is-visible {
    position: sticky;
    top: 80px;
    z-index: 10;

    display: block;
    width: 100%;
    margin: 0 0 12px;

    pointer-events: none;
  }

  .product__selected-summary-inner {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 62px;
    padding: 8px 12px;

    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(96, 96, 96, 0.12);
    border-radius: 5px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .product__selected-summary-image {
    display: block;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    object-fit: cover;
    border-radius: 4px;
  }

  .product__selected-summary-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;

    min-width: 0;
  }

  .product__selected-summary-label {
    color: #888;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
  }

  .product__selected-summary-name {
    color: #606060;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    overflow-wrap: anywhere;
  }

  .product__colorme-cart {
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
  }

  .product__main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
  }


  /* SPではPC用メイン画像を非表示 */
  .product__main-image {
    display: none;
  }

  /* SPでは横スクロール式の画像ギャラリーを表示 */
  .product__sp-carousel {
    display: block;
  }

  .product__sp-carousel-viewport {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    background: #fff;
  }

  .product__sp-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .product__sp-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
  }

  .product__sp-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .product__sp-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
  }

  .product__selected-design {
    display: none;
  }

  .product__thumbnails {
    display: none;
  }

  .product__info {
    width: 100%;
    margin: 0;
    padding: 14px 0 0;
    border-radius: 0;
    background: transparent;
  }

  .product__title {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 0.07em;
  }

  .product__lead {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.6;
  }

  .product__form {
    margin-top: 20px;
  }

  .product__label {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .product__field--design {
    margin-bottom: 50px;
  }


  .product__designs {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(auto-fill, 65px);
    gap: 12px;

  }


  .product__design {
    width: 65px;
    height: 65px;
    aspect-ratio: 1 / 1;
  }

  .product__field--mole {
    margin-top: 30px;
  }

  /* SP モール選択 */
  .product__mole-options {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .product__mole {
    width: 110px;
    height: 38px;
    padding: 0 10px;
    border-radius: 5px;
  }

  .product__mole input {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }


  .product__mole-text {
    font-size: 16px;
    margin-left: 9px;
  }

  .product__field--quantity {
    margin-top: 26px;
  }

  .product__quantity {
    width: 110px;
    height: 38px;
  }

  .product__quantity-button {
    width: 33px;
    font-size: 20px;
  }

  .product__quantity input {
    width: 38px;
    font-size: 17px;
  }

  .product__purchase {
    margin-top: 28px;
  }

  .product__price {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .product__cart {
    min-height: 34px;
    border-radius: 5px;
    font-size: 14px;
  }

  .product-floating-cart {
    display: none;
  }


  .page-top-button {
    right: 28px;
    bottom: 28px;

  }

  .product-details {
    padding: 35px 20px 65px;
  }

  .product-details__inner {
    width: 100%;
  }

  /* Tabs */

  .product-details__tabs {
    gap: 15px;
  }

  .product-details__tab {
    padding: 0 5px 12px;
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  /* ========================================
     SP Product Information
  ======================================== */

  .product-details__features {
    gap: 45px;
    margin-top: 35px;
  }

  .product-details__feature {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  /* すべて画像→テキストの順番 */
  .product-details__feature .product-details__image {
    order: 1;
  }

  .product-details__feature .product-details__content {
    order: 2;
  }

 .product-details__image {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

  .product-details__image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
  }

.product-details__content {
  width: 100%;
  max-width: none;
  margin: 20px auto 0;
  text-align: center;
}

  .product-details__text {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.07em;
  }

  .product-details__text+.product-details__text {
    margin-top: 0px;
  }

  .product-details__title {
    font-size: 16px;

    margin-bottom: 16px;
  }

  .product-details__notes {
    font-size: 13px;
  }

  .product-details__br-pc {
    display: none;
  }

  /* ========================================
     SP Specifications
  ======================================== */

  .product-details__specs {
    width: 100%;
    margin-top: 20px;
  }

  /* SP版の並び順 */
  .product-details__spec--code {
    order: 1;
  }

  .product-details__spec--size {
    order: 2;
  }

  .product-details__spec--weight {
    order: 3;
  }

  .product-details__spec--material {
    order: 4;
  }

  .product-details__spec--load {
    order: 5;
  }

  .product-details__spec--age {
    order: 6;
  }

  .product-details__spec--care {
    order: 7;
  }

  /* 項目名→説明文 */
  .product-details__spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 12px;
    padding: 25px 0;
  }


  /* SP 詳細情報：テキスト位置調整 */

  .product-details__spec-title {
    padding-left: 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.08em;
  }

  .product-details__spec-text {
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
  }


  /* ========================================
     SP Accordion
  ======================================== */

  .product-details__spec--care {
    display: block;
    padding: 0;
  }

  .product-details__accordion-title {
    min-height: 80px;
    font-size: 16px;
    font-weight: 500;
    padding-left: 20px;
  }

  .product-details__accordion-content {
    padding-bottom: 25px;
    padding-left: 20px;
  }

  .product-details__accordion-content p {
    font-size: 15px;
    line-height: 1.9;
  }

  .related-products {
    padding: 0 20px;
  }

  .related-products__inner {
    width: 100%;
    padding: 30px 0 50px;
  }

  .related-products__title {
    margin-bottom: 35px;
    font-size: 24px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .related-products__list {
    gap: 20px;
  }

  .related-products__item {
    flex: 0 0 175px;
    width: 175px;
    max-width: 100%;
  }

  .related-products__name {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.5;
  }

  .related-products__price {
    margin-top: 6px;
    font-size: 16px;
  }

  /* ========================================
   SP OTHER SIZES
======================================== */

  .other-sizes {
    padding: 0 20px;
  }

  .other-sizes__inner {
    width: 100%;
    padding: 60px 0 60px;
  }

  .other-sizes__title {
    margin-bottom: 30px;
    font-size: 24px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .other-sizes__list {
    gap: 20px;
  }

  .other-sizes__item {
    flex: 0 0 calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    min-width: 0;
  }

  .other-sizes__name {
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.5;
  }

  .other-sizes__price {
    margin-top: 6px;
    font-size: 16px;
  }

}

/* アニメーション軽減設定 */
@media (prefers-reduced-motion: reduce) {

  .product__cart,
  .product__thumbnail,
  .product-floating-cart {
    transition: none;
  }
}

/* ========================================
   どこでもカラーミー 表示デザイン調整
======================================== */

/* フォーム全体のフォント設定 */
.product__colorme-cart .cartjs_box {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #606060;
  text-align: left;
}

/* 商品情報テーブルの文字揃え */
.product__colorme-cart .cartjs_product_table table {
  text-align: left !important;
}

/* 項目名：販売価格・購入数・デザイン・モール */
.product__colorme-cart .cartjs_product_table th {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500 !important;
  color: #606060;
  text-align: left;
}

/* 項目内容：価格・数量・選択肢 */
.product__colorme-cart .cartjs_product_table td {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #606060;
  text-align: left;
}

/* 販売価格 */
.product__colorme-cart .cartjs_sales_price td {
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* 数量入力欄・プルダウン */
.product__colorme-cart .cartjs_product_input_txt,
.product__colorme-cart .cartjs_option select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #606060;
  text-align: left;
}

/* カートに入れるボタン */
.product__colorme-cart .cartjs_cart_in input[type="submit"] {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px !important;
  font-weight: 600;
  background-color: #6d8b66 !important;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

/* ボタンのホバー */
.product__colorme-cart .cartjs_cart_in input[type="submit"]:hover {
  opacity: 0.85;
}

.cushon__colorme-cart {

  margin-top: 100px;
}

/* ========================================
   SP：どこでもカラーミー カートボタン
   PCと背景色・フォントを統一
======================================== */

/* スマートフォンなどのタッチ端末向け */
@media (hover: none) and (pointer: coarse) {

  .product__colorme-cart .cartjs_cart_in input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;

    background: #6d8b66 !important;
    background-image: none !important;

    font-family: "Noto Sans JP", sans-serif !important;
  }

}