@charset "utf-8";
*,
::before,
::after {
    box-sizing: border-box;
}
main {
    padding: 20px;
    justify-self: center;
    font-family: 'Shippori Mincho', serif;
    display: flex;
}
.detail{
    padding: 30px;
}
input {
    display: none;
}
table{
    width: 100%;
    margin-top: 10px;
    background-color: rgb(248, 252, 255);
}
.table th,td{
    border-bottom: 1.5px solid rgba(194, 191, 191,.7);
    padding: 5px;
}
tr:last-child th,tr:last-child td{
    border-bottom: none;
}
.table th,
.table a{
    overflow-wrap: break-word;
	word-break: keep-all;
}
td .here{
    color: #004b88;
    text-decoration: underline solid #004b88 1.2px;
}
.contents{
    display: grid;
    width: 100%;
}
.main_btn {
    background-color: #004b88;
    width: 90%;
    height: 100px;
    text-align: center;
    line-height: 100px;
    font-size: 18px;
    position: relative;
    margin: 8vw 0;
    justify-self: center;
}
.main_btn a {
    font-size: 1.2rem;
    color: white;
    display: block;
    margin-left: 30px;
}
.main_btn::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 1px solid;
    border-color: white white transparent transparent;
    right: 10%;
    top: 42px;
    transform: rotate(45deg);
    position: absolute;
}
.form_btn {
    background-color: #4E4E4E;
}
.main_btn span {
    margin-left: 10px;
}
.first,.second,.third{
    display: grid;
    grid-template-columns: 30px repeat(5, 1fr) 30px;
    grid-template-rows: 30px repeat(5, 60px) 30px;
    margin-bottom: 20px;
}
.first img,.third img{
	width: 150%;
	height:300px;
    object-fit: cover;
    grid-column: 2/4;
    grid-row: 2/5;
    z-index: 1;
}
.second img{
	width: 150%;
	height:300px;
    object-fit: cover;
    grid-column: 4/6;
    grid-row: 2/4;
    z-index: 1;
}
.p1{
	width: 100%;
	height: 100%;
    padding: 0 5px;
    background-color: #a7baca;
    grid-column: 3/7;
    grid-row: 3/-1;
    z-index: 0;
    padding: 20px;
    display: grid;
}
.p2{
	width: 100%;
	height: 100%;
    padding: 0 5px;
    background-color: rgb(212, 200, 200);
    grid-column: 2/6;
    grid-row: 3/-1;
    z-index: 0;
    padding: 20px;
}
.contents h2{
    grid-row: 1;
    grid-column: 1/-1;
    justify-self: end;
    text-decoration-line: underline;
    font-size: 2vw;
}
.contents p{
    justify-self: end;
    width: 45%;
    font-size: 1rem;
}
.second h2{
    justify-self: start;
}
.second p{
    margin-top: 50px;
    width: 45%;
    font-size: 1rem;
}
.fa-plus,.fa-minus {
    display: none;
    margin-left: 5px;
    margin-bottom: 5px;
    font-size: 0.7rem;
    line-height: 1rem;
}
@media(max-width:767px){
    main{
        --fontsizeA: 16px;
        font-size: calc(var(--fontsizeA) - 5 * (767px - 100vw) / 767);
    }
    main {
        padding: 0;
    }
    .detail h2 .fa-plus {
        display: inline;
    }
    .detail{
        margin-top: 20px;
        padding: 2vw;
    }
    .deteal h2 {
        margin-bottom: 30px;
    }
    .detail .table{
        height: 0;
        overflow: hidden;
        transition: 1s;
        font-size: calc(var(--fontsizeA) - 7 * (767px - 100vw) / 767);
    }
    input:checked+.detail .table{
        height: 500px;
    }
    input:checked+.detail h2 .fa-minus{
        display: inline;
    }
    input:checked+.detail h2 .fa-plus{
        display: none;
    }
    .contents{
        display: grid;
        width: 100%;
        justify-content: center;
    }
    .contents h2{
        font-size: 1.2rem;
    }
    .first,.second,.third{
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: 10px auto repeat(3, 20px) auto 10px;
        grid-template-rows: auto 30px repeat(5, auto);
        justify-content: center;
    }
    .contents p{
        width: auto;
        font-size: calc(var(--fontsizeA) - 5 * (767px - 100vw) / 767);
        padding: 0 5px;
        margin-top: 20px;
        background-color: #a7baca;
        justify-self: center;
    }
    .p2 p{
        background-color: rgb(212, 200, 200);
    }
    .contents img{
        width: 100%;
        height:250px;
        object-fit: cover;
        grid-column: 2/5;
        grid-row: 3/5;
        z-index: 0;
        justify-self: center;
    }
   .p1,.p2{
        width: 100%;
        height: auto;
        padding: 0 5px;
        grid-column: 2/5;
        grid-row: 5/-1;
        z-index: 1;
        justify-self: center;
    }
    .contents > div > div{
        padding: 5px 5px 10vw;
    } 
    .main_btn a{
        font-size: calc(var(--fontsizeA) - 4 * (767px - 100vw) / 767);
        margin-right: 50px;
    }
}