body {
    background-color: rgb(35, 35, 35);
    color: white;
    margin: 0;
    font-family: sans-serif;
    font-family: "berthold-baskerville-pro", "dnp-shuei-mincho-pr6n", "游明朝体", "游明朝", "Yu Mincho", "YuMincho", serif;
    font-weight: 400;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
}

*:lang(ja) {
    line-height: 1.6;
    text-align: justify;
    word-break: break-all;
    text-justify: inter-ideograph;
    text-justify: inter-character;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: white;
    text-decoration: none;
}

p {
    margin: 0;
}

*:lang(en) {
    line-height: 1.4;
    hyphens: auto;
    text-align: start;
    text-wrap: pretty;
    word-break: normal;
    word-wrap: normal;
    overflow-wrap: normal
}

header {
    background-color: rgb(35, 35, 35);
    color: white;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    height: 50px;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

header>a {
    height: 20px;
}

.nav-link-text {
    height: 20px;
}

.nav-main-logo {
    height: 20px;
}

.container {
    display: flex;
    height: calc(60vh - 50px);
}

.first-view {
    padding-top: 50px;
    height: calc(100vh - 50px);
}

.half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.half>.main-link {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.half>.main-link>img {
    height: 15%;
    width: auto;
}

.left {
    background: #e70030;
}

.right {
    background: #2e3cb7;
}

.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
}

p>a,
.works-description>a {
    border-bottom: 1px solid rgb(100, 100, 100);
}

.organizer-info>p>a {
    border-bottom: none;
}

.top-logo-section {
    height: calc(35vh - 50px);
    padding: 10px;
    padding-top: 30px;
    font-size: 18px;
}

.top-content {
    margin: 0;
}

.about-description-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 30px;
}

.about-description {
    padding: 0 10px;
    width: 50%;
}

.about-description:nth-of-type(1) {
    padding-right: 20px;
}

.about-description:nth-of-type(2) {
    padding-left: 20px;
    border-left: solid 1px white;
}

.organizer-info {
    margin-top: 0;
    margin-bottom: 30px;
    margin-right: 10px;
    border-left: solid 1px white;
    padding: 0 10px;
    font-size: 14px;
}
#top-organizer-info.organizer-info{
    margin-left: 10px;
}
.organizer-info:last-child {
    font-size: 12px;
}

.organizer-info>a,
.organizer-info>img {
    height: 40px;
    margin: 10px 0;
    display: block;
}

.organizer-info>a.mori-art-museum {
    height: 35px;
}

.organizer-info>a>img {
    height: 100%;
    width: auto;
}

.organizer-info>p>a {
    color: white;
}

.footer-spacer {
    height: 50px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #e70030;
    border-top: 1px solid #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Monotype Baskerville eText', '秀英明朝 M JIS2004';
}

.footer>a {
    width: 100%;
    height: 100%;
}

.top-footer {
    height: 95%;
}

.foote-event-info {
    margin-left: 10px;
    height: 40px;
    margin-top: 5px;
}

/* art page */
.art-wrapper {
    margin-top: 50px;
    height: calc(100vh - 100px);
    display: flex;
}

.art-img {
    width: 60%;
    height: 100%;
}

.art-info {
    width: 40%;
    height: 100%;
}

#bggradation.art {
    background: linear-gradient(45deg, #323cbe, #323cbe, #00e1ff);
}

#bggradation.archi {
    background: linear-gradient(45deg, #eb0032, #eb0032, #feff00);
}

#bggradation {

    background-size: 200% 200%;
    animation: bggradient 20s ease 10;
}

/* archi page */
.art-info {
    overflow: scroll;
    margin: 0 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.art-info.archi::-webkit-scrollbar {
    display: none;
}

.art-info>img {
    width: 70%;
    height: auto;
    max-height: 500px;
    margin-left: 10px;
    display: block;
    margin-right: auto;
    margin-left: 0;
    margin-bottom: 100px;
}

@media screen and (min-width:1200px) {
    .art-info>img {
        width: auto;
        height: 500px;
    }
}

.description-ja,
.description-en {
    margin-bottom: 30px;
}

.content-header {
    margin-top: 50px;
    padding-bottom: 80px;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: solid 1px white;
}

.organizer-info.archi-content-wrapper {
    margin-left: 0;
    ;
}

.event-row {
    border-top: solid 1px white;
    border-bottom: solid 1px white;
    display: flex;
    align-items: flex-start;
}

.event-date,
.event-title {
    margin: 10px 0;
}

.event-date {
    width: 30%;
}

.event-title {
    width: 70%;
    color: white;
}

.link-row-wrapper {
    margin: 10px 0;
    margin-bottom: 100px;
}

.link-row-wrapper:last-child {
    border-bottom: solid 1px white;
}

.link-row-wrapper>.link-row {
    border-top: solid 1px white;
    padding: 10px 0;
    cursor: pointer;
}

/* dialog */
dialog {
    padding: 20px;
    box-sizing: border-box;
    transition: 0.4s;
    background-color: #222;
    border-radius: 15px;
    border: solid 1px white;
    color: white;
}

dialog::backdrop {
    background: rgb(0 0 0 / 0.75);
    backdrop-filter: blur(4px);
    transition: 0.4s;
}

dialog.in-transition,
dialog.in-transition::backdrop {
    /* 開始時のスタイルを記述 */
    opacity: 0;
}

dialog {
    inset: 0;
    padding: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
    width: calc(70vw - 40px);
    max-width: calc(70vw - 40px);
    height: 80vh;
    overflow: hidden;
}

dialog>.inner {
    width: 100%;
    height: 100%;
}

.dialog-header {
    width: calc(100% - 40px);
    height: 40px;
    border-bottom: solid 1px white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

#closeDialog {
    cursor: pointer;
}

.dialog-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: calc(100% - 40px);
    padding: 0 20px;
    height: calc(100% - 40px);
}

