html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.9; 
    color: #222;
    margin: 0;
    padding: 0 0 100px 0;
    background-color: #000;
}
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 2.5s ease-in-out; 
}
:root {
    --bg-1: url('bg_photo1.png');
    --bg-2: url('bg_photo2.png');
    --bg-3: url('bg_photo3.png');
    --bg-4: url('bg_photo4.png');
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5; 
}
.hero-header {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    margin-bottom: 60px;
    padding-top: 30vh;
    position: relative;
    z-index: 10; 
}
.hero-content {
    width: 100%;
}
.content-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
section {
    margin-bottom: 60px;
}
h1, h2, h3 {
    text-align: center;
    font-weight: normal;
}
.section-title {
    font-family: "Dela Gothic One", sans-serif; 
    font-size: 1.8rem;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
}
.section-title.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}
.section-title.fade-in-scroll.is-active {
    opacity: 1;
    transform: translateY(0);
}
.text-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}
.logo-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.75); 
    border-radius: 12px;
    padding: 20px 30px 30px 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 10;
}
.logo-main {
    width: 100%;
    height: auto;
    display: block;
}
.logo-sub {
    position: absolute;
    z-index: 2;
    bottom: 20%; 
    right: 5%;     
    width: 65%;    
    height: auto;
}
.anime-main {
    opacity: 0;
    animation: fadeInMainMain 2.0s ease-out 0.5s forwards;
}
.anime-sub {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInSubSub 1.0s ease-out 1.5s forwards;
}
@keyframes fadeInMainMain {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInSubSub {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 35px auto 0px auto; 
    max-width: 600px;
    width: 100%;
}
.nav-btn {
    flex: 1;
    text-align: center;
    display: block;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #111;
    text-decoration: none;
    font-family: "Dela Gothic One", sans-serif;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.nav-btn:hover {
    background-color: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.btn-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 99;
    background-color: rgba(17, 17, 17, 0.85);
    color: #fff;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
}
.btn-to-top:hover {
    background-color: #333;
    transform: scale(1.05);
}
#section-story.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}
#section-story.fade-in-scroll.is-active {
    opacity: 1;
    transform: translateY(0);
}
.content-box.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}
.content-box.fade-in-scroll.is-active {
    opacity: 1;
    transform: translateY(0);
}
.character-item {
    display: flex;
    align-items: center; 
    gap: 40px; 
    margin-bottom: 120px;
}
.character-item.reverse {
    flex-direction: row-reverse;
}
.char-img {
    width: 220px;
    height: 290px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
    overflow: hidden;
}
.char-text {
    flex-grow: 1;
}
.char-text strong {
    font-family: "Dela Gothic One", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: #111;
    display: inline-block;
    margin-bottom: 8px;
}
.character-item .char-img.fade-left {
    opacity: 0 !important;
    transform: translateX(-40px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}
.character-item .char-img.fade-right {
    opacity: 0 !important;
    transform: translateX(40px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}
.character-item .char-text.fade-up-text {
    opacity: 0 !important;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out 0.4s, transform 1.2s ease-out 0.4s;
}
.character-item.is-active .char-img.fade-left,
.character-item.is-active .char-img.fade-right {
    opacity: 1 !important;
    transform: translateX(0);
}
.character-item.is-active .char-text.fade-up-text {
    opacity: 1 !important;
    transform: translateY(0);
}
.info-block {
    text-align: center;
    margin-bottom: 30px;
}
.large-photo-placeholder {
    width: 100%;
    height: 350px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    margin: 40px 0;
    color: #666;
    font-size: 1.5rem;
}
.content-box.info-box-transparent {
    background-color: rgba(255, 255, 255, 0.6) !important; 
    backdrop-filter: blur(4px); /* すりガラス効果 */
    -webkit-backdrop-filter: blur(4px);
}
#section-story { scroll-margin-top: 50px; }
#title-char { scroll-margin-top: 40px; }
#section-info { scroll-margin-top: 50px; }
@media screen and (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .hero-header {
        padding-top: 20vh;
    }
    .logo-container {
        padding: 15px;
    }
    .logo-sub {
        width: 75%;
        right: 2%;
        bottom: 25%;
    }
    .content-box {
        padding: 30px 20px;
        margin-bottom: 80px !important;
    }
    .character-item, 
    .character-item.reverse {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 80px;
        text-align: center;
    }
    .char-img {
        width: 180px;  
        height: 240px;
        margin: 0 auto 10px auto;
    }
    .character-item .char-img.fade-left,
    .character-item .char-img.fade-right {
        transform: translateY(20px);
    }
    .schedule-container {
        font-size: 1rem;
    }
    .info-block {
        margin-top: 40px !important;
    }
    .nav-buttons {
        gap: 8px;
        margin-top: 25px;
        margin-bottom: 10px !important;
        padding: 0 10px;
    }
    .nav-btn {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    .btn-to-top {
        right: 15px;
        bottom: 15px;
        padding: 10px 15px;
    }
    #section-story { scroll-margin-top: 30px; }
    #title-char { scroll-margin-top: 20px; }
    #section-info { scroll-margin-top: 30px; }
}