/* 緊急のお知らせ */
/* アラート本体 */
.emergency-alert {
  position: fixed;
  bottom: 6px;
  right: 8px;
  /* bottom: 20px;
  right: 20px; */
  z-index: 115;
  max-width: 300px;
  /* max-width: 500px; */
  animation: slideUp 0.4s ease-out;
  font-family: 'Segoe UI', sans-serif;
}
/* アラート内ボックス */
.alert-content {
  background-color: #ffffff;
  color: #333;
  padding: 1rem;
  border: 2px solid #346f1f;
  /* border: 2px solid #fd3c34; */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: all 0.3s ease-in-out;
  max-height: 300px; /* 必要に応じて調整可能 */
  overflow-y: auto;
}
/* アラートの見出し */
.alert-content .alert-heading {
  font-size: 1.3rem;
  font-weight: bold;
  color: #346f1f;
  /* color: #fd3c34; */
  margin-bottom: 0.5rem;
}
/* テキスト部分 */
.alert-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}
/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background: transparent;
  color: #333;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.close-btn:hover {
  color: #fd3c34;
}
/* スライド表示アニメーション */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* 再表示ボタン */
.open-alert-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 110;
  background-color: #f44336;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.open-alert-btn:hover {
  background-color: #d32f2f;
}

@media (max-width: 576px) {
  .emergency-alert, .open-alert-btn {
    right: 6px;
    bottom: 13%;
    /* bottom: 18px; */
    max-width: 70%;
    /* max-width: 95%; */
  }
}

.gamaguchi-img {
    width: 70%;
    transition: transform 0.2s ease;
}

.gamaguchi-link:hover .gamaguchi-img {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(1px, -1px) rotate(-2deg); }
  40% { transform: translate(-1px, 1px) rotate(2deg); }
  60% { transform: translate(1px, -1px) rotate(-1.5deg); }
  80% { transform: translate(-1px, 1px) rotate(1.5deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

@media (max-width: 576px) {
  .gamaguchi-img {
      width: 48%;
      transition: transform 0.2s ease;
  }
  .alert-content .alert-heading {
    font-size: 1.2rem;
  }
}
 
@media (max-width: 767px) {
    .pc-only-br {
      display: none;
    }
}