*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #f5f5f0;
  font-family: system-ui, -apple-system, 'Helvetica Neue', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: #222;
  line-height: 1.7;
}

.app {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #3a5ba0;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text { font-size: 16px; font-weight: 600; }

.logout-btn {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.logout-btn:hover { background: #eee; }

.disclaimer {
  font-size: 12.5px;
  color: #8a6d3b;
  background: #fcf6e5;
  border: 1px solid #f0e2b8;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 1.25rem;
}

.uploader {
  background: white;
  border: 0.5px solid #ddd;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 2px dashed #bcc6dd;
  border-radius: 10px;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.file-label:hover { border-color: #3a5ba0; }
.file-label.dragover { border-color: #3a5ba0; background: #eef2fb; }
.file-label input[type="file"] { display: none; }

#check-btn {
  width: 100%;
  height: 46px;
  margin-top: 1rem;
  background: #3a5ba0;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
#check-btn:hover { background: #2f4a85; }
#check-btn:disabled { background: #aaa; cursor: not-allowed; }

.status {
  font-size: 13px;
  color: #555;
  min-height: 20px;
  margin-bottom: 0.5rem;
}

.result {
  background: white;
  border: 0.5px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 40px;
}
.result:empty { display: none; }

.result h1 { font-size: 20px; margin: 1rem 0 0.5rem; }
.result h2 {
  font-size: 17px;
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}
.result h3 { font-size: 15px; margin: 1.1rem 0 0.4rem; color: #2f4a85; }
.result p { margin: 0.5rem 0; }
.result ul { margin: 0.4rem 0 0.8rem 1.3rem; }
.result li { margin: 0.25rem 0; }
.result strong { font-weight: 600; }
