/**
 * データアップロードページ用CSS
 * 協賛：ロゴアップロード / マルシェ：参考画像+サイトURL
 */

/* ── 全体レイアウト ── */
.tu-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
}
.tu-header {
  background: #43a047;
  padding: 14px 20px;
}
.tu-header h1 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tu-main {
  padding: 28px 20px 40px;
}
.tu-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 2px;
}
.tu-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

/* ── エラー表示 ── */
.tu-error {
  background: #ffebee;
  color: #c62828;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ── 申込者情報 ── */
.tu-applicant {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.tu-applicant dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
  font-size: 14px;
}
.tu-applicant dt {
  font-weight: 600;
  color: #666;
}
.tu-applicant dd {
  color: #333;
}

/* ── アップロード状態 ── */
.tu-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.tu-status--pending {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}
.tu-status--done {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.tu-status-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── 現在のファイル情報 ── */
.tu-current-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.tu-current-file-icon {
  color: #43a047;
  font-size: 20px;
  flex-shrink: 0;
}
.tu-current-file-name {
  flex: 1;
  font-weight: 500;
  word-break: break-all;
}

/* ── アップロード済みプレビュー ── */
.tu-preview {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}
.tu-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}
.tu-current-file a {
  color: #1976d2;
  text-decoration: none;
  word-break: break-all;
}
.tu-current-file a:hover {
  text-decoration: underline;
}

/* ── アップロードセクション ── */
.tu-upload-section {
  margin: 0 -20px;
  padding: 25px 20px 20px;
  background: #f5f5f5;
}
.tu-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #43a047;
  margin-bottom: 16px;
}
.tu-section-title--sub {
  font-size: 18px;
  margin-top: 28px;
}
.tu-section-desc {
  font-size: 13px;
  color: #777;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── サイトURL入力欄 ── */
.tu-url-field {
  margin-bottom: 24px;
}
.tu-url-field input[type="url"] {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tu-url-field input[type="url"]:focus {
  outline: none;
  border-color: #43a047;
}
.tu-url-field input[type="url"]::placeholder {
  color: #bbb;
}

/* ── ドラッグ&ドロップエリア ── */
.tu-upload-area {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}
.tu-upload-area:hover {
  border-color: #43a047;
  background: #f6fdf6;
}
.tu-upload-area.has-file {
  border-color: #43a047;
  border-style: solid;
  background: #f6fdf6;
}
.tu-upload-icon {
  font-size: 40px;
  color: #aaa;
  margin-bottom: 12px;
}
.tu-upload-area.has-file .tu-upload-icon {
  color: #43a047;
}
.tu-upload-text {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}
.tu-upload-btn-label {
  display: inline-block;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #43a047;
  border: 2px solid #43a047;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}
.tu-upload-btn-label:hover {
  background: #43a047;
  color: #fff;
}
.tu-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-top: 8px;
}

/* ── 注意事項 ── */
.tu-upload-note {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
  line-height: 1.8;
}
.tu-note {
  font-size: 11px;
  color: #999;
  margin: 20px 0 0;
  line-height: 1.7;
}

/* ── 送信ボタン ── */
.tu-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #43a047;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  letter-spacing: 0.1em;
}
.tu-submit-btn:hover {
  background: #388e3c;
}
.tu-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ── アップロード中 ── */
.tu-uploading {
  text-align: center;
  padding: 20px;
}
.tu-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #43a047;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: tuSpin 0.8s linear infinite;
}
@keyframes tuSpin {
  to { transform: rotate(360deg); }
}
.tu-uploading p {
  font-size: 14px;
  color: #666;
}

/* ── 完了メッセージ ── */
.tu-complete {
  margin-top: 16px;
}
.tu-complete-file {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* ── エラーメッセージ ── */
.tu-upload-error {
  background: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}

/* ── 代替連絡先 ── */
.tu-alt-contact {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}
.tu-alt-contact-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}
.tu-alt-contact-text {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 8px;
}
.tu-alt-contact-email a {
  font-size: 14px;
  font-weight: 600;
  color: #1976d2;
  text-decoration: none;
}
.tu-alt-contact-email a:hover {
  text-decoration: underline;
}

/* ── フッター ── */
.tu-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #eee;
}

/* ── PC対応 ── */
@media (min-width: 600px) {
  body { padding: 24px 0; background: #f5f5f5; }
  .tu-wrapper { border-radius: 12px; min-height: auto; }
}
