  .mirror-body {
      margin: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 140vh;
      background: #1e1e1e;
      font-family: "Helvetica Neue", Arial, sans-serif;
      color: #ddd;
    }

    .mirror-container {
      position: relative;
      border: 4px solid #555;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 0 25px rgba(0,0,0,0.6);
      background: #000;
      margin-bottom: 15px;
    }

    

    .mirror-controls {
      display: flex;
      gap: 10px;
    }

    .mirror-button {
      background: #444;
      color: #eee;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s;
    }

    .mirror-button:hover {
      background: #666;
    }

  .mirror-video {
  width: 70vw;
  max-width: 600px;
aspect-ratio: 3 / 4;
  
  transform: scaleX(-1);
  object-fit: cover;
  display: block; /* ← インライン要素の余白防止 */
}


  .mirror-preview {
    margin-top: 20px;
    text-align: center;
  }

  .mirror-preview img {
    width: 70vw;
    max-width: 600px;
    aspect-ratio: 3 / 4; 
    object-fit: cover;    
    border-radius: 10px;
    border: 3px solid #555;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
  }

    .mirror-canvas {
      display: none;
    }