/* 메가스팟 건대 1·2호점 홈페이지 */
.page-home {
  --home-section-space: clamp(48px, 7vw, 96px);
  background: var(--concrete-3);
}
.page-home main [id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 16px); }
.page-home .quick-bar { display: none; }
body.page-home.has-quick-bar { padding-bottom: 0; }

.home-spaces { padding-block: clamp(36px, 4.6vw, 66px) clamp(32px, 4vw, 56px); }
.home-intro { margin-bottom: clamp(24px, 3vw, 36px); }
.home-location { margin-bottom: 12px; color: var(--cobalt-2); font-size: 14px; font-weight: 800; }
.home-intro h1 {
  font-size: clamp(34px, 5.3vw, 72px);
  line-height: 1.1;
  letter-spacing: -.062em;
}
.home-intro h1 span { white-space: nowrap; }
.home-intro-text {
  max-width: 72ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.65;
}
.home-venue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.25vw, 28px); }
.home-venue-card {
  min-width: 0;
  display: flex;
  background: var(--white);
  border: 1px solid var(--concrete-2);
  border-radius: var(--radius-lg);
}
.home-venue-link { min-width: 0; display: flex; flex: 1; flex-direction: column; border-radius: inherit; }
.home-venue-link:focus-visible { outline-offset: 4px; }
.home-venue-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--concrete); }
.home-venue-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-venue-card#gundae2 img { object-position: center 58%; }
.home-venue-photo > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: var(--white);
  font-size: 12px;
  line-height: 1.5;
}
.home-venue-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: clamp(18px, 2.5vw, 28px); }
.home-venue-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.home-venue-heading h2 { font-size: clamp(25px, 2.65vw, 34px); letter-spacing: -.045em; }
.home-venue-spec { font-size: clamp(15px, 1.65vw, 18px); font-weight: 800; white-space: nowrap; }
.home-venue-spec span { color: var(--ink-3); }
.home-venue-content > p { margin-bottom: 4px; color: var(--ink-2); font-size: 15px; }
.home-venue-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--concrete-2);
}
.home-venue-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius);
  color: var(--cobalt-2);
  font-size: 15px;
  font-weight: 800;
}
.home-venue-link:hover .home-venue-details,
.home-venue-link:focus-visible .home-venue-details {
  background: var(--cobalt-soft);
  text-decoration: none;
}
@media (hover: none) {
  .home-venue-details { background: var(--cobalt-soft); }
}
.home-venue-note { margin-top: 16px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }

.page-home .date-first-sec { padding-block: 0 var(--home-section-space); background: transparent; }
.page-home #date-first:focus { outline: none; }
.page-home .df-card { padding: clamp(20px, 4vw, 44px); background: var(--white); box-shadow: none; }
.home-section-title { font-size: clamp(27px, 3.3vw, 40px); letter-spacing: -.045em; }
.df-head p { max-width: 63ch; margin-top: 10px; color: var(--ink-2); }
.page-home .df-form {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 16px;
  margin-top: 24px;
}
.page-home .df-form .f { min-width: 0; gap: 6px; }
.page-home .df-form label { font-size: 14px; color: var(--ink); }
.page-home .df-form :is(.input, .select) { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.page-home .df-form .btn { min-height: 48px; justify-content: center; white-space: nowrap; }
.page-home .df-result:empty { display: none; }
.page-home .df-result { margin-top: 20px; }
.page-home .df-rows { gap: 16px; }
.page-home .df-row { min-width: 0; padding: 16px; }
.page-home .df-summary { margin-bottom: 10px; }
.page-home .df-acts a { min-height: 44px; justify-content: center; }
.home-noscript { margin-top: 16px; }

.home-help { padding-block: var(--home-section-space); background: var(--white); }
.home-help-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.home-booking-steps { display: grid; gap: 20px; margin-top: 24px; counter-reset: booking; }
.home-booking-steps li { position: relative; padding-left: 42px; counter-increment: booking; }
.home-booking-steps li::before {
  content: counter(booking);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt-soft);
  color: var(--cobalt-2);
  font-weight: 800;
}
.home-booking-steps b { font-size: 17px; }
.home-booking-steps p { margin-top: 3px; color: var(--ink-2); font-size: 15px; }
.home-contact-card { padding: clamp(20px, 3.25vw, 36px); border: 1px solid var(--concrete-2); border-radius: var(--radius-lg); background: var(--concrete-3); }
.home-contact-card h3 { margin-bottom: 12px; font-size: 23px; }
.home-help-links a, .home-contact-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.home-help-links a::after { content: '→'; margin-left: 7px; color: var(--cobalt-2); }
.home-contact-card > p { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--concrete-2); color: var(--ink-2); font-size: 14px; }
.home-contact-links { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--cobalt-2); }
.home-help a:hover, .home-noscript a { text-decoration: underline; text-underline-offset: 4px; }
.home-options { margin-top: clamp(28px, 4vw, 52px); border-block: 1px solid var(--concrete-2); }
.home-options > summary { padding: 16px 4px; cursor: pointer; font-size: 16px; font-weight: 800; }
.home-options-content { padding-bottom: 24px; }
.home-options-content > p { margin: 2px 0 20px; color: var(--ink-2); }
.home-options-content > p a { color: var(--cobalt-2); font-weight: 700; }

.page-home #event-gallery { padding-block: var(--home-section-space); }
.page-home #event-gallery .section-head { margin-bottom: clamp(16px, 2vw, 24px); }
.home-gallery-nav {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 304px);
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--concrete-2);
  border-radius: var(--radius-lg);
  background: var(--concrete);
}
.home-gallery-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 800;
}
.home-gallery-nav a:hover { background: var(--white); color: var(--cobalt-2); }
.home-gallery-nav a[aria-selected="true"] { background: var(--cobalt); color: var(--white); }
.home-gallery-venue {
  padding: clamp(18px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--radius-lg);
}
.home-gallery-venue:not([hidden]) + .home-gallery-venue:not([hidden]) { margin-top: clamp(28px, 5vw, 64px); }
.home-gallery-venue-head { margin-bottom: clamp(20px, 3vw, 32px); }
.home-gallery-venue-head p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 420px) { .home-gallery-venue-head p { min-block-size: 2lh; } }

.home-gallery-more { margin-top: 16px; }
.home-gallery-more > summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--cobalt-2); font-weight: 700; }
.home-gallery-more > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-gallery-more[open] > :is(.event-photo-grid, .home-gallery-more-content) { margin-top: 8px; }
.home-gallery-more-content > div + div { margin-top: 28px; }
.home-footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.home-footer .logo .en { white-space: nowrap; }
.home-footer .footer-grid { grid-template-columns: minmax(0, 1.8fr) 1fr 1fr; }
.home-footer .footer-grid nav { display: flex; flex-direction: column; align-items: start; }
.home-footer .footer-grid nav a { display: flex; align-items: center; min-height: 44px; }
.home-footer-address { margin-top: 14px; }
.home-footer-team a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 959px) {
  .page-home .df-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .df-form .f:first-child { grid-column: auto; }
  .page-home .df-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .home-venue-grid, .home-help-grid { grid-template-columns: minmax(0, 1fr); }
  .page-home .df-form input[type=date] { display: block; max-width: 100%; appearance: none; }
  .page-home .df-form input[type=date]::-webkit-datetime-edit { min-width: 0; padding: 0; }
  .page-home .df-form input[type=date]::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
  .home-intro-text { margin-top: 12px; }
  .home-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .home-footer .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .page-home .df-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
