/* 全体コンテナ */
#wct-root,
.wct-root {
  box-sizing: border-box;
}

#width-converter-tool {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

#width-converter-tool * {
  box-sizing: border-box;
}

.wct-note {
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  border-radius: 6px;
  background: #f0f7ff;
  color: #205081;
  font-size: 0.9rem;
}

.wct-section {
  margin-bottom: 1.25rem;
}

.wct-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.wct-textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.wct-textarea:focus {
  outline: none;
  border-color: #4096ff;
  box-shadow: 0 0 0 2px rgba(64,150,255,0.16);
}

.wct-char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.2rem;
}

.wct-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.wct-checkbox {
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.wct-checkbox input {
  margin-right: 0.2rem;
}

.wct-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wct-btn {
  cursor: pointer;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.05s ease-out, box-shadow 0.05s ease-out, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wct-btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.wct-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.wct-btn-copy {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16,185,129,0.3);
}

.wct-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  opacity: 0.95;
}

.wct-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  opacity: 0.9;
}

.wct-copy-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wct-copy-status {
  font-size: 0.85rem;
  color: #059669;
}

@media (max-width: 640px) {
  #width-converter-tool {
    padding: 1.1rem;
  }
  .wct-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .wct-btn {
    width: 100%;
    justify-content: center;
  }
}
