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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #ffe6f0, #dbe7ff, #e0fff9, #fbe6ff);
    background-size: 400% 400%;
    animation: bgShift 25s ease-in-out infinite;
    margin: 0;
    color: #4a3f3c;
    text-align: center;
    line-height: 1.6;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    position: relative;
}

.left-side {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#logo img {
    height: 70px;
    width: auto;
}

#profile-menu img {
    height: 70px;
    width: auto;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-icon {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    z-index: 1;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

#profile-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#profile-menu .dropdown {
    top: 100%;
    margin-top: 5px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 8px;
    min-width: 150px;
    text-align: left;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-family: 'Handlee', cursive;
}

.dropdown a:hover {
    background: #f5f5f5;
}

#profile-menu:hover .dropdown {
    display: block;
}

#login-register {
    position: static;
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.4;
}

#login-register div {
    margin: 3px 0;
}

#login-register a {
    font-family: 'Sawarabi Mincho', serif;
    text-decoration: none;
    color: #4a3f3c;
    font-weight: 300;
    transition: color 0.2s ease-in-out;
}

#login-register a:hover {
    color: #3f3533;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

h1 a {
    text-decoration: none;
    color: #4a3f3c;
    transition: color 0.2s ease-in-out;
}

h1 a:hover {
    color: #3f3533;
}

/* menu */
.menu {
    list-style-type: none;
    padding: 0;
    text-align: center;
    margin-top: 20px 0;
}

.menu li {
    display: inline-block;
    margin: 0 12px;
}

.menu li a {
    font-size: 1.5rem;
    font-family: 'Gochi Hand', cursive;
    text-decoration: none;
    color: #4a3f3c;
    font-weight: normal;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s ease;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #3f3533;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover {
    color: #3f3533;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.menu li a:hover::after {
    width: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
}

main h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    font-weight: 100;
    margin-bottom: 15px;
    color: #4a3f3c;
}

h3 {
    font-family: 'Cinzel', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a3f3c;
    margin: 20px 0 10px;
}

p {
    font-family: 'Handlee', cursive;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a3f3c;
    max-width: 700px;
    margin: 10px auto;
    text-align: center;
}

.description {
    font-family: 'Handlee', cursive;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
    color: #4a3f3c;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.timeline-image img {
    max-height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.timeline-image img:hover {
    transform: scale(1.05);
}

#time {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    margin-bottom: 8px;
    color: #333;
}

#date {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.5rem;
    color: #333;
}

#footer {
    background: transparent;
    padding: 20px 0;
    font-family: 'Handlee', cursive;
    color: #4a3f3c;
    flex-shrink: 0;
    align-items: center;
    text-align: left;
}

#footer .footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#footer p {
    margin: 5px 0;
    color: #4a3f3c;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: none;
}

#footer .footer-left,
#footer .footer-center,
#footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

#footer .footer-center {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#footer .footer-left,
#footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

#footer p,
#footer .footer-left,
#footer .footer-right {
    font-size: 1rem;
    line-height: 1.2;
    margin: 2px 0;
    color: #4a3f3c;
}

#footer .footer-left {
    align-items: flex-start;
    text-align: left;
    font-size: 1rem;
    color: #4a3f3c;
}

#footer .footer-right {
    align-items: flex-end;
    text-align: right;
    font-size: 1rem;
    color: #4a3f3c;
}

#footer .footer-icon {
    width: 50px;
    height: auto;
    margin-left: 130px;
}

#footer a {
    color: #4a3f3c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

#footer a:hover {
    color: #3f3533;
}

@media screen and (max-width: 768px) {
    #footer .footer-inner {
        flex-direction: column;
        padding: 0 20px;
        gap: 15px;
    }

    #footer .footer-left,
    #footer .footer-center,
    #footer .footer-right {
        align-items: center;
        text-align: center;
    }

    .header {
        flex-direction: column;
        padding: 10px 20px;
    }

    .left-side {
        position: static;
        transform: none;
        margin-bottom: 10px;
        justify-content: center;
        gap: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    #login-register {
        text-align: center;
    }

    .menu li {
        display: block;
        margin-bottom: 8px;
    }
}