@charset "utf-8";

header {
    position: relative;
    z-index: 2;
}

#app {
    position: relative;
}



/* ローディング
------------------------------------------*/
#loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

#loading p {
    font-size: 7rem;
    font-weight: bold;
}

@media only screen and (max-width:1000px) {
    #loading p {
        font-size: 6rem;
    }
}

@media only screen and (max-width:768px) {
    #loading {
        display: none;
    }
}

/* スライダー
------------------------------------------*/
#top_slider {
    width: 100%;
    position: relative;
    margin-top: 4rem;
}

#slick_slider {
    padding: 0;
    margin-bottom: 3rem;
}

#slick_slider .label {
    position: absolute;
    top: 0;
    left: -1rem;
    z-index: 10;
    padding: .375rem 1.25rem;
    border-radius: .5rem;
    color: var(--main-white);
    font-weight: bold;
}

#slick_slider .label.open {
    background-color: var(--main-green);
}

#slick_slider .label.full {
    background-color: var(--main-red);
}

#slick_slider .slick-slide {
    max-width: 70vw;
    width: 400px;
    height: 610px;
    margin: 0 40px;
    padding-top: 1rem;
    position: relative;
}

#slick_slider .slick-slide img {
    display: block;
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: .5rem;
}

#slick_slider .slick-slide .item_info {
    text-align: center;
}

#slick_slider .slick-slide .item_info h3 {
    font-size: 1.75rem;
    margin: 1rem 0 .75rem;
}

#slick_slider .slick-slide .item_info .place {
    position: relative;
    width: fit-content;
    padding-left: 1.5rem;
    margin: 0 auto;
}

#slick_slider .slick-slide .item_info .place::before {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    height: 18px;
    background-image: url(../img/icons/place.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

#slick_slider .slick-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 0;
    position: absolute;
    top: 180px;
    z-index: 1;
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
}

#slick_slider .slick-arrow::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 1px solid #09000d;
    border-width: 3px 3px 0 0;
    position: absolute;
    top: 24px;
    transform: rotate(45deg);
}

#slick_slider .slick-next {
    right: 0;
}

#slick_slider .slick-prev {
    left: 0;
}

#slick_slider .slick-next::before {
    left: 20px;
}

#slick_slider .slick-prev::before {
    border-width: 0 0 3px 3px;
    right: 22px;
}

.dots .slick-dots {
    text-align: center;
}

.dots .slick-dots li {
    display: inline-block;
}

.dots .slick-dots button {
    display: block;
    width: 10px;
    height: 10px;
    margin: 6px;
    font-size: 0;
    padding: 0;
    border: 0;
    outline: none;
    cursor: pointer;
    background: #bcbcbc;
    border-radius: 50%;
}

.dots .slick-dots .slick-active button {
    background: #0a467d;
}

@media only screen and (max-width:640px) {
    #slick_slider .slick-slide {
        max-width: 90vw;
        height: 440px;
    }

    #slick_slider .slick-slide .item_info h3 {
        font-size: 1.5rem;
    }

    #slick_slider .slick-slide img {
        margin: 0 auto;
        width: 300px;
        height: 300px;
    }

    #slick_slider .slick-slide {
        width: 300px;
    }
}

@media only screen and (max-width:425px) {
    #slick_slider .slick-slide {
        height: 400px;
    }

    #slick_slider .slick-slide {
        margin: 0 16px;
    }

    #slick_slider .slick-slide .item_info h3 {
        font-size: 1.25rem;
    }

    #slick_slider .slick-slide {
        width: 220px;
    }

    #slick_slider .slick-slide img {
        height: 220px;
        width: 220px;
    }
}

/* ウィジェット
------------------------------------------*/
#top_widget {
    margin: 0 auto;
    max-width: var(--main-max-width);
    width: var(--main-width);
    position: relative;
    border-bottom: 1px solid var(--main-black);
    text-align: center;
}

/* 現在募集中のリバ邸
------------------------------------------*/
#liverties {
    margin: 0 auto 10rem;
    max-width: var(--main-max-width);
    width: var(--main-width);
    position: relative;
}

#liverties h2 {
    padding-left: 1rem;
    margin: 2rem 0;
}

#liverties .item_container {
    display: flex;
    align-items: start;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    margin: 0 auto 4rem;
}

#liverties .item_container .item {
    display: block;
    width: 270px;
    margin: 2rem 3rem 2rem 1rem;
    position: relative;
    text-align: center;
}

#liverties .item_container .item .label {
    display: block;
    position: absolute;
    top: -1rem;
    left: -1rem;
    color: var(--main-white);
    background-color: var(--main-green);
    padding: .25rem 1.25rem;
    border-radius: .5rem;
    font-size: 1.25rem;
}

