@charset "UTF-8";

* {
    box-sizing:border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration-line: none;
}

.advertisement {
    text-align:center;
    background-color: rgb(232, 0, 0);
}

.advertisement table {
    margin: 0 auto;
    padding-top: 30px;
}

.mobile {
    display: none;
}

/* head-contents */

header {
    background-color:white;
}

.topLogo {
    display: flex;
    justify-content: center;
}

.pc {
    background-color:rgb(157, 224, 160);
}

nav ul {
    display: flex;
}

nav li {
    padding: 10px 30px;
    font-size: 30px;
 
}

nav li a {
    color: white;
}

/* main-contents */

main {
    background-color:antiquewhite;
}

main .container {
    width: 840px;
    background-color: white;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom:50px;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    margin-bottom: 50px;
}

.articleImage {
    text-align:center;
}

 #articleImage {
    margin-top: 50px;
    width: 450px;
    height: 300px;
    object-fit: cover;
    vertical-align: bottom;
}

main h2 {
    padding-top: 50px;
    padding-bottom: 30px;
    font-size: 30px;
}

main h3 {
    padding: 20px;
    font-size: 24px;
}

main p {
    font-size: 20px;
    letter-spacing: 0.2em;
}

.advertisement {
    background-color: antiquewhite;
}


/* footer-contents */


footer {
    background-color:rgb(145, 145, 145);
    padding-top: 50px;
    padding-bottom: 100px;

}

.footerTitle {
    font-size: 20px;

}

footer a {
    color: rgb(224, 224, 224);
    text-decoration-line: underline;
}

footer p {
    margin-top: 30px;
}

@media screen and (max-width: 670px) {

        
    .container {
        width: 90%;
        margin: 0 auto;
    }
    
    a {
        text-decoration-line: none;
    }
    
    .advertisement {
        text-align:center;
    }

    .pc {
        display: none;
    }

    .mobile {
        display: block;
        
    }
    
    /* head-contents */
    .mobile nav ul {
        display: block;
    }

    .mobile nav ul a {
        font-size: 15px;
    }

    #hmenu {
        background-color: rgb(157, 224, 160);
        padding: 12px;
    }

    #hcheck, #hclose {display: none;    }

    #hopen {
        display: block;
        width: 58px;
        cursor: pointer;
    }

    #hopen img { display: block; }

    #hclose, nav {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
    }

    #hclose {
        z-index: 2;
        width: 100%;
        background-color: black;
        opacity: 0.5;
        transition: 0.5s;
    }

    nav {
        z-index: 3;
        width: 200px;
        background-color: rgba(157, 224, 160, 0.8);
        transition: 0.5s;
        transform: translateX(-100%);
    }

    #hcheck:checked ~ #hclose { display: block;}

    #hcheck:checked ~ nav {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0,0,0,0.4); 
    }

    header {
        background-color:white;
    }
    
    .topLogo {
        display: flex;
        justify-content: center;
    }

    .topLogo img {
        width: 250px;
        object-fit: contain;
    }
    
  
    
    /* main-contents */
    
    main {
        background-color:antiquewhite;
    }
    
    main .container {
        width: 350px;
        background-color: white;
        margin: 0 auto 7px auto;
        padding-right: 20px;
        padding-left: 20px;
        padding-bottom: 20px;
        border-radius: 5px;
        box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    }

     #articleImage {
        margin-top: 20px;
        width: 300px;
        height: 200px;
        object-fit: cover;
        vertical-align: bottom;
    }
    
    main h2 {
        padding-top: 15px;
        padding-bottom: 10px;
        font-size: 20px;
    }
    
    main h3 {
        padding: 5px;
        font-size: 18px;
    }
    
    main p {
        font-size: 15px;
    }
    
    
    
    /* footer-contents */
    
    footer {
        background-color:rgb(145, 145, 145);
        padding-top: 50px;
        padding-bottom: 100px;
    
    }
    
    .footerTitle {
        font-size: 20px;
    
    }
    
    footer a {
        color: rgb(224, 224, 224);
        text-decoration-line: underline;
    }
    
    footer p {
        margin-top: 30px;
    }

    
}