@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300;600;800&family=Zen+Kaku+Gothic+New:wght@400;700&display=swap');

:root {
    --color-surface-base: #ffffff;
    --color-text-primary: #111111;
    --color-text-tertiary: #c90000;
    --color-text-inverse: #555555;
    --font-family-primary: 'Funnel Display', sans-serif;
    --font-family-stack: 'Funnel Display', 'Zen Kaku Gothic New', sans-serif;
    --space-header: 80px;
    --space-section: clamp(50px, 6vw, 100px);
    
    /* テーマに応じたグリッチ設定 */
    --color-blackout-bg: #ffffff;
    --color-blackout-shadow: rgba(201, 0, 0, 0.15);
    --color-scanline: rgba(0, 0, 0, 0.06);
}


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

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    background-color: var(--color-surface-base);
    color: var(--color-text-primary);
    font-family: var(--font-family-stack);
    line-height: 1.6;
    letter-spacing: 0.02em;
    line-break: loose;
    word-break: normal;
    overflow-wrap: break-word;
}

img,
video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}


/* Overlays */
.noise-overlay {
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--color-text-tertiary);
    width: 0;
    box-shadow: 0 0 10px var(--color-text-tertiary);
}

/* --- Header --- */
.header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: #ffffff !important;
    border-bottom: 2px solid var(--color-text-tertiary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-tertiary);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    height: 32px;
    width: 140px;
    position: relative;
}

.logo img {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    height: 220px;
    width: auto;
    max-width: none;
    pointer-events: none;
}

.nav-unit {
    display: flex;
    gap: 40px;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    font-size: 15px;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    font-weight: 800;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
    text-shadow: none;
    text-decoration: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-text-tertiary);
    transition: 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    min-width: 180px;
    border: 1px solid var(--color-text-tertiary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1100;
}

.dropdown-content a {
    color: var(--color-text-inverse);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    color: var(--color-text-primary);
    background: rgba(201, 0, 0, 0.08);
    padding-left: 25px;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInScale 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text-primary);
    transition: 0.3s;
}

/* Transition for Hamburger active state */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero Section & HUD --- */
.hero-v2 {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text-tertiary);
    opacity: 0.2; /* 境界線の赤色を上品に薄く調整 */
    z-index: 10; /* 最前面に描画して重ね順による隠れを防ぐ */
}

.hero-visual-block {
    position: absolute;
    inset: 0;
    background: #050505;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slider-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 1.5s;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .slider-item {
        background-position: center 15%;
    }
}

.slider-item.active {
    opacity: 1;
}

/* Fit Slide (Twin-layer Blur backdrop) */
.slider-item.fit-slide {
    background-image: none !important;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slider-item.fit-slide .slider-item-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.65);
    transform: scale(1.1); /* ぼかし処理による端の白抜けを防止 */
    z-index: 1;
}

.slider-item.fit-slide .slider-item-main {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}


.slider-item::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Left is moderately dark for text contrast, right is fully transparent to make images 100% bright */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.0) 100%);
}
.hud-overlay-v2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(201, 0, 0, 0.1);
    box-shadow: 0 0 15px rgba(201, 0, 0, 0.2);
    animation: scan 8s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    from {
        top: -5%;
    }

    to {
        top: 105%;
    }
}

.corner-accents {
    position: absolute;
    inset: clamp(10px, 3vw, 40px);
}

.corner-accents span {
    position: absolute;
    width: clamp(10px, 2vw, 20px);
    height: clamp(10px, 2vw, 20px);
    border-color: rgba(201, 0, 0, 0.4);
    border-style: solid;
    border-width: 0;
}

.top-left {
    top: 0;
    left: 0;
    border-top-width: 1px;
    border-left-width: 1px;
}

