/**
 * uml-modal.css - UML図の拡大表示（モーダル）用スタイル
 */

/* UMLコンテナのスタイル */
.uml-container {
  margin: 30px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.uml-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.uml-diagram {
  text-align: center;
  margin: 10px 0;
  min-height: 50px;
}

.uml-caption {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  line-height: 1.5;
}

.uml-error {
  color: #d9534f;
  text-align: center;
  padding: 10px;
  border: 1px solid #ebccd1;
  background-color: #f2dede;
  border-radius: 4px;
  margin: 10px 0;
}

/* UML図のスタイル */
.uml-diagram img {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 2px;
}

.uml-diagram img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* モーダル表示用のスタイル */
.uml-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow: auto;
  text-align: center;
}

.uml-modal-content {
  display: inline-block;
  margin: 50px auto;
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  background-color: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.uml-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border: none;
  display: block;
  margin: 0 auto;
}

.uml-modal-caption {
  color: #333;
  font-size: 18px;
  padding: 15px 5px;
  font-weight: bold;
  background-color: white;
  margin-top: 10px;
  border-top: 1px solid #eee;
}

.uml-modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.uml-modal-close:hover {
  background-color: rgba(255,0,0,0.7);
}