/* =========================================================
   STEP画面：上部ガイドと実画面表示枠
   ---------------------------------------------------------
   このファイルは、各STEPページ上部の説明パネルと、
   実際の開発画面を表示する iframe 枠を整えます。
   ========================================================= */

/* ページ全体の表示幅 */

.step1-exact-wrap {
  width: min(1220px,calc(100% - 24px));
  margin: 0 auto 30px;
}

/* 上部のガイドパネル（左：説明、右：次の操作） */

.step1-top-guide {
  width: min(1220px,calc(100% - 24px));
  margin: 12px auto 10px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  background: #fff;
  border: 1px solid #c8d9e1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31,67,86,.08);
  overflow: hidden;
}

/* ガイドパネル左右の共通余白 */

.step1-top-left,
.step1-top-right {
  padding: 14px 24px;
}

.step1-top-left {
  background: linear-gradient(135deg,#eef9ff,#fff);
  border-right: 1px solid #d7e6ed;
}

.step1-top-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step1-top-step {
  display: inline-block;
  margin-bottom: 8px;
  color: #1374a8;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
}

.step1-top-guide h1 {
  margin: 0 0 8px;
  font-size: clamp(21px,2.4vw,30px);
  line-height: 1.35;
  color: #163b50;
}

.step1-top-guide h2 {
  margin: 0 0 7px;
  font-size: 19px;
  color: #163b50;
}

.step1-top-guide p {
  margin: 0;
  color: #4d6370;
  line-height: 1.7;
  font-size: 14px;
}

/* 操作手順を示す丸番号付きポイント */

.step1-top-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.step1-top-points span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #cfe1ea;
  border-radius: 999px;
  color: #31566a;
  font-size: 13px;
  font-weight: 700;
}

.step1-top-points b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #138ac0;
  color: #fff;
  font-size: 12px;
}

/* 戻るリンク・次へボタン */

.step1-top-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.step1-top-actions a {
  color: #23627e;
  font-weight: 700;
  text-decoration: none;
}

.step1-next {
  border: 0;
  border-radius: 9px;
  padding: 14px 22px;
  background: #e67e22;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

/* 実際の開発画面を囲む外枠 */

.step1-exact-framebox {
  background: #dceaea;
  border: 1px solid #78979a;
  box-shadow: 0 5px 20px rgba(29,63,69,.16);
  overflow: hidden;
}

.step1-exact-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #efffff;
  overflow: hidden;
}

/* タブレット以下：ガイドを縦並びにする */

@media (max-width: 800px) {
  .step1-top-guide {
    grid-template-columns: 1fr;
  }
  .step1-top-left {
    border-right: 0;
    border-bottom: 1px solid #d7e6ed;
  }
  .step1-top-actions {
    justify-content: stretch;
  }
  .step1-top-actions a {
    text-align: center;
    width: 100%;
  }
  .step1-next {
    width: 100%;
  }
}

/* スマートフォン：余白と枠線を調整する */

@media (max-width: 700px) {
  .step1-exact-wrap {
    width: 100%;
    margin-bottom: 20px;
  }
  .step1-exact-framebox {
    border-left: 0;
    border-right: 0;
  }
  .step1-top-guide {
    width: calc(100% - 24px);
    margin-top: 12px;
  }
  .step1-top-left,
  .step1-top-right {
    padding: 18px;
  }
}