.top-right {
    top: 0;
    right: 0;
    border-top-width: 1px;
    border-right-width: 1px;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

.hero-text-block {
    position: relative;
    z-index: 10;
    padding: 0 5%;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    pointer-events: none;
}

.hero-text-block>* {
    pointer-events: auto;
}

.main-title-v2 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 24px auto;
    color: #ffffff;
    text-shadow:
        0 0 15px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 1),
        0 4px 50px rgba(0, 0, 0, 0.9);
    max-width: 1000px;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.main-title-v2 .text-tertiary {
    text-shadow:
        0 0 10px rgba(0, 0, 0, 1),
        0 0 20px rgba(201, 0, 0, 0.8),
        0 0 40px rgba(201, 0, 0, 0.6);
    color: #ff1a1a;
    /* Slightly brighter red for better contrast on dark */
}

.main-title {
    font-size: clamp(1.8rem, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 32px;
    font-weight: 800;
    padding-left: 24px;
    border-left: 5px solid var(--color-text-tertiary);
    letter-spacing: -0.01em;
    word-break: keep-all;
}


.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.btn-primary {
    position: relative;
    background: var(--color-text-tertiary);
    color: #fff;
    padding: 18px 40px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: 0.3s;
    overflow: hidden;
}

.btn-primary:hover {
    color: #000;
    transform: scale(1.05);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

/* Dashboard Tactical HUD */
.tactical-dashboard {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    z-index: 100;
    border-top: 1px solid #222;
}

.dashboard-title {
    font-size: 9px;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
    font-family: var(--font-family-primary);
}

.density-grid-v2 {
    display: grid;
    grid-template-columns: repeat(46, 1fr);
    gap: 2px;
}

.tactical-link {
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.tactical-link:hover {
    background: var(--color-text-tertiary);
    box-shadow: 0 0 5px var(--color-text-tertiary);
}

/* --- Content & Cards --- */
section {
    padding: var(--space-section) 0;
    position: relative;
}
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text-tertiary);
    opacity: 0.2; /* 境界線の赤色を上品に薄く調整 */
    z-index: 10; /* 最前面に描画して重ね順による隠れを防ぐ */
}

#vision {
    background: none;
}

.section-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-tertiary);
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.sub-text {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--color-text-inverse);
    max-width: 800px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--color-text-tertiary);
    color: var(--color-text-tertiary);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 15px;
    background: rgba(201, 0, 0, 0.05);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: 40px;
}

.grid-2x2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-box {
    background: rgba(255, 255, 255, 0.03);
    padding: clamp(20px, 3.5vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    backdrop-filter: blur(5px);
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-box:hover {
    background-color: rgba(201, 0, 0, 0.05);
    border-color: var(--color-text-tertiary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(201, 0, 0, 0.12);
    z-index: 10;
}

#works .content-box h3 {
    font-size: clamp(24px, 2.5vw, 32px) !important;
    line-height: 1.3;
}

#works .content-box p {
    font-size: clamp(14px, 1.3vw, 18px) !important;
    line-height: 1.8;
}

.accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-text-tertiary);
}

.card-footer {
    margin-top: 30px;
    font-size: 10px;
    color: var(--color-text-inverse);
    letter-spacing: 0.1em;
    font-weight: 800;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* HUD Corner Accents */
.content-box::before,
.content-box::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(201, 0, 0, 0.3);
    transition: 0.4s ease;
}

.content-box::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.content-box::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.content-box:hover::before {
    top: 10px;
    left: 10px;
    border-width: 2px;
    border-color: var(--color-text-tertiary);
    opacity: 1;
}

.content-box:hover::after {
    bottom: 10px;
    right: 10px;
    border-width: 2px;
    border-color: var(--color-text-tertiary);
    opacity: 1;
}

.content-box .scanner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-text-tertiary), transparent);
    opacity: 0;
}

.content-box:hover .scanner {
    animation: scanner-sweep 2.5s infinite;
    opacity: 0.8;
}


@keyframes scanner-sweep {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

.roster-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.roster-card-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
}

.roster-grid .content-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    width: 260px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.roster-grid .content-box h3 {
    margin: 0;
    line-height: 1.2;
    font-size: 18px;
}

