#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.article #contents {
  padding: 0;
}

header .header_inner .header_logo {
  opacity: 1;
}

header.active .header_logo {
  opacity: 0;
}

@media screen and (max-width: 767px) {
  header .header_inner .header_logo a {
    display: none;
  }
}
footer {
  flex: 1;
}
@media screen and (max-width: 767px) {
  footer {
    display: none;
  }
}

.memory-album__stage {
  display: grid;
  grid-template-columns: 1fr 480px 1fr;
  align-items: stretch;
  background: url("../images/memory_bk.jpg") no-repeat center top;
  background-size: cover;
}
@media screen and (max-width: 767px) {
  .memory-album__stage {
    display: block;
    min-height: 100svh;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background-position: center top;
  }
}

.memory-album__side {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .memory-album__side {
    display: none;
  }
}

.memory-album__side-title {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  margin: 0;
  color: #ff5da1;
  font-size: 62px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
}

.memory-album__side-title img {
  width: 100%;
}

.memory-album__device {
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 767px) {
  .memory-album__device {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    width: 100%;
  }
}

.memory-album__device-screen {
  position: relative;
  min-height: 740px;
  padding: 0;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .memory-album__device-screen {
    width: 100%;
    min-height: 154.1666666667vw;
  }
}

.memory-album__book-shell {
  position: relative;
  height: 740px;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .memory-album__book-shell {
    width: 100%;
    height: 154.1666666667vw;
  }
}

.memory-album__book {
  width: 100%;
  height: 100%;
}

.memory-album__book-page-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-inner {
    flex-direction: row;
  }
}

.memory-album__book-page-inner img {
  display: block;
  width: 100%;
  height: 100%;
}

.memory-album__book-page-inner--scroll-map,
.memory-album__book-page-inner--scroll-collab {
  overflow: hidden;
}

.memory-album__book-page-scroll {
  position: absolute;
  z-index: 2;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: #ff5f9c #f8b8d0;
}

.memory-album__book-page-scroll::-webkit-scrollbar {
  height: 10px;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-scroll::-webkit-scrollbar {
    height: 1.866666vw;
  }
}

.memory-album__book-page-scroll::-webkit-scrollbar-track {
  background: #f8b8d0;
  border-radius: 999px;
}

.memory-album__book-page-scroll::-webkit-scrollbar-thumb {
  background: #ff5f9c;
  border-radius: 999px;
}

.memory-album__book-page-scroll--map {
  top: 25%;
  right: 0;
  bottom: 12%;
  left: 0;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-scroll--map {
    top: 25%;
    bottom: 10%;
  }
}

.memory-album__book-page-scroll--collab {
  top: 44%;
  right: 0;
  bottom: 12%;
  left: 0;
  padding: 20px;
  margin: 10px;
  background-color: #f8c4dd;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-scroll--collab {
    bottom: 8%;
  }
}

.memory-album__book-page-inner--scroll-collab::before {
  content: "";
  position: absolute;
  top: 42%;
  right: 5px;
  z-index: 3;
  width: 45px;
  height: 45px;
  background: url("../images/memory_collab-ribbon.png") no-repeat center/contain;
  pointer-events: none;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-inner--scroll-collab::before {
    right: 3.733333vw;
    width: 10.266666vw;
    height: 8.533333vw;
  }
}

.memory-album__book-page-inner--scroll-collab::after {
  content: "";
  position: absolute;
  bottom: 7%;
  left: 12%;
  z-index: 3;
  width: 68px;
  aspect-ratio: 156/159;
  background: url("../images/memory_scroll_hint.png") no-repeat center/contain;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-inner--scroll-collab::after {
    bottom: 0.5%;
    left: 15%;
    width: 20.8vw;
  }
}

.memory-album__book-page-inner--scroll-map::after {
  content: "";
  position: absolute;
  bottom: 6%;
  left: 12%;
  z-index: 3;
  width: 68px;
  aspect-ratio: 156/159;
  background: url("../images/memory_scroll_hint.png") no-repeat center/contain;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
@media screen and (max-width: 767px) {
  .memory-album__book-page-inner--scroll-map::after {
    bottom: 0.5%;
    left: 15%;
    width: 20.8vw;
  }
}

.memory-album__book-page-inner--scroll-collab.is-scroll-hint-hidden::after,
.memory-album__book-page-inner--scroll-map.is-scroll-hint-hidden::after {
  opacity: 0;
  visibility: hidden;
}

.memory-album__book-page-scroll .memory-album__book-page-scroll-image {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: left top;
}

@media screen and (max-width: 767px) {
  .memory-album__book-page-inner--scroll-map .memory-album__book-page-scroll-image {
    width: 200% !important;
  }
}

@media screen and (max-width: 767px) {
  .memory-album__book-page-inner--scroll-collab .memory-album__book-page-scroll-image {
    width: 300% !important;
    height: auto;
  }
}

.memory-album__device-cta {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 18px;
  padding: 7px 0 17px;
  background: #ff5f9c;
}
@media screen and (max-width: 767px) {
  .memory-album__device-cta {
    flex: 1 0 auto;
    grid-template-columns: 1fr 1fr 1fr;
    align-content: center;
    gap: 4vw;
    padding: 3.733333vw 0 23.666666vw;
  }
}

.memory-album__device-cta-area {
  display: flex;
  align-items: center;
}

.memory-album__device-cta-area--left {
  justify-content: center;
}

.memory-album__device-cta-area--center {
  justify-content: center;
}

.memory-album__device-cta-area--right {
  justify-content: center;
}

.memory-album__device-cta-icon {
  width: 108px;
}
@media screen and (max-width: 767px) {
  .memory-album__device-cta-icon {
    width: 22.666666vw;
  }
}

.memory-album__device-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
@media screen and (max-width: 767px) {
  .memory-album__device-cta-button {
    width: 21.333333vw;
  }
}

.memory-album__device-cta-button.is-disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
}

.memory-album__device-cta-button img,
.memory-album__device-cta-icon img {
  display: block;
  max-width: 100%;
  height: auto;
}

.memory-album__device-cta-copy {
  display: none;
}
@media screen and (max-width: 767px) {
  .memory-album__device-cta-copy {
    display: block;
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    color: #fff;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0;
    font-size: 2.7vw;
    line-height: 1.45;
  }
}