/**
 * GMS 参加の流れ
 */

/* セクション */
.gms-flow {
  background-color: var(--s-color-6595484e, #333);
  display: flex;
  justify-content: center;
  width: 100%;
}

/* 内部ラッパー */
.gms-flow__inner {
  display: flex;
  padding: 60px 50px 90px 50px;
  width: 1440px;
  height: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: stretch;
  align-items: stretch;
  justify-content: space-between;
  gap: 50px;
  max-width: 100%;
}

@media screen and (max-width: 840px) {
  .gms-flow__inner {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media screen and (max-width: 540px) {
  .gms-flow__inner {
    padding: 40px 20px 70px 20px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 40px;
  }
}

/* コンテンツブロック（参加までの流れ） */
.gms-flow__block {
  align-content: center;
  align-items: center;
  background: var(--s-color-8ba294d6, #f5f5f5);
  border-radius: 24px;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 40px;
  height: auto;
  justify-content: flex-start;
  margin: 0;
  min-width: 0;
  padding: 80px 40px 50px 40px;
  position: relative;
}

@media screen and (max-width: 840px) {
  .gms-flow__block {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 540px) {
  .gms-flow__block {
    border-radius: 16px;
    padding: 60px 20px 40px 20px;
  }
}

/* コンテンツブロック（先輩からのメッセージ） */
.gms-flow__block--message {
  padding: 60px 40px 60px 40px;
}

@media screen and (max-width: 540px) {
  .gms-flow__block--message {
    border-radius: 16px;
    padding: 40px 40px;
  }
}

/* ヘッダー（absolute positioned） */
.gms-flow__header {
  align-content: center;
  align-items: center;
  background: transparent;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  height: auto;
  justify-content: center;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: -25px;
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__header {
    padding: 0 20px;
  }
}

/* バッジ（タイトル背景） */
.gms-flow__badge {
  align-content: center;
  align-items: center;
  background: var(--s-color-8ba294d6, #f5f5f5);
  border: 2px solid var(--s-color-6595484e, #333);
  border-radius: 128px;
  box-shadow: 4px 4px 0px var(--s-color-6595484e, #333);
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  height: 46px;
  justify-content: center;
  width: 364px;
  max-width: 100%;
}

/* タイトル */
.gms-flow__title {
  color: var(--s-color-6595484e, #333);
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 20px;
  font-weight: 700;
  height: auto;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  text-align: left;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__title {
    font-size: 16px;
  }
}

/* フロー画像 */
.gms-flow__image {
  flex: none;
  height: auto;
  width: 586px;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__image {
    display: flex;
  }
}

/* 注意事項（richText） */
.gms-flow__notes {
  color: #333;
  flex: none;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 16px;
  font-weight: 400;
  height: auto;
  line-height: 1.8;
  padding: 0;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.gms-flow__notes ul {
  color: #333;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.5em;
}

.gms-flow__notes ul li {
  list-style: disc;
  margin-bottom: 0.5em;
}

.gms-flow__notes li p {
  color: #333;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
}

.gms-flow__notes li a {
  color: #333;
  text-decoration: underline;
}

@media screen and (max-width: 540px) {
  .gms-flow__notes,
  .gms-flow__notes ul,
  .gms-flow__notes li p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* 体験談コンテナ */
.gms-flow__testimonials {
  align-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-radius: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 40px;
  height: auto;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonials {
    gap: 20px;
  }
}

/* 体験談リスト */
.gms-flow__testimonial-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-list {
    padding: 0;
  }
}

/* 体験談アイテム */
.gms-flow__testimonial {
  align-content: flex-start;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 20px;
  height: auto;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial {
    align-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: flex-end;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* 体験談ヘッダー（画像+著者） */
.gms-flow__testimonial-header {
  align-content: center;
  align-items: center;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-header {
    margin: 0;
  }
}

/* 体験談画像 */
.gms-flow__testimonial-image {
  border-radius: 96px;
  flex: none;
  height: 120px;
  width: 120px;
  max-width: 100%;
  object-fit: cover;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-image {
    flex: none;
    height: 90px;
    width: 90px;
    z-index: 2;
    max-width: 100%;
  }
}

/* 体験談著者コンテナ */
.gms-flow__testimonial-author {
  align-content: flex-start;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex: 1;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  height: auto;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-author {
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
  }
}

/* 体験談引用文 */
.gms-flow__testimonial-quote {
  background: #fff;
  color: #333;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 20px;
  font-weight: 700;
  height: auto;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-quote {
    font-size: 16px;
  }
}

/* 体験談著者名 */
.gms-flow__testimonial-name {
  background: #fff;
  color: #333;
  flex: none;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 14px;
  font-weight: 400;
  height: auto;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  text-align: center;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-name {
    font-size: 12px;
    margin: 0 10px 3px 0;
    max-width: calc(100% - 10px);
  }
}

/* 体験談本文コンテナ */
.gms-flow__testimonial-body {
  align-content: flex-start;
  align-items: flex-start;
  border-radius: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-body {
    margin: 0;
    padding: 0;
  }
}

/* 体験談本文テキスト */
.gms-flow__testimonial-text {
  background: #fff;
  color: #333;
  flex: none;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 16px;
  font-weight: 400;
  height: auto;
  line-height: 1.8;
  margin: 0 0 20px 0;
  text-align: left;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 540px) {
  .gms-flow__testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 100%;
  }
}