#liverties .item_container .item .img {
    width: 270px;
    height: 270px;
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
    border: 3px solid #F7F7F7;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

#liverties .item_container .item:hover {
    opacity: 1;
}

#liverties .item_container .item:hover .img {
    border: 3px solid var(--main-black);
}

#liverties .item_container .item .place {
    padding-left: 20px;
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

#liverties .item_container .item h3 {
    margin-bottom: .5rem;
}

#liverties .item_container .item .place::before {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    height: 18px;
    background-image: url(../img/icons/place.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

@media only screen and (max-width: 1150px) {
    #liverties .item_container .item {
        margin: 2rem 1rem;
    }
}

@media only screen and (max-width: 768px) {
    #liverties .item_container .item {
        width: 220px;
    }

    #liverties .item_container .item .img {
        width: 220px;
        height: 220px;
    }
}

@media only screen and (max-width: 640px) {
    #liverties .item_container .item {
        width: 100%;
        margin: 2rem auto;
    }

    #liverties .item_container .item .img {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    #liverties .black_btn {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    #liverties .item_container .item .label {
        left: calc((100% - 300px) / 2 - 1rem);
    }
}

@media only screen and (max-width:425px) {
    #liverties .item_container .item .img {
        height: 220px;
        width: 220px;
    }

    #liverties .item_container .item .label {
        left: calc((100% - 220px) / 2 - 1rem);
    }
}

/* 各リバ邸の最新情報 / リバ邸住民の活動
------------------------------------------*/

#latest_info,
#latest_resident_info {
    margin: 0 auto 10rem;
    max-width: var(--main-max-width);
    width: var(--main-width);
    position: relative;
}

#latest_info h2,
#latest_resident_info h2 {
    padding-left: 1rem;
    margin-bottom: 2rem;
}

#latest_info .item_container,
#latest_resident_info .item_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
}

#latest_info .item_container .item,
#latest_resident_info .item_container .item {
    display: block;
    width: calc(33.3333% - 1.5rem);
    margin: 0 0 3rem;
}

#latest_info .item_container .item .img,
#latest_resident_info .item_container .item .img {
    height: 220px;
    background-position: center;
    background-size: cover;
    border-radius: .5rem;
    margin-bottom: .5rem;
}

#latest_info .item_container .item .date,
#latest_resident_info .item_container .item .date {
    font-weight: lighter;
}

#latest_info .item_container .item h3,
#latest_resident_info .item_container .item h3 {
    margin: .25rem 0;
    font-size: 1.5rem;
}

@media only screen and (max-width:1024px) {
    #latest_info .item_container .item,
    #latest_resident_info .item_container .item {
        display: block;
        width: calc(50% - 1.5rem);
        margin: 0 0 3rem;
    }
}

@media only screen and (max-width:640px) {
    #latest_info .item_container .item .img,
    #latest_resident_info .item_container .item .img {
        height: 300px;
    }

    #latest_info .item_container .item,
    #latest_resident_info .item_container .item {
        display: block;
        width: 100%;
        margin: 0 0 3rem;
    }
}

@media only screen and (max-width:425px) {
    #latest_info .item_container .item .img,
    #latest_resident_info .item_container .item .img {
        height: 220px;
    }
}


/* カレンダー
------------------------------------------*/

#calendar_wrapper {
    padding: 1rem;
    margin: 4rem auto;
    width: 100%;
}

#calendar_wrapper>.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

#calendar {
    margin-top: 1rem;
    width: 100%;
}

#calendar .event_label:hover {
    cursor: pointer;
}

#calendar .fc-col-header-cell-cushion {
    color: #fff;
}

#calendar .fc-daygrid-day-number {
    color: #222;
}

#calendar table {
    margin-bottom: 0;
    padding: 0;
}

#calendar .fc-toolbar-title {
    font-size: 1.25rem;
}

#calendar .fc-event-title,
#calendar .fc-event-time {
    color: #7AB3DB;
    font-weight: bold;

}

#calendar .fc-daygrid-block-event .fc-event-title,
#calendar .fc-daygrid-block-event .fc-event-time {
    color: #fff;
}

#calendar .fc-button-primary {
    background-color: #2C2D31;
}

#calendar table th {
    font-weight: normal;
    padding: 4px 0;
    background-color: #2C2D31;
}

#calendar .fc-day-sat .fc-daygrid-day-number {
    color: #609BC5;
}

#calendar .fc-day-sun .fc-daygrid-day-number {
    color: #D46464;
}

#calendar .fc-icon-chevron-right:before,
#calendar .fc-icon-chevron-left:before {
    color: var(--main-white);
}

