.custom-search{
    
}
.custom-search * {
    box-sizing: border-box;
}
/* (1)の余白、ボーダー背景をなくす*/
.custom-search .gsc-control-cse {
    background: none;
    border: none;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0px;
}

.custom-search form.gsc-search-box{
    margin-bottom: 0;
}
/*  (5)のマージンをなくす*/
.custom-search table.gsc-search-box {
    /*height: 31px;*/
    height: 100%;
    margin-bottom: 0;
}
/*  (6)フィールドとボタンの間のマージンをなくす*/
.custom-search td.gsc-input {
    height: 100%;
    padding-right: 0!important;
}
/*  フィールドのボーダーを変更
/*  SP 時にフィールドが角丸になる＆余白が増えるのを防ぐ*/
.custom-search .gsc-input-box {
    border: 1px solid #ddd;
    border-radius: 0;
    height: 100%;
    padding: 0;
}
/*@media only screen and (max-width: 600px) {
    .custom-search .gsc-input-box {
        border-left: 0;
    }
}*/
.custom-search table.gsc-input {
    height: 100%;

}
/*  フィールドの左右の余白を調整*/
.custom-search .gsib_a {
    width: 250px;
    padding: 12px 12px;
    border: 1px solid #ddd;
    font-size: 1.0em;
    transition: border-color 0.3s;
    box-sizing: border-box;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 100%;
}

.custom-search input.gsc-input {
    display: block;
    font-size: 16px;
    height: 100%!important;
    -webkit-appearance: none;
}
/*  クリアボタンの高さが29pxになるように調整*/
.custom-search .gsib_b {
    height: 100%;
}
.custom-search .gsst_b {
    height: 100%;
    padding: 0;
}
.custom-search .gsst_a {
    display: block;
    height: 100%;
    padding: 0;
    text-decoration: none;
}
.custom-search .gscb_a {
    align-items: center;
    color: #000!important;
    display: flex;
    font-size: 24px;
    height: 100%;
    justify-content: center;
    line-height: 1;
    width: 29px;
}
.custom-search td.gsc-search-button {
    height: 100%;
}
/* 検索ボタンの高さが31px になるように調整声※13px + 9px + 9px = 31px */
.custom-search .gsc-search-button-v2 {
    align-items: center;
    
    border-color: #0066cc;
    background-color: #0066cc;
    border: none;
    border-radius: 0;
    display: flex;
    height: 100%;
    justify-content: center;
    margin-left: 0;
    padding: 0;
    width: 44px;
}
.custom-search .gsc-search-button-v2:hover {
    background: #0066cc;
    opacity: 0.5;
}
.custom-search .gsc-search-button-v2:focus{
    background: #0066cc;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}
/* SP 時に検索ボタンのアイコンがサイズアップするので 13px に固定する */
.custom-search .gsc-search-button-v2 svg {
    display: block;
    height: 20px;
    width: 20px;
}

.custom-search .gsc-clear-button{
    display:none;
}






.gnav_search_input {
    width: 200px;
    padding: 12px 12px;
    border: 1px solid #ddd;
    font-size: 1.0em;
    transition: border-color 0.3s;
    box-sizing: border-box;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 100%;
    width: 100%;

}

.gnav_search_input:focus {
    outline: none;
    border-color: #0066cc;
}

.gnav_search_icon {
    cursor: pointer;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #0066cc;
    pointer-events: all;
    box-sizing: border-box;
    height: 100%;
}


.gnav_search_icon:hover {
    background: #0052a3;
}

.gnav_search_icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    box-sizing: border-box;
}



/*@media (max-width: 768px) {*/
@media (max-width: 1024px) {

    .custom-search .gsc-search-box,
    .custom-search .gsc-search-box,
    .custom-search .gsib_a{
        width: 100%;
    }
    .gnav_search_container{
        display: block;
    }




}