/* 共通設定 */
* {
  box-sizing: border-box;
} 

header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 40px;
    background-color: lemonchiffon;
    z-index: 99;
}

.image {
  position: fixed;
  top: 0px;
  left: 0px;
  float: left;
  width: 40px;
  height: 40px;
}

.title_main {
  position: fixed;
  top: 0px;
  left: 45px;
  font-size: 20px;
  font-weight: bold; 
  padding-top: 0px 0px 0px 0px;
  margin-top: 6px; 
}

#menu-btn-check {
  display: none;
}

a {
  width: 100px;
}

.bgp {
  position: fixed;
  top: 40px;
  left: 0px;
  height: 100%;
  width: 100%;
  background-image:url(mujin7x.png);
  background-size: cover;
}

.bgp h1{
  padding-left: 50px;
  opacity: 50%;
}

.bgp h2{
  padding-left: 70px;
  opacity: 50%;
}

.btn {
  display: inline;
  font-size: 14px;
  font-weight: bold;
  padding: 20px 0px 5px 0px;
  color: black;
  transition: all  0.5s ease-in;
  width: 80px;
}

.btn:hover {
  color: red;
}

/* 大画面用設定(501px以上) */
@media(min-width: 501px) {
  li {
      position: relative;
      top: 0px;
      left: 180px;
      font-size: 12px;
      height: 25px;
      list-style: none;
      float: left;
  }

  .gnav > li {
    width: 75px;
  }

  .gnav li li {
    width: 70px;
    position:relative;
    float: none;
    top: 5px;
    left: -40px;
    height: 0;
    font-size: 12px;
    transition: .5s;
    background-color: lemonchiffon;
    overflow: hidden;
  }

  .gnav li li:hover a {
    transition: all  0.5s ease-in;
    color: red;
  }

  .gnav li:hover > ul > li {
    height: 1.5rem;
    overflow: visible;
    border-bottom: 1px solid black;
    padding: 2px 0px 0px 10px;
  }
}

/* 小画面設定(500px以下)*/
/* ハンバーガーメニューアイコン描画（未選択）*/
@media(max-width: 500px) {
  .gnav li li {
    width: 150px;
    position:relative;
    float: none;
    left: -40px;
    height: 0px;
    overflow: hidden;
    transition: .5s;
  }

    .gnav > li > a{
    border-bottom: 1px solid black;
  }
  
  .gnav li li a {
    right: 0px;
    width: 100px;
    height: 32px;
    border-bottom: 1px solid black;
    font-weight: bold;
    background-color: lemonchiffon;
  }

  .gnav li li:hover a {
    transition: all  0.5s ease-in;
    background: aqua;
  }

  .gnav li:hover > ul > li {
    height: 2rem;
    overflow: visible;
  }
  
  .menu-btn {
    position: fixed;
    top: 0px;
    right: 0px;
    display: flex;
    height: 40px;
    width: 40px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: lemonchiffon;
  }

  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: black;
    position: absolute;
  }

  .menu-btn span:before {
    bottom: 8px;
  }

  .menu-btn span:after {
    top: 8px;
  }

  /* ハンバーガーメニューアイコン描画（クリック時） */
  #menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
  } 

  #menu-btn-check:checked ~ .menu-btn span::before {
      bottom: 0;
      transform: rotate(45deg);
  }

  #menu-btn-check:checked ~ .menu-btn span::after {
      top: 0;
      transform: rotate(-45deg);
  }

  .menu-content ul li {
      list-style: none;
  }

  .menu-content ul li a {
      display: block;
      width: 100%;
      font-size: 12px;
      box-sizing: border-box;
      color: black;
      text-decoration: none;
      padding: 9px 15px 0px 5px;
      position: relative;
      float:none;
  }

  .menu-content {
    width: 350px;
    height: 0px; 
    position: fixed;
    top: 24px;
    left: 100%;
    z-index: 80;
    background-color: lemonchiffon;
    transition: all 0.5s;
  }
  
  #menu-btn-check:checked ~ .menu-content {
    left: 75%; /*メニューを画面内へ */
  }
}

.title_sub {
  position: relative;
  width: 100%;
  top: 220px;
  text-align: center;
  font-size: 30px;
  color: lemonchiffon;
  /* margin-top: 10px; */
  background-color: rgb(101, 60, 60);
  border: 2px solid lemonchiffon;
}

.container1 {
  margin: 230px 10px 10px 10px;
}

.s_name {
  font-size: 18px;
  color:rgb(101, 60, 60);
  text-align: center;
  border : 2px solid rgb(101, 60, 60);
  border-radius: 5px; 
  background-color: lemonchiffon;
}

.pic {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  border: 2px solid lemonchiffon;
}

.tooltip {
  width: 24%;
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.description {
  display: none;
  position: absolute;
  padding: 10px;
  font-size: 20px;
  line-height: 1.6em;
  color: lemonchiffon;
  border-radius: 5px;
  background: rgb(101, 60, 60);
  width: 150px;
  z-index: 99;
  box-shadow: 4px 4px 4px rgb(0 0 0 /50%);
}

.description:before {
  content: "";
  position: absolute;
  top: -30px;
  left: 20px;
  border: 15px solid transparent;
  border-top: 15px solid rgb(101, 60, 60);
  margin-left: -15px;
  transform: rotateZ(180deg);
}

.tooltip:hover .description{
  display: inline-block;
  top: 95%;
  left: 50px;
}

/* タブレット向けレイアウト */
@media(max-width: 1000px) {
  .tooltip {
    width: 49%;
  }
}


/* スマートフォン向けレイアウト */
@media(max-width: 670px) {
  .tooltip {
    width: 100%;
  }
}
