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

.page-header h1 {
  font-size: 50px;
  text-transform: uppercase;
}

.page-content {
  max-width: 740px;
  margin: 0 auto;
}

.mepr-form {
  display: flex;
  flex-direction: column;
}

.mepr_price {
  display: none;
}

.mepr_username {
  order: 1;
}

.mepr_email {
  order: 2;
  /* display: none; */
}

.mepr_email_stripe {
  order: 3;
}

.mepr_password {
  order: 4;
}

.mepr_password_confirm {
  order: 5;
}

.mepr_last_name {
  order: 6;
}

.mepr_first_name {
  order: 7;
}

.mepr_mepr_lastname_kana {
  order: 8;
}

.mepr_mepr_firstname_kana {
  order: 9;
}

.mepr_mepr_tel {
  order: 10;
}

.mepr_mepr_birthday {
  order: 11;
}

.mepr_mepr-address-zip {
  order: 12;
}

.mepr_mepr-address-country {
  order: 13;
  /* display: none; */
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.mepr_mepr-address-state {
  order: 14;
}

.mepr_mepr-address-city {
  order: 15;
}

.mepr_mepr-address-one {
  order: 16;
}

.mepr_mepr-address-two {
  order: 17;
}

.mepr-payment-methods-wrapper {
  order: 18;
}

.mepr_mepr_mailmagazine {
  order: 19;
}

#mepr_mailmagazine {
  display: flex !important;
}

#mepr_mailmagazine .mepr-radios-field-row {
  display: flex !important;
  width: 50%;
}

.label.mepr-form-radios-label,
label.mepr-form-checkboxes-label {
  width: unset !important;
}

.mepr_spacer {
  order: 20;
}

.mepr-submit {
  order: 21;
  color: #fff;
  background-color: #000;
  border-radius: 4px;
  display: block;
  text-transform: uppercase;
  width: 100%;
  border: 0;
  padding: 8px;
}

.member-info table {
  border: 1px solid #ccc;
  width: 100%;
  margin: 32px 0 24px;
}

.member-info table th,
.member-info table td {
  padding: 8px 0;
  font-size: 14px;
}

.member-info table th {
  text-align: right;
  padding-right: 12px;
}

.mepr-nav-item.mepr-payments,
.mepr-nav-item #mepr-account-logout {
  display: none;
}

/* #mepr-account-subscriptions-table th:nth-child(3),
#mepr-account-subscriptions-table td:nth-child(3), */
#mepr-account-subscriptions-table th:nth-child(5),
#mepr-account-subscriptions-table td:nth-child(5) {
  display: none;
}

.mepr-active,
.mepr-inactive {
  font-weight: unset !important;
}

.mepr-account-active {
  text-align: center !important;
}

.mepr-account-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex-direction: column;
  row-gap: 8px; */
}

.mepr-account-actions a {
  font-size: 14px;
  color: #464646;
  font-size: 75%;
  background-color: #ccc;
  border-radius: 4px;
  padding: 2px 4px;
}

.mepr-account-actions a.mepr-account-cancel {
  background-color: #ff6666;
  color: #fff;
}

.mepr-account-created-at {
  text-align: center;
  font-size: 75%;
}

.mepr-account-auto-rebill {
  display: none;
}

/* .mepr-account-row-action.mepr-account-upgrade, */
.mepr-account-row-action.mepr-account-update {
  /* display: none !important; */
  margin-right: 8px;
}

.mepr-field-required .mp-form-label > label::after {
  content: '必須';
  font-size: 10px;
  background: #ff6666;
  color: #fff;
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.mepr-payment-methods-radios {
  padding: 4px 0;
}

.mepr-payment-method {
  padding-top: 12px;
}

.mp-form-label {
  margin-bottom: 8px;
}

.mp_wrapper {
  margin-top: 32px;
}

.mp_wrapper .mp-form-row label {
  display: flex !important;
  justify-content: space-between !important;
}

.mp_wrapper .cc-error {
  padding-left: 0 !important;
}

.mepr-form select {
  background-color: #fff !important;
}

.mepr-form input.invalid,
.mepr-form select.invalid,
.mepr-form textarea.invalid,
.mepr-form label.mepr-checkbox-field.invalid,
.mepr-form div.mepr-checkboxes-field.invalid,
.mepr-form div.mepr-radios-field.invalid {
  background-color: #fff !important;
}

.mepr-form-input[type='text'],
.mepr-form-input[type='email'],
.mepr-form-input[type='password'],
.mepr-form select {
  border-radius: 4px;
}

div#mepr-account-nav {
  border-bottom: 3px solid #000;
  padding-bottom: 6px;
}