.profile-img {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 12px !important;
    width: 130px !important;
    height: 130px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.roster-grid .content-box:hover .profile-img {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(201, 0, 0, 0.5);
    border-color: var(--color-text-tertiary);
}

.member-sns-v2 {
    display: flex;
    gap: 20px;
    /* Increased gap for better spacing without a frame */
    justify-content: center;
    margin-top: 6px;
    transition: 0.3s;
    position: relative;
    z-index: 5;
}

.member-sns-v2 a {
    color: var(--color-text-primary);
    opacity: 0.8;
    /* Increased from 0.8 */
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 10px;
    /* Increased padding */
    border-radius: 4px;
    text-decoration: none;
}

.member-sns-v2 a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Brand Colors on Hover */
.member-sns-v2 a[title="X"]:hover {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.member-sns-v2 a[title="YouTube"]:hover {
    background: #FF0000;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.member-sns-v2 a[title="Twitch"]:hover {
    background: #9146FF;
    color: #fff;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.4);
}

.member-sns-v2 a[title="TikTok"]:hover {
    background: #000000;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.6), 0 0 20px rgba(255, 0, 80, 0.6);
}

.member-sns-v2 svg,
.member-sns-v2 i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    /* For FontAwesome */
    color: inherit;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
}

.member-sns-v2 i.fa-brands {
    fill: none;
    /* Font brands use color */
    stroke: none;
}




/* Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 1, 0.2, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .header-v2 {
        padding: 15px 20px;
        justify-content: flex-end;
    }

    .header-main {
        position: absolute;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        pointer-events: none;
    }

    .logo {
        pointer-events: auto;
        justify-content: center;
    }

    .logo img {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-unit {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff !important;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 100px 24px 50px;
        gap: 24px;
        z-index: 1500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-unit.active {
        display: flex;
    }

    .nav-link {
        font-size: 24px;
        color: var(--color-text-primary);
    }

    /* Mobile Navigation Dropdown Accordion */
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 15px;
        min-width: unset;
        display: none;
    }

    .nav-dropdown.active .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        animation: slideDownMobile 0.2s ease-out;
    }

    .nav-dropdown .dropdown-content a {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        color: var(--color-text-inverse);
        background: rgba(0, 0, 0, 0.04);
        border-radius: 4px;
        margin-bottom: 2px;
    }

    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-v2 {
        height: auto;
        min-height: 100vh;
        padding: 150px 0 100px;
    }

    .slider-item::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.05) 100%);
    }

    .hero-text-block {
        padding: 0 24px;
        margin-top: -10vh;
        /* Lift text slightly on mobile to reveal background */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-title-v2 {
        font-size: clamp(2rem, 10vw, 3.8rem);
        line-height: 1.1;
    }

    .logo img {
        height: 120px;
        max-width: 180px;
        object-fit: contain;
    }

    .main-title {
        font-size: clamp(1.35rem, 6.5vw, 2.2rem); /* モバイル時にすべてのセクション見出しが画面に収まるようサイズを統一・縮小 */
        padding-left: 15px;
        margin-bottom: 30px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .roster-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .roster-grid .content-box {
        width: 100% !important;
        max-width: 100% !important; /* 480px制限を解除してカラム幅にフィットさせる */
        margin: 0 !important;
        padding: 12px 8px !important;
    }

    .roster-grid .profile-img {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 8px !important;
    }

    .roster-grid .content-box h3 {
        font-size: 14px !important;
    }

    .roster-grid .member-sns-v2 {
        gap: 8px !important;
        margin-top: 4px !important;
    }

    .roster-grid .member-sns-v2 a {
        padding: 4px !important;
        font-size: 14px !important;
    }

    .grid-2x2 {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 20px 16px;
    }

    /* Reduce hover offset and corner inset on mobile/tablet */
    .content-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(201, 0, 0, 0.12);
    }

    .content-box:hover::before {
        top: 6px;
        left: 6px;
    }

    .content-box:hover::after {
        bottom: 6px;
        right: 6px;
    }

    /* Disable hardcoded line breaks in card headings on mobile/tablet to let text wrap naturally */
    .content-box h3 br {
        display: none;
    }

}

