@charset "UTF-8";

/* ====================================
   1. カラーパレット & アニメーション定義
   ==================================== */
:root {
    --main-violet: #9D50E6;
    /* メイン：紫 */
    --deep-night: #281A45;
    /* 背景：濃紺 */
    --accent-cyan: #00E0D1;
    /* アクセント：水色 */
    --misty-pink: #E8A5EB;
    /* サブ：ピンク */
    --white: #ffffff;
}

/* アニメーションキーフレーム */
@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

@keyframes sparkle {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes rainbowBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes loadingGlitch {
    0% {
        text-shadow: 2px 2px var(--main-violet);
    }

    50% {
        text-shadow: -2px -2px var(--accent-cyan);
    }

    100% {
        text-shadow: 2px 2px var(--main-violet);
    }
}

@keyframes barFill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes jelly {
    0% {
        transform: scale(1, 1);
    }

    30% {
        transform: scale(1.15, 0.85);
    }

    40% {
        transform: scale(0.85, 1.15);
    }

    50% {
        transform: scale(1.05, 0.95);
    }

    65% {
        transform: scale(0.98, 1.02);
    }

    75% {
        transform: scale(1.02, 0.98);
    }

    100% {
        transform: scale(1, 1);
    }
}


/* ====================================
   2. ベース設定
   ==================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'M PLUS Rounded 1c', 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--deep-night);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: none;
    /* カスタムカーソル使用のためデフォルトを消す */
}

a,
button {
    cursor: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

/* スマホ/PC 表示切り替え用 */
.sp-only,
.sp-menu,
.hamburger-btn {
    display: none !important;
}

.pc-only {
    display: block !important;
}

/* 背景パーティクル用キャンバス */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, var(--deep-night) 0%, #0d001a 100%);
}


/* ====================================
   3. カスタムカーソル (ソナー/波紋型)
   ==================================== */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* 波紋アニメーション */
#cursor-follower::before,
#cursor-follower::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sonarWave 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

#cursor-follower::after {
    border-color: var(--main-violet);
    animation-delay: 0.6s;
}

/* ホバー時の変化 */
body.is-hovering #cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(232, 165, 235, 0.4);
    border-color: var(--misty-pink);
    box-shadow: 0 0 30px var(--misty-pink);
    transform: translate(-50%, -50%) scale(1.5);
}

body.is-hovering #cursor-follower::before,
body.is-hovering #cursor-follower::after {
    border-width: 2px;
    animation-duration: 1s;
}

@keyframes sonarWave {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
        border-width: 0;
    }
}


