/* join.css - 入会ページ固有のスタイル */

/* 後方互換性のため旧クラス名も保持 */
.join-title,
.event-entire-title {
  align-self: stretch;
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
}

.join-title {
  color: var(--shinonome);
}

.event-entire-title {
  color: var(--black);
}

/* 入会条件セクション */
.join-conditions-container {
  display: flex;
  padding-top: 100px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}

.join-conditions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  align-self: stretch;
}

.join-condition-block {
  width: 360px;
  height: 180px;
  display: flex;
  padding: 24px 36px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border-radius: 12px;
  background: var(--shinonome);
}

.join-condition-block > * {
  margin-bottom: 24px;
}

.join-condition-block > *:last-child {
  margin-bottom: 0;
}

/* 入会条件のボックス内で、condition-detailとdetail-miniの間隔を狭くする */
.join-condition-block .condition-detail {
  margin-bottom: 4px;
}

.join-condition-block .detail-mini {
  margin-bottom: 0;
}

.condition-title {
  margin-bottom: 12px;
  font-family: var(--noto);
  font-size: var(--font_24);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--ivory);
  overflow: hidden;
  text-overflow: ellipsis;
}

.condition-detail {
  font-family: var(--noto);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--ivory);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-mini {
  font-family: var(--noto);
  font-size: var(--font_16);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--ivory);
  margin-top: 0;
  margin-bottom: 0;
}

/* 入会フローセクション */
.join-flow-section {
  display: flex;
  padding: 60px 0px;
  width: 90%;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  border-bottom: 5px solid rgba(255, 255, 255, 0.3);
  background: var(--ivory);
}

.join-title {
  align-self: stretch;
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  color: var(--shinonome);
}

.join-flow-content {
  align-items: flex-end;
  padding-left: 46px;
  border-left: solid 1px var(--gray);
}

.join-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 54px;
}

.join-flow-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.join-flow-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step {
  display: flex;
  padding: 14px 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  background: var(--purple_Kimberly);
}

.step-number {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: var(--ivory);
  font-family: var(--ubuntu);
  font-size: var(--font_32);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.step-title {
  display: flex;
  align-items: flex-start;
  color: var(--purple_Kimberly);
  font-family: var(--noto);
  font-size: var(--font_22);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.step-text {
  display: flex;
  align-items: flex-start;
  color: var(--purple_Kimberly);
  font-family: var(--noto);
  font-size: var(--font_18);
  font-style: normal;
  font-weight: 500;
  text-transform: capitalize;
}

.step-explanation {
  display: flex;
  padding: 0px 0px 20px 24px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  flex: 1 0 0;
  color: var(--gray);
  font-family: var(--noto);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 500;
  line-height: 199.8%;
  text-transform: capitalize;
}

/* イベントセクション */
.event-section {
  display: flex;
  padding: 60px 48px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  background: var(--shinonome);
  position: relative;
}

.event-section .section-title {
  color: var(--ivory);
}

.event-entire-title {
  color: var(--ivory);
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_60);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.event-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 70px;
}

.event-block {
  display: flex;
  align-items: center;
  gap: 56px;
}

.event-block img {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  width: 388px;
  height: 244px;
}

.event-entire-frame {
  display: flex;
  align-items: flex-end;
  z-index: 10;
  gap: 36px;
}

.event-text-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 12px;
  min-width: 480px;
}

.event-title-frame {
  width: 100%;
  display: flex;
  padding: 0px 12px 8px 12px;
  border-bottom: 1px solid var(--ivory);
  flex-direction: column;
  justify-content: flex-end;
}

.event-title {
  white-space: nowrap;
  color: var(--ivory);
  font-family: var(--noto);
  font-size: var(--font_24);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.event-subtitle {
  overflow: hidden;
  color: var(--ivory);
  text-overflow: ellipsis;
  font-family: var(--noto);
  font-size: var(--font_14);
  font-style: normal;
  font-weight: 200;
  line-height: normal;
}

.as-neeeded-message {
  color: #FFD700;
  font-family: var(--noto);
  font-size: var(--font_14);
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}

.as-neeeded-message a {
  color: var(--ivory);
  text-decoration: underline;
}

.event-schedule-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px 12px;
}

.event-schedule-title {
  color: var(--ivory);
  font-family: var(--noto);
  font-size: var(--font_18);
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}

