/* =========================
   ベース
========================= */
body {
    margin: 0;
    font-family: "Hiragino Sans", sans-serif;
    background: #f7f7f7;
    color: #333;
    padding-top: 70px;
}

h1, h2, h3, h4 {
    margin: 0 0 10px;
}

section {
    box-sizing: border-box;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   共通ヘッダー（固定表示）
========================= */
.header {
    background: #2f5d3a;
    color: white;
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* ロゴ画像：ヘッダーの高さを超えず、横幅は画面の30%以内 */
.logo-img {
    height: 100%;          /* ヘッダーの高さにフィット */
    max-height: 40px;      /* SNSアイコンと揃える（必要なら調整可） */
    width: auto;
    max-width: 30vw;       /* 画面幅の30%を上限にする */
    object-fit: contain;
    display: block;
}


.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

nav a:hover {
    text-decoration: underline;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* SNSアイコン */
.sns-icon img,
.sns-footer img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* =========================
   共通フッター
========================= */
footer {
    background: #2f5d3a;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
}

/* =========================
   セクションタイトル
========================= */
.page-header {
    background: #eef5ef;
    padding: 35px 20px;
    text-align: center;
    border-bottom: 1px solid #d8e4d8;
}

.page-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #2f5d3a;
}

/* =========================
   トップ：ヒーロー
========================= */
.hero {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 55vh;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキスト＋ロゴの背景ボックス */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.45);
    padding: 20px 30px;
    border-radius: 10px;
    color: white;
    text-align: center;
    z-index: 2;
    width: auto; /* PC は従来通り */
    max-width: 1000px; /* PC で広がりすぎないように */
}

/* 差し替えたロゴ画像 */
.hero-logo {
    width: 100%;
    max-width: min(900px, 90vw); /* 画面幅を超えないように調整 */
    height: auto;
    display: block;
    margin: 0 auto 10px; /* 下のテキストとの余白 */
}


/* =========================
   トップ：選ばれる理由
========================= */
.reasons {
    padding: 40px 20px;
    text-align: center;
}

.reasons h2 {
    font-size: 1.6rem;
}

.reason-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.reason {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 25px;
}

.reason img {
    width: 100%;
    aspect-ratio: 5 / 4; /* 横:縦 = 5:4 → 縦:横 = 4:5 */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* =========================
   ▼ 共通カード
========================= */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 25px;
}

.card img {
    width: 100%;
    aspect-ratio: 5 / 4; /* 縦:横 = 4:5 に対応 */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* =========================
   トップ：矢羽根リンク
========================= */
.arrow-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
}

.arrow-box {
    background: #2f5d3a;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-right: 40px;
}

.arrow-box::after {
    content: "▶";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================
   トップ：CTAボタン
========================= */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px 40px;
}

.cta-btn {
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.cta-btn.reserve { background: #2f5d3a; }
.cta-btn.tel { background: #6bb7c5; }
.cta-btn.insta { background: #d66b9a; }

.tel-note {
    margin: -10px 0 5px;
    font-size: 0.9rem;
    color: #555;
}

/* =========================
   トップ：予約状況カレンダー
========================= */
#calendar {
    min-height: 600px;
}

.calendar-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ▼ 月切り替え UI ▼ */
.month-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.month-switcher button {
    background: #2f5d3a;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.month-switcher button:hover {
    background: #244a2f;
}

/* ▼ タブ切り替え ▼ */
.calendar-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-button {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #2f5d3a;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.tab-button.active {
    background: #2f5d3a;
    color: white;
    border-color: #2f5d3a;
}

/* ▼ スマホ最適化 ▼ */
@media screen and (max-width: 650px) {
    .calendar-tabs {
        flex-direction: column;
        gap: 5px;
    }
    .tab-button {
        width: 100%;
    }
}

/* =========================
   FullCalendar v6 カスタム（dayCellContent方式）
========================= */

/* カレンダー全体 */
.fc {
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* 曜日ヘッダー */
.fc .fc-col-header-cell-cushion {
    background: #f4f4f4;
    display: block;
    padding: 8px 0;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    text-align: center;
}

/* 日付セル */
.fc .fc-daygrid-day {
    border: 1px solid #eee;
    background: #fff;
    vertical-align: top;
    position: relative;
}

/* ▼ dayCellContent が入る領域（v6 仕様） */
.fc-daygrid-day-top {
    display: block !important;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 4px;
}

/* ▼ 日付（左上） */
.fc-cell-date {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* ▼ 記号（中央） */
.fc-cell-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: bold;
    color: #2f5d3a; /* 強調色 */
}

/* 今日のセル */
.fc .fc-day-today {
    background: #fff8e6 !important;
    border: 1px solid #ffb84d !important;
}

/* 過去日の「－」 */
.fc .past-day {
    color: #bbb;
}

/* =========================
   PC（1024px〜）
========================= */
@media only screen and (min-width: 1024px) {
    .fc .fc-daygrid-day {
        min-height: 110px;
    }
    .fc-cell-symbol {
        font-size: 26px;
    }
    .fc-cell-date {
        font-size: 15px;
    }
}

/* =========================
   タブレット（651px〜1023px）
========================= */
@media print, screen and (min-width: 651px) and (max-width: 1023px) {
    .fc .fc-daygrid-day {
        min-height: 90px;
    }
    .fc-cell-symbol {
        font-size: 22px;
    }
    .fc-cell-date {
        font-size: 14px;
    }
}

/* =========================
   スマホ（〜650px）
========================= */
@media only screen and (max-width: 650px) {
    .fc .fc-daygrid-day {
        min-height: 70px;
    }
    .fc-cell-symbol {
        font-size: 20px;
    }
    .fc-cell-date {
        font-size: 13px;
    }
}





/* =========================
   トップ：アクセス（中央揃え）
========================= */
.access p,
.access .address {
    text-align: center;
}

.access h2 {
    text-align: center;
}

.map-embed {
    max-width: 800px;
    margin: 25px auto 30px; /* ← 下側にも余白を追加（30px） */
    padding: 0 20px;        /* ← 左右の余白 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
}


/* =========================
   トップ：お知らせ
========================= */
.news ul {
    list-style: none;
    margin: 25px auto 30px; /* ← 下側にも余白を追加（30px） */
    padding: 0 20px;        /* ← 左右の余白 */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.news li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   施設紹介：サイト案内（3 / 2 / 1 列）
========================= */
.site-vertical {
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.site-item.card img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* =========================
   施設紹介：設備案内（3 / 2 / 2 列）
========================= */
.equipment-section {
    padding: 40px 20px 60px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.equipment-item.card img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* =========================
   施設紹介：近くのスポット（2 / 2 / 2 列）
========================= */
.spot-section {
    padding: 40px 20px 60px;
}

.spot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.spot-item.card img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* =========================
   料金ページ（2列レイアウト）
========================= */
.price-section {
    padding: 40px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-section h1 {
    text-align: center;
    margin: -10px 0 5px;
    font-size: 1.7rem;
    color: #0b4f12;
}

.price-section h2 {
    text-align: left;
}

.price-section h3 {
    text-align: center;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    table-layout: fixed;
    border: 1px solid #dcdcdc;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 2列構造 */
.price-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.price-table th {
    background: #e8f0e8;
    text-align: left;
    font-weight: bold;
    color: #2f5d3a;
    padding: 15px;
}

.price-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    word-break: break-word;
}

/* 行の色分け */
.price-table tr:nth-child(even) td {
    background: #fafafa;
}

.price-table tr:nth-child(odd) td {
    background: #ffffff;
}

.note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
}

/* =========================
   料金シミュレーション
========================= */
.simulation-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.simulation-card {
    width: 100%;
    max-width: 600px;
    min-height: 150px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =========================
   FAQ・規約
========================= */
.faq-section,
.privacy-policy-section,
.rules-section {
    padding: 40px 20px;
}

.rules-scroll,
.privacy-policy-scroll {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
    line-height: 1.6;
}

/* =========================
   カード間の余白（全ページ）
========================= */
.card,
.spot-card,
.simulation-card {
    margin-bottom: 25px;
}

/* =========================================================
   ▼ PC（1024px〜）
========================================================= */
@media only screen and (min-width: 1024px) {

    body { font-size: 1rem; }

    /* 理由カード */
    .reason-box { gap: 35px; }

    /* 施設紹介：サイト案内（3列） */
    .site-vertical {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 施設紹介：設備案内（3列） */
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 施設紹介：スポット（2列） */
    .spot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* 料金表（最大幅を設定） */
    .price-table {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .price-table th,
    .price-table td {
        font-size: 1rem;
        padding: 18px;
    }

    /* ヒーロー画像（PC） */
    .hero {
        height: 55vh;
    }

    .hero-text {
        font-size: 1.6rem;
        padding: 25px 35px;
    }
}


/* =========================================================
   ▼ タブレット（651px〜1023px）
========================================================= */
@media print, screen and (min-width: 651px) and (max-width: 1023px) {

    /* キャンプ場タイトル */
    .hero-text {
        width: 90vw;      /* 画面幅の90% */
        max-width: 90vw;
        padding: 18px 24px;
    }
    body { font-size: 0.95rem; }

    /* 理由カード */
    .reason {
        width: 45%;
        max-width: 320px;
    }

    /* 施設紹介：サイト案内（2列） */
    .site-vertical {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 施設紹介：設備案内（2列） */
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 施設紹介：スポット（2列） */
    .spot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* 料金表：余白を中くらいに */
    .price-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* ヒーロー画像（タブレット） */
    .hero {
        height: 50vh;
    }

    .hero-text {
        font-size: 1.4rem;
        padding: 20px 30px;
    }
}


/* =========================================================
   ▼ スマホ（〜650px）
========================================================= */
@media only screen and (max-width: 650px) {

    body { font-size: 0.9rem; }

    /* ナビゲーション（ハンバーガー） */
    nav {
        display: none;
        position: absolute;
        top: 55px;
        right: 0;
        background: #2f5d3a;
        flex-direction: column;
        width: 75%;
        padding: 10px 15px;
    }

    .hamburger { display: block; }
    
    /* キャンプ場タイトル */
    .hero-text {
        width: 90vw;      /* 画面幅の90% */
        max-width: 90vw;
        padding: 16px 20px;
    }
    
    /* 理由カード */
    .reason {
        width: 100%;
        max-width: 350px;
    }

    .reason img {
        width: 100%;
        aspect-ratio: 5 / 4;
    }

    /* 施設紹介：サイト案内（1列） */
    .site-vertical {
        grid-template-columns: 1fr;
    }

    /* 施設紹介：設備案内（2列） */
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* 施設紹介：スポット（2列） */
    .spot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* シミュレーションカード */
    .simulation-card {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    /* Google Map */
    .map-embed iframe {
        height: 260px;
    }

    /* 料金表：余白を狭く */
    .price-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .price-table th,
    .price-table td {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* ヒーロー画像（スマホ） */
    .hero {
        height: 40vh;
    }

    .hero-text {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
}
