#primary * {
    letter-spacing: 0em;
}

.claim-form .c-members-sns{
    display: none;
}


.media-modal * {
    letter-spacing: 0em;
}

/* Product Info Archive Table */
.product-info-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.copy-url-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-url-button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.copy-url-button.copied {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.copy-url-button svg {
    flex-shrink: 0;
}

.product-info-table-wrapper {
	overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.product-info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.product-info-table th,
.product-info-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 14px;
	vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* 備考欄のみ改行を許可して全文表示 */
.product-info-table td:nth-child(7),
.product-info-table td.remarks-column {
    white-space: normal !important;
    max-width: 400px !important;
    overflow: visible !important;
    text-overflow: initial !important;
    word-break: break-word !important;
    line-height: 1.6 !important;
}

.product-info-table td.remarks-column a {
    color: #0066cc;
    text-decoration: underline;
}

/* DataTablesのデフォルトスタイルを上書き */
table.dataTable td.remarks-column {
    white-space: normal !important;
    word-wrap: break-word !important;
}

table.dataTable.nowrap td.remarks-column {
    white-space: normal !important;
}

.product-info-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.product-info-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.product-info-table tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}

.product-info-table td .wysiwyg-content p:last-child {
	margin-bottom: 0;
}

/* モバイル最適化 */
@media screen and (max-width: 768px) {
    .product-info-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .copy-url-button {
        width: 100%;
        justify-content: center;
    }

    .product-info-table-wrapper {
        border-radius: 4px;
        margin-bottom: 1.5rem;
    }

    .product-info-table {
        display: block;
        border: none;
    }

    .product-info-table thead {
        display: none;
    }

    .product-info-table tbody {
        display: block;
    }

    .product-info-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .product-info-table tr:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .product-info-table td {
        display: block;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 15px;
        text-align: left;
        position: relative;
        padding-left: 45%;
    }

    .product-info-table td:last-child {
        border-bottom: none;
    }

    .product-info-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        color: #666;
        white-space: nowrap;
    }

    .product-info-table td:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        background-color: #f9f9f9;
        font-weight: 600;
    }
}

/* タブレット最適化 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .product-info-container {
        padding: 1.5rem;
    }

    .product-info-table th,
    .product-info-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ページネーション */
.product-info-container .navigation.pagination {
    margin-top: 2rem;
    text-align: center;
}

.product-info-container .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-info-container .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-info-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.product-info-container .page-numbers:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #000;
}

.product-info-container .page-numbers.current {
    background-color: #333;
    border-color: #333;
    color: #fff;
    cursor: default;
}

.product-info-container .page-numbers.prev,
.product-info-container .page-numbers.next {
    font-weight: 600;
}

.product-info-container .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

.product-info-container .page-numbers.dots:hover {
    background: none;
    border: none;
}

@media screen and (max-width: 768px) {
    .product-info-container .navigation.pagination {
        margin-top: 1.5rem;
    }

    .product-info-container .nav-links {
        gap: 6px;
    }

    .product-info-container .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* DataTables カスタムスタイル */
.product-info-container .dataTables_wrapper {
    padding: 0;
}

.product-info-container .dt-buttons {
    margin-bottom: 1rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-info-container .dt-button {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-info-container .dt-button:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.product-info-container .dt-button.btn-excel:hover {
    background-color: #217346;
    border-color: #217346;
}

.product-info-container .dt-button.btn-copy:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

.product-info-container .dt-button.btn-print:hover {
    background-color: #666;
    border-color: #666;
}

.product-info-container .dataTables_filter {
    margin-bottom: 1rem;
}

.product-info-container .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.product-info-container .dataTables_filter input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.product-info-container .dataTables_filter input:focus {
    border-color: #333;
}

.product-info-container .dataTables_length {
    margin-bottom: 1rem;
}

.product-info-container .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.product-info-container .dataTables_length select {
    padding: 6px 30px 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    appearance: none;
}

.product-info-container .dataTables_info {
    padding: 1rem 0;
    font-size: 14px;
    color: #666;
}

.product-info-container .dataTables_paginate {
    padding: 1rem 0;
    text-align: center;
}

.product-info-container .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 2px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-info-container .dataTables_paginate .paginate_button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #000 !important;
}

.product-info-container .dataTables_paginate .paginate_button.current {
    background-color: #333;
    border-color: #333;
    color: #fff !important;
}

.product-info-container .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-info-container .dataTables_paginate .paginate_button.disabled:hover {
    background-color: #fff;
    border-color: #e0e0e0;
    color: #333 !important;
}

.product-info-container table.dataTable thead th {
    cursor: pointer;
    user-select: none;
}

.product-info-container table.dataTable thead .sorting,
.product-info-container table.dataTable thead .sorting_asc,
.product-info-container table.dataTable thead .sorting_desc {
    position: relative;
    padding-right: 30px;
}

.product-info-container table.dataTable thead .sorting:after,
.product-info-container table.dataTable thead .sorting_asc:after,
.product-info-container table.dataTable thead .sorting_desc:after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.product-info-container table.dataTable thead .sorting_asc:after,
.product-info-container table.dataTable thead .sorting_desc:after {
    opacity: 1;
}

/* セルにホバーしたときにツールチップのように全文を表示（備考欄以外） */
.product-info-table td:not(:nth-child(7)) {
    position: relative;
}

.product-info-table td:not(:nth-child(7)):hover::after {
    content: attr(data-full-text);
    position: absolute;
    left: 0;
    top: 100%;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: normal;
    max-width: 400px;
    z-index: 1000;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    word-break: break-word;
}

.product-info-table td[data-full-text=""]:hover::after {
    display: none;
}

@media screen and (max-width: 768px) {
    .product-info-container .dataTables_filter label,
    .product-info-container .dataTables_length label {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-info-container .dataTables_filter input {
        width: 100%;
    }

    .product-info-container .dataTables_wrapper .dataTables_length,
    .product-info-container .dataTables_wrapper .dataTables_filter {
        text-align: left;
    }

    .product-info-container .dataTables_paginate .paginate_button {
        min-width: 32px;
        height: 32px;
        margin: 0 1px;
        padding: 0 8px;
        font-size: 13px;
    }

    .product-info-table th,
    .product-info-table td {
        max-width: 200px;
    }
}


#product-info-table_length {
    width: 200px;
    white-space: nowrap;
}

#product-info-table_filter {
    white-space: nowrap;
}

.not-login  .l-header__members-message {
    display: none !important;
}