.step {
  max-width: 1030px;
  margin: 30px auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 40px;
}
.next_bt_img {
  max-width: 160px;
  margin: 8px 0;
}
/* 申込みボタン枠 */
#online_entry {
  scroll-margin-top: 40px;
}
#online_entry>div {
  max-width: 1030px;
  margin: 30px auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.step+.step,
.step+.tabs,
.step+.tabs-note {
  position: relative;
  margin-top: 100px;
}
.step+.step::before,
.step+.tabs::before,
.step+.tabs-note::before {
  content: "";
  position: absolute;
  top: -82px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 64px;
  background: #888;
  clip-path: polygon(35% 0, 65% 0, 65% 55%, 100% 55%, 50% 100%, 0 55%, 35% 55%);
}
.step h2 {
  margin-top: 0;
  margin-bottom: 20px;
}
.step h4 {
  font-size: clamp(1rem, 0.975rem + 0.13vw, 1.125rem);
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #fff 0%, #fcf0f2 20%, #fcf0f2 100%);
  color: #111;
  font-weight: bold;
  position: relative;
  padding: 8px 8px 8px calc(3.6em * 1.25 + 12px);
  margin-bottom: 48px;
}
.step-num {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6em;
  height: 3.6em;
  background: #b8183e;
  color: #fff;
  font-size: 125%;
  line-height: 1;
  border-radius: 50%;
}
.step .flex3 {
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
}
.step .flex3>p,
.step-text {
  flex: 1;
  min-width: 0;
}
.step .flex3 p {
  margin: 0;
  line-height: 2.2;
}
.step-text p+p {
  margin-top: 2em !important;
}
.step-image {
  display: block;
  flex-shrink: 0;
  width: 360px;
  max-width: 100%;
  height: auto;
  background: #ddd;
  border: 1px solid #ccc;
}
/* 現在位置ナビ*/
.step-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.step-nav.is-visible {
  opacity: 1;
  visibility: visible;
}
.step-nav li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  color: #999;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.step-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .step-nav li:not(.is-current):hover {
    border-color: #b8183e;
    color: #b8183e;
  }
}
.step-nav li:not(.is-current):active {
  border-color: #b8183e;
  color: #b8183e;
}
.step-nav li span {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: 0.05em;
}
.step-nav .step-nav-entry a {
  font-size: 11px;
  line-height: 1.2;
}
.step-nav li+li::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  width: 2px;
  height: 20px;
  background: #ccc;
  transform: translateX(-50%);
}
.step-nav li.is-current {
  background: #b8183e;
  border-color: #b8183e;
  color: #fff;
}
@media all and (max-width: 1180px) {
  .step-nav {
    right: 4px;
    gap: 10px;
  }
  .step-nav li {
    width: 38px;
    height: 38px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  .step-nav li span {
    margin-bottom: 1px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .step-nav li+li::before {
    height: 10px;
  }
  .step-nav .step-nav-entry a {
    font-size: 9px;
  }
}
.tabs-note {
  margin-bottom: 16px;
  scroll-margin-top: 40px;
}
/* タブ */
.tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  margin-bottom: 30px;
}
.tab-button {
  --tab-pad-b: 15px;
  position: relative;
  flex: 1;
  padding: 15px 15px calc(var(--tab-pad-b) + 36px);
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
}
.tab-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--tab-pad-b);
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}
.tab-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--tab-pad-b) + 14px + 2px);
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, 50%) rotate(45deg);
}
.tab-button span {
  display: block;
  margin: 4px 0;
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.375rem);
  font-weight: bold;
}
.tab-button.active {
  background: #b8183e;
  color: #fff;
}
/* A/B/C */
.branch {
  display: none;
}
.branch.active {
  display: block;
}
.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.nav-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.nav-btn:active {
  transform: scale(0.98);
}
.next {
  background: #007bff;
  color: #fff;
}
.next:hover {
  background: #0056b3;
}
/*=================================================================================
～520
=================================================================================*/
@media all and (max-width: 520px) {
  .tab-button {
    --tab-pad-b: 10px;
    padding: 10px 6px calc(var(--tab-pad-b) + 36px);
    font-size: 13px;
  }
  .step .flex3 {
    display: block;
  }
  .step-image {
    width: 100%;
    margin-top: 40px;
  }
}