@charset "utf-8";

/*フェードイン基礎
-------------------------------------*/
.inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
.fadeInBlock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.block {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    width:95%;
    padding: 50px 20px;
    color: #333;
    font-size: 1.1em;
}
.block img{
    width:90%;
}
.block1 {
    width:95%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.block1 img{
    width:90%;
}
.block2 {
    width:95%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}
.block2 img{
    width:50%;
}

/*フェードアニメ
--------------------------------------*/

/* その場でフェードイン */
.fadeIn {
    opacity: 0; /* 最初は非表示にしておく */
    transition: all 1s; /* 動きを滑らかに */
}

/* 下から上に */
.fadeInTop {
    opacity: 0; /* 最初は非表示にしておく */
    transform: translateY(100px);/* 予め要素を下に配置 */
    transition: all 1s; /* 動きを滑らかに */
}

/* 上から下に */
.fadeInBottom {
    opacity: 0; /* 最初は非表示にしておく */
    transform: translateY(-100px);/* 予め要素を上に配置 */
    transition: all 1s; /* 動きを滑らかに */
}

/* 右から左 */
.fadeInLeft {
    opacity: 0; /* 最初は非表示にしておく */
    transform: translateX(100px);/* 予め要素を右に配置 */
    transition: all 1s; /* 動きを滑らかに */
}

/* 左から右 */
.fadeInRight {
    opacity: 0; /* 最初は非表示にしておく */
    transform: translateX(-100px);/* 予め要素を左に配置 */
    transition: all 1s; /* 動きを滑らかに */
}

/* フェードイン用のクラス */
.fadeInAnime {
    opacity: 1;
    transform: translate(0);
}



/* SP用設定
================================================== */
   
@media only screen and (max-width: 768px) {
.inner {
    width: 90%;
    margin: 0 auto;
}
.fadeInBlock {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.block {
    display: contents;
    font-size: 0.9em;
}
.block p{
    width:100%;
    order: 2;
    margin-top: 50px;
}
.block img{
    width:90%;
    order: 1;
    margin: 0 auto;
}
.block1 {
    width:100%;
}
.block1 img{
    width:90%;
}
.block2 {
    width:90%;
}
.block2 img{
    width:70%;
    margin: 20px auto 0;
}
}