* {
  box-sizing: border-box;
}

body{
    letter-spacing: 0.1em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
	font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
}

/* PC・SPのオンオフ */
.pc{
    display: block;
}
.sp{
    display: none;
}
@media (max-width: 767px){
    .pc{
        display: none !important;
    }
    .sp{
        display: block;
    }
}

/* ヘッダー */
header{
    width: 100%;
    padding: 10px 0;
}
.header_wrapper{
    max-width: 1320px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header_wrapper h1{
	margin-left: 20px;
    width: auto;
    display: flex;
    align-items: center;
}
.header_wrapper h1 a{
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 22px;
}
.header_wrapper h1 span{
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    margin-left: 10px;
}
.header_right{
    display: flex;
}
.slider img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px){
    header{
        position: fixed;
        top: 0;
        z-index: 100;
        padding: 0;
        background-color: #fff;
    }
	.header_wrapper h1 a{
   	    font-size: 20px;
	}
	.slider,
	.bx-wrapper,
	.bx-viewport {
	    height: auto !important;
	    max-height: none !important;
	    display: block !important;
		min-height: 200px; /* ここである程度の高さを確保 */
		margin-top: 80px; /* ヘッダーの高さに合わせて調整 */
	}
	.slider img {
	    width: 100%;
	    height: auto;
	    display: block;
	}
}

/* ナビゲーション */
.gnav{
    width: 100%;
    background-color: #333;
    list-style-type: none;
}
.gnav_wrapper{
    max-width: 980px;
    margin: auto;
    display: flex;
    list-style-type: none;
}
.gnav_wrapper li{
    border-left: #888 1px solid;
    text-align: center;
    width: calc(100%/7);
    transition: all  0.3s ease;
    list-style-type: none;
}
.gnav_wrapper li:last-child{
    border-right: #888 1px solid;
    list-style-type: none;
}
.gnav_wrapper li:hover{
    background-color: #888;
    list-style-type: none;
}
.gnav_wrapper li a{
    display: block;
    padding: 1.3em 0;
    color: #fff;
    text-decoration: none;
    list-style-type: none;
}
@media (max-width: 767px){
    .gnav_wrapper{
        position: fixed;
        display: table;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #333;
        visibility: hidden;
        opacity: 0;
        padding-top: 20%;
    }
    .gnav_wrapper li{
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
        width: 100%;
        border-bottom: #888 1px solid;
        border-left: none;
    }
    .gnav_wrapper li:last-child{
        border-right: none;
    }
    .menu-btn{
        color: #fff;
        cursor: pointer;
        z-index: 100;
        background-color: #333;
        max-width: 56px;
        width: 56px;
    }
    .menu-btn i{
        display: block;
        font-size: 24px;
        text-align: center;
        padding-top: 10px;
    }
    .menu-btn span{
        display: block;
        padding: 0 0 10px 0;
        font-size: 10px;
        text-align: center;
    }
    .open{
        transition: all .5s;
        visibility: visible;
        opacity: 1;
        z-index: 10;
    }
    .menu-btn span::after{
        content: attr(data-txt-menu);
    }
    .open span::after{
        content: attr(data-txt-close);
    }
    
}

.message-wrapper {
	width: 100%;
}

.message-wrapper h2 {
	margin-top: 60px;
	color:red;
}

/* 黒板 */
.blackboard-box{
  background: #104300;
  margin: 1em 0;
  padding: 1em 1em 0 1em;
  border: 8px solid #a60;
  box-shadow: 2px 2px 4px #999, 2px 2px 2px #020 inset;
}

.blackboard-box p{
  margin: 0;
  padding: 0;
  color: #fff;
  text-shadow: 0px 0px 2px #808080;
}

.chalk1{
  display: block;
  margin-top: 10px;
  margin-left: 90%;
  border: solid 3px #fff;
  width: 15px;
  border-radius: 3px 2px 0 2px;
}

.chalk2{
  display: block;
  margin-top: -6px;
  margin-left: calc(90% - 30px);
  border: solid 3px #ffee58;
  width: 20px;
  border-radius: 3px 2px 0 2px;
}

/* ページトップに戻るボタン */
#page_top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 0;
  bottom: 50px;
  background: #3f98ef;
  opacity: 0.6;
  border-radius: 50%;
}
#page_top a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f135';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -5px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}

/* image */
img {
	max-width: 100%;
	height: auto;
	border-style: none;
	vertical-align: bottom;
}

/* スクリーンサイズ 幅 1200px 以上で適用される設定・上から継承したスタイルを上書き */
@media only screen and (min-width: 1200px) {

/* header */
#wrap2 {
	background-image: url(images/bg.png);
}
#mainImg {
	text-align: center;
}
}

@media all and (max-width: 1200px) {

#wrap2 p {
	text-align: center;
	font-size:0.8rem;
}
}

@media all and (max-width: 767px) {

#wrap2 p {
	text-align: center;
	font-size:0.9rem;
}
}