/*---ページ設定*/

body {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  background: #fff;
}

h1 {
  font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

a:link,
a:visited,
a:hover,
a:active {
  color: #000;
}

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

/*メニュー用*/

nav.globalMenuSp {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background: #fff;
  color: #000;
  text-align: center;
  transform: translateY(-100%);
  transition: all 0.6s;
  width: 100%;
}

nav.globalMenuSp ul {
  background: #ccc;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

nav.globalMenuSp ul li {
  font-size: 1.1em;
  list-style-type: none;
  padding: 0;
  width: 100%;
  border-bottom: 1px dotted #333;
}

/* 最後はラインを描かない */

nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

nav.globalMenuSp ul li a {
  display: block;
  color: #000;
  padding: 1em 0;
}

/* このクラスを、jQueryで付与・削除する */

nav.globalMenuSp.active {
  transform: translateY(0%);
}

/*ハンバーガー用*/

.navToggle {
  display: block;
  position: fixed;
  /* bodyに対しての絶対位置指定 */
  right: 13px;
  top: 12px;
  width: 42px;
  height: 51px;
  cursor: pointer;
  z-index: 3;
  background: #666;
  text-align: center;
}

.navToggle span {
  display: block;
  position: absolute;
  /* .navToggleに対して */
  width: 30px;
  border-bottom: solid 3px #eee;
  -webkit-transition: .35s ease-in-out;
  -moz-transition: .35s ease-in-out;
  transition: .35s ease-in-out;
  left: 6px;
}

.navToggle span:nth-child(1) {
  top: 9px;
}

.navToggle span:nth-child(2) {
  top: 18px;
}

.navToggle span:nth-child(3) {
  top: 27px;
}

.navToggle span:nth-child(4) {
  border: none;
  color: #eee;
  font-size: 9px;
  font-weight: bold;
  top: 34px;
}

/* 最初のspanをマイナス45度に */

.navToggle.active span:nth-child(1) {
  top: 18px;
  left: 6px;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* 2番目と3番目のspanを45度に */

.navToggle.active span:nth-child(2),
.navToggle.active span:nth-child(3) {
  top: 18px;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*---通常メニュー*/

#niwakon-header {
  width: 100%;
  margin: auto;
  padding: 10px 15px;
}

#niwakon-header_inner {
  text-align: right;
}

#niwakon-header ul li {
  display: inline;
  margin-right: 30px;
}

#niwakon-header ul li a {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 6px;
}

/*---メインコンテンツ*/
.contents {
  width: 100%;
  margin: 100px auto;
  padding: 0 50px;
  font-size: 18px;
/*  font-weight: bold;*/
}

.contents h1 span {
  font-size: 72px;
}

#niwakon .contents h1 {
  font-size: 24px;
  display: flex;
  align-items: center;
  margin: 0;
}

#niwakon .contents h1:before,
#niwakon .contents h1:after {
  content: "";
  flex-grow: 1;
  border-top: 4px dotted #444;
  display: block;
}

#niwakon .contents h1:before {
  margin-right: 10px;
}

#niwakon .contents h1:after {
  margin-left: 10px;
}

/*---フッター*/

/*未分類*/
#footer {
  border-top: 5px solid #92ee98;
  height: 200px;
  margin: 0 auto;
  position: relative;
}

#footer .foot_logo {
  margin: 20px 0 0 120px;
}

#footer small {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  text-align: center;
}

#pagenav {
  text-align: center;
  background-color: #eee;
    margin: -10px;
}

.SNS {
  width: 70px;
  margin: 15px 0 0 20px;
}

@media only screen and (min-width: 769px) {
  /*ハンバーガーメニュー*/
  nav.globalMenuSp {
    display: none;
  }

  .navToggle {
    display: none;
  }
}

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


  /*メニュー*/
  #niwakon-header_inner {
    display: none;
  }
  
  .contents {
    margin: 20px auto;
    padding: 0 10px;
    font-size: 12px;
  }
  
  .contents h1 span {
  font-size: 25px;
}

  #niwakon .contents h1 {
    font-size: 14px;
  }
  
  #footer {
    text-align: center;
  }
  
  #footer .foot_logo {
    margin: 20px auto;
    width: 300px;
    display: block;
}
  
  .SNS {
    width: 50px;
    margin: 5px 10px;
}
  
  #footer small {
    font-size: 8px;
  }
}
