/* static/css/step_demo_slider.css */
/* コラム記事内で、アプリの操作画面をHTML/CSSで再現して見せるためのスライダー部品。
   awsbomb側のLPで使っている step_demo.css の考え方を、コラム記事用に簡略移植したもの。 */

.step-demo-slider {
  width: 100%;
  max-width: 34rem;
  margin: 1.2rem auto 1.5rem;
  user-select: none;
}

.step-demo-caption {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #444;
  font-weight: 700;
  text-align: center;
  min-height: 1.2em;
}

.step-demo-viewport {
  overflow: hidden;
  border-radius: 0.6rem;
  border: 1px solid #9aa5b1;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.12);
}

.step-demo-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.45s ease-in-out;
}

.step-demo-frame {
  flex: 0 0 100%;
  width: 100%;
  padding: 0.9rem;
  background: #f0f8ff;
  box-sizing: border-box;
}

.step-demo-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.7rem;
}

.step-demo-navs {
  display: flex;
  gap: 0.5rem;
}

.step-demo-nav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.step-demo-nav:hover {
  background: #eff6ff;
  border-color: #0175d8;
  color: #0175d8;
}

.step-demo-nav.is-active {
  background: #0175d8;
  border-color: #0175d8;
  color: #fff;
}

/* ====== モーダル画面のモックアップ ====== */

.step-demo-modal {
  border: 1px solid #d0d5dd;
  border-radius: 0.6rem;
  background: #ffffff;
  overflow: hidden;
}

.step-demo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: #f7fbff;
  border-bottom: 1px solid #ddd;
}

.step-demo-modal__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.step-demo-modal__close {
  font-size: 1rem;
  color: #666;
  line-height: 1;
}

.step-demo-modal__body {
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.step-demo-modal__notice {
  margin: 0 0 0.7rem;
  padding: 0.5rem 0.65rem;
  background: #fffbeb;
  border: 1px solid #f0d78a;
  border-radius: 0.4rem;
  font-size: 0.74rem;
  color: #555;
  line-height: 1.6;
}

.step-demo-modal__field {
  margin-bottom: 0.6rem;
}

.step-demo-modal__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #111827;
}

.step-demo-modal__input,
.step-demo-modal__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border: 1px solid #ccc;
  border-radius: 0.35rem;
  background: #fff;
  color: #333;
  font-size: 0.8rem;
  font-family: inherit;
}

.step-demo-modal__textarea {
  min-height: 3.6rem;
  resize: none;
}

.step-demo-modal__help {
  margin: 0.3rem 0 0;
  font-size: 0.68rem;
  color: #888;
}

.step-demo-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #f7fbff;
  border-top: 1px solid #ddd;
}

.step-demo-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.35rem;
  background: #fff;
  color: #333;
  font-size: 0.78rem;
  font-weight: 700;
}

.step-demo-modal__btn--primary {
  border-color: #0175d8;
  background: #0175d8;
  color: #fff;
}

.step-demo-modal__btn--gmail {
  border-color: #ea4335;
  background: #ea4335;
  color: #fff;
}

/* ====== 宛先カード（氏名・電話番号など） ====== */

.step-demo-recipient {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.step-demo-recipient span {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.35rem;
  background: #fff;
  font-size: 0.78rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====== QRコードのモック（実際のQRではなく雰囲気を再現したもの） ====== */

.step-demo-qr-mock {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0.4rem auto 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222),
    linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222);
  background-size: 1rem 1rem;
  background-position: 0 0, 0.5rem 0.5rem;
  position: relative;
}

.step-demo-qr-mock::after {
  content: "";
  position: absolute;
  inset: 1.6rem;
  background: #fff;
  border: 0.35rem solid #222;
}

.step-demo-qr-caption {
  text-align: center;
  font-size: 0.68rem;
  color: #888;
  margin: 0 0 0.6rem;
}

.step-demo-open-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  color: #0175d8;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 600px) {
  .step-demo-recipient { flex-direction: column; }
}
