body {
    background-color: #fff;
    color: #504F4F;
    margin: 0;
    text-align: center;
    height: 100vh;
    display: grid;
    grid-template: 
    /* "...... ...... ...... aside" 40px */
    "header header header aside"
    "...... ...... ...... aside" 180px
    "...... top    ...... aside"
    "...... hr     ...... aside" 1fr
    "...... prf    ...... aside"
    "...... ...... ...... aside" 0px
    "...... main   ...... aside"
    "...... ...... ...... aside" 50px
    "...... ...... ...... ....." 100px
    "logo2  logo2  logo2 logo2 "
    "p      p      p      p    "
    "logo3  logo3  logo3 logo3 " 100px
    "footer footer footer footer"
    "...... blank  ...... ....." 100px
    /* "...... ...... ...... ....." 30px */
    / 2.5% 45% 2.5% 50%;
    
}

header {
    grid-area: header;
    text-align: center;
    width: 50%;
    height: 150px;
    /* background: #ffffffb9; */
    padding: 0 25px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Arial Rounded MT Bold', monospace;
    z-index: 10;
    position: absolute;
}

h1 {
    /* grid-area: h1; */
    font-size: 3rem;
    line-height: 0px;
    margin-top: -5px;
    margin-left: 0px;
    /* padding-top: 3rem; */
    font-family: 'Arial Rounded MT Bold', monospace;
    color: #1C2A55;
    font-weight: normal;
}

h2 {
    /* grid-area: h2; */
    font-size: 1.5rem;
    line-height: 70px;
    margin: 0;
    padding-bottom: 2rem;
    font-family: 'Arial Rounded MT Bold', monospace;
    font-style: italic;
    color: #1C2A55;
    font-weight: normal;
}

h3 {
    font-size: 1.5rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    font-family: 'Arial Rounded MT Bold', monospace;
    color: #1C2A55;
    font-weight: normal;
    /* height: 5px;
    padding-bottom: 10px;
    background-image: url("bg.jpg");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-color:rgba(255, 255, 255, 0.762);
    background-blend-mode:lighten; */
}

.prf {
    grid-area: prf;
    font-family: 'Zen Maru Gothic', sans-serif;
    text-align: left;
    margin: 30px;
    margin-top: 0%;
    margin-bottom: 0;
}

p {
    line-height: 2;
    margin: 40px;
    margin-left: 65px;
    margin-right: 65px;
    font-size: 1rem;
}

.name-eng {
    text-align: left;
    font-size: 1.6rem;
    line-height: 1;
    margin-top: 30px;
    margin-bottom: 0;
    margin-left: 65px;
    color: #1C2A55;
    /* font-weight: bold; */
}

.name-jpn {
    text-align: left;
    font-size: 1rem;
    line-height: 2;
    margin-top: 0px;
    margin-left: 65px;    
}

.name {
    font-size: 1.2rem;
    text-align: right;
    margin-right: 35%;
}

.top {
    grid-area: top;
    height: 100px;
    /* background-image: url("bg.jpg");
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-color:rgba(255, 255, 255, 0.548);
    background-blend-mode:lighten; */
}

hr {
    grid-area: hr;
    border: none;
    border-top: 1px solid rgb(120, 120, 120);
    width: 70%;
}

.logo2 {
    grid-area: logo2;
}

.logo3 {
    grid-area: logo3;
}

header img {
    height: 200px;
    margin-top: 10px;
    margin-right: 20px;
}

.logo2 img {
    height: 80px;
}

.logo3 img {
    height: 80px;
}

.bottom {
    grid-area: p;
    font-size: 1rem;
    /* font-weight: bold; */
    margin: 0;
    /* background-image: url("bg.jpg");
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-color:rgba(255, 255, 255, 0.9);
    background-blend-mode:lighten; */
}

.bottom p {
    font-family: 'Zen Maru Gothic', sans-serif;
}

main {
    grid-area: main;
    font-size: 1rem;
    /* font-weight: bold; */
    font-family: 'Courier Prime', monospace;
}

