/* 商品ページ専用スコープ */
.item-page-custom {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    font-family: 'Noto Serif JP', serif !important;
}

.item-page-custom * {
    box-sizing: border-box !important;
}

.item-page-custom .item-main-container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 15px 8px 10px 8px !important;
    width: 100% !important;
}

/* タイトル & お知らせ */
.item-page-custom .item-header-title {
    margin: 0 0 16px 8px !important;
}

.item-page-custom .item-cate-badge {
    display: inline-block !important;
    padding: 4px 12px !important;
    background-color: #f3f4f6 !important;
    color: #111111 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 16px !important;
}

.item-page-custom .item-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111111 !important;
    margin: 0 !important;
}

.item-page-custom .item-lead-text {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #222222 !important;
    margin-bottom: 10px;
}

@media (max-width: 499px) {
    .item-page-custom .item-title {
        font-size: 24px !important;
    }

    .item-page-custom .item-lead-text {
        font-size: 17px !important;
    }
}

.item-page-custom .item-notice-box {
    margin-bottom: 28px !important;
    padding: 14px 18px !important;
    background-color: #ffeaed !important;
    color: #8b0000 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* メイン2カラムレイアウト */
.item-page-custom .item-grid-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    margin-bottom: 60px !important;
}

@media (min-width: 800px) {
    .item-page-custom .item-grid-container {
        grid-template-columns: 7fr 5fr !important;
        gap: 40px !important;
    }
}

/* スライダー構造補正 */
.item-page-custom .item-left-col {
    width: 100% !important;
    min-width: 0 !important;
}

.item-page-custom .slider-wrapper {
    width: 100% !important;
}

.item-page-custom .main-slider-container {
    position: relative !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

.item-page-custom .swiper {
    position: relative !important;
    overflow: hidden !important;
    list-style: none !important;
    padding: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
}

.item-page-custom .swiper-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    transition-property: transform !important;
    box-sizing: content-box !important;
}

.item-page-custom .main-swiper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-width: 100% !important;
}

.item-page-custom .main-swiper .swiper-slide {
    position: relative !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    cursor: pointer !important;
    background-color: #f9f9f9 !important;
    overflow: hidden !important;
}

.item-page-custom .main-swiper .slide-img,
.item-page-custom .main-swiper .slide-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-height: none !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.item-page-custom .video-play-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
    pointer-events: none !important;
}

.item-page-custom .video-play-overlay .play-btn {
    width: 64px !important;
    height: 64px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    font-size: 22px !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
}

.item-page-custom .swiper-button-next,
.item-page-custom .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.item-page-custom .swiper-button-prev {
    left: 12px !important;
    right: auto !important;
}

.item-page-custom .swiper-button-next {
    right: 12px !important;
    left: auto !important;
}

.item-page-custom .swiper-button-next:after,
.item-page-custom .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.item-page-custom .zoom-hint-badge {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 10 !important;
}

/* サムネイルスライダー */
.item-page-custom .thumb-swiper {
    width: 100% !important;
    margin-top: 12px !important;
    padding: 2px 0 !important;
}

.item-page-custom .thumb-swiper .swiper-wrapper {
    box-sizing: border-box !important;
}

.item-page-custom .thumb-slide {
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #e5e7eb !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, border-color 0.2s ease !important;
    box-sizing: border-box !important;
    background: #f9f9f9 !important;
}

.item-page-custom .thumb-swiper .swiper-slide-thumb-active {
    border-color: #013300 !important;
    opacity: 1 !important;
}

.item-page-custom .thumb-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
}

.item-page-custom .thumb-video-box {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background: #000000 !important;
    overflow: hidden !important;
}

.item-page-custom .thumb-video-element {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
}

.item-page-custom .thumb-video-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.25) !important;
}

.item-page-custom .thumb-play-icon {
    background: rgba(0, 0, 0, 0.75) !important;
    color: #ffffff !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* 右カラム */
.item-page-custom .item-right-col {
    width: 100% !important;
    min-width: 0 !important;
}

.item-page-custom .item-tags-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
}

