@font-face {
    font-family: "Pretendard";
    font-weight: 300;
    font-display: swap;
    src: url("/Content/css/font/Pretendard-Light.woff2") format("woff2");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 400;
    font-display: swap;
    src: url("/Content/css/font/Pretendard-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 500;
    font-display: swap;
    src: url("/Content/css/font/Pretendard-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 600;
    font-display: swap;
    src: url("/Content/css/font/Pretendard-SemiBold.woff2") format("woff2");
}

* {
    box-sizing: border-box;
}

/* Make images responsive to avoid overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html {
    scroll-behavior: smooth;
    font-family: "Pretendard", sans-serif;
}

:root {
    --mobile-breakpoint: 768px;
    --desktop-design-width: 1920;
    --mobile-design-width: 375;

    /* PC/모바일 배경 이미지 슬롯. 모바일용 실제 이미지가 준비되면 --*-mobile 값만 교체하면 됨 */
    --bg-home-desktop: url("/Content/img/img_home.jpg");
    --bg-home-mobile: url("/Content/img/img_home_mo.jpg");
    --bg-reservation-desktop: url("/Content/img/img_reservation.jpg");
    --bg-reservation-mobile: url("/Content/img/img_reservation_mo.jpg");
    --bg-video-desktop: url("/Content/img/img_video.jpg");
    --bg-video-mobile: url("/Content/img/img_video_mo.jpg");
    --bg-event-desktop: url("/Content/img/img_event.jpg");
    --bg-event-mobile: url("/Content/img/img_event_mo.jpg");
}

body {
    margin: 0;
    min-width: 320px;
    width: 100%;
    font-family: inherit;
    background: #2a2621;
    color: #f3f3f3;
}

.page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
}

p, div, h1, h2, h3, h4, h5, h6, ul, li, input {
    margin:0;
    padding:0;
}

header {
    background: #000102;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 106px;
    z-index: 100;
}

.site-header {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 2.08vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    width: clamp(120px, 15.1vw, 290px);
}

.site-header a img,
header a img {
    display: block;
}

main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 0;
}

.gnb {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.gnb ul {
    display: flex;
    align-items: center;
    gap: clamp(16px, 5vw, 96px);
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    justify-content: flex-end;
}

.gnb li {
    display: flex;
}

.gnb a {
    color: #f3f3f3;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: clamp(44px, 3.13vw, 60px);
    padding: 0 clamp(12px, 1.46vw, 28px);
    text-decoration: none;
    font-size: clamp(20px, 2.03vw, 39px);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.gnb a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #e39c25;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.gnb a.active::after {
    transform: scaleX(1);
}

@media (hover: hover) {
    .gnb a:hover::after {
        transform: scaleX(1);
    }
}

.gnb a,
body,
button,
input,
textarea,
select,
p {
    font-family: "Pretendard", sans-serif;
    font-weight:400;
}

.gnb a.active {
    color: #ffd248;
}

@media (hover: hover) {
    .gnb a:hover {
        color: #ffd248;
    }
}

main {
    margin: 0 auto;
}

section {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#home {
    background-image: var(--bg-home-desktop);
    aspect-ratio: 1920 / 1155;
}

#reservation {
    position: relative;
    background-image: var(--bg-reservation-desktop);
    aspect-ratio: 1920 / 1450;
}

#video {
    position: relative;
    background-image: var(--bg-video-desktop);
    aspect-ratio: 1920 / 1760;
}

.video-play-button {
    position: absolute;
    top: 64.6%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10vw;
    height: 10vw;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-frame-wrap {
    position: absolute;
    inset: 0;
    top:37.1%;
    left:3.8%;
    width:92.4%;
    height:56.7%;
}

.video-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

#event {
    position: relative;
    background-image: var(--bg-event-desktop);
    background-position: top center;
    aspect-ratio: 1920 / 4281;
}

