/**
 * shop-styles.css
 * お店データベース用スタイル
 * テーマの style.css に @import するか、wp_enqueue_style() で読み込んでください。
 */

/* ========================================
   共通
======================================== */
.shop-archive__inner,
.shop-single__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========================================
   絞り込みフォーム
======================================== */
.shop-filter {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.shop-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.shop-filter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shop-filter__field label {
    font-size: 0.85em;
    font-weight: bold;
    color: #555;
}
.shop-filter__field input[type="text"],
.shop-filter__field select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    min-width: 180px;
}
.shop-filter__btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s;
}
.shop-filter__btn:hover { background: #1d4ed8; }
.shop-filter__reset {
    font-size: 0.85em;
    color: #888;
    text-decoration: underline;
    margin-left: 8px;
}

/* ========================================
   件数表示
======================================== */
.shop-count {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 16px;
}

/* ========================================
   グリッド
======================================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.shop-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ========================================
   カード
======================================== */
.shop-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.shop-card__thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.shop-card__thumb--noimage {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9em;
}
.shop-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.shop-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-card__name { font-size: 1.1em; font-weight: bold; margin: 0; }
.shop-card__name a { color: #111; text-decoration: none; }
.shop-card__name a:hover { color: #2563eb; }
.shop-card__area { font-size: 0.85em; color: #555; margin: 0; }
.shop-card__meta { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-card__meta-item { font-size: 0.82em; color: #666; }
.shop-card__desc { font-size: 0.85em; color: #777; margin: 0; line-height: 1.6; }
.shop-card__more {
    display: inline-block;
    margin-top: auto;
    font-size: 0.85em;
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

/* ========================================
   タグバッジ
======================================== */
.shop-tag-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78em;
    text-decoration: none;
    transition: background 0.2s;
}
.shop-tag-badge:hover { background: #dbeafe; }

/* 年度バッジ（グレー系で区別） */
.shop-tag-badge--year {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}
.shop-tag-badge--year:hover { background: #e5e7eb; }

/* ========================================
   ページネーション
======================================== */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.shop-pagination a,
.shop-pagination span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9em;
}
.shop-pagination .current { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ========================================
   詳細ページ
======================================== */
.shop-breadcrumb {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 20px;
}
.shop-breadcrumb a { color: #2563eb; text-decoration: none; }
.shop-breadcrumb span { margin: 0 6px; }

.shop-detail__header { margin-bottom: 24px; }
.shop-detail__name { font-size: 2em; font-weight: bold; margin: 8px 0; }
.shop-detail__area a { color: #555; text-decoration: none; font-size: 0.9em; }

/* ギャラリー */
.shop-gallery { margin-bottom: 30px; }
.shop-gallery__main img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}
.shop-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.shop-gallery__thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}
.shop-gallery__thumb:hover,
.shop-gallery__thumb.is-active { opacity: 1; border-color: #2563eb; }

/* 紹介文 */
.shop-detail__desc {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
    line-height: 1.8;
}
.shop-detail__desc h2 { font-size: 1.1em; margin-top: 0; }

/* 店舗情報テーブル */
.shop-detail__info { margin-bottom: 30px; }
.shop-detail__info h2 { font-size: 1.2em; border-left: 4px solid #2563eb; padding-left: 10px; }

.shop-info-table { width: 100%; border-collapse: collapse; }
.shop-info-table th,
.shop-info-table td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: left;
    font-size: 0.95em;
    line-height: 1.7;
}
.shop-info-table th {
    background: #f3f4f6;
    font-weight: bold;
    width: 130px;
    white-space: nowrap;
}
.shop-info-table a { color: #2563eb; }

.shop-map-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #2563eb !important;
}

/* マップ */
.shop-detail__map { margin-bottom: 30px; }
.shop-detail__map h2 { font-size: 1.2em; border-left: 4px solid #2563eb; padding-left: 10px; }

/* 戻るボタン */
.shop-btn-back {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #2563eb;
    border-radius: 6px;
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.2s, color 0.2s;
}
.shop-btn-back:hover { background: #2563eb; color: #fff; }

/* 関連店舗 */
.shop-related { margin-top: 40px; }
.shop-related h2 { font-size: 1.2em; border-left: 4px solid #2563eb; padding-left: 10px; }

/* 見つからない */
.shop-none { text-align: center; color: #888; padding: 40px 0; line-height: 2; }

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
    .shop-filter__row { flex-direction: column; }
    .shop-filter__field input[type="text"],
    .shop-filter__field select { min-width: auto; width: 100%; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .shop-detail__name { font-size: 1.5em; }
    .shop-info-table th { width: 90px; }
}
