@charset "UTF-8";

/* =========================================
   共通パーツ
========================================= */
.SearchContainer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
}

/* サブセクションの共通見出し（追加） */
.SubSectTitle {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
/* =========================================
   1. クイック検索（目的別パネル）
========================================= */
.QuickGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.QuickCard {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}
.QuickCard:hover {
    border-color: #ff8400;
    box-shadow: 0 4px 10px rgba(255, 132, 0, 0.15);
    transform: translateY(-2px);
}
.QuickIcon {
    font-size: 24px;
    margin-right: 12px;
}
.QuickText .QTitle {
    font-weight: bold;
    font-size: 14px;
    color: #232f3e;
    margin-bottom: 2px;
}
.QuickText .QDesc {
    font-size: 11px;
    color: #666;
}

/* =========================================
   2. 直感検索（文章完成型）
========================================= */
.IntuitiveSearchBox {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.PhraseBox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 20px; 
    font-weight: bold;
    color: #444;
}
.PhraseLine {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.pl-prefix, .pl-suffix {
    white-space: nowrap;
}
.SelectPhrase {
    appearance: none;
    background-color: #f4f6f6;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #007185;
    font-size: 20px; 
    font-weight: bold;
    padding: 6px 35px 6px 15px;
    margin: 0 5px;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007185'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 22px;
    transition: all 0.2s;
    vertical-align: middle;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.SelectPhrase:hover, .SelectPhrase:focus {
    color: #ff8400;
    border-color: #ffcc80;
    background-color: #fffaf0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8400'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}
.IntuitiveAction {
    margin: 0;
    flex-shrink: 0; 
}
.GoBtn {
    display: inline-block;
    text-decoration: none;
    background: #ff8400;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 132, 0, 0.3);
    transition: 0.2s;
    white-space: nowrap;
}
.GoBtn:hover {
    background: #e67600;
    transform: scale(1.05);
}

@media screen and (max-width: 950px) {
    .IntuitiveSearchBox {
        flex-direction: column;
        padding: 20px 15px;
        align-items: stretch;
    }
    .PhraseBox {
        flex-direction: column;
        align-items: stretch;
        gap: 15px; 
    }
    .PhraseLine {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    .pl-prefix {
        width: 4.5em; 
        text-align: right;
        font-size: 15px;
    }
    .pl-suffix {
        width: 3.5em; 
        text-align: left;
        font-size: 15px;
    }
    .SelectPhrase {
        flex-grow: 1;
        width: 10px; 
        font-size: 16px;
        padding: 8px 30px 8px 10px;
        background-size: 20px;
        margin: 0;
    }
    .IntuitiveAction {
        text-align: center; 
        margin-top: 25px;
    }
    
    /* スマホ時のバッジサイズ縮小 */
    .Chip {
        padding: 5px 8px;
        font-size: 11px;
    }
    .CategoryLevel {
        padding: 8px;
    }
}

/* =========================================
   3. 高機能検索（完全版）
========================================= */
.AdvancedSearchBox {
    background: #f4f6f8; /* 薄い灰色 */
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 25px 20px;
}

/* 階層ごとのエリア背景 */
.CategoryLevel {
    padding: 12px;
    border-radius: 8px;
    margin-top: 5px;
    transition: all 0.2s ease;
}
.Level-Parent {
    background: #e8f0fe; /* 薄い青 */
    border: 1px solid #d2e3fc;
}
.Level-Child {
    background: #fce8e8; /* 薄いピンク */
    border: 1px solid #fad2d2;
}
.Level-Grandchild {
    background: #e8f5e9; /* 薄い緑 */
    border: 1px solid #c8e6c9;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

/* もっと見るトグルボタン */
.MoreToggleBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin: 5px 0;
}
.MoreToggleBtn .Line {
    flex-grow: 1;
    height: 1px;
    background: #ddd;
    margin: 0 15px;
}

.SearchInputWrapper {
    margin-bottom: 25px;
}
.KeywordInput {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.KeywordInput:focus {
    border-color: #007185;
}

.FilterBlock {
    margin-bottom: 25px;
}
.FilterLabel {
    font-size: 14px;
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
    display: block;
    border-left: 4px solid #ff8400;
    padding-left: 8px;
}

/* チップの基本スタイル */
.ChipGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.Chip {
    padding: 8px 16px;
    background: #f4f6f6;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
.Chip:hover {
    background: #e8f0fe;
    border-color: #b3d4fc;
}
/* 単一選択（ラジオ）のActive */
.Chip.active {
    background: #e8f0fe;
    color: #007185;
    border-color: #007185;
    font-weight: bold;
}
/* 複数選択（チェックボックス）のActive */
.Chip.multi-active {
    background: #fffaf0;
    color: #d67a00;
    border-color: #ffcc80;
    font-weight: bold;
}

/* サブカテゴリ展開エリア */
.SubCategoryArea {
    display: none; 
    margin-top: 12px;
    padding: 15px;
    background: #f9fbfc;
    border-radius: 8px;
    border: 1px dashed #b3d4fc;
}

/* 出版社のハイブリッド入力 */
.PublisherHybrid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
/* 親レベル幅を100%に固定（インラインから移行） */
.PublisherHybrid .Level-Parent {
    width: 100%;
}
.PublisherInput {
    flex-grow: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

/* 価格入力エリア */
.PriceRange {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 価格入力用フレックスグループ（追加） */
.PriceInputGroup {
    width: 100%;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.PriceInput {
    width: 80px; /* インラインスタイルの80pxに統一 */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: right;
    font-size: 15px;
}

/* デュアルスライダー（価格帯用・HTMLインラインから移行） */
.dual-slider-wrapper { 
    position: relative; 
    width: 100%; 
    height: 30px; 
    margin-top: 10px; 
}
.dual-slider-track { 
    position: absolute; 
    top: 12px; 
    left: 0; 
    right: 0; 
    height: 6px; 
    background: #ddd; 
    border-radius: 3px; 
}
.dual-slider-fill { 
    position: absolute; 
    top: 12px; 
    left: 0%; 
    width: 5%; 
    height: 6px; 
    background: #007185; 
    border-radius: 3px; 
}
.dual-slider-input { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 30px; 
    -webkit-appearance: none; 
    appearance: none; 
    background: transparent; 
    pointer-events: none; 
    margin: 0; 
    outline: none; 
}
.dual-slider-input::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 20px; 
    height: 20px; 
    background: #fff; 
    border: 2px solid #007185; 
    border-radius: 50%; 
    cursor: pointer; 
    pointer-events: auto; 
}
.dual-slider-input::-moz-range-thumb { 
    width: 20px; 
    height: 20px; 
    background: #fff; 
    border: 2px solid #007185; 
    border-radius: 50%; 
    cursor: pointer; 
    pointer-events: auto; 
    border: none; 
}

/* マニアックな詳細設定（アコーディオン） */
.DetailAccordionToggle {
    text-align: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}
.DetailAccordionToggle button {
    background: none;
    border: none;
    color: #007185;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}
.DetailAccordionContent {
    display: none;
    margin-top: 15px;
}

.AdvancedAction {
    margin-top: 30px;
    text-align: center;
}
.MainSearchBtn {
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
    background: #232f3e;
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s, background 0.2s;
}
.MainSearchBtn:hover {
    background: #131a22;
}
.MainSearchBtn:active {
    transform: scale(0.98);
}