@charset "utf-8";

.head {
    text-align: center;
    font-size: 30px;
    margin-top: 80px;
    margin-bottom: 20px;
}

.banner {
    display: block;
    margin: 0 auto;
}

.ad {
    margin-top: 80px;
    width: 400px;
    height: 350px;
}

table {

    border: 1px solid;
    width: 750px;
    font-size: 18px;
}

/* th, td に border */
table th,
table td {
    border: 1px solid;

}

td {
    padding-left: 10px;
}


table,
table th,
table td {
    border: 1px solid;
    border-collapse: collapse;
}

.flex {

    display: flex;
    justify-content: space-around;
    margin-bottom: 100px;
}

.itembox:nth-of-type(odd) {
    background-color: #ebffd6d0;
}

.itembox:nth-of-type(even) {
    background-color: #c4fdfa;
}

.itembox {
    padding: 30px 0 5px 0;
    margin-bottom: 50px;
}

.last {
    text-align: center;
    background-color: #ebffd6d0;
    padding-top: 10px;
    text-align: center;
    font-size: 30px;
    height: 70px;
    margin-top: 100px;
    margin-bottom: 20px;
}

.flex2 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-left: 90px;
    margin-bottom: 50px;
}

.flex2 img {
    width: 400px;
    height: 300px;
}

.text1 {
    margin-left: 40px;

    font-size: 24px;
    line-height: 2;
}

.lastme {
    padding-top: 10px;
    text-align: center;
    font-size: 30px;
    background-color: #ebffd6d0;
    height: 70px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.text2 {
    display: none;
}

.td1 {
    border: none;
}

.td2 {
    display: none
}

table{
    margin-top: 80px;
}

@media (max-width:500px) {


    body {
        line-height: 2;
    }

    .itembox img {
        width: 100%;
    }

    table {
        width: 100%;
    }

    .flex {
        display: block;
        margin-bottom: 30px;
    }

    .text {
        margin: 0;
    }

    td,
    th {
        font-size: 16px;
    }

    .ad {
        margin-top: 30px;
    }

    .itembox {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .lastme {
        font-size: 20px;
        height: 50px;
    }

    .last {
        font-size: 20px;
        height: 50px;
    }

    .page {
        font-size: 20px;
        height: 50px;
    }

    .flex2 {
        display: block;
        margin: 0;
    }

    .flex2 img {
        width: 100%;
        height: 300px;
        margin: 0;
        padding: 0;
    }

    .text2 {
        display: block;
    }

    .text1 {
        display: none;
    }

    .text table th {
        width: 100px;
    }

    .ad2 {
        width: 100%;
        margin-bottom: 0;
    }

    .ad {
        width: 100%;
        margin-bottom: 0;
    }

    .td1 {
        display: none;
    }

    .td2 {
        display: block;
        border: none;
    }
    .last{
        margin-top: 40px;
        margin-bottom: 40px;
        font-size: 20px;
        height: 50px;
    }

    .topclass{
        display: none;
    }
}