* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
.wrap {
  max-width: 994px;
  margin: 0 auto;
}
.top-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 10px;
}
.title-row img {
  display: block;
  height: auto;
}
.title-row .title-img { flex: 1 1 auto; min-width: 0; max-width: 280px; }
.title-row .jubilate-logo { align: right; width: 140px; max-width: 140px; flex-shrink: 0; }

.video-frame {
  background: #333;
  padding: 1px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 8px 16px;
}
.btn-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: #f2f2f2;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 4px;
}
.btn-grid a:hover,
.btn-grid a.active {
  background: #666;
  color: #fff;
  border-color: #333;
}
.btn-grid a.wide { grid-column: span 3; }

/* 태블릿·PC: 4열 */
@media (min-width: 600px) {
  .btn-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 10px 24px; }
  .btn-grid a { font-size: 16px; min-height: 50px; }
  .btn-grid a.wide { grid-column: span 2; }
}
