@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Shippori Mincho', serif;
}

.intro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.intro::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    animation: fadeToSakura 8s ease-in-out 6s forwards;
}

.intro-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 2rem;
    letter-spacing: 0.5em;
    line-height: 2;
    opacity: 0;
    z-index: 1002;
    animation: 
        fadeIn 1s ease 1s forwards,
        fadeOut 1s ease 3s forwards;
    position: absolute;
}

.intro-text p {
    opacity: 0;
    transform: translateY(20px);
}

.intro-text p:first-child {
    animation: slideUp 1s ease 1s forwards;
}

.intro-text p:last-child {
    animation: slideUp 1s ease 1.3s forwards;
}

.title-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    max-width: 50%;
    height: auto;
    z-index: 1002;
    animation: 
        titleFadeIn 1.5s ease 4.5s forwards,
        titleStayVisible 1.5s ease 6s forwards;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes titleStayVisible {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

.background-container {
    margin: 0 auto;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
    animation: none;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: auto;
    position: static;
    z-index: 1;
}

.comsoir-image, .idol-image, .mountain-image, .firework-image, .sunflower-image, .invisible-image, .kimiga-image, .alice-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.comsoir-area {
    bottom: 50%;
    left: 15%;
    width: 25%;
    height: 15%;
}

.idol-area {
    top: 23%;
    left: 35%;
    transform: translateX(-50%);
    width: 20%;
    height: 10%;
}

.mountain-area {
    top: 15%;
    left: 0%;
    width: 20%;
    height: 10%;
}

.firework-area {
    top: 30%;
    left: 0%;
    width: 20%;
    height: 15%;
}

.sunflower-area {
    bottom: 10%;
    right: 0%;
    width: 25%;
    height: 40%;
}

.invisible-area {
    top: 25%;
    right: 20%;
    width: 20%;
    height: 15%;
}

.kimiga-area {
    top: 42%;
    right: 28%;
    width: 20%;
    height: 10%;
}

.alice-area {
    top: 50%;
    left: 0%;
    width: 25%;
    height: 35%;
}

.comsoir-area:hover .map-popup,
.idol-area:hover .map-popup,
.mountain-area:hover .map-popup,
.firework-area:hover .map-popup,
.sunflower-area:hover .map-popup,
.invisible-area:hover .map-popup,
.kimiga-area:hover .map-popup,
.alice-area:hover .map-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 既存のホバースタイルを調整 */
.comsoir-area:hover ~ .comsoir-image,
.idol-area:hover ~ .idol-image,
.mountain-area:hover ~ .mountain-image,
.firework-area:hover ~ .firework-image,
.sunflower-area:hover ~ .sunflower-image,
.invisible-area:hover ~ .invisible-image,
.kimiga-area:hover ~ .kimiga-image,
.alice-area:hover ~ .alice-image {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    opacity: 1;
    visibility: visible;
}

.hover-area {
    position: absolute;
    z-index: 4;
    cursor: pointer;
    background: transparent;
}

.title-logo {
    position: absolute;
    top: 50px;
    width: 500px;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease forwards;
    z-index: 3;
}

@media screen and (max-width: 768px) {
    .title-logo {
        width: 300px;
    }
    .intro-text {
        font-size: 1.5rem;
    }
}

#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    pointer-events: none;
}

/* 白背景から桜色背景へのフェードインアニメーション */
@keyframes fadeToSakura {
    0% {
        background: #fff;
    }
    100% {
        background: linear-gradient(135deg, 
            rgba(255, 223, 228, 0.9),
            rgba(255, 235, 238, 0.95)
        );
    }
}

.enter-button {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    opacity: 0;
    z-index: 1002;
    transition: all 0.3s ease;
    animation: fadeInButton 1s ease 11s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enter-button::after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    opacity: 0;
    animation: moveArrow 1.5s ease 12s forwards;
}

@keyframes moveArrow {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    20% {
        opacity: 1;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.enter-button:hover {
    color: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) scale(1.05);
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* メインコンテンツを表示するクラス */
.show-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.skip-text {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    z-index: 1002;
    animation: fadeIn 0.5s ease 1s forwards;
    transition: color 0.3s ease;
}

.skip-text:hover {
    color: #333;
}

.map-popup {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.popup-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 1200;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.popup-time {
    font-size: 1.0rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 18px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    border-left: 3px solid rgba(66, 133, 244, 0.8);
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 10px;
    border-radius: 4px;
}

.popup-link {
    display: block;
    margin-left: auto;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 0.05em;
    text-align: right;
    position: relative;
    padding-right: 10px;
}

.arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.4s ease;
    font-family: sans-serif;
}

.popup-link:hover {
    color: rgba(0, 0, 0, 0.9);
}

.popup-link:hover .arrow {
    transform: translateX(8px);
}

/* 古いボタンスタイルを削除 */
.popup-button {
    display: none;
}

.explore-button, .list-button {
    position: absolute;
    top: 20%;
    padding: 10px 25px;
    font-size: 1.1rem;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.6);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    color: rgba(0, 0, 0, 0.7);
    letter-spacing: 0.05em;
}

.explore-button {
    left: 60%;
    transform: translateX(-50%);
}

.list-button {
    left: 40%;
    transform: translateX(-50%);
}

.explore-button:hover, .list-button:hover {
    background: transparent;
    transform: translateX(-50%) scale(1.03);
    border-color: rgba(0, 0, 0, 0.9);
    color: rgba(0, 0, 0, 0.9);
}

@media screen and (max-width: 768px) {
    .explore-button, .list-button {
        top: 200px;
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .explore-button {
        left: 70%;
    }
    
    .list-button {
        left: 30%;
    }
}

.show-all-temporary {
    opacity: 1 !important;
    visibility: visible !important;
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) !important;
} 