/* =========================================================================
  ⚠️ 【注意】このファイルはテンプレートのコアファイルです ⚠️
  新しいサイトを作成する際、原則としてこのファイルは編集しないでください。
  ここを編集するとベースとなる共通のレイアウト構造がすべて崩れる恐れがあります。

  デザインの変更（色、フォント、個別の余白などの微調整）は、
  style.css や各投稿タイプの個別CSS (staff.css / news.css など) でオーバーライドしてください。
========================================================================= */

/* single pattern */
.single-detail__title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.single-detail__content a {
  height: 600px;
  width: 600px;
  max-height: 300px;
  max-width: 100%;
  margin: 0 auto;
  all: revert;
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-detail__content img {
  display: block;
  object-fit: contain;
  max-height: 100%;
  min-width: 0 !important;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
}

.single-detail__content h2,
.single-detail__content h3,
.single-detail__content h4,
.single-detail__content h5,
.single-detail__content h6 {
  font-weight: bold;
}

.single-detail__content h2 {
  font-size: 2.6rem;
  margin: 2rem 0 1rem;
}

.single-detail__content h3 {
  font-size: 2.1rem;
  margin: 1rem 0 0.5rem;
}

.single-detail__content h4,
.single-detail__content h5,
.single-detail__content h6 {
  font-size: 1.8rem;
}

.single-detail__content p {
  margin: 1rem 0;
}

/* single nav buttons */
.single-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.single-nav-btn {
  width: calc(30% - 1rem);
}

.single-nav-next {
  margin-left: auto;
}

.single-nav-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 4rem;
  padding: 0 2rem;
  border: 1px solid #707070;
  color: #333;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.single-nav-btn a:hover {
  background-color: #707070;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .single-nav-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .single-nav-btn {
    width: 100%;
    margin-left: 0;
  }

  .single-detail__content img {
    min-width: unset;
  }
}
