/* =========================================
   Base & Reset
   ========================================= */
:root {
    --primary-color: #6B8E23;
    /* オリーブグリーン（落ち着いた自然な緑） */
    --secondary-color: #D2B48C;
    /* タン（木材のような温かみのあるブラウン） */
    --accent-color: #FF8C00;
    /* 温もりを感じさせるオレンジ */
    --text-main: #4A4A4A;
    /* 真っ黒ではない、柔らかいテキスト色 */
    --bg-main: #FAFAFA;
    /* 少し温かみのある白背景 */
    --bg-light: #F3F1ED;
    /* セクション分け用のさらに温かい背景色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* =========================================
   Header
   ========================================= */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-main);
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary-color);
}

/* ハンバーガーボタン（デフォルト非表示） */
.nav-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.nav-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
    bottom: 0;
}

/* 開閉時のアニメーション */
.nav-toggle.is-open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* オーバーレイ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
    overflow: hidden;
}

.hero-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroSlideshow 15s infinite;
}

.hero-images img:nth-child(1) {
    animation-delay: 0s;
}

.hero-images img:nth-child(2) {
    animation-delay: 5s;
}

.hero-images img:nth-child(3) {
    animation-delay: 10s;
}

@keyframes heroSlideshow {
    0% {
        opacity: 0;
        transform: scale(1.05);
        /* 少しズームさせる演出 */
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(107, 142, 35, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
}

/* =========================================
   News Section
   ========================================= */
.news .section-title {
    margin-bottom: 30px;
}

.news-list {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list .date {
    color: #888;
    font-size: 0.9rem;
}

.news-list .label {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 0;
    border-radius: 20px;
    display: inline-block;
    width: 6.5rem;
    text-align: center;
    flex-shrink: 0;
    margin-top: 4px;
    /* 文字の上端と揃えるための微調整 */
}

.news-item-title {
    display: inline-block;
    max-width: 100%;
}

.news-item-supplement {
    font-size: 0.85em;
    font-weight: normal;
    color: #666;
    margin-left: 2px;
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-image-placeholder {
    flex: 1;
    height: 300px;
    background-color: #ddd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 2px dashed #bbb;
    padding: 20px;
    text-align: center;
}

.about-text {
    width: 100%;
}

.about-text p {
    margin-bottom: 15px;
}

/* =========================================
   Price Section
   ========================================= */
.price-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.price-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.price-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.price-note {
    text-align: right;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
}

/* =========================================
   Facility Section
   ========================================= */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.facility-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-top: 5px solid var(--secondary-color);
}

.facility-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #f0ece6;
    /* 薄い温みのあるグレー色 */
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #ccc;
    color: #999;
}

.facility-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 施設写真（通常） */
.facility-photo {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.facility-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* スライドショー（打席） */
.facility-slideshow {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.facility-slideshow img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.facility-slideshow:hover img {
    opacity: 0.92;
}

/* ドットインジケーター */
.slideshow-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}


/* =========================================
   Access Section
   ========================================= */
.access-content {
    display: flex;
    gap: 40px;
}

.access-info {
    flex: 1;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.phone-number a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.phone-note {
    font-size: 0.9rem;
    color: #777;
}

.access-map {
    flex: 1;
}

.access-map-iframe {
    width: 100%;
    height: 100%;
}

.access-map-iframe iframe {
    width: 100%;
    min-height: 300px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   Responsive
   ========================================= */
/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    /* Header */
    .header-inner {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 28px;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* 初期状態は画面外 */
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 999;
        padding-top: 80px;
    }

    .nav.nav-active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav a {
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* Hero */
    .hero {
        height: 50vh;
        min-height: 300px;
    }

    .hero-text h2 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* News */
    .news-list {
        padding: 15px;
    }

    .news-list li {
        flex-direction: column;
        gap: 10px;
    }

    .news-list .label {
        width: auto;
        padding: 2px 12px;
    }

    .news-item-title {
        white-space: nowrap;
        font-size: min(1.1rem, 4.4vw);
    }

    /* About */
    .about-content {
        gap: 20px;
    }

    .about-image div {
        flex-direction: column;
    }

    .about-image div img {
        width: 100% !important;
    }

    /* Price */
    .price-table th,
    .price-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .price-note {
        text-align: center !important;
    }

    .price-note span {
        text-align: center !important;
    }

    /* Facility */
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Access */
    .access-content {
        flex-direction: column;
        gap: 30px;
    }

    .phone-number a {
        font-size: 1.8rem;
    }

    .access-map-iframe iframe {
        height: 250px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-logo {
        font-size: 1.2rem;
    }
}

/* 小さなスマホ向け */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav {
        width: 80%;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }
}

/* =========================================
   Lightbox & Zoom Feature
   ========================================= */
.facility-slideshow {
    position: relative; /* 子要素の配置基準 */
}

.zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.zoom-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none; /* 初期状態は非表示 */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

.lightbox-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2010;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2010;
    text-align: center;
}

/* ナビゲーションボタン（左右の矢印） */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    display: none; /* デフォルトは非表示（スマホ等） */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2010;
    transition: background 0.3s;
    border-radius: 50%;
    margin: 0 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* PC向けのスタイル（マウス操作が可能なデバイス） */
@media (hover: hover) {
    .lightbox-nav {
        display: flex; /* 矢印を表示 */
    }
    
    .lightbox-hint::before {
        content: "矢印キーで移動 / Escで閉じる";
    }
}

/* スマホ向けのスタイル（タッチ操作のデバイス） */
@media (hover: none) {
    .lightbox-hint::before {
        content: "左右スワイプで移動 / 二本指で拡大";
    }
}