/* MSフォーラム会員システム — ログイン
   会員が見慣れたシクミネットの配置に寄せる。ログインの方法が変わるだけでも
   戸惑う方がいるので、見た目まで変えて「別のサイトに来た」と思わせない。
   マスコットはTAKERUの青年版に統一する。 */
:root {
  --navy:   #3f3f9e;      /* シクミネットのボタンに近い紺 */
  --navy-d: #32327f;
  --ink:    #23242b;
  --sub:    #6b7280;
  --line:   #d8dbe6;
  --bg:     #f4f6fb;
  --warn:   #c0392b;
}
* { box-sizing: border-box; }
/* height:100% は縛りすぎる。中身が画面より高いときに下が切れる。
   min-height で足りる。 */
/* 文字の基準。既定の16pxだと年配の方には小さい。
   ここを上げると rem で書いた全画面が一度に大きくなる。
   見た目の上品さより、読み違えないことを優先する。 */
html { height: 100%; font-size: 18px; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* 上の帯 */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
}
header .brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
header .sys   { font-size: .74rem; color: var(--sub); }

/* 世界地図の背景。画像を持たず、点の集まりで表す（軽い） */
main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 200px;
  /* overflow:hidden にすると、中身が画面より高いとき下が切れて
     スクロールもできなくなる。点模様は mask で外に出ないので要らない。 */
}
main::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #c3c8e4 1.1px, transparent 1.2px);
  background-size: 13px 13px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 45%, #000 40%, transparent 78%);
          mask-image: radial-gradient(ellipse 72% 58% at 50% 45%, #000 40%, transparent 78%);
}

/* 中央の白いカード */
.card {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 18px rgba(30,40,90,.07);
  padding: 34px 34px 30px;
}
h1 { font-size: 1.18rem; text-align: center; margin: 0 0 6px; font-weight: 700; }
.lead { font-size: .95rem; color: var(--ink); text-align: center; line-height: 1.9; margin: 0 0 22px; }
.key { color: #1d4ed8; font-weight: 700; }   /* 青の太字だけ。マーカーは字にかぶり、下線はリンクと間違える（牧村さん） */

label { display: block; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
input[type=email], input[type=text] {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #f7f8fc; color: var(--ink);
  font-family: inherit; font-size: 1rem;
}
input:focus { outline: none; border-color: var(--navy); background: #fff; }

/* 6桁は大きく、間隔を空けて読みやすく */
input.code {
  text-align: center; letter-spacing: .5em; text-indent: .5em;
  font-size: 1.7rem; height: 62px; font-family: 'Courier New', monospace;
}

button {
  width: 100%; height: 48px; margin-top: 18px;
  background: var(--navy); color: #fff; border: 0; border-radius: 4px;
  font-family: inherit; font-size: .96rem; font-weight: 700; cursor: pointer;
}
button:hover:not(:disabled) { background: var(--navy-d); }
button:disabled { background: #a8acc4; cursor: default; }

.note  { font-size: .92rem; color: #3d4150; line-height: 1.9; margin-top: 18px; }
.note a { color: var(--navy); }
.msg   { font-size: .95rem; line-height: 1.85; padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; }
.msg-err  { background: #fdecea; border: 1px solid #f5c6c2; color: var(--warn); }
.msg-info { background: #eef2fb; border: 1px solid #ccd6f0; color: var(--navy-d); }
.back  { display: inline-block; margin-top: 14px; font-size: .78rem; color: var(--sub); }

/* 右下のタケル＆サクラ */
.mascots {
  position: fixed; right: 18px; bottom: 0;
  width: clamp(120px, 17vw, 210px);
  pointer-events: none; user-select: none;
}
@media (max-width: 640px) {
  main { padding-bottom: 150px; }
  .card { padding: 26px 20px 24px; }
  .mascots { width: 118px; right: 6px; opacity: .92; }
}

footer {
  flex-shrink: 0; text-align: center;
  font-size: .72rem; color: var(--sub);
  padding: 14px 16px 18px;
  position: relative; z-index: 1;
}
footer a { color: var(--sub); }

/* メールアドレスの変更を取り消す画面 */
.undo-box {
  background: #f7f8fc; border: 1px solid var(--line); border-radius: 5px;
  padding: 14px 16px; margin: 4px 0 18px;
}
.undo-row { display: flex; gap: 12px; font-size: .84rem; padding: 4px 0; align-items: baseline; }
.undo-row span { color: var(--sub); font-size: .76rem; flex: 0 0 62px; }
.undo-row b { word-break: break-all; }
.undo-when {
  font-size: .72rem; color: var(--sub); margin-top: 8px;
  border-top: 1px solid var(--line); padding-top: 8px;
}

/* お振込先。申込の画面と会員ページの両方で使う */
/* お振込先。請求書と同じで、事務的に詰めて並べる。
   欄によって大きさを変えると視線が散るので、全部同じにする。 */
.bank {
  border: 1px solid #f0dcaa; background: #fff8e8; border-radius: 6px;
  padding: 2px 18px 12px; margin: 4px 0 16px;
}
.bank-h {
  font-size: .95rem; font-weight: 700; color: #8a6d1f;
  padding: 11px 0 8px; border-bottom: 1px solid #f0dcaa;
}
.bank dl { display: grid; grid-template-columns: 132px 1fr; margin: 0; font-size: 1.02rem; }
.bank dt {
  color: #8a6d1f; font-size: .95rem; padding: 6px 0; line-height: 1.5;
}
.bank dd {
  margin: 0; padding: 6px 0; line-height: 1.5;
  font-variant-numeric: tabular-nums;                 /* 数字の桁を揃える */
}
.bank dt.hi { font-weight: 700; }
.bank dd.hi { font-weight: 700; letter-spacing: .03em; }
@media (max-width: 520px) {
  .bank dl { grid-template-columns: 1fr; }
  .bank dt { padding: 7px 0 0; }
  .bank dd { padding: 0 0 7px; }
}

/* はじめての方へ。ログインの下に置く。
   白抜きだと上の note のリンクに紛れて見つけにくかったので、
   枠で囲って塗りつぶしのボタンにする。 */
.tojoin {
  margin-top: 26px; padding: 17px 18px 19px;
  background: #f4f6fd; border: 1px solid #ccd6f0; border-radius: 6px;
  text-align: center;
}
.tojoin p {
  margin: 0 0 12px; font-size: .84rem; font-weight: 700; color: var(--navy-d);
}
.tojoin a {
  display: block; height: 48px; line-height: 48px;
  background: var(--navy); color: #fff; border-radius: 4px;
  font-size: .95rem; font-weight: 700; text-decoration: none;
}
.tojoin a:hover { background: var(--navy-d); }
