/* 🎨 1. カラー変数の設定 */
:root {
    --primary-color: #e65100;    
    --accent-color: #ff9800;     
    --bg-color: #fdfbf7;         
    --card-bg: #ffffff;
    --text-main: #2e1e14;        
    --text-muted: #7c6e65;
    --border-color: #ebdcd0;
}

/* 🖼️ 2. ヘッダー背景画像（黒フィルターを限界まで薄くし、明るさを大幅にアップ） */
header {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)), url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6); /* 文字の視認性をキープ */
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin: 0 auto 20px;
}

.lang-switch {
    display: inline-flex;
    gap: 8px;
}
.btn-lang {
    background: rgba(0, 0, 0, 0.3); /* ボタンの文字が見えやすいよう背景を少し暗めに補正 */
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}
.btn-lang.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.search-filter-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

#btn-nearme {
    background: #222;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}
#btn-nearme.active {
    background: var(--accent-color);
}

.filter-group {
    margin-bottom: 16px;
}
.filter-group h3 {
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}
.filter-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 14px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
    transition: all 0.2s;
}
.filter-options label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.filter-options label:has(input:checked) {
    background-color: #fbf7f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}
.filter-options input {
    margin-right: 6px;
    accent-color: var(--primary-color);
}

.area-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-area {
    background: #f5f2eb;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
}
.btn-area.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.results-header {
    margin-bottom: 15px;
    font-weight: bold;
}
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.spot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.spot-header {
    padding: 16px;
    background: #faf9f6;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.spot-title-row {
    display: flex;
    flex-direction: column;
}
.spot-name {
    font-size: 16px;
    font-weight: bold;
}
.spot-area {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.spot-price {
    font-weight: bold;
    color: var(--primary-color);
}
.spot-body {
    padding: 16px;
    flex-grow: 1;
}
.spot-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.spot-meta {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-item i {
    width: 16px;
    color: var(--primary-color);
}

.tag {
    display: inline-block;
    font-size: 11px;
    background: #eef5f2;
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: bold;
}
.spot-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}
.btn-map {
    display: block;
    text-align: center;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.btn-link {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-link.web { background-color: #33a853; }
.btn-link.wa { background-color: #25D366; }
.btn-link.fb { background-color: #3b5998; }
.btn-link.ig { background-color: #e1306c; }
.btn-link.tel { background-color: #f4b400; color: #000 !important; }

.site-footer {
    background-color: #1e1b18; 
    color: #bfae99;            
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 3px solid var(--primary-color);
    font-size: 13px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-share:active { transform: scale(0.97); }

.btn-share.wa { background-color: #25D366; }
.btn-share.wa:hover { background-color: #20ba56; }

.btn-share.line { background-color: #06C755; }
.btn-share.line:hover { background-color: #05b04b; }

.btn-share.copy { background-color: #4a443c; color: #fff; }
.btn-share.copy:hover { background-color: #5c544b; }

.disclaimer-box p {
    line-height: 1.7;
    color: #9c8e7c;
    text-align: justify;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
}
.footer-bottom .copyright {
    font-size: 12px;
    color: #736859;
}

/* ==========================================================================
   📱 モバイル（スマホ）環境用の高さ圧縮調整
   ========================================================================== */
@media (max-width: 768px) {
    header {
        /* 背景の黒いモヤをさらに薄くキープ */
        background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)), url('../images/back.jpg') !important;
        /* 💡 上下の余白を 45px から 20px / 15px まで大幅に圧縮して高さを削ります */
        padding: 20px 15px 15px !important;
    }
    header h1 { 
        font-size: 1.6rem !important; 
        text-shadow: 0 3px 8px rgba(0,0,0,0.7) !important; 
        margin-top: 0 !important;
        margin-bottom: 4px !important; /* 文字の下隙間を最小限に */
    }
    header p { 
        font-size: 0.85rem !important; 
        margin-bottom: 12px !important; /* 言語ボタンとの隙間を狭く */
        line-height: 1.4 !important;
    }
    
    /* 念のため他パーツへの影響を防ぐ既存の設定 */
    .site-footer { padding: 30px 15px 15px; margin-top: 30px; }
    .share-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; } 
    .btn-share { justify-content: center; padding: 10px; font-size: 14px; }
    .search-filter-section { padding: 10px 12px !important; }
    .filter-group { margin-bottom: 8px !important; }
    .filter-group h3 { font-size: 12px !important; margin-bottom: 4px !important; }
    .filter-options, .area-buttons-grid { gap: 6px 8px !important; margin-top: 2px !important; }
    .btn-area, .filter-options label { padding: 4px 10px !important; font-size: 12px !important; }
    #search-input { padding: 8px !important; margin-top: 4px !important; }
}