body {
    color: var(--col-black);
    background-color: var(--col-bg);
    /* max-width: 1440px; */
    /* margin: 0 auto; */
    opacity: 0;
    animation: visible 1s forwards;
}

@keyframes visible {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 小見出し */
.index {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 20px;
    font-weight: 600;
    color: var(--col-white);
    background-color: var(--col-black);
    border-radius: 10px;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;

    & .header {
        padding-top: 10px;
        padding-left: 10px;
    }

    & img {
        width: 120px;
    }
}

/* トップ */
#TOP {
    width: 100%;
    margin-bottom: 50px;

    & .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background-color: var(--col-white);
    }

    & .image {
        position: relative;
        width: 100%;
        height: 600px;

        & img {
            position: absolute;
            top: 50%;
            right: 5%;
            transform: translate(0%, -50%);
            width: 70%;
            height: 400px;
            object-fit: cover;
            background-color: var(--col-white);
            border-radius: 10px;
        }
    }

    & .name {
        position: relative;
        width: 100%;
        height: 600px;

        & .box {
            position: absolute;
            top: 50%;
            left: 5%;
            transform: translate(0%, -50%);
            display: inline-block;
            width: 70%;
            border-bottom: solid 1px var(--col-black);

            & p:nth-child(1) {
                font-size: 20px;
                font-weight: 300;
            }

            & p:nth-child(2) {
                font-size: 52px;
                font-weight: 600;
            }

            p:nth-child(3) {
                font-size: 24px;
                font-weight: 300;
                font-family: "Montserrat";
                letter-spacing: 2px;
            }
        }
    }
}

/* プロフィール */
#PROFILE {
    max-width: 1440px;
    margin: 0 auto;
    margin-bottom: 50px;

    & .sns {
        display: flex;
        justify-content: center;
        gap: 50px;
        width: 80%;
        margin: 0 auto 50px;

        /* & div:nth-child(3) {
            grid-column: 1 / span 2;
        } */
    }

    & .prof {
        width: 80%;
        margin: 0 auto;
        /* padding: 0 0 50px; */
        border-radius: 10px;
        border: solid 1px var(--col-border);
        box-shadow: 0 0 3px 0px var(--col-border);
        background-color: var(--col-white);
    }

    & .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 50px 0;

        & .image {
            width: 100%;
            text-align: center;

            & img {
                width: 275px;
                border-radius: 10px;
            }
        }

        & .content {
            width: 80%;
            margin: 0 auto;

            & .name,
            .area,
            .career,
            .speciality,
            .message {
                margin-bottom: 30px;

                & p {
                    font-size: 18px;
                }
            }
        }
    }
}

/* 問い合わせ */
#CONTACT {
    width: 80%;
    margin: 0 auto 50px;

    .text {
        width: 50%;
        margin: 0 auto 50px;
    }

    & .links {
        display: flex;
        justify-content: center;
        gap: 50px;
    }
}

/* フッターはcommonで設定 */

/* レスポンシブ */
@media screen and (max-width: 1023px) {
    #TOP {
        & .image {
            & img {
                width: 80%;
            }
        }

        & .name {
            & .box {
                width: 80%;
            }
        }
    }

    #PROFILE {
        & .container {
            & .image {
                & img {
                    width: 250px;
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    #TOP {
        & .container {
            grid-template-columns: 1fr;
            max-width: 100%;
        }

        & .image {
            height: 450px;
            background-color: var(--col-white);

            & img {
                right: 0;
                width: 100%;
                height: 450px;
                border-radius: 0px;
            }
        }

        & .name {
            height: 200px;
            /* text-align: center; */

            & .box {
                left: 50%;
                transform: translate(-50%, -50%);
                width: 70%;

                & p:nth-child(1),
                p:nth-child(3) {
                    font-size: 16px;
                }

                & p:nth-child(2) {
                    font-size: 36px;
                }
            }
        }
    }

    #PROFILE {
        & .sns {
            gap: 20px;

            & .link-circle {
                width: 90px;
                height: 90px;
            }
        }

        & .prof {
            width: 90%;
        }

        & .container {
            grid-template-columns: 1fr;

            & .image {
                margin-bottom: 30px;
            }
        }
    }

    #CONTACT {
        & .text {
            width: 90%;
        }

        & .links {
            gap: 20px;

            /* & .link-circle {
                width: 90px;
                height: 90px;
            } */
        }
    }
}
