/*
Theme Name: legal-support
Theme URI: https://www.legal-support.or.jp
Author: cafeign Tsu
Description: 2023.03.06
Version: 1.0a
*/

@charset "UTF-8";

.search-form-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 2px solid #009FB9;
    border-radius: 20px;
    width: 100%;
    height: 30px;
    position: relative;
}

.search-form-1 input {
    width: 100%;
    height: 30px;
    padding: 5px 15px;
    border: none;
    box-sizing: border-box;
    font-size: 1em;
    outline: none;
    display: flex;
    align-items: center;
    margin-left: auto;
    line-height: 1;
    vertical-align: middle;
}

.search-form-1 input::placeholder {
    color: #777777;
}

.search-form-1 button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 30px;
    border: none;
    background-color: #009FB9;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.search-form-1 button::after {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    content: '';
}

.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    color: #009FB9;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #e8f0fe;
    border-color: #a2c2f0;
}

.pagination .current {
    background-color: #009FB9;
    color: white;
    font-weight: bold;
    pointer-events: none;
}

/* 見出し（検索キーワード + 件数） */
.page-title {
    text-align: left;
    font-size: 1.1em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    padding-top: 30px;
    padding-left: 75px;
}

/* 検索結果リスト */
.search-results {
    list-style: none;
    padding: 20px;
    padding-left: 87px;
    margin: 0;
}

/* 各検索結果アイテム */
.search-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* タイトルリンク */
.search-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #009FB9;
    text-decoration: none;
}

.search-title:hover {
    text-decoration: underline;
}

/* パーマリンクURL */
.search-url {
    color: #006621;
    font-size: 0.9em;
    margin: 5px 0;
    word-break: break-all;
}

/* 抜粋テキスト */
.search-excerpt {
    color: #545454;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* 権限別検索フォームスタイル */

/* 支部役員用検索フォーム（緑系） */
.officer-header-search {
    border-color: #339867;
}
.officer-header-search button {
    background-color: #339867;
}
.officer-header-search button:hover {
    background-color: #26925E;
}

/* 会員用検索フォーム（青系） */
.member-header-search {
    border-color: #009FB9;
}
.member-header-search button {
    background-color: #009FB9;
}
.member-header-search button:hover {
    background-color: #008ca3;
}

/* ログイン促進メッセージ */
.search-login-required {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}
.search-login-required .login-link {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
}
.search-login-required .login-link:hover {
    background: #0056b3;
}