.event-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.event-coordinate {
    position: absolute;
    color: #ffffff;
    font-size: clamp(48px, 7.8vw, 150px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.event-coordinate--count {
    left: 9%;
    top: 57.8%;
}

.event-count-value {
    color: #e9c691;
}

.event-count-total {
    color: #ffffff;
    margin-left: 0.9rem;
    font-size: clamp(24px, 2.6vw, 50px);
    letter-spacing: 0;
}

.event-coordinate--percent {
    right: 33.5%;
    top: 54.9%;
}

.event-percent-chart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15.9vw;
    height: 15.9vw;
    border-radius: 50%;
    box-sizing: border-box;
}

.event-percent-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #bba464 0deg calc(var(--percent, 90) * 3.6deg),
    #40321a calc(var(--percent, 90) * 3.6deg) 360deg
  );

  -webkit-mask-image: radial-gradient(circle closest-side, transparent 88.21%, black 88.86%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: radial-gradient(circle closest-side, transparent 88.21%, black 88.86%);
  mask-repeat: no-repeat;
  mask-position: center;
}


.event-percent-chart > * {
    position: relative;
    z-index: 1;
}

.event-count-value,
.event-percent-value {
    display: inline-block;
    background-image: url("/Content/img/bg_cover.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-percent-value {
    font-size: clamp(40px, 5.8vw, 112px);
    line-height: 1;
}

.event-percent-symbol {
    display: inline-block;
    background-image: url("/Content/img/bg_cover2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(24px, 2.6vw, 50px);
    margin-left: 0.4rem;
    margin-top: 29px;
}

.event-reward {
    position: absolute;
    left: 50%;
    bottom: 13.6%;
    transform: translateX(-50%);
    width: min(1720px, 89.6%);
}

.event-reward-image {
    width: 100%;
    display: block;
}

.popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.popup-backdrop.active {
    display: flex;
}

.popup-content {
    position: relative;
    width: fit-content;
    max-width: 90%;
}

.popup-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.popup-confirm {
    position: absolute;
    border: none;
    background: transparent;
    cursor: pointer;
}

.popup-link {
    position: absolute;
    display: block;
}

.popup-links {
    display: none;
}

/* pop1: 체크 필요 안내 */
.popup-content[data-popup="pop1"] .popup-confirm {
    left: 37%;
    top: 60%;
    width: 27%;
    height: 26.5%;
    background: rgba(255, 255, 255, 0);
}

/* pop2: 사전예약 완료 (공식카페/유튜브 링크 포함) */
.popup-content[data-popup="pop2"] .popup-confirm {
    left: 39.9%;
    top: 76.7%;
    width: 20.7%;
    height: 15.7%;
    background: rgba(255, 255, 255, 0);
}

.popup-content[data-popup="pop2"] .popup-links {
    display: block;
}

.popup-content[data-popup="pop2"] .popup-link--cafe {
    left: 44.1%;
    top: 57.6%;
    width: 14%;
    height: 11.2%;
    background: rgba(255, 255, 255, 0);
}

.popup-content[data-popup="pop2"] .popup-link--youtube {
    left: 61.1%;
    top: 57.6%;
    width: 17.4%;
    height: 11.2%;
    background: rgba(255, 255, 255, 0);
}

/* pop3: 개인정보 수집·이용 동의 상세 */
.popup-content[data-popup="pop3"] .popup-confirm {
    left: 35%;
    top: 81.5%;
    width: 30.6%;
    height: 13.4%;
    background: rgba(255, 255, 255, 0);
}

.reservation-txt {
    position: absolute;
    left: 50%;
    top: 15px;
    width: min(1112px, 58vw);
    max-width: 100%;
    aspect-ratio: 1112 / 554;
    height: auto;
    transform: translateX(-50%);
}

.reservation-form label {
    display: flex;
    color: #fff;
    font-size: clamp(20px, 2.1vw, 40px);
    letter-spacing: -0.03em;
}

.phone-input-group {
    position:absolute;
    left:16.6%;
    top:43%;
    width:67%;
    height:9%;
    display: flex;
    align-items: center;
    gap: 3%;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29%;
    height: 100%;
    background: #fab000;
    color: #070706;
    font-size: clamp(24px, 3.1vw, 60px);
}

#phone-number {
    flex: 1;
    width: 100%;
    height:100%;
    border: none;
    background: #fff;
    color: #070706;
    font-size: clamp(18px, 2.1vw, 40px);
    outline: none;
    text-align:center;
}

#phone-number::placeholder {
    color: #736262;
}

