/*******************************************************
 * 팝업
 */
.popupDialog {
    position: fixed;
    width: 400px;
    height: 300px;
    top: calc(50% - 150px);
    left: calc(50% - 200px);
    background: #FFF;
    border: 1px solid #999;
    border-radius: 10px;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s;
}
.notice-popup > span {
    font-family: NanumSquareEB;
    font-size: 2.5rem;
    padding-left: calc(400px - 35px);
    cursor: pointer;
}
.notice-popup > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 35px;
    font-size: 1.5rem;
    line-height: 3rem;
    text-align: center; 
}

@media screen and (max-width: 500px) {
    .popupDialog {
        width: initial;
        left: 20px;
        right: 20px;
    }
    .notice-popup > span {
        padding-left: calc(100% - 35px);
    }
}
@media screen and (max-width: 400px) {
    .popupDialog {
        height: 200px;
    }
    .notice-popup > span {
        font-size: 2rem;
        padding-left: calc(100% - 28px);
    }
    .notice-popup > ul {
        font-size: 1.2rem;
        line-height: 2rem;
        padding-top: 20px;
    }
}
@media screen and (max-width: 330px) {
    .notice-popup > ul {
        font-size: 1rem;
    }
}

/*******************************************************
 * 슬라이더
 */
.slider {
    width: 100%;
    height: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.slider > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: calc(100% * 4);
    height: 100%;
    position: absolute;
    left: 0;
    position: relative;
}
.slider > ul > li {
    flex-grow: 1;
    flex-basis: 100%;
}
.slider > ul > li > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/*--------------------------------------
 * 슬라이더 내비게이션
 */
.slider-move {
    margin: 0;
    padding: 0;
    position: absolute;
    top: calc(50% - 43px);
    left: 3%;
    right: 3%;
}
.slider-move > svg {
    width: 86px;
    height: 86px;
    cursor: pointer;
}
.slider-move > svg:nth-of-type(2) {
    float: right;
}
.slider-navi {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    text-align: center;
    line-height: 34px;
    width: 100%;
    height: 34px;
    position: absolute;
    bottom: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.slider-navi > span {
    display: inline-block;
    width: 34px;
    height: 34px;
    color: #FFF;
    border: 1px solid transparent;
    border-radius: 100%;
}
.slider-navi > span:nth-of-type(1) {
    color: #2B2A6A;
    border-color: #2B2A6A;
}


/*******************************************************
 * 피자메뉴 목록
 */
.menus {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid: "original premium side crust set topping" / 1fr 1fr 1fr 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    border: 1px solid #CCC;
    border-radius: 11px;
    position: absolute;
    left: calc(50% - 45%);
    margin-top: -30px;
}
.menus > li {
    padding: 30px 10%;
    border-right: 1px solid #CCC;
    background: #FFF;
    transition: 0.2s;
}
.menus > li:nth-of-type(1) {
    grid-area: original;
    border-radius: 10px 0 0 10px;
}
.menus > li:nth-of-type(2) {
    grid-area: premium;
}
.menus > li:nth-of-type(3) {
    grid-area: side;
}
.menus > li:nth-of-type(4) {
    grid-area: crust;
}
.menus > li:nth-of-type(5) {
    grid-area: set;
}
.menus > li:nth-of-type(6) {
    grid-area: topping;
    border: none;
    border-radius: 0 10px 10px 0;
}
.menus > li > a:link,
.menus > li > a:visited {
    text-decoration: none;
    font-family: NanumSquareB;
    color: #222;
}
.menus > li > a > p {
    margin-bottom: 0;
}

/*******************************************************
 * 공지사항
 */
.notice {
    list-style: none;
    margin: 200px auto 50px;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid: "notice-img notice1 notice2 notice3" / 110px 1fr 1fr 1fr;
    align-items: center;
}
.notice > li {
    position: relative;
}
.notice > li:nth-of-type(1) {
    grid-area: notice-img;
}
.notice > li:nth-of-type(1) ~ li {
    padding-top: 25px;
}
.notice > li:nth-of-type(2) {
    grid-area: notice1;
}
.notice > li:nth-of-type(3) {
    grid-area: notice2;
}
.notice > li:nth-of-type(4) {
    grid-area: notice3;
}
.notice > li:nth-of-type(2n)::before {
    content: "공지";
    font-family: NanumSquareB;
    font-size: 0.8rem;
    background: #A7CEFF;
    padding: 5px 8px;
    border-radius: 20px;
    position: absolute;
    top: -10px;
}
.notice > li:nth-of-type(3)::before {
    content: "이벤트";
    font-family: NanumSquareB;
    font-size: 0.8rem;
    background: #FFCD2D;
    padding: 5px 8px;
    border-radius: 20px;
    position: absolute;
    top: -10px;
}
.notice > li > a:link,
.notice > li > a:visited {
    text-decoration: none;
    color: #000;
}
.notice > li > a:hover {
    text-decoration: underline;
}

/*******************************************************
 * 배너
 */
.bn-wrapper {
    padding: 50px 0;
    width: 100%;
    background: #F6F6F6;
}
.bn {
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    display: grid;
    gap: 20px;
    word-break: keep-all;
}
.bn-franchise {
    grid-area: franchise;
    position: relative;
}
.bn-franchise::after {
    content: "";
    position: absolute;
    background-image: url("http://pizza.joo.popol.website/images/link_icon1.png");
    background-position: center center;
    background-size: cover;
}
.bn-store {
    grid-area: store;
    position: relative;
}
.bn-store::after {
    content: "";
    position: absolute;
    background-image: url("http://pizza.joo.popol.website/images/link_icon2.png");
    background-position: center center;
    background-size: cover;
}
.bn-ytb {
    grid-area: ytb;
}
.bn-story {
    grid-area: story;
    position: relative;
}
.bn-story::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url("http://pizza.joo.popol.website/images/bnr_bg.jpg");
    background-size: cover;
    background-position: center center;
    border-radius: 10px;
}
.bn > ul {
    list-style: none;
    margin: 0;
    background: #FFF;
    border: 1px solid #CCC;
    border-radius: 10px;
}
.bn > ul > li:nth-child(1) {
    font-family: NanumSquareB;
    color: #2B2A6A;
    margin-bottom: 15px;
}
.bn-franchise > li:nth-of-type(2),
.bn-store > li:nth-of-type(2) {
    font-family: NanumSquareB;
    color: #FFCD2D;
}
.bn-ytb > li:nth-of-type(1)::after,
.bn-story > li:nth-of-type(1)::after {
    content: "+";
    font-family: NanumSquareB;
    color: #FFCD2D;
    float: right;
}
.bn-ytb > li:nth-of-type(3),
.bn-story > li:nth-of-type(2) {
    color: #999;
}
.bn-ytb > li:nth-of-type(2) > iframe {
    width: 100%;
}
.bn-ytb > li:nth-of-type(3) {
    margin-top: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
}
.bn-story > li {
    position: absolute;
}