.mepr-nav-item {
  padding: 8px 12px !important;
}

.mepr-active-nav-tab {
  font-weight: bold !important;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  background: transparent;
}

.mp_wrapper table.mepr-account-table {
  background-color: #fff;
}

.mp_wrapper table.mepr-account-table tr:nth-child(n + 2) {
  display: none;
}

@media screen and (max-width: 767px) {
  .mepr-form {
    overflow-x: hidden;
  }

  .mepr-account-active,
  .mepr-account-created-at {
    text-align: unset !important;
    font-size: 100%;
  }

  .mepr-account-actions {
    justify-content: end;
    align-items: end;
  }

  .mepr-account-actions a {
    font-size: 100%;
  }

  .mepr-subscription-row td {
    font-size: 75%;
  }

  .member-info table th,
  .member-info table td {
    display: block;
    width: 100%;
    padding-left: 12px;
  }

  .member-info table th {
    text-align: left;
    padding-bottom: 0;
  }
}

.membership-card {
  width: 100%;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.plan-list {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.btn-register {
  display: block;
  padding: 16px 12px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  width: 40%;
  background-color: #fff;
}

.btn-register p {
  margin: 0 !important;
  font-size: 0.8rem;
  color: #666;
}

.btn-register:hover {
  background-color: #000;
  color: #fff;
}

.btn-register:hover p {
  color: #fff;
}

@media screen and (max-width: 767px) {
  .plan-list {
    flex-direction: column;
  }

  .btn-register {
    width: 100%;
  }
}

.mepr-account-subscr-id {
  display: none;
  height: 0;
}

@media screen and (max-width: 600px) {
  .mp_wrapper table.mepr-account-table td div {
    flex-direction: column !important;
    gap: 8px;
  }

  .mepr-account-actions a {
    min-width: 128px !important;
    text-align: center !important;
  }

  .mepr-account-row-action.mepr-account-update {
    margin: 0 !important;
  }
}

.content-wrapper.update-plan {
  margin: 0;
  padding: 0;
  .page-content {
    text-align: center;
  }
}

.btn-update-plan {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  padding: 12px 24px;
  border-radius: 40px;
  color: #fff;
  background-color: #000;
  font-weight: 600;
  font-size: 1.2em;
}

.member-info table {
  border: 1px solid #ccc;
  width: 100%;
  margin: 32px 0 24px;
}

.member-info table th,
.member-info table td {
  padding: 8px 0;
  font-size: 14px;
}

.member-info table th {
  text-align: right;
  padding-right: 12px;
}

.mepr-nav-item.mepr-payments {
  display: none;
}

.mepr-nav-item #mepr-account-logout {
  /* display: none; */
}

/* #mepr-account-subscriptions-table th:nth-child(3),
#mepr-account-subscriptions-table td:nth-child(3), */
#mepr-account-subscriptions-table th:nth-child(5),
#mepr-account-subscriptions-table td:nth-child(5) {
  display: none;
}

.mepr-active,
.mepr-inactive {
  font-weight: unset !important;
}

.mepr-account-active {
  text-align: center !important;
}

.mepr-account-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex-direction: column;
  row-gap: 8px; */
}

.mepr-account-actions a {
  font-size: 14px;
  color: #464646;
  font-size: 75%;
  background-color: #ccc;
  border-radius: 4px;
  padding: 2px 4px;
}

.mepr-account-actions a.mepr-account-cancel {
  background-color: #ff6666;
  color: #fff;
}

.mepr-account-created-at {
  text-align: center;
  font-size: 75%;
}

.mepr-account-auto-rebill {
  display: none;
}

/* .mepr-account-row-action.mepr-account-upgrade, */
.mepr-account-row-action.mepr-account-update {
  /* display: none !important; */
  margin-right: 8px;
}

.mepr-field-required .mp-form-label > label::after {
  content: '必須';
  font-size: 10px;
  background: #ff6666;
  color: #fff;
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.mepr-payment-methods-radios {
  padding: 4px 0;
}

.mepr-payment-method {
  padding-top: 12px;
}

.mp-form-label {
  margin-bottom: 8px;
}

.mp_wrapper {
  margin-top: 32px;
}

.mp_wrapper .mp-form-row label {
  display: flex !important;
  justify-content: space-between !important;
}

.mp_wrapper .cc-error {
  padding-left: 0 !important;
}

.mepr-form select {
  background-color: #fff !important;
}

.mepr-form input.invalid,
.mepr-form select.invalid,
.mepr-form textarea.invalid,
.mepr-form label.mepr-checkbox-field.invalid,
.mepr-form div.mepr-checkboxes-field.invalid,
.mepr-form div.mepr-radios-field.invalid {
  background-color: #fff !important;
}

.mepr-form-input[type='text'],
.mepr-form-input[type='email'],
.mepr-form-input[type='password'],
.mepr-form select {
  border-radius: 4px;
}

div#mepr-account-nav {
  border-bottom: 3px solid #000;
  padding-bottom: 6px;
}

