html {
    scroll-behavior: smooth;
}
:root {
    --bg-color: #121212;
    --bg-color-dark: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #00aaff;
    --font-oswald: 'Oswald', sans-serif;
    --font-noto: 'Noto Sans JP', sans-serif;
}
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    background-color: var(--bg-color);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiGAAAANlBMVEX8/vz5+/v09/f////x8/fp7u7g4+fh5OXi5eXj5uXk5+bl6Ojo6enq6+vs7u7u7+/v8PHz9fUzjSHLAAAAHUlEQVR42u3OMQEAAAgDoC2G/Yt62wAAnvM4joZleR4AAAAASUVORK5CYII=');
    color: var(--text-color);
    font-family: var(--font-noto);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
#page-wrapper {
    transition: transform 0.2s;
    perspective: 1000px;
    overflow-x: hidden;
}
#loader-bg {
    position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#loader { font-family: var(--font-oswald); color: #fff; text-align: center; }
.loader-inner { overflow: hidden; }
#loader span { display: block; font-size: 3rem; letter-spacing: 0.1em; transform: translateY(100%); animation: loader-reveal 1s 0.2s forwards cubic-bezier(0.22, 1, 0.36, 1); }
#loader .loader-inner:last-child span { font-size: 1.5rem; font-family: var(--font-noto); font-weight: 700; animation-delay: 0.4s; }
@keyframes loader-reveal { to { transform: translateY(0); } }
.loaded #loader-bg { animation: fadeOut 0.8s 1.5s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 20px 0; transition: background-color 0.3s; }
#header.scrolled { background-color: rgba(18, 18, 18, 0.7); backdrop-filter: blur(10px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.logo { font-family: var(--font-oswald); font-size: 1.8rem; color: #fff; text-decoration: none; letter-spacing: 1px; }
.global-nav a { color: #fff; text-decoration: none; margin-left: 40px; font-weight: 700; transition: color 0.3s; }
.global-nav a:hover { color: var(--accent-color); }
#hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
#hero::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 20vh; background-color: var(--bg-color); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.hero-title { font-family: var(--font-oswald); font-size: clamp(3rem, 10vw, 7rem); color: #fff; margin: 0; letter-spacing: 0.1em; text-align: center; }
.hero-subtitle { text-align: center; font-size: 1.2rem; color: #fff; margin-top: 20px; font-weight: 700; }
.hero-title-line { display: inline-block; opacity: 0; transform: translateY(30px); animation: reveal-char 0.8s 1.8s forwards cubic-bezier(0.22, 1, 0.36, 1); }
.hero-title-line:last-child { animation-delay: 2.0s; }
.content-section { padding: 120px 0; position: relative; }
.bg-dark { background-color: var(--bg-color-dark); }
.bg-dark::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 10vh; background-color: var(--bg-color); clip-path: polygon(0 0, 100% 0, 0 100%); }
.bg-dark::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 10vh; background-color: var(--bg-color); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.section-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; }
.section-title-container { text-align: left; }
.section-title { font-family: var(--font-oswald); font-size: 4rem; color: #fff; margin: 0; }
.page-about .section-title { position: relative; padding-bottom: 20px; display: inline-block; }
.page-about .section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-color: var(--accent-color); }
.section-subtitle { color: var(--accent-color); font-weight: 700; margin: 0 0 40px 5px; }
.section-text { font-size: 1rem; line-height: 2; max-width: 800px; margin-top: 40px; }
.outline-list { list-style: none; padding: 0; margin-top: 40px; }
.outline-list li { display: grid; grid-template-columns: 100px 1fr; gap: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 25px 0; align-items: flex-start; }
.outline-list .label { font-weight: 700; color: var(--accent-color); }
.outline-list .value { line-height: 1.8; }
.btn-container { margin-top: 40px; text-align: left; }
.btn { display: inline-block; color: #fff; text-decoration: none; border: 2px solid var(--accent-color); padding: 15px 50px; font-weight: 700; position: relative; transition: color 0.3s, transform 0.2s; }
.btn span { position: relative; z-index: 2; }
.btn::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: var(--accent-color); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); z-index: 1; }
.btn:hover { color: var(--bg-color); }
.btn:hover::before { width: 100%; }
.btn:active { transform: translateY(2px) scale(0.98); }
.speaker-carousel-wrapper { margin-top: 40px; padding-bottom: 20px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1); }
.speaker-carousel-wrapper::-webkit-scrollbar { height: 8px; }
.speaker-carousel-wrapper::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.speaker-carousel-wrapper::-webkit-scrollbar-thumb { background-color: var(--accent-color); border-radius: 4px; }
.speaker-carousel { display: inline-flex; gap: 30px; padding-top: 10px; padding-bottom: 10px; }
.speaker-carousel .card { flex: 0 0 300px; }
.card { background: rgba(30, 30, 30, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.card-content { padding: 30px; }
.card h3 { font-family: var(--font-oswald); font-size: 1.8rem; color: var(--accent-color); margin: 0 0 10px; }
.access-container { margin-top: 40px; }
.access-map { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; }
.access-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.access-info { margin-top: 30px; line-height: 1.8; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.team-member { background: rgba(30, 30, 30, 0.5); backdrop-filter: blur(5px); padding: 20px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.team-member:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.team-member .name { font-family: var(--font-noto); font-weight: 700; letter-spacing: 0.05em; font-size: 1.5rem; color: var(--accent-color); margin: 0 0 5px; text-decoration: none; display: inline-block; transition: opacity 0.3s; }
.team-member .name:hover { opacity: 0.8; }
.team-member .role { font-size: 0.9rem; margin: 0; }
.social-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.social-btn { display: inline-block; padding: 15px 40px; color: #fff; text-decoration: none; font-weight: 700; transition: transform 0.3s, opacity 0.3s; }
.social-btn:hover { transform: translateY(-5px); opacity: 0.9; }
.social-btn.x { background-color: #000; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-btn.wiki { background-color: #ff7711; }
.news-list { list-style: none; padding: 0; margin: 40px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.news-item { display: flex; align-items: baseline; padding: 25px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.news-date { font-family: var(--font-oswald); color: var(--accent-color); font-size: 1rem; width: 120px; flex-shrink: 0; }
.news-title { color: var(--text-color); text-decoration: none; font-weight: 700; line-height: 1.6; transition: color 0.3s; }
.news-title:hover { color: var(--accent-color); }
.notice-article { max-width: 800px; margin: 0 auto; }
.notice-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.notice-date { display: block; font-family: var(--font-oswald); color: var(--accent-color); font-size: 1.1rem; margin-bottom: 10px; }
.notice-title { font-family: var(--font-oswald); font-size: 2.8rem; line-height: 1.3; color: #fff; margin: 0; }
.notice-body p { font-size: 1rem; line-height: 2; margin: 0 0 1.5em; }
.formal-document { background: #fff; color: #333; padding: 40px 50px; font-family: 'Noto Serif JP', serif; line-height: 2; }
.formal-document .document-title { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; font-weight: 700; text-align: center; margin: 0 0 40px 0; }
.formal-document .document-meta { text-align: right; margin-bottom: 40px; line-height: 1.8; }
.formal-document .document-meta p { margin: 0; }
.formal-document .document-body p { margin: 0 0 1.5em 0; text-indent: 1em; }
.formal-document .document-salutation { text-align: right; margin: 0; }
#footer { text-align: center; padding: 50px 0; background-color: var(--bg-color-dark); color: #888; font-size: 0.9rem; }
@keyframes reveal-char { to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { opacity: 0; transform: translateY(40px); animation: fade-up 1s 2.5s forwards cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
.anim-scroll-target { opacity: 0; transform: translateY(40px); transition-property: opacity, transform; transition-duration: 1s; transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.anim-scroll-target.is-visible { opacity: 1; transform: translateY(0); }
.is-visible .section-title-container { transition-delay: 0s; }
.is-visible .section-text, .is-visible .outline-list, .is-visible .access-container, .is-visible .speaker-carousel-wrapper, .is-visible .team-grid, .is-visible .social-links, .is-visible .news-list { transition-delay: 0.2s; }
.is-visible .btn-container { transition-delay: 0.4s; }
.hamburger-btn { display: none; position: relative; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; z-index: 101; }
.hamburger-btn span { display: block; position: absolute; left: 5px; width: 30px; height: 2px; background-color: var(--text-color); transition: all 0.3s; }
.hamburger-btn span:nth-child(1) { top: 10px; }
.hamburger-btn span:nth-child(2) { top: 19px; }
.hamburger-btn span:nth-child(3) { top: 28px; }
.menu-open .hamburger-btn span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .hamburger-btn span:nth-child(2) { opacity: 0; }
.menu-open .hamburger-btn span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
@media (max-width: 768px) {
    .hamburger-btn { display: block; }
    .global-nav { position: fixed; top: 0; right: 0; width: 70%; height: 100vh; background-color: rgba(10, 10, 10, 0.85); backdrop-filter: blur(10px); padding: 80px 40px 40px; z-index: 100; transform: translateX(100%); visibility: hidden; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.5s; }
    .menu-open .global-nav { transform: translateX(0); visibility: visible; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0s;}
    .global-nav a { display: block; margin: 0 0 30px 0; font-size: 1.2rem; }
    .header-inner, .section-inner { padding-left: 20px; padding-right: 20px; }
    .header-inner .logo { position: relative; z-index: 101; }
    #hero { height: 80vh; }
    .hero-title { display: flex; flex-direction: column; line-height: 1.1; }
    .hero-title-line { font-size: 15vw; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2.5rem; }
    .outline-list li { display: block; grid-template-columns: 1fr; gap: 0; padding-top: 20px; padding-bottom: 20px; }
    .outline-list .label { width: auto; margin-right: 0; margin-bottom: 15px; }
    .speaker-carousel .card { flex: 0 0 280px; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .news-item { display: block; }
    .news-date { margin-bottom: 8px; }
    .notice-title { font-size: 2rem; }
    .formal-document { padding: 30px 20px; }
    .formal-document .document-title { font-size: 1.5rem; }
}
@keyframes party-time {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
body.osaka-mode {
    background-image: none;
    background-color: #000;
}
.osaka-mode .hero-title,
.osaka-mode .section-title {
    background: linear-gradient(45deg, #fde047, #000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-stroke: 2px #fde047;
    color: transparent;
    animation: osaka-text-anim 2s ease infinite;
}
@keyframes osaka-text-anim {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
#takoyaki-cursor,
#debug-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
}
#takoyaki-cursor {
    font-size: 30px;
}
#debug-cursor {
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
}
body.osaka-mode #takoyaki-cursor {
    opacity: 1;
}
body.debug-mode #debug-cursor {
    opacity: 1;
}
body.debug-mode {
    background-image: 
        linear-gradient(rgba(255,0,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
body.debug-mode *:hover {
    outline: 1px solid rgba(0, 255, 255, 0.5);
}
#mini-terminal,
#theme-panel {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    transition: opacity 0.4s, visibility 0.4s;
    opacity: 0;
    visibility: hidden;
}
#mini-terminal.is-open,
#theme-panel.is-open {
    opacity: 1;
    visibility: visible;
}
#mini-terminal {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    border-top: 1px solid var(--accent-color);
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}
.terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    color: #eee;
    white-space: pre-wrap;
    word-break: break-all;
}
.terminal-input-line {
    display: flex;
    align-items: center;
    height: 25px;
    flex-shrink: 0;
}
.terminal-input-line span {
    color: var(--accent-color);
    margin-right: 10px;
}
.terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-family: monospace;
    font-size: 14px;
}
.terminal-input:focus {
    outline: none;
}
#theme-panel {
    bottom: 20px;
    right: 20px;
    width: 250px;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    font-family: sans-serif;
    color: #fff;
}
.theme-panel-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
#theme-panel h3 {
    margin: 0 0 20px 0;
    font-family: var(--font-oswald);
    color: var(--accent-color);
}
.panel-group {
    margin-bottom: 15px;
}
.panel-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}
#theme-panel input[type="color"],
#theme-panel select {
    width: 100%;
    padding: 5px;
    background: #444;
    border: 1px solid #666;
    color: #fff;
    border-radius: 4px;
}
[data-inspect-highlight] {
    outline: 2px dashed red !important;
    box-shadow: 0 0 10px red;
}

/* ▼▼▼ ポップアップ追加 ▼▼▼ */
.agreement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001; /* ターミナル(10000)より手前に表示 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s 0.4s;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(8px);
}

.agreement-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s, visibility 0s 0s;
}

.popup-content {
    background: var(--bg-color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.agreement-popup.is-visible .popup-content {
    transform: translateY(0);
}

.popup-title {
    font-family: var(--font-oswald);
    font-size: 2rem;
    color: var(--accent-color);
    margin: 0 0 20px;
}

.popup-text {
    line-height: 1.8;
    margin: 0 0 30px;
}

.popup-links {
    margin-bottom: 30px;
}

.popup-links a {
    color: var(--accent-color);
    text-decoration: underline;
    margin: 0 15px;
    transition: color 0.3s;
}

.popup-links a:hover {
    color: #fff;
}

.popup-btn-container button.btn {
    background: transparent;
    font-family: var(--font-noto);
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
    }
    .popup-title {
        font-size: 1.5rem;
    }
    .popup-text {
        font-size: 0.9rem;
    }
    .popup-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    .popup-links a {
        margin: 0;
    }
    .popup-btn-container .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
/* ▲▲▲ ポップアップ追加 ▲▲▲ */