.item-page-custom .item-badge {
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

.item-page-custom .badge-green {
    background-color: #013300 !important;
    color: #ffffff !important;
}

.item-page-custom .badge-gray {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.item-page-custom .badge-amber {
    background-color: #fef3c7 !important;
    color: #78350f !important;
    border: 1px solid #fde68a !important;
}

/* 価格表示 */
.item-page-custom .item-price-box {
    margin-bottom: 24px !important;
}

.item-page-custom .price-label {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 600;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
}

.item-page-custom .price-val-wrap {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.item-page-custom .price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.item-page-custom .price-unit {
    font-size: 13px !important;
    color: #000000 !important;
}

.item-page-custom .shipping-info {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.item-page-custom .shipping-info span {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.item-page-custom .shipping-link {
    background-color: #f3f4f6 !important;
    color: #111111 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 商品仕様テーブル */
.item-page-custom .item-specs-table {
    border-top: 1px dashed #cccccc !important;
    margin: 24px 0 !important;
    font-size: 15px !important;
}

.item-page-custom .spec-row {
    display: grid !important;
    grid-template-columns: 100px 1fr !important;
    padding: 12px 0 !important;
    border-bottom: 1px dashed #cccccc !important;
}

.item-page-custom .spec-label {
    font-weight: 700 !important;
    color: #111111 !important;
}

.item-page-custom .spec-value {
    color: #222222 !important;
    white-space: pre-line !important;
    word-break: break-word !important;
}

/* カート & 問い合わせボタン */
.item-page-custom .item-cart-container {
    margin-top: 24px !important;
}

.item-page-custom .cart-btn-wrapper input[type="submit"],
.item-page-custom .cart-btn-wrapper button {
    width: 100% !important;
    min-height: 52px !important;
    background-color: #013300 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.item-page-custom .cart-btn-wrapper input[type="submit"]:hover,
.item-page-custom .cart-btn-wrapper button:hover {
    background-color: #000000 !important;
}

.item-page-custom .inquiry-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 12px !important;
    background-color: #ffffff !important;
    color: #013300 !important;
    border: 2px solid #013300 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.item-page-custom .inquiry-button:hover {
    background-color: #f9fdf9 !important;
}

/* クイックガイド */
.item-page-custom .quick-guides-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 24px !important;
}

.item-page-custom .guide-card {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 4px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #111111 !important;
    font-size: 14px !important;
}

.item-page-custom .guide-icon {
    display: block !important;
    color: #013300 !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

/* 下部セクション群のPC幅制限（最大1000px・中央配置） */
.item-page-custom .item-content-section,
.item-page-custom .related-items-section,
.item-page-custom .shop-info-section {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.item-page-custom .item-content-section {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e5e7eb !important;
}

.item-page-custom .section-title-wrap {
    text-align: center !important;
    margin-bottom: 0px !important;
}

.item-page-custom .section-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.item-page-custom .title-divider {
    width: 48px !important;
    height: 2px !important;
    background-color: #013300 !important;
    margin: 0 auto !important;
}


/* =======================================================
   本文コンテンツエリア（the_content）用の標準CSS適用
   ======================================================= */
.item-page-custom .item-entry-content {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333333 !important;
}

.item-page-custom .item-entry-content h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 40px 0 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #013300 !important;
}

.item-page-custom .item-entry-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 32px 0 16px !important;
    padding-left: 12px !important;
    border-left: 4px solid #013300 !important;
}

.item-page-custom .item-entry-content h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 24px 0 12px !important;
}

.item-page-custom .item-entry-content p {
    margin-bottom: 20px !important;
}

/* コンテンツ内の画像・回り込み解除 */
.item-page-custom .item-entry-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 16px 0 !important;
    display: block !important;
}

.item-page-custom .item-entry-content img.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
}

.item-page-custom .item-entry-content img.alignleft {
    float: left !important;
    margin-right: 20px !important;
    margin-bottom: 20px !important;
}

.item-page-custom .item-entry-content img.alignright {
    float: right !important;
    margin-left: 20px !important;
    margin-bottom: 20px !important;
}

.item-page-custom .item-entry-content ul {
    list-style-type: disc !important;
    padding-left: 24px !important;
    margin-bottom: 20px !important;
}

.item-page-custom .item-entry-content ol {
    list-style-type: decimal !important;
    padding-left: 24px !important;
    margin-bottom: 20px !important;
}

.item-page-custom .item-entry-content li {
    margin-bottom: 8px !important;
}

.item-page-custom .item-entry-content a {
    color: #013300 !important;
    text-decoration: underline !important;
}

/* 本文内のテーブル */
.item-page-custom .item-entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 24px !important;
}

.item-page-custom .item-entry-content th,
.item-page-custom .item-entry-content td {
    border: 1px solid #d1d5db !important;
    padding: 10px 14px !important;
}

.item-page-custom .item-entry-content th {
    background-color: #f3f4f6 !important;
    font-weight: 700 !important;
}

/* フロートの解除 */
.item-page-custom .item-entry-content::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}


