* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
  line-height: 1.6;
  min-height: 100vh;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 12px 48px; }
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 20px 16px;
  margin-bottom: 16px;
}
h1 { font-size: 1.25rem; margin-bottom: 8px; }
h2 { font-size: 1.05rem; margin-bottom: 8px; }
p.lead { font-size: .9rem; color: #52606d; margin-bottom: 12px; }
.muted { color: #7b8794; font-size: .8rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
.req { color: #d64545; font-size: .7rem; border: 1px solid #d64545; border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=password], select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px; /* iOSのズーム防止 */
  border: 1px solid #cbd2d9;
  border-radius: 8px;
  background: #fff;
}
input:focus, select:focus { outline: 2px solid #2680c2; border-color: #2680c2; }
.invalid { border-color: #d64545 !important; background: #fff5f5; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row > .shrink { flex: 0 0 auto; }
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 12px 16px;
}
.btn-primary {
  width: 100%;
  background: #2680c2;
  color: #fff;
  font-weight: 700;
  margin-top: 16px;
}
.btn-primary:disabled { background: #9fb3c8; cursor: default; }
.btn-sub {
  background: #e4e7eb;
  color: #323f4b;
  font-size: .85rem;
  padding: 8px 12px;
}
.btn-danger-link {
  background: none;
  color: #d64545;
  font-size: .8rem;
  padding: 4px;
  text-decoration: underline;
}
.guest-card { border: 1px solid #e4e7eb; border-radius: 10px; padding: 12px; margin-top: 14px; }
.guest-card .gc-head { display: flex; justify-content: space-between; align-items: center; }
.badge { display: inline-block; background: #2680c2; color: #fff; font-size: .72rem; border-radius: 999px; padding: 2px 10px; }
.badge.gray { background: #7b8794; }
.radio-group { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.radio-group label {
  flex: 1 1 40%;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #cbd2d9; border-radius: 8px;
  padding: 10px; margin: 0;
  font-weight: 400; font-size: .85rem;
  cursor: pointer;
}
.radio-group input { accent-color: #2680c2; }
.err { color: #d64545; font-size: .85rem; margin-top: 8px; }
.note { background: #f0f4f8; border-radius: 8px; padding: 10px 12px; font-size: .8rem; color: #52606d; margin-top: 12px; }
.lang-bar { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.lang-bar button {
  background: #fff; border: 1px solid #cbd2d9;
  font-size: .78rem; padding: 4px 10px; border-radius: 999px; color: #52606d;
}
.lang-bar button.active { background: #2680c2; border-color: #2680c2; color: #fff; }
.summary { background: #f0f4f8; border-radius: 8px; padding: 12px; margin-bottom: 8px; font-size: .9rem; }
.summary b { font-size: 1rem; }
.upload-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.upload-status { font-size: .8rem; color: #52606d; }
.upload-status.ok { color: #2f855a; font-weight: 700; }
.upload-status.err { color: #d64545; }
.hidden { display: none !important; }
.center { text-align: center; }
.done-icon { font-size: 3rem; margin: 12px 0; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-sub.btn-loading::after { border-color: rgba(0,0,0,.2); border-top-color: #52606d; }

/* ---- 管理ダッシュボード (AdminDashboard.html Styles.html外の追加分) ---- */
.wrap.admin-wrap { max-width: 1080px; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { border-bottom: 1px solid #e4e7eb; padding: 6px 8px; text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #f0f4f8; position: sticky; top: 0; }
.table-scroll { overflow-x: auto; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .75rem; }
.chip.ok { background: #e3f9e5; color: #2f855a; }
.chip.warn { background: #fff3c4; color: #8d5c00; }
.chip.bad { background: #ffe3e3; color: #ab091e; }
.chip.gray { background: #e4e7eb; color: #52606d; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.stat { background: #f0f4f8; border-radius: 8px; padding: 8px 14px; }
.stat b { font-size: 1.3rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; align-items: center; }
.toolbar input, .toolbar select { width: auto; }
button.mini { font-size: .75rem; padding: 4px 8px; background: #e4e7eb; border-radius: 6px; }
button.mini:hover { background: #cbd2d9; }
#detail-modal, #copy-modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
#detail-modal .card { max-height: 85vh; overflow: auto; max-width: 900px; width: 100%; }
#copy-modal .card { max-width: 420px; width: 100%; }
.copy-row input[type=text] { flex: 1; }
textarea.csv-out { width: 100%; height: 120px; font-size: .75rem; margin-top: 8px; }
