@charset "UTF-8";

/* =========================================================
   共通: #searchBox 全体レイアウト
   ========================================================= */
#searchBox {
    display: flex !important;
    justify-content: flex-end !important;
    position: relative !important;
    margin: 20px auto !important;
}

/* 中のフォームを横並びで固定 */
#searchBox .searchControl {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;    /* 折り返さない */
    margin: 0 0.5rem 0 auto !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    background: none !important;
}

/* =========================================================
   共通: select(#targetManual) & input(#searchText)
   ========================================================= */

/* 高さ・文字サイズ・余白を統一 */
#searchBox select#targetManual,
#searchBox input#searchText {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 16px !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
    margin-top: 3px !important;
}

/* 左側: プルダウン */
#searchBox select#targetManual {
    border-radius: 4px 0 0 4px !important;
    border: 1px solid #555555 !important;
    background-color: #fff !important;
    margin-right: 0 !important;
}

/* 右側: テキストボックス */
#searchBox input#searchText {
    border-radius: 0 4px 4px 0 !important;
    border: 1px solid #999999 !important;  /* 枠線グレー */
    border-left: 0 !important;             /* つなぎ目の二重線を消す */
    background-color: #f5f5f5 !important;
    margin-left: 0 !important;             /* select との隙間をゼロに */
}

/* =========================================================
   共通: AND / OR
   ========================================================= */
#searchBox .searchType {
    margin: 0 0.3rem !important;
    padding-top: 4px !important;
}

#searchBox .searchType label {
    font-size: 13px !important;
}

#searchBox .searchType input[type="radio"] {
    width: 13px !important;
    height: 13px !important;
}

/* =========================================================
   共通: Search ボタン（デフォルト = テキストボタン）
   ========================================================= */
#searchBox button#searchSubmit {
    width: 80px !important;
    height: 34px !important;
    padding: 0 14px !important;
    background-color: #0055aa !important;
    color: #fff !important;
    border: 1px solid #1a0dab !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    background-image: none !important;
    cursor: pointer !important;
}

#searchBox button#searchSubmit:hover {
    opacity: .8 !important;
}

#searchBox button {
    max-width: 80px;
    max-height: 34px;
}

/* =========================================================
   1240px 以上 (PC幅)
   ========================================================= */
@media (min-width: 1240px) {

    /* SearchBox 全体の幅 */
    #searchBox {
        width: 830px !important;
    }

    /* プルダウン幅 */
    #searchBox select#targetManual {
        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;
        flex: 0 0 190px !important;
    }

    /* テキストボックス幅 */
    #searchBox input#searchText {
        width: 480px !important;
        min-width: 480px !important;
        max-width: 480px !important;
        flex: 0 0 480px !important;
    }
}

/* =========================================================
   1240px 未満 (タブレット・スマホ)
   ========================================================= */
@media (max-width: 1239px) {

    /* SearchBox 全体の幅 */
    #searchBox {
        width: 700px !important;
    }

    /* プルダウン幅 */
    #searchBox select#targetManual {
        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;
        flex: 0 0 190px !important;
    }

    /* テキストボックス幅 */
    #searchBox input#searchText {
        width: 350px !important;
        min-width: 350px !important;
        max-width: 350px !important;
        flex: 0 0 350px !important;
    }
}