/* =======================================================
   関連商品セクション
   ======================================================= */
.item-page-custom .related-items-section {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e5e7eb !important;
}

.item-page-custom .related-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
}

.item-page-custom .related-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

@media (min-width: 768px) {
    .item-page-custom .related-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
}

.item-page-custom .related-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.item-page-custom .related-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.item-page-custom .related-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

.item-page-custom .related-img-wrap {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background-color: #f9f9f9 !important;
}

.item-page-custom .related-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.item-page-custom .related-info {
    padding: 12px 6px !important;
}

.item-page-custom .related-item-name {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    letter-spacing: -0.02em !important;
    color: #111111 !important;
    margin-bottom: 6px !important;
}

.item-page-custom .related-item-code,
.item-page-custom .related-item-price {
    display: block !important;
    font-size: 15px !important;
    color: #666666 !important;
}

/* =======================================================
   ショップ案内パーツ（itemshopinfo.php）のスタイル
   ======================================================= */
.item-page-custom .shop-info-section {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e5e7eb !important;
}

.item-page-custom .shop-info-block {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    margin-bottom: 32px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.item-page-custom .shop-info-heading {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 16px 20px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #013300 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.item-page-custom .shop-info-body {
    padding: 24px 18px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #333333 !important;
}

.item-page-custom .shop-info-body p {
    margin-top: 0 !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
}

.item-page-custom .sub-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 20px 0 10px !important;
    border-left: 3px solid #013300 !important;
    padding-left: 10px !important;
}

.item-page-custom .shipping-chart-box {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px dashed #e5e7eb !important;
}

.item-page-custom .chart-img-wrap {
    margin: 12px 0 !important;
    text-align: center !important;
}

.item-page-custom .full-responsive-img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.item-page-custom .rounded-img {
    border-radius: 8px !important;
}

.item-page-custom .notice-red-text {
    color: #d97706 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
}

/* リスト・定義リスト */
.item-page-custom .info-dl {
    margin: 0 !important;
}

.item-page-custom .info-dl dt {
    font-weight: 700 !important;
    color: #013300 !important;
    margin-top: 16px !important;
    margin-bottom: 6px !important;
    font-size: 15px !important;
}

.item-page-custom .info-dl dt:first-child {
    margin-top: 0 !important;
}

.item-page-custom .info-dl dd {
    margin-left: 0 !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
    color: #444444 !important;
}

.item-page-custom .info-ul {
    padding-left: 20px !important;
    margin: 10px 0 !important;
}

.item-page-custom .info-ul li {
    margin-bottom: 6px !important;
}

/* =======================================================
   安心の3年保証エリア（PC / スマホ自動切替）
   ======================================================= */

/* --- スマホ表示 (767px以下) --- */
.item-page-custom .warranty-flex-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    /* 右側（保証書）の高さに揃える */
}

.item-page-custom .warranty-left-col,
.item-page-custom .warranty-right-col {
    display: contents !important;
}

.item-page-custom .w-area-banner {
    grid-column: 1 / -1 !important;
    order: 1 !important;
}

.item-page-custom .w-area-notes {
    grid-column: 1 / -1 !important;
    order: 2 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.item-page-custom .w-area-worker {
    grid-column: 1 / 2 !important;
    order: 3 !important;
    height: 100% !important;
}

.item-page-custom .w-area-worker a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.item-page-custom .w-area-worker img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* 右側の高さに合わせて左右両端を自動カット */
    display: block !important;
    border-radius: 4px !important;
}

.item-page-custom .w-area-cert {
    grid-column: 2 / 3 !important;
    order: 4 !important;
}

.item-page-custom .w-area-banner img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 4px !important;
}