.agreement-list {
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:55%;
    width:72vw;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 4rem;
    background: rgba(22,27,31,0.52);
}

.agreement-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
}

.agreement-item:nth-child(1) {
    padding-bottom:1rem;
    border-bottom:solid 2px rgba(162,118,3,0.4);
}

.agreement-item input[type="checkbox"] {
    width: clamp(13px, 2.4vw, 46px);
    height: clamp(13px, 2.4vw, 46px);
    accent-color: #ffd248;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #8a6a31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.agreement-item input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: clamp(2px, 0.31vw, 6px);
    top: clamp(2px, 0.36vw, 7px);
    width: clamp(6px, 1.25vw, 24px);
    height: clamp(3px, 0.63vw, 12px);
    border-left: clamp(2px, 0.31vw, 6px) solid transparent;
    border-bottom: clamp(2px, 0.31vw, 6px) solid transparent;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease;
}

.agreement-item input[type="checkbox"]:checked::after {
    border-left-color: #86672f;
    border-bottom-color: #86672f;
    transform: rotate(-45deg) scale(1);
}

.agreement-item input[type="checkbox"]:checked::before {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1);
}

.agreement-item input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(255, 210, 72, 0.5);
    outline-offset: 3px;
}

.agreement-item--detail {
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.agreement-item--detail span {
    flex: 1;
}

.reservation-submit-placeholder {
    position:absolute;
    left:32%;
    top:79%;
    width: 37%;
    aspect-ratio: 745 / 307;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0);
    font-size: 1.5rem;
    text-align: center;
    background: url(/Content/img/btn_reservation.png) 0 0 / contain no-repeat;
    transition: background 0.2s ease-in;
    cursor: pointer;
}
.reservation-submit-placeholder:hover {
    background: url(/Content/img/btn_reservation_on.png) 0 0 / contain no-repeat;
}

.agreement-detail-button {
    border: 0;
    background: url(/Content/img/btn_detail.png) 0 0 / contain no-repeat;
    aspect-ratio: 248 / 60;
    color: #fff;
    padding: clamp(0.4rem, 0.8vw, 0.75rem) clamp(0.7rem, 1.2vw, 1.2rem);
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    width: clamp(140px, 12.5vw, 240px);
}

.agreement-detail-button:hover {
    background: url(/Content/img/btn_detail_on.png) 0 0 / contain no-repeat;
}

