@charset "UTF-8";/* 2025.06.19 */

article, li {position: relative;}
#main-top {padding-top: 75px;}

.btn_01 {
  width: 440px;
  margin-bottom: 30px;}

#news .ttl_main .s02 {
  margin: 1em 0 0;
}
#news .link-list {
  padding-bottom: 50px;
}
#news .link-list li {
  padding: 20px 0;
  border-bottom: solid 1px var(--gray02);
}
#news .link-list .txt01 {
  margin-top: 15px;
}
#news .btnBox {
  width: 100%;
}
.side li {
  padding: 5px 0;
  margin-left: 1em;
}
.side li::before {
  content: '>';
  left: -1em;
  top: .4em;
  width: 1em;
  height: 1em;
  opacity: .8;
  transform: scale(0.8, 1.2);
  position: absolute;
}
.data {
  margin-bottom: 50px;
}
#newsdata p {
  margin-bottom: 2em;
}
#newsdata img {
  margin: 0 auto 2em;
  display: block;
}
.page-item.active a,
.page-item.active .page-link,
.pagenavigation a,
.pagenavigation02 a {
  font-size: 1.2rem;
}
@media (max-width: 575px) {
    .page-item.active .page-link {
        font-size: 1.2rem;
    }
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  white-space: nowrap;
}
@media (min-width: 768px) {
  #news {
    display: flex;
    justify-content: space-between;
  }
  #news .link-list {
    padding-right: 2em;
    flex: 1;
  }
  #news .link-list a {
    display: flex;
  }
  #news .link-list .txt01 {
    margin-top: 0!important;
  }
  .page-item.active a, .page-item.active .page-link, .pagenavigation a, .pagenavigation02 a {
    font-size: 1.4rem;
  }
}
@media (min-width: 1080px) {
  #news .container {
    display: flex;
    flex-wrap: wrap;
  }
  #news .link-list li {
    padding: 30px 0;
  }
  #news .ttl_main {
    width: 325px;
    padding-left: 45px;
  }
}

.wp-block-gallery.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wp-block-gallery.is-layout-flex > figure {
  flex: 0 0 100%;
  /*aspect-ratio: 4 / 3;  ← 横:縦 = 4:3。必要に応じて変更OK */
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wp-block-gallery.is-layout-flex figcaption {
  margin-top: -1.5em;
  margin-bottom: 1em;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.4;
}

.wp-block-gallery.is-layout-flex img {
  width: 100%;
  height: auto;
  /* object-fit: cover; 枠にフィットさせてトリミング */
  display: block;
}
@media (min-width: 480px) {
  .wp-block-gallery.is-layout-flex > figure {
    flex: 0 0 calc(50% - 16px);
  }
}
@media (min-width: 768px) {
  .wp-block-gallery.is-layout-flex > figure {
    flex: 0 0 calc(33.333% - 16px);
  }
}


.card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: transparent; /* 変な背景があれば消す */
  padding: 0;
  margin: 0;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;         /* 画像にボーダーがある場合に備えて */
  margin: 0;
  padding: 0;
}

.wp-block-button__link.wp-element-button {
  position: relative;
  display: inline-block;
  width: 280px;
  max-width: 80%;
  min-height: 80px;
  padding: 0 44px 0 16px;
  border-radius: 10px;
  background-color: var(--main);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem; /* ← 文字サイズを大きめに調整 */
  line-height: 80px; /* ← ボタンの高さと一致させて中央揃え */
  box-sizing: border-box;
  overflow: hidden;
  vertical-align: middle;
}

.wp-block-button__link.wp-element-button {
  position: relative;
  display: inline-block;
  width: 400px;                /* 幅を400pxに */
  max-width: 100%;
  min-height: 80px;
  padding: 0 48px 0 20px;      /* 左右の余白調整 */
  border-radius: 10px;
  background-color: var(--main);
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;           /* ← 文字サイズUP */
  line-height: 80px;           /* 縦方向中央揃え */
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;              /* ← 中央寄せ */
  text-align: center;          /* ← テキスト中央揃え */
}

/* 親ブロックにも中央揃えを指定 */
.wp-block-button {
  text-align: center;
}

/* ボタン本体 */
.wp-block-button__link.wp-element-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  max-width: 100%;
  min-height: 80px;
  padding: 0 60px 0 20px;
  border-radius: 10px;
  background-color: var(--main);
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-sizing: border-box;
  margin: 0 auto;
  overflow: hidden;
  line-height: 1.4;
}

/* アイコン（→） */
.wp-block-button__link.wp-element-button::after {
  content: "\e901";
  font-family: 'icomoon' !important;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
}

/* ホバー時の矢印移動 */
.wp-block-button__link.wp-element-button:hover::after {
  right: 10px;
}