@charset "UTF-8";

/* ------------------------------------
   基本設定・リセット
------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    background-color: #000;
    color: #fff;
}

/* ------------------------------------
   SP/PC 表示切り替え汎用クラス
------------------------------------ */
.mbOn {
    display: block !important;
}

.mbOff {
    display: none !important;
}

/* 各クラス直下のPC用設定 */
@media (min-width: 1000px) {
    .mbOn {
        display: none !important;
    }

    .mbOff {
        display: block !important;
    }
}

/* ------------------------------------
   色反転（invert）& シェイク用クラス
------------------------------------ */
.invert-target {
    transition: filter 0.3s ease;
}

/* JSから付与される色反転 & 抑えめシェイククラス */
.invert-target.is-inverted {
    filter: invert(100%);
    animation: horrorShake 0.5s infinite linear;
}

/* ------------------------------------
   全体背景
------------------------------------ */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    z-index: 1;
}

.bg-container.bg-sp {
    background-image: url('img/bg_sp.jpg');
}

.bg-container.bg-pc {
    background-image: url('img/bg_pc.jpg');
}

/* ------------------------------------
   1. OP画面 & グリッチ演出
------------------------------------ */
#op-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    animation: opFadeIn 1s ease forwards;
    transition: opacity 1s ease, visibility 0.8s ease;
}

#op-overlay.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* グリッチコンテナ */
.glitch-container {
    position: relative;
    width: 70%;
    max-width: 200px;
    aspect-ratio: 300 / 720;
}

@media (min-width: 1000px) {
    .glitch-container {
        position: relative;
        width: 70%;
        max-width: 300px;
        aspect-ratio: 300 / 720;
    }
}

/* ★静止表示する緑パーツ (chatch_green.png) */
.glitch-base-green {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* ★グリッチ演出をかける黒パーツ (chatch_black.png) */
.glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    --img-src: url('img/chatch_black.png');
    background-image: var(--img-src);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 2;
}

.glitch .channel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    -webkit-mask-image: var(--img-src);
    mask-image: var(--img-src);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.glitch .channel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mix-blend-mode: multiply;
}

.glitch .channel.r::before {
    background-color: #ff0000;
}

.glitch .channel.g::before {
    background-color: #00ff00;
}

.glitch .channel.b::before {
    background-color: #0000ff;
}

.glitch .channel.r {
    animation: rgb-shift-r 1s ease infinite;
}

.glitch .channel.g {
    animation: rgb-shift-g 1s ease infinite;
}

.glitch .channel.b {
    animation: rgb-shift-b 1s ease infinite;
}

/* ------------------------------------
   2. 固定ヘッダー（背景画像 & logo.png配置）
------------------------------------ */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    width: 100%;
    height: 250px;
    z-index: 100;
    pointer-events: none;
    background-image: url('img/header_sp.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    aspect-ratio: 1000 / 120;
}

/* 各クラス直下のPC用設定 */
@media (min-width: 1000px) {
    .header-fixed {
        padding-top: 50px;
        padding-right: 8%;
        min-height: 500px;
        background-image: url('img/header_pc.png');
    }
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 各クラス直下のPC用設定 */
@media (min-width: 1000px) {
    .header-inner {
        justify-content: flex-end;
    }
}

.header-logo {
    max-width: 80%;
    width: 100%;
    height: auto;
    display: block;
}

/* 各クラス直下のPC用設定 */
@media (min-width: 1000px) {
    .header-logo {
        max-width: 35%;
    }
}

/* ------------------------------------
   OP中の初期非表示 & ふわっと表示（フェードイン）設定
------------------------------------ */
.header-logo,
.footer-text,
#section-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 表示完了クラス（JSで付与） */
.header-logo.is-visible,
.footer-text.is-visible,
#section-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------
   メインスクロールエリア
------------------------------------ */
.main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    padding-top: 100px;
}

/* 最上部（スクロール前）は親ごとヘッダーより上に持ち上げる */
.main-wrapper.is-top {
    z-index: 110;
}

.section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

@media (min-width: 1000px) {
.section {
    min-height: 80vh;
}
}

#section-top {
    justify-content: flex-end;
    padding-bottom: 40px;
}


#section-catch {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 50%);
}

#section-drama {
    background: rgba(0, 0, 0, 0.7);
}


#section-coming {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 80%);
}


#section-catch,
#section-drama,
#section-coming{
    min-height: 60vh;
}

@media (min-width: 1000px) {
#section-catch,
#section-drama,
#section-coming{
    min-height: 80vh;
}
}


#section-coming.section {
    min-height: 60vh;
}

/* ------------------------------------
   PC用ファーストビュー右側キャッチ画像
------------------------------------ */
.top-catch-pc {
    width: 20%;
    position: absolute;
    right: 10%;
    top: 20%;
    z-index: 15;
}

/* スクロールする前（最上部）の z-index 指定 */
.top-catch-pc.is-top {
    z-index: 120;
}

/* キャッチ画像内のグリッチ要素 */
.top-catch-pc .glitch {
    z-index: 2;
}

/* スクロールする前（最上部）のグリッチ z-index 指定 */
.top-catch-pc.is-top .glitch {
    z-index: 120;
}

/* SP用 発売日バナー */
.release-banner {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 0;
    transform: rotate(-3deg);
    border-top: 2px solid #ff0055;
    border-bottom: 2px solid #ff0055;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.release-banner p {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00ff66;
    letter-spacing: 2px;
    font-family: sans-serif;
}

.release-banner span {
    background-color: #ff0055;
    color: #fff;
    padding: 2px 6px;
    font-size: 1.1rem;
    margin-left: 6px;
}