/* ダイアログ */
#calendar_dialog {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    transition: 0.5s all ease;
}

#calendar_dialog_content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: scroll;
    background-color: var(--main-white);
    padding: 2rem;
    border-radius: 0.5rem;
    top: -4rem;
    transition: 0.5s all ease;
}

#calendar_dialog.active {
    opacity: 1;
    visibility: visible;
}

#calendar_dialog_content {
    top: 0;
}

#calendar_dialog_content .title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

#calendar_dialog_content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-top: 1px solid var(--main-black);
}

#calendar_dialog_content table tr td,
#calendar_dialog_content table tr th {
    border-bottom: 1px solid var(--main-black);
    padding: 1rem;
    text-align: left;
}

#calendar_dialog_content table tr th {
    font-weight: bold;
    word-break: keep-all;
}

#calendar_dialog_content table tr td a {
    text-decoration: underline;
}

#calendar_dialog_content .close {
    cursor: pointer;
    display: block;
    margin: 3rem auto 0;
    background-color: var(--main-black);
    color: var(--main-white);
    padding: 1rem 3rem;
    border-radius: 2rem;
    width: fit-content;
}


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

    #calendar_dialog_content {
        padding: 2rem 1rem;
    }

    #calendar_dialog_content table,
    #calendar_dialog_content tbody,
    #calendar_dialog_content table tr,
    #calendar_dialog_content table tr td,
    #calendar_dialog_content table tr th {
        position: relative;
        display: block;
    }

    #calendar_dialog_content table tr th {
        border: none;
        padding-bottom: 0;
    }

    #calendar_dialog_content table tr td {
        padding-top: .25rem;
    }

    #calendar_content_date span {
        word-break: keep-all;
    }
}

@media only screen and (max-width:375px) {
    .fc-daygrid-dot-event .fc-event-title {
        overflow: visible;
    }

    #calendar .fc-event-time {
        display: none;
    }
}


/* リバ邸からのお知らせ
------------------------------------------*/

#information {
    margin: 0 auto 10rem;
    max-width: var(--main-max-width);
    width: var(--main-width);
    position: relative;
}

#information h2 {
    padding-left: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

#information .item_container {
    margin-bottom: 4rem;
}

#information .item_container .item {
    width: 100%;
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid var(--main-black);
}

#information .item_container .item:last-child {
    border-bottom: none;
}

#information .item_container .item .date {
    width: 150px;
    min-width: 150px;
    border-right: 1px solid var(--main-black);
    padding: 0 1rem;
}

#information .item_container .item .category {
    width: 150px;
    min-width: 150px;
    border-right: 1px solid var(--main-black);
    padding: 0 1rem;
}

#information .item_container .item .title {
    padding: 0 1rem;
}

#information .black_btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

@media only screen and (max-width:768px) {
    #information .item_container .item {
        display: block;
    }

    #information .item_container .item .date {
        border: none;
        display: inline-block;
        font-size: .875rem;
        min-width: 0;
        width: fit-content;
        padding-right: 0;
    }

    #information .item_container .item .category {
        border: none;
        display: inline-block;
        width: auto;
    }

    #information .item_container .item .category p {
        font-size: .75rem;
        display: inline-block;
        width: fit-content;
        border-radius: 1rem;
        background-color: var(--main-black);
        color: var(--main-white);
        padding: .25rem .5rem;
    }

    #information .item_container .item .title {
        margin-top: .5rem;
    }
}

@media only screen and (max-width:640px) {
    #information .item_container .item {
        padding: 1rem 0;
    }
}


/* Twitter
------------------------------------------*/

#twitter_section {
    margin: 0 auto 12rem;
    max-width: var(--main-max-width);
    width: var(--main-width);
    position: relative;
}

@media only screen and (max-width:640px) {
    #twitter_section {
        margin-bottom: 6rem;
    }
}


/* リバ邸の文字
------------------------------------------*/
#ri_left,
#ri_right,
#ba_left,
#ba_right,
#tei_left,
#tei_right {
    position: absolute;
    z-index: 20;
}

#ri_left {
    width: 320px;
    top: -400px;
    left: -240px;
    z-index: 1;
}

#ri_right {
    width: 640px;
    bottom: 0;
    right: -640px
}

#ba_left {
    width: 320px;
    top: 30px;
    left: -360px
}

#ba_right {
    width: 320px;
    top: 400px;
    right: -360px
}

#tei_left {
    width: 1300px;
    top: -300px;
    left: -1360px;
}

#tei_right {
    width: 1400px;
    top: 100px;
    right: -1460px;
}

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

    #ri_left,
    #ri_right,
    #ba_left,
    #ba_right,
    #tei_left,
    #tei_right {
        display: none;
    }
}