.account-page {
  margin: 0;
  color-scheme: light;
  color: #152441;
  background: #f5f8fc;
  font-family: var(--font-sans, system-ui, "Noto Sans JP", sans-serif);
}

.portal-account-switch {
  color: inherit;
  font-size: .72rem;
  line-height: 1.2;
  max-width: 7rem;
  text-decoration: underline;
}

.account-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 4.5rem;
  padding-inline: clamp(1rem, 4vw, 4rem);
  background: #fff;
  border-bottom: 1px solid #dce5f1;
}

.account-header a { display: flex; }
.account-header img { object-fit: contain; }
.account-header span { color: #526782; font-size: .69rem; font-weight: 700; letter-spacing: .14em; }

.account-choice {
  width: min(100% - 2rem, 45rem);
  margin: clamp(3.25rem, 9vw, 7.5rem) auto 3.5rem;
}

.account-choice h1 {
  margin: 0 0 1.65rem;
  font-size: clamp(1.5rem, 5vw, 2.45rem);
  letter-spacing: -.025em;
  line-height: 1.25;
}

.account-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}

.account-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: .9rem .5rem;
  min-height: 7.3rem;
  padding: 1.4rem;
  box-sizing: border-box;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.account-option:hover { border-color: #2662b5; background: #fbfdff; }
.account-option:focus-visible, .account-back:focus-visible, .account-header a:focus-visible {
  outline: 2px solid #2662b5;
  outline-offset: 4px;
}

.account-label { font-size: 1.17rem; font-weight: 700; }
.account-arrow { grid-area: 1 / 2; align-self: center; color: #2662b5; font-size: 1.2rem; }
.account-tags { display: flex; flex-wrap: wrap; gap: .35rem; grid-column: span 2; }
.account-tags span {
  padding: .2rem .52rem;
  border-radius: 4px;
  color: #294d79;
  background: #eaf2fc;
  font-size: .75rem;
  font-weight: 600;
}

.account-back { display: inline-flex; gap: .45rem; color: #294d79; font-size: .875rem; }
.account-choice .alert { margin-bottom: 1rem; color: #8b2737; }

@media (max-width: 35rem) {
  .account-options { grid-template-columns: 1fr; }
}
