#home-notice-quad {
  --hnq-bg: #ffffff;
  --hnq-card: #ffffff;
  --hnq-line: #e6edf5;
  padding: 36px 0 20px;
  background: var(--hnq-bg);
  color: #1a3a5c;
}
#home-notice-quad.is-dark {
  --hnq-bg: #0f2030;
  --hnq-card: #0f2030;
  --hnq-line: rgba(255, 255, 255, 0.1);
  background: var(--hnq-bg);
  color: #e8eef5;
}

#home-notice-quad.is-light {
  --hnq-bg: #ffffff;
  --hnq-card: #ffffff;
  --hnq-line: #e6edf5;
  background: var(--hnq-bg);
  color: #1a3a5c;
}
#home-notice-quad.is-light .hnq-list li {
  border-bottom-color: #eef2f7;
}
#home-notice-quad.is-light .hnq-list a:hover {
  color: #0d4a9c;
}
#home-notice-quad.is-light .hnq-prefix {
  color: #0d4a9c;
}

#home-notice-quad .hnq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
#home-notice-quad .hnq-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--hnq-card);
  border: 1px solid var(--hnq-line);
  border-radius: 16px;
  padding: 16px 16px 10px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  box-sizing: border-box;
}
#home-notice-quad .hnq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
#home-notice-quad .hnq-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#home-notice-quad .hnq-more {
  flex: none;
  font-size: 13px;
  opacity: 0.85;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
#home-notice-quad .hnq-more:hover {
  opacity: 1;
  text-decoration: underline;
}
#home-notice-quad .hnq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
#home-notice-quad .hnq-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
#home-notice-quad.is-dark .hnq-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
#home-notice-quad .hnq-list li:last-child {
  border-bottom: 0;
}
#home-notice-quad .hnq-list a,
#home-notice-quad .hnq-list a.hnq-link {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden !important;
}
#home-notice-quad .hnq-list a:hover {
  color: #0d4a9c;
}
#home-notice-quad.is-dark .hnq-list a:hover {
  color: #4ea1ff;
}
#home-notice-quad .hnq-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: baseline;
  overflow: hidden;
}
#home-notice-quad .hnq-prefix {
  flex: none;
  color: #0d4a9c;
  font-weight: 600;
}
#home-notice-quad .hnq-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#home-notice-quad .hnq-date {
  flex: none;
  margin-left: auto;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#home-notice-quad .hnq-new {
  position: relative;
  top: -0.55em;
  flex: none;
  margin-left: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #e11d48;
  padding: 0;
  background: transparent;
  border-radius: 0;
  animation: hnq-new-burst 0.95s ease-in-out infinite;
  transform-origin: center;
}
#home-notice-quad .hnq-new::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.95) 0%, rgba(250, 204, 21, 0.35) 42%, transparent 70%);
  z-index: -1;
  animation: hnq-new-flash 0.95s ease-in-out infinite;
}
#home-notice-quad .hnq-new::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: conic-gradient(
    from 0deg,
    #facc15 0 12%,
    transparent 12% 25%,
    #fde047 25% 37%,
    transparent 37% 50%,
    #fbbf24 50% 62%,
    transparent 62% 75%,
    #facc15 75% 87%,
    transparent 87% 100%
  );
  opacity: 0.85;
  z-index: -1;
  animation: hnq-new-spin 0.95s linear infinite;
}
@keyframes hnq-new-burst {
  0%,
  100% {
    transform: scale(1) rotate(-6deg);
    text-shadow: 0 0 2px #fde047, 0 0 6px rgba(250, 204, 21, 0.8);
  }
  50% {
    transform: scale(1.22) rotate(6deg);
    text-shadow: 0 0 4px #fef08a, 0 0 10px #facc15, 0 0 14px #f59e0b;
  }
}
@keyframes hnq-new-flash {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}
@keyframes hnq-new-spin {
  0% {
    transform: rotate(0deg) scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(0.85);
    opacity: 0.7;
  }
}
#home-notice-quad .hnq-empty,
#home-notice-quad .hnq-loading {
  padding: 18px 4px;
  font-size: 13px;
  opacity: 0.7;
}
@media (max-width: 900px) {
  #home-notice-quad .hnq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #home-notice-quad {
    padding: 24px 0 4px;
  }
}
