* {
    margin: 0;
    padding: 0;
}
header {
    text-align: center;
}
.hidari {
    display: flex;
    display: block;
    text-align: center;
}

.main {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    
}
.ttl {
    display: flex;
    justify-content: space-between;
    list-style: none;
    font-size: 32px;
}
.ttl a {
    color: black;
}
.ttl a:hover {
    color: red;
    cursor: pointer;
}
.panel {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
footer {
    background-color: black;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: 70px;
}
@media screen and (max-width: 600px) {
    .main {
        width: 100%;
        display: block;
        text-align: center;
        display:flex;
        flex-direction: column;
    }
    .hidari {
        display: flex;
        flex-direction: column;
    }
    .ttl {
        display: flex;
        flex-direction: column;
    }
    .panel {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}