* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  background: #fff;
  color: #333;
  background-image: url('../images/bg.png');
  background-size: contain;
  background-position: center;
  background-repeat: repeat;
}
.site-header {
  background: linear-gradient(90deg, #b079f6 0%, #a468f2 100%);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.site-header__logo {
  font-family: "Oswald", serif;
  font-size: 40px;
  letter-spacing: 0.1em;
  font-weight: 300;
  font-style: normal;
}

.site-header__tagline {
  font-size: 16px;
  letter-spacing: 0.14em;
}

.site-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
}

.site-header__contact:hover,
.site-header__contact:focus {
  background: rgba(255, 255, 255, 0.28);
}

.site-header__contact-icon {
  width: 30px;
  height: 30px;
}

.site-header__contact-number {
  font-size: 30px;
  letter-spacing: 0.18em;
}

.hero {
  text-align: center;
}
.hero img {
  width: 100%;
  height: auto;
}

.contents {
  width: 960px;
  margin: 0 auto;
}

.section-title {
  position: relative;
  text-align: center;
}

.section-title img {
  display:inline-block;
}

.concept-title {
  margin: -12px auto 40px auto;
}

.concepts {
  background-color: #f0f8ff;
  background-image: url(../images/concept-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 60px;
}

.concept-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.concept-item {
  display: grid;
  grid-template-columns: 170px 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 36px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(160, 133, 230, 0.15);
}

.concept-item__icon {
  margin: 0;
}

.concept-item__icon img {
  width: 150px;
  height: auto;
}

.concept-item__title {
  font-size: 28px;
  color: #fb319a;
  margin-bottom: 14px;
  letter-spacing: 0.16em;
  font-weight: 300;
}

.concept-item__title span {
  border-bottom: 1px solid rgba(251, 107, 182, 0.35);
  padding-bottom: 6px;
}

.concept-item__text {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #4d4d4d;
  line-height: 1.9;
}

.members {
  padding: 60px 0 400px;
  background-image: url('../images/members-bg.png');
  background-repeat: no-repeat;
  background-position: center; 
  background-size: cover;
}

.members-title {
  margin-bottom: 36px;
}

.members-title img {
  width: 260px;
  height: auto;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.member-card {
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.member-card-title {
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
  text-align: center;
  background-color: transparent;
}

.member-card__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.member-card-title .member-card__photo img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.member-card__body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-card__age {
  font-family: "Oswald", sans-serif;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: #4a9cff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.member-card__age span {
  font-size: 44px;
  font-weight: 300;
}

.member-card__text {
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: #4d4d4d;
}

.member-card::before {
  top: 12px;
  left: 12px;
  border-bottom: none;
  border-right: none;
}

.member-card::after {
  bottom: 12px;
  right: 12px;
  border-top: none;
  border-left: none;
  transform: rotate(180deg);
}

.steps {
  padding: 40px 20px;
}

.steps-title {
  margin-bottom: -30px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}
.step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.step__image {
  margin: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  flex-shrink: 0;
}
.step__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.step__box {
  background: #ff6fa3;
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  flex: 1;
  border-radius: 0 0 10px 10px;
}
.step__number {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.step__text {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  display: block;
}

.faq {
  padding: 40px 20px;
}
.faq-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
  justify-content: space-between;
}

.faq-item-q {
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-bubble--question {
  color: #fd4894;
  font-size: 20px;
  width: 250px;
}

.faq-item-a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 250px);
}
.faq-bubble--answer {
  font-size: 14px;
  width: calc(100% - 85px);
}

footer {
  background: #a58ddf;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

/* Terms Modal */
.terms-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.terms-modal.is-visible {
  display: flex;
}

.terms-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.terms-modal__content {
  position: relative;
  max-width: 880px;
  width: 90%;
  max-height: 80vh;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.terms-modal__header {
  background: #ff6fa3;
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.terms-modal__title {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.12em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.terms-modal__close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.terms-modal__body {
  padding: 28px 32px;
  overflow-y: auto;
  color: #2d2d2d;
  line-height: 1.8;
  font-size: 15px;
  background: #fff;
}

.terms-modal__body p {
  margin-bottom: 20px;
}

.terms-modal__body h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #2d2d2d;
  position: relative;
  padding-left: 16px;
  font-weight: normal;
}

.terms-modal__body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ff6fa3;
}

.terms-modal__body ol,
.terms-modal__body ul {
  padding-left: 1.4em;
  margin: 12px 0;
}

.terms-modal__body li {
  margin-bottom: 6px;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .terms-modal__content {
    width: 94%;
    max-height: 88vh;
  }
  .terms-modal__title {
    font-size: 20px;
  }
  .terms-modal__close {
    font-size: 14px;
  }
  .terms-modal__body {
    padding: 24px 20px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .site-header__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-header__tagline {
    letter-spacing: 0.1em;
    font-size: 14px;
  }

  .site-header__logo {
    font-size: 32px;
  }

  .site-header__contact {
    align-self: stretch;
    justify-content: center;
    padding: 10px 16px;
  }

  .site-header__contact-number {
    font-size: 24px;
  }

  .site-header__contact-icon {
    width: 24px;
    height: 24px;
  }

  .contents {
    width: 100%;
    padding: 0 20px;
  }

  .concept-item {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .concept-item__icon {
    text-align: center;
  }

  .concept-item__icon img {
    width: 120px;
  }

  .concept-item__title {
    font-size: 22px;
  }

  .concept-item__text {
    font-size: 14px;
  }

  .concept-item {
    padding: 20px 24px;
  }

  .concepts {
    padding-bottom: 40px;
  }

  .members {
    padding: 40px 0 200px;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    display: grid;
  }

  .member-card-title {
    order: -1;
    grid-column: 1 / -1;
  }

  @media (max-width: 600px) {
    .member-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .member-card-title {
      order: -1;
      grid-column: 1;
    }
  }

  .member-card__age {
    font-size: 22px;
  }

  .member-card__age span {
    font-size: 36px;
  }

  .member-card__text {
    font-size: 13px;
  }

  .member-card__body {
    padding: 16px 18px 20px;
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
  .step {
    width: 100%;
  }
  .step__box {
    min-height: 100px;
  }
  .step__number {
    font-size: 40px;
  }
  .step__text {
    font-size: 13px;
  }
  .faq-item {
    flex-direction: column;
    gap: 20px;
  }
  .faq-item-q,
  .faq-item-a {
    flex-direction: row;
  }
  .faq-item-a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
}
  .faq-bubble {
    max-width: 100%;
  }
  .faq-bubble__text {
    padding: 12px 16px;
  }
  .faq-bubble__text--question {
    font-size: 14px;
  }
  .faq-bubble__text--answer {
    font-size: 13px;
  }

  .section-title img {
    max-width: 100%;
    height: auto;
  }

  .concept-title {
    margin: -8px auto 30px auto;
  }

  .steps-title {
    margin-bottom: -20px;
  }

  .hero img {
    width: 100%;
    height: auto;
    display: block;
  }
}