/* corporation 役員紹介セクション */
.sec-officer {
    background-color: #fff; /* 白背景 */
    padding: 80px 0;
}

.officer-list {
    margin-top: 40px;
}

.officer-list dl {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d9d9d9; /* 沿革などに合わせた薄いグレーの線 */
    padding: 20px 0;
}

.officer-list dt {
    width: 30%;
    font-weight: bold;
    color: #333;
}

.officer-list dd {
    width: 70%;
    color: #333;
}

/* スマホ用の調整 */
@media screen and (max-width: 767px) {
    .sec-officer {
        padding: 50px 0;
    }
    .officer-list {
        margin-top: 30px;
    }
    .officer-list dt {
        width: 35%;
        font-size: 1.4rem; /* サイトの基本サイズに合わせて調整 */
    }
    .officer-list dd {
        width: 65%;
        font-size: 1.4rem;
    }
}
/* tunag*/
@media screen and (min-width: 641px) {
    .overview-sns__list {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: justify;
        justify-content: space-evenly;
    }
}

@media screen and (min-width: 768px) {
    #page-tunag .mv-facility {
        padding-bottom: 160px;
    }
}


/* 役員紹介全体のレイアウト調整 */
.officer-list dl {
    display: flex;
    border-bottom: 1px solid #eee; /* 行間の区切り線（デザインに合わせて調整してください） */
    padding: 15px 0;
}

.officer-list dt {
    width: 150px; /* 役職名の幅を固定して、名前の開始位置を揃える */
    font-weight: bold;
    flex-shrink: 0;
}

.officer-list dd {
    flex-grow: 1;
    margin: 0;
}

/* 複数人（理事・監事）が並ぶエリアの調整 */
.officer-list .member-grid {
    display: flex;
    flex-wrap: wrap; /* 画面幅が狭いときは自動で折り返す */
    gap: 15px 30px;  /* 名前と名前の間の隙間（縦 15px / 横 30px） */
}

/* 姓と名の間を「いい感じ」にあける調整 */
.officer-list .name-jp {
    display: inline-block;
    white-space: nowrap; /* 名前が途中で改行されるのを防ぐ */
}

/* スマートフォン用の調整 (画面幅が767px以下の場合) */
@media screen and (max-width: 767px) {
    .officer-list dl {
        flex-direction: column; /* スマホでは役職名の下に名前が来るように縦並びに */
        gap: 8px;
    }
    .officer-list dt {
        width: 100%;
    }
    .officer-list .member-grid {
        gap: 10px 20px; /* スマホ用に間隔を少し狭める */
    }
}

/* 事業・サービスページ サイドナビ調整 */
.business-list li a {
    padding: 14px 30px 13px 8px;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 86px;
}

/* 施設一覧タグ：7番目の余分な右余白を消す */
@media screen and (min-width: 991px) {
  .list-tag:not(.list-tag--second) .list-tag__item:nth-child(7) {
    margin-right: 0;
  }
}

/* お知らせ一覧タグ：施設一覧と同じ中央揃えの折り返し */
#page-news .list-tag {
  max-width: 100%;
}

@media screen and (min-width: 991px) {
  #page-news .list-tag .list-tag__item:first-child {
    margin-left: 0;
  }
}

/* 情報公開：書類名を出さないため、見出し＋PDFの1行レイアウトにする */
@media screen and (min-width: 641px) {
  .public-wrap__list-item {
    padding-left: 9px;
  }

  .public-wrap__list-item > span {
    position: static;
    transform: none;
    width: auto;
  }
}

@media screen and (max-width: 640px) {
  .public-wrap__list-item {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .public-wrap__list-item > span {
    margin-bottom: 0;
  }

  .public-wrap__list-item .c-btn__01 {
    margin: 0 0 0 auto;
    flex-shrink: 0;
  }
}

/* お知らせページネーション：First / Last を1行にする */
.nums-page .wp-pagenavi .first,
.nums-page .wp-pagenavi .last {
  white-space: nowrap;
}

/* ボタンブロックの配置。公開画面では flex の指定が読まれないため、ここで補う */
.wp-block-buttons.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.wp-block-buttons.is-content-justification-left {
  justify-content: flex-start;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}

.wp-block-buttons.is-content-justification-space-between {
  justify-content: space-between;
}

.wp-block-buttons.is-vertical {
  flex-direction: column;
  align-items: flex-start;
}

.wp-block-buttons.is-vertical.is-content-justification-center {
  align-items: center;
}

.wp-block-buttons.is-vertical.is-content-justification-right {
  align-items: flex-end;
}

.wp-block-buttons > .wp-block-button {
  width: auto;
}

/* 本文リンクの下線は、Gutenbergのボタンには掛けない */
.details-article__content .wp-block-button__link {
  text-decoration: none;
}

/* 記事幅が狭い画面では、50%指定のボタンが円になって文字が縦に割れる */
@media screen and (max-width: 767px) {
  .details-article__content .wp-block-buttons > .wp-block-button.has-custom-width {
    width: 100%;
  }
}

/* トップお知らせ：中央見出し・カテゴリーボタン・カード一覧 */
.top-news .news-block__heading-fill {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 10px;
  max-width: 880px;
  margin: 0 auto 40px;
}

.top-news .news-block__heading-fill li,
.top-news .news-block__heading-fill li:first-child {
  display: flex;
  width: auto;
  margin: 0;
}

.top-news .news-block__heading-fill button {
  display: block;
  margin: 0;
  padding: 7px 18px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.top-news .news-block__heading-fill button.active {
  background: #6a3d0e;
  border-color: #6a3d0e;
  color: #fff;
}

.top-news .news-block__ct {
  width: 100%;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.top-news .news-list__item a {
  border-radius: 10px;
  padding: 24px 28px;
}

.top-news .news-list__item a time {
  width: 100%;
  margin-bottom: 12px;
}

.top-news .news-list__cont {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-news .news-list__category {
  position: static;
  flex-shrink: 0;
  min-width: 76px;
  margin: 0;
  padding: 4px 14px;
}

.top-news .news-list__item a p {
  width: auto;
  flex: 1;
  margin: 0;
  padding: 0 36px 0 0;
}

.top-news .news-list__item a p:after {
  top: 50%;
}

.top-news .news-block__ct .c-btn__01 {
  width: fit-content;
  max-width: none;
  height: auto;
  margin: 28px 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.6rem;
}

@media (any-hover: hover) {
  .top-news .news-block__heading-fill button:hover {
    background: #6a3d0e;
    border-color: #6a3d0e;
    color: #fff;
  }
}

@media screen and (max-width: 767px) {
  .top-news .news-block__heading-fill {
    gap: 10px 8px;
    margin-bottom: 28px;
  }

  .top-news .news-block__heading-fill button {
    padding: 6px 14px;
    font-size: 1.3rem;
  }

  .top-news .news-list__item a {
    padding: 20px 16px 22px;
  }

  .top-news .news-list__cont {
    gap: 10px;
  }

  .top-news .news-block__ct .c-btn__01 {
    margin-top: 8px;
    font-size: 1.4rem;
  }
}
