body{
    color: #000;
    background-color: #f2f2f2;
    font-size: 15px;
    font-family: "BIZ UDPShinGothic", "BIZ UDP新ゴ", sans-serif;
}

.ttl{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    gap: 20px;
}

.contents{
    display: grid;
    justify-content: center; 
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 50px auto;
    width: 800px;
    margin: 10px auto 30px;
    margin-top: 10px; 
    
}
input[type="radio"]{
    display: none;
}
input[type="radio"]:checked + label {
    background-color: #fc9325;
    color: #fff;
}
label:hover {
    background-color: #fffaf5;
}
label{
    grid-row: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fc9325;
    border-radius: 4px;
    width: 250px;
    height: 60px;
    margin: 0 auto 30px;
    margin-top: 90px;
    font-size: 18px;
    font-weight: bold;
    color: #fc9325;
    background-color: #fff;
    cursor: pointer;
}

.contents1, .contents2 {
    display: none;
}
#contents1:checked ~ .text .contents1,
#contents2:checked ~ .text .contents2 {
    display: grid;
}

.contents1 a, .contents2 a{
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 20px;
    margin-left: 60px;
    margin-right: 60px;
    border-bottom: 3px solid #fc9325;
    gap: 20px;
    color: #000;
}
a:hover{
    background-color: #fffaf5;
}
.contents1 img, .contents2 img{
    width: 90px;
    height: 90px;
}
.contents1 p, .contents2 p{
    align-items: center;
    margin: 0;
    font-size: 30px;
}

.text{
    grid-column: 1 / 6;
    grid-row: 2;
    width: 100%;
    margin-top: 70px;
    text-align: left;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #fc9325;   
    border-radius: 8px;
}

/* 画面幅が768px以下の時の設定（スマホ・タブレット用） */
@media screen and (max-width: 768px) {
    
    .contents {
        width: 95%;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 20px 10px;
    }

    /*.ttl {
        font-size: 24px;
        flex-direction: column; 
        gap: 10px;
    }*/

    label {
        width: 140px;
        height: 50px;
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 10px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .text {
        grid-column: 1/3;
        margin-top: 20px;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    .contents1 a, .contents2 a {
        display: flex;
        margin-left: 10px;
        margin-right: 10px;
        font-size: 18px;
    }

    .contents1 img, .contents2 img {
        width: 60px;
        height: 60px;
    }

    .contents1 p, .contents2 p {
        font-size: 13px;
    }
}