/* 旅Stay カスタムCSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    /* メインカラー（グリーン系） */
    --color-primary:        #2D8B4E;
    --color-primary-dark:   #1E6B3A;
    --color-primary-light:  #E8F5E9;
    --color-primary-50:     #F1F8F3;

    /* アクセント */
    --color-accent:         #FF8F00;
    --color-accent-dark:    #E65100;

    /* ニュートラル */
    --color-text:           #1A1A2E;
    --color-text-secondary: #6B7280;
    --color-text-light:     #9CA3AF;
    --color-border:         #E5E7EB;
    --color-bg:             #FFFFFF;
    --color-bg-secondary:   #F9FAFB;

    /* 評価スター */
    --color-star:           #FBBF24;
    --color-star-empty:     #D1D5DB;

    /* ステータス */
    --color-success:        #10B981;
    --color-error:          #EF4444;
    --color-warning:        #F59E0B;

    /* タイポグラフィ */
    --font-family-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
}

/* ロゴ */
.logo {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}
.logo .logo-tabi {
    color: var(--color-primary);
}
.logo .logo-stay {
    color: var(--color-text);
}

/* ボタン */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    transition: background-color 0.2s;
}
.btn-accent:hover {
    background-color: var(--color-accent-dark);
}

/* FAB（投稿ボタン） */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000;
    text-decoration: none;
}
.fab:hover {
    transform: scale(1.1);
    background-color: var(--color-accent-dark);
}

/* 星評価 */
.star-rating {
    display: inline-flex;
    gap: 2px;
}
.star-rating .star {
    color: var(--color-star-empty);
    cursor: pointer;
    font-size: 1.25rem;
}
.star-rating .star.filled {
    color: var(--color-star);
}

/* InfoWindow（地図ポップアップ） */
.info-window {
    max-width: 320px;
    font-family: var(--font-family-base);
}
.info-window .info-thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}
.info-window .info-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}
.info-window .info-location {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}
.info-window .info-price {
    font-weight: 700;
    color: var(--color-primary);
}
.info-window .info-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.info-window .info-link:hover {
    text-decoration: underline;
}

/* 詳細パネル */
.detail-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    overflow-y: auto;
    transition: right 0.3s ease;
}
.detail-panel.open {
    right: 0;
}
.detail-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    display: none;
}
.detail-panel-overlay.open {
    display: block;
}

/* カルーセル */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}
.carousel-slide {
    min-width: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* フィルターバー */
.filter-bar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    z-index: 100;
}

/* 設備アイコンバッジ */
.facility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ステップフォーム */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.step-indicator .step {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--color-border);
    color: var(--color-text-light);
}
.step-indicator .step.active {
    background: var(--color-primary);
    color: white;
}
.step-indicator .step.completed {
    background: var(--color-success);
    color: white;
}

/* 画像アップロード */
.image-upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-50);
}
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}
.image-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .detail-panel {
        width: 100%;
        right: -100%;
    }
    .fab {
        bottom: 1rem;
        right: 1rem;
    }
}
