
@font-face {
    font-family: 'japanese';
    src: url(Kyoto.ttf) format('truetype');
}

* {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'japanese', sans-serif;
    text-decoration: underline;
}

h2 {
    text-align: center;
    color: maroon;
}

h1 {
    color: #485e3e;
}

p {
    line-height: 1.5;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive iframe for maps */
iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scrolling */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

.content, #location {
    max-width: 800px;
    margin: 70px auto 0;
    padding: 50px;
    text-align: justify;
}

.image-wrapper {
    text-align: center;
}

nav {
    background-color: #ff6600;
    background-image: url('japan.png');
    background-position: center;
    background-size: cover;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

nav ul li {
    color: rgb(119, 59, 59);
    display: inline-block;
    margin: 0 5px;
    flex-shrink: 0;
}

nav ul li a {
    color: rgb(255, 255, 255);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
    display: inline-block;
    min-height: 20px;
}

nav ul li a:hover {
    background-color: #ff9933;
}

.bg-image {
    background-image: url('tokyo.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding-top: 70px;
}

.bg-image .content:first-of-type, .bg-image #location:first-of-type {
    margin-top: 0;
}

#footer {
    text-align: center;
    width: 100%;
    padding: 20px 10px;
}

@media screen and (max-width: 768px) {
    .content, #location {
        padding: 30px 20px;
        margin-top: 50px;
    }
    
    nav {
        padding: 8px 5px;
    }
    
    nav ul li {
        display: inline-block;
        margin: 0 2px;
    }
    
    nav ul li a {
        padding: 6px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .bg-image {
        background-attachment: scroll;
        padding-top: 50px;
    }
    
    /* Make iframe responsive */
    iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
    }
    
    #footer {
        padding: 15px 5px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .content, #location {
        padding: 20px 15px;
        margin-top: 50px;
    }
    
    nav {
        padding: 5px 1px;
    }
    
    nav ul li {
        display: inline-block;
        margin: 0;
        flex-shrink: 0;
    }
    
    nav ul li a {
        padding: 4px 3px;
        font-size: 9px;
        white-space: nowrap;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .bg-image {
        padding-top: 50px;
    }
    
    /* Make iframe responsive */
    iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
    }
    
    #footer {
        padding: 10px 5px;
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    .content, #location {
        padding: 15px 10px;
        margin-top: 45px;
    }
    
    nav {
        padding: 3px 1px;
    }
    
    nav ul li {
        display: inline-block;
        margin: 0;
        flex-shrink: 0;
    }
    
    nav ul li a {
        padding: 3px 2px;
        font-size: 8px;
        white-space: nowrap;
    }
    
    h1 {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 0.9rem;
    }
    
    p {
        font-size: 12px;
    }
    
    .bg-image {
        padding-top: 45px;
    }
    
    /* Make iframe responsive */
    iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
    }
}

/* Ultra small screens */
@media screen and (max-width: 280px) {
    nav {
        padding: 2px 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 2px 1px;
        font-size: 7px;
        white-space: nowrap;
    }
    
    .bg-image {
        padding-top: 40px;
    }
}
