@charset "UTF-8";
/* CSS Document */
/* 家紋の図鑑 */
/* 3D家紋コイン・メダル画像生成 */
/* みんなの知識 ちょっと便利帳 */
/* 2026/09/01 */

  .kemb-root {
    max-width: 100%;
    margin: 0 auto;
    background: #2b2b2b;
    padding: 5px 5px 20px 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
  }
  .kemb-root *, .kemb-root *::before, .kemb-root *::after {
    box-sizing: border-box;
  }
  .kemb-root .kemb-title {
    text-align: center;
    color: gold;
    font-size: 24px;
    font-family: "Hiragino Mincho ProN", "BIZ UDPMincho", serif;
    font-weight: bold;
    margin: 20px 0 5px 0;
  }
  .kemb-root .kemb-subtitle {
    text-align: center;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  .kemb-root .kemb-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    background: #3a3a3a;
    padding: 15px;
    border-radius: 6px;
  }
  .kemb-root .kemb-control-group {
    display: flex;
    flex-direction: column;
  }
  .kemb-root .kemb-control-group.kemb-section-title {
    grid-column: 1 / -1;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
    margin-top: 5px;
    font-weight: bold;
    color: #d4af37;
  }
  .kemb-root .kemb-label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #ddd;
    display: flex;
    justify-content: space-between;
  }
  .kemb-root .kemb-checkbox-label {
    font-size: 0.85rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .kemb-root input[type="range"],
  .kemb-root select,
  .kemb-root input[type="file"],
  .kemb-root input[type="color"],
  .kemb-root input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.85rem;
  }
  .kemb-root input[type="color"] {
    height: 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
  }
  .kemb-root input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex: none;
  }
  .kemb-root input[type="text"] {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background: #222;
    color: #eee;
  }
  .kemb-root .kemb-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .kemb-root .kemb-btn-small {
    flex: 1;
    min-width: 70px;
    padding: 8px 6px;
    background: #4a4a4a;
    color: #eee;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
  }
  .kemb-root .kemb-btn-small:hover {
    background: #5a5a5a;
  }
  .kemb-root .kemb-btn-small:active {
    background: #d4af37;
    color: #000;
  }
  .kemb-root .kemb-preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
  }
  .kemb-root .kemb-canvas-wrapper {
    background-image: linear-gradient(45deg, #bbb 25%, transparent 25%),
                      linear-gradient(-45deg, #bbb 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #bbb 75%),
                      linear-gradient(-45deg, transparent 75%, #bbb 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #fff;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    max-width: 100%;
  }
  
  .kemb-drop-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: bold;
    border: 4px dashed #d4af37;
    border-radius: 8px;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
  }
  .kemb-root.kemb-dragover-active .kemb-drop-overlay {
    display: flex;
  }

  .kemb-root canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }
  .kemb-root .kemb-compare-wrap {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 15px auto;
    display: none;
  }
  .kemb-root .kemb-compare-wrap.kemb-active {
    display: block;
  }
  .kemb-root .kemb-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
  }
  .kemb-root .kemb-download-panel {
    background: #222;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  .kemb-root .kemb-btn-download {
    padding: 10px 25px;
    background: #d4af37;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
  }
  .kemb-root .kemb-btn-download:hover {
    background: #f3e5ab;
  }
  .kemb-root .kemb-btn-download:disabled {
    background: #888;
    cursor: default;
  }
  .kemb-root .kemb-preset-panel {
    background: #333;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
  }
  .kemb-root .kemb-preset-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
  }
  .kemb-root .kemb-preset-select-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
  }
