@charset "UTF-8";

/* =========================================
   Base Design / Variables
   ========================================= */
:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --accent-red: #D8000C;
    --accent-blue: #0028A8;
    --accent-yellow: #FFD700;
    --glass-bg: rgba(20, 20, 20, 0.8);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

/* 背景のアートワーク */
.background-art {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('images/bg-splash2.jpg');
    /* ファイル名を確認してください */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.5;
    mix-blend-mode: lighten;
    filter: contrast(120%) brightness(0.8);
}

/* ノイズテクスチャ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08;
    background-image: 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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
    font-family: "Zen Old Mincho", serif;
    font-weight: 900;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================================
   Animation: Scroll Reveal
   ========================================= */
.js-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Header (Top Page)
   ========================================= */
header.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.vertical-deco {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: "Zen Old Mincho", serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.4em;
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
    display: none;
    text-shadow: 0 0 10px rgba(216, 0, 12, 0.5);
}

@media (min-width: 768px) {
    .vertical-deco {
        display: block;
    }
}

.hero-title-en {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px var(--accent-red);
}

.hero-title-jp {
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.hero-title-jp span.red {
    color: var(--accent-red);
    text-shadow: 0 0 30px var(--accent-red);
}

.hero-title-jp span.blue {
    color: var(--accent-blue);
    text-shadow: 0 0 30px var(--accent-blue);
}

.hero-subtitle {
    margin-top: 40px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    padding: 12px 40px;
    border-left: 4px solid var(--accent-red);
    border-right: 4px solid var(--accent-blue);
    letter-spacing: 0.1em;
}

/* =========================================
   Header (Sub Page / Guide)
   ========================================= */
header.sub-header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-family: "Zen Old Mincho", serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.back-btn {
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid var(--text-main);
    padding: 8px 20px;
    border-radius: 50px;
    background: transparent;
    display: inline-block;
}

.back-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* =========================================
   Navigation
   ========================================= */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 3vw;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    position: relative;
    padding: 5px 0;
    color: #aaa;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: var(--accent-red);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--accent-red);
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

/* =========================================
   Sections General
   ========================================= */
section,
.guide-container {
    max-width: 1000px;
    margin: 150px auto;
    padding: 0 30px;
}

section h2,
.page-title {
    font-size: 3rem;
    margin-bottom: 70px;
    padding-bottom: 15px;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 40, 168, 0.5);
}

section h2::after,
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
}

/* =========================================
   Cards (Works)
   ========================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: var(--accent-yellow);
    margin-top: 0;
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(216, 0, 12, 0.2) inset;
}

.card::after {
    content: "EVENT";
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    font-family: sans-serif;
    font-style: italic;
}

/* =========================================
   Gallery (Top Page: Grid Layout)
   ========================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: 0.5s;
    border: 1px solid var(--border-color);
}

.gallery img:hover {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.03);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* =========================================
   Gallery (Guide Page: Custom Layout)
   ========================================= */
/* PC：縦に並べて順路を見せる */
.guide-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.guide-item {
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.step-label {
    display: block;
    font-family: "Zen Old Mincho", serif;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.guide-item img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    filter: grayscale(30%);
    transition: 0.3s;
}

.guide-item img:hover {
    filter: grayscale(0%);
    border-color: var(--accent-blue);
}

/* スマホ：横スクロール (Scroll Snap) */
@media screen and (max-width: 768px) {
    .guide-gallery {
        flex-direction: row;
        /* 強制的に横並び */
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        padding-bottom: 40px;
        /* スクロールバーのための余白 */
        align-items: flex-start;
        /* 画面端の余白調整 */
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .guide-item {
        width: 85vw;
        /* 画面幅の85% */
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .guide-item img {
        border-radius: 8px;
        filter: grayscale(0%);
        /* スマホは最初からカラー */
    }

    /* 横スクロールのヒント */
    .swipe-hint {
        display: block;
        text-align: center;
        color: #aaa;
        font-size: 0.9rem;
        margin-bottom: 20px;
        animation: blink 2s infinite;
    }
}

@media screen and (min-width: 769px) {
    .swipe-hint {
        display: none;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================
   FAQ
   ========================================= */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.question {
    font-weight: bold;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.question::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent-blue);
    transition: 0.3s;
    font-weight: 300;
}

.faq-item.active .question {
    color: var(--accent-red);
}

.faq-item.active .question::after {
    content: '-';
    transform: rotate(180deg);
    color: var(--accent-red);
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    color: #ccc;
    padding-left: 30px;
    border-left: 4px solid var(--accent-red);
    opacity: 0;
    font-size: 1.05rem;
}

.faq-item.active .answer {
    max-height: 500px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    padding-top: 10px;
    opacity: 1;
}

/* =========================================
   Contact / Recruit
   ========================================= */
#join div {
    background: rgba(0, 40, 168, 0.15) !important;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 40, 168, 0.2) inset;
}

.contact-container {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--border-color);
    padding: 60px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.contact-btn {
    display: inline-block;
    margin: 15px;
    padding: 20px 50px;
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    font-weight: bold;
    font-family: "Zen Old Mincho", serif;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    letter-spacing: 0.1em;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-red), var(--accent-blue));
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

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

.contact-btn:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #000;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    margin-top: 100px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue), var(--accent-red));
}

.footer-logo {
    font-family: "Zen Old Mincho", serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    display: inline-block;
    color: var(--text-main);
}

/* =========================================
   Responsive General
   ========================================= */
@media (max-width: 768px) {
    .hero-title-jp {
        font-size: 11vw;
    }

    nav ul {
        gap: 15px;
        font-size: 0.8rem;
    }

    section,
    .guide-container {
        margin: 100px auto;
        padding: 0 20px;
    }

    section h2,
    .page-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contact-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 90%;
        box-sizing: border-box;
    }

    .contact-container {
        padding: 30px;
    }
}