/* register.html のスタイル。
   元は register.html 内の <style> タグ1個。
   2026-08-27 に「必須／任意」のバッジを追加した（#155）。 */

.register-form { max-width: 520px; margin: 2rem auto; }

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
  margin-bottom: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-group label:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}
.checkbox-group label:has(input:checked) {
  border-color: var(--primary);
  background: #fef2f2;
}

/* カスタム四角チェックボックス */
.checkbox-group input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin: 0;
  cursor: pointer;
  position: relative;
  background: white;
  transition: background 0.15s, border-color 0.15s;
}
.checkbox-group input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.q-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.other-text {
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}
.other-text input {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
}

/* 「会社メールと同じ」チェック（2026-08-20 追加）。
   親が <label> の入れ子になるので、ここだけ横並び・小さめに整える。 */
.same-email {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: #6b7280;
  cursor: pointer;
}
.same-email input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 0;
  cursor: pointer;
}
/* チェック中の個人メール欄。触れないことを見た目でも示す */
input.is-mirrored {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}


/* ===== 必須／任意のバッジ（#155） =====
   赤い * だけでは「印が無い＝任意」なのか「付け忘れ」なのか判断できず、
   ユーザーテストで2人が業種(Q1)の前で止まった。**両方に印を出す**ことで、
   凡例を読まなくても分かるようにする。 */
.req,
.opt {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.22rem 0.4rem;
  border-radius: 3px;
  vertical-align: 0.1em;
  margin-left: 0.4rem;
  letter-spacing: 0.04em;
}
.req {
  background: var(--primary);
  color: #ffffff;
}
.opt {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* フォーム冒頭の案内 */
.register-intro {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #4b5563;
}

/* 選択肢で迷ったときの逃げ道を、選ぶ前に見せる */
.q-hint {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #6b7280;
}