.item-page-custom .w-area-cert img {
    width: auto !important;
    height: 100% !important;
    display: block !important;
    border-radius: 4px !important;
    max-height: 400px !important
}

.item-page-custom .w-area-caption {
    grid-column: 1 / -1 !important;
    order: 5 !important;
    text-align: left !important;
    font-size: 14px !important;
    color: #444444 !important;
    margin-top: 4px !important;
}


/* --- PC表示 (768px以上) --- */
@media (min-width: 768px) {
    .item-page-custom .warranty-flex-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 28px !important;
        align-items: start !important;
    }

    .item-page-custom .warranty-left-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        flex: 1 1 50% !important;
        width: 50% !important;
    }

    .item-page-custom .warranty-right-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        flex: 1 1 50% !important;
        width: 50% !important;
        text-align: center !important;
    }

    .item-page-custom .w-area-banner,
    .item-page-custom .w-area-notes,
    .item-page-custom .w-area-worker,
    .item-page-custom .w-area-cert,
    .item-page-custom .w-area-caption {
        grid-column: auto !important;
        order: initial !important;
        width: 100% !important;
        height: auto !important;
    }

    .item-page-custom .w-area-worker a {
        height: auto !important;
    }

    .item-page-custom .w-area-worker img {
        height: auto !important;
        object-fit: initial !important;
    }

    .item-page-custom .w-area-caption p {
        font-size: 14px !important;
        text-align: left;
    }

    .item-page-custom .w-area-notes {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }

    .item-page-custom .w-area-notes p {
        margin: 0 !important;
    }

    .item-page-custom .w-area-caption {
        font-size: 13px !important;
        color: #333333 !important;
        margin-top: 4px !important;
    }
}


/* =======================================================
   代金引換・銀行振込テーブル
   ======================================================= */
.item-page-custom .cod-flex-wrap {
    margin-top: 10px !important;
}

.item-page-custom .cod-table {
    width: 100% !important;
    max-width: 500px !important;
    border-collapse: collapse !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
}

.item-page-custom .cod-table th,
.item-page-custom .cod-table td {
    border: 1px solid #d1d5db !important;
    padding: 8px 12px !important;
    text-align: left !important;
}

.item-page-custom .cod-table th {
    background-color: #f3f4f6 !important;
    font-weight: 700 !important;
}

.item-page-custom .cod-note {
    font-size: 12px !important;
    color: #666666 !important;
}

.item-page-custom .card-brands-img {
    max-width: 500px !important;
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 !important;
}

.item-page-custom .note-text {
    font-size: 12px !important;
    color: #666666 !important;
    margin-top: 6px !important;
}

.item-page-custom .note-text.text-red {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.item-page-custom .bank-card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 12px 0 !important;
}

@media (min-width: 640px) {
    .item-page-custom .bank-card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.item-page-custom .bank-card {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 12px !important;
}

.item-page-custom .bank-card strong {
    display: block !important;
    color: #013300 !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
}

.item-page-custom .bank-card p {
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* =======================================================
   モーダルライトボックス
   ======================================================= */
.item-page-custom .lightbox-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background-color: rgba(0, 0, 0, 0.92) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 16px !important;
}

.item-page-custom .lightbox-modal.hidden {
    display: none !important;
}

.item-page-custom .modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    color: #ffffff !important;
}

.item-page-custom .modal-counter {
    font-size: 13px !important;
    opacity: 0.8 !important;
}

.item-page-custom .modal-close-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 28px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
}

.item-page-custom .modal-body {
    position: relative !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

.item-page-custom .modal-media-img,
.item-page-custom .modal-media-video {
    max-height: 75vh !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.item-page-custom .modal-media-img.hidden,
.item-page-custom .modal-media-video.hidden {
    display: none !important;
}

.item-page-custom .modal-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    backdrop-filter: blur(4px) !important;
    z-index: 10 !important;
}

.item-page-custom .modal-nav-btn.prev-btn {
    left: 8px !important;
}

.item-page-custom .modal-nav-btn.next-btn {
    right: 8px !important;
}

.item-page-custom .modal-caption-box {
    max-width: 800px !important;
    width: 100% !important;
    margin: 8px auto 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.item-page-custom .modal-caption-text {
    color: #ffffff !important;
    font-size: 13px !important;
    margin: 0 !important;
}