@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

html {
    /*
    font-family: 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', 'sans-serif', 'MS PGothic', 'Yu Gothic',
        'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', 
        'Hiragino Maru Gothic ProN W4', 'Osaka', 'MS PMincho', 'Hiragino Mincho ProN';*/

    margin: 0 auto;
    padding: 0 0 0 0;
    width: 100%;
}
@media screen and (min-width: 481px) {
    html {
        font-size: 18px;
    }
}
@media screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    box-sizing: border-box;
    font-family: 'Yu Gothic', 'Yu Gothic Medium', 'メイリオ', 'MS ゴシック', sans-serif;
    font-family: 'ヒラギノ明朝', 'MS P明朝', 'Times', serif;
    font-family: 'Osaka-Mono', 'MSゴシック', 'MS明朝', system-ui;
}

header,main,footer {
    position: relative;
    box-sizing: content-box;
    flex-flow: row nowrap;
    justify-content: space between;
    margin: 0 auto 0 auto;
    padding: 10px 0 10px 0;
}
@media screen and (min-width: 481px) {
    header,main, footer {
        max-width: 790px;
        width: 700px;
    }
}
@media screen and (max-width: 480px) {
    header,main,footer {
        width: auto;
/*        max-width: max-content;*/
    }
}


a {
    text-decoration: underline;
    color: #000000;
}

a:hover {
    text-decoration: double;
    text-decoration-style: double;
    color: #222222;
}

header,footer {
    background-color: #cccccc;
    padding: 30px 0 30px 0;
}

body {
    background-color: #ffffff;
}
main {
    background-color: #e1e1e1;
}

@media screen and (min-width: 481px ) {
    #main1 {
        --img-width: 140px;
        --img-height: 140px;
    }
}
@media screen and (max-width: 480px ) {
    #main1 {
/*        --img-width: calc(100%);*/
        --img-height: 100px;
    }
}
#profile {
    display: grid;
    grid-template-areas: "image the-name"
                         "image my-desc"
                         "image contact";
    grid-template-columns: calc(var(--img-width) * 1.2) auto;
}

#profile-image {
    grid-area: image;
    padding: 10px 10px 10px 10px;
}

#profile-image img {
    object-fit: cover;
    width: var(--img-width);
    height: var(--img-height);
    border-radius: 100%;
}

#the-name {
    grid-area: the-name;
    font-style: normal;
/*    font-family:Arial, Helvetica, sans-serif;*/
    font-weight: 900;
}

#my-desc {
    grid-area: my-desc;
    font-weight: 700;
}

#contact {
    grid-area: contact;
}

#snslinks {
    display: flex;
    flex-direction: row;
    margin: 10px 10px 10px 10px;
}

#snslinks img {
    object-fit: scale-down;
    width: 40px;
    height: 40px;
    margin: 5px 10px 10px 5px;
}
@media screen and (min-width: 481px) {
    #the-name {
        font-size: 2.2rem;
    }
}
@media screen and (max-width: 480px) {
    #the-name {
        font-size: 1.8rem;
    }
    #my-desc {
        font-size: 0.9rem;
    }
}

#main2 {
    margin: 0 0 10px 0;
}


h1 {
    font-size: 1.5rem;
    margin: 20px 5px 10px 10px;
    font-weight: bold;
}

h2 {
    margin: 20px 0 0 10px;
    font-size:1.0rem;
    font-weight: 600;
}

p {
/*    margin: 0 10px 0 10px;*/
    padding: 10px 10px 10px 10px;
}

#site-title {
    font-weight:700;
}
@media screen and (min-width: 481px) {
    #site-title {
        margin: 0 100px 0 100px;
    }
}
@media screen and (max-width: 480px) {
    #site-title {
        display: flex;
        justify-content: center;
        margin: 0 auto 0 auto;
    }
}
#top-link {
    margin: 10px 0 20px 0;
    text-align: center;
}
#copyright {
    content: string("Copyright 2023 (c) scriptgg.net All rights are reserved.");
    text-align:center;
    font-size: 0.9rem;
}

.demo-item {
    margin: 20px 0 20px 0;
}
