/* ==========================================================================
   KL FINE GOLF COURSES - Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f9fa;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* 1. トップナビゲーションバー */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴテキスト：より鮮やかでアクティブなグリーンへ */
.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #10b981; /* 鮮やかなエメラルド・ミントグリーン */
    letter-spacing: 1px;
}
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 高級版への切り替えボタン：高級版のゴールド(b39258)から、高級版のテーマカラー（ディープエメラルドなど）へ誘導する色へ変更 */
.btn-toggle-site {
    background-color: #fff;
    color: #064e3b; /* 高級感を漂わせる深い深緑 */
    border: 1px solid #064e3b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.btn-toggle-site:hover {
    background-color: #064e3b;
    color: #fff;
}

.lang-selector select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccd6dd;
    background-color: #fff;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
}

/* 2. ヘッダー（ヒーローセクション）- 暗くしない設定 */
.hero-section {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    border-radius: 12px;
    background-image: url('../images/fc-back.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: none !important;
    background: transparent !important;
}

/* ヒーローセクション内のテキスト：背景の明るい画像に溶け込みつつ爽やかに映える色 */
#txt-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f766e; /* 爽快なティール・深青緑 */
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
}
#header-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #14b8a6; /* 明るいアクティブなティール */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
}

/* 3. 検索窓 & フィルターコンテナ */
.search-filter-container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.search-box-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ccd6dd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

#search-input:focus {
    border-color: #1b4d3e;
}

/* 各種ボタン（Near Meやオフィシャルサイトボタン）：アクティブなグリーンへ統一 */
#near-me-btn, .btn-web {
    background-color: #10b981; /* 鮮やかなグリーン */
    color: #fff;
}

#near-me-btn:hover, .btn-web:hover {
    background-color: #059669;
}

.filter-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #788896;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 12px;
    border: 1px solid #ccd6dd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #2c3e50;
    outline: none;
    cursor: pointer;
}

.results-counter {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #788896;
    text-align: right;
}

/* 4. ゴルフ場カードレイアウト */
.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

.michelin-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.michelin-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    transition: transform 0.2s, box-shadow 0.2s;
}

.michelin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.michelin-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.3;
}

.distance-badge {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-cuisine { background-color: #e1f5fe; color: #0288d1; }
.badge-price { background-color: #fff3e0; color: #f57c00; }
.badge-card { background-color: #f5f5f5; color: #616161; }

.status-row {
    font-size: 13px;
    margin-bottom: 14px;
}
.status-open { color: #2e7d32; }
.status-closed { color: #c62828; }
.hours-sub { color: #788896; }

.desc-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    font-size: 13.5px;
    color: #4f5d6a;
}
.desc-box strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

.card-footer-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-maps, .btn-waze, .btn-web {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.btn-maps { background-color: #4285f4; color: #fff; }
.btn-waze { background-color: #33ccff; color: #fff; }
.btn-web { background-color: #1b4d3e; color: #fff; display: block; }

/* 5. フッター */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e1e8ed;
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
}

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

.disclaimer-text {
    font-size: 13px;
    color: #788896;
    line-height: 1.6;
    margin-bottom: 24px;
}

.share-buttons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-share.wa { background-color: #25d366; }
.btn-share.ln { background-color: #06c755; }
.btn-share.cp { background-color: #657786; }

.copyright {
    font-size: 12px;
    color: #aab8c2;
}

/* ==========================================================================
   ★ モバイル向け最適化 (高さ制限 & アクションバーの最適化)
   ========================================================================== */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .btn-toggle-site {
        padding: 5px 10px;
        font-size: 12px;
    }

    .hero-section {
        padding: 24px 16px !important;
        margin: 10px !important;
        min-height: auto !important;
    }

    #txt-title {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }

    #header-subtitle {
        font-size: 11px !important;
    }

    .search-filter-container {
        margin: 10px !important;
        padding: 14px !important;
    }

    .search-box-row {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    #search-input {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    #near-me-btn {
        padding: 0 14px !important;
        font-size: 13px !important;
    }

    .filter-controls-grid {
        grid-template-columns: 1fr;
        gap: 10px !important;
    }

    .filter-group select {
        padding: 10px !important;
        font-size: 13.5px !important;
    }

    .results-counter {
        margin-top: 10px !important;
        font-size: 12px !important;
    }

    .michelin-grid-container {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
        gap: 16px !important;
    }
    
    .michelin-card {
        padding: 16px !important;
    }
}