* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ececec;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: min(100%, 375px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 28px rgba(0, 0, 0, .12);
}

.design-stage {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #fff;
  overflow: hidden;
}

.design {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/*
  Corrected PDF page: 375 x 6369.8 pt
  HOW TO COOK image: x=24, y=4490, w=329, h=586 pt

  The video is positioned directly over that area.
  It plays inside the page and does not open a modal or another window.
*/
.movie-area {
  position: absolute;
  left: 6.4%;
  top: 70.4889%;
  width: 87.7333%;
  height: 9.1997%;
  overflow: hidden;
  background: transparent;
}

.movie-area video {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
}

.movie-area.is-playing video {
  display: block;
}

.movie-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.movie-area.is-playing .movie-play {
  display: none;
}

.movie-play:focus-visible {
  outline: 3px solid #0078d4;
  outline-offset: -3px;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: rgba(0, 0, 0, .48);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .32);
  transform: translate(-50%, -50%);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 19px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 374px) {
  .page {
    width: 100%;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .page {
    width: 375px;
    box-shadow: none;
  }

  .movie-area {
    display: none !important;
  }
}


/* URL末尾に #movie を付けた時のスクロール位置を調整 */
#movie {
  scroll-margin-top: 16px;
}
