/* 共通 */
:root {
  --main-font: "TheImpressionist", serif;
  /* --noto-font: "Noto Sans JP", sans-serif; */
  --sub-font: "Parisienne", cursive;
  --noto-font: "Noto Serif", serif;
  --base-font-size: 16px;
  --heading-font-size: 2rem;
  --main-color: #B59B9B;
  --main-blue: #1F233A;
  --main-gray: #D9D9D9;
  --font-gray: #4E4E4E;
}

/* 全体の箱 */
.container_wrapper {
  max-width: 128rem;
  padding: 7rem 0 0;
  background-color: #D9D9D9;
}

.contents_wrapper {
  max-width: 100rem;
  margin: 0 auto;
}

/* タイトル */
.contents_wrapper h2 {
  font-size: 5rem;
  font-weight: 500;
  text-align: center;
  padding: 2rem 0 0;
  color: #1F233A;
  font-family: var(--main-font);
}


/* 小タイトル */
.service-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 5rem;
  color: #1F233A;
  font-family: var(--noto-font);
}

/* コンテンツの箱３個並び */
.service-top {
  /* 👇これでコンテンツを横並びにする */
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
}

/* コンテンツの塊 */
.contents_items {
  width: 30rem;
  height: 30rem;
  position: relative;
}

/* コンテンツ画像 */
.contents_items img {
  /* 画像サイズ下記のどちらでも親要素のサイズ300ｐｘになる */
  width: 30rem;
  height: 30rem;
}

/* ACF撮影タイプの帯 */
.acf-type {
  width: 30rem;
  height: 4rem;
  background-color: rgb(33 33 33 / 51%);
  color: #ffffff;
  font-size: 2rem;
  font-family: var(--noto-font);
  position: absolute;
  bottom: 0;
  text-align: right;
  padding-right: 2rem;
  line-height: 4rem;
  font-weight: 300;
}


/* ここからリンクボタン */
.link-btn {
  background-color: #1F233A;
  width: 22rem;
  height: 4rem;
  border-radius: 3rem;
  font-size: 1.6rem;
  margin: 0 auto;
  text-align: center;
  line-height: 4rem;
  margin: 5rem auto 5rem;
  cursor: pointer;
  transition: all 0.8s ease;
}

.link-btn:hover {
  background-color: #ffffff;
  opacity: 1;
  color: #1F233A;
}

.link-btn a {
  color: #fff;
  font-weight: 300;
  font-family: var(--noto-font);
}

.link-btn:hover a {
  color: #1F233A;
}


/* ページネーション全体 */
.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

/* ナビゲーションリンクラッパー */
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* 共通の立体ボタンスタイル */
.page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ffffff, #e6e6e6);
  color: #1F233A;
  font-family: var(--Teko, sans-serif);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  top: 0;
}

/* ホバーで浮かせる */
.page-numbers:hover {
  top: -2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 現在ページのスタイル */
.page-numbers.current {
  background: linear-gradient(to bottom, #1F233A, #1F233A);
  color: #fff;
  font-family: var(--noto-font);
  border: 1px solid #1F233A;
}

/* ドット（...） */
.page-numbers.dots {
  background: none;
  box-shadow: none;
  border: none;
  cursor: default;
  color: #aaa;
}

/* 前へ・次へのスタイル */
.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(to bottom, #1F233A, #1F233A);
  color: #fff;
  font-size: 1.4rem;
  font-family: var(--noto-font);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border: none;
}

/* 前・次 ホバー時の動き */
.page-numbers.prev:hover,
.page-numbers.next:hover {
  background: linear-gradient(to bottom, #D9D9D9, #D9D9D9);
  color: #1F233A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  top: -2px;
}

/* inview */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
.inview1 {
  opacity: 0;
  transform: translateY(5rem);
  transition: 0.8s;
}

.inview1.show {
  opacity: 1;
  transform: translateY(0px);
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */



/* ここからスマホ版・SP版 */
@media screen and (max-width:699.98px) {
  html {
    font-size: calc(10 / 375 * 100vw);
    /* 画面幅375pxで10px*/
  }

  .sp_only {
    display: block;
  }

  /* コンテンツの大枠 */
  .contents_wrapper {
    max-width: 37.5rem;
  }

  .container_wrapper {
    max-width: 37.5rem;
    padding: 3rem 0 0;
    background-color: #D9D9D9;
  }

  .contents_wrapper:last-of-type {
    max-width: 37.5rem;
    margin: 0rem auto 7rem;
  }

  .contents_container {
    max-width: 30rem;
    margin: 0 auto;
  }

  /* コンテンツを縦並びにする */
  .service-top {
    flex-direction: column;
  }

  .service-title {
    font-size: 2rem;
    margin-bottom: 0rem;
  }

  .contents_items {
    width: 100%;
    margin-top: 3rem;
  }

}