.hero-agency {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('/wp-content/themes/lightning/_g2/assets/images/agency/agency_main-image.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .hero-agency {
    background-image: url('/wp-content/themes/lightning/_g2/assets/images/agency_sp/agency_main-image_sp.png');
	height: 275px;
  }
}

.login-mobile {
  display: none;
}

.login-default {
  display: block;
}

.hero-agency::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.agency-title {
  text-align: center;
  font-size: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.login-error-area {
  width: 100%;
  max-width: 500px;
  min-height: 24px;
  text-align: left;
  margin-bottom: -25px;
}

#error-container {
  color: #c00;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  margin-left: 40px;
}

.login-entry-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 120px;
}

.agency-login-wrapper {
  background-image: url('/wp-content/themes/lightning/_g2/assets/images/agency/campaign_login.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-sizing: border-box;
  color: #fff;
}

.agency-login-wrapper,
.entry-links-agency {
  flex: 1;
}

.agency-login-wrapper .login-mobile {
  background-size: cover;
}

#agency-login-form,
#agency-login-form-mobile {
  max-width: 340px;
  margin: 20px auto;
  border-radius: 8px;
}

#agency-login-form .form-row,
#agency-login-form-mobile .form-row,
#agency-login-form .remember-row,
#agency-login-form-mobile .remember-row {
  margin-bottom: 16px;
}

#agency-login-form label,
#agency-login-form-mobile label {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  color: #fff;
}

#agency-login-form input[type="text"],
#agency-login-form input[type="password"],
#agency-login-form-mobile input[type="text"],
#agency-login-form-mobile nput[type="password"] {
  width: 100%;
  padding: 6px 10px;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#agency-login-form .remember-row,
#agency-login-form-mobile .remember-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fff;
}

.password-field {
  position: relative;
  width: 350px;
}

.password-field .fa {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 18px;
}

#agency-remember {
  transform: scale(2.5);
  margin-right: 15px;
}

.login-btn {
  border: none;
  background: none;
  cursor: pointer;
  width: 300px;
}

.entry-links-agency {
  width: 100%;
  max-width: 560px;
  flex: 1;
  height: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden;
}

.entry-img-agency {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.login-text {
  padding-top: 63px;
  font-size: 20px;
  color: #333;
  line-height: 1.6;
}

.entry-text {
  margin-top: 10px;
  font-size: 20px;
  color: #333;
  line-height: 1.6;
}

.agency-login-text {
  font-size: 20px;
}

.login-text p,
.entry-text p,
.agency-login-text p {
  margin: 0 auto;
}

.notice-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

h3.section-title-agency {
  border: none;
}

h3.section-title-agency:after {
  border-bottom: none;
}

.contact-agency-label {
  font-size: 16px;
  color: black;
  height: 48px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-agency-link img {
	margin: 8px 0;
	height: 50px;
}

.contact-agency-link.tel1:hover img {
  content: url('/wp-content/themes/lightning/_g2/assets/images/agency/contact_tel_2.png');
}

.contact-agency-link.tel2:hover img {
  content: url('/wp-content/themes/lightning/_g2/assets/images/agency/confirmation-hotline_2.png.png');
}

.app-forms-wrapper {
  padding: 60px 20px  40px;
  background-color: #fff;
}

.app-forms-container {
  display: flex;
  justify-content: center;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.app-image-block {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.app-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.app-note {
  font-size: 12px;
  color: #333;
  margin-top: 8px;
  text-align: left;
}

.app-text-block {
  flex: 1;
  max-width: 500px;
}

.app-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.app-subtitle {
  font-size: 13px;
  margin-bottom: 16px;
}

.app-list {
  list-style: none;
  padding-left: 0;
}

.app-list li {
  margin-bottom: 6px;
  font-size: 14px;
}

.app-list a {
  text-decoration: none;
  color: black;
}

.app-list a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 554px) and (max-width: 1179px) {
  .agency-login-wrapper {
    width: 560px;
  }
}

@media screen and (max-width: 1179px) {
  .agency-title h2 {
	padding: 0;
    margin-bottom: 0px;
  }
	
  .login-error-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    text-align: center;
    min-height: 24px;
  }

  #error-container {
    margin-left: 0;
  }
	
  #agency-error {
    margin-bottom: 0;
  }
	
  .login-entry-container {
    flex-direction: column;
    align-items: center;
	gap: 0px !important;
	margin-bottom: 20px;
  }
	
  .login-text {
	margin-top: 75px !important;
  }
  
  .login-mobile {
	background-size: cover;
    display: block;
	margin-top: 8px;
  }
  .login-default {
    display: none;
  }
}

@media screen and (max-width: 635px) {
  .agency-title {
    font-size: 20px;
    padding: 0 12px;
    margin-top: 20px;
  }
	
  .agency-login-wrapper {
    background-image: url('/wp-content/themes/lightning/_g2/assets/images/agency/campaign_login.png');
    background-size: cover !important;
    background-repeat: no-repeat;
    width: 96%;
    height: auto;
    border-radius: 4px;
    box-sizing: border-box;
    color: #fff;
  }

  .login-text,
  .entry-text {
    font-size: 16px;
    padding: 0 12px;
  }

  #agency-login-form-mobile label {
    font-size: 16px;
  }

  #agency-login-form-mobile input[type="text"],
  #agency-login-form-mobile input[type="password"] {
    font-size: 16px;
    padding: 6px 8px;
	height: calc(2em + .85rem + 10px);
  }
	
  #agency-login-form-mobile {
    max-width: 300px !important;
  }

  .login-btn {
    width: auto;
  }

  .entry-links-agency {
    padding: 0 12px;
  }

  .notice-text {
    font-size: 12px;
  }
  .password-field {
    width: 310px;
}
}

@media screen and (max-width: 1024px) {
  .app-forms-container {
    gap: 87px;
  }
}

@media screen and (max-width: 960px) {
  .app-forms-container {
    gap: 23px;
  }
}

@media screen and (max-width: 959px) {
  .app-forms-container {
    flex-direction: column;
    gap: 10px;
  }
	
  .app-forms-wrapper {
    padding: 20px 20px 0;
  }

  .app-image-block,
  .app-text-block {
    max-width: 100%;
  }

  .app-note {
    margin-left: 0;
	text-align: left;
  }
}
