/* Pan% 有料Web版 公開ページ共通。配色は試し運用版 index.html と同じ。年配の方向けに文字・ボタンは大きめ。 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  color: #3a2e25;
  background: #faf6f0;
  line-height: 1.7;
}
.page { max-width: 640px; margin: 0 auto; padding: 16px; }
.site-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.site-head img { width: 44px; height: 44px; border-radius: 10px; }
.site-head a { color: inherit; text-decoration: none; font-size: 1.5rem; font-weight: bold; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; line-height: 1.4; }
h2 { font-size: 1.25rem; margin: 24px 0 8px; line-height: 1.4; }
p { margin: 0 0 12px; }
a { color: #8a5a2b; }
.card { background: #fff; border: 1px solid #e5d6c3; border-radius: 10px; padding: 16px; margin-bottom: 16px; }

/* 入力欄 */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: bold; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.9rem; color: #6a5545; font-weight: normal; }
input[type="email"], input[type="password"], input[type="text"] {
  display: block; width: 100%; min-height: 56px; font-size: 20px; font-family: inherit; color: inherit;
  padding: 10px 12px; border: 2px solid #c9b49c; border-radius: 8px; background: #fff;
}
input:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 2px; border-color: #8a5a2b; }

/* ボタン（大きく。スマホでは横いっぱい） */
.btn, button.btn {
  display: block; width: 100%; min-height: 60px; margin: 12px 0; padding: 12px 16px;
  font-size: 1.2rem; font-weight: bold; font-family: inherit; text-align: center; text-decoration: none; line-height: 1.4;
  border: 2px solid #8a5a2b; border-radius: 10px; background: #8a5a2b; color: #fff; cursor: pointer;
}
.btn.sub { background: #fff; color: #5a3a1c; border-color: #c98b4a; }
.btn.danger-outline { background: #fff; color: #b0361f; border-color: #b0361f; }
.btn:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #d9cfc4; border-color: #d9cfc4; color: #6a5a4c; cursor: not-allowed; }
@media (min-width: 600px) { .btn { font-size: 1.25rem; } }

/* お知らせ */
.msg { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-weight: bold; }
.msg[hidden] { display: none; }
.msg.info { background: #fff4e6; border: 2px solid #c98b4a; }
.msg.error { background: #fdecea; border: 2px solid #b0361f; color: #8a2614; }
.msg.ok { background: #eef6e8; border: 2px solid #5a8a3a; color: #2f5418; }
.test-banner { background: #3a2e25; color: #fff; text-align: center; font-size: 0.95rem; padding: 6px 8px; }
.test-banner[hidden] { display: none; }

/* 規約の本文 */
.doc { border: 2px solid #e5d6c3; border-radius: 10px; background: #fff; margin-bottom: 16px; }
.doc-head { padding: 12px 14px; border-bottom: 1px solid #e5d6c3; background: #fff4e6; border-radius: 10px 10px 0 0; }
.doc-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.doc-meta { font-size: 0.95rem; color: #5a4535; margin: 0; }
.doc-body { padding: 12px 14px; max-height: 50vh; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; }
.doc-body:focus-visible { outline: 3px solid #2a6fdb; }

/* 料金の表示 */
.price { font-size: 1.6rem; font-weight: bold; color: #5a3a1c; }

/* 同意のチェック（大きく押しやすく） */
.agree-box { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 3px solid #c98b4a; border-radius: 10px; background: #fff; cursor: pointer; font-weight: bold; font-size: 1.1rem; }
.agree-box input { width: 32px; height: 32px; margin: 2px 0 0; flex: none; accent-color: #8a5a2b; }

/* 表 */
table.info { width: 100%; border-collapse: collapse; background: #fff; }
table.info th, table.info td { border: 1px solid #e5d6c3; padding: 10px; text-align: left; vertical-align: top; }
table.info th { background: #fff4e6; width: 38%; }
@media (max-width: 480px) {
  table.info th, table.info td { display: block; width: 100%; }
  table.info th { border-bottom: none; }
}

.links { margin-top: 24px; font-size: 1rem; }
.links a { display: inline-block; padding: 8px 0; margin-right: 16px; }
.site-foot { margin-top: 32px; padding-top: 12px; border-top: 1px solid #e5d6c3; font-size: 0.95rem; }
.site-foot a { display: inline-block; padding: 6px 0; margin-right: 16px; }
.legal-flag { font-size: 0.9rem; color: #8a2614; font-weight: bold; }
[hidden] { display: none !important; }
@media (max-width: 400px) {
  body { font-size: 17px; }
  .page { padding: 12px; }
}
.hint { font-size: 0.95rem; color: #6a5545; }
.card > h2:first-child { margin-top: 0; }
