/* 会員向けのページ（ログイン・マイページ）。共通部分は style.css、入力欄は form.css */

.login-section { padding-block: clamp(40px, 6vw, 72px) var(--section-space); }
.login-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid #e3eae7;
  border-radius: 28px;
  background: var(--white);
}

/* はじめての方・会員の方の切り替え */
.login-switch {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 16px;
}
.login-switch__btn {
  flex: 1;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--green-dark);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.login-switch__btn:hover { background: var(--mist); }
.login-switch__btn[aria-pressed="true"] { background: var(--green-dark); color: var(--white); }
.login-switch__btn:focus-visible { outline: 3px solid rgb(17 143 111 / .45); outline-offset: 3px; }

/* 登録の確認の欄 */
.login-consent { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; border: 1.5px solid var(--green-dark); border-radius: 16px; background: var(--mist); min-width: 0; }
.login-consent[hidden] { display: none; }
.login-consent__legend { padding-inline: 6px; font-weight: 800; font-size: .9375rem; }
.login-consent__note { color: var(--pink); font-size: .875rem; font-weight: 700; line-height: 1.7; }
.login-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.7; cursor: pointer; }
.login-check input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--green-dark); }
.login-check a { color: var(--green-dark); }
.login-check input:focus-visible { outline: 3px solid rgb(17 143 111 / .45); outline-offset: 2px; }
.login-terms[hidden] { display: none; }

/* お知らせ・エラーの表示 */
.login-status {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.7;
}
.login-status:empty { display: none; }
.login-status[data-kind="error"] { border: 1.5px solid var(--pink); background: var(--blush); color: var(--pink); }
.login-status[data-kind="info"] { border: 1.5px solid var(--green-dark); background: var(--mist); color: var(--green-deep); }

