/* 1日の活動の流れ */
.schedule {
    text-align: center;
    border-collapse: separate;
    border-spacing: 0px 16px;
    border-radius: 4vw;
}
.schedule table{
    margin: auto;
    width: 100%;
}
.schedule tr:nth-child(even){
    background-color: rgba(255,242,203,0.4);
}
.schedule table{
    padding: 5% 0;
}
.schedule table tr{
}
.schedule table tr th{
    padding: 10px;
    font-size: 1.2em;
    border-radius: 1rem;
}
.schedule table tr th:nth-child(1){
    width: 30%;
    background-color: #aaccff;
}
.schedule table tr th:nth-child(2){
    width: 15%;
}
.schedule table tr th:nth-child(3){
    width: 30%;
    background-color: #ffccaa;
}
.schedule table tr td{
    padding: 10px;
    vertical-align: baseline;
}
.schedule table tr td:nth-child(2){
    color: #ff6666;
    font-weight: bold;
}
.timage{
    position: relative;
}
.timage img {
    position: absolute;
    width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.timage img#timage_1{
    top: 0;
}
.timage img#timage_2{
}

/* 季節行事 */
.annual{
    width: 100%;
}
.annual img{
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* 施設紹介 */
div.facility{
    width: 100%;
    margin: auto;
}

div.img{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    position: absolute;
    z-index: 0;
}

/* 施設紹介 */
/* box1 */
div#box1{
    width: 100%;
    height: 60vw;
    margin: 4% auto;
}
div#box1contents{
    height: 100%;
    width: 100%;
    position: relative;
}
div#box1contents p{
    padding: 0 2%;
    position: absolute;
    z-index: 10;
    white-space: nowrap;
}
div#box1contents p:nth-of-type(1){
    top: 10%;
    left: 45%;
}
div#box1contents p:nth-of-type(1) span:nth-of-type(1){
    color: red;
}
div#box1contents p:nth-of-type(1) span:nth-of-type(2){
    background-color: #ddd;
    -webkit-text-decoration:underline wavy red;
    text-decoration: underline wavy red;
}
div#box1contents p:nth-of-type(2){
    bottom: 3%;
    right: 40%;
    background-color: #faa;
    border-radius: 4vw;
}
div#box1contents div.img{
    background-image: url("../images/afterschool/image2.png"), url("../images/afterschool/image4.png"), url("../images/afterschool/image5.png"), url("../images/afterschool/image6.png"), url("../images/afterschool/image1.png"), url("../images/afterschool/image3.png");
    background-position:
        top right 10%,
        bottom 20% left,
        bottom 40% left 20%,
        bottom right 30%,
        top 20% left 10%,
        bottom right 10%
    ;
    background-size:
        16% auto,
        16% auto,
        16% auto,
        16% auto,
        50% auto,
        30% auto
    ; 
}

/* box2 */
div#box2{
    width: 100%;
    height: 45vw;
    margin: 4% auto;
}

div#box2contents{
    width: 100%;
    height: 100%;
    position: relative;
}
div#box2contents div.img{
    background-image: url("../images/afterschool/image10.png"), url("../images/afterschool/image8.png"), url("../images/afterschool/image9.png");
    background-position:
        bottom left 10%,
        top left 15%,
        bottom right 15%
    ;
    background-size:
        20% auto,
        45% auto,
        50% auto
    ;
}
div#box2contents p{
    padding: 0 2%;
    background-color: #afa;
    border-radius: 4vw;
    position: absolute;
    z-index: 10;
    right: 20%;
    bottom: 3%;
    white-space: nowrap;
}

/* box3 */
div#box3{
    width: 100%;
    height: 80vw;
    margin: 4% auto;
}

div#box3contents{
    width: 100%;
    height: 100%;
    position: relative;
}
div#box3contents div.img{
    background-image: url("../images/afterschool/image15.png"), url("../images/afterschool/image19.png"), url("../images/afterschool/image12.png"), url("../images/afterschool/image13.png"), url("../images/afterschool/image14.png"), url("../images/afterschool/image17.png");
    background-position:
        top 52% right 35%,
        bottom 10% left 50%,
        top left 10%,
        top 5% right 30%,
        top 40% left 20%,
        bottom right 10%
    ;
    background-size:
        20% auto,
        20% auto,
        40% auto,
        28% auto,
        40% auto,
        35% auto
    ;
}
div#box3contents p{
    padding: 0 2%;
    position: absolute;
    z-index: 10;
    white-space: nowrap;
}
div#box3contents p:nth-of-type(1){
    top: 60%;
    left: 60%;
    transform: translate(-50%, -50%);
    background-color: #acf;
    border-radius: 4vw;
}
div#box3contents p:nth-of-type(2){
    top: 70%;
    right: 50%;
    background-color: #afa;
    border-radius: 4vw;
}

@media screen and (max-width: 950px) {
    .timage img {
        width: 70%;
    }
    div#box1{
        height: 82vw;
    }
    div#box1contents p:nth-of-type(1){
        top: 10%;
        left: 45%;
        font-size: 0.95rem;
    }
    div#box3{
        height: 90vw;
    }
}
