/* Japanese Retro Web 1.0 Style CSS - Yahoo Japan Inspired */

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

body {
    font-family: "Yuji Syuku", serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #cccccc;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: #ff0000;
    border-bottom: 3px solid #cc0000;
    padding: 20px;
    text-align: center;
}

.header-decorations {
    font-size: 24px;
    margin: 10px 0;
}

.decoration {
    margin: 0 10px;
    display: inline-block;
}

.main-title {
    font-size: 2.5em;
    color: white;
    text-shadow: 2px 2px 0 #cc0000;
    margin: 15px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.subtitle {
    color: #ffff99;
    font-size: 1.2em;
    text-shadow: 1px 1px 0 #cc0000;
    font-style: italic;
    margin: 10px 0;
}

/* Background Section */
.background-section {
    background: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 2px solid #cccccc;
}

.background-section h2 {
    color: #ff0000;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

.background-story {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #0066cc;
    padding: 25px;
    text-align: left;
}

.background-story p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333;
}

/* Map Section */
.map-section {
    background: #e6f3ff;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 2px solid #cccccc;
}

.map-section h2 {
    color: #0066cc;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

.japan-map {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.map-container {
    background: #ffffff;
    border: 2px solid #0066cc;
    padding: 20px;
    max-width: 500px;
}

.map-image-wrapper {
    position: relative;
    display: inline-block;
}

.japan-map-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.location {
    position: absolute;
    cursor: pointer;
    text-align: center;
    z-index: 10;
}

.location .marker {
    font-size: 20px;
    line-height: 1;
}

.location .location-label {
    font-family: "Yuji Syuku", serif;
    font-size: 12px;
    color: #0066cc;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border: 1px solid #0066cc;
    margin-top: 2px;
    white-space: nowrap;
}

/* Position markers on the map */
.location.tokyo {
    top: 60%;
    left: 60%;
}

.location.kusatsu {
    top: 55%;
    left: 55%;
}

.location.osaka {
    top: 65%;
    left: 40%;
}

.location.kyoto {
    top: 60%;
    left: 35%;
}

.location.okinawa {
    top: 80%;
    left: 80%;
}

.location.tokashiki {
    top: 85%;
    left: 70%;
}

.location:hover .marker {
    font-size: 25px;
}

.location:hover .location-label {
    background: #ffff99;
    color: #ff0000;
}

.map-legend {
    margin-top: 15px;
    font-size: 14px;
    color: #0066cc;
}

.legend-item {
    margin: 0 15px;
    font-weight: bold;
}

/* Location Sections */
.locations {
    background: #ffffff;
}

.location-section {
    padding: 40px 30px;
    border-bottom: 2px solid #cccccc;
}

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

.location-header {
    text-align: center;
    margin-bottom: 30px;
}

.location-header h2 {
    font-size: 2.2em;
    color: #ff0000;
    margin-bottom: 10px;
    border: 2px solid #0066cc;
    background: #e6f3ff;
    padding: 15px;
    display: inline-block;
}

.location-subtitle {
    font-size: 1.3em;
    color: #0066cc;
    font-style: italic;
}

/* Carousel Styles */
.carousel-container {
    margin: 30px 0;
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    border: 3px solid #ff0000;
    overflow: hidden;
    background: #000;
    height: 450px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    position: relative;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 450px;
    z-index: auto;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 450px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-slide video::-webkit-media-controls-panel {
    z-index: 1 !important;
}

.carousel-slide video::-webkit-media-controls {
    z-index: 1 !important;
}

.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 12px;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 500;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    background: #ff0000;
    color: white;
    border: 2px solid #ffffff;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
    pointer-events: all;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: opacity;
}

.carousel-btn:hover {
    background: #cc0000;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    display: flex;
    gap: 8px;
    z-index: 1000;
    pointer-events: all;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: opacity;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: 1px solid white;
}

.dot.active,
.dot:hover {
    background: #ff0000;
}

/* Location Description */
.location-description {
    background: #ffffff;
    border: 2px solid #cccccc;
    padding: 25px;
    margin-top: 30px;
}

.location-description p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
    color: #333333;
    line-height: 1.7;
}

.location-description p:last-of-type {
    font-weight: bold;
    color: #0066cc;
    border-left: 4px solid #ff0000;
    padding-left: 15px;
    font-style: italic;
}

.recommendations {
    background: #f5f5f5;
    border: 2px solid #0066cc;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 5px;
}

.recommendations h3 {
    color: #0066cc;
    font-size: 1.3em;
    margin-bottom: 10px;
    margin-top: 0;
}

.recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.recommendations li {
    margin: 8px 0;
    font-size: 1.05em;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #ff0000;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid #cc0000;
}

.footer-decorations {
    font-size: 20px;
    margin: 10px 0;
}

.footer p {
    margin: 10px 0;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-width: 1px;
        margin: 0;
    }

    .main-title {
        font-size: 1.8em;
    }

    .location-section {
        padding: 25px 15px;
    }

    .location-header h2 {
        font-size: 1.6em;
        padding: 10px;
    }

    .carousel {
        max-width: 100%;
        border-width: 2px;
        height: 250px;
    }

    .carousel-track {
        height: 100%;
    }

    .carousel-slide {
        height: 250px;
    }

    .carousel-slide img,
    .carousel-slide video {
        height: 250px;
    }

    .carousel-btn {
        font-size: 18px;
        width: 35px;
        height: 35px;
    }

    .japan-map-img {
        max-width: 300px;
    }

    .map-container {
        padding: 15px;
    }

    .location-description {
        padding: 15px;
    }

    .decoration {
        margin: 0 5px;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Simple hover effects */
.location-section:hover {
    background: #f9f9f9;
}

.location-section:nth-child(even):hover {
    background: #f0f0f0;
}

/* Random Clipart Decorations */
.clipart {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    border: 2px solid #ff0000;
    border-radius: 5px;
    background: white;
    padding: 2px;
    transition: transform 0.1s ease-out;
}

.clipart-left {
    left: 20px;
}

.clipart-right {
    right: 20px;
}

/* Left side cliparts */
.clipart-1 {
    top: 5%;
    width: 120px;
    height: auto;
    transform: rotate(-15deg);
}

.clipart-3 {
    top: 20%;
    width: 110px;
    height: auto;
    transform: rotate(-5deg);
}

.clipart-5 {
    top: 35%;
    width: 130px;
    height: auto;
    transform: rotate(-10deg);
}

.clipart-7 {
    top: 50%;
    width: 115px;
    height: auto;
    transform: rotate(-20deg);
}

.clipart-9 {
    top: 65%;
    width: 125px;
    height: auto;
    transform: rotate(-8deg);
}

.clipart-11 {
    top: 80%;
    width: 105px;
    height: auto;
    transform: rotate(-18deg);
}

.clipart-13 {
    top: 95%;
    width: 120px;
    height: auto;
    transform: rotate(-12deg);
}

.clipart-15 {
    top: 110%;
    width: 110px;
    height: auto;
    transform: rotate(-25deg);
}

.clipart-17 {
    top: 125%;
    width: 115px;
    height: auto;
    transform: rotate(-6deg);
}

/* Right side cliparts */
.clipart-2 {
    top: 12%;
    width: 105px;
    height: auto;
    transform: rotate(10deg);
}

.clipart-4 {
    top: 27%;
    width: 125px;
    height: auto;
    transform: rotate(20deg);
}

.clipart-6 {
    top: 42%;
    width: 100px;
    height: auto;
    transform: rotate(15deg);
}

.clipart-8 {
    top: 57%;
    width: 120px;
    height: auto;
    transform: rotate(8deg);
}

.clipart-10 {
    top: 72%;
    width: 110px;
    height: auto;
    transform: rotate(22deg);
}

.clipart-12 {
    top: 87%;
    width: 115px;
    height: auto;
    transform: rotate(12deg);
}

.clipart-14 {
    top: 102%;
    width: 105px;
    height: auto;
    transform: rotate(18deg);
}

.clipart-16 {
    top: 117%;
    width: 125px;
    height: auto;
    transform: rotate(5deg);
}

.clipart-18 {
    top: 132%;
    width: 110px;
    height: auto;
    transform: rotate(14deg);
}

/* Hide cliparts on mobile */
@media (max-width: 1200px) {
    .clipart {
        display: none;
    }
}