html {
    font-size: 100%; /* 16px */
}

body{
    color: #24292e;
    font-family: "M PLUS 1p";
    background: url("../myHobby/img/assignment4-bg.jpg");
    background-size: cover;
}

a {
    text-decoration: none;
}

p {
    font-size: 1.3rem;/* デフォルトサイズの1.3倍 */
}

img{
    max-width: 100%;
}

li{
    list-style: none;
    font-size: 1.1rem;
}

.wrapper {
    max-width: 960px;
    margin: 0 auto 130px auto;
    font-size: 0.9rem; 
    padding: 0 4% ;
}

.site-title {
    line-height: 1px;
    font-weight: 600;
    font-size: 2.4rem; 
    font-family: 'Monoton', serif;
}

.site-title a {
    color:#404546;
}

.sec-title {
    font-size: 2rem;
    text-align:center; 
    margin-bottom: 65px;
    font-family: 'Zen Kurenaido', sans-serif;}

/* header */
#header {
    max-width: 960px;
    display: flex; /* 親要素に対してflexを当てると子要素が横並びになる */
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 4%;
    height: 170px;
}

#header ul {
    display: flex;
    padding: 10px 0;
    align-items: center;
}

#header ul li {
    font-size: 0.9rem;
    margin-left: 30px;
}

#header ul li a {
    color: #24292a;
    transition: all 0.3s;
}

#header ul li a:hover{
    opacity: 0.5;
}

#header li img.icon{
    width: 30px;
}

/* h2-heading */
.heading {
    position: relative;
    margin: 100px 0 200px;
    font-size: 3rem;
    font-family: 'Zen Kurenaido', sans-serif;
    text-align: center;
}

.heading-point {
    display: block;
    font-size: 1.1rem;
    margin-top: 15px;  
    position: relative;
    width: 140px;
    margin: 10px auto 0;
}


/* Happy */
p.happy-text{
    color: #4a4949;
    background: linear-gradient(#fcfc3b, #97ac09);
    display:inline-block;
    padding: 20px;
    border-radius: 15px ;
}


.shine{
    position: relative;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    outline: none;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    transform: skewX(-25deg);
}

p.shine:hover::before {
    animation: shine 0.9s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}


/* Sad */
p.sad-text{
    color: #f9f9f9;
    background: linear-gradient(#ae79f8,#300c2b);  
    display:inline-block;
    padding: 20px;
    border-radius: 15px ;
}

section#happy,section#sad{
    text-align: center;
}
/* Calender */
th:first-child{background-color: #e45858;}
th + th{background-color: #ffc0cd;}
th + th + th{background-color: #ffa500;}
th:nth-child(4){background-color: #87cefa;}
th:nth-child(5){background-color: #d2692e;}
th:nth-child(6){background-color: yellow;}
th:last-child{background-color: #6495ed;}


td:first-child{color: #d33939;}
td.nationalHoliday{color: #bf5252;}
td:last-child{color: #2868de;}

table{
    width: 100%;
    border: 1px solid;
    box-shadow: 1px 1px 1px #000000;
}

th,tr,td{
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid;

}
td{
    text-align: right;
    box-shadow: inset 1px 1px 1px #24292a;
    border: 1px solid;
    padding-right: 7px;
}



/* 携帯用 */
@media screen and (max-width: 680px){
    .site-title {
        margin-top: 20px;
    }
 
    /* header */
    #header {
        flex-direction: column;
        height: auto;
        line-height: 40px;
        margin-top: 20px;
    }

    #header li {
        font-size: 0.8rem;
        margin-left: 20px;
        margin-top: 10px;
    }

    #header li img.icon {
        width: 20px;
        margin-top: 15px;
    }

    
}

