
html,
body {
    margin: 0;
    padding: 0;
}

.wrapper {
  min-height: auto;
  padding-bottom: 37vw;  
  box-sizing: border-box;
  position: relative;
}

body {
    max-width: 100%;
    font-family: "Noto Sans JP Heavy", "M PLUS Rounded 1c", system-ui, -apple-system, sans-serif;
    color: var(--txt);
    line-height: 1.85;
    background-image: url(../img/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}

.news-header__wrapper{
    margin: 50px 20%;
}

.news-header {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    place-items: center;
    gap: 50px;
}

.title {
    text-align: center;
    height: 15vh;
    color: #fff;
}

.title h1 {
    color: #fff;
    font-size: clamp(65px,6vw,100px);
    text-shadow:
    2px 2px 0 #39a9c7,
    -2px 2px 0 #39a9c7,
    -2px -2px 0 #39a9c7,
    2px -2px 0 #39a9c7;
}
.title p {
    font-size: clamp(18px,2vw,40px);
    margin-top: -1em;
    text-shadow:
    2px 2px 0 #39a9c7,
    -2px 2px 0 #39a9c7,
    -2px -2px 0 #39a9c7,
    2px -2px 0 #39a9c7;
}

.home-btn {
    display: inline-block;
    color: #fff;
    font-size: clamp(20px,1.5vw,40px);
    text-decoration: none;
    background-color: #0acaff;
    width: 150px;
    height: 150px;
    line-height: 150px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    transition: .4s;
    box-shadow: 0px 0px 0px 5px #0acaff;
    border: solid 2px rgba(255, 255, 255, 0.47);
}

.home-btn span {
    vertical-align: middle;
}

.home-btn:hover {
    color: #4494ed;
    background-color: #fff;
    border: solid 2px #0acaff;
    box-shadow: 0px 0px 0px 5px #fff;
}

.news-top__img {
    z-index: -2;
    order: -1;
}

.news-top__img img {
    width: 10vw;
    height: auto;
}

.single-main {
  margin: 10vh 10vw;
  background-color: rgb(255 255 255 / 0.5);
  padding: 40px 10px;
}


.entry-title {
  border-bottom: 2px solid #4494ed;
  font-size: clamp(20px,2vw,30px);
}

.post p {
  font-size: 20px;
}

.center {
  text-align: center;
  margin: 5vh 0;
}

.newsback-btn {
  color: #1581a8;
  background-color: #fff;
  font-size: 20px;
  letter-spacing: 0.1em;
  width: 200px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.newsback-btn:hover {
  color: #fff;
  background-color: #1581a8;
}

.news-sub {
  margin: 10vh 10vw;
   background-color: rgb(255 255 255 / 0.7);
  padding: 40px;
  
}

.news-date {
  font-size: 1.5vw;
  color: #1581a8;
  text-decoration: none;
}

.news-title {
  font-size: 2vw;
  color: #fff;
    text-shadow:
    1px 1px 0 #39a9c7,
    -1px 1px 0 #39a9c7,
    -1px -1px 0 #39a9c7,
    1px -1px 0 #39a9c7;
    border-bottom: 2px solid #4494ed;
}

/*---footer---*/

.site-footer {
  text-align: center;
  height: auto;
  width: 100%;
  position: absolute;
  bottom: 0;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.footer-image-links img {
  height: 40px;
  width: auto;
  margin: 20px;
}

/* ロゴ部分 */
.footer-logo img {
  width: 12.5vw;   /* 比率維持で適宜調整 */
  height: auto;
}

/* コピーライト */
.copy {
  font-size: 1vw;
  color: #333;
  margin-top: 8px;
}

.pagination {
  display: flex;
  justify-content: center;
}


.nav-links{
   display:flex;
}

.page-numbers{
   display:inline-block;
   margin-right:10px;
   padding:10px 20px;
   color:#666666;
   border-radius:3px;
   background:#ffffff;
  border: 1px solid #666666;
}

.page-numbers.current{
   padding:10px 20px;
   background:#0acaff;
   color:#ffffff;
}

.page-numbers.prev,
.page-numbers.next{
   background:transparent;
   box-shadow:none;
     border:none;
  color: #fff;
    text-shadow:
    1px 1px 0 #39a9c7,
    -1px 1px 0 #39a9c7,
    -1px -1px 0 #39a9c7,
    1px -1px 0 #39a9c7;
}

.page-numbers.dots{
   background:transparent;
   box-shadow:none;
     border:none;
   color:#666666; 
}

.post__pagination {
    margin-bottom: 30px;
}
.post__pagination__left,
.post__pagination__right {
    width: clamp(8rem,27vw,12rem);
}
.post__pagination__left {
    float: left;
}
.post__pagination__right {
    float: right;
}
.post__pagination__left > a,
.post__pagination__right > a {
    display: block;
    position: relative;
}
.post__pagination__left__img,
.post__pagination__right__img {
    display: block;
    background: #000;
}
.post__pagination__left__img > img,
.post__pagination__right__img > img {
    width: 100%;
    height: 100px;
    opacity: 0.3;
    object-fit: cover;
}
.post__pagination__left__text,
.post__pagination__right__text {
    position: absolute;
    top: 35px;
    font-size: 16px;
    z-index: 100;
    color: #fff;
    text-shadow:
    1px 1px 0 #39a9c7,
    -1px 1px 0 #39a9c7,
    -1px -1px 0 #39a9c7,
    1px -1px 0 #39a9c7;
}
.post__pagination__left__text {
    left: 50px;
}
.post__pagination__right__text {
    right: 50px;
}

.single-main {
  text-align: center;
}

.wp-block-post-featured-image img {
  object-position: center;
  max-width: 75vw;
  height: auto;
}


/* ---------- Responsive ---------- */
/*---タブレット---*/
@media (max-width: 1024px){
    .news-header {
        gap: 10px;
    }

    .news-top__img img {
        width: 18vw;
    }

    .title h1 {
        font-size: 50px;
    }

    .home-btn {
        font-size: clamp(14px,1vw,18px);
        width: 100px;
        height: 100px;
        line-height: 100px;
    }

    .footer-logo img {
        width: 200px;
    }

    .pagination {
      margin-bottom: 20vh;
    }

    .post__pagination__left__text,
.post__pagination__right__text {
  font-size: 14px;
}

.wp-block-image img {
  max-width: 75vw;
  height: auto;
}

.wp-block-post-featured-image img {
  max-width: 75vw;
  height: auto;
}

}

/*---スマートフォン---*/
@media (max-width: 720px) {

    .wrapper {
        padding-bottom: 40vh;
    }

    .news-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2,130px);
        grid-template-areas: 
        "img btn"
        "title title";
    }

    .news-header__wrapper {
        margin: 100px 20% 50px 20%;
    }

    .title {
        grid-area: title;
    }

    .title h1 {
        font-size: 60px;
    }

    .title p {
        font-size: 25px;
    }

    .news-top__img {
        display: inline-block;
        position: relative;
        top: 20%;
    }

    .news-top__img img {
        width: 30vw;
    }

    .home-btn {
        grid-area: btn;
    }

   .footer-logo img {
    width: 200px;
  }

  .footer-image-links img {
    margin: 10px;
  }

  .copy {
    font-size: 16px;
  }

  .news-sub {
    margin: 5vh 10vw;
  }

  .news-date {
  font-size: 15px;
}

.news-title {
  font-size: 18px;
}

.newsback-btn {
  display: inline-block;
  font-size: 15px;
  margin-top: 20px;
}

.page-numbers,
.page-numbers.current    {
     padding:5px 10px; /* パディングを小さく */
  }

  .footer-inner {
    margin-bottom: 10px;
  }

  .post__pagination__left__text {
    left: 30px;
}
.post__pagination__right__text {
    right: 30px;
}

.post__pagination__left__text,
.post__pagination__right__text {
  font-size: 10px;
}

.post__pagination__right {
  max-width: 30%;
}

.wp-block-image img {
  max-width: 75vw;
  height: auto;
}

.wp-block-post-featured-image img {
  max-width: 75vw;
  height: auto;
}

.post p {
  font-size: 16px;
}

.single-main .date {
  text-align: left;
}
}