/* style.css — 電子クーポン（ご年配の利用者向けに文字は大きめ） */

:root {
  --accent: #06c755; /* LINEカラーのグリーン */
  --accent-dark: #05a648;
  --bg: #fafafa;
  --text: #222;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#app { max-width: 480px; margin: 0 auto; padding: 0 16px 16px; min-height: 100vh; }

.header-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 -16px 16px;
  width: calc(100% + 32px);
  max-width: none;
}

.screen { display: none; }
.screen.active { display: block; }

h1 { font-size: 22px; margin: 8px 0 16px; }
p { line-height: 1.8; font-size: 17px; }
.muted { color: #999; font-size: 15px; }
.fineprint { font-size: 14px; color: #888; text-align: center; }

.center {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.spinner {
  width: 40px; height: 40px;
  border: 4px solid #ddd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.big-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.9;
  white-space: pre-line;
}

.used-image {
  display: block;
  max-width: 220px;
  width: 60%;
  height: auto;
  margin: 0 auto;
}

.desc-text {
  font-size: 18px;
  line-height: 1.9;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
}

.instruction-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
  margin: 16px 0 8px;
}

.shop-name {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 0;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 18px 28px;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
}
button:active { background: var(--accent-dark); }
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: #eee; color: #333; }

/* 履歴 */
.history-list { margin: 8px 0; }
.history-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}
.history-row .hdate { color: #666; }
.history-row .hshop { font-weight: 700; }

/* 全画面共通フッタ */
.app-footer { margin-top: 24px; padding-bottom: 16px; }
.app-footer-line { border-top: 1px solid #ddd; }
.app-footer-text {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}
