/* H+ 放置物報告フォーム */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: #f0f7ff;
  color: #1e293b;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #bae6fd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}
.app-header .logo { font-size: 22px; }
.app-header h1 { font-size: 17px; color: #0369a1; }

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.view { text-align: center; }
.hidden { display: none !important; }

.description {
  text-align: left;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.reporter {
  text-align: left;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.field { text-align: left; margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}
.req {
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
}
.opt {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.photo-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.photo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 2px dashed #7dd3fc;
  border-radius: 12px;
  background: #fff;
  color: #0284c7;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
.photo-add:active { background: #e0f2fe; }
.photo-add.busy { opacity: 0.5; pointer-events: none; }
.photo-add-icon { font-size: 20px; }

textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px; /* iOSのズーム防止 */
  font-family: inherit;
  background: #fff;
  resize: vertical;
}
textarea:focus { outline: 2px solid #38bdf8; border-color: transparent; }

.btn-main {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #0284c7;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.05s;
}
.btn-main:active { transform: scale(0.98); }
.btn-main:disabled { background: #94a3b8; cursor: not-allowed; }

.btn-sub {
  margin-top: 16px;
  padding: 10px 24px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 48px auto 16px;
  border: 4px solid #bae6fd;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: #64748b; font-size: 14px; line-height: 1.8; }
.big { font-size: 48px; margin: 40px 0 16px; }
.error-text { color: #be123c; font-size: 14px; line-height: 1.7; }
.done-text { font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
