/* 全体 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
}

/* ヘッダー */
.header {
  background: #111827;
  color: #f9fafb;
  padding: 16px 24px;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-title {
  font-size: 20px;
  font-weight: 600;
}

.header-sub {
  font-size: 12px;
  opacity: 0.8;
}

/* メインレイアウト */
.main {
  max-width: 1120px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* カード共通 */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 20px 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* 入力エリア */
.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .field-group {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
  color: #4b5563;
}

.input,
.textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
}

.input:focus,
.textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
  background: #ffffff;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

/* ボタン */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.button-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.button-primary:hover {
  background: #1d4ed8;
}

.button-primary:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: default;
}

.button-secondary {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 14px;
  font-size: 11px;
  color: #4b5563;
}

/* ステータス表示 */
.status {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
}

.status.error {
  color: #b91c1c;
}

/* 結果カード */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.result-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}

.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .result-columns {
    grid-template-columns: 1fr;
  }
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.result-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
}

.result-item:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

/* フッターメモ */
.footer-note {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}