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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  background: #1a73e8;
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-logo {
  height: 32px;
  width: auto;
}

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

.header-fines {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
}

.header-criminal {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(220, 20, 60, 0.7);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Page header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.page-header h1 {
  font-size: 1.3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.7;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.btn-back {
  display: block;
  text-align: center;
  margin: 16px 0;
  color: #1a73e8;
}

.btn-like {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-like.liked {
  background: #e3f2fd;
  border-color: #1a73e8;
}

/* Report cards */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.report-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.report-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.report-card-link:hover .report-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.report-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.fine-amount {
  color: #d32f2f;
  font-size: 0.8rem;
  font-weight: 700;
}

.fine-total {
  color: #fff;
  background: #d32f2f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-criminal {
  background: #b71c1c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 4px;
}

.report-time {
  font-size: 0.8rem;
  color: #888;
}

.report-photo img {
  width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  max-height: 300px;
  object-fit: cover;
}

.report-description {
  font-size: 0.95rem;
  margin: 8px 0;
  white-space: pre-wrap;
}

.report-location {
  font-size: 0.85rem;
  margin: 4px 0;
}

.report-location a {
  color: #1a73e8;
  text-decoration: none;
}

.report-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.required {
  color: #d32f2f;
}

.form-group select,
.form-group textarea,
.form-group input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input[type="file"] {
  font-size: 0.9rem;
}

.violation-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.fine-total-preview {
  font-size: 0.85rem;
  color: #d32f2f;
  font-weight: 700;
  margin-top: 6px;
  min-height: 1.2em;
}

/* Wizard (multi-step form) */
.wizard-progress {
  background: #e0e0e0;
  border-radius: 8px;
  height: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: #1a73e8;
  border-radius: 8px;
  transition: width 0.3s ease;
}

.wizard-steps-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.wizard-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}

.wizard-step-dot.done {
  background: #a5d6a7;
  color: #fff;
  cursor: pointer;
}

.wizard-step-dot.active {
  background: #1a73e8;
  color: #fff;
}

.wizard-panel {
  display: none;
  animation: wizardFadeIn 0.25s ease;
}

.wizard-panel.active {
  display: block;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wizard-subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}

.wizard-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.wizard-skip {
  background: transparent;
  color: #888;
  border: 1px solid #ccc;
}

.wizard-skip:hover {
  background: #f5f5f5;
}

.wizard-confirm {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
}

.wizard-confirm-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.wizard-confirm-item:last-child {
  border-bottom: none;
}

.wizard-confirm-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 70px;
}

.wizard-confirm-value {
  font-size: 0.9rem;
  color: #333;
  text-align: right;
  word-break: break-all;
}

.wizard-confirm-fine {
  color: #d32f2f;
  font-weight: 700;
  font-size: 1rem;
}

.pii-server-error {
  background: #d32f2f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pii-warning {
  font-size: 0.85rem;
  color: #d32f2f;
  font-weight: 600;
  margin-top: 6px;
  min-height: 1.2em;
  background: #fce4ec;
  padding: 6px 10px;
  border-radius: 6px;
  display: none;
}

.pii-warning:not(:empty) {
  display: block;
}

.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover {
  border-color: #1a73e8;
  background: #f0f6ff;
}

.drop-zone.drag-over {
  border-color: #1a73e8;
  background: #e3f2fd;
}

.drop-zone-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 6px;
}

.drop-zone-or {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 8px;
}

.drop-zone-btn {
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.photo-preview {
  margin-top: 8px;
  position: relative;
  display: inline-block;
}

.photo-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-status {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

.address-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.address-search input[type="text"] {
  flex: 1;
}

.location-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-top: 8px;
  background: #e0e0e0;
}

.first-visit-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #1a73e8;
  margin-bottom: 12px;
  text-decoration: none;
}

.first-visit-link:hover {
  text-decoration: underline;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 16px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.95rem;
  color: #666;
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
}

.tab:hover {
  color: #333;
}

.tab.active {
  border-bottom-color: #1a73e8;
  color: #1a73e8;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Map legend */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-legend-count {
  font-size: 0.75rem;
  color: #666;
  margin-left: 2px;
}

