﻿body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ns-price-font-size: 23.68px;
}

.detail-shell {
  max-width: 380px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  border-left: 0;
  border-right: 0;
}

/* Keep header full viewport width like TOP/favorites (.app is 100% wide). */
.detail-shell > .top-bar,
.detail-shell > .top-tools {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .detail-shell > .top-bar,
  .detail-shell > .top-tools {
    width: 56vw;
    max-width: 760px;
    min-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.net-super-preview-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #f0b4b4;
  border-radius: 0;
  background: #fdeaea;
  color: #7a1f1f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.bottom-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.warn-text {
  margin: 46.4px 0 15.8px;
  color: #FF1F11;
  font-size: 16.8px;
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
  padding: 0 10px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.warn-text-inline {
  display: none;
}

.warn-text-below {
  display: block;
}

.detail-main {
  padding: 0 10px 16px;
}

.detail-grid {
  display: block;
}

.detail-left {
  position: relative;
  text-align: center;
  padding-bottom: 0;
}

.detail-favorite-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  margin: 0;
}

.detail-temperature-badge {
  position: absolute;
  top: 14px;
  right: 71px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 6px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 45px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  text-align: center;
}

.detail-temperature-badge--frozen {
  background: linear-gradient(180deg, #4f8fe6 0%, #2e67b8 100%);
}

.detail-temperature-badge--refrigerated {
  background: linear-gradient(180deg, #74c66f 0%, #4a9b48 100%);
}

.detail-favorite {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  background: #ffffff;
  color: #b8b8b8;
  font-size: 32px;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.detail-favorite.is-active {
  color: #ef6c79;
}

.hero-image {
  width: 100%;
  min-width: 0;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
  margin: 0 auto;
}

.thumbs-wrap {
  margin-top: 10px;
  padding: 5px 0 5px;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}

.thumbs {
  width: 220px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.thumb-btn {
  width: 70px;
  height: 60px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-btn.active {
  width: 70px;
  height: 60px;
  border-radius: 10px;
  background: #d8d8d8;
  padding: 2px;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 4px;
}

.detail-right {
  padding-top: 8px;
  padding-left: 0;
  padding-right: 0;
}

/* キャッチフレーズあり時：画像列との境やプレビュー帯の直下で詰まりすぎないよう上余白を確保 */
.detail-right:has(.product-catchphrase) {
  padding-top: 18px;
}

.product-name {
  margin: 0 0 12px;
  padding: 2px 0 4px;
  font-size: 29.6px;
  font-weight: 700;
  line-height: 1.18;
  color: #111;
}

.product-standards {
  margin-top: 4px;
  margin-left: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #555;
  word-break: break-word;
}

/* 商品名より目立つキャッチ（カタログ詳細の青太字より強調） */
.product-catchphrase {
  margin: 0 0 2px;
  padding: 0;
  font-size: 23.68px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #005ce6;
  word-break: break-word;
}

.detail-right:has(.product-catchphrase) .product-name {
  margin: 0 0 10px;
  padding: 0;
  font-size: 29.6px;
  font-weight: 700;
  line-height: 1.18;
  color: #2a2a2a;
}

.catalog-plan-name {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}

.catalog-plan-label {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 6px;
  font-weight: 600;
  color: #333;
}

.weight {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: #333;
  white-space: pre-line;
}

.price-row {
  margin-top: 6px;
  margin-left: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
  white-space: nowrap;
}

.price-row span {
  display: inline-block;
  vertical-align: baseline;
}

.price-label {
  font-size: var(--ns-price-font-size) !important;
  line-height: 1.3;
  color: #CB2F3D;
  font-weight: 500;
  margin-left: 0;
  padding: 2px 0 4px;
}

.price-main {
  font-size: var(--ns-price-font-size) !important;
  line-height: 1.3;
  color: #CB2F3D;
  font-weight: 500;
  padding: 2px 0 4px;
}

.price-main {
  margin-left: 0;
}

.price-tax {
  flex-basis: 100%;
  margin-left: 0;
  font-size: 20px;
  color: #555;
  white-space: nowrap;
  font-weight: 400;
}

.qty-row {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2f2f2f;
}

.low-stock-count {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 8px;
  border: 1px solid #ffe08a;
  border-radius: 3px;
  background: #fff8db;
  color: #8a6d1d;
  font-size: 16px;
  font-weight: 700;
}

.low-stock-count + .qty-row {
  margin-top: 6px;
}

.qty-row label {
  font-size: var(--ns-price-font-size);
  line-height: 1.3;
}

.qty-select {
  width: 60px;
  height: 40px;
  border: 1px solid #9a9a9a;
  border-radius: 0;
  background: #fff;
  font-size: 20px;
  padding: 0 2px;
}

.qty-select:focus {
  box-shadow: none;
}

.cart-btn {
  margin-top: 12px;
  margin-left: 20px;
  width: calc(100% - 40px);
  border: 0;
  border-radius: 4px;
  background: #CB2F3D;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 14px;
  box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, .3);
}

.cart-btn--soldout {
  background: #aaa !important;
  cursor: default !important;
  pointer-events: none !important;
}

.related-wrap {
  margin-top: 12px;
  background: #f6e9ed;
  border-radius: 8px;
  padding: 8px 6px 10px;
}

.related-title {
  margin: 15px 4px;
  font-size: 20px;
  color: #333;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.related-title::after {
  content: none;
}

.related-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: hidden;
}

.related-grid> :nth-child(n + 11) {
  display: none;
}

.related-card {
  flex: 0 0 calc((100% - 90px) / 10);
  position: relative;
  border-radius: 16px;
  border: 1px solid #d9d9d9;
  background: #fff;
  overflow: hidden;
}

.related-card .favorite-toggle-form {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  margin: 0;
}

.related-favorite {
  position: static;
  top: auto;
  right: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #c8c8c8;
  background: #f7f7f7;
  color: #b8b8b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
}

.related-favorite.is-active {
  color: #ef6c79;
  border-color: #ef6c79;
  background: #fff5f6;
}

.related-link,
.related-name-link {
  color: inherit !important;
  text-decoration: none !important;
}

.related-image {
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid #d5d5d5;
  background: #fff;
}

.related-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}

.related-body {
  min-height: 102px;
  padding: 6px 7px 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.related-name {
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.35em * 2);
  overflow-wrap: anywhere;
}

.related-subinfo {
  font-size: 10px !important;
  margin: 0 0 4px;
  line-height: 1.25;
  color: #5f5f5f;
  font-weight: 600;
}

.related-price-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  column-gap: 6px;
  align-items: end;
  margin-top: auto;
}

.related-price-group {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
}

.related-price-main {
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  color: #8F090B;
  font-weight: 800;
}

.related-price-tax {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 600;
  color: #666;
  line-height: 1.2;
  white-space: normal;
  word-break: keep-all;
  overflow: visible;
}

.related-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: #ff7f63;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.related-order-button--soldout {
  background: #aaa !important;
  color: #fff !important;
  cursor: default !important;
  pointer-events: none !important;
}

.related-desktop-only {
  display: none;
}

@media (max-width: 767px) {
  .product-catchphrase {
    font-weight: 500 !important;
  }

  .price-label {
    font-weight: 500 !important;
  }

  .info-card-primary .section-title,
  .info-card-spec .section-title,
  .info-card-allergy .section-title,
  .info-card-company .section-title {
    font-size: calc(var(--ns-price-font-size) * 0.9) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
    letter-spacing: 0 !important;
    margin: 0 0 8px !important;
  }

  .warn-text {
    margin: 46.4px 0 15.8px;
    font-size: 16.8px;
    font-weight: 700;
    color: #FF1F11;
    text-align: center;
    padding: 0 10px;
  }


  .more-link {
    width: 188px;
    min-width: 188px;
    max-width: 188px;
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #d4d4d4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
    color: #333;
  }

  .more-link.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

    @media (max-width: 1023.98px) {
      .related-wrap.related-mobile {
        width: 100vw;
        margin-top: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        padding-left: 10px;
        padding-right: 10px;
      }
      .related-wrap.related-mobile .related-title {
        margin-top: 0;
      }
      .related-wrap.related-mobile .related-name {
        font-size: 14px !important;
        line-height: 1.35;
      }
      .related-wrap.related-mobile .related-price-main {
        font-size: 18px;
      }
      .related-wrap.related-mobile .related-price-tax {
        font-size: 12px;
        line-height: 1.2;
      }
      .related-wrap.related-mobile .related-price-row {
        grid-template-columns: minmax(0, 1fr) 46px;
        column-gap: 6px;
      }
      .related-wrap.related-mobile .related-order-button {
        font-size: 14px;
        min-width: 0;
        width: 100%;
        padding: 0 4px;
      }
      .related-wrap.related-mobile .related-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
      }
      .related-wrap.related-mobile .related-card {
        flex: initial;
      }
      .related-wrap.related-mobile .related-add-icon {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
      }
      .related-wrap.related-mobile .related-add-icon img {
        width: 100%;
        height: auto;
        object-fit: contain;
        padding-top: 100px;
      }
    }

.info-list {
  margin-top: 14px;
}

.info-card {
  margin-top: 14px;
  border: 1px solid #a4a7ab;
  border-radius: 12px;
  background: #fff;
  padding: 12px 12px 10px;
}

.info-card-primary {
  border-color: #a4a7ab;
}

.section-title,
.status-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #202020;
}

