.calendar-inner001 {
    max-width: 1080px;
    width: 90%;
    height: auto;
    margin: 0 auto;
}

.calendar-inner002 {
    max-width: 960px;
    width: 90%;
    height: auto;
    margin: 0 auto;
}

.calendar-inner003 {
    max-width: 840px;
    width: 90%;
    height: auto;
    margin: 0 auto;
}

main {
    background-color: #fbf6e1;
    padding-bottom: 100px;
}
.calendar-title-container {
    width: 1300px;
    margin: 0 auto;
}

.calendar-title-container img {
    width: 100%;
    height: auto;
}

#calendar-main-banner {
    padding-top: 53px;
    width: 90%;
    height: auto;
    margin: 0 auto 27px;
}

.calendar-main-text {
    max-width: 840px;
    width: 90%;
    height: auto;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.05em;
    line-height: 28px;
    text-align: center;
    color: #000;
    margin: 0 auto 80px;
}

.archive-list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.calendar-card-container {
    /* max-width: 255px; */
    width: 23%;
    height: auto;
    padding: 40px 25px;
    box-sizing: border-box;
    margin-right: 20px;
    background-color: #fff;
    border: #000 2px solid;
    border-radius: 43px;
    position: relative;
    margin-bottom: 53px;
}

.calendar-card-container a {
    text-decoration: none;
    transition: 0.3s all ease-in-out;
}

.calendar-card-container a:hover {
    opacity: 0.8;
}

.calendar-date {
    background: url("../img/calendar/number-bubble.png") no-repeat;
    background-position: center 2px;
    background-size: contain;
    width: 52px;
    height: 59px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 30px;
    text-align: center;
    color: #fff;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.calendar-image img {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.calendar-image {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.calendar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 205px;
    height: 73px;
    max-width: 55ch;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 26px;
    text-align: left;
    color: #000;
}
#calendar-page .calendar-title br {
    display: none;
}

#calendar-page .calendar-archive-banner-card {
    max-width: 680px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    background-color: #fff;
    /* padding: 0 15px 15px 7px; */
    box-sizing: border-box;
    position: relative;
}

#calendar-page .calendar-archive-banner-card .calendar-banner-img {
    width: 100%;
    height: auto;
}

#banner-text .calendar-archive-blue-btn-banner,
#calendar-page .calendar-archive-blue-btn {
    width: 220px;
    height: 51px;
    background-color: #004c9d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s all ease-in-out;
}

#banner-text .calendar-archive-blue-btn-banner {
    margin: 0 auto 50px;
    display: none;
}

#calendar-page .calendar-archive-blue-btn {
    display: flex;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    margin: 0 auto;
}

#banner-text .calendar-archive-blue-btn-banner:hover,
#calendar-page .calendar-archive-blue-btn:hover {
    opacity: 0.75;
}

#calendar-page .calendar-archive-blue-btn img {
    margin-left: 6px;
}

#banner-text .calendar-archive-blue-btn-banner img {
    margin-left: 10px;
    transform: rotate(90deg);
}

#calendar-page {
    margin-top: -150px;
    padding-top: 150px;
}

@media screen and (max-width: 1200px) {
    .calendar-card-container {
        /* max-width: 255px; */
        width: 30%;
        height: auto;
        padding: 40px 25px;
        box-sizing: border-box;
        margin-right: 20px;
        background-color: #fff;
        border: #000 2px solid;
        border-radius: 43px;
        position: relative;
        margin-bottom: 53px;
    }
}

@media screen and (max-width: 900px) {
    .calendar-card-container {
        /* max-width: 255px; */
        width: 46%;
        height: auto;
        padding: 40px 25px;
        box-sizing: border-box;
        margin-right: 20px;
        background-color: #fff;
        border: #000 2px solid;
        border-radius: 43px;
        position: relative;
        margin-bottom: 53px;
    }
}

@media screen and (max-width: 767px) {
    #calendar-page {
        margin-top: -100px;
        padding-top: 100px;
    }
    main {
        padding-bottom: 100px;
    }

    .calendar-title-container {
        width: 100%;
    }
    .calendar-main-text {
        margin: 0 auto 40px;
        font-size: 16px;
        text-align: left;
    }
    #calendar-page .calendar-archive-blue-btn {
        bottom: 15px;
    }
    #calendar-page .calendar-archive-banner-card {
        /* padding: 0 15px 40px 7px; */
        box-sizing: border-box;
        position: relative;
    }
    #banner-text .calendar-archive-blue-btn-banner {
        margin: 0 auto 60px;
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .calendar-card-container {
        /* max-width: 255px; */
        width: 100%;
        height: auto;
        padding: 30px 20px;
        box-sizing: border-box;
        margin-right: 20px;
        background-color: #fff;
        border: #000 2px solid;
        border-radius: 43px;
        position: relative;
        margin-bottom: 53px;
        border-radius: 16px;
    }
    .calendar-title {
        overflow: visible;
        width: 100%;
        height: auto;
        font-size: 14px;
    }
    .calendar-card-container {
        margin-right: 0;
    }
    .news-list-content {
        display: flex;
    }
    .news-list-content .calendar-image {
        width: 40%;
        margin-bottom: 0;
    }
    .news-list-content .calendar-title {
        margin-left: 20px;
        margin-bottom: 0;
        font-size: 16px;
    }
    .news-list-content .calendar-title br {
        display: none;
    }
    .calendar-date {
        left: 42px;
    }
}

/* ======================================================================= */
/*                               SINGLE PAGE                               */
/* ======================================================================= */

#single {
    padding-top: 40px;
}

