@charset "utf-8";
@import url(./style.css);

#schedule {
    width:70%;
    margin:10px auto;
}
#schedule td,#schedule th {
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    border-right: 1px solid #999;
    padding: 10px;
    width: 20%;
}

#schedule td:last-child {
    border-right: none;
    width: 50%;
}
#schedule .mhead ,#schedule tr:first-child {
    border-top:3px solid #cc9900;
}
#schedule tr:last-child {
    border-bottom:3px solid #cc9900;
}
#schedule .mend {
    padding-bottom: 30px;
}
main {
    width: 80%;
    margin:0 auto;
    font-size: 24px;
}
h2 {
    margin: 10 auto;
    margin-bottom: 10px;
    font-family: "基本フォント";
    writing-mode: vertical-rl;
    padding: 20px 10px;
    width: 100%;
    height: 400px;
    text-align: center;
    font-weight:bold;
    font-size:40px;
    display: flex;
    flex-direction: row;
    color: #fff;
    background-image: url("../images/ritual.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.7;
}
h2 span{
    display: block;
    width: fit-content;
    margin: 5px auto;
    text-shadow: 2px 2px #000;
    opacity: 1;
}
h2::before {
    content:"";
    display: block;
    background-image: url("../images/mark_white.png");
    padding: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
#month_jump {
    margin: 20px auto 40px;
    width: 100%;
    display: flex;
    justify-content:space-around;
    border-top: 1px solid #cc9900;
    border-bottom: 1px solid #cc9900;
    padding-top: 10px;
    padding-bottom: 10px;
}
#month_jump li {
    border-right:1px solid #999;
    text-align: center;
    width: calc( 100% / 12 );
}
#month_jump li a {
    display: block;
    width: 100%;
    text-align: right;
}
#month_jump li:last-child {
    border-right:none;
}

.mhead h3{
    margin-top:-170px;
    padding-top:170px;
    font-weight: bold;
    font-size:24px;
    font-family: "基本フォント";
}
h2 {
    margin-bottom: 10px;
    font-family: "基本フォント";
}

@media screen and (max-width: 767px) {
    main {
        width: 100%;
    }
    #schedule{
        width: 99%;
    }
    #schedule tr {
        display: flex;
        flex-wrap: wrap;
    }
    #schedule tr td:last-child{
        width: 65%;
        text-indent: 1em;
    }
    #schedule tr td:nth-child(2){
        width: 35%;
        text-align: right;
    }
    #schedule tr td:first-child{
        width: 100%;
        border-right: none;
        border-bottom: none;
    }
    #schedule tr:first-child td:first-child {
        border-bottom: 2px solid #cc9900;
    }
    #month_jump {
        flex-wrap: wrap;
        border: none;
    }
    #month_jump li {
        width: calc( 100% / 3 );
        padding: 10px 20px ;
        border: 1px solid #999;
        display: flex;
        justify-content: space-between;
    }
    #month_jump li:nth-child(3n) {
        border-left: none;
    }
    #month_jump li:nth-child(3n - 2) {
        border-right: none;
    }
    #month_jump li:nth-child(n + 4) {
        border-top: none;
    }
    #month_jump li:last-child {
        border-right: 1px solid #999;
    }
    #month_jump li::before {
        content: ">";
        font-weight: bold;
        font-size: 30px;
        color: #cc9900;
    }
    .blank {
        display: none;
    }
}