.info-card-primary .section-title {
  display: inline-flex;
  align-items: center;
  font-size: 23.68px;
  font-weight: 600 !important;
}

.info-card-spec .section-title {
  display: inline-flex;
  align-items: center;
}

.info-card-status .section-title {
  font-size: 23.68px;
  font-weight: 600 !important;
}

.info-card-allergy .section-title,
.info-card-company .section-title {
  display: inline-flex;
  align-items: center;
  font-size: 23.68px;
  font-weight: 600 !important;
}

.info-card-spec .section-title::after {
  content: "";
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-left: 8px;
  background-image: url("../images/spec-icon-ojigi.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 auto;
}

.info-card-spec .section-title {
  font-size: 23.68px;
  font-weight: 600 !important;
}

.catchphrase-body {
  white-space: normal;
}

.info-card-primary .section-title::after,
.info-card-allergy .section-title::after,
.info-card-company .section-title::after,
.info-card-status .section-title::after {
  content: "";
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-left: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 auto;
}

.info-card-status .section-title {
  display: inline-flex;
  align-items: center;
}

.info-card-primary .section-title::after {
  background-image: url("../images/description-icon.jpg");
}

.info-card-allergy .section-title::after {
  background-image: url("../images/allergy-icon.jpg");
}

.info-card-company .section-title::after {
  background-image: url("../images/company-icon.svg");
}

.info-card-status .section-title::after {
  background-image: url("../images/delivery-method-icon.svg");
}

.section-body,
.status-body {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: #2f2f2f;
  white-space: pre-line;
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 400 !important;
}

.desc-body {
  display: block;
  overflow: hidden;
  max-height: calc(1.4em * 5);
  line-height: 1.4;
  word-break: break-word;
}

.desc-body.expanded {
  max-height: none;
  overflow: visible;
}

.more-link {
  display: none;
  width: 60%;
  height: 34px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  color: #444;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.more-link.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-link span {
  display: block;
  width: 100%;
  text-align: center;
}

.allergy-body > div + div {
  margin-top: 2px;
}

.info-card-primary .section-body,
.info-card-spec .section-body,
.info-card-allergy .section-body,
.info-card-company .section-body,
.info-card-status .section-body {
  font-size: 17.55px;
  font-weight: 400 !important;
}

.back-btn {
  margin-top: 18px;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none !important;
  background: #656b72;
  color: #fff !important;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.details-footer {
  padding: 10px 10px 16px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.details-footer .back-btn {
  margin-top: 0;
  background: #7f7070;
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  max-width: 378px;
  min-height: 44px;
  box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.3);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  padding: 0.4rem 0.75rem !important;
}

.details-footer .back-btn .back-btn-label {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.back-btn-inner-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  position: absolute;
  left: calc(50% + -105px);
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0;
  flex: 0 0 auto;
}

.mobile-back-btn {
  display: none;
  margin: 30px auto;
  background: #7f7070;
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  max-width: 378px;
  min-height: 44px;
  box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.3);
  font-size: 16px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.4rem 0.75rem;
}

