/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 17 2026 | 12:44:47 */
/* =========================================
   ヘッダー検索機能
   ========================================= */

/* PCのみ：ヘッダーの重なり順 */
@media screen and (min-width: 992px) {
    #head {
        position: relative;
        z-index: 1000;
        overflow: visible;
    }

    #head-in {
        position: relative;
        z-index: 1001;
        overflow: visible;
    }
}

/* =========================================
   PC：検索アイコンの配置
   ========================================= */

@media screen and (min-width: 992px) {

    #head-in > .site-header-search {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        transform: none;
        z-index: 1002;
    }
}

/* =========================================
   検索アイコン
   ========================================= */

.site-header-search summary {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #4A3D66;
    cursor: pointer;
    list-style: none;
    border-radius: 50%;
}

.site-header-search summary::-webkit-details-marker {
    display: none;
}

.site-header-search summary svg {
    width: 22px;
    height: 22px;
}

.site-header-search summary:hover {
    background: rgba(74, 61, 102, .06);
}

.site-header-search summary:focus-visible {
    outline: 2px solid #4A3D66;
    outline-offset: 2px;
}

/* =========================================
   検索フォーム
   ========================================= */

/* 閉じているとき */
#head-in .site-header-search:not([open]) form {
    display: none;
}

/* 開いているとき */
#head-in .site-header-search[open] form {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1003;

    display: flex;
    align-items: center;
    gap: 8px;

    width: 320px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    margin: 0;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid rgba(74, 61, 102, .35);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* 検索ラベル */
.site-header-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 検索入力欄 */
.site-header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: auto;

    padding: 8px;
    font-size: 16px;
    color: #333;
    background: #fff;

    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 検索ボタン */
.site-header-search button {
    flex-shrink: 0;
    padding: 8px 12px;

    background: #4A3D66;
    color: #fff;

    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.site-header-search button:hover {
    background: #62557F;
}

/* =========================================
   スマートフォン
   ========================================= */

@media screen and (max-width: 991px) {

    /* 独自検索アイコンを非表示 */
    #head-in > .site-header-search {
        display: none !important;
    }
}
