/* ========================================
   MYSTORY Store Page Styles
   ======================================== */

/* サブタイトル */
.store-subtitle {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

/* 案内リンク */
.store-info-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.store-info-links .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
}

.store-info-links .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.store-info-links .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.store-info-links .btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.store-info-links .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-info-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.btn-info-link img {
    height: 32px;
    width: auto;
}

.btn-info-link:hover {
    opacity: 0.85;
}

/* 絞り込みボタンエリア */
.filter-toggle-area {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-filter-toggle {
    position: relative;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filter-toggle img {
    height: 40px;
    width: auto;
}

.btn-filter-toggle:hover {
    opacity: 0.85;
}

.btn-filter-toggle .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 絞り込みパネル */
.filter-panel {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 12px 15px;
    margin: 0;
    border-radius: 12px 12px 0 0;
}

.filter-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.filter-header .btn-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-header .btn-link:hover {
    color: #e0b775;
}

.filter-body {
    padding: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: left;
}

/* フォームコントロール（セレクトボックス・入力フィールド）カスタマイズ */
.filter-panel .form-select,
.filter-panel .form-control {
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-color);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel .form-select:focus,
.filter-panel .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(202, 155, 87, 0.2);
    outline: none;
}

.filter-panel .form-select:disabled {
    background-color: #e9ecef;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* ピックアップタグ */
.filter-pickups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pickup-tag {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pickup-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.filter-pickup-tag.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* is_feature ピックアップタグ */
.filter-pickup-tag.is-feature {
    background-color: #b33736;
    color: #fff;
    border-color: #b33736;
}

.filter-pickup-tag.is-feature:hover {
    background-color: #fff;
    color: #b33736;
    border-color: #b33736;
}

.filter-pickup-tag.is-feature.active {
    background-color: #fff;
    color: #b33736;
    border-color: #b33736;
}

.filter-footer {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

.btn-filter-apply {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.btn-filter-apply img {
    width: 100%;
    height: auto;
}

.btn-filter-apply:hover {
    opacity: 0.85;
}

/* 検索結果ヘッダー */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

/* 検索結果件数 */
.result-count {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* ソートセレクト */
.sort-select {
    width: auto;
    min-width: 120px;
    font-size: 0.8rem;
    padding: 6px 30px 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

#result-count-num {
    font-weight: 600;
    color: var(--primary-color);
}

/* ローディング（オーバーレイ） */
.store-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.store-loading.show {
    display: flex;
}

/* エラー表示 */
.store-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

/* クエスト一覧 */
.quest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color:var(--bg-header);
    padding: 12px;
    border-radius: 8px;
}

/* クエストカード - Figmaデザイン */
.quest-card {
    display: block;
    background: #fff;
    overflow: hidden;
    color: inherit;
    padding: 12px 15px;
}

/* バナーリンク */
.quest-title-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.quest-title-banner-link:hover {
    text-decoration: none;
    color: inherit;
}

/* カードヘッダー（地域 + 価格） */
.quest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.quest-location {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-navy);
}

.location-prefecture {
}

.location-separator {
    margin: 0 4px;
}

.location-city {
}

.quest-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 価格 + 難易度表示（同じ行） */
.quest-difficulty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.quest-difficulty-row .quest-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.difficulty-img {
    height: 26px;
    width: auto;
}

/* タイトルバナー（忍者アイコン + タイトルを1つのコンテナに） */
.quest-title-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    min-height: 75px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quest-title-banner-link:hover .quest-title-banner {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 忍者SVGラッパー - バナー全体の高さに合わせる */
.ninja-svg-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    clip-path: inset(0);
}

.ninja-svg-wrapper .ninja-svg {
    display: block;
    height: 100%;
    width: auto;
    min-height: 75px;
}

/* タイトル（忍者の右側に配置） */
.quest-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 8px 12px 8px 75px;
    line-height: 1.4;
    text-align: left;
    height: 75px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* めぐるスポット */
.quest-spots {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
    text-align: left;
}

.spots-label {
    font-weight: 700;
    font-size: 14px;
    margin-right: 0;
    display: block;
    margin-bottom: 2px;
    text-align: left;
}

.spots-text {
    color: var(--text-navy);
    font-size: 12px;
    font-weight: 700;
    display: block;
    text-align: left;
}

/* キーワード（展開可能） */
.quest-keywords-wrap {
    font-size: 12px;
    color: #797979;
    line-height: 1.8;
    text-align: left;
}

.keywords-short,
.keywords-full {
    display: inline;
}

/* もっと見るボタン */
.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 4px 0;
    margin-top: 4px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.btn-read-more:hover {
    color: #1a2a44;
}

.btn-read-more .arrow {
    font-size: 0.7rem;
}

/* 結果なし */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.no-results p {
    margin: 0;
}

/* モーダルカスタマイズ */
#aboutModal .modal-body,
#helpModal .modal-body {
    text-align: left;
    line-height: 1.8;
}

/* オートコンプリート */
.filter-group {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid var(--border-color);
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

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

.autocomplete-item:hover,
.autocomplete-item.autocomplete-active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.autocomplete-item strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* レスポンシブ対応 - カードは常にリスト表示 */