/* Report card highlight */
.report-card-highlight {
  animation: card-highlight 2s ease-out;
}

@keyframes card-highlight {
  0% { box-shadow: 0 0 0 3px #1a73e8; }
  100% { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
}

/* Report map */
#report-map {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  background: #e0e0e0;
}

.map-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map-filters select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Detail page */
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
}

.detail-map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  background: #e0e0e0;
}

/* List toolbar */
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #666;
}

.per-page-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.per-page-select select {
  padding: 4px 28px 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.page-info {
  font-size: 0.9rem;
  color: #666;
}

/* Empty state */
.empty-message {
  text-align: center;
  color: #888;
  margin: 48px 0;
  font-size: 1rem;
}

/* Main spacing */
main.container {
  padding-top: 8px;
  padding-bottom: 24px;
}

h1 {
  margin: 16px 0;
}

form {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Admin table */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table thead th {
  background: #f5f5f5;
  font-weight: 600;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #fafafa;
}

.nowrap {
  white-space: nowrap;
}

.btn-danger {
  background: #d32f2f;
  color: #fff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.admin-table form {
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* Column list */
.column-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.column-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.column-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  transition: box-shadow 0.2s;
}

.column-card-link:hover .column-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.column-card-thumb {
  width: 120px;
  min-height: 100px;
  flex-shrink: 0;
}

.column-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.column-card-body {
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
}

.column-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.column-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-card-date {
  font-size: 0.8rem;
  color: #999;
}

.column-card-good {
  font-size: 0.75rem;
  color: #888;
}

/* Column detail */
.column-detail-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.column-detail-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}

.column-detail-image {
  margin-bottom: 16px;
}

.column-detail-image img {
  width: 100%;
  border-radius: 8px;
  max-height: 400px;
  object-fit: cover;
}

.column-detail-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.column-detail-content a {
  color: #1a73e8;
  word-break: break-all;
}

.column-detail-content h2 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
  padding-bottom: 4px;
  border-bottom: 2px solid #1a73e8;
}

.column-detail-content h3 {
  font-size: 1.05rem;
  margin: 1.2em 0 0.4em;
}

.column-detail-content p {
  margin: 0.6em 0;
}

.column-detail-content ul,
.column-detail-content ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}

.column-detail-content li {
  margin: 0.3em 0;
}

.column-detail-content strong {
  font-weight: 600;
}

.column-detail-content blockquote {
  border-left: 4px solid #1a73e8;
  margin: 0.8em 0;
  padding: 0.4em 1em;
  background: #f5f7fa;
  color: #555;
}

.column-detail-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.column-detail-content pre {
  background: #f5f5f5;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
}

.column-detail-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5em 0;
}