/* --- Generic Carousel Component --- */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid var(--local-border);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(5px);
    padding: 40px 20px;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 40px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-text-tertiary);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    font-weight: 800;
}

.carousel-btn:hover {
    background: var(--color-text-tertiary);
    color: #000;
    box-shadow: 0 0 10px var(--color-text-tertiary);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(201, 0, 0, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot:hover {
    background: rgba(201, 0, 0, 0.6);
}

.carousel-dot.active {
    background: var(--color-text-tertiary);
    box-shadow: 0 0 8px var(--color-text-tertiary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .carousel-slide {
        padding: 0 10px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .sub-text {
        margin-top: 0 !important;
        margin-bottom: 35px !important;
        font-size: 13px;
    }

    /* ニュースカードのスマホ時：上が画像、下がテキスト（題名上、日付下＋赤プラスアイコン） */
    .news-card {
        aspect-ratio: 1.25 / 1 !important;
        max-width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        position: relative !important;
        background: rgba(10, 10, 10, 0.95) !important;
    }

    /* 画像エリアは上側（高さ58%） */
    .news-card-img-wrap {
        position: relative !important;
        width: 100% !important;
        height: 58% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-right: none !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .news-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 背景オーバーレイは不要なので解除 */
    .news-card::after {
        display: none !important;
    }

    /* テキストエリアは下側（高さ42%） */
    .news-card .card-content-wrap {
        position: relative !important;
        z-index: 2 !important;
        padding: 12px 14px !important;
        height: 42% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: none !important;
    }

    /* 題名を上に配置 (order: 1) */
    .news-card h3 {
        order: 1 !important;
        font-size: 14px !important;
        color: #ffffff !important;
        min-height: auto !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
        padding-right: 24px !important; /* 右側のプラスボタン用の余白 */
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important; /* 1行表示 */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* 右側の赤いプラスボタン (+) */
    .news-card h3::after {
        content: '+' !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: var(--color-text-tertiary) !important;
        font-size: 20px !important;
        font-weight: 300 !important;
    }

    /* 日付とカテゴリを下に配置 (order: 2) */
    .news-meta-wrap {
        order: 2 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 16px !important;
        align-items: center !important;
    }

    .news-card p {
        display: none !important;
    }

    /* バッジスタイルを解除してシンプルなグレー文字に */
    .news-card .news-date {
        order: 1 !important;
        font-size: 11px !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        color: #888888 !important;
        font-weight: normal !important;
        letter-spacing: 0.02em !important;
    }

    .news-card .tag {
        order: 2 !important;
        font-size: 11px !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        color: #888888 !important;
        font-weight: normal !important;
        letter-spacing: 0.02em !important;
    }

    /* bg-image-card モバイル表示時の文字可読性向上 */
    .content-box.bg-image-card .card-image-bg {
        opacity: 0.55 !important;
    }

    .content-box.bg-image-card .card-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.40) 50%,
            rgba(0, 0, 0, 0.15) 100%
        ) !important;
    }

    /* 各セクションの縦積みカードの「高さ」を少しコンパクト化 */
    #works .content-box.bg-image-card {
        min-height: 280px !important;
    }

    #results .content-box.bg-image-card {
        min-height: 250px !important;
    }

    /* カード・コンテナのスマホ余白最適化 */
    .content-box,
    .partner-card,
    .flow-card,
    .flow-step {
        padding: 20px 16px !important;
    }
}

/* --- Footer V2 --- */
.footer-v2 {
    background: #ffffff;
    padding: 50px 0 30px;
    position: relative;
    color: #555555;
}
.footer-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text-tertiary);
    opacity: 0.2; /* 境界線の赤色を上品に薄く調整 */
    z-index: 10; /* 最前面に描画して重ね順による隠れを防ぐ */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .footer-logo {
    font-family: var(--font-family-primary);
    font-size: 28px;
    font-weight: 900;
    color: #111111;
    text-decoration: none;
    letter-spacing: 5px;
    margin-bottom: 15px;
    display: inline-block;
    transition: color 0.3s;
}

