/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Kaisei Tokumin', serif;
    color: #e4e4e4;
    background: linear-gradient(90deg,
            rgba(118, 0, 0, 0.5) 0%,
            rgba(0, 5, 102, 0.5) 40.38%,
            rgba(0, 5, 102, 0.5) 80%,
            rgba(118, 0, 0, 0.5) 100%), #000;
    overflow-x: hidden;
    min-width: 320px;
}

/* Scroll Snap for Sections */
.hero,
.headline,
.features-section,
.ai-madamis-section,
.story-section,
.gallery-section,
.pricing-section,
.pre-registration-section,
.sns-section,
.statement-section,
.footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ===== Hamburger Menu Button ===== */
.hamburger-btn {
    display: none;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px;
    transition: background 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to X animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Floating Navigation (Right Side) ===== */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 5%;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-nav.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.floating-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 12px 0;
    height: 56px;
    font-family: 'Kaisei Tokumin', serif;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-nav .nav-item::before {
    content: '';
    display: block;
    width: 18px;
    height: 13px;
    background-image: url('./assets/arrow-navi.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-nav .nav-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.floating-nav .nav-item:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(224, 206, 101, 0.75);
}

/* Woman in hamburger menu - hidden on desktop */
.nav-woman {
    display: none;
}

/* ===== Floating Woman Character (Left Side) ===== */
.floating-woman {
    position: fixed;
    left: 0;
    bottom: -10px;
    width: 278px;
    height: 510px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-woman.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.floating-woman .woman-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 372px;
    object-fit: contain;
    object-position: bottom;
}

/* ===== Floating CTA Button (Right Bottom) ===== */
.floating-cta {
    position: fixed;
    right: 0;
    bottom: 30px;
    width: 230px;
    height: 205px;
    z-index: 1000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.floating-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-cta.visible:hover {
    transform: translateY(-5px);
}

.floating-cta .cta-image-close,
.floating-cta .cta-image-open {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.floating-cta .cta-image-close {
    opacity: 1;
}

.floating-cta .cta-image-open {
    opacity: 0;
}

.floating-cta:hover .cta-image-close {
    opacity: 0;
}

.floating-cta:hover .cta-image-open {
    opacity: 1;
}

/* Hide floating elements on smaller screens */
@media (max-width: 1500px) {

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

    /* Sliding out state for breakpoint transition */
    .floating-woman.sliding-out {
        visibility: visible;
        transform: translateX(-100%);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
    }

    /* Tablet/Desktop small navigation - sidebar style */
    .floating-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 500px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        opacity: 1;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        padding: 5% 20px 20px 20px;
        gap: 1px;
        transition: none;
    }

    /* Sliding out state for breakpoint transition */
    .floating-nav.sliding-out {
        position: fixed;
        top: 5%;
        right: 20px;
        width: auto;
        height: auto;
        background: transparent;
        transform: translateX(100%);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    /* Sidebar navigation - open state */
    .floating-nav.mobile-open {
        transform: translateX(0);
        pointer-events: auto;
        transition: transform 0.4s ease;
    }

    /* Override .visible class behavior on tablet/desktop small */
    .floating-nav.visible {
        transform: translateX(100%);
        pointer-events: none;
    }

    .floating-nav.visible.mobile-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .floating-nav .nav-item {
        padding: 12px 0;
        font-size: 18px;
        justify-content: flex-end;
        height: auto;
        opacity: 1;
    }

    .floating-nav .nav-item::before {
        display: block;
        opacity: 0;
        transform: translateX(10px);
    }

    .floating-nav .nav-item:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    /* Woman in hamburger menu - hidden until menu is open */
    .nav-woman {
        display: none;
        position: absolute;
        bottom: -30px;
        right: 270px;
        left: auto;
        transform: none;
        width: 175px;
        pointer-events: none;
    }

    /* Show woman only when hamburger menu is open */
    .floating-nav.mobile-open .nav-woman {
        display: block;
    }

    .nav-woman-image {
        width: 100%;
        height: auto;
    }

    .floating-cta {
        right: 10px;
        bottom: 20px;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation - full screen overlay */
    .floating-nav {
        width: 100%;
        align-items: center;
        padding-right: 0;
        gap: 10px;
        background: rgba(0, 0, 0, 0.9);
    }

    .floating-nav .nav-item {
        padding: 15px 30px;
        font-size: 18px;
        justify-content: center;
    }

    .nav-woman {
        left: 0;
        bottom: -30px;
        transform: none;
    }

    .floating-cta {
        top: 80px;
        bottom: auto;
        right: 10px;
        left: auto;
        width: 100px;
        height: 89px;
        transform: none;
    }
}

/* HERO Section - Based on Figma: 1920px × 1024px, Padding: 162px 208px */
.hero {
    position: relative;
    width: 100%;
    height: 974px;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    overflow: hidden;
    padding: 162px 208px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 100px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 100px), rgba(0, 0, 0, 0) 100%);
}

/* Hero Video Slideshow */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-video.active {
    opacity: 0.8;
    z-index: 2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Fallback image - hidden when videos are playing */
.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    margin-top: -100px;
}

.hero-logo {
    max-width: 998px;
    width: 100%;
    max-height: 354.5px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

/* MAIN Section - Based on Figma: 1200px width, Padding: 300px 0px, Drop Shadow */
.main-section {
    width: 100%;
    margin: 0 auto;
    background: transparent;
    padding: 300px 0px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 300px;
}

/* HEADLINE */
.headline {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

.key-icon {
    width: 136px;
    height: 204px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.key-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-headline {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    background: linear-gradient(180deg, #881D1D 19.23%, #977161 37.5%, #881D1D 52.4%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 1)) drop-shadow(0 0 50px rgba(255, 107, 107, 1));
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

.main-headline-image {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 1)) drop-shadow(0 0 50px rgba(255, 107, 107, 1));
}

.sub-headline {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 2;
    text-align: center;
    color: #e4e4e4;
    max-width: 1200px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 756px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Video Mute Button */
.video-mute-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-mute-btn svg {
    width: 24px;
    height: 24px;
}

/* Show mute icon when muted, unmute icon when not muted */
.video-mute-btn .mute-icon {
    display: block;
}

.video-mute-btn .unmute-icon {
    display: none;
}

.video-mute-btn.unmuted .mute-icon {
    display: none;
}

.video-mute-btn.unmuted .unmute-icon {
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.headline-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* AIBOROSは Section (Features) */
.features-section {
    position: relative;
    width: 100%;
    height: 1200px;
    margin: 0 auto;
    min-height: 800px;
    padding: 100px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2400px;
    height: 1200px;
    background-image: url('./assets/mansion-bg-new.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.75;
    z-index: 1;
    /* グラデーションマスク: 上下が透明になり背景に馴染む */
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
}

.features-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

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

.features-logo {
    height: 188px;
    width: 600px;
    object-fit: contain;
}

.features-title-text {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    line-height: normal;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 20px 10px;
    border-radius: 8px;
}

.feature-number {
    font-family: 'Frijole', cursive;
    font-size: 60px;
    font-weight: 400;
    color: #e4e4e4;
    line-height: normal;
    flex-shrink: 0;
    white-space: nowrap;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #ffffff;
    line-height: normal;
    background: conic-gradient(from 90deg at 50% 50%, #BB8080 0deg, #8082B3 237.60000944137573deg, #BB8080 360deg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #e4e4e4;
    line-height: normal;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-headline {
        font-size: 36px;
    }

    .sub-headline {
        font-size: 24px;
    }

    .features-section {
        height: auto;
        min-height: auto;
    }

    .features-background {
        width: 100%;
        height: 100%;
    }

    .features-logo {
        height: 140px;
        width: 450px;
    }

    .features-title-text {
        font-size: 40px;
    }

    .feature-item {
        gap: 30px;
    }

    .feature-number {
        font-size: 50px;
    }

    .feature-title {
        font-size: 36px;
    }

    .feature-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 600px;
    }

    .main-headline {
        font-size: 28px;
    }

    .sub-headline {
        font-size: 20px;
        line-height: 1.8;
    }

    .video-frame {
        height: 300px;
    }

    .features-section {
        height: auto;
        min-height: auto;
        padding: 80px 20px;
    }

    .features-background {
        width: 100%;
        height: 100%;
    }

    .features-title {
        flex-wrap: nowrap;
    }

    .features-logo {
        height: 100px;
        width: 320px;
    }

    .features-title-text {
        font-size: 32px;
    }

    .features-list {
        max-width: 100%;
    }

    .feature-item {
        gap: 25px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-number {
        font-size: 48px;
    }

    .feature-text {
        align-items: center;
    }

    .feature-title {
        font-size: 32px;
    }

    .feature-description {
        font-size: 18px;
    }

    .key-icon {
        width: 60px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 500px;
        padding: 80px 20px;
    }

    .main-section {
        padding: 150px 15px;
    }

    .main-headline {
        font-size: 24px;
    }

    .sub-headline {
        font-size: 18px;
    }

    .features-content {
        padding: 0;
    }

    .features-logo {
        height: 80px;
        width: 256px;
    }

    .features-title-text {
        font-size: 28px;
    }

    .feature-item {
        gap: 20px;
        padding: 15px 10px;
    }

    .feature-number {
        font-size: 40px;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature-description {
        font-size: 16px;
    }
}

/* AI×マダミス Section */
.ai-madamis-section {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: visible;
    /* background: linear-gradient(135deg, #4a1a2c 0%, #1a2a4a 50%, #2a1a1a 100%); */
}

/* Content container (1920px x 1300px) with backgrounds and content */
.ai-madamis-content {
    position: absolute;
    width: 1920px;
    height: 1300px;
    left: 50%;
    top: -300px;
    transform: translateX(-50%);
    z-index: 1;
}

/* Triangle backgrounds - right (full opacity) */
.ai-madamis-content::before {
    content: '';
    position: absolute;
    width: 1920px;
    height: 1300px;
    left: 0;
    top: 0;
    background-image: url('./assets/triangle-right.png');
    background-size: 1920px 1300px;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
}

/* Triangle backgrounds - left (30% opacity) */
.ai-madamis-content::after {
    content: '';
    position: absolute;
    width: 1920px;
    height: 1300px;
    left: 0;
    top: 0;
    background-image: url('./assets/triangle-left.png');
    background-size: 1920px 1300px;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

/* Decorative images */
.decorative-knife {
    position: absolute;
    width: 803px;
    height: 362px;
    left: 701px;
    top: 52px;
    object-fit: cover;
    object-position: 50% 50%;
}

.decorative-watch {
    position: absolute;
    width: 432px;
    height: 562px;
    left: 188px;
    top: 382px;
    object-fit: cover;
    object-position: 50% 50%;
}

.decorative-pen {
    position: absolute;
    width: 494px;
    height: 645px;
    left: 1197px;
    top: 340px;
    object-fit: cover;
    object-position: 50% 50%;
}

.decorative-glass {
    position: absolute;
    width: 475px;
    height: 510px;
    left: 653px;
    top: 710px;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Center title */
.ai-madamis-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    left: 50%;
    top: 300px;
    transform: translateX(-50%);
    z-index: 3;
}

.title-murder-mystery {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 66px;
    font-weight: 400;
    color: #e4e4e4;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0px 0px 25px #000000;
}

.title-cross-icon {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.title-ai {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 78px;
    font-weight: 400;
    color: #e4e4e4;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0px 0px 25px #000000;
}

/* Feature boxes */
.feature-box {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    padding: 10px 30px;
    border-radius: 8px;
    z-index: 3;
}

.feature-box-left {
    left: 35%;
    transform: translateX(-50%);
    top: 600px;
}

.feature-box-right {
    left: 70%;
    transform: translateX(-50%);
    top: 600px;
}

.feature-box-bottom {
    left: 50%;
    transform: translateX(-50%);
    top: 850px;
}

.feature-box-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 32px;
    font-weight: 400;
    color: #e4e4e4;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

.feature-box-subtitle {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #b8b8b8;
    text-align: center;
    margin: 8px 0 0 0;
    white-space: nowrap;
}

/* Feature box background image (for responsive) */
.feature-box-bg-image {
    display: none;
}

@media (max-width: 1024px) {
    .feature-box-bg-image {
        display: block !important;
        position: absolute !important;
        width: 100px;
        height: auto;
        opacity: 1;
        z-index: 0;
        pointer-events: none;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .feature-box .feature-box-title,
    .feature-box .feature-box-subtitle {
        position: relative;
        z-index: 1;
    }

    .feature-box-left .feature-box-bg-image {
        right: -20px;
    }

    .feature-box-right .feature-box-bg-image {
        right: auto;
        left: -20px;
        transform: translateY(-50%) scaleX(-1);
    }

    .feature-box-bottom .feature-box-bg-image {
        right: -10px;
    }
}

.feature-tag {
    font-size: 13px;
    color: #e4e4e4;
}

/* Story Section */
.story-section {
    width: 100%;
    background: #000000;
    padding: 150px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.story-section .section-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #e4e4e4;
    text-align: center;
    margin: 0;
}

.story-container {
    display: flex;
    gap: 10px;
    width: 1200px;
    height: 800px;
    max-width: 100%;
}

/* Left Sidebar: Story List */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 250px;
}

.story-title-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s ease;
}

.story-title-item:hover {
    background: rgba(116, 40, 40, 0.3);
}

.story-title-item.active {
    background: rgba(116, 40, 40, 0.5);
}

.story-title-item p {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Side: Story Details */
.story-details {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.story-detail-content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.story-detail-content.active {
    display: flex;
}

/* Story Header */
.story-header {
    display: flex;
    gap: 10px;
}

.story-image {
    width: 300px;
    height: 201px;
    flex-shrink: 0;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
}

.story-info-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-title-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-detail-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.story-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tag-label {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
}

.tag {
    background: #742828;
    color: #ffffff;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 8px;
    white-space: nowrap;
}

.story-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.meta-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.meta-item span {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 15px;
    color: #ffffff;
}

.story-creator-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-creator-info p {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

/* Story Objective */
.story-objective {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.story-objective h4 {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.story-objective p {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
}

/* Story Sections */
.story-sections {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

/* Synopsis */
.story-synopsis {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.synopsis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.synopsis-header h4 {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.audio-player {
    display: flex;
    gap: 7px;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0 14px;
    height: 28px;
    border-radius: 8px;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    width: 24px;
    height: 24px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.audio-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    height: 8px;
    width: 100px;
    overflow: hidden;
}

.progress-bar {
    background: #ffffff;
    height: 100%;
    width: 47%;
    border-radius: 4px;
}

.synopsis-text {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    overflow-y: auto;
    max-height: 400px;
}

/* Characters */
.story-characters {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 600px;
}

.story-characters h4 {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character-item {
    display: flex;
    gap: 20px;
}

.character-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.character-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.character-name {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

.character-description {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gallery Section */
.gallery-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #e4e4e4;
    padding: 50px;
    border-radius: 16px;
    min-height: 973px;
    box-sizing: border-box;
}

.gallery-content {
    max-width: 100%;
    margin: 0 auto;
}

.gallery-section .section-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #333333;
    text-align: center;
    margin-bottom: 60px;
}

/* Main Image Display */
.gallery-main-frame {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-main-image.active {
    opacity: 1;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    max-height: calc(100% - 50px);
    object-fit: contain;
    background: #1a1a1a;
}

/* Gallery Main Wrapper */
.gallery-main-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Gallery Caption */
.gallery-caption {
    display: none;
    color: #333333;
    font-family: 'Kaisei Tokumin', serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 12px 0;
    text-align: left;
}

.gallery-caption.active {
    display: block;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.gallery-thumbnail {
    width: 300px;
    height: 180px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-thumbnail.active {
    border-color: #742828;
    box-shadow: 0 0 20px rgba(116, 40, 40, 0.5);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pre-Registration Section (事前登録) - Based on Figma: 1200px width, 712px height */
.pre-registration-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 712px;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative mask icon (top-left corner) */
.decorative-mask {
    position: absolute;
    left: 40px;
    top: 20px;
    width: 156.931px;
    height: 154.177px;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.mask-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Registration content with paper background */
.registration-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    min-height: 712px;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    background: url('./assets/vintage-paper.png') center/contain no-repeat;
}

/* Title with underline - Figma: 44px font, line decoration */
.registration-title-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.registration-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 10px 0;
    text-align: center;
    white-space: nowrap;
}

.title-underline {
    width: 561px;
    height: auto;
    margin-top: 10px;
}

/* Benefits list */
.benefits-list {
    width: 100%;
    max-width: 610px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.benefit-text {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 31px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    text-align: left;
}

.benefit-underline {
    width: 100%;
    height: auto;
}

/* CTA Button - Figma: white background with gradient text, wax seal */
.registration-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 8px;
    padding: 20px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.registration-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.4);
}

/* Wax seal with image */
.wax-seal {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.wax-seal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* CTA text */
.cta-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.cta-main-text {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.cta-sub-text {
    font-family: 'New Tegomin', serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(180deg, #460f0f 0%, #881d1d 21.154%, #460f0f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Registration Form Styles */
.registration-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.form-input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.email-input {
    width: 100%;
    max-width: 500px;
    padding: 18px 24px;
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    color: #333333;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(70, 15, 15, 0.3);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.email-input::placeholder {
    color: #999999;
}

.email-input:focus {
    border-color: #881d1d;
    box-shadow: 0 4px 12px rgba(136, 29, 29, 0.2);
    background: #ffffff;
}

.email-input:invalid:not(:placeholder-shown) {
    border-color: #cc3333;
}

.email-input:valid:not(:placeholder-shown) {
    border-color: #2d8a2d;
}

.form-hint {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 14px;
    color: #666666;
    margin: 0;
    text-align: center;
}

/* Registration Success Message */
.registration-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInScale 0.5s ease;
}

.registration-success.show {
    display: flex;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d8a2d 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 138, 45, 0.3);
}

.success-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 28px;
    font-weight: 700;
    color: #2d8a2d;
    margin: 0;
}

.success-message {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 16px;
    color: #333333;
    margin: 0;
    text-align: center;
    line-height: 1.8;
}

/* Hide form when success is shown */
.registration-form.hidden {
    display: none;
}

/* Loading state for submit button */
.registration-cta.loading {
    pointer-events: none;
    opacity: 0.7;
}

.registration-cta.loading .cta-main-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Pricing Section - Based on Figma design */
.pricing-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ede3dc;
    padding: 50px;
    border-radius: 16px;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pricing-section .section-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin: 0;
}

.pricing-description {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* Pricing Table Container */
.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

/* Pricing Table - Figma style */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1px;
    font-family: 'Kaisei Tokumin', serif;
    table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
    width: 20%;
}

/* Header Row */
.pricing-table thead .table-header {
    background: #000000;
}

.pricing-table .header-cell {
    background: #000000;
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    padding: 20px;
    text-align: center;
    white-space: nowrap;
}

.pricing-table .header-cell:first-child {
    border-top-left-radius: 16px;
}

.pricing-table .header-cell:last-child {
    border-top-right-radius: 16px;
}

/* Highlight header (単発生成) - dark red */
.pricing-table .highlight-header {
    background: #4d1010;
    color: #e6e6e6;
    font-size: 28px;
}

/* Label header (プラン料金表) - italic style */
.pricing-table .label-header {
    font-style: italic;
    font-size: 20px;
}

/* Table Rows */
.pricing-table .table-row {
    height: auto;
}

.pricing-table .table-row:nth-child(odd) td {
    background: #ffffff;
}

.pricing-table .table-row:nth-child(even) td {
    background: #ffffff;
}

/* Row Label (left column) */
.pricing-table .row-label {
    background: #e6e6e6 !important;
    color: #000000;
    font-size: 24px;
    font-weight: 400;
    padding: 20px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.pricing-table .row-label .label-sub {
    font-size: 18px;
    color: #454545;
    display: block;
}

.pricing-table .row-label .label-main {
    font-size: 24px;
    color: #000000;
    display: block;
}

/* Table Cells */
.pricing-table .cell {
    background: #ffffff;
    color: #454545;
    font-size: 20px;
    font-weight: 400;
    padding: 20px;
    text-align: center;
    white-space: nowrap;
    border-right: 1px dashed #5b5b5b;
    vertical-align: middle;
}

.pricing-table .cell:last-child {
    border-right: none;
}

.pricing-table .cell .cell-main {
    font-size: 20px;
    color: #000000;
    display: block;
}

.pricing-table .cell .cell-sub {
    font-size: 14px;
    color: #454545;
    display: block;
    text-align: center;
}

/* Footer Row */
.pricing-table tfoot .table-footer {
    background: #000000;
}

.pricing-table .footer-cell {
    background: #000000;
    padding: 20px;
    text-align: left;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Mobile footer - hidden by default, shown on small screens */
.pricing-footer-mobile {
    display: none;
}

.pricing-table .footer-title {
    font-size: 28px;
    font-weight: 400;
    color: #ffe02d;
    display: block;
    margin-bottom: 5px;
}

.pricing-table .footer-text {
    font-size: 20px;
    font-weight: 400;
    color: #e6e6e6;
    display: block;
}

/* Responsive Pricing Table */
@media (max-width: 1024px) {
    .pricing-section {
        padding: 40px 20px;
        border-radius: 12px;
    }

    .pricing-section .section-title {
        font-size: 36px;
    }

    .pricing-description {
        font-size: 18px;
    }

    .pricing-table .header-cell {
        font-size: 18px;
        padding: 15px 10px;
    }

    .pricing-table .highlight-header {
        font-size: 20px;
    }

    .pricing-table .row-label {
        font-size: 18px;
        padding: 15px 10px;
    }

    .pricing-table .row-label .label-sub {
        font-size: 14px;
    }

    .pricing-table .row-label .label-main {
        font-size: 18px;
    }

    .pricing-table .cell {
        font-size: 16px;
        padding: 15px 10px;
    }

    .pricing-table .cell .cell-main {
        font-size: 16px;
    }

    .pricing-table .cell .cell-sub {
        font-size: 12px;
    }

    .pricing-table .footer-title {
        font-size: 22px;
    }

    .pricing-table .footer-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 30px 15px;
    }

    .pricing-section .section-title {
        font-size: 28px;
    }

    .pricing-description {
        font-size: 16px;
        text-align: left;
    }

    .pricing-table-container {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }

    .pricing-table .header-cell {
        font-size: 14px;
        padding: 12px 8px;
    }

    .pricing-table .highlight-header {
        font-size: 16px;
    }

    .pricing-table .label-header {
        font-size: 14px;
    }

    .pricing-table .row-label {
        font-size: 14px;
        padding: 12px 8px;
        min-height: 60px;
    }

    .pricing-table .row-label .label-sub {
        font-size: 12px;
    }

    .pricing-table .row-label .label-main {
        font-size: 14px;
    }

    .pricing-table .cell {
        font-size: 14px;
        padding: 12px 8px;
        min-height: 60px;
    }

    .pricing-table .cell .cell-main {
        font-size: 14px;
    }

    .pricing-table .cell .cell-sub {
        font-size: 10px;
    }

    .pricing-table .footer-cell {
        padding: 15px;
    }

    .pricing-table .footer-title {
        font-size: 18px;
    }

    .pricing-table .footer-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 20px 10px;
    }

    .pricing-section .section-title {
        font-size: 24px;
    }

    .pricing-description {
        font-size: 14px;
    }

    .pricing-table .header-cell {
        font-size: 12px;
        padding: 10px 5px;
    }

    .pricing-table .highlight-header {
        font-size: 12px;
    }

    .pricing-table .row-label {
        font-size: 12px;
        padding: 10px 5px;
    }

    .pricing-table .row-label .label-sub {
        font-size: 10px;
    }

    .pricing-table .row-label .label-main {
        font-size: 12px;
    }

    .pricing-table .cell {
        font-size: 12px;
        padding: 10px 5px;
    }

    .pricing-table .footer-title {
        font-size: 16px;
    }

    .pricing-table .footer-text {
        font-size: 12px;
    }
}

/* SNS Section - Based on Figma design */
.sns-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ede3dc;
    border-radius: 16px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 314px;
}

.sns-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.sns-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sns-title {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 44px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.sns-subtitle {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 32px;
    font-weight: 400;
    color: #454545;
    margin: 0;
    white-space: nowrap;
}

.sns-icons {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
}

.sns-link {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sns-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.sns-icon {
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* X (Twitter) icon - 80px x 82px */
.sns-icon.sns-x {
    width: 80px;
    height: 82px;
}

/* Instagram icon - 100px x 100px */
.sns-icon.sns-instagram {
    width: 100px;
    height: 100px;
}

/* TikTok icon - 100px x 100px */
.sns-icon.sns-tiktok {
    width: 100px;
    height: 100px;
}

/* YouTube icon - 100px x 100px (matching other icons height) */
.sns-icon.sns-youtube {
    width: 142px;
    height: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.sns-icon.sns-youtube .youtube-logo-img {
    position: absolute;
    height: 100%;
    width: auto;
    left: 0;
    top: 0;
    object-fit: cover;
}

/* Responsive SNS Section */
@media (max-width: 1024px) {
    .sns-section {
        padding: 40px 20px;
    }

    .sns-title {
        font-size: 36px;
    }

    .sns-subtitle {
        font-size: 26px;
    }

    .sns-icons {
        gap: 25px;
    }

    .sns-icon.sns-x {
        width: 64px;
        height: 66px;
    }

    .sns-icon.sns-instagram,
    .sns-icon.sns-tiktok {
        width: 80px;
        height: 80px;
    }

    .sns-icon.sns-youtube {
        width: 114px;
        height: 80px;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .sns-section {
        padding: 30px 15px;
        gap: 20px;
    }

    .sns-title {
        font-size: 28px;
    }

    .sns-subtitle {
        font-size: 20px;
    }

    .sns-icons {
        gap: 20px;
        flex-wrap: wrap;
    }

    .sns-icon.sns-x {
        width: 50px;
        height: 51px;
    }

    .sns-icon.sns-instagram,
    .sns-icon.sns-tiktok {
        width: 60px;
        height: 60px;
    }

    .sns-icon.sns-youtube {
        width: 85px;
        height: 60px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .sns-section {
        padding: 25px 15px;
    }

    .sns-title {
        font-size: 24px;
    }

    .sns-subtitle {
        font-size: 16px;
    }

    .sns-icons {
        gap: 15px;
    }

    .sns-icon.sns-x {
        width: 40px;
        height: 41px;
    }

    .sns-icon.sns-instagram,
    .sns-icon.sns-tiktok {
        width: 50px;
        height: 50px;
    }

    .sns-icon.sns-youtube {
        width: 71px;
        height: 50px;
        border-radius: 10px;
    }
}

/* Statement Section - Based on Figma: 1200px width, padding 120px 0 */
.statement-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

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

/* Smoke background - using ::before pseudo-element */
.statement-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(180deg) scaleY(-1);
    width: min(1600px, 100vw);
    height: auto;
    aspect-ratio: 1268 / 385;
    /* 元画像のアスペクト比 */
    background: url('./assets/smoke.png') center/100% 100% no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

/* Statement text images */
.statement-line {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

/* これまでの常識を覆す */
.statement-line-1 {
    width: 756px;
    max-width: 90%;
    margin-bottom: -25px;
}

/* 新たなマーダーミステリー体験を */
.statement-line-2 {
    width: 1130px;
    max-width: 95%;
    margin-top: -25px;
}

/* Statement Section Responsive */
@media (max-width: 1024px) {
    .statement-section {
        padding: 100px 20px;
    }

    .statement-content::before {
        width: min(1200px, 100vw);
        /* aspect-ratio は継承されるので height 指定不要 */
    }

    .statement-line-1 {
        width: 550px;
        max-width: 85%;
        margin-bottom: -20px;
    }

    .statement-line-2 {
        width: 850px;
        max-width: 95%;
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    .statement-section {
        padding: 80px 15px;
    }

    .statement-content::before {
        width: min(900px, 100vw);
        /* aspect-ratio は継承されるので height 指定不要 */
    }

    .statement-line-1 {
        width: 400px;
        max-width: 80%;
        margin-bottom: -10px;
    }

    .statement-line-2 {
        width: 600px;
        max-width: 95%;
        margin-top: -10px;
    }
}

@media (max-width: 480px) {
    .statement-section {
        padding: 60px 10px;
    }

    .statement-content::before {
        width: min(600px, 100vw);
        /* aspect-ratio は継承されるので height 指定不要 */
    }

    .statement-line-1 {
        width: 300px;
        max-width: 75%;
        margin-bottom: 0;
    }

    .statement-line-2 {
        width: 340px;
        max-width: 90%;
        margin-top: 0;
    }
}

/* Footer - Based on Figma: 1920px width, black background, padding 50px */
.footer {
    width: 100%;
    background: #000000;
    padding: 50px 0;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-logo {
    width: 300px;
    height: 94px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 0;
}

.footer-link {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    line-height: 2;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 20px;
    font-weight: 400;
    color: #b2aaa4;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px;
    }

    .footer-logo {
        width: 200px;
        height: auto;
    }

    .footer-link {
        font-size: 16px;
    }

    .footer-copyright {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 15px;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 14px;
    }
}

/* Additional Responsive Styles */
@media (max-width: 1024px) {
    .section-title {
        font-size: 40px;
    }

    .story-section .section-title,
    .gallery-section .section-title {
        font-size: 36px;
    }

    /* AI×マダミス responsive */
    .ai-madamis-section {
        height: auto !important;
        min-height: auto !important;
        padding: 80px 20px;
        overflow: hidden !important;
    }

    .ai-madamis-content {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px;
        padding: 40px 20px;
    }

    /* 三角形背景 - サイズと角度はPC版のまま、はみ出しは隠す */
    .ai-madamis-content::before,
    .ai-madamis-content::after {
        display: block !important;
        position: absolute;
        width: 100vw;
        max-width: 1920px;
        height: auto;
        aspect-ratio: 1920 / 1300;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background-size: 100% 100%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .ai-madamis-content::before {
        background-image: url('./assets/triangle-right.png');
        opacity: 1;
        z-index: -2;
    }

    .ai-madamis-content::after {
        background-image: url('./assets/triangle-left.png');
        opacity: 0.3;
        z-index: -1;
    }

    .ai-madamis-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        flex-direction: row !important;
        gap: 15px;
    }

    .title-murder-mystery {
        font-size: 42px;
    }

    .title-cross-icon {
        width: 30px;
        height: 30px;
    }

    .title-ai {
        font-size: 42px;
    }

    .feature-box {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0;
        max-width: 90%;
        width: 100%;
    }

    .feature-box-left,
    .feature-box-right,
    .feature-box-bottom {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .feature-box-title {
        font-size: 24px;
        white-space: normal;
    }

    .feature-box-subtitle {
        font-size: 16px;
        white-space: normal;
    }

    .decorative-knife,
    .decorative-watch,
    .decorative-pen,
    .decorative-glass {
        display: none;
    }

    .polygon-bg {
        width: 100%;
        height: 100%;
        top: 0;
    }

    /* Story Details 1024px - 縦並びレイアウト */
    .story-header {
        flex-direction: column;
    }

    .story-image {
        width: 100%;
        height: auto;
    }

    .story-info-box {
        width: 100%;
    }

    /* Pre-Registration 1024px */
    .registration-content {
        min-height: auto;
        background-size: 100% 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 600px;
        padding: 100px 40px;
    }

    .main-section {
        padding: 100px 20px;
        gap: 100px;
    }

    .ai-madamis-section {
        height: auto;
        min-height: 400px;
        padding: 60px 20px;
        overflow: hidden;
    }

    .ai-madamis-content {
        gap: 30px;
        padding: 30px 15px;
    }

    .ai-madamis-title {
        gap: 10px;
    }

    .title-murder-mystery {
        font-size: 32px;
    }

    .title-ai {
        font-size: 32px;
    }

    .title-cross-icon {
        width: 24px;
        height: 24px;
    }

    .feature-box-title {
        font-size: 18px;
    }

    .feature-box-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .story-section .section-title,
    .gallery-section .section-title {
        font-size: 28px;
    }

    .story-container {
        flex-direction: column;
        height: auto;
        min-height: 600px;
        width: 100%;
        padding: 0 10px;
    }

    .story-list {
        flex-direction: row;
        min-width: auto;
        overflow-x: auto;
        gap: 5px;
    }

    .story-title-item {
        min-width: 150px;
    }

    .story-title-item p {
        font-size: 16px;
    }

    .story-header {
        flex-direction: column;
    }

    .story-image {
        width: 100%;
        height: auto;
    }

    .story-detail-title {
        font-size: 18px;
    }

    .story-objective h4,
    .synopsis-header h4 {
        font-size: 16px;
    }

    .story-objective p {
        font-size: 12px;
    }

    .tag-label {
        font-size: 12px;
    }

    .meta-item span {
        font-size: 13px;
    }

    .story-creator-info p {
        font-size: 12px;
    }

    .story-sections {
        flex-direction: column;
    }

    .character-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .character-image {
        width: 60px;
        height: 60px;
    }

    .character-name {
        font-size: 12px;
    }

    .character-description {
        font-size: 11px;
    }

    .gallery-section {
        padding: 30px 15px;
        min-height: auto;
        border-radius: 8px;
    }

    .gallery-section .section-title {
        margin-bottom: 20px;
    }

    .gallery-main-frame {
        max-width: 100%;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        aspect-ratio: auto;
        height: auto;
        padding-bottom: 10px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .gallery-main-frame::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-main-frame::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .gallery-main-frame::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }

    .gallery-main-image {
        position: relative;
        flex: 0 0 calc(100% - 30px);
        opacity: 1;
        scroll-snap-align: start;
    }

    .gallery-main-image img {
        max-height: none;
        border-radius: 8px;
    }

    .gallery-thumbnails {
        display: none;
    }

    .gallery-caption {
        display: none !important;
    }

    /* Pricing table - fixed left column with scrollable plans */
    .pricing-table-container {
        position: relative;
        overflow: visible;
    }

    .pricing-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-table thead,
    .pricing-table tbody,
    .pricing-table tfoot {
        display: block;
    }

    .pricing-table tr {
        display: flex;
    }

    .pricing-table th,
    .pricing-table td {
        width: auto;
        flex: 0 0 140px;
        min-width: 140px;
    }

    .pricing-table .header-cell:first-child,
    .pricing-table .row-label,
    .pricing-table .footer-cell:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        flex: 0 0 100px;
        min-width: 100px;
        font-size: 14px;
    }

    .pricing-table .header-cell:first-child {
        border-top-left-radius: 16px;
    }

    .pricing-table .header-cell {
        font-size: 16px;
        padding: 15px 10px;
    }

    .pricing-table .highlight-header {
        font-size: 18px;
    }

    .pricing-table .row-label .label-main {
        font-size: 14px;
    }

    .pricing-table .row-label .label-sub {
        font-size: 11px;
    }

    .pricing-table .cell {
        font-size: 14px;
        padding: 15px 10px;
    }

    .pricing-table .cell .cell-main {
        font-size: 14px;
    }

    .pricing-table .cell .cell-sub {
        font-size: 11px;
    }

    .pricing-table tfoot {
        display: none;
    }

    .pricing-footer-mobile {
        display: block;
        background: #000000;
        padding: 20px 15px;
        border-radius: 0 0 16px 16px;
        margin-top: -1px;
    }

    .pricing-footer-mobile .footer-title {
        display: block;
        font-size: 18px;
        font-weight: 400;
        color: #ffffff;
        margin-bottom: 8px;
    }

    .pricing-footer-mobile .footer-text {
        display: block;
        font-size: 14px;
        color: #e6e6e6;
        line-height: 1.6;
    }

    .pricing-table::-webkit-scrollbar {
        height: 6px;
    }

    .pricing-table::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .pricing-table::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }

    /* Pre-Registration responsive */
    .pre-registration-section {
        padding: 80px 20px;
    }

    .registration-content {
        background: url('./assets/vintage-paper-vertical.png') center/100% 100% no-repeat;
        padding: 100px 30px 20px;
    }

    .decorative-mask {
        left: 15px;
        top: 15px;
        width: 100px;
        height: 100px;
    }

    .registration-title {
        font-size: 28px;
        white-space: normal;
    }

    .title-underline {
        width: 100%;
        max-width: 350px;
    }

    .benefits-list {
        max-width: 100%;
        gap: 20px;
    }

    .benefit-item {
        gap: 15px;
    }

    .benefit-text {
        font-size: 22px;
        white-space: normal;
    }

    .registration-cta {
        flex-direction: column;
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }

    .wax-seal {
        width: 90px;
        height: 90px;
    }

    .cta-main-text {
        font-size: 32px;
        white-space: normal;
    }

    .cta-sub-text {
        font-size: 18px;
        white-space: normal;
    }

    /* Registration form responsive - 768px */
    .email-input {
        font-size: 18px;
        padding: 16px 20px;
    }

    .form-hint {
        font-size: 13px;
    }

    .registration-success {
        padding: 30px 20px;
    }

    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-message {
        font-size: 14px;
    }

    .sns-links {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 60px 10px;
        gap: 60px;
    }

    .section-title {
        font-size: 28px;
    }

    .story-section .section-title,
    .gallery-section .section-title {
        font-size: 24px;
    }

    /* AI×マダミス small mobile */
    .ai-madamis-section {
        min-height: 350px;
        padding: 40px 10px;
        overflow: hidden;
    }

    .ai-madamis-content {
        gap: 25px;
        padding: 20px 10px;
    }

    .ai-madamis-title {
        gap: 8px;
    }

    .title-murder-mystery {
        font-size: 24px;
    }

    .title-ai {
        font-size: 24px;
    }

    .title-cross-icon {
        width: 18px;
        height: 18px;
    }

    .feature-box {
        padding: 10px 15px;
    }

    .feature-box-title {
        font-size: 16px;
    }

    .feature-box-subtitle {
        font-size: 12px;
    }

    .feature-tag {
        font-size: 10px;
    }

    /* Story small mobile */
    .story-detail-title {
        font-size: 16px;
    }

    .story-objective h4,
    .synopsis-header h4 {
        font-size: 14px;
    }

    .story-objective p {
        font-size: 11px;
    }

    .tag-label {
        font-size: 11px;
    }

    .tag {
        font-size: 9px;
    }

    .meta-item span {
        font-size: 11px;
    }

    .story-creator-info p {
        font-size: 11px;
    }

    .story-title-item p {
        font-size: 14px;
    }

    .character-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .character-image {
        width: 50px;
        height: 50px;
    }

    .character-name {
        font-size: 11px;
    }

    .character-description {
        font-size: 10px;
    }

    /* Gallery small mobile */
    .gallery-section {
        padding: 20px 10px;
    }

    .gallery-section .section-title {
        margin-bottom: 15px;
    }

    .gallery-main-frame {
        gap: 8px;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery-main-image {
        flex: 0 0 calc(100% - 20px);
    }

    /* Pre-Registration small mobile */
    .pre-registration-section {
        padding: 60px 15px;
    }


    .registration-content {
        padding: 90px 20px 20px;
        gap: 15px;
        min-height: auto;
    }

    .decorative-mask {
        left: 10px;
        top: 10px;
        width: 80px;
        height: 80px;
    }

    .registration-title {
        font-size: 22px;
    }

    .title-underline {
        max-width: 280px;
    }

    .benefits-list {
        gap: 15px;
    }

    .benefit-item {
        gap: 10px;
    }

    .benefit-text {
        font-size: 18px;
    }

    .registration-cta {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }

    .wax-seal {
        width: 70px;
        height: 70px;
    }

    .cta-main-text {
        font-size: 24px;
    }

    .cta-sub-text {
        font-size: 14px;
    }

    /* Registration form responsive - 480px */
    .email-input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .form-hint {
        font-size: 12px;
    }

    .registration-success {
        padding: 25px 15px;
    }

    .success-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .success-title {
        font-size: 20px;
    }

    .success-message {
        font-size: 13px;
    }

    .plan-name {
        font-size: 24px;
    }

    .plan-price {
        font-size: 28px;
    }

    .sns-icon {
        width: 50px;
        height: 50px;
    }

    /* Pricing table small mobile */
    .pricing-table th,
    .pricing-table td {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .pricing-table .header-cell:first-child,
    .pricing-table .row-label,
    .pricing-table .footer-cell:first-child {
        flex: 0 0 80px;
        min-width: 80px;
        font-size: 12px;
    }

    .pricing-table .header-cell:first-child {
        border-top-left-radius: 16px;
    }

    .pricing-table .header-cell {
        font-size: 14px;
        padding: 12px 8px;
    }

    .pricing-table .highlight-header {
        font-size: 16px;
    }

    .pricing-table .row-label .label-main {
        font-size: 12px;
    }

    .pricing-table .row-label .label-sub {
        font-size: 10px;
    }

    .pricing-table .cell {
        font-size: 12px;
        padding: 12px 8px;
    }

    .pricing-table .cell .cell-main {
        font-size: 12px;
    }

    .pricing-table .cell .cell-sub {
        font-size: 10px;
    }

    .pricing-footer-mobile {
        padding: 15px 10px;
    }

    .pricing-footer-mobile .footer-title {
        font-size: 16px;
    }

    .pricing-footer-mobile .footer-text {
        font-size: 12px;
    }
}