.catch-img-1,
.catch-img-2 {
    max-width: 90%;
    height: auto;
    margin: 30px 0;
}

.drama-info {
    line-height: 2;
    margin-bottom: 20px;
}

.drama-info h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: bold;
}

@media (min-width: 1000px) {
    .drama-info h2 {
        font-size: 3rem;
    }
}

.drama-info p {
    font-size: 1.4rem;
    color: #e0e0e0;
    letter-spacing: 1px;
}

@media (min-width: 1000px) {
    .drama-info p {
        font-size: 2rem;
    }
}

.coming-soon-img {
    max-width: 80%;
    height: auto;
    margin:0 0 30% 0;
}

@media (min-width: 1000px) {
    .coming-soon-img {
        margin:0 0  10vw 0;
    }
}

.copyright {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 30px;
    font-family: sans-serif;
    margin-bottom: 70px;
}
/* ------------------------------------
   3. 固定フッターナビゲーション
------------------------------------ */
.footer-text {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    padding: 0;
    z-index: 121;
    gap: -1px;
    /* ★初期状態：画面下外に隠して透明にする */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

/* ★JSから付与されるスライドイン表示クラス */
.footer-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 1000px) {
    .footer-nav {
        position: fixed;
        bottom: 2%;
        left: 10%;
        width: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #000;
        padding: 10px 10px;
        z-index: 121;
        gap: 10px;
    }
}

.footer-release {
    color: #ff0055;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 10px 20px;
    font-family: sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* 各クラス直下のPC用設定 */
@media (min-width: 1000px) {
    .footer-release.mbOff {
        display: flex !important;
        align-items: center;
    }
}

.footer-nav a {
    flex: 1;
    text-align: center;
    padding: 15px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: sans-serif;
    border-top: 1px solid #ff0055;
    background-color: #000;
    transition: background-color 0.2s, color 0.2s;
}

/* 最初のボタン（左側）の右ライン（中央の仕切り線） */
.footer-nav a:first-of-type {
    border-right: 1px solid #ff0055;
}

/* 各クラス直下のPC用設定 */
@media (min-width: 1000px) {
    .footer-nav a {
        padding: 10px 15px;
        max-width: 250px;
        border: 1px solid #ff0055;
    }
}

.footer-nav a:hover {
    background-color: #ff0055;
    color: #fff;
}

/* ==========================================================================
   キーフレームアニメーション一括定義
   ========================================================================== */

/* 1. ホラー風 抑えめシェイク */
@keyframes horrorShake {
    0% {
        transform: translate(0, 0) rotate(0deg);
        box-shadow: 0 0 0 transparent;
    }

    15% {
        transform: translate(-1px, 0.5px) rotate(-0.3deg);
    }

    30% {
        transform: translate(1px, -1px) rotate(0.4deg);
    }

    45% {
        transform: translate(-1.5px, 0.5px) rotate(-0.5deg);
    }

    60% {
        transform: translate(1px, 1px) rotate(0.3deg);
    }

    75% {
        transform: translate(-0.5px, -1px) rotate(-0.2deg);
    }

    90% {
        transform: translate(1px, -0.5px) rotate(0.4deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        box-shadow: 0 0 0 transparent;
    }
}

/* 2. OPオーバーレイ フェードイン */
@keyframes opFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 3. グリッチ RGBずらし (Red) */
@keyframes rgb-shift-r {
    0%, 26% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    30% {
        transform: translate(-6px, 2px);
        clip-path: inset(15% 0 60% 0);
    }

    35% {
        transform: translate(5px, -3px);
        clip-path: inset(70% 0 10% 0);
    }

    39% {
        transform: translate(-4px, 1px);
        clip-path: inset(40% 0 35% 0);
    }

    43% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    66% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    70% {
        transform: translate(6px, -2px);
        clip-path: inset(25% 0 50% 0);
    }

    75% {
        transform: translate(-5px, 3px);
        clip-path: inset(65% 0 15% 0);
    }

    79% {
        transform: translate(3px, -1px);
        clip-path: inset(10% 0 75% 0);
    }

    83% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    100% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }
}

/* 4. グリッチ RGBずらし (Green) */
@keyframes rgb-shift-g {
    0%, 26% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    31% {
        transform: translate(5px, -2px);
        clip-path: inset(50% 0 20% 0);
    }

    36% {
        transform: translate(-4px, 3px);
        clip-path: inset(10% 0 75% 0);
    }

    40% {
        transform: translate(4px, -1px);
        clip-path: inset(30% 0 40% 0);
    }

    43% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    66% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    71% {
        transform: translate(-5px, 2px);
        clip-path: inset(15% 0 60% 0);
    }

    76% {
        transform: translate(4px, -3px);
        clip-path: inset(55% 0 20% 0);
    }

    80% {
        transform: translate(-3px, 1px);
        clip-path: inset(35% 0 45% 0);
    }

    83% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    100% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }
}

/* 5. グリッチ RGBずらし (Blue) */
@keyframes rgb-shift-b {
    0%, 26% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    32% {
        transform: translate(-4px, 3px);
        clip-path: inset(30% 0 50% 0);
    }

    37% {
        transform: translate(5px, -4px);
        clip-path: inset(80% 0 5% 0);
    }

    41% {
        transform: translate(-5px, 2px);
        clip-path: inset(20% 0 65% 0);
    }

    43% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    66% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    72% {
        transform: translate(4px, -2px);
        clip-path: inset(70% 0 10% 0);
    }

    77% {
        transform: translate(-6px, 3px);
        clip-path: inset(20% 0 55% 0);
    }

    81% {
        transform: translate(3px, -1px);
        clip-path: inset(45% 0 30% 0);
    }

    83% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    100% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }
}