/* ============================================================
   index.css — ログインページ専用スタイル
   ============================================================ */

.warning {
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
  color: rgb(190, 30, 30);
  border: 1px solid rgb(190, 30, 30);
  background: rgb(250, 225, 225);
  text-align: center;
}

.text-center {
  text-align: center;
}

/* ── ログインページヘッダー ── */
.login-header .header-inner {
  max-width: 1200px;
}

/* ── メインレイアウト ── */
.login-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

/* ── 注意事項カード ── */
.notice-card {
  background: #fff;
  border: 1px solid var(--warm-gray);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.notice-card__tabs {
  display: flex;
  border-bottom: 1px solid var(--warm-gray);
}

.tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: #f4f2ef;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--navy);
}

.tab-btn:hover:not(.is-active) {
  background: var(--warm-gray);
}

.tab-panel {
  display: none;
  padding: 28px 32px 32px;
}

.tab-panel.is-active {
  display: block;
}

.notice-card__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  font-family: 'Noto Serif JP', serif;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--warm-gray);
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-list__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dark);
}

.notice-list__num {
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-list__item--hidden {
  display: none;
}

.notice-list.is-expanded .notice-list__item--hidden {
  display: grid;
}

.notice-card__more-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--warm-gray);
  border-radius: 3px;
  padding: 7px 14px;
  color: var(--navy);
  font-size: 13px;
  cursor: pointer;
  margin-top: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
}

.notice-card__more-btn:hover {
  background: var(--warm-gray);
}

.notice-card__more-btn svg {
  width: 13px;
  height: 13px;
}

.notice-card__warning {
  margin-top: 20px;
  background: #fafaf7;
  border: 1px solid var(--warm-gray);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── ログインカード ── */
.login-card {
  background: #fff;
  border: 1px solid var(--warm-gray);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: 36px 36px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 24px;
}

.login-card__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.login-card__subtitle {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.6;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #f8f6f2;
  border: 1px solid var(--warm-gray);
  border-radius: 3px;
  margin-bottom: 24px;
  cursor: pointer;
}

.agree-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.agree-row__label {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.agree-row__label span {
  color: var(--text-mid);
  font-size: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}

.form-label__sub {
  font-size: 11.5px;
  color: var(--text-mid);
  font-weight: 400;
  margin-left: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d4d0cb;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: #bbb;
  font-size: 13px;
}

.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.08);
}

.edu-note {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8f6f2;
  border-left: 2px solid var(--gold);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
  background: #2a3d6b;
}

.login-btn:active {
  transform: translateY(1px);
}

.login-btn svg {
  width: 17px;
  height: 17px;
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .login-main {
    grid-template-columns: 1fr;
  }

  .login-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .login-main {
    padding: 24px 16px 48px;
  }

  .tab-panel {
    padding: 20px 20px 24px;
  }

  .login-card {
    padding: 24px 20px 28px;
  }
}
