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

body {
    font-family: 'Noto Sans JP', sans-serif;
    padding: 20px;
    background-color: mistyrose;
}

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

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #af6ca5, #d48dae);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    z-index: 1000;
    gap: 20px;
}

.fixed-header h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    font-size: 2rem;
    padding: 0;
    margin-bottom: -7px;
    flex-grow: 1;
    text-align: center;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 10px;
}

.nav-button {
    padding: 8px 15px;
    background-color: #fff;
    color: #af6ca5;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border: 2px solid transparent;
}

.nav-button:hover {
    background-color: #af6ca5;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.heritage-sites-list {
    margin: 0 auto;
    text-align: left;
    margin-top: 100px;
}

.heritage-site-item {
    text-align: left;
    margin-bottom: 30px;
}

.heritage-thumbnail {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.heritage-thumbnail:hover {
    transform: scale(1.05);
}

.heritage-site-item h1 {
    text-decoration: underline;
    margin: 10px 0;
    color: #b55d47;
}

.heritage-site-item p {
    margin-bottom: 10px;
}

.heritage-site-item a:hover {
    background-color: #8e114b;
}

.content p {
    text-align: justify;
    font-weight: bolder;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .fixed-header {
        padding: 8px;
        gap: 15px;
    }
    
    .fixed-header h1 {
        font-size: 1.8rem;
    }
    
    .nav-button {
        font-size: 13px;
        padding: 7px 12px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .fixed-header {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .fixed-header h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
        order: 2;
    }
    
    .nav-buttons {
        order: 1;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .heritage-sites-list {
        margin-top: 140px;
    }
    
    .heritage-site-item {
        margin-bottom: 25px;
    }
    
    .heritage-thumbnail {
        max-width: 150px;
    }
    
    .heritage-site-item h1 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .fixed-header {
        padding: 8px;
    }
    
    .fixed-header h1 {
        font-size: 1.2rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .nav-button {
        padding: 6px 10px;
        font-size: 11px;
        text-align: center;
    }
    
    .heritage-sites-list {
        margin-top: 160px;
    }
    
    .heritage-thumbnail {
        max-width: 120px;
    }
    
    .heritage-site-item h1 {
        font-size: 1.1rem;
    }
    
    .content p {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media screen and (max-width: 320px) {
    .fixed-header h1 {
        font-size: 1rem;
    }
    
    .nav-button {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .heritage-sites-list {
        margin-top: 170px;
    }
    
    .heritage-thumbnail {
        max-width: 100px;
    }
}