.search-branch {
    width: 95%;
    max-width: 750px;
    margin: 0 auto 0;
}

.search-branch__tab-list {
    display: flex;
    align-items: flex-end;
}

.search-branch__tab-item {
    border-radius: 10px 10px 0 0;
    width: 44%;
    height: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 0 13px;
    text-align: center;
    cursor: pointer;
}

.search-branch__tab-item-left {
    background: linear-gradient(179deg, #F40808 0%, #FF836A 100%);
}

.search-branch__tab-item-right {
    background: linear-gradient(181deg, #F57504 0%, #FBA55A 100%);
}

.search-branch__tab-content {

}

.search-branch__tab-panel {
    display: none;
}

.search-branch__tab-panel-left {
    background: linear-gradient(179deg, #F40808 0%, #FF836A 100%);
}

.search-branch__tab-panel-right {
    background: linear-gradient(181deg, #F57504 0%, #FBA55A 100%);
}


.search-branch__tab-item.active {
    font-weight: 700;
    font-size: 20px;
    padding: 17px 0 13px;
    width: 56%;
    height: 59px;
}
.search-branch__tab-item-left.active {
    background: #F40808;
}
.search-branch__tab-item-right.active {
    background: #F57504;
}

.search-branch__tab-panel.active {
    display: block;
    padding: 30px 68px;
}

.search-branch__form {

}

.search-branch__form input {
    width: 100%;
    border: none;
    background-color: #fff;
    padding: 11px 15px;
    font-family: var(--font-family-accent);
    font-weight: 400;
    font-size: 20px;
    line-height: auto;
    border-radius: 5px;
}

.search-branch__form input::placeholder {
    font-family: var(--font-family-accent);
    font-weight: 400;
    font-size: 20px;
    line-height: auto;
    color: rgba(32, 32, 32, 0.4);
}

.search-branch__result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
}

.search-branch__result-title {
    font-weight: 700;
    font-size: 16px;
    line-height: auto;
    color: #fff;
}

.search-branch__result-result {
    font-weight: 700;
    font-size: 24px;
    line-height: auto;
    color: #fff;
}

.search-branch__button {
    text-align: center;
    margin-top: 16px;
}

.search-branch__button button {
    padding: 10px;
    background-color: #fff;
    color: #E62F2B;
    font-weight: 700;
    font-size: 20px;
    line-height: auto;
    text-align: center;
    display: inline-block;
    width: 340px;
    border-radius: 30px;
    box-shadow: 0px 5px 10px rgba(32, 32, 32, 0.15);
    border: none;
    cursor: pointer;
}

.search-branch__button-2 button {
    color: #FF8419;
}

.search-branch__form-select-flex {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.search-branch__form-select {
    width: 300px;
    position: relative;
    overflow: hidden; 
}

.search-branch__form-select::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 22px;
    width: 0;
    height: 0;
    border-width: 10px 7px 0 7px;
    border-style: solid;
    border-color: rgba(32, 32, 32, 0.4) transparent transparent transparent;
    content: "";
    pointer-events: none;
}

.search-branch__form-select select {
    appearance: none;
    border: none;
    display: block;
    width: 100%;
    padding: 10px 22px;
    font-family: var(--font-family-accent);
    font-weight: 400;
    font-size: 20px;
    line-height: auto;
    color: rgba(32, 32, 32, 0.4);
    border-radius: 7px;
    white-space: nowrap;           /* 折り返さず 1行 */
    overflow: hidden;              /* はみ出し分を隠す */
    text-overflow: ellipsis;       /* 「…」で省略 */
    /* ベンダープレフィックスも念のため */
    -o-text-overflow: ellipsis;
    -moz-text-overflow: ellipsis;
    -webkit-text-overflow: ellipsis;
}

/* ~~~~~~~~~~~~~~~
レスポンシブ
~~~~~~~~~~~~~~~~~ */
@media screen and (max-width: 768px) {
    .search-branch {
    width: 100%;
    max-width: auto;
    }

    .search-branch__tab-item {
        width: 40%;
        height: 40px;
        font-size: 15px;
        padding: 9px 0;
    }

    .search-branch__tab-item.active {
        font-size: 18px;
        padding: 15px 0 11px;
        width: 60%;
        height: 51px;
    }

    .search-branch__tab-panel.active {
        padding: 25px 12px;
    }

    .search-branch__form input {
        padding: 11px 8px;
        font-size: 16px;
    }

    .search-branch__form input::placeholder {
        font-size: 16px;
    }

    .search-branch__result {
        gap: 8px;
        margin-top: 20px;
    }

    .search-branch__result-title {
        font-size: 14px;
    }

    .search-branch__result-result {
        font-size: 18px;
    }

    .search-branch__button {
        margin-top: 19px;
    }

    .search-branch__button button {
        padding: 9px;
        font-size: 16px;
        width: 90%;
    }

    .search-branch__form-select-flex {
        gap: 11px;
    }

    .search-branch__form-select {
        width: 48%;
    }

    .search-branch__form-select::before {
        right: 10px;
    }

    .search-branch__form-select select {
        padding: 10px;
        font-size: 16px;
    }
}