.page-register {
  color: #333333; /* Dark text for light body background */
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  border-radius: 10px;
  color: #FFFFFF;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-register__hero-button,
.page-register__cta-button,
.page-register__join-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__hero-button:hover,
.page-register__cta-button:hover,
.page-register__join-button:hover {
  background-color: #e0a53b;
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-register__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-register__value-section,
.page-register__steps-section,
.page-register__conditions-section,
.page-register__faq-section,
.page-register__join-section {
  padding: 60px 0;
}

.page-register__value-section {
  background-color: #f8f8f8;
}

.page-register__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__value-item,
.page-register__condition-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__value-item:hover,
.page-register__condition-item:hover {
  transform: translateY(-5px);
}

.page-register__value-image,
.page-register__condition-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-register__value-heading,
.page-register__condition-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-register__value-text,
.page-register__condition-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-register__value-summary {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
}

.page-register__value-summary a,
.page-register__conditions-footer-text a,
.page-register__join-note a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-register__value-summary a:hover,
.page-register__conditions-footer-text a:hover,
.page-register__join-note a:hover {
  text-decoration: underline;
}

.page-register__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.page-register__step-item {
  background-color: #FFFFFF;
  border-left: 5px solid #FCBC45;
  margin-bottom: 25px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  padding-left: 70px;
}

.page-register__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FCBC45;
  color: #000000;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-register__step-heading {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

.page-register__conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__conditions-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #f0f0f0;
  border-bottom-color: #e0e0e0;
}

.page-register__faq-question:hover {
  background-color: #f0f0f0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FCBC45;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-register__faq-answer p {
  margin: 0;
}

.page-register__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

.page-register__join-section {
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-register__join-section .page-register__section-title,
.page-register__join-section .page-register__section-intro {
  color: #FFFFFF;
}

.page-register__join-note {
  margin-top: 20px;
  font-size: 1em;
  color: #CCCCCC;
}

.page-register__join-note a {
  color: #FCBC45;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-register__hero-content {
    padding: 30px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-button,
  .page-register__cta-button,
  .page-register__join-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__grid,
  .page-register__conditions-grid {
    grid-template-columns: 1fr;
  }
  .page-register__step-item {
    padding-left: 60px;
  }
  .page-register__step-item::before {
    left: 15px;
    width: 30px;
    height: 30px;
    font-size: 1.1em;
  }
  .page-register__step-heading {
    font-size: 1.4em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  /* Mobile content image constraint */
  .page-register img {
    max-width: 100%;
    height: auto;
  }
  .page-register__value-image, .page-register__condition-image {
    height: auto; /* Allow auto height for responsive scaling */
    max-height: 250px; /* Cap max height to avoid overly tall images */
  }
}

@media (max-width: 480px) {
  .page-register__hero-section {
    min-height: 350px;
    padding-top: var(--header-offset, 120px);
  }
  .page-register__hero-content {
    padding: 20px;
  }
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__value-item,
  .page-register__condition-item {
    padding: 20px;
  }
  .page-register__step-heading {
    font-size: 1.2em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px 15px;
  }
}