<!-- start Simple Custom CSS and JS -->
<style type="text/css">
.demo-app-open-btn,
.demo-app-switch-btn,
.demo-app-close-btn {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  outline: none !important;
  overflow: hidden;
  cursor: pointer;
}

.demo-app-container *,
.demo-app-modal-container * {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.demo-app-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}
.demo-app-buttons,
.demo-app-modal-nav-items-container {
  gap: 1rem;
}
.demo-app-modal-nav {
  width: 10%;
  min-width: 14rem;
  height: 100%;
  padding: 0.5rem;
  background: #f7f7f5;
  overflow-y: auto;
  transform: translate(25%, 0);
  /*
    border-radius: 0 0 0 0.3rem;
      transform: translateX(100%);
    */

  transition: transform 2.1s ease-out;
}
.is-open .demo-app-modal-nav {
  transform: translate(0, 0);
}
.demo-app-modal-nav-items-container {
  flex-direction: column;
  gap: 1rem;
  height: max-content;
}
/*
  .demo-app-modal-nav button {
    transform: scale(1.2);
    transition: 1.4s ease-in;
  }
  .is-open .demo-app-modal-nav button {
    transform: scale(1);
  }
    */

.demo-app-open-btn,
.demo-app-switch-btn {
  position: relative;
  width: 100%;
  height: auto;
  padding: 0 !important;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  overflow: hidden;
  transition: box-shadow 0.5s ease-in-out;
}
.demo-app-open-btn {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.demo-app-open-btn img,
.demo-app-switch-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transform-origin: top center;
  transition: transform 0.5s ease-out;
}
.demo-app-open-btn p,
.demo-app-switch-btn p {
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.3rem;
  background: hsla(0, 0%, 0%, 0.4);
  color: #fff;
  z-index: 1;
}

/* 実行中のiframeに対応するボタンを強調表示 */
.demo-app-switch-btn.is-active {
  box-shadow: 0 0 0.1rem 0.1rem #ffffff, 0 0 0.1rem 0.3rem #001747;
}

.demo-app-buttons-container {
  width: 100%;
  gap: 0.5rem;
  padding: 0.5rem;
  background: hsla(0, 0%, 0%, 0.2);
  border-radius: 0.3rem;
}
.demo-app-buttons-container h4,
.qr-container > p {
  margin: 0 !important;
  padding: 0.3rem;
  background: hsla(0, 0%, 0%, 0.8);
  color: #fff;
  font-size: 1rem !important;
  border-radius: 0.2rem;
}
.qr-container {
  display: none;
}
body.podd-class-desktop .qr-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(calc(100% + 1rem));
  right: 0;
  top: 0;
  width: 100%;
  max-width: 13vw;
  height: max-content;
  max-height: 16rem;
  padding: 0.5rem 0.5rem 0 0.5rem;
  border: 1px solid #36373e;
  background: transparent;
  border-radius: 0.3rem;
  z-index: 10;
}
.qr-container > p {
  border-radius: 0.2rem;
}
.qr-container > img {
  width: 100%;
  /* 余り高さを受け持つ柔軟アイテムに */
  flex: 1 1 auto;
  min-height: 0; /* フレックス内で縮められるように */
  align-self: stretch; /* 幅100%を確実に */
  object-fit: contain; /* コンテナ内に収める */
}

/* === モーダル === */
.demo-app-modal-container {
  inset: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  gap: 0.3rem;
  /*transform: scale(0.6);
    transform-origin: center;*/
  background: hsla(0, 0%, 0%, 0.2);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999999;
  transition: opacity 0.8s ease-in;
}

/* 表示状態 */
.demo-app-modal-container.is-open {
  /*transform: scale(1);*/
  opacity: 1;
  pointer-events: auto;
}

/* === 閉じるボタン === */
.demo-app-modal-header {
  width: 100%;
  height: 2.5rem;
  padding: 0.4rem;
  border-bottom: 1px solid #36373e;
  overflow: hidden;
}
.demo-app-close-btn {
  height: 100%;
  padding: 0.2rem 0.5rem;
  border-radius: 3rem;
  border: 1px solid #36373e;
  color: #000000;
  transition: 0.2s ease-in-out;
}
.demo-app-close-btn:active {
  background: hsla(0, 0%, 0%, 0.1);
  transform: scale(0.95);
}

.demo-app-modal-content {
  transform: scaleX(0.95);
  border-radius: 0.6rem;
  overflow: hidden;
}

/* === iframe === */
.demo-app-frame-container {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  /*
    transform: translateY(-1rem);
    clip-path: inset(5% 300% 5% 300%);
    */
  clip-path: inset(0 5% 0 5%);
  transition: clip-path 2.1s ease-out;
}
.is-open .demo-app-frame-container {
  clip-path: inset(0);
}

.demo-app-modal-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  /*
    width: 90% !important;
    max-width: 90% !important;
    min-width: calc(100% - 8rem) !important;
    */
  /*
    height: 90% !important;
    min-height: calc(100% - 8rem) !important;
    /*
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    */
  /*
    border: 3px solid #ccc;
    border-radius: 0.5rem;
      */
  /*
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.6);
    overflow: hidden;
    */
}
@media screen and (max-width: 899px) {
  .demo-app-modal-content {
    flex-direction: column;
  }
  .demo-app-modal-nav {
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 11.5rem !important;
    overflow-x: auto;
    overflow-y: hidden !important;
    transform: translate(0, 25%) !important;
  }
  .is-open .demo-app-modal-nav {
    transform: translate(0, 0) !important;
  }
  .demo-app-modal-nav-items-container {
    flex-direction: row !important;
    gap: 1rem;
    width: max-content !important;
    height: 100% !important;
  }
  .demo-app-switch-btn {
    width: auto;
    height: 100%;
  }
}
@media (hover: hover) {
  .demo-app-open-btn:hover {
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
  }
  .demo-app-open-btn:hover img,
  .demo-app-switch-btn:hover img {
    transform: scale(1.1);
  }
  .demo-app-close-btn:hover {
    background: hsla(0, 0%, 0%, 0.1);
  }
}
</style>
<!-- end Simple Custom CSS and JS -->