.footer-brand .footer-logo:hover {
    color: var(--color-text-tertiary);
}

.footer-slogan {
    font-size: 12px;
    color: #888888;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* SNS アイコン */
.footer-sns {
    display: flex;
    gap: 15px;
}

.footer-sns a {
    color: #555555;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-sns a:hover {
    color: #ffffff;
    background: var(--color-text-tertiary);
    border-color: var(--color-text-tertiary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 12px;
    color: #111111;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
    font-weight: 800;
    position: relative;
    padding-bottom: 8px;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1.5px;
    background: var(--color-text-tertiary);
}

.link-group a {
    display: block;
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.link-group a:hover {
    color: var(--color-text-tertiary);
    padding-left: 5px; /* ホバーで少しスライドするモーション */
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .copyright {
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.05em;
}

.footer-bottom .sys-version {
    font-size: 11px;
    color: #aaaaaa;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .footer-v2 {
        padding: 40px 0 25px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-sns {
        justify-content: center;
    }

    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Genuine Gamer-Room Glitch Sync --- */
#page-transition-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
}

#page-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 画面を覆う暗転レイヤー (演出の最後で真っ白にする) */
.blackout-layer {
    position: absolute;
    inset: 0;
    background: var(--color-blackout-bg);
    opacity: 0;
    z-index: 10;
    box-shadow: inset 0 0 150px var(--color-blackout-shadow);
}

.active .blackout-layer {
    animation: fade-to-black 0.6s forwards;
}

@keyframes fade-to-black {
    0% {
        opacity: 0;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* 本物の走査線 (Gamer-Room仕様) */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            var(--color-scanline) 0px,
            var(--color-scanline) 1px,
            transparent 1px,
            transparent 3px);
    z-index: 20;
    pointer-events: none;
}

/* 画面を引き裂くバックドロップ・スライス (これが見た目の鍵) */
.glitch-slice-bar {
    position: absolute;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: invert(1) contrast(2) brightness(1.5);
    z-index: 5;
    pointer-events: none;
}

/* 画面全体の破壊（RGBズレ） */
.true-glitch-active {
    animation: true-shake 0.1s infinite;
    filter: url(#glitch-filter);
}

@keyframes true-shake {
    0% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg);
    }

    20% {
        transform: translate(-10px, 5px) scale(1.02);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(10px, -5px) scale(0.98);
    }

    60% {
        transform: translate(-5px, -10px) skewX(5deg);
    }

    80% {
        transform: translate(5px, 10px) scale(1.05);
        filter: invert(0.2);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* --- Premium Card Image Overlays for Readability --- */

/* Dark card class for news and text boxes that need high contrast */
.content-box.dark-card {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-box.dark-card h3,
.content-box.dark-card .font-display {
    color: #ffffff !important;
}

.content-box.dark-card p {
    color: #cccccc !important;
}

.content-box.bg-image-card {
    background-color: #050505 !important; /* Underlay color to darken transparent parts */
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上寄せにして見出しの高さを左右で完全に揃える */
}

.content-box.bg-image-card .card-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.8 !important; /* 通常時をさらに明るく 0.8 に引き上げ */
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

/* Zoom and brighten effect on hover */
.content-box.bg-image-card:hover .card-image-bg {
    transform: scale(1.08);
    opacity: 0.95 !important; /* ホバー時はほぼ完全に不透明（0.95）にしてクリアに見せる */
}

/* More refined gradient overlay: Minimal shading to protect text while revealing the rest of the image */
.content-box.bg-image-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,    /* 下部の遮光を0.8から0.65にさらに薄く */
        rgba(0, 0, 0, 0.20) 40%,
        rgba(0, 0, 0, 0.0) 100%    /* 上部は完全に透明 */
    );
    z-index: 1;
    transition: background 0.5s ease;
}

/* Lighten overlay even further on hover */
.content-box.bg-image-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.10) 50%,
        rgba(0, 0, 0, 0.0) 100%
    );
}

/* Content block positioning */
.content-box.bg-image-card .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%; /* コンテンツ領域をカード全体に引き伸ばす */
}

