/* レイアウト */
.p-auth-account {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

/* 各 STEP のコンテンツはすべて非表示とする */
.p-auth-account__step-content {
  display: none;
}

/* 親の data 属性と一致する STEP を表示 */
[data-active-step="1"] .is-step-1,
[data-active-step="2"] .is-step-2,
[data-active-step="3"] .is-step-3,
[data-active-step="4"] .is-step-4 {
  display: block;
}

/* ****************** */
/* サイドバーのスタイル */
/* ****************** */
.p-auth-account__sidebar {
  display: flex;
  background: #f6f5f5;
  justify-content: flex-end;
}

.p-auth-account__sidebar-sticky {
  position: sticky;
  top: 60px;
  align-self: start;
}

.p-auth-account__sidebar-list {
  display: flex;
  gap: 24px;
  justify-items: center;
  margin: 0;
  list-style: none;
  padding: 40px 50px;
  flex-direction: column;
  align-items: center;
}

.p-auth-account__sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  color: #ffffff;
  background: #bcc8ce;
}

.p-auth-account__sidebar-item.is-active-step {
  width: 180px;
  height: 180px;
  background: #47c0f6;
  font-weight: bold;
}

/* ************************ */
/* メインコンテンツのスタイル */
/* ************************ */
.p-auth-account__step-contents {
  width: 100%;
}

.p-auth-account__main {
  padding: 40px 50px;
}

.p-auth-account__step-title {
  text-align: center;
  margin: 0;
}

.p-auth-account__step-content-inner {
  display: block;
  background: #ffffff;
}

.p-auth-account__step-description {
  text-align: center;
  margin: 0;
  font-size: 15px;
}

/* ********************** */
/* フッターエリアのスタイル */
/* ********************** */
.p-auth-account__step-footer {
  display: flex;
  justify-content: center;
}

.p-auth-account__prev-button {
  font-size: 16px;
  font-weight: bold;
  color: #03a9f4;
  background: transparent;
  border: none;
  cursor: pointer;
}

.p-auth-account__next-button {
  width: 350px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: bold;
  background: #47c0f6;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin: 0 auto;
}

.p-auth-account__prev-button:hover,
.p-auth-account__next-button:hover {
  opacity: 0.8;
}

/* **************** */
/* STEP 1 のスタイル */
/* **************** */
.p-auth-account__purpose-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 40px 0;
}

.p-auth-account__purpose-card {
  cursor: pointer;
  border: 2px solid #1c1c1c;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s ease;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  &:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }
}

.p-auth-account__purpose-item input[type="radio"] {
  display: none;
}

/* 選択された時のスタイル */
.p-auth-account__purpose-item
  input[type="radio"]:checked
  + .p-auth-account__purpose-card {
  border-color: #007cba;
  background: #f0f7ff;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.p-auth-account__purpose-label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 16px;
  color: #1c1c1c;
}

/* **************** */
/* STEP 2 のスタイル */
/* **************** */
.p-auth-account__field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 0;
}
.p-auth-account__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-auth-account__label {
  font-weight: bold;
  color: #1c1c1c;
}

.p-auth-account__input {
  width: 100%;
  background: #ffffff;
  border-radius: 15px;
  border: 1px solid #636363;
  padding: 16px;
  font-size: 16px;

  &::placeholder {
    color: #433030;
  }
}

.p-auth-account__input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.p-auth-account__date-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

/* **************** */
/* STEP 3 のスタイル */
/* **************** */
.p-auth-account__interest-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0;
}

.p-auth-account__interest-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* カードのデザイン */
.p-auth-account__interest-card {
  display: flex;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #1c1c1c;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  transition: all 0.2s ease;
  white-space: pre-wrap;
  width: 180px;
  height: 80px;
  border-radius: 16px;
  align-items: center;

  &:hover {
    border-color: #cbd5e1;
  }
}

.p-auth-account__interest-label {
  font-size: 15px;
  font-weight: bold;
}

/* 選択時のスタイル */
.p-auth-account__interest-item
  input[type="checkbox"]:checked
  + .p-auth-account__interest-card {
  border-color: #007cba;
  background: #f0f7ff;
  color: #007cba;
  font-weight: bold;
}

.p-auth-account__interest-item
  input[type="checkbox"]:disabled
  + .p-auth-account__interest-card {
  opacity: 0.5;
  cursor: not-allowed;
  background: #cbd5e1;
}
