@charset "UTF-8";
.tab-comp-nav{
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 4px;
    margin-bottom: 17px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 61, 130, 0.1);
    background: #f5f5f5;
    border: 1px solid #d0d0d0;

}
.tab-comp-btn{
    flex: 1;
    min-width: 120px;
    background: #f5f5f5;
    color: #003d82;
    border: none;
    padding: 10px 16px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #e0e0e0;
}
.tab-comp-btn:last-child{
    border-right: none;
}
.tab-comp-btn:hover{
    background: #e8f4ff;
}
.tab-comp-btn small{
    font-size: 0.95rem;
}
.tab-comp-btn.active{
    background: linear-gradient(180deg, #003d82 0%, #00a0d8 100%);
    color: white;
    border-right: 1px solid #0066cc;
}
.tab-comp-content{
    display: none;
    opacity: 0;
}
.tab-comp-content.active{
    display: block;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}
.provider-card{
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 61, 130, 0.08);
    border: 1px solid #d0e7ff;
}

.provider-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 102, 204, 0.2);
}

.provider-name{
    font-size: 1.3rem;
    font-weight: bold;
    color: #003d82;
}

.campaign-badge{
    background: linear-gradient(135deg, #00ced1 0%, #009699 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.fee-info{
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #00aacc;
    font-size: 0.85rem;
    line-height: 1.5;
}

.highlight-free{
    color: #ff0000;
    font-weight: bold;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-item{
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #c0c0c0;
    position: relative;
}

.device-image{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.device-image img{
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.device-item::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #003d82 0%, #1988f7 100%);
    border-radius: 10px 0 0 10px;
}

.device-item:hover{
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.15), 0 0 15px rgba(77, 208, 225, 0.4);
    border: 1px solid #4dd0e1;
}

.device-item.unlimited{
    background: linear-gradient(135deg, #fff9e6 0%, #ffe4b5 100%);
    border: 1px solid #c0c0c0;
}

.device-item.unlimited::before{
    background: linear-gradient(180deg, #a0842a 0%, #e8b335 100%);
}

.device-item.unlimited:hover{
    border: 1px solid #4dd0e1;
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.15), 0 0 15px rgba(77, 208, 225, 0.4);
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.device-name{
    font-weight: bold;
    color: #003d82;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.carrier-badge{
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

.carrier-softbank{
    background: #e8e8e8;
    color: #666;
}

.carrier-wimax{
    background: #d4e8ff;
    color: #0066cc;
}

.carrier-au{
    background: #ffe8d4;
    color: #ff6600;
}

.carrier-docomo{
    background: #ffe4e4;
    color: #cc0000;
}

.specs{
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    flex: 1;
}

.spec-row{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.spec-item{
    color: #666;
    white-space: nowrap;
    font-size: 0.8rem;
}

.spec-value{
    color: #0066cc;
    font-weight: bold;
    font-size: 0.95rem;
}

.spec-value-unlimited{
    color: #a0842a;
    font-weight: bold;
    font-size: 0.95rem;
}

.spec-note{
    color: #00a8e4;
    font-size: 0.8rem;
}

.price-daily{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.2);
}

.price-daily-label{
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.price-daily-value{
    font-size: 2rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.price-daily-unit{
    font-size: 0.9rem;
}

.price-total{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    font-size: 0.85rem;
}

.price-total-label{
    color: #666;
    font-size: 0.75rem;
}

.price-total-value{
    font-size: 1.3rem;
    font-weight: bold;
    color: #003d82;
}

.provider-name{
    font-size: 1.3rem;
    font-weight: bold;
    color: #003d82;
    display: flex;
    align-items: center;
    gap: 12px;  /* ロゴとテキストの間隔 */
}

.provider-logo{
    width: auto;
    object-fit: contain;
}

.action-buttons{
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 70px;
}

.btn{
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    line-height: 1.3;
}

.btn-secondary{
    background: linear-gradient(135deg, #27d6ad 0%, #1d9138 100%);
    color: white;
    box-shadow: 0 2px 0 #156d2b;
}

.btn-secondary:hover{
    filter: brightness(1.1);
    opacity: 0.8;
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 0 #156d2b;
}

.btn-primary{
    background: linear-gradient(135deg, #ffa200 0%, #ff3300 100%);
    color: white;
    box-shadow: 0 2px 0 #b84600;
}

.btn-primary:hover{
    filter: brightness(1.3);
    opacity: 0.8;
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 0 #b84600;
}

@media (max-width: 768px) {
    .tab-comp-nav{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-bottom: 20px;
    }

    .tab-comp-btn{
        min-width: auto;
        padding: 6px 6px;
        font-size: 1.05rem;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
        line-height: 1.3;
    }

    .tab-comp-btn:nth-child(1),
    .tab-btn:nth-child(2){
        border-bottom: 1px solid #e0e0e0;
    }

    .tab-comp-btn:nth-child(odd){
        border-right: 1px solid #e0e0e0;
    }

    .tab-comp-btn small{
        display: block;
        font-size: 0.8rem;
        margin-top: 1px;
    }

    .provider-card{
        padding: 10px;
        margin-bottom: 12px;
    }

    .provider-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .provider-name{
        font-size: 1.15rem;
    }

    .campaign-badge{
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .fee-info{
        padding: 8px;
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .device-list {
        gap: 8px;
    }

    .device-item{
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 10px;
        margin-bottom: 0;
        box-shadow: 0 2px 0 rgba(0, 61, 130, 0.15);
    }

    .device-item::before{
        width: 3px;
    }

    .device-image{
        padding: 2px 8px 0 8px;
        background: transparent;
        border-radius: 0;
    }

    .device-image img{
        max-height: 90px;
    }

    .device-info {
        min-width: auto;
        gap: 0;
    }

    .device-name{
        font-size: 1.35rem;
        flex-wrap: wrap;
        font-weight: 900;
        margin-bottom: 2px;
    }

    .specs{
        background: #f8f9fa;
        padding: 6px;
        border-radius: 6px;
        margin-top: 3px;
    }

    .spec-row{
        gap: 4px;
        margin-top: 2px;
    }

    .spec-item{
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .spec-value{
        font-size: 1.1rem;
    }

    .spec-value-unlimited{
        font-size: 1.1rem;
    }

    .spec-note{
        font-size: 0.75rem;
        padding: 4px 8px;
        background: #fff3cd;
        border-radius: 5px;
        border-left: 3px solid #ffc107;
        margin-top: 2px;
        line-height: 1.3;
    }

    .price-daily{
        min-width: auto;
        padding: 6px 10px;
        flex-direction: row;
        gap: 6px;
        align-items: baseline;
    }

    .price-daily-label{
        font-size: 0.8rem;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .price-daily-value{
        font-size: 1.8rem;
    }

    .price-total{
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 6px;
        border: 2px solid #dee2e6;
    }

    .price-total-label{
        font-size: 0.7rem;
    }

    .price-total-value{
        font-size: 1.2rem;
    }

    .provider-name{
        font-size: 1.15rem;
        gap: 8px;
        flex-wrap: wrap;
    }

    .provider-logo{
        height: 28px;
        max-width: 130px;
    }

    .action-buttons{
        flex-direction: row;
        min-width: auto;
        width: 100%;
        gap: 4px;
    }

    .btn{
        flex: 1;
        padding: 7px 12px;
        font-size: 0.85rem;
        font-weight: bold;
        line-height: 1.2;
    }
}