/* parallax-experience/style.css */

.tool-content {
    height: calc(100vh - 60px); /* サイトヘッダー分引く前提 */
    overflow: hidden;
}

.builder-layout {
    display: flex;
    width: 100%;
    background-color: #0f172a;
}

/* プレビュー領域 */
.canvas-panel {
    flex: 1;
    position: relative;
    background: #020617; /* 真っ暗に近い背景 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 0;
}

/* ツールパレット領域 */
.palette-panel {
    width: 380px;
    background-color: #1e293b;
    border-left: 1px solid #334155;
    padding: 1.5rem;
    overflow-y: auto;
    color: #f8fafc;
    flex-shrink: 0;
}

/* 設定ブロック */
.setting-block {
    margin-bottom: 1.5rem;
}
.setting-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}
.setting-input-text {
    width: 100%;
    padding: 0.6rem;
    background: #0f172a;
    border: 1px solid #475569;
    color: #fff;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.setting-range {
    width: 100%;
    accent-color: #8b5cf6;
}
.setting-color {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #475569;
    border-radius: 4px;
    cursor: pointer;
    background: #0f172a;
}
.radio-group {
    display: flex;
    gap: 1rem;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* =========================================
   アナモルフォシス・コアスタイル
========================================= */
.parallax-scene {
    z-index: 10;
}

/* エリアモード：キャンバスパネル内でのみ動作 */
.parallax-scene.area-mode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* マウスイベントはcanvas-panelで拾う */
}

/* 全体モード：ページ全体を覆う */
.parallax-scene.full-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.hidden-dot {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    /* transition: transform 0.1s ease-out; /* なめらかにする場合は有効化 */
}

/* ボタン類共通（あれば） */
.btn {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    font-size: 0.9rem;
}
.btn:hover {
    opacity: 0.8;
}
.btn-primary {
    background-color: #8b5cf6;
    color: white;
}
.btn-outline {
    background-color: transparent;
    border: 1px solid #94a3b8;
    color: #f8fafc;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .builder-layout {
        flex-direction: column;
    }
    .palette-panel {
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid #334155;
    }
}
