/* order.twig用カスタムCSS - EC-CUBEアップデート時に保護されます */

/* カスタム特定商法ページ用スタイル - EC-CUBEのデフォルトスタイルと競合しません */
.custom-tradelaw-role-guide {
    background: #fff;
    margin: 40px 80px;
}

.custom-tradelaw-role-guide a{
    color: #8B7355;
    text-decoration: underline;
}

.custom-tradelaw-pageHeader {
    margin-bottom: 3rem;
    text-align: center;
}

.custom-tradelaw-pageHeader h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.custom-tradelaw-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* カードの基本スタイル */
.custom-tradelaw-card {
    background: #ffffff;
    overflow: hidden;
}

/* カードヘッダー */
.custom-tradelaw-card__header {
    background: #8f7a37;
    color: white;
}

.custom-tradelaw-card__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height:normal;
}

.custom-tradelaw-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* カードボディ */
.custom-tradelaw-card__body {
    padding: 2rem 0 0;
}

/* セクション */
.custom-tradelaw-section {
    margin-bottom: 2rem;
}

.custom-tradelaw-section:last-child {
    margin-bottom: 0;
}

.custom-tradelaw-table-wrapper {
    overflow-x: auto;
}

.custom-tradelaw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background-color: #fff;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.custom-tradelaw-table__header {
    background: #e9ecef;
    color: #333;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
    width: 200px;
    min-width: 200px;
}

.custom-tradelaw-table__cell {
    padding: 16px 20px;
    border: 1px solid #dee2e6;
    vertical-align: top;
    background-color: #ffffff;
    line-height: 1.7;
    color: #333;
}

.custom-tradelaw-table tbody tr:nth-child(even) .custom-tradelaw-table__cell {
    background-color: #f8f9fa;
}

.custom-tradelaw-table tbody tr:nth-child(even) .custom-tradelaw-table__header {
    background: #dee2e6;
}

.custom-tradelaw-table__cell strong {
    color: #333;
    font-weight: 600;
}

.custom-tradelaw-table__cell a {
    color: #8f7a37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-tradelaw-table__cell a:hover {
    color: #c82333;
    text-decoration: underline;
}

/* 価格表示用の赤色スタイル */
.custom-tradelaw-table__cell .price,
.custom-tradelaw-table__cell strong.price {
    color: #dc3545;
    font-weight: 600;
}

/* レスポンシブデザイン */
@media (max-width: 767px) {
    .custom-tradelaw-role-guide {
        padding: 1rem 0.5rem;
    }
    
    .custom-tradelaw-pageHeader h1 {
        font-size: 2rem;
    }
    
    .custom-tradelaw-card__header {
        padding: 1rem 1.5rem;
    }
    
    .custom-tradelaw-card__title {
        font-size: 1.2rem;
    }
    
    .custom-tradelaw-card__body {
        padding: 1.5rem;
    }
    
    .custom-tradelaw-section {
        margin-bottom: 1.5rem;
    }
    
    .custom-tradelaw-table {
        font-size: 14px;
    }
    
    .custom-tradelaw-table__header {
        width: 120px;
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .custom-tradelaw-table__cell {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .custom-tradelaw-role-guide {
        padding: 0.5rem;
        margin: 1rem auto;
    }
    
    .custom-tradelaw-pageHeader h1 {
        font-size: 1.8rem;
    }
    
    .custom-tradelaw-card__header {
        padding: 1rem;
    }
    
    .custom-tradelaw-card__body {
        padding: 1rem;
        font-size: 16px;
    }
    
    .custom-tradelaw-card__title {
        font-size: 1.1rem;
    }
    
    .custom-tradelaw-section {
        margin-bottom: 1rem;
    }
    
    .custom-tradelaw-table {
        font-size: 12px;
    }
    
    .custom-tradelaw-table__header {
        width: 100px;
        min-width: 100px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .custom-tradelaw-table__cell {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-tradelaw-card {
    animation: fadeInUp 0.6s ease-out;
}

/* テーブル行のアニメーション */
.custom-tradelaw-table tbody tr {
    transition: all 0.2s ease;
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.custom-tradelaw-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.custom-tradelaw-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-tradelaw-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-tradelaw-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}