/**
  style.css
 */

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: black;
    color: white;
    font-family: 'Shippori Mincho', serif;
    text-shadow: lightgray 0 0 4px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 1.75rem;
    box-shadow: white 0 6px 5px -5px;
}

h3 {
    font-size: 1.25rem;
}

h2, h3, h4, h5, h6 {
    width: calc(100% + 32px);
    margin: 32px -16px;
    padding: 0 16px 4px 16px;
    box-sizing: border-box;
}

p {
    line-height: 2;
}

a {
    color: white;
    vertical-align: top;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.center {
    text-align: center;
}

.mg-btm {
    margin-bottom: 64px;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

section.cover {
    height: 100vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.cover p {
    font-size: 1.5rem;
}

section.cover p span.small {
    font-size: 0.8rem;
}

div.container {
    max-width: 1080px;
    margin: 0 auto;
}

div.container > div {
    padding: 32px 0;
}

div.about div.intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

div.about div.intro div:first-child {
    width: 35%;
    height: 100%;
    margin-right: 5%;
}

div.about div.intro div:first-child iframe {
    height: auto;
    aspect-ratio: 1 / 1.414;
}

div.about div.intro div:nth-child(2) {
    width: 300px;
    height: 100%;
    margin-left: calc((100% - 300px) / 2);
    margin-right: calc((100% - 300px) / 2);
    margin-bottom: 32px;
}

div.about div.intro div:last-child {
    width: 60%;
    height: calc(600px / 16 * 9);
}

div.about div.intro a.button {
    margin: 16px auto;
    padding: 8px 16px;
    color: black;
    background-color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    box-sizing: border-box;
}

div.about div.prof {
    width: 400px;
    text-align: center;
}

div.about p.message {
    width: calc(100% - 400px);
    margin: 0 auto;
}

div.about div.prof img, div.member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: lightgray 0 0 8px;
}

div.info div.date p {
    width: calc(100% / 3);
    text-align: center;
}

div.member div.member-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

div.member div.member-list div {
    width: 30%;
    margin: 32px 0;
    text-align: center;
}

div.member p.name {
    margin: 16px 0 4px 0;
    line-height: 1.4;
}

div.event table {
    border-collapse: collapse;
}

div.event table th {
    border-top: 1px solid #ffffff;
}

div.event table th, div.event table td {
    padding: 6px 24px;
    border-bottom: 1px solid #ffffff;
}

div.event table th:first-child, div.event table td:first-child {
    text-align: center;
}

div.event div.photos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

div.event div.photos a {
    width: calc((100% - (16px * 5)) / 6);
    aspect-ratio: 1;
    margin: 0 16px 16px 0;
}

div.event div.photos a:nth-child(6n) {
    margin-right: 0;
}

div.event div.photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

section.footer {
    width: 100%;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.tsuda {
    position: fixed;
    bottom: 5%;
    left: 5%;
    z-index: 5;
}

div.tsuda p {
    font-size: 0.8rem;
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

div.tsuda img {
    width: 200px;
}

div.bg {
    width: 100vw;
    height: 100vh;
    background-image: url("img/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -10;
    opacity: 0.3;
}

/* sp */

@media screen and (max-width: 1024px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    section.cover p {
        font-size: 1rem;
    }

    div.container {
        margin: 0 16px;
    }

    div.container > div {
        padding: 16px 0;
    }

    div.about div.intro {
        justify-content: center;
    }

    div.about div.intro div:last-child {
        width: 100%;
        margin-left: calc((100% - 300px) / 2);
        margin-right: calc((100% - 300px) / 2);
        height: calc(300px / 16 * 9);
    }

    div.about div.prof, div.about p.message {
        width: 100%;
    }

    div.about div.prof img, div.member img {
        width: 120px;
        height: 120px;
    }

    div.info div.date p {
        width: 100%;
    }

    div.tsuda {
        bottom: 3%;
        left: 5%;
    }

    div.tsuda img {
        width: 100px;
    }
}

@media screen and (max-width: 599px) {
    div.member div.member-list div {
        width: 50%;
        margin: 16px 0;
    }

    div.event div.photos a,
    div.event div.photos a:nth-child(6n) {
        width: calc((100% - (8px * 3)) / 4);
        margin: 0 8px 8px 0;
    }

    div.event div.photos a:nth-child(4n) {
        margin-right: 0;
    }
}

/* fade in */
.fade {
    opacity: 0;
}

.fade-in {
    animation-name: fadeInAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeInAnime {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
