/* ブログ本文3行表示 */
.nagasa5.mojic {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ポップアップ広告 */
#layer_board_area {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
}

/* 背景 */
.layer_board_bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

/* バナー配置 */
.layer_board {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* バナー本体 */
.layer_board .img_box {
  position: relative;
  width: max-content;
  max-width: 94vw;
  max-height: 90vh;
  text-align: center;
  pointer-events: auto;
}

.layer_board .img_box .bn {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: auto;
}

/* 閉じるボタン */
.layer_board .img_box .btn_close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 40px;
  height: 40px;
  margin: 0;
}

.layer_board .btn_close a {
  display: block;
  text-decoration: none;
}

.layer_board .btn_close span {
  display: block;
  background: #fff;
  color: #005bab;
  font-size: 24px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
}

/* スマートフォン */
@media screen and (max-width: 480px) {
  .layer_board .img_box {
    max-width: 94vw;
  }

  .layer_board .img_box .bn {
    max-height: 90vh;
  }

  .layer_board .img_box .btn_close {
    width: 30px;
    height: 30px;
  }

  .layer_board .btn_close span {
    font-size: 21px;
    line-height: 30px;
  }
}