/* High contrast text styles with shadows */
.content-box.bg-image-card .font-display,
.content-box.bg-image-card h3 {
    color: #ffffff !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
}

.content-box.bg-image-card p {
    color: #e2e8f0 !important; /* Crisp readability off-white */
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.7);
}

.content-box.bg-image-card .tag {
    background: rgba(201, 0, 0, 0.25) !important;
    color: #ff4d4d !important;
    border-color: #ff3333 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.content-box.bg-image-card .card-footer {
    color: #a0aec0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: auto !important; /* 説明文の行数に関わらずフッターを最下部に固定する */
    padding-top: 15px;
}



/* Square Card Layout - Upgraded Design */
.news-card {
    aspect-ratio: 1 / 1;
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    width: 100%;
    max-width: 320px; /* 少しコンパクトにしてスッキリ見せる */
    margin: 0 auto;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(10, 10, 10, 0.9) !important;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-text-tertiary) !important;
    box-shadow: 0 10px 25px rgba(201, 0, 0, 0.15) !important;
}

.news-card-img-wrap {
    width: 100%;
    height: 48%; /* 画像エリアを割合で固定 */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(201, 0, 0, 0.2); /* 境界に薄い赤ライン */
}

.news-card img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.news-card:hover img {
    transform: scale(1.08); /* ホバー時に画像を拡大 */
}

.news-card .card-content-wrap {
    padding: 16px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, rgba(255,255,255,0.01), rgba(0,0,0,0.2));
}

.news-card .scanner {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .scanner {
    opacity: 0.8;
}

.news-meta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.news-card .tag {
    align-self: flex-start;
    font-family: var(--font-family-primary);
    font-size: 10px !important;
    letter-spacing: 1px;
    padding: 2px 8px !important;
    background: rgba(201, 0, 0, 0.15) !important;
    border: 1px solid rgba(201, 0, 0, 0.3) !important;
    color: #ff5555 !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
}

.news-card .news-date {
    font-family: var(--font-family-primary);
    font-size: 10px !important;
    letter-spacing: 1px;
    padding: 2px 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #a0aec0 !important;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
}

.news-card h3 {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.4;
    min-height: 2.8em;
    margin-top: 4px;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: #ff4444 !important; /* ホバー時にタイトルが赤く光る */
}

.news-card p {
    font-size: 12px !important;
    margin-top: 8px;
    line-height: 1.6;
    color: #a0aec0 !important; /* 明度高めのオフホワイトで視認性向上 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- Values Grid 4 Column Setup for PC --- */
@media (min-width: 1025px) {
    .values .card-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .card-grid,
    .grid-2x2,
    .values .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- Text Legibility Enhancements for Overlapping Elements --- */
#vision .main-title {
    text-shadow: 
        0 0 8px #ffffff,
        0 0 15px #ffffff,
        0 0 25px #ffffff !important;
}

.main-title-v2 {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.9),  
         1px -1px 0 rgba(0, 0, 0, 0.9),
        -1px  1px 0 rgba(0, 0, 0, 0.9),
         1px  1px 0 rgba(0, 0, 0, 0.9),
         0 4px 20px rgba(0, 0, 0, 0.95),
         0 0 40px rgba(0, 0, 0, 0.6) !important;
}

/* SEO・スクリーンリーダー用 視覚的非表示スタイル */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* HEROエリアのテキストフェードイン・アウト制御（2枚目のスライド時のみ表示） */
.hero-text-block {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.8s ease-in-out !important;
}

.hero-text-block.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- 375px以下のスマホ縦画面用のレイアウト微調整 --- */
@media (max-width: 375px) {
    .roster-grid {
        grid-template-columns: 1fr !important;
    }
}