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

body {
    font-family: 'Noto Serif Japanese', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 20px;
    background: #e6f7e6;
}

/* Hero Section */
.hero {
    width: 100vw;
    height: 50vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    color: white;
    padding: 20px;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .swiper {
    height: 100%;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    z-index: 2;
}

.hero h1 {
    font-size: 30px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
    letter-spacing: 5px;
}

.hero-info {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-align: right;
    line-height: 1.5;
}

.hero-info a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

/* Fixed Title */
.fixed-title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fixed-title.show {
    transform: translateY(0);
}

.fixed-title h1,
.fixed-title p {
    font-size: 24px;
    color: #333;
    text-shadow: none;
    margin: 0;
    text-align: left;
    letter-spacing: 3px;
}

.fixed-title .fixed-nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.fixed-title .fixed-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.fixed-title .fixed-nav a:hover {
    border-bottom: 3px solid #6B8DB5;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    justify-content: flex-end;
    align-items: center;
}

.mobile-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    border: none;
    cursor: pointer;
    z-index: 1002;
    display: none;
    background: none;
    box-shadow: none;
    padding: 0;
}

.mobile-phone-btn {
    background: #6B8DB5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-phone-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.mobile-menu-btn .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
    position: relative;
    right: 0px;
    top: 0;
    transform: none;
    gap: 0;
}

.mobile-menu-btn .hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* Mobile Slide Menu */
.mobile-slide-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 1003;
    transition: left 0.3s ease;
    padding: 60px 0 40px;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}

.mobile-slide-menu.open {
    left: 0;
}

.mobile-slide-menu .close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: #52C4B0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-slide-menu .close-btn::before {
    content: '✕';
    font-size: 20px;
}

.mobile-slide-menu .menu-items {
    padding: 20px;
}

.mobile-slide-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.mobile-slide-menu .menu-item:last-child {
    border-bottom: none;
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Header/Navigation */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav a:hover {
    border-bottom: 3px solid #6B8DB5;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
}

/* Main Content */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding: 60px 0;
}

.temple-about-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.temple-description {
    display: flex;
    align-items: center;
    gap: 40px;
    line-height: 1.8;
    margin-bottom: 80px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.temple-text {
    flex: 7;
    text-align: justify;
}

.temple-text p {
    font-size: 18px;
}

.temple-image {
    flex: 3;
    min-width: 200px;
}

.temple-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Sections */
.section {
    margin-bottom: 80px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #6B8DB5;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #6B8DB5;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #4A6B8A;
}

/* News Items */
.news-list {
    display: block;
    padding: 0 20px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dotted #ccc;
    gap: 20px;
}

.news-item a {
    text-decoration: none;
    color: inherit;
    flex: 1;
    transition: color 0.3s ease;
}

.news-item a:hover .news-title {
    color: #6B8DB5;
}

.news-date {
    color: #6B8DB5;
    font-weight: 500;
    font-size: 18px;
    min-width: 120px;
}

.news-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

/* Photo Gallery */
.photo-gallery-container {
    padding: 0 20px;
}

/* Map */
.map-container {
    font-size: 18px;
    padding: 0 20px;
}
.map-container iframe{
    width: 100%;
    margin-bottom: 1em;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid #e9ecef;
}

.copyright {
    text-align: center;
    font-size: 18px;
    color: #666;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .hero {
        height: 50vh;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .hero-info {
        font-size: 16px;
        text-align: center;
    }

    .hero-info a {
        pointer-events: auto;
    }

    .mobile-controls {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .nav {
        display: none;
    }

    .fixed-title h1,
    .fixed-title p {
        text-align: center;
        margin: 0 auto;
    }

    .fixed-title .fixed-nav {
        display: none;
    }

    .main-content {
        padding: 40px 0;
    }

    .temple-description {
        flex-direction: column;
        padding: 25px;
        margin-bottom: 60px;
    }

    .temple-text p {
        font-size: 16px;
    }

    .temple-image {
        min-width: auto;
        max-width: 300px;
        align-self: center;
    }

    .section {
        margin-bottom: 60px;
    }

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

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 0;
    }

    .news-item a {
        width: 100%;
    }

    .news-date {
        font-size: 16px;
        min-width: auto;
    }

    .news-title {
        font-size: 18px;
    }

    .map-container {
        font-size: 16px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

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

    .temple-description {
        flex-direction: column;
        padding: 20px;
    }

    .temple-text p {
        font-size: 14px;
    }

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

    .news-date {
        font-size: 14px;
    }

    .news-title {
        font-size: 16px;
    }
}

.nav a.active,
.fixed-nav a.active,
.mobile-slide-menu .menu-item.active {
    border-bottom: 3px solid #6B8DB5;
}

.fixed-nav a.active {
    border-bottom: 3px solid #6B8DB5;
}