@charset "UTF-8";


/*
共通部分
*/

html {
    color: #222;
    font-size: 100%;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
}
body {
    background-color: #fcd;
}
.wrapper {
    max-width: min(100%, 700px);
    filter: drop-shadow(0px 0px 5px #0009);
    margin: auto;
    padding: 0 1%;
}

a {
    text-decoration: none;
}
ul {
    list-style: none;
}



/*
HEADER
*/

header {
    background-color: #fff;
    display: flex;
    justify-content: space-around;
}
header img {
    width: 300px;
    margin-top: 10px;
}
nav ul {
    display: flex;
    font-size: 1.25rem;
    margin-top: 25px;
}
nav li {
    margin: 0 5px;
}
nav a {
    color: #222;
}
nav a:visited {
    color: #a700fe;
}
nav a:hover {
    color: #0bd;
}



/*
MAIN
*/

main {
    background-image: linear-gradient(#bfffbf, #bfffff);
}
.section-title {
    border-bottom: 1px solid #666;
    margin-bottom: 20px;
    padding: 20px 0 0 20px;
}

table {
    display: inline-block;
    margin-left: 100px;
}
tr {
    display: block;
    margin-bottom: 20px;
}
th {
    display: block;
    text-align: left;
    font-size: 1.25rem;
    border-left: 5px solid #666;
    border-bottom: 1px solid #666;
    padding-left: 10px;
}
td {
    display: block;
    margin: 10px 0 0 40px;
}

#profile div {
    display: flex;
    justify-content: space-between;
}
#profile img {
    order: 2;
    width: 40%;
    object-fit: contain;
    margin-right: 50px;
}
#profile table {
    order: 1;
    width: 60%;
}

main p {
    margin: 0 0 20px 110px;
}
.to-top {
    text-align: right;
    font-size: 3rem;
    margin-right: 5px;
}



/*
FOOTER
*/

footer {
    background-color: #222;
    text-align: center;
}
footer p {
    color: #fff;
    padding: 22px 0;
}



/*
モバイル版
*/

/* 横幅が 700px 以下の時 */
@media (max-width: 700px) {
    body {
        background-color: #fff;
    }

    header {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        margin: 0 0 20px;
    }
}


/* 横幅が 600px 以下，500px 以上の時 */
@media (max-width: 600px) and (min-width: 500px) {
    .section-title {
        margin-bottom: 15px;
        padding: 20px 0 0 15px;
    }

    table {
        margin-left: 50px;
    }

    #profile img {
        width: 45%;
    }
    #profile table {
        width: 55%;
    }

    main p {
        margin: 0 0 5px 60px;
    }
}

/* 横幅が 500px 以下の時 */
@media (max-width: 500px) {
    tr {
        margin-bottom: 10px;
    }
    th {
        padding-left: 5px;
    }
    td {
        margin: 5px 0 0 20px;
    }

    #profile img {
        width: 50%;
    }
    #profile table {
        width: 50%;
    }

    .section-title {
        margin-bottom: 10px;
        padding: 20px 0 0 5px;
    }
}


/* 横幅が 500px 以下，400px 以上の時 */
@media (max-width: 500px) and (min-width: 400px) {
    table {
        margin-left: 20px;
    }

    #profile img {
        margin-right: 10px;
    }

    main p {
        margin: 0 0 5px 30px;
    }
}

/* 横幅が 400px 以下の時 */
@media (max-width: 400px) {
    table {
        margin-left: 10px;
    }

    #profile img {
        margin-right: 0px;
    }

    main p {
        margin: 0 0 5px 20px;
    }
}


/* 横幅が 350px 以下の時 */
@media (max-width: 350px) {
    .wrapper {
        padding: 0 0.5%;
    }
}