body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Lucida Sans Unicode', 'Yu Gothic UI Light', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', Verdana, sans-serif
}

#splash {
    position: fixed;
    inset: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 1s ease;
}

#splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

#splash-logo {
    width: 90vw;
    height: auto;
    max-width: 300px;
    opacity: 0;
    clip-path: polygon(0% 100%, 0% 100%, 0% 100%, 0% 100%);
    animation: revealDiagonal 2s forwards;
}

/* 左下→右上にフェードイン */
@keyframes revealDiagonal {
    0% {
        opacity: 0;
        clip-path: polygon(0% 100%, 0% 100%, 0% 100%, 0% 100%);
    }
    100% {
        opacity: 1;
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%); /* 全体表示 */
    }
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 100;
}

#menu.visible {
    opacity: 1;
}

#menu .logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* nav 内の配置調整 */
#menu nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;   /* 余白を少し広げてロゴ分スペース確保 */
}

/* PC用：通常メニュー */
#menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

#menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.fullscreen-menu {
    display: none;
}

/* ヒーローセクション */
#hero {
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-image: url('../images/top_background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-logo {
    width: 90vw;
    max-width: 640px;
    height: auto;
    opacity: 0;
    transition: opacity 2s ease;
}

#about {
    background-image: linear-gradient(150deg, #2b464b, #584e05);
    color: white;
    padding: 16px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-text {
    max-width: 840px;
}

.fade-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-item.title {
    transition-delay: 0.2s;
    font-size: 2em;
    font-weight: bolder;
}

.fade-item.text {
    transition-delay: 0.4s;
    font-size: 1rem;
}

.br-tb {
    display: none;
}

.br-sp {
    display: none;
}

#guide-menu {
    background-image: url('../images/guide.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 16px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.guide-menu-text {
    font-size: 2.4rem;
    font-weight: bolder;
}

#guide {
    background-image: linear-gradient(135deg, #4b0c0c, #184944);
    padding: 8px;
}

.guide-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}

.guide-table th {
    padding: 10px;
    border-bottom: solid 4px #778ca3;
    color: #778ca3
}

.guide-table td {
    padding: 10px;
    border-bottom: solid 1px #778ca3;
}

.guide-if {
    color: white;
    font-size: 1.2rem;
}

.guide-site {
    color: white;
    font-size: 1.5rem;
}

footer {
    background-color: black;
    color: white;
    font-size: 0.84rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 120px;
}

@media (max-width: 768px) {
    #menu ul {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 200px;
        padding: 20px;
        gap: 20px;
        transition: right 0.3s ease;
    }

    #menu ul.show {
        right: 0;
    }

    #hero {
        background-attachment: scroll;
    }

    #hero-logo {
        width: 90vw;
        height: auto;
    }

    .hamburger {
        display: flex;
    }

    .fullscreen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 15, 15, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s;
        z-index: 1000;
    }

    .fullscreen-menu ul {
        list-style: none;
        text-align: center;
        padding: 0;
    }

    .fullscreen-menu ul li {
        margin: 20px 0;
    }

    .fullscreen-menu ul li a {
        font-size: 1.2rem;
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }

    .fullscreen-menu ul li a:hover {
        color: #00bfff;
    }

    .fullscreen-menu.active {
        opacity: 1;
        visibility: visible;
        animation: slideDown 0.6s ease forwards;
    }

    @keyframes slideDown {
        from { transform: translateY(-20%); }
        to { transform: translateY(0); }
    }

    #nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        opacity: 0;
        display: none;
        z-index: 999;
        margin: 0;
        padding-left: 0;
        box-sizing: border-box;
    }

    #nav-links.fade-in {
        animation: fadeIn 0.3s ease-in-out forwards;
    }

    #nav-links.fade-out {
        animation: fadeOut 0.3s ease-in-out forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }

    #nav-links li {
        margin: 20px 0;
    }

    #nav-links a {
        color: white;
        font-size: 1.2rem;
        text-decoration: none;
    }

    #about {
        padding: 80px 8%;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .br-tb {
        display: inline;
    }
}

@media (max-width: 480px) {
    #hero {
        background-attachment: scroll;
    }

    #hero-logo {
        width: 95vw;
        height: auto;
    }

    .br-tb {
        display: none;
    }

    .br-sp {
        display: inline;
    }
}