/* ============================================
   Aces-Club キャンプ情報 カスタムCSS
   ============================================ */

/* カラーテーマ（明るいナチュラルグリーン） */
:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a8e6cf;
    --primary-pale: #e8f8f0;
    --accent: #f39c12;
    --bg-body: #f5faf6;
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --footer-bg: #34495e;
    --navbar-bg: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* 全体 */
body {
    font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
}

/* ナビバー */
.navbar.bg-success {
    background: var(--navbar-bg) !important;
    box-shadow: 0 2px 12px rgba(46, 204, 113, 0.3);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar-brand {
    font-size: 1.65rem;
}

/* Bootstrapの text-success / btn-success 上書き */
.text-success {
    color: var(--primary-dark) !important;
}

.btn-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-success {
    color: var(--primary-dark) !important;
    border-color: var(--primary) !important;
}

.btn-outline-success:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.bg-success {
    background-color: var(--primary) !important;
}

.bg-success.bg-opacity-10 {
    background-color: #f0f9ff !important;
}

.badge.bg-success {
    background-color: var(--primary) !important;
}

.badge.bg-info {
    background-color: #5dade2 !important;
}

.badge.bg-warning {
    background-color: #f9e547 !important;
    color: #5d4e00 !important;
}

.table-success {
    --bs-table-bg: var(--primary-pale) !important;
    --bs-table-color: var(--text-main) !important;
}

/* トップページ: 都道府県ボタン */
.prefecture-btn {
    min-width: 100px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 20px;
}

.prefecture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

/* 地域カード */
.region-card {
    border-left: 4px solid var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.region-card .card-header h2 {
    color: #1a5c34 !important;
    font-weight: 700;
}

/* キャンプ場カード */
.campground-card {
    transition: all 0.2s;
    border: 1px solid #e0e8e4;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.campground-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.12);
}

.campground-card .card-title a:hover {
    text-decoration: underline !important;
}

/* 詳細ページ: テーブル */
.detail-table th.detail-label {
    width: 160px;
    background-color: var(--primary-pale);
    font-weight: 600;
    white-space: nowrap;
    vertical-align: top;
    color: var(--primary-dark);
}

.detail-table td {
    word-break: break-word;
}

/* カード全般 */
.card {
    border-radius: 12px;
    border-color: #e0e8e4;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.card-header.bg-success {
    border-radius: 12px 12px 0 0 !important;
    background: var(--navbar-bg) !important;
}

/* 検索バー */
.border-success {
    border-color: var(--primary-light) !important;
}

/* Instagram 用ボタン色 */
.btn-purple {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    border: none;
    color: #fff;
}

.btn-purple:hover {
    opacity: 0.85;
    color: #fff;
}

/* ヒーローカルーセル */
.hero-carousel {
    margin-left: -12px;
    margin-right: -12px;
}

.hero-carousel .carousel-inner {
    border-radius: 16px !important;
}

.hero-img {
    height: 310px;
    object-fit: cover;
    filter: brightness(1.05) saturate(1.1);
}

.hero-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 20px 30px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-caption h2 {
    font-size: 1.8rem;
}

.hero-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero-img {
        height: 140px;
    }

    .hero-caption h2 {
        font-size: 1.2rem;
    }

    .hero-caption p {
        font-size: 0.9rem;
    }
}

/* サイト別料金 */
.site-price-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #e0e8e4;
}

.site-price-list li:last-child {
    border-bottom: none;
}

.detail-table .table-sm {
    font-size: 0.9rem;
    table-layout: fixed;
    width: 100%;
}

.detail-table .table-sm th.price-th {
    background-color: var(--primary-pale);
    padding: 6px 10px;
    width: 40%;
    word-break: break-word;
}

.detail-table .table-sm td {
    padding: 6px 10px;
    word-break: break-word;
}

/* パンくずリスト */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ページネーション */
.page-link {
    color: var(--primary-dark);
    border-radius: 8px;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* フッター */
footer {
    margin-top: auto;
}

footer.bg-dark {
    background-color: var(--footer-bg) !important;
}

/* フォーム */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* アラート */
.alert-info {
    background-color: #e8f6fd;
    border-color: #bee5f7;
    color: #1a6e8e;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .detail-table th.detail-label {
        width: 120px;
        font-size: 0.85rem;
    }

    .detail-table td {
        font-size: 0.9rem;
    }

    .prefecture-btn {
        min-width: 80px;
        font-size: 0.85rem;
    }

    h1.display-6 {
        font-size: 1.5rem;
    }
}

/* Google翻訳ウィジェット */
#google_translate_element select {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.85rem;
}
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget .goog-te-combo { margin: 4px 0; }
.goog-te-gadget { font-size: 0; }
.goog-te-gadget span { display: none; }

/* 広告スロット */
.ad-slot {
    margin: 10px 0;
    min-height: 50px;
    overflow: hidden;
}
