/* =========================================================
   トップページ：検索ボックスの装飾
   ========================================================= */

/* 検索ボックス全体の位置と余白調整 */
.top-search-wrapper {
    margin: 60px auto;   /* バナーと下の要素との距離（上下60px）、左右は中央寄せ */
    max-width: 400px;    /* 検索ボックスの最大幅（長すぎないように制御） */
    width: 90%;
}

/* 検索フォーム（入力枠とアイコン）を横並びにする */
.top-search-form {
    display: flex;
    align-items: center; /* 縦の真ん中で揃える */
    width: 100%;
    border: 1px solid #dcd6ce; /* サイトに馴染む落ち着いた枠線カラー */
    border-radius: 4px;        /* 少しだけ角を丸くして上品に */
    background-color: #fff;
    padding: 5px 15px;
    box-sizing: border-box;
}

/* ラベル要素が幅をしっかり取るようにする */
.top-search-label {
    flex-grow: 1; /* 入力エリアを可能な限り広げる */
    margin: 0;
}

/* 入力欄（テキストボックス）のデフォルト装飾を消して綺麗に */
.top-search-input {
    width: 100%;
    border: none;       /* 枠線は親要素(form)で引くので消す */
    outline: none;      /* クリック時の青い枠線を消す */
    padding: 8px 0;
    font-size: 15px;
    color: #5e4c41;     /* 文字色 */
    background: transparent;
}

/* 「キーワード検索」というプレースホルダーの色 */
.top-search-input::placeholder {
    color: #a89a8d;
}

/* 虫眼鏡ボタンのデフォルト装飾を消す */
.top-search-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* sr-only（音声読み上げ用テキスト）を見えないようにする設定 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================================
   スマホ・タブレットでは非表示
   ========================================================= */
@media screen and (max-width: 1023px) {
    .top-search-wrapper {
        display: none !important;
    }
}