@charset "UTF-8";

/*************
共通設定
*************/

* {
    box-sizing: border-box;
}

html {}

body,header,footer {
    background:rgb(128, 0, 0);
    text-align: center;
}
a {
    text-decoration: none;
}
.clearfix:after {
    content: "";
    display: block;
    clear: both;
}




/*******************************/

@media screen and (max-width:768px) {
    /****************************/
    /*************
ヘッダー
*************/
    header {
        color: white;
        padding: 2em;
    }
    header h1 {
        text-align: left;
    }
    header h1 a {
        color: white;
        font-size: 3em;
        font-weight: bolder;
        margin-right: 0.5em;
    }
    header h1 a:hover {
        opacity: 0.5;
    }
    header p {
        float: left;
        font-size: 1.2em;
        line-height: normal;
        margin-right: 0.5em;
    }
    header p:nth-of-type(3) {
        clear: both;
    }
    /*************
メイン
*************/
    main {
         line-height: normal;
        margin-bottom: 2em;
    }
    main section {
        color: white;
        padding: 2em 2em;
        text-align: left;
    }
    main section h2 {
        font-size: 1.2em;
        margin-bottom: 0.5em;
    }
    main nav {
        width:60%;
        margin:0 auto;
    }
    main nav ul li {
        border: solid 2px white;
        border-radius: 2%;
        margin-bottom: 1.5em;
    }
    main nav ul li a {
        color: white;
        font-size: 1.5em;
        font-weight: bolder;
        text-align: center;
        display: block;
        padding:0.75em 0;
    }
    main nav ul li:hover a {
         color:black;
         background:white;
        opacity: 0.5;
    }
    /*************
フッター
*************/
    footer {
        color: white;
        padding: 1em;
    }
    footer p {
        margin-bottom: 0.5em;
    }
    footer p:last-child {
        margin-bottom: 0;
    }
    footer p small {
        font-size: 0.8em;
    }
    /**********************/
}
/*************************/




/**************************/

@media screen and (min-width:769px) {
    /***********************/
    
    /*************
ヘッダー
*************/
    header {
        color: white;
        padding-top: 5em;
        margin-bottom: 4em;
    }
    header h1 a {
        color: white;
        font-size: 5em;
        font-weight: bolder;
    }
    header h1 a:hover {
        opacity: 0.5;
    }
    header p {
        font-size: 1.5em;
    }
    header p:last-child {
        font-size: 1em;
    }
    /*************
メイン
*************/
    main {
        line-height: normal;
        padding:1em;
        margin-bottom: 2em;
    }
    main section {
        color: white;
        text-align: center;
        margin-bottom: 5em;
    }
    main section h2 {
        font-size: 3em;
    }

    main nav ul {
        width: 564px;
        margin: 0 auto;
    }
    main nav ul li {
        float: left;
        border: solid 2px white;
        border-radius: 50%;
        margin-right: 9%;
    }
    main nav ul li:last-child {
        margin-right: 0;
    }
    main nav ul li a {
        width: 150px;
        height: 150px;
        color: white;
        font-size: 1.5em;
        font-weight: bolder;
        text-align: center;
        line-height: 150px;
        display: block;
        border-radius: 50%;
    }
    main nav ul li:hover a {
        color:black;
         background:white;
        opacity: 0.5;
    }
 
    /*************
フッター
*************/
    footer {
        color: white;
        padding: 1em;
    }
    footer p {
        margin-bottom: 0.5em;
    }
    footer p:last-child {
        margin-bottom: 0;
    }
    footer p small {
        font-size: 0.8em;
    }
    /********************/
}


/*************************/
