@media screen and (max-width: 639px) {
  /*———————————
基本設定
———————————*/
body {
  font-family: "游明朝","YuMincho","Hiragino Mincho ProN","Hiragino Mincho Pro","ＭＳ 明朝",serif;
  overflow-x: hidden;
}

main {
  max-width: 640px;
  width: 100%;
  position: relative;
}

ul {
  margin: 0;
  padding: 0;
}

div.container {
  margin: 0 20px 0 20px;
}

h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: 25%;
  width: 100%;
  color: #fff;
  letter-spacing: 0.1em;
  font-weight: 400;
  font-size: 1.8em;
}

h2 {
  font-size: 20px;
  line-height: 34px;
  border: 2px solid #c7000a;
  background-color: #000000;
  color: #fff;
  text-align: center;
  margin: 45px 0;
}

h3 {
  color: #c7000a;
  margin: 27px 0;
}

/* スマホ用コンテンツのみを表示 */
img.sp_only{
  display: block;
}
img.pc_only{
  display: none;
}

/*———————————
ヘッダー
———————————*/

header {
  background-color: #fff;
   }

.header_logo {
  margin: 0;
  display: inline-flex;
  padding: 26px 0px 14px 31px;
  width: 100%;
}

.header_logo img{
  height: 100%;
  width: 68%;
}

.eye_catch {
  width: 100vw;
  height: 40vw;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.pt_history{background-image: url(../img/under_page/history/ttl_eye_catch.jpg);}
.pt_contents{background-image: url(../img/under_page/contents/ttl_eye_catch.jpg);}
.pt_join{background-image: url(../img/under_page/join/ttl_eye_catch.jpg);}
.pt_access{background-image: url(../img/under_page/access/ttl_eye_catch.jpg);}
.pt_committee{background-image: url(../img/under_page/committee/ttl_eye_catch.jpg);}
.pt_sponsorship{background-image: url(../img/under_page/sponsorship/ttl_eye_catch.jpg);}

.nav-bar {
  background-color: #fff;
  min-height: 145px;
  padding-left: 0;
  padding-right: 0;
  display: block;
}



/*———————————
ハンバーガーメニュー
———————————*/

.menu_btn {
  width: 100px;
  height: 100px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  position: fixed;
  top: 18px;
  right: 20px;
}
    
#gnav_btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

#gnav_btn span,
#gnav_btn span::before,
#gnav_btn span::after {
   content: "";
   display: block;
   height: 5px;
   width: 60px;
   border-radius: 0px;
   background: #ffffff;
   position: absolute;
  
 }

#gnav_btn span::before {
  bottom: 15px;
}

#gnav_btn span::after {
    top: 15px;
}

/*———————————
メニュー本体
———————————*/

.menu{
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: left;
  background: #333333;
  color: #fff;
  padding-top: 120px;
 }

.menu ul {
  margin: 0;
  display: block;
}

li.menu_item {
  list-style: none;
  width: 100vw;
  height: auto;
  line-height: 50px;
  padding: 5px 50px;
  text-align: left;
  color: #fff;
  box-sizing: border-box;
  font-size: 20px;
  border: none;
}

li.menu_item a {
  display: block;
  color: #fff;
  text-decoration: none;
  height: auto;
}
li.menu_item a:hover {
  color: #fff;
  text-decoration: none;
}

.menu{
  transform: translateX(100vw);
  transition: all .3s linear;
}
.menu.is-active{
  transform: translateX(20vw);
}

/*———————————
メインコンテンツ
———————————*/

section.main_contents {
  margin-bottom: 80px;
}


.container p {
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-bottom: 42px;
  margin-top: 0;
}

/* カラムデザイン */
.column2 {
  display: block;
}
.text_and_img img{
  margin-left: 0px;
}

.img_and_img  {
  display: flex;
  margin-bottom: 26px;
}
.img_and_img .col {
  width: 50%;
}

.col img{
  width: 100%;
}

.sp-col2 {
  display: flex;
}

/* 画像ギャラリー部分 */
.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
 }
 
 .gallery ul {
    display: flex;
   flex-wrap: wrap;
   padding-left: 12px;
   padding-right: 12px;
 }

 .gallery ul li {
   list-style: none;
   text-align: center;
   padding: 12px;
   width: 45%;
 }

  .gallery img{
    max-width: 240px;
    min-height: 100%;
  }

/*———————————
フッター
———————————*/

div.footer {
  background-image: url(../img/footer_bg.jpg);
  height: 325px;
  background-size: cover;
  background-position: right;
  color: #fff;
  display: flex;
  justify-content: left;
  align-items: flex-start;
  padding: 0px 40px 0px 40px;
}
  .footer_logo {
    margin-left: 16px;
    margin-right: 40px;
  }

  .footer img {
    width: 100%;
    margin-top: 30px;
  }
  .footer_contact {
    font-size: 15px;
    margin-top: 59px;
  }

  .footer_contact_ttl {
    font-size: 17px;
    width: 294px;
    padding-bottom: 1em;
    border-bottom: 1px dotted #ededed;
  }

  .footer_contact p {
    line-height: 0.5em;
    letter-spacing: 0.1em;
  }

 .footer_contact_ttl:nth-child(2n) {
    margin-top: 50px;
  }
  .copylight {
    font-size: 12px;
    text-align: center;
    height: 47px;
    line-height: 47px;
  }
}
