/* --- 1. 基本設定（端末設定優先） --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --canva-purple: #7d2ae8;
    --canva-blue: #00c4cc;
}

/* 端末がダークモードなら自動で色を変える */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #f5f5f5;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    height: 100vh;
    transition: background 0.4s, filter 0.3s;
    overflow-x: hidden;
}

/* --- 2. ヘッダー（ロゴとボタン） --- */
header {
    display: flex;
    justify-content: space-between; /* 左右に振り分け */
    align-items: center;
    padding: 10px 40px; 
    position: fixed; /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px); /* すりガラス効果 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ロゴ全体のリンクエリア */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px; /* 動画とテキストの間隔 */
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.03);
}

/* ★ 左上のロゴ動画（しゅろるさんのこだわりサイズ） ★ */
.nav-logo-video {
    height: 111px; 
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 立体感を出す */
}

/* ロゴの横のテキスト */
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

/* 右上のボタンエリア */
.header-buttons {
    display: flex;
    gap: 15px;
}

.btn-login {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    font-weight: bold;
    transition: 0.3s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-register {
    background-color: white;
    color: var(--canva-purple);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-register:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- 3. メイン（ヒーローエリア） --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--canva-purple) 0%, var(--canva-blue) 100%);
    color: white;
    box-sizing: border-box;
    /* 大きなロゴに被らないよう、上部に余白を確保 */
    padding-top: 130px; 
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* --- 4. アクセシビリティ・ハブ（右下） --- */
.accessibility-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.acc-btn {
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    display: flex;
}

.acc-btn img {
    width: 30px;
    height: 30px;
}

.acc-menu {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.hidden { display: none; }

.acc-menu button {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
}

/* --- 5. 特殊エフェクト --- */

/* 色反転 */
.inverted { filter: invert(100%) hue-rotate(180deg); }

/* コントラスト下げ */
.low-contrast { filter: contrast(60%); }

/* 🌈 ゲーミングモード（虹色アニメ） */
.gaming-mode-on {
    background: linear-gradient(270deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-size: 1200% 1200%;
    animation: gaming-rainbow 10s ease infinite !important;
}

@keyframes gaming-rainbow {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}