.schedule-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.number {
  color: var(--ivory);
  font-family: var(--jomolhari);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.schedule {
  color: var(--ivory);
  font-family: var(--jomolhari);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.day {
  font-size: var(--font_16);
}

.application-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.apply-button {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--ivory, #fffcf7);
  overflow: hidden;
  color: #51658d;
  text-overflow: ellipsis;
  font-family: var(--noto);
  font-size: var(--font_16);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.apply-button:disabled {
  background: gray;
  cursor: not-allowed;
  pointer-events: none;
}

.apply-text {
  overflow: hidden;
  color: var(--ivory);
  text-overflow: ellipsis;
  font-family: var(--noto);
  font-size: var(--font_14);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.background-logo {
  position: absolute;
  right: 34px;
  bottom: 34px;
}

.background-logo img {
  opacity: 0.2;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .join-conditions-container {
    padding-top: 50px;
    flex-direction: column;
  }

  .join-conditions {
    align-self: unset;
  }

  .join-condition-block {
    width: 300px;
    height: 132px;
    padding: 16px 20px;
  }

  .condition-title {
    font-size: var(--font_24);
  }

  .condition-detail {
    font-size: var(--font_16);
    white-space: normal;
    align-self: center;
  }

  .detail-mini {
    font-size: var(--font_14);
    align-self: center;
  }

  .join-title {
    font-size: var(--font_36);
    margin-bottom: 32px;
  }

  .join-flow-content {
    display: flex;
    gap: 44px;
    padding: 0px 28px;
    align-self: stretch;
  }

  .join-flow {
    flex: 1 0 0;
  }
/* 
  .join-flow-block {
    align-self: stretch;
  } */

  .step {
    gap: 10px;
  }
/* 
  .step-explanation {
    flex: 0 0 0;
  } */

  .event-section {
    padding: 60px 10% 120px 10%;
  }

  .event-entire-title {
    font-size: var(--font_36);
    margin-bottom: 32px;
  }

  .event-container {
    align-items: center;
  }

  .event-block {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
  }

  .event-block img {
    width: 100%;
    max-width: 100%;
    height: auto;
    /* max-height: 244px; */
  }

  .event-entire-frame {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
  }

  .event-text-frame {
    min-width: unset;
    width: 100%;
    gap: 20px;
  }

  .event-title {
    font-size: var(--font_32);
  }

  .event-subtitle {
    font-size: var(--font_16);
  }

  .number {
    font-size: var(--font_32);
  }

  .schedule {
    font-size: var(--font_22);
  }

  .day {
    font-size: var(--font_24);
  }

  .application-button {
    width: 100%;
  }

  .apply-button {
    width: 100%;
    color: var(--blue_Kashmir);
  }

  .apply-button-1 {
    color: var(--blue_Kashmir);
    padding: 16px 40px;
  }

  .background-logo {
    right: 20px;
    bottom: 10px;
    white-space: nowrap;
  }

  .background-logo img {
    height: 90px;
  }

/* ───────────────────────────
① Smart phone  (0 – 639 px)
─────────────────────────── */
@media (max-width: 639px) {
  .join-conditions {
    flex-direction: column;
  }

  /* イベントセクションのレスポンシブ対応 */
  .event-section {
    padding: 60px;
  }

  .event-container {
    gap: 40px;
    width: 100%;
  }

  .event-block {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .event-block img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 388 / 244;
  }

  .event-entire-frame {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .event-title-frame {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0px 0px 8px 0px;
  }

  .event-title {
    font-size: var(--font_20);
    white-space: normal;
  }

  .event-subtitle {
    font-size: var(--font_14);
    line-height: 1.5;
  }

  .event-schedule-frame {
    width: 100%;
  }

  .schedule-block {
    gap: 12px;
    flex-wrap: wrap;
  }

  .number {
    font-size: var(--font_18);
    flex-shrink: 0;
  }

  .schedule {
    font-size: var(--font_14);
    line-height: 1.5;
  }

  .day {
    font-size: var(--font_14);
  }

  .apply-button {
    padding: 12px 16px;
    font-size: var(--font_14);
  }

  .apply-text {
    font-size: var(--font_12);
    text-align: center;
  }

  .background-logo {
    right: 10px;
    bottom: 10px;
  }

  .background-logo img {
    height: 60px;
  }
}
