@import url('https://fonts.googleapis.com/css?family=Sawarabi+Mincho');

html {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
    color: #444;
}

body {
    background-color: #ddd;
    background:repeating-linear-gradient(
        0deg,
        #ddd,
        #ddd 2px,
        #eee 0,
        #eee 8px
        );
}

header {
    width: 100%;
    padding-bottom: 2rem;
}

.align-center {
    text-align: center;
}


/*
 *ナビ
 */
nav {
    width: 30rem;
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem auto 0 auto;
}

nav>ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    text-align: center;

    list-style: none;
    padding-inline: 0;
}

nav>ul>li {
    padding: .5rem;
    padding-inline: 0;
}

nav>ul>li>a {
    padding: 0 1rem;

    text-decoration: none;
    color: #444;
    background-color: #bbb;

    border: solid #444 4px;
    border-radius: 1rem;
}

nav>ul>li>a:hover {
    color: #bbb;
    background-color: #444;
}


/*
 * 見出し
 */

h1 {
    /* ページタイトル */
    margin: 2rem auto;
    padding-bottom: 1rem;
    width: 98%;

    border-bottom: solid #555 .6rem;
    font-size: 4rem;

    font-family: "Sawarabi Mincho", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    }
      

h2 {
    /* 各クラス見出し */
    margin: 0;
    padding-top: .5rem;
    padding-left: 1rem;

    border-left: solid #444 1rem;
    border-bottom: solid #444 .2rem;
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;

    font-size: 2rem;
}


/*
 * メインコンテンツ
 */

.class_wrapper {
    width: max-content;
    margin: 2rem auto;
    padding: 2rem 2rem 0 2rem;
    border-radius: .8rem;
}

#A_class {
    background-color: #dbb;
}

#B_class {
    background-color: #bbd;
}


/** リンク集 */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    width: max-content;
    margin: 5rem auto;
}

.item {
    background-color: #ddd;
    border: solid #444 .5rem;
    border-radius: 1rem;
    padding: 1.5rem .5rem;
    width: 24rem;

    display: grid;
    gap: 1.5rem;
    text-align: center;
    align-content: space-evenly;

    font-size: 1.4rem;
}

.item img {
    /* サムネ */
    display: block;
    max-width: 100%;
    max-height: 16rem;
    
    border-radius: .7rem;
}

.item a {
    /* リンクボタン */
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: #444;
    background-color: #bbb;
    border: solid #444 .2rem;
    border-radius: 1rem;

    max-height: 3rem;
    padding: .1rem .6rem;
}

.item a:hover {
    color: #bbb;
    background-color: #444;
}


.to_top {
    /* TOP に戻るボタン */
    text-align: right;

    font-size: 1rem;
    
    position:relative;
    top: -1.8rem;
}


/*
/* Copyright
 */

footer {
    margin-top: 5rem;
    margin-bottom: 2rem;

    width: 100%;

    text-align: center;
}