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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    overflow: hidden;
    height: 100vh;
}

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1100;
}

.site-header .brand {
    font-family: 'DotGothic16', monospace;
    font-size: 20px;
    color: #fff;
    letter-spacing: 2px;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* コントロール行（ヘッダー下・中央） */
.controls {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    z-index: 1000;
}

/* アンダーライン入力 */
#textInput {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.9);
    color: #fff;
    font-family: 'DotGothic16', monospace;
    font-size: 18px;
    padding: 8px 4px;
    min-width: 320px;
    outline: none;
}
#textInput::placeholder { color: rgba(255,255,255,0.6); }
#textInput:focus { border-bottom-color: #fff; }

/* ボタン（黒背景・白細枠・角丸小・細フォント） */
button.btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 8px 14px;
    font-family: 'DotGothic16', monospace !important;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: color .25s ease, opacity .25s ease, transform .25s ease, filter .25s ease;
    will-change: transform;
    display: inline-block;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 下線アニメーション（デフォルトはうっすら白、ホバーでネオンに） */
#startButton.btn, #resetButton.btn {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.4));
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
}
#startButton.btn {
    --accent-a: #ff6b6b; /* ピンク */
    --accent-b: #ffa500; /* オレンジ */
}
#resetButton.btn {
    --accent-a: #6bdcff; /* シアン */
    --accent-b: #4aa8ff; /* ブルー */
}
.btn-wrap { display:inline-block; padding: 2px 0; }
.btn-wrap:hover #startButton.btn,
.btn-wrap:focus-within #startButton.btn {
    background-image: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    background-size: 100% 2px;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
.btn-wrap:hover #resetButton.btn,
.btn-wrap:focus-within #resetButton.btn {
    background-image: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    background-size: 100% 2px;
    text-shadow: 0 0 8px rgba(106, 220, 255, 0.6);
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}

/* 既存のボタン装飾リセット（互換用） */
#startButton, #resetButton { all: unset; }
#startButton.btn, #resetButton.btn { 
    font-family: 'DotGothic16', monospace !important;
}

#animationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* 横画面メッセージは既存のまま */
@media (max-width: 768px) {
    .controls {
        top: 56px;
        gap: 8px;
    }
    #textInput { min-width: 220px; font-size:16px; }
}

/* 横画面メッセージのスタイル */
#orientation-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.orientation-container {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
}

.orientation-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orientation-container p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.phone-icon {
    font-size: 4rem;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
} 