#contents{
  padding: 0 15px;
}
.custom-pdf-viewer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  background: #303744;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

/* 上部 */

.pdf-header {
  height: 54px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #fff;
  border-bottom: 1px solid #ddd;
}

.pdf-title {
  font-size: 13px;
  font-weight: 600;
  color: #303642;
}

.pdf-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdf-download {
  font-size: 13px;
  font-weight: 600;
  color: #2864e8;
  text-decoration: none;
}

.pdf-download:hover {
  text-decoration: underline;
}


/* PDF表示部分 */

.pdf-stage {
  box-sizing: border-box;

  /* min-height: 600px; */
  padding: 14px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #303744;
}

#pdf-canvas {
  display: block;

  max-width: 100%;
  max-height: calc(100vh - 180px);

  background: #fff;

  box-shadow:
    0 1px 2px rgba(0,0,0,.15),
    0 4px 16px rgba(0,0,0,.12);
}


/* 下部 */

.pdf-controls {
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 32px;

  background: #fff;
  border-top: 1px solid #ddd;
}

.pdf-controls button {
  min-width: 76px;
  height: 36px;

  padding: 0 14px;

  background: #fff;

  border: 1px solid #d9dee7;
  border-radius: 8px;

  color: #343b47;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition: .2s;
}

.pdf-controls button:hover {
  background: #f4f6f8;
  border-color: #9ca5b2;
}

.pdf-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.pdf-page-number {
  min-width: 58px;

  text-align: center;

  color: #687181;

  font-size: 14px;
  font-weight: 600;
}


/* SP */

@media (max-width: 767px) {

  .pdf-stage {
    /* min-height: 400px; */
    padding: 8px;
  }

  .pdf-controls {
    gap: 14px;
  }

  .pdf-controls button {
    min-width: 66px;
  }

}