footer {
    grid-area: footer;
    text-align: right;
    margin-right: 200px;
}

.blank {
    grid-area: blank;
}

aside {
    grid-area: aside;
}

main a {
    display: inline-block;
    border: 2px solid #504F4F;
    color: #504F4F;
    padding: 10px 40px;
    margin: 10px 5px;
    text-decoration: none;
    transition: 0.5s;
}

main a:hover {
    background-image: url("bg.jpg");
    /* background-color: #977AD4; */
    color: #fff;
    /* border-color: #977AD4; */
}

footer a img {
    display: inline-block;
    margin: auto 5px;
    padding: auto;
    height: 40px;
}

aside img {
    margin: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

/***追従するトップへ戻るボタン***/
#page-top {
    position: fixed;
    right: 50px;
    bottom: 50px;
    height: 50px;
    text-decoration: none;
    font-weight: normal;
    transform: rotate(90deg);
    font-size: 100%;
    line-height: 1.5rem;
    color: #737373;
    padding: 0 0 0 35px;
    border-top: solid 1px;
}
#page-top::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    width: 15px;
    border-top: solid 1px;
    transform: rotate(35deg);
    transform-origin: left top;
}
/***トップへ戻るボタンここまで***/

@media screen and (max-width: 1000px) {
    body {
        grid-template:
            "...... header ......"
            "...... ...... ......" 1600px
            "aside  aside  aside "
            "...... ...... ......" 50px
            "...... h1     ......"
            "...... ...... ......" 100px
            "...... prf    ......"
            "...... ...... ......" 0px
            "...... main   ......"
            "...... ...... ......" 150px
            "...... logo2  ......"
            "...... ...... ......" 100px
            "...... p      ......"
            "...... ...... ......" 100px
            "...... logo3  ......"
            "...... ...... ......" 150px
            "...... footer ......" 
            "...... ...... ......"
            "...... blank  ......" 85px
            "...... ...... ......"  
            / 40px 1fr 40px;
    }

    header {
        position: absolute;
        text-align: center;
        margin-top: 600px;
        width: 100%;
    }

    header img {
        height: 270px;
        width: auto;
        margin: 0;
        margin-right: 30px;
    }

    

    .logo2 img {
        height: 110px;
        width: auto;
    }

    .logo3 img {
        height: 110px;
        width: auto;
    }

    h1 {
        font-size: 4rem;
        font-weight: normal;
        line-height: 0px;
        margin: 0;
    }

    h2 {
        font-size: 2rem;
        font-weight: normal;
    }

    h3 {
        font-size: 3rem;
        font-weight: normal;
    }

    .name-eng {
        font-size: 3.2rem;
    }

    .name-jpn {
        font-size: 2rem;
    }

    .prf {
        font-size: 2rem;
    }

    p {
        font-size: 2rem;
    }

    .name {
        text-align: right;
        margin-right: 5%;
        padding-top: 2rem;
        font-size: 2rem;
    }

    main a {
        display: block;
        font-size: 2rem;
        margin: 40px 80px;
        padding: 20px;
    }

    footer {
        text-align: center;
        margin: 0;
    }

    footer a {
        margin: 50px 20px;
    }

    footer a img {
        height: 70px;
        width: auto;
    }

    /***追従するトップへ戻るボタン***/
    #page-top {
        font-family: 'Zen Maru Gothic', sans-serif;
        position: fixed;
        right: 30px;
        bottom: 1px;
        height: 50px;
        text-decoration: none;
        font-weight: normal;
        transform: rotate(90deg);
        font-size: 140%;
        line-height: 1.5rem;
        color: #737373;
        padding: 0 0 0 35px;
        border-top: solid 1px;
    }
    #page-top::before {
        content: "";
        display: block;
        position: absolute;
        top: -1px;
        left: 0px;
        width: 15px;
        border-top: solid 1px;
        transform: rotate(35deg);
        transform-origin: left top;
    }
    /***トップへ戻るボタンここまで***/
}