@charset "UTF-8";

/* ==================================================
   サイドバー検索フォーム用スタイル
   ================================================== */
.sb-search-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* タブエリア */
.sb-tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.sb-tab {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: none;
    font-weight: bold;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #eee;
    text-align: center;
}
.sb-tab:last-child {
    border-right: none;
}

.sb-tab:hover {
    background: #f0f4ff;
    color: #4169e1;
}

.sb-tab.is-active {
    background: #fff;
    color: #4169e1;
    border-bottom: 3px solid transparent;
    position: relative;
}
/* アクティブなタブの下線を消して白で繋げる */
.sb-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}

/* パネルエリア */
.sb-panels {
    padding: 15px;
}

.sb-panel {
    display: none;
}
.sb-panel.is-active {
    display: block;
    animation: sbFadeIn 0.3s ease;
}

@keyframes sbFadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.sb-label {
    font-size: 12px;
    margin: 0 0 10px;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* フォーム要素共通 */
.sb-select, .sb-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fdfdfd;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.sb-select:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

.sb-submit-btn {
    width: 100%;
    padding: 12px;
    background: #4169e1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    display: block;
}

.sb-submit-btn:hover {
    opacity: 0.85;
}

.sb-submit-btn.disabled {
    background: #ccc;
    pointer-events: none;
}

/* 特徴検索のスクロールエリア */
.sb-feature-scroll {
    height: 180px; /* 少し高さを確保 */
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    background: #fcfcfc;
}

/* スクロールバー装飾 */
.sb-feature-scroll::-webkit-scrollbar { width: 6px; }
.sb-feature-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.sb-feature-scroll::-webkit-scrollbar-track { background: #f9f9f9; }

.sb-group-title {
    font-size: 11px;
    color: #888;
    margin: 10px 0 5px;
    padding-bottom: 3px;
    border-bottom: 1px dashed #eee;
}
.sb-group-title:first-child {
    margin-top: 0;
}

.sb-check-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}
.sb-check-label:hover {
    color: #4169e1;
}
.sb-check-input {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}