@media (max-width: 1023px) {
  .mobile-back-btn {
    display: flex !important;
  }
}

.mobile-back-btn .back-btn-label {
  display: inline-block;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .detail-shell {
    max-width: 720px;
    min-height: auto;
    margin: 14px auto;
   /* box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);*/
  }

  .detail-main {
    padding: 4px 14px 18px;
  }
.warn-text{
  font-size: 26.8px !important;
}
.qty-select 
{
      height: 40px  !important;
      width: 60px !important;
      font-size: 20px !important;
      border: 1px solid #9a9a9a !important;
      border-radius: 0 !important;
      background: #fff !important;
      padding: 0 2px !important;
}
  .hero-image {
    width: 100%;
    max-width: none;
  }

  .thumbs {
    width: 230px;
    gap: 34px;
  }

  .thumb-btn {
    width: 48px;
    height: 48px;
  }

  .thumb-btn.active {
    width: 60px;
    height: 60px;
  }

  .detail-right {
    padding-left: 0;
    padding-right: 0;
  }

  .product-name {
    font-size: 28px;
    font-weight: 400;
    color: #111;
    line-height: 1.28;
    margin-left: 0;
    margin-top: 0;
  }

  .detail-right:has(.product-catchphrase) .product-name {
    font-size: 17px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.35;
  }

  .product-catchphrase {
    margin-bottom: 16px;
    font-size: 1.85rem;
    font-weight: 500;
    color: #005ce6;
  }

  .weight {
    font-size: 20px;
  }

  .price-label {
    font-size: 28px !important;
    font-weight: 500;
    color: #CB2F3D;
    /*margin-left: 14px;*/
  }

  .price-main {
    font-size: 26px;
    font-weight: 500;
    color: #CB2F3D;
  }

  .price-tax {
    font-size: 20px;
    color: #555;
    font-weight: 400;
  }

  .qty-row {
    font-size: 20px;
  }

  .cart-btn {
        /* width: 100%; */
        margin-left: 20px;
        font-size: 25px;
        padding: 8px 12px;
        margin-right: 20px;
        height: 56px;
    }
    .top-return-button{
      min-width: 300px !important;
      height: 49px !important;
      font-size: 18px;
    }

  .section-title,
  .status-title {
    font-size: 16px;
  }

  .section-body,
  .status-body {
    font-size: 20px;
  }

  .back-btn {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {

  body {
    background: #fff;
  }
.warn-text{
  font-size: 26.8px !important;
}
  .detail-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100vh !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }

  .detail-main {
    padding: 8px 10px 22px !important;
  }

  .details-footer .back-btn {
    width: 56vw;
    max-width: 760px;
    min-width: 520px;
    font-size: 18px;
  }

  .warn-text-inline {
    display: block;
    flex: 0 0 100%;
    order: 3;
    width: 100%;
    max-width: none;
    margin: 18px 0 30px;
    transform: none;
    font-size: 24px;
    line-height: 1.45;
    white-space: normal;
    text-align: center;
  }

  .warn-text-inline .warn-first-line {
    display: inline;
    white-space: normal;
  }

  .warn-text-inline .warn-second-line {
    display: inline;
    white-space: normal;
  }

  .warn-text-below {
    display: none;
  }

  .net-super-browse-mode .warn-text-below {
    display: block;
    width: 56vw;
    max-width: 760px;
    min-width: 520px;
    margin: 46px auto 24px;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 16px !important;
    line-height: 1.45;
    text-align: center;
  }

  .detail-grid {
    display: grid !important;
    grid-template-columns: minmax(420px, 520px) minmax(420px, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
  }

  .related-mobile {
    display: none;
  }

  .related-desktop-only {
    display: block !important;
    max-width: 1100px;
    margin: 18px auto 22px;
  }

  .related-desktop-only .related-wrap {
    margin-top: 0;
  }

  .related-desktop-only .related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: hidden;
    padding-bottom: 4px;
  }

  .related-desktop-only .related-card {
    flex: 0 0 calc((100% - 72px) / 10);
    border-radius: 10px;
  }

  .related-desktop-only .related-favorite {
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .related-desktop-only .related-body {
    min-height: 86px;
    padding: 5px 6px 5px;
  }

  .related-desktop-only .related-name {
    font-size: 12px !important;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    margin-bottom: 4px;
  }

  .related-desktop-only .related-subinfo {
    font-size: 10px !important;
    line-height: 1.25;
    margin: 0 0 4px;
  }

  .related-desktop-only .related-price-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    column-gap: 4px;
  }

  .related-desktop-only .related-price-main {
    font-size: 12px;
  }

  .related-desktop-only .related-price-tax {
    font-size: 8px;
    line-height: 1.2;
    margin-top: 2px;
  }

  .related-desktop-only .related-order-button {
    min-width: 32px;
    height: 23px;
    padding: 0 2px;
    border-radius: 8px;
    font-size: 9px;
  }

  .detail-left {
    padding-right: 4px;
  }

  .detail-right {
    padding-top: 0;
    padding-left: 8px;
    padding-right: 0;
  }

  .hero-image {
    width: 100% !important;
    max-width: none !important;
  }

  .thumbs {
    width: 210px !important;
  }

  .thumb-btn {
    width: 50px !important;
    height: 50px !important;
  }

  .thumb-btn.active {
    width: 62px !important;
    height: 62px !important;
  }

  .product-name {
    font-size: 43.2px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.2 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .detail-right:has(.product-catchphrase) {
    padding-top: 18px !important;
  }

  .detail-right:has(.product-catchphrase) .product-name {
    font-size: 43.2px !important;
    font-weight: 800 !important;
    color: #2a2a2a !important;
    line-height: 1.2 !important;
  }

  .product-catchphrase {
    margin-bottom: 16px !important;
    font-size: 2.22rem !important;
    font-weight: 500 !important;
    color: #005ce6 !important;
  }

  .price-label {
    font-size: 31.2px !important;
    font-weight: 500 !important;
    color: #CB2F3D !important;
    margin-left: 0 !important;
  }

  .price-main {
    font-size: 31.2px !important;
    font-weight: 500 !important;
    color: #CB2F3D !important;
  }

  .price-tax {
    font-size: 20px !important;
    color: #555 !important;
    font-weight: 400 !important;
  }

  .cart-btn {
    font-size: 24px !important;
    font-weight: 700 !important;
    min-height: 52px !important;
  }

  .cart-btn .fa-shopping-cart {
    font-size: 24px !important;
  }
}

/* Final mobile override: keep section headings same size as "本体価格" */
@media (max-width: 767px) {
  .product-name,
  .detail-right:has(.product-catchphrase) .product-name {
    font-weight: 900 !important;
  }

  .detail-right:has(.product-catchphrase) .product-name {
    margin: 0 0 4px !important;
  }

  .price-row {
    margin-top: 2px !important;
  }

  .info-list {
    margin-top: 28px;
  }

  .detail-right .info-list .info-card-primary .section-title,
  .detail-right .info-list .info-card-spec .section-title,
  .detail-right .info-list .info-card-allergy .section-title,
  .detail-right .info-list .info-card-company .section-title,
  .detail-right .info-list .info-card-status .section-title {
    font-size: calc(var(--ns-price-font-size) * 0.9) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
    letter-spacing: 0 !important;
  }

  .detail-right .info-list .info-card-primary .section-body,
  .detail-right .info-list .info-card-spec .section-body,
  .detail-right .info-list .info-card-allergy .section-body,
  .detail-right .info-list .info-card-company .section-body,
  .detail-right .info-list .info-card-status .section-body,
  .detail-right .info-list .desc-body,
  .detail-right .info-list .allergy-body,
  .detail-right .info-list .standards-spec-body {
    font-size: 17.55px !important;
    font-weight: 400 !important;
  }

  .detail-right .info-list .info-card-primary .section-body *,
  .detail-right .info-list .info-card-spec .section-body *,
  .detail-right .info-list .info-card-allergy .section-body *,
  .detail-right .info-list .info-card-company .section-body *,
  .detail-right .info-list .info-card-status .section-body *,
  .detail-right .info-list .desc-body *,
  .detail-right .info-list .allergy-body *,
  .detail-right .info-list .standards-spec-body * {
    font-weight: 400 !important;
  }
}

/* 429px以下: 関連商品の金額・ボタン調整（767px/1023px の上書き） */
@media (max-width: 429px) {
  .related-wrap.related-mobile .related-body {
    padding: 6px 6px 6px;
  }
  .related-wrap.related-mobile .related-price-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    column-gap: 3px;
  }
  .related-wrap.related-mobile .related-price-group {
    min-width: 0;
    overflow: hidden;
  }
  .related-wrap.related-mobile .related-price-main {
    font-size: 16px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .related-wrap.related-mobile .related-price-tax {
    font-size: 10px;
    white-space: nowrap;
  }
  .related-wrap.related-mobile .related-order-button {
    width: 100% !important;
    min-width: 0;
    max-width: 40px;
    height: 26px;
    padding: 0 2px;
    font-size: 11px;
    border-radius: 8px;
  }
}

/* SweetAlert2 custom design — matches net_super_shop_cart */
.swal2-popup {
  text-align: center;
  background-color: #f2f2f2 !important;
  box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.3);
}
.swal2-title {
  font-size: 1.1em !important;
}
.swal2-html-container {
  font-size: 1em !important;
  text-align: left !important;
}
.swal2-confirm,
.swal2-deny,
.swal2-cancel {
  margin: 5px;
  color: #fff !important;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  width: 100px;
  min-width: 100px;
}
.net-super-browse-mode .favorite-toggle-form {
  display: none !important;
}
.net-super-browse-mode .detail-favorite-form {
  display: block !important;
  pointer-events: none;
}
.net-super-browse-mode .detail-favorite {
  color: #b8b8b8 !important;
  background: #ffffff !important;
  border-color: #d5d5d5 !important;
  opacity: 0.75;
  cursor: default;
}
.swal2-popup.net-super-browse-popup {
  width: min(92vw, 360px);
  padding: 24px 20px 20px;
  border: 1px solid #a9cbd8;
  border-radius: 10px;
  background-color: #c4eaf9 !important;
}
.swal2-title.net-super-browse-popup-title {
  width: 100%;
  padding: 6px 4px 8px;
  color: #f05a62;
  background-color: transparent;
  font-size: 1.1rem !important;
  font-weight: 700;
  line-height: 1.45;
  box-sizing: border-box;
}
.swal2-html-container.net-super-browse-popup-body {
  margin: 14px 0 0;
  color: #333;
  font-size: 0.94rem !important;
  font-weight: 600;
  line-height: 1.75;
  text-align: center !important;
}
.net-super-browse-popup-mascot {
  display: block;
  width: 88px;
  height: auto;
  margin: 22px auto 4px;
}
.swal2-actions .net-super-browse-popup-close {
  width: auto;
  min-width: 150px;
  padding: 9px 28px;
  border: 2px solid #aaa !important;
  border-radius: 50px;
  background-color: #fff !important;
  color: #333 !important;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}
.swal2-actions .net-super-quantity-limit-button {
  width: auto;
  min-width: 150px;
  padding-right: 18px;
  padding-left: 18px;
  white-space: nowrap;
}
.swal2-title.net-super-sold-out-title {
  width: 100%;
  padding: 14px 12px;
  background-color: #e9ecef;
  box-sizing: border-box;
}
.swal2-icon,
.swal2-image,
.swal2-progress-steps,
.swal2-range,
.swal2-select,
.swal2-radio,
.swal2-checkbox,
.swal2-input,
.swal2-file,
.swal2-validation-message,
.swal2-timer-progress-bar-container {
  display: none !important;
}

