.md-grid {
  max-width: 95%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.md-content {
  max-width: 100%;
}

.md-content__inner {
  max-width: 100%;
}

.md-sidebar--secondary {
  display: none;
}

/* 外部リンクのアイコン表示 */
a.external-link::after {
  content: "\1F517";
  font-size: 0.9em;
  margin-left: 0.2em;
}

.md-nav__link .md-ellipsis,
.md-nav__item .md-ellipsis {
  line-height: 1.35; /* Adjust within the range of 1.35 to 1.5 */
}

div.md-header__source {
  display: none;
}

/* 画像ズーム機能 */
.image-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.image-modal-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background-color: transparent;
  color: white;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform 0.2s ease;
}

.image-modal-close:hover {
  transform: scale(1.1);
}

/* モーバイル対応 */
@media (max-width: 768px) {
  .image-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}
