@charset "UTF-8";

main {
    padding-top: 100px;
    margin-bottom: 150px;
}

.main-visual {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

@font-face {
    font-family: "myfont";
    src: url("../top/tsunagi-gothic.ttf") format("truetype");
}

.main-title,
.sub-title {
    font-family: "myfont";
}

.main-title {
    margin-bottom: 20px;
    text-align: center;
}



.sub-title {
    text-align: center;
    margin-bottom: 15px;
}

@media screen and (min-width:767px) {

    .main-title {
        margin-bottom: 20px;
        text-align: center;
        font-size: 60px;
    }

    .sub-title {
        border-top: solid 1px #666;
        border-bottom: solid 1px #666;
        padding: 25px 0 20px 10px;
        font-size: 40px;
        max-width: 900px;
        margin: 40px auto;
    }
}

/*アコーディオン全体*/
.accordion-area {
    list-style: none;
    width: 96%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;

}

.accordion-area li {
    margin: 10px 0;
}

.accordion-area section {
    border: 1px solid #ccc;
    border-radius: 10px;
}

/*アコーディオンタイトル*/
.title {
    position: relative;
    /*+マークの位置基準とするためrelative指定*/
    cursor: pointer;
    font-size: 1rem;
    font-weight: normal;
    padding: 3% 3% 3% 50px;
    transition: all .5s ease;
    background: linear-gradient(0deg, rgba(236, 249, 253, 0) 0, #ecf9fd 100%);
    margin-top: 0;
}

/*アイコンの＋と×*/
.title::before,
.title::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 2px;
    background-color: #333;
}

.title::before {
    top: 48%;
    left: 15px;
    transform: rotate(0deg);
}

.title::after {
    top: 48%;
    left: 15px;
    transform: rotate(90deg);
}

/*　closeというクラスがついたら形状変化　*/

.title.close::before {
    transform: rotate(45deg);
}

.title.close::after {
    transform: rotate(-45deg);
}

/*アコーディオンで現れるエリア*/
.box {
    display: none;
    /*はじめは非表示*/
    background: #f3f3f3;
    margin: 0 3% 3% 3%;
    padding: 3%;
    border-radius: 10px;
}