* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Body padding to account for fixed header */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-container a{
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-image: url('../img/header_logo.png');
    background-size: cover;
    background-position: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #4a90e2;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-login i, .btn-register i {
    font-size: 11px;
}

.btn-login {
    background: #ffa500;
    color: white;
}

.btn-register {
    background: #2c3e50;
    color: white;
}

.btn-login:hover, .btn-register:hover {
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
}

.mobile-nav-menu a:hover {
    background: #f5f5f5;
    color: #4a90e2;
}

.mobile-auth-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-buttons .btn-login,
.mobile-auth-buttons .btn-register {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    justify-content: center;
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide1 { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/main_01.jpg'); }
.slide2 { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/main_02.jpg'); }
.slide3 { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/main_03.jpg'); }
.slide4 { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/main_04.jpg'); }
.slide5 { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/main_05.jpg'); }

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* 既存の @media (max-width: 768px) に追加 */
@media (max-width: 768px) {
    /* ... 他のコードはそのまま ... */
    
    .hero {
        height: 400px;
    }
    
    /* スライド画像のセンタリング修正 */
    .slide {
        background-size: cover;
        background-position: center center; /* 中央に配置 */
    }
    
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    /* ... 他のコードはそのまま ... */
    
    .hero {
        height: 300px;
    }
    
    /* より小さい画面でも中央配置を維持 */
    .slide {
        background-size: cover;
        background-position: center center;
    }
    
    .hero-title {
        font-size: 16px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 11px;
        white-space: nowrap;
    }
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    font-size: 12px;
    color: #ffa500;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Information Section */
.info-section {
    padding: 80px 20px;
    background: linear-gradient(rgba(248,249,250,0.7), rgba(248,249,250,0.7)), url('../img/bg_01.jpg');
    background-size: cover;
    background-position: center;
}

.info-list {
    background: transparent;
    padding: 0;
}

.info-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    justify-content: space-between;
    align-items: center;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background: #f9f9f9;
}

.info-date {
    font-size: 14px;
    color: #666;
    min-width: 100px;
    font-weight: bold;
}

.info-content {
    flex: 1;
    color: #333;
    margin-left: 20px;
}

.info-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 10px;
}

.more-link {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-block;
    padding: 10px 30px;
    background: transparent;
    border: 2px solid #4a90e2;
    color: #4a90e2;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05)), url('../img/bg_02.jpg');
    background-size: cover;
    background-position: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 2;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

/* History Section */
.history-section {
    padding: 80px 20px;
    background: white;
}

.history-items {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 50px;
}

.history-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.history-item:hover {
    transform: translateY(-5px);
}

.history-image {
    width: 250px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border: 2px solid #ddd;
    margin-bottom: 15px;
    position: relative;
    transition: transform 0.3s;
}

.history-item:hover .history-image {
    transform: scale(1.05);
}

.history-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #ccc;
    pointer-events: none;
}

.history-image.building {
    background-image: url('../img/sab_01.jpg');
}

.history-image.founder {
    background-image: url('../img/sab_02.jpg');
}

.history-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    height: 150px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(0,0,0,0.2);
}

.gallery-item:nth-child(1) { background-image: url('../img/activity_01.jpg'); }
.gallery-item:nth-child(2) { background-image: url('../img/activity_02.jpg'); }
.gallery-item:nth-child(3) { background-image: url('../img/activity_03.jpg'); }
.gallery-item:nth-child(4) { background-image: url('../img/activity_04.jpg'); }
.gallery-item:nth-child(5) { background-image: url('../img/activity_05.jpg'); }
.gallery-item:nth-child(6) { background-image: url('../img/gr_06.jpg'); }
.gallery-item:nth-child(7) { background-image: url('../img/gr_07.jpg'); }
.gallery-item:nth-child(8) { background-image: url('../img/gr_08.jpg'); }
.gallery-item:nth-child(9) { background-image: url('../img/gr_09.jpg'); }
.gallery-item:nth-child(10) { background-image: url('../img/gr_10.jpg'); }

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: #00053d;
    color: white;
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: bold;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-image: url('../img/footer_logo.png');
    background-size: cover;
    background-position: center;
}

.footer-info {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-right {
    transform: translateX(50px);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1000px) {
    body {
        padding-top: 70px;
    }

    .nav-menu, .auth-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-date {
        min-width: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-items {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .history-image {
        width: 200px;
        height: 150px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 16px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 11px;
        white-space: nowrap;
    }

    .logo {
        font-size: 14px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .hero {
        height: 300px;
    }

    .section-title {
        font-size: 22px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


.page-header {
            padding: 60px 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            text-align: center;
            color: white;
        }
        
        .page-header h1 {
            font-size: 36px;
            margin-bottom: 10px;
        }
        
        .page-header p {
            font-size: 16px;
            opacity: 0.9;
        }
        
        .content-section {
            padding: 80px 20px;
        }
        
        .content-box {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 30px;
        }
        
        .content-box h2 {
            font-size: 24px;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a90e2;
        }
        
        .content-box h3 {
            font-size: 20px;
            color: #555;
            margin-top: 25px;
            margin-bottom: 15px;
            font-weight: bold;
            padding-left: 15px;
            border-left: 4px solid #4a90e2;
        }
        
        .content-box p {
            line-height: 1.8;
            color: #555;
            margin-bottom: 15px;
        }
        
        .highlight-box {
            background: #f0f8ff;
            padding: 25px;
            border-radius: 8px;
            margin: 20px 0;
            border-left: 4px solid #4a90e2;
        }
        
        .highlight-box h4 {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
            font-weight: bold;
        }
        
        .highlight-box p {
            margin: 0;
            color: #555;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }
        
        .stat-item {
            text-align: center;
            padding: 25px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            color: white;
        }
        
        .stat-number {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .stat-label {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .activity-list {
            list-style: none;
            padding: 0;
        }
        
        .activity-list li {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: flex-start;
        }
        
        .activity-list li:last-child {
            border-bottom: none;
        }
        
        .activity-list li::before {
            content: "✓";
            color: #4a90e2;
            font-weight: bold;
            margin-right: 10px;
            font-size: 18px;
        }
        
/* 写真ギャラリーのスタイル */
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }
        
        .photo-item {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        /*.photo-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }*/
        
        .photo-image {
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }
        
        .photo-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        /*.photo-item:hover .photo-overlay {
            opacity: 1;
        }*/
        
        .photo-overlay i {
            color: white;
            font-size: 32px;
        }
        
        .photo-caption {
            padding: 15px;
        }
        
        .photo-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .photo-date {
            font-size: 13px;
            color: #999;
        }
        
        /* レスポンシブ対応 */
        @media (max-width: 768px) {
            .photo-gallery {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
            }
            
            .photo-image {
                height: 180px;
            }
        }
        
        @media (max-width: 480px) {
            .photo-gallery {
                grid-template-columns: 1fr;
            }
        }
        
        .content-box p {
            line-height: 1.8;
            color: #555;
            margin-bottom: 15px;
        }
        
        .content-box ol {
            margin-left: 20px;
            line-height: 2;
            color: #555;
        }
        
        .content-box ol li {
            margin-bottom: 10px;
        }
        
        .event-item {
            display: flex;
            padding: 25px 0;
            border-bottom: 1px solid #eee;
        }
        
        .event-item:last-child {
            border-bottom: none;
        }
        
        .event-date {
            min-width: 120px;
            font-weight: bold;
            color: #4a90e2;
            font-size: 16px;
        }
        
        .event-content {
            flex: 1;
        }
        
        .event-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
        }
        
        .event-description {
            color: #666;
            line-height: 1.8;
        }
        
        .season-badge {
            display: inline-block;
            padding: 3px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        
        .spring { background: #ffc1e0; color: #c72165; }
        .summer { background: #b3e5fc; color: #0277bd; }
        .autumn { background: #ffe0b2; color: #e65100; }
        .winter { background: #b2dfdb; color: #00695c; }
		
		.line_bnr{
		background-color:#06C755;
		border-radius: 10px;
		margin: auto;
		display: block;
		text-align: center;
		padding: 10px;
		max-width: 400px;
		color: #fff;
		text-decoration: none;
		font-weight: bold;
		}