/* moyashi_paint.css */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&family=Archivo+Black&display=swap');

html {
    background-color: #010E1C;
    height: 100%;
}

body {
    margin: 0;
    user-select: none;
    font-family: 'Helvetica Neue', Arial, "M PLUS Rounded 1c", sans-serif;
    color: #e0e0e0;
    overflow: hidden;
}

/* 中央タイトル */
.center-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Archivo Black', sans-serif;
    color: #F4B002;
    margin: 0;
    z-index: 100;
    font-size: 24px;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(244, 176, 2, 0.3);
}

/* バーガーメニュー */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 25px;
    font-size: 28px;
    color: #F4B002;
    cursor: pointer;
    z-index: 2000;
    background: rgba(1, 14, 28, 0.8);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(244, 176, 2, 0.2);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding-top: 100px;
    transition: all 0.3s ease;
    z-index: 1500;
    border-right: 1px solid rgba(244, 176, 2, 0.2);
}

.side-menu.open { left: 0; }
.side-menu ul { list-style: none; padding: 0; }
.side-menu li { padding: 15px 20px; }
.side-menu a { text-decoration: none; color: #F4B002; font-size: 20px; }
.side-menu a.active-page { background-color: #B30404; color: #ffffff !important; font-weight: bold; display: block; padding: 10px 15px; border-radius: 5px; }

/* ツールバー */
.toolbar {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(244, 176, 2, 0.3);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.tool-group { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #F4B002; }

/* ボタンと入力 */
button {
    background: rgba(255, 255, 255, 0.1);
    color: #F4B002;
    border: 1px solid #F4B002;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

button:hover { background: rgba(244, 176, 2, 0.2); }
button.active { background: #F4B002; color: #010E1C; }

.layer-controls { display: flex; gap: 8px; }
.layer-btn { display: flex; flex-direction: column; align-items: center; font-size: 10px; gap: 2px; padding: 4px 8px; }
.layer-icon { width: 20px; height: 20px; object-fit: contain; }

input[type="color"] {
    border: 1px solid #F4B002;
    background: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
}

/* キャンバス */
canvas { position: absolute; left: 0; top: 0; }
#bgLayer { z-index: 0; }
#layer1 { z-index: 10; }
#layer2 { z-index: 20; }

/* 操作ガイドのスタイル */
.operation-guide {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(1, 14, 28, 0.6); /* 背景は薄く */
    color: rgba(244, 176, 2, 0.5);   /* 文字も最初は薄く */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(244, 176, 2, 0.2);
    font-size: 12px;
    line-height: 1.6;
    pointer-events: none; /* マウスイベントを透過させて描画を邪魔しない */
    z-index: 100;
    transition: all 0.3s ease;
}

/* ガイドにマウスが重なった時、または集中したい時のために
   あえて不透明度を上げる設定（必要に応じて） */
.operation-guide:hover {
    color: rgba(244, 176, 2, 0.9);
    background: rgba(1, 14, 28, 0.9);
    border-color: rgba(244, 176, 2, 0.5);
}

.operation-guide p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.operation-guide ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
