/* 
    Theme Name: ECM Homepage 2025 toeic
    Author: 1min.
    Description:
    Version: 1.0
    License: 
*/

@media screen and (min-width: 500px) {
    body{
        width: 380px;
        margin: 0 auto;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500&display=swap');

* {
    margin: 0px;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

p {
    font-size: 1em;
}

body {
    font-size: 7px; 
    font-family: 'Noto Sans JP', sans-serif;
}


/*-------- header ------*/
header {
    width: 100%;
    z-index: 10;
    box-shadow: 3px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    background-color: white;
}

header .gnav .menu {
    display: flex;
    list-style-type: none;
    padding: 0px;
}

header .gnav .menu li {
   margin-top: 3%;
}

header .gnav .menu .headerLogo {
    width: 80%;
    margin-left: 3%;
}

header .gnav .menu img {
    width: 80%;
    
}

header .gnav .menu .trialForm {
    width: 30%;
}

header .gnav .menu .trialForm a {
    font-size: 2em; 
    display: block;
    margin-right: 10%;
    padding-top: 8%;
    padding-bottom: 8%;
    text-align: center;
    background-color: rgb(230, 0, 0);
    color: white;
    text-decoration: none;
    border-radius: 5%;
}

.headImg {
    position: relative;
}
.headImg img {
    max-width: 100%;
    height: auto; 
}

.headImg .textWrapper {
    position: absolute;
    top: 60%;
    left: 30%;
    text-align: right;
    color: white;
}

/* TOEIC banner */
.toeic_banner {
    margin: 5%;
    text-align: center;
}

.toeic_banner img {
    max-width: 100%;
    height: auto;
}

/*-------- main (toppage)------*/

main {
    margin-top: 5%;
}

main ul {
    padding: 0;
    list-style-type: none;
}

main ul li {
    background-color: rgb(219, 219, 219);
    margin-bottom: 2%;
    margin-left: 2%;
    margin-right: 2%;
    padding: 2%;
    font-size: 2em;
}

main ul li a {
    text-decoration: none;
    color: black;

}

main ul li a .subTitle {
    font-size: 7px;
    font-style: italic;
}

/*-------- main (accesspage) --------*/
.mapSection {
    margin: 5%;
    margin-bottom: 10%;
}

.iframeWrapper {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    margin-top: 2%;
    position: relative;
}

.iframeWrapper iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

/*-------- footer ------*/

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 5%;
    padding: 5% 5%;
    background-color: black;
    color: white;
}

footer .footerLogo {
    font-size: 1.5em;
}

footer .classInfo {
    text-align: right;
}

small {
    background-color: white;
    color: black;
    display: block;
    text-align: center;
}


/* news.html, pictures */
.news .headTitle {
    margin: 20px;
    text-align: center;
}

.news .newsTitle {
    margin: 10px;
    border-bottom: 2px;
    border-bottom: solid 1px rgb(157, 156, 156);
}

.news .newsTitle .title {
    display: flex;
    justify-content: space-between;
}

.news .newsTitle p {
    font-size: 1.5em;
}

.news .newsPic, .news figure {
    text-align: center;
}

.news .newsPic img, .news figure img {
    width: 300px;
}

.news .newsDiscription {
    padding: 5px 10px;
    font-size: 2em;
}

/* pictures */
.pictures .headTitle {
    margin: 20px;
    text-align: center;
}

.pictures p {
    font-size: 2em;
    padding: 5px 5px;
}



