/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Floating Lanterns Animation */
.floating-lanterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lantern {
    position: absolute;
    width: 40px;
    height: 60px;
    background: radial-gradient(circle, #ff6b6b, #ff4757);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.lantern:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.lantern:nth-child(2) {
    left: 50%;
    animation-delay: -5s;
}

.lantern:nth-child(3) {
    left: 80%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cherry" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23ff69b4" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23cherry)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-date {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-members {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.member {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.hero-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.taiwan-icon {
    font-size: 8rem;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Navigation */
.nav-menu {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    padding-top: 40px;
}

.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Flight Cards */
.flight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.flight-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.flight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.flight-card.outbound {
    border-color: #3498db;
}

.flight-card.return {
    border-color: #e74c3c;
}

.flight-card h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.flight-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.airport {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.flight-time {
    text-align: center;
    flex-grow: 1;
}

.departure {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
}

.flight-duration {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.arrival-time {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #27ae60;
}

/* Itinerary Timeline */
.itinerary-timeline {
    display: grid;
    gap: 2rem;
}

.day-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.day-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.day-weather {
    font-size: 1.2rem;
}

.day-content {
    padding: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.timeline-item:hover {
    background: #f8f9fa;
}

.time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    min-width: 80px;
}

.activity {
    flex-grow: 1;
}

.activity strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.activity p {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

/* Food Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.food-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.food-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.food-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.food-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.food-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.food-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Spots Grid */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spot-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.spot-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.spot-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.spot-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.spot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spot-time, .spot-price {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.spot-time {
    background: #ecf0f1;
    color: #2c3e50;
}

.spot-price {
    background: #e8f5e8;
    color: #27ae60;
}

/* Transport Cards */
.transport-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.transport-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.transport-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.transport-info p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.transport-info strong {
    color: #2c3e50;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tip-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Map Section */
.map-container {
    position: relative;
    margin-bottom: 2rem;
}

.map-info {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-info h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.map-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.location-card strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.location-card p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location-card a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.location-card a:hover {
    text-decoration: underline;
}

.map-legend {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 1rem;
}

.legend-color.day1 {
    background: #e74c3c;
}

.legend-color.day2 {
    background: #3498db;
}

.legend-color.day3 {
    background: #2ecc71;
}

.legend-color.day4 {
    background: #f39c12;
}

/* Spot and Transport Links */
.spot-link, .transport-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spot-link:hover, .transport-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Member Click Effects */
.member {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.member:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.member:active {
    transform: translateY(-3px) scale(1.02);
}

/* Petal Animation for Member Clicks */
.petal {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 12px;
    height: 12px;
    border-radius: 50% 0 50% 0;
    animation: petalFall 3s linear forwards;
}

.petal.saki {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.petal.ayaka {
    background: linear-gradient(45deg, #87ceeb, #4169e1);
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

.petal.kaho {
    background: linear-gradient(45deg, #98fb98, #32cd32);
    box-shadow: 0 0 10px rgba(152, 251, 152, 0.5);
}

@keyframes petalFall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Petal Burst Effect */
.petal-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: petalBurst 2s ease-out forwards;
}

/* Photo Bubble Animation */
.photo-bubble {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    animation: bubbleFloat 12s ease-in-out forwards;
    opacity: 0;
}

.photo-bubble::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(8px);
}

.photo-bubble::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 20%;
    width: 15%;
    height: 15%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(4px);
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0.3);
        opacity: 0;
    }
    8% {
        opacity: 1;
        transform: translateY(90vh) translateX(5px) scale(0.6);
    }
    20% {
        opacity: 1;
        transform: translateY(80vh) translateX(-10px) scale(0.8);
    }
    35% {
        opacity: 1;
        transform: translateY(65vh) translateX(15px) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(-12px) scale(1.0);
    }
    65% {
        opacity: 1;
        transform: translateY(35vh) translateX(18px) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translateY(20vh) translateX(-8px) scale(1.0);
    }
    95% {
        opacity: 1;
        transform: translateY(5vh) translateX(5px) scale(0.9);
    }
    100% {
        transform: translateY(-10vh) translateX(0px) scale(0.8);
        opacity: 1;
    }
}

/* Bubble trail effect */
.bubble-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: trailFloat 3s ease-out forwards;
}

@keyframes trailFloat {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.2);
        opacity: 0;
    }
}

@keyframes petalBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-members {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .flight-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .time {
        min-width: auto;
    }
    
    .spot-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}