.unique-page {
  margin: 0 auto 80px;

  & section {
    margin-top: 64px;
    & + & {
      margin-top: 180px;
    }
  }

  & .section-title {
    margin-bottom: 18px;
    font-size: 30px;
    font-weight: 700;
    color: #111;
  }

  & .section-copy {
    color: #555;
    font-size: 20px;
    line-height: 1.75;
    margin-bottom: 1.3em;
    & strong {
      color: #111;
      font-weight: 500;
    }
  }
}
.second-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  h2 {
    font-size: 4rem;
    color: #000;

    strong {
      font-weight: 600;
    }
  }
  p {
    font-size: 2.4rem;
  }
  margin-top: 25px;
  margin-bottom: 60px;
}
.ebook-layout {
  display: block;
}

.ebook-panel {
  width: 100%;
}

.ebook-viewer-wrap {
  position: relative;
}

.ebook-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);

  & #flipbook {
    width: 100%;
    height: 100%;
  }

  & .stf__parent,
  & .stf__wrapper {
    width: 100% !important;
    height: 100% !important;
  }
}

.ebook-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #556275;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;

  &.is-hidden {
    display: none;
  }
}

.page {
  background: #fff;
  overflow: hidden;

  & canvas {
    width: 100%;
    height: 100%;
    display: block;
  }
}

.ebook-controls {
  margin-top: 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ebook-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ebook-btn {
  border: 1px solid #c5ccd6;
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1b2b46;

  &:hover {
    border-color: #8ea2bf;
  }
}

.ebook-page {
  font-size: 14px;
  color: #556275;
}

.ebook-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #1b2b46;
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

.ebook-nav-btn i {
  font-size: 30px;
}

.ebook-nav-prev {
  left: -50px;
}

.ebook-nav-next {
  right: -50px;
}

.ebook-nav-btn:hover {
  color: #0d3c77;
  transform: translateY(-50%) scale(1.12);
  opacity: 0.92;
}

.ebook-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
  color: #061e43;
  opacity: 1;
}

.ebook-nav-btn:focus,
.ebook-nav-btn:focus-visible,
.ebook-nav-btn:active {
  outline: none;
  box-shadow: none;
}

.ebook-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-bottom: 2px solid #111;
  background: transparent;
  color: #111;
  border-radius: 0;
  padding: 6px 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  transition:
    transform 0.14s ease,
    color 0.14s ease,
    border-bottom-color 0.14s ease,
    opacity 0.14s ease;
}

.ebook-download-btn:hover {
  color: #000;
  border-bottom-color: #000;
  transform: translateY(-1px);
  opacity: 0.88;
}

.ebook-download-btn:active {
  transform: translateY(1px) scale(0.98);
  opacity: 1;
}

.ebook-download-btn i {
  font-size: 20px;
  color: #111;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  row-gap: 80px;
}

.video-card {
  border: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-thumb-btn {
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  & img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    opacity: 1;
  }
  &:hover {
    &::after {
      backdrop-filter: blur(10px);
      background-color: rgba(0, 0, 0, 0);
      transform: scale(1.1);
      transform-origin: center center;
    }
  }
  &::after {
    content: '▶';
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.66);
    color: #fff;
    font-size: 24px;
    line-height: 62px;
    text-align: center;
    transition: 0.2s;
    display: block;
  }
}

.video-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  & iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
  }

  &.is-playing iframe {
    display: block;
  }

  &.is-playing .video-thumb-btn {
    display: none;
  }
}

.video-title,
.video-loc {
  font-size: 2.3em;
  line-height: 1.35;
}

.video-loc {
  font-weight: 700;
  color: #065863;
  font-size: 1.7em;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.video-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.video-tags .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #eef3fb;
  color: #244679;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.video-headline {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-desc {
  color: #4a5668;
  font-size: 1.2em;
  word-break: keep-all;
  line-height: 1.7;
}

.content-note {
  margin-top: 60px;
  color: #5f6e82;
  font-size: 1.5rem;
  text-align: center;
}

.instagram-box {
  display: flex;
  flex-direction: column;

  & img {
    width: 100%;
  }
}

.instagram-link {
  position: relative;
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  margin-top: 1.5em;
  gap: 4px;
  padding: 6px 0 4px;
  background: linear-gradient(90deg, #405de6 0%, #833ab4 28%, #c13584 52%, #e1306c 75%, #f77737 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 1.5em;
  line-height: 1.2;
  transition:
    transform 0.14s ease,
    opacity 0.14s ease;
}

.instagram-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #405de6 0%, #833ab4 28%, #c13584 52%, #e1306c 75%, #f77737 100%);
}

.instagram-link i {
  font-size: 1.2em;
  font-weight: bold;
}