/* ====================================
   4. ローディング画面
   ==================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background-color: #0d001a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.8s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
}

.loading-circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border: 2px dashed rgba(157, 80, 230, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 20s linear infinite;
}

.loading-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border: 2px dashed rgba(0, 224, 209, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spinReverse 15s linear infinite;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-main {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.2em;
    animation: loadingGlitch 0.5s infinite alternate;
}

.logo-sub {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--accent-cyan);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.loading-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--main-violet), var(--accent-cyan), var(--white));
    box-shadow: 0 0 20px var(--accent-cyan);
    animation: barFill 1.5s ease-out forwards;
}

.loading-percent {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--misty-pink);
    font-family: 'Montserrat', sans-serif;
    animation: blink 1s infinite;
}


/* ====================================
   5. ヘッダー
   ==================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.site-header.is-scrolled {
    background-color: rgba(40, 26, 69, 0.7);
    padding: 8px 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(157, 80, 230, 0.3);
}

.site-header.is-scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--main-violet), var(--accent-cyan), transparent);
    box-shadow: 0 0 10px var(--accent-cyan);
}

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

.logo-text {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    text-shadow: 0 0 15px rgba(157, 80, 230, 0.6);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.8;
}

.header-nav ul {
    display: flex;
    gap: 30px;
}

.header-nav a {
    display: flex;
    align-items: baseline;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 0;
}

.header-nav .en {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.header-nav .jp {
    font-size: 0.65rem;
    font-weight: 400;
    margin-left: 6px;
    opacity: 0.7;
    color: var(--accent-cyan);
}

.header-nav a:hover {
    color: var(--white);
    text-shadow: 0 0 15px var(--accent-cyan);
}

.header-nav a:hover .jp {
    color: var(--misty-pink);
    text-shadow: 0 0 10px var(--misty-pink);
    opacity: 1;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--main-violet), var(--accent-cyan));
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: 0.3s;
}

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

.header-social {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: 0.4s;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-icon:hover {
    border-color: transparent;
    box-shadow: 0 0 20px var(--main-violet);
    transform: rotate(360deg);
}


/* ====================================
   6. ヒーロー & 各セクション
   ==================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
    background-image: url('asset/backimg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    transform-style: preserve-3d;
}

.glitch-effect {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    position: relative;
    color: var(--white);
    text-shadow: 4px 4px 0px var(--main-violet);
    animation: float 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

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

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.js-anim {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js-anim.is-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(90deg, var(--misty-pink), var(--white), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--main-violet));
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before,
.section-title::after {
    content: '✦';
    position: absolute;
    top: 0;
    font-size: 2rem;
    color: var(--accent-cyan);
    animation: sparkle 2s infinite ease-in-out;
}

.section-title::before {
    left: 30%;
    animation-delay: 0s;
}

.section-title::after {
    right: 30%;
    animation-delay: 1s;
    color: var(--misty-pink);
}

/* ガラスモーフィズム共通スタイル */
.section-news,
.section-movie,
.profile-box,
.link-banner,
.fortune-console {
    background: rgba(40, 26, 69, 0.5) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
    color: var(--white);
    border-radius: 30px;
}

/* NEWS */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 25px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 15px;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(157, 80, 230, 0.3);
}

.news-item .date {
    color: var(--accent-cyan);
    margin-right: 15px;
    font-weight: bold;
}

.news-item .tag {
    background: linear-gradient(45deg, var(--main-violet), var(--misty-pink));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* PROFILE */
.profile-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 80px;
}

.profile-img-area img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 6px solid var(--white);
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 50px var(--main-violet);
}

.profile-text-area h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--misty-pink);
    text-shadow: 0 0 10px var(--main-violet);
    border-bottom: 3px dashed var(--accent-cyan);
    display: inline-block;
}

.btn-common {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(45deg, var(--main-violet), var(--deep-night));
    color: var(--white);
    border-radius: 50px;
    font-weight: 900;
    box-shadow: 0 5px 20px rgba(157, 80, 230, 0.5);
    margin-top: 30px;
    transition: 0.3s;
}

.btn-common:hover {
    animation: jelly 0.6s;
    background: var(--white);
    color: var(--main-violet);
    box-shadow: 0 0 30px var(--misty-pink);
}

/* MOVIE */
.movie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(45deg, var(--main-violet), var(--accent-cyan), var(--misty-pink));
    background-size: 200% 200%;
    animation: rainbowBorder 3s ease infinite;
}

.video-wrap iframe {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 17px;
}

/* LINKS */
.link-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.link-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    transition: 0.4s;
    animation: float 6s ease-in-out infinite reverse;
}

.link-banner:hover {
    transform: translateY(-8px) scale(1.05) !important;
    background: var(--white) !important;
    box-shadow: 0 0 30px var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
}

.link-banner:hover p,
.link-banner:hover i {
    color: var(--deep-night);
}

.link-banner p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    color: var(--white);
    letter-spacing: 0.05em;
}

.link-banner i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 5px rgba(0, 224, 209, 0.5));
}


/* ====================================
   7. 機能：おみくじ (SYNC TEST)
   ==================================== */
.section-fortune {
    padding: 80px 0;
    text-align: center;
}

.fortune-console {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 224, 209, 0.2);
}

