/* バッジ・深夜早朝割増 */
/*
.fare-latetime-badge {
    font-weight: 700;
    margin-bottom: 0;
    display: inline-block;
    font-size: 0.9em;
    padding: 2px 3px 3px 3px;
    padding: 1px 2px 2px 2px;
    border-radius: 2px;
    background: #fff;
    color: #0E3A80;
    border: 1px solid #0E3A80;
}
.fare-latetime-badge:after {
    content: "深夜早朝割増";
    content: "22時−5時";
}
.fare-latetime-badge.short-badge:after {
    content: "深夜割増";
}
*/



/**********************/
/*** バッジ・高速道路IC ***/
/**********************/
.expressway-ic-badge {
    display: inline-block;
    padding: 1px 2px 1px 2px;
    padding: 1px 2px 2px 2px;
    border-radius: 2px;
    margin-right: 3px;
    line-height: 1.3;
    font-weight: 700;
    font-size: 0.9em;
}
.expressway-ic-badge.ic-in {
    background: #000;
    color: #fff;
    border: 1px solid #000
}
.expressway-ic-badge.ic-out {
    background: #fff;
    color: #000;
    border: 1px solid #000
}
.expressway-ic-badge.ic-in:after {
    content: "入";
}
.expressway-ic-badge.ic-out:after {
    content: "出";
}








/**********************/
/*** 運賃・料金例コンテナ ***/
/**********************/
.fare-example-container {
    width: 100%;
    margin: 20px 0;
}

/* ヘッダー・PC専用：表形式 */
.fare-example-header {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: start;
    border-top: 2px solid #333;
    border-bottom: 1px solid #aaa;
    font-weight: 700;
    text-align: center;
    background: #f8f8f8;
    justify-content: center;
}
.fare-example-header .cell {
    text-align: center;
}

.fare-example-card {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    flex-direction: row;
/*
    align-items: start;
    align-items: center;
    justify-items: center;
*/
    transition: background 0.3s;
    align-items: start;

    /* スマホ専用 */
    border-bottom: 1px solid #aaa;

    /*  PC専用 */
    padding-top: 10px;
    padding-bottom: 10px;
}

.cell {
    padding: 15px 10px;
    text-align: center;
}

/* ラベル・スマホ専用 */
.label-mb-only {
    display: none;
    text-align: left;
}

