@charset "utf-8";

/* ========================================= */
/*  フォント設定
/* ========================================= */


@font-face {
    font-family: "DotGothic16";
    src: url("/DotGothic16.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "ShareTechMono";
    src: url("/ShareTechMono.ttf") format("truetype");
    font-style: normal;
}


/* ========================================= */
/*  ベース設定 (ホラー監視カメラ/ターミナル風)
/* ========================================= */
:root {
    --bg-base: #020502;
    --bg-surface: rgba(0, 20, 0, 0.8);
    --text-main: #00ff41;
    --text-muted: #00aa2b;
    --accent-color: #00ff41;
    --accent-hover: #ffffff;
    --border-color: #00ff41;
}

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

body {
    font-family: 'ShareTechMono', 'DotGothic16', monospace;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    /* モニターのグリッド線風背景 */
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* CRTスキャンラインエフェクト */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 9998;
}


.mobile-only {
    display: none;
}

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

header,
section,
footer {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-family: 'DotGothic16', monospace;
}

/* ========================================= */
/* Hero Area / Title Image */
/* ========================================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: relative;
}

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

.hero img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

@media (max-width: 640px) {
    header {
        padding-left: 0;
        padding-right: 0;
    }

    .hero img {
        border-radius: 0;
        width: 100%;
        height: 45vh;
        object-fit: cover;
        object-position: center;
    }
}

/* ========================================= */
/* Links Section */
/* ========================================= */
.links-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: -2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

@media (max-width: 640px) {
    .links-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
}

.link-btn {
    background-color: rgba(0, 40, 0, 0.6);
    color: var(--accent-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
    transition: all 0.2s ease-out;
    text-align: center;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
    letter-spacing: 2px;
}

.link-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
    text-shadow: none;
}

.link-btn.disabled {
    background-color: rgba(0, 20, 0, 0.4);
    color: #005511;
    border-color: #005511;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    text-shadow: none;
}

/* ========================================= */
/* Screenshots Section */
/* ========================================= */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.screenshot-item:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transform: scale(1.02);
}

/* ========================================= */
/* Spec Section */
/* ========================================= */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.spec-table th,
.spec-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.spec-table th {
    width: 30%;
    color: var(--text-main);
    font-weight: bold;
    background-color: rgba(0, 255, 65, 0.1);
    border-right: 1px solid rgba(0, 255, 65, 0.3);
    font-family: 'DotGothic16', monospace;
    letter-spacing: 2px;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* ========================================= */
/* Terms Section */
/* ========================================= */
.terms-box {
    background-color: rgba(0, 20, 0, 0.8);
    padding: 2rem;
    height: 450px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.1);
    scrollbar-color: rgba(0, 255, 65, 0.5) rgba(0, 255, 65, 0.1);
}

.terms-box::-webkit-scrollbar {
    width: 14px;
}

.terms-box::-webkit-scrollbar-track {
    background: rgba(0, 255, 65, 0.1);
    border-left: 1px solid var(--border-color);
}

.terms-box::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.5);
    border: 1px solid var(--border-color);
}

.terms-box::-webkit-scrollbar-thumb:hover {
    background: #00ff41;
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-family: 'ShareTechMono', monospace;
    text-shadow: none;
}

/* ========================================= */
/* Layout & Utility Classes */
/* ========================================= */
.story-content {
    text-align: center;
    margin-bottom: 3rem;
    line-height: 2;
}

.video-container {
    text-align: center;
}

.video-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.system-box {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.system-box p {
    margin-bottom: 1.5rem;
}

.system-box p.mb-lg {
    margin-bottom: 2rem;
}

.system-op-title {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.op-list {
    list-style-type: none;
    padding-left: 0;
}

.op-list li {
    margin-bottom: 0.5rem;
}

.spec-table-mb {
    margin-bottom: 3rem;
}

.spec-note {
    font-size: 0.9em;
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--accent-color);
    font-weight: bold;
}

.twitter-wrap {
    text-align: center;
}

.twitter-link {
    display: inline-block;
}

.twitter-id {
    font-size: 0.8rem;
    font-weight: normal;
}

.terms-box h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.terms-box h3.mt {
    margin-top: 2rem;
}

.terms-box h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.terms-box p {
    margin-bottom: 1.5rem;
}

.terms-box p.mb-lg {
    margin-bottom: 2rem;
}

/* ========================================= */
/*  タイトル画面 (提供コード)
/* ========================================= */
/* Title Background Animation */
.title_bg {
    animation: handheld-sway 12s ease-in-out infinite !important;
    transform-origin: center center;
}

@keyframes handheld-sway {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    25% {
        transform: scale(1.1) translate(10px, 8px);
    }

    50% {
        transform: scale(1.1) translate(-8px, 12px);
    }

    75% {
        transform: scale(1.1) translate(12px, -6px);
    }

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

/* Title UI Style */
.title_text {
    text-shadow: 0 0 15px #00ff41, 0 0 30px rgba(0, 255, 65, 0.5);
    letter-spacing: 12px;
    font-weight: bold;
    opacity: 0.9;
}

.start_btn {
    text-shadow: 0 0 10px #00ff41 !important;
    border: 1px solid #00ff41 !important;
    background: rgba(0, 40, 0, 0.6) !important;
    padding: 15px 60px !important;
    border-radius: 2px !important;
    transition: none !important;
    letter-spacing: 4px !important;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2) !important;
}

.start_btn:hover {
    background: #00ff41 !important;
    color: #000 !important;
    box-shadow: 0 0 20px #00ff41 !important;
}

.title_btn:not(.start_btn) {
    text-shadow: 0 0 8px #00ff41 !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}

.title_btn:not(.start_btn):hover {
    opacity: 1 !important;
}

/* ========================================= */
/* 削除画面 (提供コード)
/* ========================================= */
/* Delete Overlay Style */
#delete_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000000;
}

.delete_title {
    font-size: 28px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: bold;
    border-bottom: 2px solid #00ff41;
    padding-bottom: 15px;
}

.delete_subtitle {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-top: 12px;
    display: inline-block;
    opacity: 0.8;
    font-family: 'DotGothic16', sans-serif;
}

.delete_btn_area {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.delete_btn {
    padding: 15px 45px;
    border: 1px solid #00ff41;
    background: rgba(0, 40, 0, 0.6);
    color: #00ff41;
    cursor: pointer;
    font-family: 'ShareTechMono', 'DotGothic16', monospace;
    font-size: 26px;
    letter-spacing: 3px;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
    transition: none;
    outline: none;
}

.delete_btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 15px #00ff41;
}

/* ========================================= */
/*  サウンド (提供コード)
/* ========================================= */
/* Sound Config Style */
#config_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000000;
}

.config_blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.config_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 40px;
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5), inset 0 0 10px rgba(0, 255, 65, 0.2);
    font-family: 'ShareTechMono', 'DotGothic16', monospace;
    color: #00ff41;
    text-align: center;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

.config_title {
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 6px;
    font-weight: bold;
    border-bottom: 2px solid #00ff41;
    padding-bottom: 15px;
}

.config_volume_area {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 15px 0;
}

.config_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.config_label {
    font-size: 26px;
    letter-spacing: 3px;
}

.config_box input[type=range] {
    -webkit-appearance: none;
    background: rgba(0, 255, 65, 0.2);
    height: 8px;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.config_box input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 36px;
    background: #00ff41;
    cursor: pointer;
    border: 1px solid #000;
    box-shadow: 0 0 5px #00ff41;
}