@charset "UTF-8";

/*
 * イベントページ共通：会場アクセス追従ボタン／モーダル
 */

body.is-access-modal-open {
    overflow: hidden;
}

body.is-other-modal-open .access-modal__trigger {
    display: none !important;
}

.js-access-modal > button.access-modal__trigger {
    position: fixed;
    right: 8rem;
    bottom: 2rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 7.6rem;
    height: 7.6rem;
    min-width: 0;
    min-height: 0;
    padding: .8rem;
    border: 0;
    border-radius: 50%;
    color: #5c4900;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    background: #ffd84d;
    box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: transform .2s, background-color .2s, box-shadow .2s;
}

.access-modal__trigger-icon {
    position: relative;
    display: block;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    margin: 0 auto;
    border: .35rem solid currentColor;
    border-radius: 50% 50% 50% 0;
    box-sizing: border-box;
    transform: rotate(-45deg);
}

.access-modal__trigger-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.access-modal__trigger-label {
    display: block;
    line-height: 1.2;
    text-align: center;
}

.js-access-modal > button.access-modal__trigger:hover {
    color: #5c4900;
    background: #ffcd1f;
    box-shadow: 0 .6rem 1.6rem rgba(0, 0, 0, .32);
    transform: translateY(-.2rem);
}

.js-access-modal > button.access-modal__trigger:focus-visible,
.access-modal__close:focus-visible,
.access-modal__map-link:focus-visible {
    outline: .3rem solid #ffbf00;
    outline-offset: .3rem;
}

.access-modal {
    box-sizing: border-box;
    width: 90%;
    max-width: 90rem;
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    padding: 2rem 2rem 1.5rem;
    border: 0;
    border-radius: .2rem;
    color: #333;
    background: #fff;
    box-shadow: 0 0 3rem rgba(0, 0, 0, .6);
    overflow: visible;
}

.access-modal::backdrop {
    background: rgba(255, 255, 255, .8);
}

.access-modal__panel {
    max-height: calc(100vh - 9.5rem);
    max-height: calc(100dvh - 9.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.access-modal__header {
    padding: 1rem 6rem 2rem;
    color: #333;
    text-align: center;
    background: #fff;
}

.access-modal__title {
    position: relative;
    margin: 0;
    padding: 0 0 2rem;
    color: inherit;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.access-modal__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 5rem;
    height: .5rem;
    border-radius: 999px;
    background: #1aabb0;
    transform: translateX(-50%);
}

.access-modal__close {
    appearance: none;
    position: absolute;
    top: -3%;
    right: -4%;
    z-index: 3;
    width: 5.1rem;
    height: 5.1rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #1aabb0;
    box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.access-modal__close:hover {
    color: #2b2e38;
    background: #1aabb0;
}

.access-modal__close::before,
.access-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.2rem;
    height: .2rem;
    background: currentColor;
}

.access-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.access-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.access-modal__body {
    padding: 0;
    font-size: 1.6rem;
    line-height: 2;
}

.access-modal__map {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 2;
    min-height: 30rem;
    overflow: hidden;
    background: #eee;
}

.access-modal__map-link-wrap {
    margin: 1rem 0 2.5rem;
    text-align: center;
}

.access-modal__map-link {
    display: inline-block;
    padding: 1rem 6rem;
    border: .2rem solid #1859b6;
    border-radius: .5rem;
    color: #1859b6;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    background: #fff;
    transition: background-color .2s;
}

.access-modal__map-link:hover {
    color: #1859b6;
    background: #e1eaf6;
}

.access-modal__map-link::after {
    content: "";
    display: inline-block;
    width: .75em;
    height: .75em;
    margin-left: .5em;
    background: url(../design/common/images/icon/blank.png) no-repeat center / contain;
}

.access-modal__table table {
    width: 100%;
}

.access-modal__table td a {
    text-decoration: underline;
}

@media not all and (min-width: 768px) {
    .js-access-modal > button.access-modal__trigger {
        right: 1.2rem;
        bottom: 8rem;
        width: 7rem;
        height: 7rem;
        padding: .6rem;
        font-size: .9rem;
    }

    .access-modal__trigger-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .access-modal {
        width: 90%;
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        padding: 1.2rem;
        border-radius: .2rem;
    }

    .access-modal__panel {
        max-height: calc(100vh - 8.4rem);
        max-height: calc(100dvh - 8.4rem);
    }

    .access-modal__header {
        padding: 1.2rem 5.6rem 1.8rem;
    }

    .access-modal__title {
        padding-bottom: 1.6rem;
        font-size: 2.4rem;
    }

    .access-modal__close {
        top: -.8rem;
        right: -.8rem;
        width: 4.4rem;
        height: 4.4rem;
    }

    .access-modal__map {
        aspect-ratio: 4 / 3;
        min-height: 22rem;
    }

    .access-modal__map-link {
        width: min(100%, 30rem);
        padding: 1rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-access-modal > button.access-modal__trigger,
    .access-modal__map-link {
        transition: none;
    }
}
