/*
 * webmemo.tech Custom Components
 * Tailwind v4 Preflight によりリセットされたスタイルを補完し、
 * 各ツールで共通利用するクラスを定義します。
 */

/* 1. Global Resets (Preflight Fixes) */
h1 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 900;    /* font-black */
  color: #1e293b;      /* slate-800 */
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem; /* text-4xl */
  }
}

input, select, textarea {
  border: 1px solid #e2e8f0; /* slate-200 */
}

/* 2. Custom wm- components */

.wm-tool-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.05em;
}

@media (min-width: 768px) {
  .wm-tool-title {
    font-size: 2.25rem;
  }
}

.wm-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b; /* slate-500 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.wm-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  outline: none;
}

.wm-input:focus {
  border-color: #2563eb; /* blue-600 */
  box-shadow: 0 0 0 4px #dbeafe; /* blue-100 */
}

.wm-result-card {
  background: linear-gradient(to bottom right, #2563eb, #1d4ed8);
  border-radius: 1.5rem;
  padding: 2rem;
  color: #ffffff;
}

.wm-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dbeafe;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wm-btn-copy {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-btn-copy:hover {
  background-color: #eff6ff;
}

.wm-btn-copy.success {
  background-color: #22c55e;
  color: #ffffff;
  border-color: #16a34a;
}

.wm-policy-box {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: #f1f5f9;
  border-radius: 1rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.625;
  text-align: center;
}