.instagram-link:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.instagram-link:active {
  transform: translateY(1px) scale(0.98);
  opacity: 1;
}

@keyframes pageTurn {
  0% {
    transform: perspective(1200px) rotateY(0deg);
  }
  50% {
    transform: perspective(1200px) rotateY(-7deg);
  }
  100% {
    transform: perspective(1200px) rotateY(0deg);
  }
}

@media (max-width: 1199px) {
  .unique-page {
    width: 100%;
    margin-bottom: 64px;

    & section {
      margin-top: 56px;

      & + & {
        margin-top: 120px;
      }
    }

    & .section-title {
      font-size: 26px;
      margin-bottom: 14px;
    }

    & .section-copy {
      font-size: 17px;
      line-height: 1.6;
    }
  }

  .second-title {
    margin-top: 18px;
    margin-bottom: 42px;

    h2 {
      font-size: 3.2rem;
    }

    p {
      font-size: 2rem;
    }
  }

  .video-grid {
    gap: 18px;
    row-gap: 56px;
  }

  .video-card {
    gap: 22px;
  }

  .video-title {
    font-size: 1.9em;
  }

  .video-loc {
    font-size: 1.35em;
  }

  .video-headline {
    font-size: 1.25em;
  }

  .video-desc {
    font-size: 1.05em;
  }

  .content-note {
    margin-top: 42px;
    font-size: 1.25rem;
  }

  .instagram-link {
    font-size: 1.3em;
  }
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .unique-page {
    word-break: keep-all;
    margin-bottom: 52px;

    br {
      display: none;
    }

    & section {
      margin-top: 32px;

      & + & {
        margin-top: 72px;
      }
    }

    & .section-title {
      font-size: 24px;
      margin-bottom: 10px;
    }

    & .section-copy {
      font-size: 15px;
      line-height: 1.55;
      word-break: keep-all;
    }
  }

  .ebook-layout {
    margin: 0 -24px;
  }

  .ebook-page {
    font-size: 12px;
  }

  .ebook-controls {
    margin-top: 14px;
    padding: 0 24px;

    .ebook-download-btn {
      font-size: 14px;
    }
  }

  .ebook-viewer {
    aspect-ratio: 1/1;
  }

  .second-title {
    margin-top: 10px;
    margin-bottom: 28px;
    gap: 8px;

    h2 {
      font-size: 2.2rem;
    }

    p {
      font-size: 1.4rem;
    }
  }

  .video-card {
    gap: 16px;
  }

  .video-body {
    gap: 4px;
  }

  .video-title {
    font-size: 1.5em;
  }

  .video-loc {
    font-size: 1.15em;
  }

  .video-headline {
    font-size: 1.12em;
    margin-bottom: 4px;
  }

  .video-desc {
    font-size: 0.98em;
    line-height: 1.6;
  }

  .video-tags {
    margin-top: 10px;
    gap: 5px;
  }

  .video-tags .tag {
    min-height: 24px;
    padding: 3px 10px;
    font-size: 12px;
  }

  .content-note {
    margin-top: 28px;
    font-size: 1.1rem;
  }

  .ebook-controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ebook-nav-btn {
    width: 36px;
    height: 36px;
  }

  .ebook-nav-prev {
    left: -42px;
  }

  .ebook-nav-next {
    right: -42px;
  }

  .ebook-nav-btn i {
    font-size: 26px;
  }

  .instagram-link {
    margin-top: 1em;
    font-size: 1.15em;
  }
}

@media (max-width: 640px) {
  .unique-page {
    margin-bottom: 40px;

    & section {
      margin-top: 24px;

      & + & {
        margin-top: 52px;
      }
    }

    & .section-title {
      font-size: 21px;
      margin-bottom: 8px;
    }

    & .section-copy {
      font-size: 14px;
      line-height: 1.5;
    }
  }

  .second-title {
    margin-top: 8px;
    margin-bottom: 20px;

    h2 {
      font-size: 2.4rem;
      line-height: 1.3;
    }

    p {
      font-size: 1.35rem;
    }
  }

  .ebook-layout {
    margin: 0 -24px;
  }

  .ebook-controls {
    padding: 0 24px;
  }

  .ebook-nav-prev {
    left: -34px;
  }

  .ebook-nav-next {
    right: -34px;
  }

  .video-grid {
    row-gap: 56px;
  }

  .video-title {
    font-size: 1.25em;
  }

  .video-loc {
    font-size: 1em;
  }

  .video-headline {
    font-size: 1.02em;
  }

  .video-desc {
    font-size: 0.92em;
  }

  .content-note {
    font-size: 1rem;
    margin-top: 22px;
  }
  .instagram-box {
    margin: 0 -24px;
  }
  .instagram-link {
    margin-right: 24px;
    font-size: 1em;
  }
}
