body {
    background-color: #eeeeee;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a, a:hover {
    text-decoration: none;
}

header, #home-container > main > h2, #article-list-container > h2, 
#latest-container > main > h2, #myprofile, #myrepository, #tech-category, .side-articles,
#myblog-feature, footer, footer > nav > li {
    background-color: #888888;
} 

.topic-item, .more-detail-info {
    background-color: #ffffff;
}

header nav li, #tech-category a {
    background-color: #cccccc;
}

.article-item, .article-all-items {
    background-color: #bbbbbb
}

#list-page-selected {
    background-color: #aaaaaa;
}

.topic-item > dl > dt {
    background-color: #8888FF;
}

main h2, .article-item > article > span, 
.article-all-items > article > span, 
#myprofile h2, #myprofile-detail dt, #myprofile-detail dd,
#myprofile-detail a, #myprofile-introduce, #tech-category h2,
#myblog-feature h2, #myblog-feature p, .topic-item > dl > dt,
#article-list-container > h2 {
    color: #ffffff;
}

.topic-item, .topic-item:hover, #article-button-list a {
    color: #333333;
}

.caution {
    color: #ffbbbb;
}

.more-detail-info, .more-detail-info:hover {
    color: #555555;
}

header > h1 > a , header > h1 > a:hover, .article-item,
.topic-item > dl > dt > dd, .article-all-items,
.article-item:hover, .article-all-items:hover {
    color: #000000;
}

footer nav li a {
    color: #cccccc;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header > h1 {
    text-align: center;
    font-size: 3rem;
}

header nav {
    display: flex;
    justify-content: center;
}

header nav li {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 10px;
}

/* [test] */
#menu-btn-check {
    display: none;
}

.menu-content {
    display: none;
}
/* [test] */

#home-container {
    display: grid;
    width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
    grid-gap: 20px;
    gap: 20px;
}

#article-list-container {
    width: 1200px;
    min-height: 350px;
    margin: 0 auto;
}

#artile-all-list {
    /* 2023.05.14 remove
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    */
    display: block;
}

#home-container > main {
    grid-column: 1 / 3;
    grid-row: 1;
}

#home-container > main > h2, #latest-container > main > h2, #article-list-container > h2 {
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
}

#article-3items-list,#topic-item-list, #add-article-form {
    margin: 20px;
}

.article-all-items {
    width: 85%;
    margin: 15px auto;
    min-height: 175px;
    padding: 10px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.article-item {
    margin: 15px auto;
    min-height: 175px;
    padding: 10px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.article-item > article > span, .article-all-items > article > span {
    padding: 3px;
    background-color: #8888FF;
    color: #ffffff;
    font-weight: bold;
    border-radius: 3px;
    padding-left: 5px;
    padding-right: 5px;
    margin-right: 5px;
}

.keyword-block {
    margin-top: 15px;
    margin-left: 20px;
}

.article-item > article > h3, .article-all-items > article > h3 {
    margin-top: 10px;
}

.article-item:hover, .article-all-items:hover {
    text-decoration: none;
}

.article-item img, .article-all-items img {
    width: 10%;
    margin: 10px;
}

.more-detail-info  {
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 2px;
    border: 2px double #888888;
    width: 50%;
    margin: 0 auto;
    text-decoration: none;
    font-weight: bold;
}

#myprofile h2, #myrepository h2 {
    text-align: center;
    color: #ffffff;
}

aside {
    grid-column: 3 / 4;
    grid-row: 1;
}

#myprofile, #myrepository {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 5px;
    margin: 15px auto;
}

#myprofile h2, #myrepository h2 {
    text-align: center;
}

#myprofile-pic{
    width: 50%;
    margin: 0 auto;
}

#myprofile-detail {
    width: 90%;
    padding: 6px;
    border-radius: 5px;
    border: 4px solid #ffffff;
    margin: 0 auto;
}

#myprofile-detail dt{
    float: left;
}

#github-anchor-sytle,  #myrepositry-anchor-style{
    width: 90%;
    padding: 6px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid #ffffff;
    margin: 0 auto;
    margin-top: 15px;
    background: linear-gradient(to bottom right, #0000FF, #FF2C59);
}

#git-server-anchor-style {
    width: 90%;
    padding: 6px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid #ffffff;
    margin: 0 auto;
    margin-top: 15px;
    background-color: #f44d27;
}

#gadget-anchor-style {
    width: 90%;
    padding: 6px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid #ffffff;
    margin: 0 auto;
    margin-top: 15px;
    background-color: #4169E1;
}

#game-anchor-style {
    width: 90%;
    padding: 6px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid #ffffff;
    margin: 0 auto;
    margin-top: 15px;
    background-color: #FFBF00;
}

#mymemo-anchor-style {
    width: 90%;
    padding: 6px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid #ffffff;
    margin: 0 auto;
    margin-top: 15px;
    background-color: green;
}

#myprofile-introduce {
    width: 90%;
    padding: 6px;
    margin: 10px auto;
}

#tech-category, #myblog-feature {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 5px;
    margin: 15px auto;
}

#myblog-feature p {
    padding-left: 30px;
    padding-right: 30px;
}

.topic-item > img {
    width: 50%;
    display: block;
    border-radius: 5px;
    margin: 0 auto;
}

#tech-category h2, #myblog-feature h2 {
    text-align: center;
}

