@charset "utf-8";

.top-img {
    width: 100%;
}

/* ここからメイン */

.main-box {
    width: 100%;
    background-color: #CD8858;
    color: #fff;
    height: 800px;
    display: flex;
    /* Flexbox有効化 */
    justify-content: center;
    /* 横方向の中央寄せ */
    align-items: center;
    text-align: center;
}

h1 {
    color: #fff;
    font-weight: bold;
}

.h1-span {
    font-weight: bold;
    display: block;
    /* インラインからブロック要素に変更 */
}



.section-title {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* 線と文字の間隔 */
    font-size: 18px;
    color: #CD8858;
    position: relative;
    overflow: hidden;
}

.section-title .line {
    display: block;
    height: 2px;
    background-color: #CD8858;
    width: 0;
    animation: line-grow 1s forwards;
}

h1 {
    font-size: 18px;
}

/* アニメーション */
@keyframes line-grow {
    from {
        width: 0;
    }

    to {
        width: 50px;
        /* お好みで調整 */
    }
}

/* ここからリスト */
.list .list-img {
    padding: 60px 24px 20px 24px;
    width: 100%;
}

.list-box {
    /* max-width: 375px; */
    padding: 0 24px;
}

/* 詳しくについてのボタン */

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #CD8858;
    /* ホバー時の文字色 */
    border-color: #CD8858;
    /* ホバー時の枠線色 */
    transform: scale(1.05);
    /* 少し拡大 */
}

/*　詳しくについてのボタンここまで */

.arrow-img {
    width: 3em;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    height: auto;
    /* 高さは自動で幅に合わせる */
}

.arrow-link {
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}


.arrow-link:hover {
    color: #CD8858;
    transform: scale(1.1);
}

.box {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* ここから私について */
.my-img {
    width: 100%;
    padding: 40px;
}

.about-box {
    padding: 0 24px;
}

.about-box-br {
    padding-top: 40px;
}



/* ここからpcサイズ */
@media (min-width: 960px) {
    .list {
        max-width: 800px;
        margin: 0 auto;
    }

    .flex-box {
        margin-top: 120px;
        display: flex;
        gap: 80px;
        align-items: center;
    }

    .list .list-img {
        width: 50%;
        padding: 0;
    }

    .reversible-box {
        display: flex;
        flex-direction: row-reverse;
        margin-top: 120px;
        gap: 80px;
        align-items: center;
    }

    .box {
        margin: 80px 0;
    }

    /* ここから私について */
    .about {
        max-width: 800px;
        margin: 0 auto;
    }

    .Reversible-box {
        display: flex;
        flex-direction: row-reverse;
        gap: 80px;
        align-items: center;
        margin-top: 80px;
    }

    .my-img {
        padding: 0;
        height: 400px;
    }

    .box {
        margin: 0;
        padding-top: 60px;
    }

    .about-box h3 {
        padding-bottom: 30px;
    }
}

/* ここから1200px */
@media (min-width: 1200px) {
    .list {
        max-width: 1000px;
        margin: 0 auto;
    }

    .about {
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* jsアニメーション */
.scroll {
    transform: translateY(30px);
    opacity: 0;
    transition: all 2s;
}

.scroll.on {
    transform: translateY(0px);
    opacity: 1;
}

/* 横からアニメーション */
.scrolle {
    opacity: 0;
    transform: translateX(-50px);
    /* 横ずれ */
    transition: all 1s ease-out;
}

.scrolle.on {
    opacity: 1;
    transform: translateX(0);
}