.monitor-screen {
    background: #000;
    border: 1px solid var(--main-violet);
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 224, 209, 0.5);
    opacity: 0.5;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

.fortune-text {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
    margin-bottom: 10px;
}

.fortune-detail {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 1rem;
}

.btn-fortune {
    background: transparent;
    border: 2px solid var(--misty-pink);
    color: var(--misty-pink);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-fortune:hover {
    background: var(--misty-pink);
    color: var(--deep-night);
    box-shadow: 0 0 20px var(--misty-pink);
}

/* おみくじ結果色 */
.result-ssr {
    color: #ffeb3b;
    text-shadow: 0 0 20px #ffeb3b, 0 0 40px orange;
}

.result-sr {
    color: #E8A5EB;
    text-shadow: 0 0 15px #E8A5EB;
}

.result-r {
    color: #00E0D1;
}

.result-bad {
    color: #ff3333;
    text-shadow: 0 0 10px #ff0000;
}


/* ====================================
   8. 機能：推し連打 (Cheer)
   ==================================== */
#cheer-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

#cheer-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    background: radial-gradient(circle at 30% 30%, var(--main-violet), var(--deep-night));
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 0 20px var(--main-violet), inset 0 0 10px var(--accent-cyan);
    transition: transform 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#cheer-btn:active {
    transform: scale(0.95);
}

#cheer-btn:hover {
    box-shadow: 0 0 30px var(--accent-cyan);
}

#cheer-btn .btn-icon {
    font-size: 2rem;
    text-shadow: 0 0 5px var(--misty-pink);
}

#cheer-btn .btn-text {
    font-size: 0.8rem;
    font-weight: bold;
}

.cheer-item {
    position: fixed;
    bottom: 90px;
    right: 60px;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 9999;
    animation: floatUpFade 2s ease-out forwards;
    text-shadow: 0 0 5px var(--deep-night);
    opacity: 0;
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.8) rotate(var(--rotate-dir));
    }
}


/* ====================================
   9. 機能：隠し要素 (メッセージ/ハッキング)
   ==================================== */
/* 隠しメッセージ */
.secret-msg-container {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    margin-bottom: 20px;
}

.secret-msg {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    background: rgba(40, 26, 69, 0.8);
    border: 1px solid var(--accent-cyan);
    padding: 10px 30px;
    cursor: help;
    letter-spacing: 3px;
    transition: 0.3s;
}

.secret-msg:hover {
    background: var(--accent-cyan);
    color: var(--deep-night);
    box-shadow: 0 0 20px var(--accent-cyan);
    transform: scale(1.05);
}

/* ハッキングモード */
.hack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.hack-overlay.active {
    opacity: 1;
    pointer-events: auto;
    animation: bgGlitch 0.2s infinite;
}

.hack-content {
    text-align: center;
    border: 2px solid var(--accent-cyan);
    padding: 40px;
    background: rgba(0, 20, 40, 0.9);
    box-shadow: 0 0 50px var(--accent-cyan);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.hack-overlay.active .hack-content {
    transform: scale(1);
}

.hack-title {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: #ff0055;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #00ffff;
    animation: textShake 0.1s infinite;
}

@keyframes bgGlitch {
    0% {
        background: rgba(0, 0, 0, 0.9);
    }

    50% {
        background: rgba(20, 0, 0, 0.95);
    }
}

@keyframes textShake {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(2px, -2px);
    }

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

/* フッター */
.site-footer {
    padding: 60px 0;
    text-align: center;
    background: #0d001a;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid var(--deep-night);
}

/* ====================================
   【緊急用】ローディング強制解除設定
   JavaScriptが動かなくても、5秒後に必ず画面を消します
   ==================================== */
@keyframes forceHideLoading {
    0% { opacity: 1; visibility: visible; }
    80% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

#loading {
    /* 5秒かけてアニメーションし、最後は消えた状態で停止する */
    animation: forceHideLoading 5s forwards !important;
}