/**
 * モダン・ミニマルデザイン
 * カラーパレット: Blue 500 (#3B82F6), Green 500 (#10B981), Red 500 (#EF4444)
 */

/* リセット & ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1F2937;
  background-color: #F9FAFB;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* コンテナ */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* ヘッダー */
.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0 20px;
}

.header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 20px;
}

.nav {
  margin-top: 20px;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  color: #3B82F6;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: #EFF6FF;
}

/* カード */
.card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 32px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1F2937;
}

.card-error {
  border: 2px solid #FEE2E2;
}

/* フォーム */
.form-group {
  margin-bottom: 24px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.label-hint {
  font-weight: 400;
  color: #9CA3AF;
}

.textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #1F2937;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  transition: all 0.2s ease;
}

.textarea:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  color: #FFFFFF;
  background-color: #3B82F6;
}

.btn-primary:hover {
  background-color: #2563EB;
}

.btn-primary:disabled {
  background-color: #93C5FD;
  cursor: not-allowed;
}

.btn-success {
  color: #FFFFFF;
  background-color: #10B981;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-secondary {
  color: #374151;
  background-color: #F3F4F6;
}

.btn-secondary:hover {
  background-color: #E5E7EB;
}

/* 入力例 */
.form-examples {
  margin-top: 16px;
  padding: 16px;
  background-color: #F9FAFB;
  border-radius: 8px;
}

.examples-title {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 8px;
}

.examples-list {
  list-style: none;
}

.examples-list li {
  margin-bottom: 4px;
}

.examples-list code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: #3B82F6;
  background-color: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
}

/* プログレスバー */
.progress-wrapper {
  margin-bottom: 24px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background-color: #3B82F6;
  transition: width 0.3s ease;
  width: 0%;
}

.status-text {
  text-align: center;
  color: #6B7280;
  font-size: 14px;
}

/* イベントプレビュー */
.event-preview {
  margin-top: 24px;
  padding: 16px;
  background-color: #F9FAFB;
  border-radius: 8px;
}

.preview-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #374151;
}

.preview-details {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 14px;
}

.preview-details dt {
  font-weight: 500;
  color: #6B7280;
}

.preview-details dd {
  color: #1F2937;
}

/* 結果表示 */
.result-content {
  margin-bottom: 24px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* エラー */
.error-message {
  color: #EF4444;
  margin-bottom: 16px;
}

/* フッター */
.footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  color: #9CA3AF;
  font-size: 14px;
}

.footer a {
  color: #3B82F6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header h1 {
    font-size: 24px;
  }

  .card {
    padding: 24px;
  }

  .card-title {
    font-size: 20px;
  }

  .result-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
