/* ===== 基本 ===== */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #fff;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 14px 24px; }

/* ===== ヘッダー（午前中版の見え方を維持／スクロール時に残る） ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eee;
  text-align: center; padding: 10px 10px 12px;
}
.site-header h1 { margin: 6px 0 0; font-size: 22px; }
.site-header .sub { margin: 4px 0 0; font-size: 14px; color: #555; }
.logo { max-width: 220px; height: auto; display:block; margin: 8px auto 4px; }

/* ===== フォーム ===== */
label { display:block; margin: 14px 0 8px; font-weight: 700; font-size: 14px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  font-size: 16px; border: 1px solid #ddd; border-radius: 12px; background:#fff;
}
textarea { min-height: 180px; resize: vertical; }
.count { text-align:right; color:#666; margin:4px 0 10px; font-size: 13px; }
.note {
  background:#f7f9fb; border:1px solid #e7edf3; border-radius: 12px;
  padding: 12px; color:#0b3a57; margin: 14px 0 18px;
}
.rowbtn { display:flex; gap:10px; }
.rowbtn button { flex:1; }

.btn-main {
  display:block; width:100%;
  background:#000; color:#fff; border:none; border-radius: 999px;
  padding: 16px; font-size:18px; cursor:pointer;
}
.btn-main:active { transform: translateY(1px); }
button.secondary {
  background:#f1f1f1; color:#111; border:1px solid #e5e5e5; border-radius:12px; padding:10px 12px;
}

/* ===== フッター ===== */
footer { text-align:center; padding: 10px 0 20px; color:#555; font-size: 13px; }
.footer-qr { margin: 6px 0 0; }
.footer-qr img { width: 56px; height:auto; display:inline-block; }
@media (min-width:768px){ .footer-qr img { width: 64px; } .site-header h1{font-size:24px;} .site-header .sub{font-size:15px;} }

/* ===== 確認モーダル ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.38); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background:#fff; border-radius: 14px; max-width: 720px; width: 100%;
  padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.modal h2 { margin: 4px 0 10px; font-size: 18px; }
.box { display:grid; grid-template-columns: 120px 1fr; gap:8px; padding:8px 0; border-bottom:1px solid #eee; }
.box:last-child { border-bottom:none; }
.k { color:#444; }
.v { white-space: pre-wrap; }
.v.files { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color:#333; }
.rowbtn .btn { border-radius: 10px; background:#111; color:#fff; padding:12px 14px; border:none; cursor:pointer; }
.rowbtn .btn + .btn { background:#555; }
.footlink { text-align:center; margin: 12px 0 0; }
.footlink a { color:#0b57d0; text-decoration: underline; }
