@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Dancing+Script:wght@400;700&family=Noto+Serif+JP:wght@400;600&display=swap");

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

body {
    background: linear-gradient(180deg, #fdfdfd 0%, #f7f7fa 50%, #f0f0f4 100%);
    color: #333;
    font-family: "Noto Serif JP", serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ----------header---------- */
header {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(181, 126, 220, 0.4);
    box-shadow: 0 4px 15px rgba(181, 126, 220, 0.15);
    transition: all 0.3s ease;
}

/* -----logo----- */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px rgba(181, 126, 220, 0.35));
    transition: all 0.4s ease;
}

.header-logo:hover img {
    filter: drop-shadow(0 8px 20px rgba(181, 126, 220, 0.55));
    transform: scale(1.05);
}

/* -----nav menu----- */
.header-menu {
    display: flex;
    align-items: center;
}

.header-menu ul {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    color: #444;
    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 12px 20px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #7d3fc7;
    text-shadow: 0 0 8px rgba(125, 63, 199, 0.4);
    transform: translateY(-2px);
}

.nav-link.active {
    position: relative;
    color: #7d3fc7;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, #7d3fc7, #b57edc);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(125, 63, 199, 0.4);
    animation: underlineGlow 1s ease-out;
}

@keyframes underlineGlow {
    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 80%;
    }
}

/* ハンバーガーメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #7d3fc7;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

/* Top Section */
.top-section {
    position: relative;
    height: 100vh;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-container .swiper-wrapper .swiper-slide {
    width: 100%;
    height: 100vh;
}

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

.swiper-container .top-title {
    font-size: clamp(40px, 8vw, 80px);
    color: #ffffff;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    text-shadow: 2px 4px 0px rgba(255, 255, 255, 0.5);
    font-family: "Cinzel", serif;
}

/* ----------about section---------- */
.about-section {
    padding: 140px 60px;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.about-title {
    font-family: "Cinzel", serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 600;
    color: #7d3fc7;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(125, 63, 199, 0.2);
}

.about-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
}

.about-description {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.about-social {
    display: flex;
    gap: 20px;
}

.about-social .social-link {
    width: 45px;
    height: 45px;
    background: rgba(181, 126, 220, 0.1);
    border: 1px solid #b57edc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d3fc7;
    font-size: 20px;
    transition: all 0.3s ease;
}

.about-social .social-link:hover {
    background: rgba(181, 126, 220, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(125, 63, 199, 0.3);
}

/* ----------events section---------- */
.events-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 60px;
    text-align: center;
}

.events-title {
    font-family: "Cinzel", serif;
    font-size: clamp(32px, 6vw, 56px);
    color: #7d3fc7;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(125, 63, 199, 0.2);
    text-align: center;
}

.events-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #555;
    margin-bottom: 60px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(125, 63, 199, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(125, 63, 199, 0.25);
}

.event-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 25px;
}

.event-name {
    font-size: clamp(18px, 3vw, 22px);
    font-family: "Cinzel", serif;
    color: #7d3fc7;
    margin-bottom: 10px;
}

.event-date {
    font-size: clamp(12px, 2vw, 14px);
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.event-description {
    font-size: clamp(13px, 2.2vw, 15px);
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}

.event-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #7d3fc7, #b57edc);
    color: #fff;
    text-decoration: none;
    font-size: clamp(12px, 2vw, 14px);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(125, 63, 199, 0.3);
}

.event-btn:hover {
    background: linear-gradient(135deg, #b57edc, #7d3fc7);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(125, 63, 199, 0.4);
}

/* ----------gallery section---------- */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 60px;
}

.a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(125, 63, 199, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(125, 63, 199, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(125, 63, 199, 0.8);
    color: #fff;
    font-family: "Cinzel", serif;
    font-size: clamp(14px, 2.2vw, 16px);
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.photo-btn {
    margin: 40px auto 0;
    display: block;
    width: fit-content;
    padding: 12px 25px;
    background: linear-gradient(135deg, #7d3fc7, #b57edc);
    color: #fff;
    text-decoration: none;
    font-size: clamp(12px, 2vw, 14px);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(125, 63, 199, 0.3);
}

.photo-btn:hover {
    background: linear-gradient(135deg, #b57edc, #7d3fc7);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(125, 63, 199, 0.4);
}

/* ----------modal---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(125, 63, 199, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    margin: 15px auto 0;
    text-align: center;
    color: #fff;
    font-family: "Cinzel", serif;
    font-size: clamp(14px, 3vw, 18px);
    padding: 0 20px;
    max-width: 800px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #b57edc;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

/* ----------footer---------- */
footer {
    border-top: 1px solid rgba(181, 126, 220, 0.4);
    position: relative;
}

.footer-content {
    padding: 120px 60px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 15px rgba(181, 126, 220, 0.35));
}

.footer-tagline {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(14px, 2.5vw, 16px);
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
    letter-spacing: 1px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(181, 126, 220, 0.1);
    border: 1px solid #b57edc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d3fc7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(181, 126, 220, 0.25);
    border-color: #b57edc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(181, 126, 220, 0.3);
}

.footer-title {
    font-family: "Cinzel", serif;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 600;
    color: #7d3fc7;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(125, 63, 199, 0.3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: clamp(13px, 2.2vw, 15px);
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7d3fc7;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #7d3fc7;
    padding-left: 10px;
}

.footer-links a:hover::after {
    width: 30px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: clamp(10px, 2vw, 12px);
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-value {
    font-size: clamp(13px, 2.2vw, 15px);
    color: #444;
    font-weight: 500;
}

.footer-address {
    color: #555;
    font-size: clamp(13px, 2.2vw, 15px);
    line-height: 1.8;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(125, 63, 199, 0.4),
            transparent);
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #777;
    font-size: clamp(12px, 2vw, 14px);
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
    font-size: clamp(12px, 2vw, 14px);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #7d3fc7;
}

.separator {
    color: #bbb;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    header {
        padding: 0 40px;
    }

    .about-section,
    .events-section,
    .gallery {
        padding: 100px 40px;
    }

    .footer-content {
        padding: 80px 40px;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .a {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 80px;
    }

    .header-logo img {
        height: 60px;
    }

    .header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(181, 126, 220, 0.3);
        box-shadow: 0 4px 20px rgba(181, 126, 220, 0.2);
    }

    .header-menu.active {
        display: block;
    }

    .header-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .header-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(181, 126, 220, 0.15);
    }

    .header-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        font-size: 16px;
    }

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

    .about-section {
        padding: 80px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-social {
        justify-content: center;
    }

    .events-section {
        padding: 80px 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .event-content {
        padding: 20px;
    }

    .gallery {
        padding: 80px 20px;
    }

    .a {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .footer-content {
        padding: 60px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .top-section {
        height: 70vh;
    }

    .swiper-container .swiper-wrapper .swiper-slide {
        height: 70vh;
    }

    .about-section,
    .events-section,
    .gallery {
        padding: 160px 15px;
    }

    .footer-content {
        padding: 50px 15px;
    }

    .a {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .events-grid {
        gap: 20px;
    }

    .event-content {
        padding: 15px;
    }

    .gallery-caption {
        padding: 10px;
    }

    .modal {
        padding-top: 50px;
    }
}

/* 超小型デバイス（320px以下）用 */
@media (max-width: 320px) {
    header {
        padding: 0 10px;
    }

    .about-section,
    .events-section,
    .gallery,
    .footer-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}