[data-element-id] .up-d_removed-step {
  display: block;
}

.up-d_removed-step {
  display: none;
}

.up-d_wm {
  --c-cream: #fdf4dd;
  --c-cream-deep: #fbecc6;
  --c-main: #00b3ec;
  --c-main-light: #2ec3f2;
  --c-main-deep: #0096c9;
  --c-main-pale: #e2f6fd;
  --c-navy: #1f3a5f;
  --c-red: #e8403f;
  --c-text: #3a3a3a;

  margin: 0;
  padding: 64px 24px 72px;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
  color: var(--c-text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.up-d_wm * {
  box-sizing: border-box;
}

.up-d_wm img {
  display: block;
  max-width: 100%;
}

.up-d_wm-inner {
  max-width: calc(980px + 60px);
  width: 100%;
  padding-inline: 30px;
  margin-inline: auto;
  text-align: center;
}

/* ===== タイトル ===== */
.up-d_wm-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: #2b2b2b;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.up-d_wm-title-accent {
  font-style: normal;
  color: var(--c-red);
}

/* ===== ティール吹き出し ===== */
.up-d_wm-bubble {
  position: relative;
  margin-top: 30px;
  padding: 22px 28px;
  background: linear-gradient(180deg, var(--c-main-light) 0%, var(--c-main) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 179, 236, 0.28);
  color: #fff;
}

.up-d_wm-bubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 32px;
  height: 18px;
  background: var(--c-main);
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.up-d_wm-bubble-main {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}

.up-d_wm-bubble-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.95;
}

/* ===== 3ステップ ===== */
.up-d_wm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.up-d_wm-step {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 18px;
  background: #fff;
  border: 2px solid var(--c-main-pale);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 179, 236, 0.1);
}

.up-d_wm-step-icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  background: var(--c-main-pale);
  border-radius: 50%;
}

.up-d_wm-step-icon-img img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.up-d_wm-step-body {
  display: grid;
  gap: 6px;
}

.up-d_wm-step-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.up-d_wm-step-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-red);
  line-height: 1.6;
}

/* ===== 下部ブルー楕円 ===== */
.up-d_wm-ellipse {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 20px 40px;
  background: linear-gradient(180deg, var(--c-main-light) 0%, var(--c-main) 100%);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 179, 236, 0.3);
}

.up-d_wm-ellipse-txt {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.up-d_wm-br-sp {
  display: none;
}

/* ===== タブレット ===== */
@media (max-width: 767px) {
  .up-d_wm {
    padding: 48px 18px 56px;
  }
  .up-d_wm-title {
    font-size: 23px;
  }
  .up-d_wm-br-sp {
    display: inline;
  }
  .up-d_wm-bubble {
    margin-top: 24px;
    padding: 18px 20px;
  }
  .up-d_wm-bubble-main {
    font-size: 16px;
  }
  .up-d_wm-bubble-note {
    font-size: 12px;
  }
  .up-d_wm-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 38px;
  }
  .up-d_wm-step {
    grid-template-columns: 84px 1fr;
    justify-items: start;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    text-align: left;
  }
  .up-d_wm-step-icon-img {
    width: 84px;
    height: 84px;
  }
  .up-d_wm-step-icon-img img {
    width: 48px;
    height: 48px;
  }
  .up-d_wm-step-label {
    font-size: 16px;
  }
  .up-d_wm-ellipse {
    margin-top: 32px;
    padding: 16px 24px;
  }
  .up-d_wm-ellipse-txt {
    font-size: 15px;
  }
}

/* ===== スマホ小 ===== */
@media (max-width: 360px) {
  .up-d_wm-title {
    font-size: 20px;
  }
  .up-d_wm-step {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .up-d_wm-step-icon-img {
    width: 70px;
    height: 70px;
  }
}

 /* PCファースト：標準はPC画像を表示、SP画像は隠す */
  .step .is-sp {
    display: none;
  }

  .step-image img {
    width: 100%;
    height: auto;
  }

  /* 750px以下でSP画像に切り替え（元の media と同じ境界） */
  @media (max-width: 750px) {
    .step .is-pc {
      display: none;
    }
    .step .is-sp {
      display: block;
    }
  }
  
    /* みたまま編集画面では PC・SP 両方を表示 */
  [data-element-id] .step .is-pc,
  [data-element-id] .step .is-sp {
    display: block;
  }
  
   [data-element-id] .step .is-sp {
    margin-top: 12px;
  }
  
    [data-element-id] .step .step-image {
    position: relative;
  }

  [data-element-id] .step .is-pc::after,
  [data-element-id] .step .is-sp::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 4px 12px;
    background: #ff5722;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  [data-element-id] .step .is-pc::after {
    content: "PC画像";
  }

  [data-element-id] .step .is-sp::after {
    content: "SP画像";
  }