h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    /* 모바일 전용 배경 이미지로 교체. 실제 모바일용 이미지가 생기면
       :root의 --bg-*-mobile 값을 바꾸고, 이미지 실제 비율에 맞춰
       아래 섹션별 aspect-ratio도 함께 조정할 것 */
    #home {
        background-image: var(--bg-home-mobile);
        aspect-ratio: 750 / 1125;
    }

    #reservation {
        background-image: var(--bg-reservation-mobile);
        aspect-ratio: 750 / 921;
    }

    #video {
        background-image: var(--bg-video-mobile);
        aspect-ratio: 750 / 883;
    }

    #event {
        background-image: var(--bg-event-mobile);
        aspect-ratio: 750 / 2827;
    }

    header {
        height: 50px;
    }

    .site-header {
        padding: 0 10px;
    }

    .site-header h1 {
        width: 107px;
    }

    .gnb {
        display: flex;
    }

    .gnb ul {
        gap: 7px;
    }

    .gnb a {
        height: 25px;
        padding: 0 4px;
        font-size: 15px;
        align-items: flex-start;
    }

    .reservation-txt {
        width: min(90vw, 340px);
        top: 18px;
    }

    .phone-input-group {
        left: 3%;
        top: 45%;
        width: 94%;
        height: 9.5%;
        gap: 2%;
    }

    .phone-prefix {
        min-width: 30%;
        font-size: clamp(16px, 5vw, 32px);
    }

    #phone-number {
        font-size: clamp(14px, 3.7vw, 24px);
    }

    .agreement-list {
        top: 55%;
        width: 92%;
        padding: 0.8rem;
        gap: 4px;
    }

    .agreement-list .agreement-item {
        font-size: 11px;
        gap: 0.6rem;
        letter-spacing: -0.04em;
    }

    .agreement-item:nth-child(1) {
        padding-bottom: 4px;
        border-width: 1px;
    }

    .agreement-item input[type="checkbox"] {
        width: 13px;
        height: 13px;
        border-width: 1px;
        border-radius: 4px;
    }

    .agreement-item input[type="checkbox"]::after {
        left: 2px;
        top: 2px;
        width: 6px;
        height: 3px;
        border-left-width: 2px;
        border-bottom-width: 2px;
    }

    .agreement-item--detail {
        align-items: center;
    }

    .agreement-detail-button {
        width: 66px;
        height: 16px;
        font-size: 10px;
        padding: 0.2rem 0.4rem;
    }

    .reservation-submit-placeholder {
        left: 16%;
        top: 73%;
        width: 69%;
    }

    .video-play-button {
        top:72.5%
    }

    .video-frame-wrap {
        top:49.8%;
        left:1.1%;
        width:97.8%;
        height:47%;
    }

    .event-coordinate {
        font-size: clamp(48px, 12vw, 60px);
    }

    .event-coordinate--count {
        left: 3%;
        top: 68.5%;
    }

    .event-coordinate--percent {
        right: 3.6%;
        top: 65.7%;
    }

    .event-percent-chart {
        width: 100px;
        height: 100px;
    }

    .event-percent-chart::before {
        -webkit-mask-image: radial-gradient(circle closest-side, transparent calc(100% - 9px), black calc(100% - 8px));
        mask-image: radial-gradient(circle closest-side, transparent calc(100% - 9px), black calc(100% - 8px));
    }

    .event-percent-value {
        font-size: clamp(36px, 6vw, 42px);
    }

    .event-percent-symbol {
        font-size: clamp(16px, 3vw, 22px);
        margin-top: 12px;
        margin-left: 0.1rem;
    }

    .event-count-total {
        font-size: clamp(16px, 4vw, 20px);
        margin-left: 0.5rem;
    }

    .event-reward {
        bottom:11.3%;
        width:99%;
    }

    .footer-info-divider {
        display: none;
    }

    .popup-content[data-popup="pop2"] .popup-link--cafe {
        left: 40.9%;
        top: 52.1%;
        width: 17.0%;
        height: 13%;
    }

    .popup-content[data-popup="pop2"] .popup-link--youtube {
        left: 58.5%;
        top: 52.1%;
        width: 21.5%;
        height: 13%;
    }

}

footer {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "brand links"
        "info  info"
        "copy  copy";
    align-items: start;
    column-gap: clamp(1rem, 3vw, 3rem);
    row-gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
    background: #1b1f27;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: block;
    width: clamp(96px, 12vw, 180px);
    height: auto;
}

.footer-links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
}

.footer-links .footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #f3f3f3;
    text-decoration: none;
    font-size: clamp(13px, 1.3vw, 25px);
    line-height: 1.2;
    padding-left: clamp(36px, 3.65vw, 70px);
    height: clamp(32px, 2.86vw, 55px);
    white-space: nowrap;
}

.footer-links .footer-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(28px, 2.86vw, 55px);
    height: clamp(28px, 2.86vw, 55px);
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-links .footer-link.cafe::before {
    background-image: url("/Content/img/img_cafe.png");
}

.footer-links .footer-link.youtube::before {
    background-image: url("/Content/img/img_youtube.png");
}

.footer-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    /* padding-bottom: clamp(1rem, 3vw, 1.5rem); */
}

.footer-info p {
    color: #fff;
    text-align: left;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.5;
}

.footer-copy {
    grid-area: copy;
}

.footer-copy p {
    margin: 0;
    color: #7c8089;
    text-align: center;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.5;
}

/* PC: 로고-정보-링크가 좌/중/우 3열로 배치되고, info/copy가 그 사이 넓은
   공간을 채운다. 로고는 축소하지 않고 원본 크기(100%)로 표시 */
@media (min-width: 769px) {
    footer {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "brand info  links"
            "brand copy  links";
    }

    .footer-logo {
        width: auto;
    }

    .footer-info p {
        font-size: clamp(16px, 1.25vw, 24px);
    }

    .footer-copy p {
        font-size: clamp(14px, 1.3vw, 25px);
        font-weight: 300;
    }

    .footer-info-break {
        display: none;
    }
}
