:root {
    --color-bg-dark: #05140b;
    --color-green-deep: #0f2a1d;
    --color-green-mid: #1a4d2e;
    --color-green-light: #4f8a61;
    --color-green-neon: #8cfca4;
    --color-accent: #e6c86e;
    --color-text: #f0fdf4;
    --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-family: var(--font-serif);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-circle {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-green-mid);
    border-top-color: var(--color-green-neon);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 20px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Header */
.lp-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(5, 20, 11, 0.8), transparent);
    transition: background 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--color-green-bright);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-family: sans-serif;
}

.back-link:hover {
    opacity: 1;
}

.lp-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.lp-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 5px;
}

.lp-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-green-neon);
    transition: width 0.3s ease;
}

.lp-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--color-green-mid) 0%, var(--color-bg-dark) 80%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
}

.catchphrase {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(140, 252, 164, 0.5);
}

.title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text);
    position: relative;
}

.title-line {
    display: block;
    background: linear-gradient(to bottom, #fff, var(--color-green-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    filter: drop-shadow(0 0 20px rgba(140, 252, 164, 0.3));
}

.broadcast-info {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    font-family: sans-serif;
    color: var(--color-accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    /* Alignment fix */
    color: var(--color-accent);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-green-neon);
}

/* Story Section */
.story-text {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2.5;
    letter-spacing: 0.1em;
}

/* Character Section */
.chara-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
}

.chara-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.chara-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(140, 252, 164, 0.1);
    border-color: var(--color-green-light);
}

.chara-img-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
    border-bottom: 2px solid var(--color-green-mid);
}

.chara-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.chara-card:hover .chara-img {
    transform: scale(1.1);
}

.chara-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.chara-info .cv {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.chara-info .desc {
    font-size: 0.95rem;
    color: #ccc;
    font-family: sans-serif;
}

/* Staff Section */
.staff-content {
    text-align: center;
}

.staff-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
}

.staff-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.staff-item dt {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--color-green-neon);
    margin-bottom: 8px;
    width: auto;
    text-align: center;
    font-family: sans-serif;
    opacity: 0.9;
}

.staff-item dt::before,
.staff-item dt::after {
    content: '◆';
    font-size: 0.6rem;
    margin: 0 10px;
    color: var(--color-green-mid);
    vertical-align: middle;
    opacity: 0.7;
}

.staff-item dd {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
    background: linear-gradient(to bottom, #fff, #e0ffe0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(140, 252, 164, 0.3));
}

.project-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--color-text);
    padding: 20px 40px;
    background: rgba(5, 20, 11, 0.8);
    position: relative;
}

.project-logo::before,
.project-logo::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--color-green-neon);
    transition: all 0.5s ease;
}

.project-logo::before {
    top: -5px;
    left: -5px;
    border-right: 0;
    border-bottom: 0;
}

.project-logo::after {
    bottom: -5px;
    right: -5px;
    border-left: 0;
    border-top: 0;
}

.project-logo:hover::before {
    top: 0;
    left: 0;
}

.project-logo:hover::after {
    bottom: 0;
    right: 0;
}

.logo-text-top {
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
    color: var(--color-green-neon);
}

.logo-text-main {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    font-family: var(--font-serif);
    line-height: 1;
}

/* Movie Section */
.movie-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: border-color 0.3s;
}

.movie-placeholder:hover {
    border-color: var(--color-green-neon);
}

.play-btn {
    font-size: 3rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

/* Footer */
.lp-footer {
    padding: 40px 0;
    text-align: center;
    background: #020a05;
    font-size: 0.8rem;
    color: #666;
    font-family: sans-serif;
}

/* Particles & Animation Classes */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0.5;
    }

    90% {
        opacity: 0;
    }

    100% {
        transform: translateY(-200px) translateX(-20px);
        opacity: 0;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Leaves */
.leaf {
    position: fixed;
    width: 15px;
    height: 15px;
    background: var(--color-green-neon);
    opacity: 0.2;
    border-radius: 2px 10px;
    z-index: 0;
    animation: leafFall 15s linear infinite;
}

.leaf-1 {
    top: -10%;
    left: 10%;
    animation-delay: 0s;
}

.leaf-2 {
    top: -10%;
    left: 30%;
    animation-delay: 5s;
    width: 10px;
    height: 10px;
}

.leaf-3 {
    top: -10%;
    left: 70%;
    animation-delay: 2s;
    width: 20px;
    height: 20px;
}

.leaf-4 {
    top: -10%;
    left: 90%;
    animation-delay: 8s;
}

@keyframes leafFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(110vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .lp-nav {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .story-text {
        font-size: 0.8rem;
        line-height: 2.2;
        letter-spacing: 0.05em;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-text-main {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-green-neon);
    border-radius: 10px;
    padding: 40px;
    z-index: 1001;
    transform: translateY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(140, 252, 164, 0.2);
    display: flex;
    flex-direction: column;
}

.modal.hidden .modal-content {
    transform: translateY(50px);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--color-green-neon);
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.modal-img-wrapper {
    flex: 0 0 40%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1;
    text-align: left;
}

#modal-name {
    font-size: 3rem;
    color: var(--color-green-neon);
    margin-bottom: 5px;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.modal-cv {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-role {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 25px;
    font-family: sans-serif;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #aaa;
    border-radius: 20px;
}

.modal-detail {
    line-height: 2;
    color: #eee;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .modal-img-wrapper {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .modal-content {
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #modal-name {
        font-size: 2rem;
        text-align: center;
    }

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