li.calendar-card-single-container::marker {
    visibility: hidden;
}

.calendar-single-page-banner img {
    display: flex;
    justify-content: center;
    max-width: 425px;
    width: 100%;
    height: auto;
    margin: 0 auto 60px;
    padding-top: 100px;
}

.calendar-card-single-container {
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 16px;
    padding: 50px 78px;
    box-sizing: border-box;
}

.calendar-list-content {
    position: relative;
    width: 100%;
    height: auto;
}

.calendar-date-single {
    top: 0;
}

#single .calendar-title {
    width: 100%;
    height: auto;
    padding-top: 77px;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 26px;
    line-height: 42px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #000;
    margin: 0 auto;
}

#single .calendar-image {
    margin: 44px auto 60px;
    max-width: 323px;
}

#single .calendar-textarea {
    width: 100%;
    height: auto;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.05em;
    line-height: 28px;
    text-align: left;
    color: #000;
}

#single .calendar-single-blue-btn {
    margin: 60px auto 0;
    width: 220px;
    height: 51px;
    background-color: #004c9d;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s all ease-in-out;
}

#single .calendar-single-blue-btn:hover {
    opacity: 0.75;
}

#single .calendar-single-blue-btn img {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (max-width: 767px) {
    #single {
        padding-top: 30px;
    }
    .calendar-card-single-container {
        width: 100%;
        height: auto;
        border-radius: 26px;
        padding: 40px 20px;
        box-sizing: border-box;
    }
    .calendar-date-single {
        left: 50%;
    }
    #single .calendar-title {
        font-size: 20px;
        letter-spacing: 0.02em;
        line-height: 1.8;
        text-align: left;
    }
    #single .calendar-title br {
        display: none;
    }
    #single .calendar-image {
        margin: 20px auto 20px;
    }
    .calendar-single-page-banner img {
        display: flex;
        justify-content: center;
        max-width: 425px;
        width: 100%;
        height: auto;
        margin: 0 auto 40px;
        padding-top: 60px;
    }
    #single .calendar-textarea {
        /* background-color: #fff; */
        /* width: 100%; */
        /* height: auto; */
        /* padding: 70px; */
        /* box-sizing: border-box; */
    }
    #single .calendar-textarea p {
        font-size: 14px;
    }
}

/* Messages */

#messages {
    padding-top: 94px;
    padding-bottom: 54px;
    background-color: #fff;
}

#messages .centered-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#messages .messages-header {
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 34px;
    text-align: center;
    color: #000;
    position: relative;
    width: auto;
    display: inline-block;
    margin: 0 auto 50px;
    text-align: center;
}

#messages .messages-header::before {
    position: absolute;
    content: "";
    background: #000;
    width: 2px;
    height: 45px;
    left: -23px;
    top: -2px;
    transform: rotate(144deg);
}

#messages .messages-header::after {
    position: absolute;
    content: "";
    background: #000;
    width: 2px;
    height: 45px;
    right: -12px;
    top: -2px;
    transform: rotate(219deg);
}

#messages .messages-flex-container {
    display: flex;
    justify-content: center;
}

#messages .column {
    width: 100%;
    height: auto;
}

#messages .column:first-child {
    margin-right: 41px;
}

#messages .column:nth-child(2) {
    padding-top: 70px;
}

#messages .message-bubble {
    width: 100%;
    height: auto;
    padding: 35px 43px;
    box-sizing: border-box;
    border: #000 2px solid;
    border-radius: 16px;
    margin-bottom: 46px;
    line-height: 1.8;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 20px;
    text-align: left;
    color: #000;
    position: relative;
}

#messages .message-bubble img {
    position: absolute;
    bottom: -26px;
    left: 47px;
}

#messages .message-bubble span {
    display: inline;
    position: relative;
    background: linear-gradient(180deg, transparent 62%, #ffee78 62%, #ffee78 100%);
    padding-left: -10px;
}

.padding-top {
    padding-top: 53px;
}

.show_break {
    display: none;
}

@media screen and (max-width: 900px) {
    #messages {
        padding-top: 54px;
    }
    #messages .messages-header {
        font-size: 22px;
        text-align: center;
        color: #000;
        position: relative;
        width: auto;
        display: inline-block;
        margin: 0 auto 50px;
        text-align: center;
    }
    #messages .messages-header::before {
        height: 40px;
        left: -18px;
        top: -8px;
    }
    #messages .messages-header::after {
        height: 40px;
        right: -12px;
        top: -8px;
    }
    #messages .column:first-child {
        margin-right: 20px;
    }
    #messages .message-bubble {
        font-size: 16px;
        padding: 24px;
    }
}

@media screen and (max-width: 767px) {
    .show_break {
        display: block;
    }
    #messages .messages-header {
        line-height: 1.6;
    }
    #messages .messages-header::before {
        height: 45px;
        left: -28px;
        top: unset;
        bottom: 0;
    }
    #messages .messages-header::after {
        height: 45px;
        right: -23px;
        top: unset;
        bottom: 0;
    }
    #messages .message-bubble img {
        position: absolute;
        bottom: -20px;
        left: 47px;
        width: 28px;
        vertical-align: top;
    }
}

@media screen and (max-width: 600px) {
    #messages .messages-flex-container {
        flex-direction: column;
    }
    #messages .message-bubble {
        padding: 30px 20px;
    }
    #messages .column:nth-child(2) {
        padding-top: 0;
    }
}

@media screen and (max-width: 372px) {
    #messages .messages-header::before {
        display: none;
    }
    #messages .messages-header::after {
        display: none;
    }
}