/* Column feedback */
.column-feedback {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.column-feedback-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-feedback-good,
.btn-feedback-bad {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-feedback-good:hover {
  border-color: #1a73e8;
  background: #e8f0fe;
}

.btn-feedback-bad:hover {
  border-color: #d32f2f;
  background: #fce4ec;
}

.btn-feedback-good.active {
  background: #e3f2fd;
  border-color: #1a73e8;
  font-weight: 600;
}

.btn-feedback-bad.active {
  background: #fce4ec;
  border-color: #d32f2f;
  font-weight: 600;
}

.feedback-count {
  margin-left: 4px;
}

.column-comment-form {
  margin-bottom: 20px;
}

.column-comment-form h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.column-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}

.column-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-comment-item {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.column-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.column-comment-date {
  font-size: 0.8rem;
  color: #888;
}

.btn-comment-good {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-comment-good:hover {
  border-color: #1a73e8;
  background: #e8f0fe;
}

.btn-comment-good.liked {
  background: #e3f2fd;
  border-color: #1a73e8;
}

.column-comment-text {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* SNS Share */
.sns-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.sns-share-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}

.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  color: #fff;
}

.sns-btn:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.sns-btn:active {
  transform: scale(0.95);
}

.sns-x {
  background: #000;
}

.sns-facebook {
  background: #1877F2;
}

.sns-line {
  background: #06C755;
}

/* Dashboard */
.dash-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.dash-card-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 4px;
}

.dash-card-label {
  font-size: 0.8rem;
  color: #888;
}

.dash-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-panel {
  flex: 1 1 calc(50% - 6px);
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dash-panel-wide {
  flex: 1 1 100%;
}

.dash-panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

/* About page */
.about-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1a73e8;
}

.about-section {
  margin-bottom: 24px;
}

.about-section h2 {
  font-size: 1.15rem;
  color: #1a73e8;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8;
}

.about-section h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-section p {
  margin: 8px 0;
  line-height: 1.8;
}

.about-section ul {
  padding-left: 1.5em;
  margin: 8px 0;
}

.about-section li {
  margin: 6px 0;
  line-height: 1.7;
}

.about-feature {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.about-contact {
  color: #666;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #333;
  color: #ccc;
  padding: 24px 0;
  margin-top: 32px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-about {
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #aad4ff;
  text-decoration: none;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #aad4ff;
  border-radius: 20px;
  color: #aad4ff;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-social-link:hover {
  background: rgba(170, 212, 255, 0.15);
  text-decoration: none;
}

/* YouTube embed 16:9 responsive */
.column-youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 12px 0;
}

.column-youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ===== Quiz / チャリパト・ゲームズ ===== */
.quiz-page { padding-bottom: 32px; }
.quiz-header { text-align: center; margin: 24px 0 20px; }
.quiz-main-title {
  font-size: 1.6rem; color: #1a73e8; margin-bottom: 4px;
}
.quiz-main-subtitle {
  font-size: 1.1rem; color: #555; margin-bottom: 12px;
}
.quiz-main-desc {
  font-size: 0.9rem; color: #666; line-height: 1.7;
}

.quiz-start {
  text-align: center; padding: 32px 16px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.quiz-start-info { margin-bottom: 20px; font-size: 1rem; }
.quiz-start-note { font-size: 0.85rem; color: #888; margin-top: 4px; }
.btn-lg { padding: 14px 40px; font-size: 1.1rem; }

.quiz-progress {
  height: 6px; background: #e0e0e0; border-radius: 3px;
  margin-bottom: 8px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: #1a73e8; border-radius: 3px;
  transition: width 0.3s ease;
}
.quiz-counter {
  text-align: center; font-size: 0.85rem; color: #888; margin-bottom: 16px;
}

.quiz-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.quiz-q-label {
  font-size: 0.8rem; font-weight: bold; color: #1a73e8;
  margin-bottom: 8px; text-transform: uppercase;
}
.quiz-q-text {
  font-size: 1.05rem; line-height: 1.7; color: #333; margin-bottom: 24px;
}

.quiz-choices {
  display: flex; gap: 12px;
}
.quiz-choice-btn {
  flex: 1; padding: 16px 12px; border-radius: 10px;
  font-size: 1rem; font-weight: bold; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.quiz-choice-violation {
  background: #fff5f5; color: #d32f2f; border-color: #ffcdd2;
}
.quiz-choice-violation:hover:not(:disabled) {
  background: #ffebee; border-color: #d32f2f;
}
.quiz-choice-safe {
  background: #f1f8e9; color: #388e3c; border-color: #c8e6c9;
}
.quiz-choice-safe:hover:not(:disabled) {
  background: #e8f5e9; border-color: #388e3c;
}
.quiz-choice-btn:disabled { opacity: 0.5; cursor: default; }
.quiz-choice-icon { display: block; font-size: 1.5rem; margin-bottom: 4px; }

.quiz-feedback {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center;
}
.quiz-feedback-icon { font-size: 3rem; margin-bottom: 8px; }
.quiz-feedback-icon.correct { color: #388e3c; }
.quiz-feedback-icon.wrong { color: #d32f2f; }
.quiz-feedback-result { font-size: 1.3rem; font-weight: bold; margin-bottom: 16px; }
.quiz-feedback-result.correct { color: #388e3c; }
.quiz-feedback-result.wrong { color: #d32f2f; }
.quiz-feedback-detail { text-align: left; margin-bottom: 20px; }
.quiz-answer-line { font-size: 1rem; font-weight: bold; margin-bottom: 8px; }
.quiz-answer-violation {
  background: #ffebee; color: #d32f2f; padding: 2px 10px;
  border-radius: 4px; font-size: 0.9rem;
}
.quiz-answer-safe {
  background: #e8f5e9; color: #388e3c; padding: 2px 10px;
  border-radius: 4px; font-size: 0.9rem;
}
.quiz-explanation {
  font-size: 0.9rem; color: #555; line-height: 1.7; margin-bottom: 8px;
}
.quiz-fine {
  font-size: 0.85rem; color: #d32f2f;
  background: #fff5f5; padding: 6px 12px; border-radius: 6px;
  display: inline-block; margin-bottom: 4px;
}
.quiz-law { font-size: 0.75rem; color: #999; }

.quiz-result-card {
  background: #fff; border-radius: 12px; padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center;
  margin-bottom: 16px;
}
.quiz-result-title { font-size: 1.2rem; color: #1a73e8; margin-bottom: 16px; }
.quiz-result-score { margin-bottom: 12px; }
.quiz-result-num { font-size: 3rem; font-weight: 900; color: #1a73e8; }
.quiz-result-sep { font-size: 1.5rem; color: #ccc; margin: 0 4px; }
.quiz-result-total { font-size: 1.5rem; color: #888; }
.quiz-result-unit { font-size: 0.9rem; color: #888; margin-left: 4px; }
.quiz-result-comment {
  font-size: 1rem; color: #333; font-weight: bold; margin-bottom: 20px;
}
.quiz-result-breakdown { text-align: left; }
.quiz-rb-row {
  font-size: 0.85rem; color: #555; padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.quiz-rb-correct { color: #388e3c; margin-right: 4px; }
.quiz-rb-wrong { color: #d32f2f; margin-right: 4px; }
.quiz-result-actions {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.quiz-result-actions .btn { flex: 1; }
.quiz-result-share { text-align: center; }
.quiz-result-share-label {
  font-size: 0.85rem; color: #888; margin-bottom: 8px;
}

/* ===== Games tab ===== */
.games-header { text-align: center; margin: 8px 0 20px; }
.games-title { font-size: 1.3rem; color: #1a73e8; margin-bottom: 4px; }
.games-subtitle { font-size: 0.9rem; color: #888; }
.games-grid { display: flex; flex-direction: column; gap: 12px; }
.game-card-link { text-decoration: none; color: inherit; }
.game-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 12px; padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s, transform 0.15s;
}
.game-card-link:hover .game-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.game-card-coming { opacity: 0.5; cursor: default; }
.game-card-icon {
  font-size: 2rem; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #e8f0fe; border-radius: 12px; flex-shrink: 0;
}
.game-card-body { flex: 1; min-width: 0; }
.game-card-title {
  font-size: 1rem; font-weight: bold; color: #333; margin-bottom: 4px;
}
.game-card-desc {
  font-size: 0.8rem; color: #888; line-height: 1.5;
  margin-bottom: 6px;
}
.game-card-badge {
  display: inline-block; font-size: 0.7rem;
  background: #1a73e8; color: #fff;
  padding: 2px 8px; border-radius: 10px;
}
.game-card-arrow {
  font-size: 1.2rem; color: #ccc; flex-shrink: 0;
}

/* ===== Find Violation game ===== */
.fv-page { padding-bottom: 32px; }
.fv-hud {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 6px;
}
.fv-hud-stage {
  font-size: 0.85rem; font-weight: 900; color: #1a73e8;
  letter-spacing: 1px;
}
.fv-hud-info { display: flex; gap: 14px; font-size: 0.85rem; color: #555; }
.fv-hud-item { white-space: nowrap; }
.fv-hud-miss { color: #d32f2f; }
.fv-stage-name {
  text-align: center; font-size: 0.9rem; color: #555;
  margin: 0 0 8px; font-weight: bold;
}
.fv-canvas-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  line-height: 0;
}
.fv-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.fv-popup {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 88%; max-width: 360px; background: #fff; border-radius: 16px;
  padding: 24px 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  text-align: center; z-index: 100;
  animation: fvPopIn 0.25s ease-out;
}
@keyframes fvPopIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.fv-popup-icon { font-size: 2.5rem; margin-bottom: 8px; }
.fv-popup-title {
  font-size: 1.2rem; color: #d32f2f; font-weight: bold; margin-bottom: 10px;
}
.fv-popup-text {
  font-size: 0.88rem; color: #555; line-height: 1.7; text-align: left;
  margin-bottom: 10px;
}
.fv-popup-fine {
  font-size: 0.85rem; color: #d32f2f;
  background: #fff5f5; padding: 6px 12px; border-radius: 6px;
  display: inline-block; margin-bottom: 6px;
}
.fv-popup-law { font-size: 0.75rem; color: #999; margin-bottom: 14px; }
.fv-bottom-bar {
  text-align: center; margin-top: 10px;
}
.fv-hint-btn { font-size: 0.85rem; padding: 8px 20px; }
.fv-clear-icon { font-size: 3rem; margin-bottom: 8px; }
.fv-clear-list { text-align: left; margin-top: 12px; }
.fv-result-stars { font-size: 2.5rem; margin: 12px 0; }
.fv-result-stat {
  font-size: 1rem; color: #1a73e8; font-weight: bold; margin-bottom: 4px;
}

/* ===== Event tag badge ===== */
.badge-event {
  display: inline-block; font-size: 0.7rem; font-weight: bold;
  background: #43a047; color: #fff;
  padding: 2px 8px; border-radius: 10px;
  margin-right: 4px;
}

/* ===== Event report form ===== */
.event-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 2px solid #43a047; border-radius: 12px;
  padding: 16px; margin-bottom: 20px;
}
.event-banner-icon { font-size: 2rem; flex-shrink: 0; }
.event-banner-body { flex: 1; }
.event-banner-title {
  font-size: 1.1rem; font-weight: bold; color: #2e7d32; margin-bottom: 4px;
}
.event-banner-desc { font-size: 0.85rem; color: #555; line-height: 1.6; }

.event-sighting-toggle {
  display: flex; gap: 10px; margin-bottom: 8px;
}
.event-toggle-btn {
  flex: 1; padding: 14px 8px; border-radius: 10px;
  font-size: 0.95rem; font-weight: bold; cursor: pointer;
  border: 2px solid #ddd; background: #fff; color: #666;
  transition: all 0.15s;
}
.event-toggle-btn.active {
  border-color: #1a73e8; background: #e8f0fe; color: #1a73e8;
}

.event-no-sighting-card {
  text-align: center; padding: 24px 16px;
  background: #f1f8e9; border-radius: 10px; margin-top: 16px;
}
.event-no-sighting-icon { font-size: 2.5rem; margin-bottom: 8px; }
.event-no-sighting-text {
  font-size: 0.9rem; color: #555; line-height: 1.7;
}

/* Violations table */
.violations-table-wrap {
  overflow-x: auto; margin: 0 -16px; padding: 0 16px;
}
.violations-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
  table-layout: fixed;
}
.violations-table th,
.violations-table td {
  border: 1px solid #ddd; padding: 8px 10px; text-align: left;
  vertical-align: middle;
}
.violations-table thead th {
  background: #1a73e8; color: #fff; font-weight: bold;
  white-space: nowrap; position: sticky; top: 0;
}
.violations-table tbody tr:nth-child(even) { background: #f9f9f9; }
.violations-table tbody tr:hover { background: #e8f0fe; }
.violations-table .fine-col {
  text-align: right; white-space: nowrap; font-weight: bold; width: 20%;
}
.violations-table .fine-amount {
  color: #d32f2f; font-size: 0.95rem;
}
.violations-table .law-col {
  font-size: 0.8rem; color: #666; width: 18%; overflow-wrap: break-word;
}
.violations-table .desc-col {
  font-size: 0.8rem; color: #555; width: 40%;
}
.violations-table thead th.desc-col {
  color: #fff;
}
.violations-table .violation-name {
  width: 22%; font-weight: bold; overflow-wrap: break-word;
}
.violations-table .criminal-penalty {
  color: #d32f2f; text-align: center;
}
.violations-table .fine-group-first td {
  border-top: 2px solid #bbb;
}
.violation-list-link {
  font-size: 0.8rem; margin-top: 8px; text-align: right;
}
.violation-list-link a {
  color: #1a73e8; text-decoration: underline;
}
