/* ===== /iro/ カメラ色判定 ===== */

.iro-start {
  text-align: center;
  margin: 16px 0;
}

.iro-privacy-note {
  font-size: 0.85em;
  color: #555;
  text-align: center;
}

.camera-view-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  margin: 16px auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

#camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 上下または左右を均等に切るので、画面中央＝映像中央のまま */
  display: block;
}

/* bundoki の照準は水平線だが、ここでは1点を示すため中央の輪にする。
   白と黒の二重線で、明るい対象でも暗い対象でも見えるようにする */
.color-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000;
  pointer-events: none;
}

.camera-view-wrapper.is-held::after {
  content: '固定中';
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.8em;
  padding: 2px 8px;
  border-radius: 4px;
}

.color-result {
  max-width: 360px;
  margin: 0 auto 16px;
  text-align: center;
}

.color-swatch {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #eee;
  margin-bottom: 8px;
}

.color-hex {
  font-size: 1.6em;
  font-weight: bold;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-bottom: 4px;
}

.copy-button,
.hold-button {
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 8px;
}

/* タップしやすい高さ（44px）を確保する */
.copy-button,
.hold-button {
  min-height: 44px;
  padding-left: 16px;
  padding-right: 16px;
}

.hold-button {
  font-size: 1em;
  margin: 4px 0 8px;
  min-width: 8em;
}

.color-rgb,
.color-name {
  margin-bottom: 4px;
}

.color-name span {
  font-weight: bold;
}

.camera-error-note {
  color: #c0392b;
  font-weight: bold;
  text-align: center;
}

.iro-note {
  font-size: 0.85em;
  color: #555;
}
