/* 小さなページ（申込み確認・ログイン・マイページ・法律ページ）用。色は表玄関（styles.css）と同じ値 */
:root {
  --paper: #f2f4f6;
  --surface: #ffffff;
  --ink: #18212b;
  --ink-soft: #5b6674;
  --navy: #1a3358;
  --navy-deep: #0f2137;
  --brass: #315f9f;
  --brass-pale: #dce8f7;
  --rule: #d6dce3;
  --alert: #9a3b2a;
  --mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--gothic); font-size: 16px; line-height: 1.85; }
a { color: var(--brass); }
img { max-width: 100%; height: auto; }

.bar { background: var(--navy-deep); }
.bar__in { max-width: 760px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar__mark { font-family: var(--mincho); letter-spacing: .2em; color: #fff; text-decoration: none; font-size: 18px; }
.bar__link { color: rgba(255,255,255,.8); font-size: 14px; }

.box { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
.h1 { font-family: var(--mincho); font-weight: 600; font-size: clamp(24px, 5vw, 32px); line-height: 1.5; margin: 0 0 20px; }
.h2 { font-family: var(--mincho); font-weight: 600; font-size: 20px; margin: 40px 0 12px; }
.lead { color: var(--ink-soft); margin: 0 0 28px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 24px 20px; margin: 0 0 24px; }

.terms { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.terms th { width: 34%; background: #f7f9fb; font-weight: 700; }
@media (max-width: 560px) {
  .terms, .terms tbody, .terms tr, .terms th, .terms td { display: block; width: 100%; }
  .terms th { border-bottom: 0; padding-bottom: 4px; }
  .terms td { padding-top: 0; }
}
.em { color: var(--navy); font-weight: 700; }

.field { display: block; margin: 0 0 18px; }
.field__label { display: block; font-weight: 700; margin-bottom: 6px; }
.input { width: 100%; padding: 14px 12px; font-size: 17px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
.input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--brass); color: #fff; border: 0; border-radius: 2px; padding: 16px 28px; font: inherit; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.btn:hover { background: #234b82; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn--full { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--brass); border: 1px solid var(--brass); }
.btn--ghost:hover { background: var(--brass-pale); }
.actions { display: grid; gap: 12px; margin-top: 24px; }

.msg { margin: 16px 0 0; font-size: 15px; }
.msg--error { color: var(--alert); }
.note { font-size: 14px; color: var(--ink-soft); }

.legal h2 { font-family: var(--mincho); font-size: 18px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15px; }
.legal ol, .legal ul { padding-left: 1.4em; }

.foot { background: var(--navy-deep); color: rgba(255,255,255,.55); text-align: center; padding: 32px 16px; font-size: 13px; }
.foot a { color: rgba(255,255,255,.75); margin: 0 8px; }

/* サーバーが返す小さな画面 */
.plain { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.plain__box { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 32px 24px; }
.plain__mark { font-family: var(--mincho); letter-spacing: .2em; margin: 0 0 20px; }
.plain__mark a { color: var(--navy); text-decoration: none; }
.plain__h { font-family: var(--mincho); font-size: 22px; line-height: 1.5; margin: 0 0 16px; }
.plain__note { font-size: 14px; color: var(--ink-soft); }

/* hidden属性を .btn の display 指定より優先する */
[hidden] { display: none !important; }