#tech-category ul {
    display: flex;
    flex-direction: left;
    flex-wrap: wrap;
    list-style-type: none;
}

#tech-category li {
    margin: 10px;
}

#tech-category a {
    padding: 5px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

#main-topic, #sub-topic {
    width: 100%; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
    grid-gap: 20px;
    gap: 20px;
    padding: 20px;
    margin: 10px;
}

.topic-item {
    display: block;
    text-decoration: none;
    border: 2px solid #555555;
    border-radius: 5px;
}

.topic-item > dl > dt {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    color: #ffffff;
    font-weight: bold;
    border-radius: 3px;
}

.topic-item:hover {
    text-decoration: none;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

footer nav {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    margin-top: 20px;
}

footer nav li {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px;
}

#copyright {
    margin: 0 auto;
    font-weight: bold;
}

/* list page */

#article-button-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 10px auto;
}

#article-button-list a {
    display: block;
    color: #333333;
    padding: 8px;
    border: 2px solid #333333;
    border-radius: 2px;
    margin: 0 10px;
}

#list-page-selected {
    background-color: #aaaaaa;
}

/* for smart phpne */
@media screen and (max-width: 1000px) {

    header > nav, #aside, #myprofile, #myblog-feature, #tech-category, #myrepository, .side-articles {
        display: none;
    }

    header > h1 {
        font-size: 1.5rem;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .menu-btn {
        position: fixed; 
        top: 10px;
        right: 10px;
        display: flex;
        height: 40px;
        width: 40px;
        justify-content: center;
        align-items: center;
        z-index: 90;
        background-color: #aaaaaa;
        border-radius: 3px;
    }
    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #ffffff;
        position: absolute;
    }
    .menu-btn span:before {
        bottom: 8px;
    }
    .menu-btn span:after {
        top: 8px;
    }
    
    #menu-btn-check:checked ~ .menu-btn span {
        background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
    }
    #menu-btn-check:checked ~ .menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #menu-btn-check:checked ~ .menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    .menu-content {
        width: 100%;
        height: 100%;
        position: fixed;
        display: block;
        top: 0;
        left: 100%;/*leftの値を変更してメニューを画面外へ*/
        z-index: 80;
        background-color: #888888;
        transition: all 0.5s;/*アニメーション設定*/
    }
    .menu-content ul {
        padding: 70px 10px 0;
    }
    .menu-content ul li {
        border-bottom: solid 1px #ffffff;
        list-style: none;
    }
    .menu-content ul li a {
        display: block;
        width: 100%;
        font-size: 15px;
        box-sizing: border-box;
        color:#ffffff;
        text-decoration: none;
        padding: 9px 15px 10px 0;
        position: relative;
    }
    .menu-content ul li a::before {
        content: "";
        width: 7px;
        height: 7px;
        border-top: solid 2px #ffffff;
        border-right: solid 2px #ffffff;
        transform: rotate(45deg);
        position: absolute;
        right: 11px;
        top: 16px;
    }

    #menu-btn-check:checked ~ .menu-content {
        left: 30%;/*メニューを画面内へ*/
    }

    #home-container, #article-list-container {
        display: block;
        width: 100%;
    }

    .article-all-items {
        width: 100%;
        /* 2023.05.14 remove
        margin: 10px;
        */
    }

    #home-container > main > h2, #article-list-container > main > h2 {
        font-size: 1.2rem;
        border-radius: 1px;
        padding: 5px;
    }

    #home-container > main > h2+#article-3items-list, #add-article-form {
        margin-top: -5px;
    }

    #article-3items-list,#topic-item-list,#artile-all-list, #add-article-form {
        margin: 10px;
    }

    #main-topic {
        display: flex;
        flex-direction: column;
    }

    #topic-item {
        margin: 15px;
    }

    #main-topic img {
        width: 100px;
    }

    #sp-myprofile {
        padding: 20px;
    }

    #sp-myprofile > h2, #sp-myblog-feature > h2 {
        color: #555555;
    }

    #sp-myprofile-pic {
        display: block;
        width: 200px;
        margin: 0 auto;
    }

    #sp-myprofile-detail {
        margin: 0 auto;
        margin-bottom: 20px;
        border: 2px solid #ffffff;
        border-radius: 3px;
    }

    .article-item+.more-detail-info {
        margin-top: -5px;

    }

    .article-item {
        min-height: 100px;
        font-size: 12px;
    }

    .article-item h3 {
        font-size: 14px;
    }

    .article-item article p {
        font-size: 14px;
    }

    .pc-image {
        /* visibility: hidden; */
        display: none;
        width: 0;
    }

    footer > nav > ul > li {
        font-size: 0.6rem;
        padding: 0;
        margin-right: 10px;
    }

    #copyright {
        font-size: 0.5rem;
    }

    /* list page */
    #article-list-container > h2 {
        font-size: 1.2rem;
        border-radius: 1px;
        padding: 5px; 
    }

    #article-list-container > h2+#artile-all-list {
        margin-top: -5px;
    }

    .article-all-items {
        min-height: 100px;
        /* font-size: 0.8rem; */
        font-size: 12px;
    }

    .article-all-items h3 {
        font-size: 14px;
    }

    .article-all-items article p {
        font-size: 14px;
    }
}

@media screen and (min-width: 800px) and (max-width: 1200px) {

    #home-container {
        width: 800px;
    }

    #article-list-container {
        width: 800px;
    }
    
}
