.compact-flow-section {
  position: relative; margin: 60px 0; padding: 42px 30px 30px; overflow: hidden;
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  box-shadow: 0 5px 20px rgba(20, 37, 61, 0.08); box-sizing: border-box;
}
.compact-flow-intro { margin-bottom: 28px; text-align: center; }
.compact-flow-label {
  margin: 0 0 7px; color: #b38822; font-family: Georgia, "Times New Roman", serif;
  font-size: 11px; letter-spacing: 0.18em;
}
#main-contents .compact-flow-intro h2 {
  width: auto; height: auto; margin: 0 0 10px; padding: 0; border: 0;
  background: none; box-shadow: none; color: #0a2047;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "游明朝", serif;
  font-size: 31px; font-weight: 500; line-height: 1.5; letter-spacing: 0.08em;
  text-align: center; text-shadow: none;
}
.compact-flow-intro h2::before, .compact-flow-intro h2::after {
  content: ""; display: inline-block; width: 75px; height: 1px;
  margin: 0 18px 9px; background: #c49a31;
}
.compact-flow-intro > p:last-child { color: #555; font-size: 13px; line-height: 1.7; }
.compact-flow-list {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0; margin: 0; padding: 0; list-style: none;
}
.compact-flow-step {
  position: relative; min-width: 0; padding: 0 10px 18px; text-align: center; box-sizing: border-box;
}
.compact-flow-step:not(:last-child)::after {
  content: "\f105"; position: absolute; top: 78px; right: -5px; color: #b78c20;
  font-family: "Font Awesome 6 Free"; font-size: 25px; font-weight: 900;
}
.compact-flow-number {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(145deg, #d4aa27, #9c7000);
  color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: bold;
}
.compact-flow-icon { height: 61px; margin-bottom: 13px; color: #bc9023; font-size: 48px; line-height: 61px; }
#main-contents .compact-flow-step h3 {
  width: auto; height: auto; min-height: 2.8em; margin: 0 0 8px; padding: 0;
  border: 0; background: none; box-shadow: none; color: #222; font-size: 15px;
  font-weight: bold; line-height: 1.4; text-align: center; text-shadow: none;
}
.compact-flow-step p { color: #555; font-size: 11px; line-height: 1.65; }
.compact-flow-button {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  width: min(440px, 100%); margin: 10px auto 0; padding: 14px 25px;
  background: #071944; color: #fff !important; font-size: 15px; font-weight: bold;
  text-decoration: none; box-sizing: border-box; transition: background 0.2s ease;
}
.compact-flow-button:hover { background: #b1841a; }
@media screen and (max-width: 900px) {
  .compact-flow-list { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
  .compact-flow-step:nth-child(3)::after { display: none; }
}
@media screen and (max-width: 767px) {
  .compact-flow-section {
    margin: 40px 0;
    padding: 30px 10px 20px;
  }

  #main-contents .compact-flow-intro h2 {
    font-size: 25px;
  }

  .compact-flow-intro h2::before,
  .compact-flow-intro h2::after {
    width: 25px;
    margin: 0 7px 7px;
  }

  .compact-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .compact-flow-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: 36px auto;
    column-gap: 9px;
    row-gap: 10px;
    align-items: center;
    min-height: 145px;
    padding: 13px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: left;
  }

  .compact-flow-step:not(:last-child)::after,
  .compact-flow-step:nth-child(3)::after {
    display: block;
    top: 66px;
    right: 4px;
    font-size: 17px;
  }

  .compact-flow-step:nth-child(2n)::after {
    display: none;
  }

  .compact-flow-number {
    grid-column: 1;
    grid-row: 1;
    width: 34px;
    height: 34px;
    margin: 0;
    font-size: 13px;
  }

  .compact-flow-icon {
    position: static;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: 40px;
    height: 42px;
    margin: 2px 0 0;
    font-size: 30px;
    line-height: 42px;
    text-align: center;
  }

  #main-contents .compact-flow-step h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-height: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
  }

  .compact-flow-step p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding-right: 8px;
    font-size: 10.5px;
    line-height: 1.6;
  }

  .compact-flow-button {
    margin-top: 18px;
  }
}