.mepr-nav-item {
  padding: 8px 12px !important;
}

.mepr-active-nav-tab {
  font-weight: bold !important;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  background: transparent;
}

.mp_wrapper table.mepr-account-table {
  background-color: #fff;
  display: none;
}

.mp_wrapper table.mepr-account-table tr:nth-child(n + 2) {
  display: none;
}

@media screen and (max-width: 767px) {
  .mepr-form {
    overflow-x: hidden;
  }

  .mepr-account-active,
  .mepr-account-created-at {
    text-align: unset !important;
    font-size: 100%;
  }

  .mepr-account-actions {
    justify-content: end;
    align-items: end;
  }

  .mepr-account-actions a {
    font-size: 100%;
  }

  .mepr-subscription-row td {
    font-size: 75%;
  }

  .member-info table th,
  .member-info table td {
    display: block;
    width: 100%;
    padding-left: 12px;
  }

  .member-info table th {
    text-align: left;
    padding-bottom: 0;
  }
}

.membership-card {
  width: 100%;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.plan-list {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  justify-content: center;
  align-items: center;
}

.btn-register {
  display: block;
  padding: 16px 12px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  width: 40%;
  background-color: #fff;
}

.btn-register p {
  margin: 0 !important;
  font-size: 0.8rem;
  color: #666;
}

.btn-register:hover {
  background-color: #000;
  color: #fff;
}

.btn-register:hover p {
  color: #fff;
}

@media screen and (max-width: 767px) {
  .plan-list {
    flex-direction: column;
  }

  .btn-register {
    width: 100%;
  }
}

.mepr-account-subscr-id {
  display: none;
  height: 0;
}

.member-info {
  padding: 24px;
  border: 1px solid #666;
  border-radius: 12px;
  font-weight: 300;
  max-width: 728px;
  background-color: #fff;
  margin-top: 12px;

  h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
  }

  ul {
    li {
      padding: 8px 0;
    }
  }

  .action-btn-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;

    a {
      display: inline-block;
      text-align: center;
      border: 1px solid #121212;
      padding: 12px 32px;
      border-radius: 6px;

      @media screen and (max-width: 768px) {
        font-size: 15px;
        padding: 12px 12px;
      }
    }

    a:hover {
      border: 1px solid #121212;
      background-color: #121212;
      color: #fff;
    }
  }
}

.member-delete {
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: center;
  color: #fff;

  input[type='submit'] {
    background-color: #999;
    border: 0;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    padding: 8px 24px;
    display: block;
    margin: 0 auto;
    font-size: 14px;

    @media screen and (max-width: 768px) {
      max-width: 100%;
    }
  }

  input[type='submit']:hover {
    background-color: var(--fanclub-red);
  }
}

.control-delete {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.msg-del-comp {
  @media screen and (max-width: 768px) {
    text-align: left;
  }
}

.link-delete-account {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #999;
}

.link-delete-account a:hover {
  color: var(--fanclub-red);
}

.contact-area {
  padding: 20px;
  border: 1px solid #000;
  font-size: 14px;
  margin-top: 40px;

  h3 {
    margin-bottom: 8px;
  }

  .contact-area-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 0;
    }
  }

  .btn-contact {
    width: 220px;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
  }

  .btn-default {
    width: 100%;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-size: 14px;
    padding: 8px 24px;
    margin-top: 12px;
    display: inline-block;
    text-align: center;
  }
}

.page-content {
  ol {
    margin-top: 40px;
    list-style-type: decimal;
  }
  li {
    margin-left: 1em;
  }
}

.link-delete-account {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #999;
}

.link-delete-account a:hover {
  color: var(--fanclub-red);
}

.account-deleted {
  h1 {
    margin-bottom: 32px;
    @media (max-width: 768px) {
      font-size: 30px;
    }
  }
}

.account-del-confirm {
  h1 {
    @media (max-width: 768px) {
      font-size: 30px;
    }
  }
}
