@charset "UTF-8";

html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
.layout { max-width: 1400px; width: 90%; margin: 0 auto; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 112px;
    padding: 0 30px;
    z-index: 100;
}
#main .header { background: transparent; }
.header__logo {
    display: flex;
    align-items: center;
    height: 152px;
}
.header__logo img {
    width: auto;
    height: 68px;
}
.header__logo--unesco img {
    height: 96px;
}

#btnScrollTop {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -17px;
    right: 5%;
    width: 70px;
    height: 70px;
    background-color: #D2262B;
    cursor: pointer;
    border: 0;
    transition: .3s linear;
    z-index: 1;
}
#btnScrollTop .tit {
    position: relative;
    padding-top: 10px;
    color: #fff;
    font-family: 'spoqa';
    font-weight: 600;
}
#btnScrollTop .tit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 9px;
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    border-width: 1px 1px 0 0;
    transform: rotate(-45deg);
}
#btnScrollTop:hover { box-shadow: 0 5px 15px rgb(130 18 21 / 40%); }

footer {
    position: relative;
    padding: 48px 0;
    background-color: #4c5869;
    color: #fff;
    font-weight: 300;
    line-height: 1.4;
}
footer .guide-list { display: flex; margin-bottom: 24px; }
footer .guide-list li { position: relative; padding-right: 20px; }
footer .guide-list a { color: #fff; }
.footer__logo { display: inline-block; margin-bottom: 24px; }
.footer__copyright { margin-top: 4px; font-weight: 300; color: #fff; }
.footer__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.footer__info-l address {
    font-style: normal;
    word-break: keep-all;
    color: #fff;
}
.footer__info-r { flex-shrink: 0; margin-left: 16px; }
.footer__visitor {
    display: flex;
    justify-content: space-between;
    line-height: 1.6;
}
.footer__visitor .tit { margin-right: 32px; }
.footer__visitor .num { font-weight: 600; }
footer .relOrg-wrap { position: relative; width: max-content; min-width: 180px; }
footer .relOrg-list {
    display: none;
    position: absolute;
    bottom: 65px;
    right: 0;
    width: max-content;
    min-width: 100%;
    background: #fff;
    z-index: 10;
    border: 1px solid #aaa;
    border-width: 0 1px;
}
footer .relOrg-list li { position: relative; border-top: 1px solid #aaa; }
footer .relOrg-list li a {
    display: block;
    width: 100%;
    padding: 8px 16px;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

#relOrgSelect {
    position: relative;
    width: 100%;
    min-width: 180px;
    color: #fff;
    border: 1px solid #fff;
    margin-bottom: 16px;
    padding: 12px 36px 12px 12px;
    text-align: left;
    font-family: 'spoqa';
    cursor: pointer;
    white-space: nowrap;
}
#relOrgSelect::before {
    content: '';
    position: absolute;
    top: 22px;
    right: 14px;
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    border-width: 1px 1px 0 0;
    transform: rotate(-45deg);
}

.media-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
}
.media-popup.is-open {
    display: flex;
}
.media-popup__window {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    min-width: 0;
    min-height: 0;
}
.media-popup__window.is-iframe {
    width: 80vw;
    height: 80vh;
    max-height: calc(100vh - 120px);
    background: transparent;
}
.media-popup__window.is-video {
    width: auto;
    height: auto;
    background: transparent;
}
.media-popup__body {
    position: relative;
    flex: 1;
    min-height: 0;
    line-height: 0;
    background: transparent;
}
.media-popup__window.is-video .media-popup__body {
    flex: 0 0 auto;
}
.media-popup__body iframe,
.media-popup__body video {
    display: none;
    border: 0;
    background: transparent;
}
.media-popup__window.is-iframe iframe.is-active {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.media-popup__window.is-video video.is-active {
    display: block;
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}
.media-popup__close-wrap {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.media-popup__close {
    min-width: 140px;
    padding: 12px 32px;
    background: #d2262b;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.media-popup__close:hover,
.media-popup__close:focus {
    background: #b01e22;
}

@media (max-width: 1024px) {
    .header { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
    .footer__info-l address .phone { display: block; }
}

@media (max-width: 768px) {
    .media-popup { gap: 10px; padding: 16px; }
    .media-popup__window.is-iframe { max-height: calc(100vh - 96px); }
    .media-popup__window.is-video video.is-active { max-height: 65vh; }
    .media-popup__close {
        min-width: 72px;
        padding: 6px 16px;
        font-size: 14px;
    }

    .header,
    .header__logo { height: 72px; }
    .header { padding: 0 16px; }
    .header__logo img { height: 32px; }
    .header__logo--unesco img { height: 40px; }

    footer { padding: 40px 0; }
    .footer__info { font-size: 14px; }
    .footer__copyright { font-size: 13px; }
    #btnScrollTop { top: -34px; width: 56px; height: 56px; }
    footer .relOrg-list li a { font-size: 14px; }
}

@media (max-width: 600px) {
    .footer__logo { margin-bottom: 16px; }
    .footer__info {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .footer__info-l { width: 100%; }
    .footer__info-r {
        flex: none;
        width: max-content;
        max-width: 100%;
        margin: 0 0 32px;
    }
    .footer__info-l address .phone { display: inline; }
    footer .guide-list { margin-bottom: 16px; }
}
