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

/* カスタム配送ページ用スタイル - EC-CUBEのデフォルトスタイルと競合しません */
.custom-delivery-role {
    padding: 40px 80px;
    background: #FFF;
    min-height: 100vh;
}

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

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

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


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

/* カードヘッダー */
.custom-delivery-card__header {
    padding: 24px 32px;
    background: #8f7a37;
    color: white;
}

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

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

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

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

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

.custom-delivery-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.custom-delivery-section__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

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

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

.custom-delivery-table__header {
    background: #999;
    color: white;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
}

.custom-delivery-table__cell {
    padding: 16px 12px;
    border: 1px solid #dee2e6;
    vertical-align: top;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

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

.custom-delivery-table__cell--size {
    background: #e9ecef;
    text-align: center;
    font-weight: 700;
    vertical-align: middle;
    color: #495057;
    font-size: 1.1rem;
    border: 1px solid #dee2e6;
}

.custom-delivery-table tbody tr:nth-child(even) .custom-delivery-table__cell--size {
    background: #dee2e6;
}

.custom-delivery-table__cell--price {
    text-align: center;
    color: #333;
    vertical-align: middle;
    font-size: 1.1rem;
    border: 1px solid #dee2e6;
}

.custom-delivery-table tbody tr:last-child .custom-delivery-table__cell {
    border-bottom: 1px solid #dee2e6;
}

/* 注意事項セクション */
.custom-delivery-section--notice p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    padding: 1rem;
    background: #f8f9fa;
}

/* スマートフォン用の個別テーブルスタイル */
.custom-delivery-mobile-table {
    display: none;
    margin-bottom: 2rem;
}

.custom-delivery-mobile-table:last-child {
    margin-bottom: 0;
}

.custom-delivery-mobile-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid #333;
}

.custom-delivery-mobile-table-header-left {
    background: #8f7a37;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-right: 1px solid #333;
}

.custom-delivery-mobile-table-header-right {
    background: #8f7a37;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.custom-delivery-mobile-table-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 2px solid #333;
    border-right: 2px solid #333;
}

.custom-delivery-mobile-table-body-left {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    line-height: 1.4;
}

.custom-delivery-mobile-table-body-right {
    background: #fff;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid #333;
    line-height: 1.4;
}

.custom-delivery-mobile-table-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 2px solid #333;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
}

.custom-delivery-mobile-table-footer-left {
    background: #999;
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
}

.custom-delivery-mobile-table-footer-right {
    background: #fff;
    padding: 8px;
    text-align: center;
    color: #333;
    font-size: 1rem;
    border-bottom: 1px solid #333;
}

.custom-delivery-mobile-table-footer-left:last-child {
    border-bottom: none;
}

.custom-delivery-mobile-table-footer-right:last-child {
    border-bottom: none;
}
.custom-delivery-table__cell.custom-delivery-table__cell--price span{
    color:#8f7a37;
    font-weight: bold;
}

.custom-delivery-table__cell.custom-delivery-table__cell--price span:hover{
    color: #4A90E2;
    transition: all 0.3s ease;
    text-decoration: underline
}
/* レスポンシブデザイン */
@media (max-width: 767px) {
    .custom-delivery-role {
        padding: 1rem 0.5rem;
    }
    
    .custom-delivery-pageHeader h1 {
        font-size: 2rem;
    }
    
    .custom-delivery-card__header {
        padding: 1rem 1.5rem;
    }
    
    .custom-delivery-card__title {
        font-size: 1.2rem;
    }
    
    .custom-delivery-card__body {
        padding: 1.5rem;
    }
    
    .custom-delivery-section {
        margin-bottom: 1.5rem;
    }
    
    .custom-delivery-section__title {
        font-size: 1.2rem;
    }
    
    .custom-delivery-section p {
        font-size: 1rem;
    }
    
    /* デスクトップ用テーブルを非表示 */
    .custom-delivery-table-wrapper {
        display: none;
    }
    
    /* スマートフォン用テーブルを表示 */
    .custom-delivery-mobile-table {
        display: block;
    }
}

@media (max-width: 480px) {
    .custom-delivery-role {
        padding: 0.5rem;
        margin: 1rem auto;
    }
    
    .custom-delivery-pageHeader h1 {
        font-size: 1.8rem;
    }
    
    .custom-delivery-card__header {
        padding: 1rem;
    }
    
    .custom-delivery-card__body {
        padding: 1rem;
    }
    
    .custom-delivery-card__title {
        font-size: 1.1rem;
    }
    
    .custom-delivery-section {
        margin-bottom: 1rem;
    }
    
    .custom-delivery-section__title {
        font-size: 1.1rem;
    }
    
    /* デスクトップ用テーブルを非表示 */
    .custom-delivery-table-wrapper {
        display: none;
    }
    
    /* スマートフォン用テーブルを表示 */
    .custom-delivery-mobile-table {
        display: block;
    }
    
    .custom-delivery-mobile-table-header-left,
    .custom-delivery-mobile-table-header-right {
        font-size: 0.9rem;
        padding: 10px;
        text-align: right;
        font-weight: normal;
    }
    
    .custom-delivery-mobile-table-body-left,
    .custom-delivery-mobile-table-body-right {
        padding: 12px 15px 12px 0px;
        font-size: 0.9rem;
        text-align: right;
        font-weight: normal;
    }
    
    .custom-delivery-mobile-table-footer-left,
    .custom-delivery-mobile-table-footer-right {
        padding: 6px 15px;
        font-size: 0.8rem;
        text-align: right;
        border: none;
    }
    .custom-delivery-mobile-table-header{
       border:  1px solid #333;
    }
    .custom-delivery-mobile-table-footer{
        border-left: 1px solid #333;
        border-right: 1px solid #333;
        border-bottom: 1px solid #333;
    }
    .custom-delivery-mobile-table-body{
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
    .custom-delivery-mobile-table-footer-right span{
        color:#dc3545;
        font-weight: bold;
    }
}
@media screen and (min-width: 768px) and (max-width: 819px){
    .custom-delivery-mobile-table-header-left,
    .custom-delivery-mobile-table-header-right {
        font-size: 0.9rem;
        padding: 10px;
        text-align: right;
        font-weight: normal;
    }
    .custom-delivery-mobile-table-body-left,
    .custom-delivery-mobile-table-body-right {
        padding: 12px 15px 12px 0px;
        font-size: 0.9rem;
        text-align: right;
        font-weight: normal;
    }
    
    .custom-delivery-mobile-table-footer-left,
    .custom-delivery-mobile-table-footer-right {
        padding: 6px 15px;
        font-size: 0.8rem;
        text-align: right;
        border: none;
    }
    .custom-delivery-mobile-table-header{
       border:  1px solid #333;
    }
    .custom-delivery-mobile-table-footer{
        border-left: 1px solid #333;
        border-right: 1px solid #333;
        border-bottom: 1px solid #333;
    }
    .custom-delivery-mobile-table-body{
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
    .custom-delivery-mobile-table-footer-right span{
        color:#dc3545;
        font-weight: bold;
    }
}

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

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