/* =============================================
   styles.css — 全ページ共通スタイル
   グリーンピア近江八幡ゴルフ練習場
   ============================================= */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.6;
    background-color: #006634;
    color: white;
    overflow-x: hidden;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =============================================
   ヘッダー
   ============================================= */
.header {
    background-color: #006634;
    color: #fff;
    padding: 20px 0;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
}

.logo-wrapper {
    text-align: center;
}

.logo-img {
    height: 100px;
    width: auto;
    display: inline-block;
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .logo-img {
        height: 60px;
    }
    .logo-wrapper {
        display: flex;
        justify-content: flex-start;
        padding-left: 1em;
    }
}


/* =============================================
   ナビゲーション（PC）
   ============================================= */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5em 0.8em;
}

.contact-btn {
    background: linear-gradient(135deg, #FF8630, #fbbf24);
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    color: #92400e;
}

@media screen and (max-width: 768px) {
    .nav-list {
        display: none;
    }
    .desktop-nav {
        display: none;
    }
}


/* =============================================
   ハンバーガーメニュー（スマホ）
   ============================================= */
.hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.hamburger-menu img {
    width: 66px;
    height: 66px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
}

/* サイドメニュー */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #006634;
    transition: right 0.3s ease-in-out;
    z-index: 1002;
    padding: 60px 20px 20px;
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.side-menu img#closeIcon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 80px;
}

.side-menu li {
    margin: 20px 0;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
}

.menu-open #sideMenu { right: 0; }
.menu-open #overlay  { display: block; }


/* =============================================
   スライドショー
   ============================================= */
.slider {
    position: relative;
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .slider { height: 50vh; }
    .slide  { border-radius: 0; }
}


/* =============================================
   メインコンテンツ共通
   ============================================= */
main {
    padding: 0;
}

.section {
    background: #006634;
    color: #fff;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-out;
}

.section h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #006634;
    padding-bottom: 10px;
}

.section.narrow {
    max-width: 800px !important;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section { padding: 20px; }
    .container { padding: 0 15px; }
}


/* =============================================
   テーブル（営業時間等）
   ============================================= */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.hours-table th,
.hours-table td {
    border: 1px solid #fff;
    padding: 12px;
    text-align: center !important;
}

.hours-table th {
    background-color: #006634;
    color: #fff;
    font-weight: bold;
}

.hours-table tr:nth-child(even) {
    background-color: #006634;
}

@media (max-width: 768px) {
    .hours-table { font-size: 0.9em; }
}


/* =============================================
   イベント・お知らせ
   ============================================= */
.events-section {
    background: linear-gradient(135deg, #12A75E, #f0f8f0);
}

.event-item {
    background: #5AA86B;
    color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 5px solid #006634;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.event-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 20px;
    animation: scrollText 10s linear infinite;
}


/* =============================================
   コーチ（一覧ウィジェット）
   ============================================= */
.coach-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .coach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.coach-card {
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
}

.coach-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #006634;
}

.coach-top {
    font-size: 1.0em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.coach-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.coach-button {
    background: #fff;
    color: #006634;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-size: 16px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.coach-button:hover {
    background: #006634;
    color: #fff;
    border: 1px solid #fff;
}


/* =============================================
   SNS
   ============================================= */
.sns-section {
    padding: 40px 20px;
    text-align: center;
}

.sns-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sns-box {
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sns-img {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
}


/* =============================================
   求人
   ============================================= */
.job-section {
    text-align: center;
    padding: 10px;
}

.job-wrapper {
    display: flex;
    justify-content: center;
}

.job-box {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.job-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 10px auto;
    display: block;
}

@media (max-width: 768px) {
    .job-image {
        max-width: 600px;
        width: 90%;
    }
}


/* =============================================
   ハイライト
   ============================================= */
.highlight {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    color: #92400e;
}

.contact-info {
    text-align: center;
}

.contact-info strong {
    color: #a7d4a7;
}


/* =============================================
   フッター
   ============================================= */
.site-footer {
    background-color: #006634;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-logo {
    width: 220px;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* =============================================
   アニメーション
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================
   施設案内ページ固有スタイル
   ============================================= */

/* ページタイトル */
.page-title-block {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    color: white;
}

.page-title-block h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* キャッチフレーズ（アニメーション付き） */
.catchphrase {
    font-size: 1.5em;
    color: #d97706;
    font-weight: bold;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.3);
    animation: catchphrasePulse 2s infinite;
    margin-top: 1rem;
}

@keyframes catchphrasePulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

/* 施設グリッド */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: left;
}

/* 施設カード（共通） */
.facility-card {
    background: white;
    color: #333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(135deg, #4a7c59, #2d5a3d);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #4a7c59;
}

/* カードごとの背景色 */
.driving-range {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #22c55e;
}

.putting-practice {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.bunker-practice {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-color: #f59e0b;
}

.amenities {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-color: #ec4899;
}

/* アニメーション遅延 */
.facility-card:nth-child(1) { animation-delay: 0.1s; }
.facility-card:nth-child(2) { animation-delay: 0.2s; }
.facility-card:nth-child(3) { animation-delay: 0.3s; }
.facility-card:nth-child(4) { animation-delay: 0.4s; }
.facility-card:nth-child(5) { animation-delay: 0.5s; }
.facility-card:nth-child(6) { animation-delay: 0.6s; }

.facility-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.facility-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d5a3d;
    margin-bottom: 15px;
    text-align: center;
}

.facility-description {
    color: #666;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 20px;
}

.facility-features {
    list-style: none;
    padding: 0;
}

.facility-features li {
    padding: 8px 0 8px 25px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    font-size: 0.95rem;
}

.facility-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a7c59;
    font-weight: bold;
}

