.main {
    margin: 54px auto 50px auto !important;
    padding: 40px 0;
    padding-top: unset !important;
    padding-bottom: unset !important;
}

.main * {
    background-color: #FFFFFF;
}

.content {
    padding: 50px 95px 70px;
}

@media screen and (max-width: 1100px) {
    .main {
        margin: 45px auto 50px auto !important;
    }

    .content {
        padding: 20px 40px 10px;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 550px) {
    .content {
        padding: 20px 20px 10px;
    }
}

.category_name {
    display: inline-block;
    background-color: #89C750 !important;
    color: #FFFFFF;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-size: 15px;
    letter-spacing: 0.8;
    padding: 1px 20px;
    margin-top: 5px;
}

.name {
    font-weight: bold;
    margin-top: 16px;
    overflow-wrap: break-word;
    font-size: 21px;
    letter-spacing: 1.4;
}

@media screen and (max-width: 550px) {
    .name {
        font-weight: bold;
        margin-top: 5px;
        overflow-wrap: break-word;
        font-size: 20px;
    }
}

.tags {
    padding-right: 10px;
    margin-bottom: 10px;
}

.tags a {
    color: #89C750;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.8;
}

.tags a:hover {
    text-decoration: underline;
}

.tags a:active {
    color: red;
}

@media screen and (max-width: 550px) {
    .tags a {
        letter-spacing: 0.7;
    }
}

/* 画像 */
.event_img {
    cursor: pointer;
    height: auto;
    display: block;
    max-height: 320px;
    max-width: calc(100% - 190px);
    margin: 0px auto;
    margin-top: 10px;
}

@media screen and (max-width: 1100px) {
    .event_img {
        max-width: 470px;
    }
}

@media screen and (max-width: 550px) {
    .event_img {
        max-height: 292px;
        max-width: 335px;
    }
}

.infomation {
    margin-top: 30px;
}

@media screen and (max-width: 550px) {
    .infomation {
        margin-top: 30px;
        width: 140px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    word-break: break-all;
    margin-top: 2%;
}

table tr {
    border-top: solid 1px rgb(233, 233, 233);
    border-bottom: solid 1px rgb(233, 233, 233);
}

table th {
    position: relative;
    width: 80px;
    height: 52px;
    text-align: left;
    padding: 10px 10px;
    color: #A6A6A6;
    font-family: 'Roboto';
    font-size: 13px;
    letter-spacing: 0.8;
}

table td {
    width: 90%;
    text-align: left;
    padding: 20px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: 0.8;

}

@media screen and (max-width: 550px) {

    table tr {
        display: block;
    }

    table th {
        height: unset;
        max-width: none;
        display: block;
        width: 100%;
        padding: 10px 0 0 0;
        font-size: 13px;
        letter-spacing: 0.7;
    }

    table td {
        display: block;
        width: 100%;
        padding: 5px 0 12px 0;
        font-size: 13px;
        letter-spacing: 0.7;
    }

}

table a {
    width: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    color: #1a0dab !important;
}

table a:hover {
    text-decoration: underline;
}

/* 説明欄　*/
.heading {
    padding: 20px 12px;
}

.heading p {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.8;
}

.detail {
    padding: 10px 12px;
}

.detail p {
    font-size: 13px;
    letter-spacing: 0.8;
}

@media screen and (max-width: 550px) {
    .heading {
        padding: 10px 0 10px;
    }

    .heading p {
        font-size: 16px;
        letter-spacing: 0.75;
    }

    .detail {
        padding: 10px 0 10px;
    }

    .detail p {
        font-size: 13px;
        letter-spacing: 0.8;
    }
}

/* モーダルウインドウ */
.modal {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    display: none;
    width: fit-content;
    border: 1px solid #000;
}

.modal-close__wrap {
    position: absolute;
    right: -30px;
    top: 0px;
}

.modal-close {
    background: transparent;
    border-color: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 28px;
    display: block;
    height: 28px;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-block {
    max-height: 100%;
    overflow: auto;
}

.modal-img {
    width: 800px;
}

@media screen and (max-width: 900px) {
    .modal-img {
        width: 700px
    }
}

@media screen and (max-width: 750px) {
    .modal-img {
        width: 550px
    }
}

@media screen and (max-width: 600px) {
    .modal-img {
        width: 500px;
    }
}

@media screen and (max-width: 550px) {
    .modal-img {
        width: calc(100vw - 50px);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(110, 110, 110, 0.5) !important;
    padding: 40px 4%;
    padding-right: calc(4% + 28px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
    z-index: 100;
}

.overlay.open {
    visibility: visible;
    opacity: 1;
}

.modal.open {
    display: block;
}

.search {
    color: #1a0dab !important;
}

.search a:hover {
    text-decoration: underline;
}

.is-end {
    font-size: 1.6rem;
    color: red;
    font-weight: 500;
}

.favorite-count {
    padding: 0.2em 0.2em;
    color: #6091d3;
    background: #FFF;
    position: absolute;
    font-size: 1rem;
    display: inline-flex;
    right: 100px;
}