* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; background-color: #f1f5f9; color: #1e293b; height: 100vh; overflow: hidden; } .app-container { display: flex; height: 100vh; width: 100vw; } .sidebar { width: 375px; min-width: 345px; background: linear-gradient(135deg, #160536 0%, #113b05 50%, #130d5c 100%); border-right: 1px solid #cbd5e1; display: flex; flex-direction: column; height: 100%; box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05); z-index: 10; } .sidebar-header { padding: 14px 16px; background: #1e293b; color: #ffffff; display: flex; justify-content: space-between; align-items: center; } .sidebar-header h1 { font-size: 16px; font-weight: 700; } .action-buttons { display: flex; gap: 6px; } .settings-scroll { flex: 1; overflow-y: auto; padding: 12px 16px 36px; } .control-group { background: linear-gradient(135deg, #ebf5e2 0%, #cff8c3 50%, #a8f8d3 100%); border: 1px solid #10690d; border-radius: 8px; padding: 12px; margin-bottom: 14px; } .control-group h2 { font-size: 13px; font-weight: 700; color: #142e09; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #3b82f6; } .hint { font-size: 11px; color: #64748b; margin-bottom: 8px; } .control-row { margin-bottom: 10px; font-size: 12px; } .control-row:last-child { margin-bottom: 0; } .control-row label { display: block; margin-bottom: 4px; font-weight: 600; color: #334155; } .control-row input[type="checkbox"] { margin-right: 5px; vertical-align: middle; } .free-box-panel { background: #d6f8de; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; } .style-toggles { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; } .style-toggles label { display: inline-flex; align-items: center; margin-bottom: 0; cursor: pointer; } .single-mode-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; } .single-mode-title { color: #1d4ed8 !important; margin-bottom: 6px !important; } .muni-options { padding-left: 16px; border-left: 2px solid #93c5fd; margin-top: 6px; } .muni-options.disabled { opacity: 0.45; } .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; } select, input[type="number"], textarea { width: 100%; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; background: #fff; } input[type="range"] { width: 100%; } input[type="color"] { width: 100%; height: 30px; border: 1px solid #cbd5e1; border-radius: 4px; cursor: pointer; padding: 2px; background: #fff; } .color-reset-wrap { display: flex; gap: 4px; align-items: center; } .zoom-controls { display: flex; align-items: center; gap: 6px; } .zoom-controls input[type="range"] { flex: 1; } .checkbox-align { display: flex; align-items: center; padding-top: 12px; } .checkbox-align label { margin-bottom: 0; cursor: pointer; } .btn { border: none; border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s; } .btn-sm { padding: 4px 8px; font-size: 11px; background: #e2e8f0; color: #1e293b; } .btn-sm:hover { background: #cbd5e1; } .btn-primary { background: #2563eb; color: #fff; } .btn-primary:hover { background: #1d4ed8; } .btn-danger { background: #ef4444; color: #fff; } .btn-danger:hover { background: #dc2626; } .btn-accent { background: #0d9488; color: #fff; padding: 8px; } .btn-accent:hover { background: #0f766e; } .btn-purple { background: #7c3aed; color: #fff; padding: 8px; } .btn-purple:hover { background: #6d28d9; } .full-width { width: 100%; } .balloon-list-container { font-size: 12px; margin-top: 10px; } .balloon-list { list-style: none; max-height: 120px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; } .balloon-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid #f1f5f9; font-size: 12px; cursor: pointer; } .balloon-list li:hover { background: #eff6ff; } .balloon-list li.active { background: #dbeafe; font-weight: bold; } .balloon-del-btn { background: #fee2e2; color: #b91c1c; border: none; border-radius: 3px; padding: 2px 6px; font-size: 11px; cursor: pointer; } .preview-area { flex: 1; display: flex; flex-direction: column; height: 100%; background: #1e293b; position: relative; } .preview-toolbar { height: 36px; background: #c5e0fa; border-bottom: 1px solid #0554b4; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #2b2c2e; z-index: 5; } .inline-notice-bar { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #f8fafc; border: 1px solid #475569; border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); z-index: 30; max-width: 90%; } .inline-notice-bar.hidden { display: none; } .inline-notice-bar.warning { background: #7f1d1d; border-color: #ef4444; } .inline-notice-bar.info { background: #1e3a8a; border-color: #3b82f6; } .inline-notice-actions { display: flex; gap: 6px; } /* プレビュー背景切り替え */ .canvas-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; } .canvas-wrapper.bg-dark { background: #273244; } .canvas-wrapper.bg-white { background: #ffffff; } .canvas-wrapper.bg-checker { background-color: #f1f5f9; background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%), linear-gradient(-45deg, #cbd5e1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cbd5e1 75%), linear-gradient(-45deg, transparent 75%, #cbd5e1 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; } #japan-map-svg { width: 100%; height: 100%; user-select: none; cursor: grab; } #japan-map-svg:active { cursor: grabbing; } .pref-path { transition: fill 0.15s ease; cursor: pointer; } .pref-path:hover { opacity: 0.85; } .pref-path.selected-pref { stroke-width: 2.5px !important; stroke: #ef4444 !important; } .muni-path { transition: fill 0.15s ease; cursor: pointer; } .muni-path:hover { opacity: 0.8; } .balloon-group, .freetext-group { cursor: move; } .balloon-group:hover rect, .balloon-group:hover path, .balloon-group:hover polygon { filter: brightness(0.97); } .settings-scroll { flex: 1; overflow-y: auto; scrollbar-gutter: stable; padding: 12px 14px 36px 16px; } .settings-scroll::-webkit-scrollbar { width: 8px; } .settings-scroll::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 999px; margin: 6px 0; } .settings-scroll::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 999px; border: 2px solid #f1f5f9; transition: background 0.15s ease; } .settings-scroll::-webkit-scrollbar-thumb:hover { background: #3b82f6; } /* Firefox スクロールバー */ .settings-scroll { scrollbar-width: thin; scrollbar-color: #94a3b8 #f1f5f9; }