.be_news_archive {
  padding: 60px 0 80px;
}

.be_news_archive_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}

.be_news_card {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.be_news_card_wrap {
  display: flex;
  flex-direction: column;
}

.be_news_card:disabled {
  cursor: default;
  opacity: 0.85;
}

.be_news_card_link {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.be_news_card_link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #1a5284;
  border-radius: 2px;
  background: #fff;
  color: #1a5284;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.be_news_card_link a::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-left: 0.1em;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #1a5284;
  transition: border-color 0.2s ease;
}

.be_news_card_link a:hover {
  background: #1a5284;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 82, 132, 0.22);
}

.be_news_card_link a:hover::after {
  border-color: transparent transparent transparent #fff;
}

.be_news_card_link a:focus-visible {
  outline: 2px solid #1a5284;
  outline-offset: 2px;
}

.be_news_thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #fafafa;
  border: 1px solid #d9d9d9;
  overflow: hidden;
}

.be_news_new {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(230, 0, 18, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.be_news_thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.be_news_thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.be_news_title {
  text-align: center;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.be_news_empty {
  margin-top: 24px;
}

.be_news_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.be_news_modal.is-open {
  display: block;
}

.be_news_modal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.be_news_modal_dialog {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 4vh auto;
  background: #fff;
  padding: 20px;
  width: calc(100% - 32px);
  height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.be_news_modal_close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.be_news_modal_title {
  margin: 0 28px 16px 0;
  font-size: 18px;
  font-weight: 700;
}

.be_news_viewer {
  flex: 1;
  min-height: 0;
}

.be_news_controls {
  display: grid;
  grid-template-columns: auto 56px 1fr 56px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.be_news_canvas_wrap {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fafafa;
  border: 1px solid #ddd;
  height: 100%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.be_news_canvas_wrap canvas {
  display: block;
  margin: 0;
  transform-origin: top left;
}

.be_news_loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #555;
}

.be_news_nav {
  width: 56px;
  height: 56px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 30px;
  cursor: pointer;
}

.be_news_nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.be_news_zoom_controls {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.be_news_zoom_btn {
  height: 40px;
  min-width: 40px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.be_news_zoom_btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.be_news_modal_pdf_link {
  margin: 2px 0 0;
  text-align: right;
  font-size: 14px;
}

.be_news_modal_pdf_link a {
  color: #005ea8;
  text-decoration: underline;
}

.be_news_page {
  text-align: center;
  margin: 0;
  font-weight: 700;
  flex-shrink: 0;
}

body.is-be-news-modal-open {
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  .be_news_archive_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .be_news_archive {
    padding: 42px 0 56px;
  }

  .be_news_archive_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .be_news_title {
    font-size: 14px;
  }

  .be_news_modal_dialog {
    width: calc(100% - 16px);
    padding: 14px;
    margin: 2vh auto;
    height: 96vh;
  }

  .be_news_viewer {
    min-height: 0;
  }

  .be_news_controls {
    grid-template-columns: auto 40px 1fr 40px;
    gap: 6px;
    margin-top: 8px;
    padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + 6px));
  }

  .be_news_nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .be_news_zoom_controls {
    gap: 4px;
  }

  .be_news_zoom_btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .be_news_modal_pdf_link {
    margin-top: 6px;
    text-align: left;
    font-size: 13px;
  }

}