/* 予約手順全体 */
.reservation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;

  /* 左端を本文の境界から少し離す */
  width: calc(100% - 16px);
  max-width: none;
  box-sizing: border-box;
  margin: 28px 0 24px 16px;

  align-items: stretch;
}

/* カード */
.reservation-step {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #dfe2f2;
  border-top: 3px solid #78b83a;
  border-radius: 5px;

  text-align: center !important;
}

/* 番号 */
.reservation-step__number {
  display: block;
  width: fit-content;
  flex: 0 0 auto;

  margin: 0 auto 10px;
  padding: 4px 12px;

  background: #78b83a;
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 4px;
}

/* 見出し */
.reservation-step__title {
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  min-height: 3em;
  margin: 0 0 8px !important;
  padding: 0 !important;

  color: #222222;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;

  text-align: center !important;
}

/* 説明文 */
.reservation-step__text {
  flex: 1 1 auto;
  box-sizing: border-box;

  margin: 0 !important;
  padding: 0 !important;

  color: #444444;
  font-size: 14px;
  line-height: 1.7;

  text-align: justify !important;
  text-justify: inter-character;
}

/* カード内の既存見出し装飾を無効化 */
.reservation-step::before,
.reservation-step::after,
.reservation-step__title::before,
.reservation-step__title::after {
  content: none !important;
  display: none !important;
}

/* カード内の文字方向と折り返し */
.reservation-step,
.reservation-step * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 申込書の補足 */
.reservation-note {
  box-sizing: border-box;
  width: calc(100% - 24px);
  margin: 18px 0 24px 24px;
  padding: 16px 20px;

  background: #f7f7f9;
  border-left: 4px solid #78b83a;
}

/* 補足の見出し */
.reservation-note__title {
  margin: 0 0 8px;
  padding: 0;

  color: #222222;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

/* 補足の説明 */
.reservation-note p {
  margin: 0;
  padding: 0;

  color: #444444;
  font-size: 14px;
  line-height: 1.7;
}

/* タブレット */
@media screen and (max-width: 900px) {
  .reservation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマートフォン */
@media screen and (max-width: 600px) {
  .reservation-steps {
    grid-template-columns: 1fr;
    gap: 12px;

    width: calc(100% - 12px);
    margin-left: 12px;
  }

  .reservation-step {
    padding: 16px 20px;
  }

  .reservation-step__title {
    min-height: 0;