* { box-sizing: border-box; }
body { margin: 0; font-family: "Yu Gothic UI", "Hiragino Sans", sans-serif; color: #1f2937; background: #f3f4f6; }
header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
header a { color: #1d4ed8; text-decoration: none; font-size: 14px; }
header .logo { font-weight: bold; font-size: 18px; color: #1f2937; }
main { max-width: 440px; margin: 32px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 12px; }
label { display: block; font-size: 13px; color: #4b5563; margin: 12px 0 4px; }
input[type=email], input[type=password] { width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #374151; margin-top: 14px; }
.check input { margin-top: 3px; }
button { width: 100%; margin-top: 16px; padding: 10px; border: 0; border-radius: 6px; background: #1d4ed8; color: #fff; font-size: 15px; cursor: pointer; }
button.sub { background: #fff; color: #1d4ed8; border: 1px solid #1d4ed8; }
button.danger { background: #fff; color: #b91c1c; border: 1px solid #b91c1c; }
button:disabled { opacity: .6; cursor: default; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tabs button { margin: 0; background: #fff; color: #1f2937; border: 1px solid #cbd5e1; }
.tabs button.on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.msg { margin-top: 12px; font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.msg.ng { background: #fee2e2; color: #991b1b; }
.msg.ok { background: #dcfce7; color: #166534; }
.msg:empty { display: none; }
.hint { font-size: 12px; color: #6b7280; margin-top: 8px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.kv div:nth-child(even) { text-align: right; }
.link { display: inline-block; margin-top: 12px; font-size: 13px; color: #1d4ed8; cursor: pointer; text-decoration: underline; background: none; border: 0; width: auto; padding: 0; }
a { color: #1d4ed8; }
[hidden] { display: none !important; }
input[type=text], input[type=number] { width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; }
.hist { width: 100%; border-collapse: collapse; font-size: 13px; }
.hist td { padding: 6px 4px; border-top: 1px solid #f1f5f9; vertical-align: top; }
.hist td.r { text-align: right; white-space: nowrap; }
/* ルールのページ（利用規約・プライバシーポリシー・特定商取引法の表記・出典） */
main.doc { max-width: 760px; }
.doc .card { line-height: 1.8; font-size: 14px; }
.doc h2 { margin: 24px 0 8px; }
.doc h2:first-of-type { margin-top: 8px; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid #e5e7eb; }
.doc th { width: 30%; color: #4b5563; font-weight: normal; }
.doc .date { color: #6b7280; font-size: 13px; margin-top: 20px; }
footer.links { max-width: 760px; margin: 0 auto 32px; padding: 0 16px; font-size: 12px; text-align: center; }
footer.links a { margin: 0 6px; }
@media (max-width: 560px) { .doc th, .doc td { display: block; width: 100%; } .doc th { padding-bottom: 0; border-top: 1px solid #e5e7eb; } .doc td { border-top: 0; } }
