.options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.option {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--fg);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  max-width: 100%;
}

.option.selected {
  border-color: var(--secondary);
  background: var(--eval-bg);
  box-shadow: none;
}

.option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.option:not(.disabled):hover {
  background-color: var(--eval-bg);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.option.selected:not(.disabled):hover {
  background-color: var(--eval-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-circle {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--input-border);
  margin-right: 12px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: var(--input-bg);
  box-sizing: border-box;
}

.option.selected .radio-circle {
  border-color: var(--secondary);
  border-width: 6px;
}

/* 複数選択（multiple_select）はチェックボックス（角丸の四角＋チェック） */
.checkbox-square {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 4px;
  border: 2px solid var(--input-border);
  margin-right: 12px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: var(--input-bg);
  box-sizing: border-box;
}

.option.selected .checkbox-square {
  border-color: var(--secondary);
  background-color: var(--secondary);
}

.option.selected .checkbox-square::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.option.correct-option .checkbox-square {
  border-color: #10b981;
}

.option.wrong-selection .checkbox-square {
  border-color: #ef4444;
}

.option-text {
  flex: 1;
  line-height: 1.5;
  font-size: 16px;
  color: var(--fg);
  word-break: break-word;
}

.option-label {
  font-weight: 600;
  margin-right: 4px;
}

.option.correct-option {
  border-color: #10b981;
  background: #ecfdf5 !important;
  opacity: 1;
}

.option.correct-option .radio-circle {
  border-color: #10b981;
}

.option.wrong-selection {
  border-color: #ef4444;
  background: #fef2f2 !important;
  opacity: 1;
}

.option.wrong-selection .radio-circle {
  border-color: #ef4444;
  border-width: 6px;
}
