/* --- PC向け：右下固定表示 --- */
#sw_keyword_search {
    position: fixed;
    z-index: 1000;
    bottom: 20px !important;
    right: 20px !important;
    width: 280px !important;
    background: #ffffff;
    border: 2px solid #F397C1;
    border-radius: 50px;
    padding: 5px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* 共通のインナースタイル */
#sw_keyword_search .search-form {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 0;
}

#sw_keyword_search .search-field {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    padding: 8px !important;
    font-size: 16px !important; /* SPでズームしないよう16px推奨 */
    background: transparent !important;
    box-shadow: none !important;
}

#sw_keyword_search .search-submit {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sw_keyword_search .css-magnifier {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #F397C1;
    border-radius: 50%;
    position: relative;
    transform: rotate(-45deg);
}

#sw_keyword_search .css-magnifier::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 6px;
    width: 2px;
    height: 8px;
    background: #F397C1;
}

/* --- SP向け：メニュー内インライン表示 --- */
@media (max-width: 1024px) { /* テーマのSP分岐点に合わせて調整してください */
    #sw_keyword_search {
        position: static !important; /* 固定を解除 */
        width: 90% !important;      /* メニュー幅に合わせる */
        margin: 20px auto !important; /* 上下に余白 */
        box-shadow: none !important;
        border: 1px solid #ccc;     /* メニュー内になじむ色 */
        background: #f9f9f9;
    }
    
}

/* 検索結果ページのレイアウト */
.search-content-area {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.search-page-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
}


/* 各記事のアイテム */
.search-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.search-item-title a {
    color: #F397C1;
    text-decoration: none;
    transition: color 0.2s;
}

.search-item-title a:hover {
    opacity: 0.7;
}

.search-item-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* 該当なしの場合 */
.no-results-msg {
    padding: 40px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .search-page-title {
        font-size: 0.7rem;
        margin-top: 40px;
    }
    .search-item-title {
        font-size: 1rem;
    }

    .search-item-summary{
        font-size: 14px;
        line-height: 1.6;
    }
}