@charset "utf-8";

/* 夏らしいアニメーション */
@keyframes wave {
    0%, 100% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(180, 205, 225, 0.9) 0%, 
        rgba(230, 240, 250, 0.7) 50%, 
        rgba(180, 205, 225, 0.9) 100%);
    background-size: 200% 100%;
    animation: wave 8s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.8) 0%, 
        transparent 70%);
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
    z-index: -1;
}

.full-width-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

.full-width-image:has(img[src="./images/gallery/summerfestival/summerfestival_01.png"]) {
    margin-bottom: 90px;
}

.full-width-image:has(img[src="./images/gallery/summerfestival/summerfestival_04.png"]) {
    margin-top: 15px;
}


.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

.text-message {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    margin: 20px 0;
}

.text-container {
    margin: 16px 8% 60px auto;
}

.special-text {
    font-size: 18px;
    font-weight: 300;
    text-align: right;
    line-height: 1.5;
}

.highlight-text {
    font-size: 25px;
    font-weight: bold;
    position: relative;
    display: inline;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background-color: #E1D3F2;
    z-index: -1;
    opacity: 0.7;
}

.button-container {
    text-align: center;
    padding: 40px 0;
}

.submitbutton {
    display: inline-block;
    padding: 12px 40px;
    background-color: #5A6876;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.submitbutton:hover {
    background-color: #4A5662;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
/* SPレイアウト (0-500px) */
@media (max-width: 500px) {
    body {
        background-color: #fff;
    }
    body::before,
    body::after {
        display: none;
    }
    main {
        margin-top: 50px;
    }
}

/* PCレイアウト (501px以上) */
@media (min-width: 501px) {
    body.summerfestival-page {
        background-color: #C5D8E7;
    }
    
    body.summerfestival-page footer {
        margin-top: 0 !important;
        background-color: #fff !important;
    }
    .gallery-container {
        max-width: 393px;
        margin: 0 auto;
        padding: 0;
        background-color: #fff;
    }
    
    /* 800px以下 */
    @media (max-width: 800px) {
        .sp-only {
            margin-top: 50px;
        }
    }
    /* 801px以上 */
    @media (min-width: 801px) {
        .sp-only {
            margin-top: 80px;
        }
    }
    
    .text-message {
        font-size: 16px;
        margin: 40px 0;
    }
    
    .special-text {
        font-size: 18px;
    }
    
    .highlight-text {
        font-size: 24px;
    }
    
    .submitbutton {
        padding: 15px 50px;
        font-size: 18px;
    }
}
