@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

main p, main li {
    color: #485c64;
    font-family: 'Noto Sans JP', sans-serif;
}

.bold {
    font-weight: bold;
    margin-right: 10px;
    margin-left: 10px;
    background-color: #94ccc4;
    border-radius: 8px;
    color: white;
    padding: 3px 10px 5px 10px;
}

#main_visual {
    text-align: center;
    padding: 100px 0;  
}

.contents {
    width: 67%;
    margin: 20px auto 0 auto;
    text-align: center; 
}

.contents li {
    font-size: 20px;
    margin: 20px 0;
}

.section {
    position: relative;
    display: inline-block;
    padding: 20px 55px;
    width: 150px;
}
  
.section:before, .section:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 70px;
    height: 1px;
    background-color: black;
}
  
.section:before {
    left:0;
}

.section:after {
    right: 0;
}

#date_contents {
    width: fit-content;
    text-align: left;
    margin: 0 auto;
}

#message_contents {
    display: flex;
}

.text_container {
    width: 100%;
    height: fit-content;
    margin: 20px 20px 20px 30px;
    text-align: left;
}

#image {
    width: 500px;
    /* margin: 0 30px; */
}

#date_contents li{
    list-style: none;
}

.qa_container {
    width: 60%;
    margin: 20px auto;
    padding: 20px 45px;
    border-radius: 12px;
    box-shadow: 3px rgba(0, 0, 0, 0.238);
    background-color: rgb(242, 240, 240);
}

.question {
    display: flex;
    padding-bottom: 20px;
    border-bottom: solid 1px gray;
}

.question h1 {
    margin-right: 10px;
    color: #87cefa;
}

.answer {
    display: flex;
    padding-top: 20px;
}

.answer h1 {
    margin-right: 10px;
    color: #fa8787;
}

/* タブレットよりも大きい画面 */
@media screen and (max-width: 760px) {
    #image {
        width: 70%;
        background: pink;
    }
}

/* スマホよりも大きい画面 */
@media screen and (max-width: 960px) {
    .qa_container {
        width: 80%;
        padding: 20px 20px;
    }

    #message_contents {
        display: block;
    }

    .text_container {
        width: 80%;
        height: fit-content;
        margin: 0 auto 20px auto;
    }
    
    #image {
        width: 100%;
        margin: 0;
    }
}