.facility-features li:last-child {
    border-bottom: none;
}

.list-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 1rem auto;
    display: block;
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    .facility-card {
        padding: 20px;
    }
    .page-title-block h1 {
        font-size: 2rem;
    }
    .catchphrase {
        font-size: 1.2em;
        padding: 12px 25px;
    }
}


/* =============================================
   スクール・レッスン日程ページ固有スタイル
   ============================================= */

/* お問い合わせ・予約ボックス */
.contact-info {
    background: linear-gradient(135deg, #ffffff, #f8fffe);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(45, 90, 39, 0.1);
    border: 3px solid #88d8a3;
    text-align: center;
    color: #333;
}

.contact-info h2 {
    color: #2d5a27;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.contact-info p {
    color: #444;
}

.contact-info .phone {
    font-size: 2em;
    font-weight: 700;
    color: #4a7c59;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
    padding: 15px 30px;
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.2);
}

.contact-info .phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(45, 90, 39, 0.3);
}

/* 今月のスケジュール */
.current-month {
    background: linear-gradient(135deg, #ffffff, #f8fffe);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(45, 90, 39, 0.1);
    border: 3px solid #88d8a3;
}

.current-month h2 {
    color: #2d5a27;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.month-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.month-item {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    color: #2d5a27;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.2);
}

.month-item h3 {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.month-item h4 {
    margin-top: 10px;
    font-size: 0.95em;
}

/* スケジュールグリッド */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* スケジュールカード */
.schedule-card {
    background: linear-gradient(135deg, #ffffff, #f8fffe);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #a8e6cf;
    color: #333;
    text-align: left;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59, #88d8a3);
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(45, 90, 39, 0.25);
    border-color: #4a7c59;
}

.coach-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #006634;
    margin-bottom: 5px;
    text-align: center;
}

.coach-title {
    color: #4a7c59;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.0em;
}

/* レッスンテーブル */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #f8fffe;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.1);
}

.schedule-table th {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.0em;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #e8f5e8;
    color: #333;
    transition: background 0.3s ease;
}

.schedule-table tr:hover td {
    background: #e8f5e8;
}

.price {
    font-weight: 700;
    color: #2d5a27;
    font-size: 1.1em;
}

/* 注意事項ボックス */
.schedule-notes {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffd93d;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    color: #8b4513;
    font-weight: 500;
    text-align: left;
}

.schedule-notes h4 {
    color: #2d5a27;
    margin-bottom: 10px;
}

/* 施設情報 */
.facility-info {
    background: linear-gradient(135deg, #ffffff, #f8fffe);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(45, 90, 39, 0.1);
    border: 3px solid #88d8a3;
}

.facility-info h2 {
    color: #2d5a27;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.facility-item {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    color: #2d5a27;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.2);
}

/* 浮遊アイコン */
.floating-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    font-size: 2em;
    animation: floatIcon 8s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-30px) rotate(180deg); }
}

.floating-element:nth-child(1) { top: 10%; left: 5%;  animation-delay: 0s; }
.floating-element:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; }
.floating-element:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 4s; }
.floating-element:nth-child(4) { bottom: 25%; right: 20%; animation-delay: 1s; }
.floating-element:nth-child(5) { top: 60%; left: 50%; animation-delay: 3s; }

/* レスポンシブ */
@media (max-width: 768px) {
    .schedule-grid,
    .month-info,
    .facility-grid {
        grid-template-columns: 1fr;
    }

    .schedule-table {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .contact-info .phone {
        font-size: 1.5em;
        padding: 12px 20px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px;
    }
}
