/* お知らせ一覧・詳細ページ専用スタイル */

.p-information #main {
  height: 330px;
}
.p-information #main h1 {
  top: 230px;
}
@media screen and (max-width: 768px) {
  .p-information #main {
    height: auto;
    margin-bottom: 62px;
    padding: 40px 0;
  }
  .p-information #main h1 {
    top: auto;
    position: static;
  }
}

.p-informationList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.p-informationList__item {
  border-top: 1px solid #dddddd;
  padding-top: 20px;
}

.p-informationList__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* アイキャッチ。現行サイトの一覧画像（600×390）と同じ比率に揃える */
.p-informationList__img {
  aspect-ratio: 600 / 390;
  margin-bottom: 15px;
  border: 1px solid #efefef;
  box-sizing: border-box;
  overflow: hidden;
}
.p-informationList__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-informationList__head {
  display: flex;
  align-items: center;
  column-gap: 14px;
}

.p-informationList__category {
  background-color: #0b0b0b;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: -0.05em;
  min-width: 110px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
}

.p-informationList__date {
  font-size: 12px;
  color: #000000;
  letter-spacing: 0.05em;
}

.p-informationList__title {
  color: #000000;
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.p-informationList__empty {
  text-align: center;
  padding: 60px 0;
}

.contents_inner .wp-pagenavi {
  margin-top: 60px;
}

/* home.css の .previouspostslink / .nextpostslink は旧WP「詳細」ページ用の絶対配置
   （.contents_inner 基準 top:65px / left:0 / right:0）。一覧ページのページャーでは
   数字と同じ行に並べたいので解除する */
.p-information-list .wp-pagenavi .previouspostslink,
.p-information-list .wp-pagenavi .nextpostslink {
  position: static;
}

/* お知らせ詳細（_news-detail.php の共通クラスは施設ブランドのユーティリティCSS前提のため、
   ポータル向けに最低限の見出し・日付スタイルをここで補う） */
.p-information-detail {
  padding-top: 96px;
}
.p-information-detail .c-news-detail__time {
  display: block;
  text-align: center;
  color: #888888;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "小塚明朝 Pro R", "Kozuka Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝","NotoSerif", serif;
}
.p-information-detail .c-news-detail__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 15px;
  margin: 25px 0 40px;
}
.p-information-detail .c-news-detail__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 23px;
  background-color: #000000;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "小塚明朝 Pro R", "Kozuka Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝","NotoSerif", serif;
}
.p-information-detail .c-news-detail__title {
  font-size: 30px;
  text-align: center;
  margin-top: 120px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "小塚明朝 Pro R", "Kozuka Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝","NotoSerif", serif;

}
.p-information-detail .c-news-detail__thumb {
  margin-top: 30px;
}
.p-information-detail .c-news-detail__thumb img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.p-information-detail .c-news-detail__body {
  margin-top: 44px;
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.10em;
}
.p-information-detail .c-news-detail__body strong,
.p-information-detail .c-news-detail__body b {
  font-weight: bold;
}
.p-information-detail .c-news-detail__body img {
  max-width: 100%;
  height: auto;
}
.p-information-detail .c-news-detail__body .wp-caption {
  max-width: 100%;
}
.p-information-detail .c-news-detail__body > img:only-of-type:not(.alignleft):not(.alignright),
.p-information-detail .c-news-detail__body > p > img:only-child:not(.alignleft):not(.alignright),
.p-information-detail .c-news-detail__body > figure:not(.alignleft):not(.alignright) > img:only-child:not(.alignleft):not(.alignright),
.p-information-detail .c-news-detail__body .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 表示先バッジ（対象施設名。「ポータル」という文言は出さない。補助的・控えめな表示） */
.p-information-detail .c-news-detail__targets {
  margin-top: 8px;
  color: #888888;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.p-information-detail .c-news-detail__targetsLabel {
  font-weight: bold;
  margin-right: 0.5em;
}

/* 「閉じる」ボタン（常時表示。クリック時の遷移優先順はJS側で制御） */
.p-information-detail .c-news-detail__close {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 110px;
}
.p-information-detail .c-news-detail__closeBtn {
  display: inline-block;
  min-width: 300px;
  padding: 14px 24px;
  border: 1px solid #888888;
  background: #ffffff;
  color: #0b0b0b;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.p-information-detail .c-news-detail__closeBtn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  background: #0b0b0b;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@media (hover: hover) and (pointer: fine) {
  .p-information-detail .c-news-detail__closeBtn:hover {
    border-color: #0b0b0b;
    color: #ffffff;
  }
  .p-information-detail .c-news-detail__closeBtn:hover::before {
    width: 100%;
    right: auto;
    left: 0;
  }
}
.p-information-detail .c-news-detail__closeBtn:focus-visible {
  border-color: #0b0b0b;
  background: #0b0b0b;
  color: #ffffff;
  outline: 2px solid #0b0b0b;
  outline-offset: 4px;
}
.p-information-detail .c-news-detail__closeBtn:focus-visible::before {
  width: 100%;
  right: auto;
  left: 0;
}
.p-information-detail .c-news-detail__closeIcon {
  margin-right: 0.5em;
  font-size: 15px;
}

.p-information-detail .c-news-detail__close-icon {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: middle;
  margin-right: 0.5em;
}

.p-information-detail .c-news-detail__close-icon::before,
.p-information-detail .c-news-detail__close-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  content: "";
}

.p-information-detail .c-news-detail__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.p-information-detail .c-news-detail__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* SP: 対象ホテルが画面端に接触しないよう左右余白を確保する */
@media screen and (max-width: 768px) {
  .p-information-detail {
    padding-top: 24px;
  }

  .p-information-detail .c-news-detail__title{
    margin-top: 60px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .p-information-detail .c-news-detail__data{
    margin: 15px 0 40px;
  }
  .p-information-detail .c-news-detail__time {
    font-size: 14px;
  }
  .p-information-detail .c-news-detail__category {
    padding: 11px 30px;
  }
  .p-information-detail .c-news-detail__targets {
    padding: 0 20px;
  }
  .p-information-detail .c-news-detail__body {
    padding: 0 20px;
    box-sizing: border-box;
    /* 現行サイトのSP本文（#tinymce 14rem）に合わせる。SPのremは home.css で 100vw/320 に連動 */
    font-size: 14rem;
    line-height: 1.8;
  }
  .p-information-detail .c-news-detail__close{
    margin-top: 40px;
    margin-bottom: 80px;
  }
}
