@charset "utf-8";

/* ============================
   沿線・駅モーダル モバイル対応
   ============================ */

/* --- タブレット (960px以下) --- */
@media screen and (max-width: 960px) {

    section.area_container {
        width: 100% !important;
        padding: 10px;
        box-sizing: border-box;
    }

    div.area_grid {
        flex-wrap: wrap;
    }

    div.area_grid_left {
        width: 100%;
        display: block;
        padding-top: 0;
        margin-bottom: 10px;
    }

    /* 都道府県リストを横並びスクロールに */
    ul.area_grid_left {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border: none;
        gap: 0;
        padding: 0;
    }

    ul.area_grid_left::-webkit-scrollbar {
        display: none;
    }

    li.area_grid_left {
        flex: 0 0 auto;
        padding: 8px 14px;
        border: 1px solid #ccc;
        border-radius: 20px;
        margin-right: 6px;
        font-size: 13px;
        background: #f5f5f5;
        white-space: nowrap;
        border-bottom: 1px solid #ccc;
    }

    li.area_grid_left_select {
        background: #ff6e9b !important;
        color: #fff;
        border-color: #ff6e9b;
    }

    li.area_grid_left_select:before {
        display: none;
    }

    div.area_grid_right {
        width: 100%;
    }

    /* 沿線・駅の中身スクロール */
    div.js_toggle_target {
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 下部検索セクション */
    section.area_search_section,
    section.area_search {
        width: 100% !important;
        box-sizing: border-box;
    }

    div.area_search {
        flex-wrap: wrap;
        gap: 8px;
    }

    article.area_search_left {
        width: 100%;
    }

    h3.area_search_left {
        width: auto;
    }

    div.area_search_right_modal,
    div.area_search_right {
        width: 100% !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    input[type="submit"].area_search_right {
        width: 100%;
    }

    a.clear {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
}

/* --- スマートフォン (600px以下) --- */
@media screen and (max-width: 600px) {

    section.area_container {
        padding: 8px;
        border-radius: 6px;
    }

    h2.area_section {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* 都道府県チップをよりコンパクトに */
    li.area_grid_left {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 5px;
    }

    /* 鉄道会社 */
    h3.railway {
        font-size: 14px;
        padding: 8px 0;
    }

    h3.railway:before {
        font-size: 19px;
        width: 32px;
        color: #83c46c;
    }

    /* 路線 */
    h4.railway {
        font-size: 12px;
        padding: 8px 5px 8px 0;
    }

    h4.railway:before {
        font-size: 18px;
        width: 32px;
    }

    /* 駅チェックボックス */
    div.area_close {
        padding: 15px 0 0 8px;
    }

    h5.divisions2 {
        width: 50%;
        margin-bottom: 15px;
    }

    a.area_check_small {
        font-size: 11px;
    }

    span.area_check {
        font-size: 9px;
    }

    /* 選択した沿線表示 */
    h2.area_search {
        font-size: 12px;
        padding: 8px 10px;
    }

    h2.area_search span {
        font-size: 11px;
        word-break: break-all;
    }

    /* 検索ボタン */
    input[type="submit"].area_search_right {
        height: 44px;
        font-size: 13px;
    }

    a.clear {
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }

    p.area_search_left {
        font-size: 22px;
    }
}
