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

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

body.home-page {
    background-color: #009aec;
    background-image: url('../images/main1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

body.home-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
}

header, main, footer {
    position: relative;
}

.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-button {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.profile-button:hover {
    transform: scale(1.1);
}

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

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

.dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 180px;
    background: linear-gradient(145deg, rgba(0,154,236,0.95), rgba(0,122,204,0.95));
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    display: none;
    pointer-events: none;
    z-index: 1000;
}

.dropdown.open {
    display: block;
    pointer-events: auto;
}

.dropdown a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-family: 'Handlee', cursive;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s, color 0.25s;
}

.dropdown a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffebc4;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #fff;
    font-family: 'Handlee', cursive;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s, color 0.25s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffebc4;
}

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

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

h1 a:hover {
    color: #fff;
}

/* welcome */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  padding-top: 50px;
  text-align: center;
}

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

.description-top,
.description-bottom {
    font-family: 'Handlee', cursive;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 10px auto;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.description-top {
    margin-bottom: 5px;
}

.description-bottom {
    margin-top: 0;
    margin-bottom: 20px;
}

.japanese-title {
    font-family: 'Sawarabi Mincho', serif;
}

/* login/register */
#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: #222;
    font-weight: 300;
    transition: color 0.2s ease-in-out;
}

#login-register a:hover {
    color: #fff;
}

/* 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: #222;
    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: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

/* time&date */
#time {
    font-family: 'Pacifico', cursive;
    color: #333;
}

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

#time {
    font-size: 2rem;
    margin-bottom: 8px;
}

#date {
    font-size: 1.5rem;
}

.footer {
    background: linear-gradient(to top, #0061a8, #009aec);
    color: #fff;
    padding: 20px 40px;
    font-family: 'Handlee', cursive;
    color: #fff;    

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
    font-size: 1rem;
    color: #fff;
}

.footer-icon {
    width: 50px;
    height: auto;
}

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

.footer a:hover {
    color: #005999;
}

@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-left, .footer-center, .footer-right {
        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;
    }
}