/* Google・LINE のボタン */
.login-social { display: flex; flex-direction: column; gap: 12px; }
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 1.5px solid #cfdcd7;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.login-btn:hover { border-color: var(--green-dark); background: var(--mist); }
/* LINE のボタンは LINE の指定の緑（#06C755）。押す前に重ねる色は、その緑を少し暗くしたもの */
.login-btn--line { border-color: #06c755; background: #06c755; color: var(--white); }
.login-btn--line:hover { border-color: #05b34c; background: #05b34c; }
.login-btn__line-mark {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--white);
  color: #06c755;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.login-btn:focus-visible,
.login-submit:focus-visible,
.login-resend:focus-visible,
.login-terms a:focus-visible { outline: 3px solid rgb(17 143 111 / .45); outline-offset: 3px; }
.login-btn:disabled,
.login-submit:disabled,
.login-resend:disabled { opacity: .6; cursor: not-allowed; }

/* 「または」の区切り */
.login-or { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .875rem; }
.login-or::before,
.login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* メールアドレスでログイン */
.login-email { display: flex; flex-direction: column; gap: 16px; }
.login-email[hidden] { display: none; }
.login-btn[hidden] { display: none; }
.login-email__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; line-height: 1.5; }
.login-submit { width: 100%; border: 1.5px solid transparent; background: var(--gradient-strong) border-box; cursor: pointer; }
.login-submit:hover { border-color: transparent; background: var(--gradient-strong) border-box; opacity: .9; }
.login-code__note { color: var(--ink-soft); font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; }
.login-code__input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.login-resend {
  align-self: center;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--green-dark);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.login-terms { color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.login-terms a { color: var(--green-dark); }

/* マイページ */
.mypage-card { max-width: 640px; }
/* プロフィールがそろうまでの案内と、欄ごとの説明 */
.mypage-guide { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: var(--mist); font-size: .9375rem; line-height: 1.8; }
.mypage-guide[hidden] { display: none; }
.mypage-guide__title { color: var(--green-deep); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; text-align: start; }
.mypage-guide__list { display: flex; flex-direction: column; gap: 4px; padding-left: 1.25em; list-style: disc; }
/* 自己紹介の注意（他の会員に見えるので、赤い文字で目立たせる） */
.field__hint--caution { color: var(--pink); font-weight: 700; }
.mypage-block__lead { margin-top: -8px; color: var(--ink-soft); font-size: .875rem; line-height: 1.8; text-align: start; }
.mypage-email { font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; text-align: start; }
.mypage-form { display: flex; flex-direction: column; gap: 24px; }
.mypage-block { display: flex; flex-direction: column; gap: 20px; min-width: 0; margin: 0; padding: 20px; border: 1px solid #e3eae7; border-radius: 20px; }
.mypage-block__title { padding: 0 8px; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; line-height: 1.6; }
.mypage-block__title small { display: inline-block; margin-left: 4px; color: var(--muted); font-size: .8125rem; font-weight: 700; }
.mypage-block .field[hidden] { display: none; }
.mypage-icon { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mypage-icon__img,
.mypage-icon__empty { width: 96px; height: 96px; border-radius: 50%; }
.mypage-icon__img { object-fit: cover; border: 1px solid #e3eae7; }
.mypage-icon__empty { display: flex; align-items: center; justify-content: center; background: var(--mist); color: var(--muted); font-size: .8125rem; }
.mypage-icon__img[hidden],
.mypage-icon__empty[hidden] { display: none; }
.mypage-icon__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mypage-link { padding: 8px 12px 8px 0; border: 0; background: none; color: var(--green-dark); font: inherit; font-size: .9375rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.mypage-link[hidden] { display: none; }
.mypage-link:focus-visible,
.mypage-danger:focus-visible { outline: 3px solid rgb(17 143 111 / .45); outline-offset: 3px; }
.mypage-link--danger { color: var(--pink); }
.mypage-actions { display: flex; flex-direction: column; gap: 12px; }
.mypage-withdraw { padding-top: 20px; border-top: 1px solid var(--line); }
.mypage-withdraw__panel { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding: 20px; border: 1.5px solid var(--pink); border-radius: 16px; background: var(--blush); font-size: .9375rem; line-height: 1.8; }
.mypage-withdraw__panel[hidden] { display: none; }
.mypage-withdraw__panel ul { padding-left: 1.5em; }
.mypage-danger { border: 1.5px solid var(--pink); background: var(--pink); color: var(--white); cursor: pointer; }
.mypage-danger:hover { background: #8a1c5d; border-color: #8a1c5d; }
.mypage-danger:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) { .mypage-block { padding: 16px; } }

/* マイページから移動するボタン（カードの外の左上に、小さめで横に並べる）。メタバースは開発中なので押せない */
.mypage { max-width: 640px; margin-inline: auto; }
.mypage[hidden] { display: none; }
.mypage-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.mypage-nav__button { padding: 8px 18px; font-size: .8125rem; gap: 8px; }
.mypage-nav__campus { border-color: transparent; background: var(--gradient-strong) border-box; }
.mypage-nav__campus:disabled { opacity: .55; cursor: not-allowed; }
.mypage-nav__campus:disabled:hover { border-color: transparent; background: var(--gradient-strong) border-box; }
.mypage-nav__soon { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 480px) {
  .mypage-nav__button { padding: 7px 12px; font-size: .75rem; letter-spacing: .02em; gap: 6px; }
  /* 狭い幅では Coming Soon... をボタンの中で下の行にして、2つのボタンを横に並べたままにする */
  .mypage-nav__campus { flex-direction: column; gap: 0; padding-block: 4px; line-height: 1.3; }
  .mypage-nav__soon { font-size: .625rem; letter-spacing: .02em; }
}

/* マイページのいちばん下の LINE のバナー。欄の幅が狭いので、文字を小さめにする */
.mypage-line { margin-top: 40px; padding: 28px; border-radius: 24px; }
.mypage-line .line-banner__title { font-size: 1.25rem; }
.mypage-line .line-banner__button { width: 100%; }