.dialog-body>.profile-wrapper,
#portfolio-wrapper {
    width: calc(50% - 10px);
    height: calc(100% - 20px);
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 20px;
}

.dialog-body>.profile-wrapper::-webkit-scrollbar,
#portfolio-wrapper::-webkit-scrollbar {
    display: none;
}

.profile-name {
    padding-left: 10px;
    padding-bottom: 60px;
    border-left: solid 1px white;
}

#profile-name-ja {
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
}

#profile-name-en {
    padding-top: 10px;
}

#profile-image {
    height: 160px;
    width: 160px;
    border: solid 1px white;
    margin-top: 20px;
}

#profile-description-ja,
#profile-description-en {
    margin-top: 20px;
    border-top: solid 1px white;
    padding-top: 15px;
    font-size: 14px;
}

#profile-description-en {
    padding-bottom: 20px;
}


#portfolio-wrapper>img {
    width: calc(100% - 2px);
    height: auto;
}

#portfolio-wrapper>img {
    border: solid 1px white;
    margin-bottom: 5px;
    display: block;
}

#portfolio-wrapper>div.works-description:last-child,
#portfolio-wrapper>img:last-child {
    margin-bottom: 20px;
}

#portfolio-wrapper>div.works-description {
    width: calc(100% - 20px);
    font-size: 11px;
    padding: 0 10px;
    border-left: solid 1px white;
    margin-bottom: 10px;
    line-height: 1.0;
}

@keyframes bggradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media screen and (max-width: 990px) {
    .about-description {
        margin-bottom: 30px;
    }

    .art-wrapper {
        display: block;
        position: relative;
        width: 100%;
        overflow: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin-bottom: 0;
    }

    .art-wrapper::-webkit-scrollbar {
        display: none;
    }

    .art-img {
        position: absolute;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        width: 100%;
    }

    .art-info {
        display: flex;
        align-items: flex-start;
        position: absolute;
        transform: translateX(-50%);
        top: 0;
        left: 50%;
        width: calc(100% - 40px);
        height: calc(100vh - 100px);
        margin: 0 20px;
    }

    .art-info img {
        width: 80%;
        margin: 0;
        padding-top: 25vh;
        padding-bottom: 25vh;
    }

    .art-info .organizer-info img {
        padding: 0;
    }

    .art-img iframe {
        width: 100%;
    }

    .art-info.archi {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
        width: 370px;
    }

    .description-en {
        margin-bottom: 0;
    }

    .archi.art-info>img {
        margin-left: 20px;
    }

    .archi-content-wrapper {
        background-color: #222;
        ;
        width: calc(100% - 40px);
        padding: 30px 20px 30px 20px;
        border-radius: 15px;
        margin-bottom: 150px;
    }

    .content-header {
        margin-top: 0;
    }

    .link-row-wrapper {
        margin-bottom: 0;
    }

    dialog {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .dialog-body {
        flex-direction: column;
        overflow: scroll;
    }

    .dialog-body>.profile-wrapper,
    #portfolio-wrapper {
        width: 100%;
        height: auto;
        overflow: visible;
    }
}

/* error page */
.error-info {
    margin-top: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: calc((100vh - 100px) / 4);
}

.error-info>* {
    margin: 0;
}

.error-info>h1,
.error-info>p:nth-of-type(1) {
    position: relative;
    margin-bottom: 20px;
}

.error-info>h1::after,
.error-info>p:nth-of-type(1)::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 50px;
    background-color: white;
    margin: 10px 0;
    transform: translateX(-50%);
    left: 50%;
    bottom: -20px;

}

.error-info>h1 {
    font-size: 24px;
    display: block;
}

.error-info>p {
    text-align: center;
    display: block;
}

.error-img {
    height: calc((100vh - 100px) / 4 * 3);
}



@media screen and (max-width: 990px) {

    *:lang(ja),
    *:lang(en) {
        font-size: 14px;
    }

    .works-description, .works-description>i, .works-description>a, .works-description>span {
        font-size: 11px;
    }
    .nav-link-text{height: 17px;}
    .first-view>.container {
        height: calc(50vh - 50px);
    }

    .half>.main-link>img {
        height: 13%;
    }

    .about-description-wrapper {
        flex-direction: column;
    }

    .about-description {
        width: calc(100% - 20px);
    }

    .about-description:nth-of-type(1),
    .about-description:nth-of-type(2) {
        padding: 0 10px;
        border: none;
    }

    .organizer-info {
        font-size: 12px;
    }

    .organizer-info>p.last {
        font-size: 10px;
    }
}