:root {
  --brand: #003040;
  --accent: #f39c12;
  --text: #1f2a30;
  --muted: #5b6770;
  --line: #dde3e6;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --tbd: #c0392b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--brand); }

/* ロゴの文字が紺色なので、ヘッダーは白地にする */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brand);
  padding: 12px 16px;
}
.site-header a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--brand); }
.brand img { display: block; height: 31px; width: auto; }
.brand small { font-size: .85rem; color: var(--muted); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 { font-size: 1.5rem; line-height: 1.4; margin: 0 0 16px; color: var(--brand); }
h2 { font-size: 1.2rem; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
h3 { font-size: 1.05rem; margin: 24px 0 8px; }

.lead { color: var(--muted); }

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  background: var(--bg);
}
.card h3 { margin-top: 0; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table td.price { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table thead td { text-align: right; font-size: .8rem; color: var(--muted); padding-bottom: 2px; }

.pay-method h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pay-currency {
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.note { font-size: .9rem; color: var(--muted); }

.steps { padding-left: 1.4em; }
.steps li { margin: 6px 0; }

.notice {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
}

dl.legal { margin: 0; }
dl.legal dt { font-weight: 700; margin-top: 18px; color: var(--brand); }
dl.legal dd { margin: 4px 0 0; }

.tbd { color: var(--tbd); font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 20px 16px 32px;
  font-size: .9rem;
}
.site-footer nav { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { max-width: 720px; margin: 12px auto 0; color: var(--muted); }

/* ---------- スタッフ用ページ（/staff/） ---------- */

.staff-version { font-weight: 700; color: var(--brand); margin: 0 0 4px; }

.staff-list { list-style: none; padding: 0; margin: 0; }
.staff-list li { margin: 10px 0; }
.staff-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
}
.staff-item:active { background: var(--bg-soft); }
.staff-price { font-weight: 700; white-space: nowrap; text-align: right; }
.staff-price small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }

/* お客様に見せる QR の画面: 白地・高コントラスト・QR をできるだけ大きく */
.staff-qr-page { background: #fff; }
.staff-qr { text-align: center; padding: 20px 16px 32px; }
.staff-qr-service { font-size: 1.4rem; font-weight: 700; color: var(--brand); line-height: 1.4; }
.staff-qr-variant { font-size: 1.2rem; margin-top: 2px; }
.staff-qr-code svg {
  display: block;
  width: min(86vw, 62vh, 420px);
  height: auto;
  margin: 12px auto;
  shape-rendering: crispEdges;
}
.staff-qr-price { font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.staff-qr-howto { margin: 12px 0 0; }
.staff-qr-qty { margin: 8px 0 0; color: var(--tbd); font-weight: 700; }
.staff-qr-meta { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.staff-back { display: inline-block; margin-top: 8px; padding: 10px 16px; }
.staff-qr-totals { margin: 16px auto 0; border-collapse: collapse; font-size: .95rem; }
.staff-qr-totals caption { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.staff-qr-totals th, .staff-qr-totals td { padding: 3px 14px; border-bottom: 1px solid var(--line); }
.staff-qr-totals th { font-weight: 400; text-align: center; }
.staff-qr-totals td { text-align: right; font-weight: 700; }
.staff-qr-logo { display: block; height: 26px; width: auto; margin: 0 auto 12px; }

/* LINE 公式アカウントの案内カード */
.line-card {
  max-width: 340px;
  margin: 24px auto;
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  background: #fff;
}
.line-card h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
  color: var(--text);
}
.line-card-lead { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.line-card-qr { display: block; width: 160px; height: 160px; margin: 16px auto 4px; }
.line-card-note { margin: 0 0 16px; color: var(--muted); font-size: .8rem; }

/* LINE のブランドカラーのボタン */
.line-button {
  display: block;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 8px;
}
.line-button:active { opacity: .85; }
.staff-qr-cash { margin: 4px 0 0; color: var(--muted); }