/* 目的地 */
.destination {
    flex: 1;
    text-align: left;
    font-weight: 700;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.destination-arrow {
    margin-left: 5px;
    margin-right: 5px;
}
@media (max-width: 767px) {
    .destination-arrow {
        /* margin-left: calc(1em + 5px); */
        margin-left: 0px;
        margin-right: 5px;
    }
    .departure {
        font-size: 0.85em;
    }
}

/* 概算料金 */
.price {
    flex: 0 0 8em;
    flex: 0 0 120px;
}
.fare-main {
    color: #000;
    font-weight: 700;
    font-size: 1.1em;
}
.fare-latetime {
    color: #666;
    font-size: 0.9em;
    margin-top: 20px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 6px;
    row-gap: 1px;
}
.fare-latetime-value {
    font-size: 1.1em;
}

/* 高速代 */
.expressway {
    /*
    flex: 0 0 8em;
    */
    flex: 0 0 120px;
}
.expressway-tolls {
    font-weight: 400;
    font-size: 1.0em;
}
.expressway-ic-pc-only {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    gap: 15px;
    row-gap: 5px;
    margin-top: 20px;
    font-size: 0.9em;
    font-weight: 400;
}
.expressway-ic-mb-only {
    display: none;
    margin-top: 20px;
    font-size: 0.9em;
    font-weight: 400;
}

/* 距離 */
.distance {
    flex: 0 0 5em;
    flex: 0 0 75px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
}
.distance-km {
    /*
    flex: 0 0 8em;
    */
    flex: 0 0 120px;
    margin-top: 0;
    text-align: center;
}
.distance-time {
    flex: 0 0 120px;
    margin-top: 0;
    text-align: center;
}
.distance-inner {
    display: block;
    padding: 0;
    border-bottom: 1px dashed #aaa;
    border: none;
}
.distance-inner:nth-child(1) {
    border: none;
}

/* セル幅設定 */
@media (min-width: 992px) {
    .destination { flex: 1; }
    /*
    .price { flex: 0 0 12em; }
    .expressway { flex: 0 0 10em; }
    .distance { flex: 0 0 10em; }
    */
    .price { flex: 0 0 180px; }
    .expressway { flex: 0 0 150px; }
    .distance { flex: 0 0 150px; }
}
@media (max-width: 991px) {
    .destination { flex: 1; }
    /*
    .price { flex: 0 0 8em; }
    .expressway { flex: 0 0 8em; }
    .distance { flex: 0 0 9em; }
    */
    .price { flex: 0 0 120px; }
    .expressway { flex: 0 0 120px; }
    .distance { flex: 0 0 135px; }
}












/**********/
/* スマホ用カード形式へ切り替え */
/**********/
@media (max-width: 767px) {

    /* ヘッダーを隠す */
    .fare-example-header {
        display: none;
    }

    .fare-example-card {
        display: block;
        justify-items: stretch;
        border: 1px solid #999;
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 5px;
        border-bottom: 1px dashed #aaa;
    }
    .cell:last-child {
        border-bottom: none;
    }
    .cell:nth-child(1) {
        border-bottom: 1px solid #999;
    }

    .destination {
        display: block;
        text-align: left;
        background: #f0f0f0;
        margin: -10px -10px 10px -10px;
        padding: 10px;
        border-radius: 8px 8px 0 0;
        font-size: 1.1em;
    }

    .distance-inner {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border: none;
    }
    .distance-inner:nth-child(2) {
        border-top: 1px dashed #aaa;
    }

    .distance {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }
    .distance .distance-km {
       /* padding-bottom: 10px;*/
    }
    .distance .label-mb-only {
        /*line-height: 2.2;*/
    }
    .distance .distance-km,
    .distance .distance-time {
        /*flex: 1;*/
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 右端列 */
    /* 列幅を固定 */
    .fare-latetime {
        margin-top: 0;
        /*
        width: 10em;
        width: 9.3em;
        */
        width: 135px;
    }
    .expressway-ic-mb-only {
        margin-top: 0;
        /*
        width: 10em;
        width: 9.3em;
        */
        width: 135px;
    }
    .distance-km {
        margin-top: 0;
    }
    .distance-time {

        margin-top: 0;
    }
    .distance-dummy-space {
        font-size: 0.9em;
        margin-top: 0;
        /*
        width: 10em;
        width: 9.3em;
        */
        width: 135px;
    }

    .cell.distance {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }
    .distance-inner {
        padding-left: 5px;
        padding-right: 5px;
    }
    .distance-inner:nth-child(1) {
        padding-top: 10px;
        padding-bottom: 10px;
        /*
        margin-bottom: 10px;
        background: #ff88ff;
        background: #88ffff;
        */
    }
    .distance-inner:nth-child(2) {
        padding-top: 10px;
    }




    /* 左端列 */
    /* スマホ専用ラベル表示 */ 
    .label-mb-only {
        display: block;
        font-size: 0.8em;
        color: #555;
        font-weight: normal;
        /*
        width: 6.5em;
        */
        width: 85px;
    }

    /* 高速料金位置切り替え */
    .expressway-ic-pc-only {
        display: none;
    }
    .expressway-ic-mb-only {
        /*display: block;*/
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: start;
        align-items: center;
        gap: 5px;
    }
}







/* DEBUG用 */
/*
        .destination { background: #8888ff; }
        .price { background: #6ffff3; }
        .expressway { background: #fff000; }
        .distance { background: #f030a0; }
        .label-mb-only {background: #003300; }
*/
