/* ========================================
   基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb-wrapper {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    list-style: none;
}

/* スクロールバーを非表示 */
.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-link {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #666;
}

/* ========================================
   ヘッダー
   ======================================== */
.page-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.page-header h1,
.page-title {
    font-size: 28px;
    font-weight: bold;
    text-align: left;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    min-height: 400px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 件数表示 */
.result-count {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.count-text {
    flex-shrink: 0;
}

.update-time {
    font-size: 12px;
    color: #999;
    text-align: right;
    white-space: nowrap;
}

/* ========================================
   ツアーカード
   ======================================== */
.tour-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tour-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ツアー画像 */
.tour-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ツアー情報 */
.tour-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ツアーヘッダー（ブランド画像 + 出発地） */
.tour-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 32px;
}

/* ブランド画像 */
.brand-image {
    height: 24px;
    width: auto;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    background-color: #fff;
    border-radius: 2px;
    object-fit: contain;
}

/* 出発地バッジ */
.departure-badge {
    display: inline-block;
    padding: 6px 10px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
    line-height: 1.2;
}

/* ツアータイトル */
.tour-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 66px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ツアー詳細 */
.tour-details {
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.tour-details p {
    margin-bottom: 5px;
}

/* 価格セクション（右寄せ + 下部固定） */
.tour-price-section {
    margin-top: auto;
    margin-bottom: 15px;
    text-align: right;
}

/* 料金条件（価格の上に表示） */
.tour-price-condition {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

/* 価格表示 */
.tour-price {
    font-size: 22px;
    font-weight: bold;
    color: #dc3545;
}

/* 価格の「円」と「〜」を小さく */
.price-unit,
.price-separator {
    font-size: 14px;
    font-weight: normal;
}

/* ボタン */
.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #dc3545;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-bottom: 8px;
}

.btn-primary:hover {
    background-color: #c82333;
    text-decoration: none;
}

/* コース番号（ボタンの下、右寄せ、小さく灰色） */
.course-number {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 0;
}

/* ========================================
   ローディング・エラー表示
   ======================================== */
.loading,
.error-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
}

.loading {
    color: #666;
    font-size: 16px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット */
@media (max-width: 768px) {
    .page-header h1,
    .page-title {
        font-size: 22px;
    }

    .breadcrumb {
        font-size: 11px;
        padding: 0 15px;
    }

    .tour-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .tour-title {
        font-size: 15px;
        min-height: 63px;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .page-header h1,
    .page-title {
        font-size: 18px;
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 10px;
        padding: 0 10px;
    }

    .breadcrumb-separator {
        margin: 0 4px;
    }

    .container {
        padding: 0 10px;
    }

    .tour-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tour-title {
        font-size: 14px;
        min-height: 60px;
    }

    .tour-price {
        font-size: 20px;
    }

    .btn-primary {
        padding: 10px;
        font-size: 14px;
    }

    /* 件数表示のレスポンシブ対応 */
    .result-count {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .update-time {
        font-size: 11px;
        align-self: flex-end;
    }
}
