html {
  font-size: 100%;
}

body {
  color: #24292e;
  font-family: "M PLUS 1p";
}

a {
  text-decoration: none;
}

p {
  font-size: 1.3rem;
}

img {
  max-width: 100%;
}

li {
  list-style: none;
  font-size: 1.2rem;
}

.sitetitle {
  line-height: 1px;
  font-weight: 600;
  font-size: 2.4rem;
}

.sitetitle a {
  color: #24292e;
  display: block;
}

.sec-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 65px;
}

.wrapper {
  max-width: 960px;
  margin: 24px auto 130px auto;
  padding: 0 16px;
}

/* header */

.overlay,
.sp-menu {
  display: none;
}

.pc-menu ul li a {
  font-size: 1rem;
}


#header {
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 4%;
  height: 170px;
}


.headericon {
  object-fit: cover;
  width: 100%;
  height: auto; 
}

#header li img.icon {
  width: 85px;
  height: auto;
  max-width: 600px;
}

#header ul {
  display: flex;
  padding: 10px;
  align-items: center;
  white-space: nowrap;
}

#header ul li {
  font-size: 0.8rem;
  margin-left: 30px;
  margin-top: 10px;
}

#header ul li a {
  color: #24292e;
  transition: all 0.4s;
}

#header ul li a:hover {
  opacity: .5;
}

/* Main */
#main {
  margin-bottom: 80px;
  text-align: center;
  background-color: rgba(106, 255, 47, 0.441);
  border-top: 3px solid rgba(165, 42, 42, 0.531);
}

#main img {
  width: 20%;
  height: 400px;
  max-width: 1920px;
  object-fit: contain;
 
}

/* About */

#about {
  text-align: center;
  height: auto;
}


#about .sec-title {
 
  background-color: green;
  width: 40%;
  color: white;
  border: 1px solid black;
  border-radius: 8px;
  margin: 0 auto 16px auto;
}

#about ul {
  margin-bottom: 30px;
  padding-bottom: 32px;
}

#about ul li:first-child {
  margin-bottom: 30px;
}

#about ul li {
  margin-bottom: 10px;
}

#about ul .title-li {
  font-weight: bold;
  margin-top: 24px;
}


#about ul li img.saburou {
  width: 10%;
  height: auto;
}

#about ul li img.syouko {
  width: 8%;
  height: auto;
}

.access {
  text-align: center;
}
.access h2 {
  font-size: 1.5rem;
  border-top: 1px dotted blue;
  border-bottom: 1px dotted blue;
  text-align: center;
  margin: 32px auto;
  width: 70%;
  
}

.access p {
  padding: 16px;
}

.access iframe {
  margin: 32px 0;
  width: 50%;
  height: 300px;
}

.guide {
  margin: 32px 0;
  text-align: center;
}

.guide div {
  margin-top: 16px;
}

.guide h2 {
  text-align: center;
  padding: 32px 0;
  border-top: 1px dotted blue;
  border-bottom: 1px dotted blue;
}

.guide p {
  padding-bottom: 32px;
}

.guide img {
  width: 70%;

}

/* News */


#news h2 {
  
  background-color: yellow;
  border: 1px solid black;
  width: 50%;
  color: black;
  border-radius: 8px;
  margin: 0 auto 32px auto;
  text-align: center;
}

#news-panf {
  background-color: #5f6a75;
  border-radius: 8px;
}

#news p {
  margin-top: 32px;
}

/* Works */

#works {
  margin-top: 32px;
}

#works h2 { 
  background-color: skyblue;
  width: 40%;
  color: white;
  border-radius: 8px;
  margin: 32px auto;
  text-align: center;
}

#works h3 {
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid rgb(150, 150, 13);
}

#works ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

#works ul li {
  width:31%;
  margin-bottom: 23px;
}

#works ul li img {
  cursor: pointer;
  transition: all .3s;;
}

#works ul li img:hover {
  transform: scale(1.2, 1.2);
  opacity: .2;
}

#works h1 {
  font-size: 1.5rem;
  text-align: center;
}

#works p {
  padding: 8px 0;
}

#works .work-p {
  margin-top: 32px;
}

#works dl {
  margin-top: 60px;
  font-size: 1.2rem;
  padding: 16px;
}

#works dl div {
  margin-bottom: 8px;
}

#works dl div  dt {
  padding: 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

#works dl div  dt::after {
  content: '+';
  position: absolute;
  top: 8px;
  right: 16px;
  transition: transform .3s;
}

#works dl div dd {
  padding: 8px;
  margin: 0;
  display: none;
}

#works dl div.appear dd {
  display: block;
  animation: .3s fadeIn;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* contact */
#contact {
  margin-top: 16px;
}

.contact-p {
  padding-top:  34px;
}

.reserve {
  text-align: center;
  padding: 16px 0;
  margin-bottom: 24px;
}

#contact .icon {
  width: 30%;
}

#contact p {
  text-align: center;
  margin-bottom: 20px;
}

#contact dl {
  display: flex;
  flex-wrap: wrap;
}

#contact dt {
  width: 15%;
  margin-bottom: 10px;
}

#contact dd {
  width: 85%;
  margin-bottom: 10px;
}

#contact dd input,
#contact dd textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  padding: 10px;
}

#contact dd textarea {
  height: 10rem;
}

#contact .button {
  text-align: center;
}

#contact .button input {
  border: 1px solid #24292e;
  padding: 15px 0;
  width: 200px;
  background-color: #24292e;
  color: #fff;
  transition: all.3s;
}

#contact .button input:hover {
  background-color: #fff;
  color: #24292e;
}

/* footer */

footer {
  background: #333;
  color: white;
  padding: 32px 0;
  text-align: center;
}

small {
  font-size: .6rem
}

/* sp */
@media screen and (max-width: 700px) {

h2 {
  font-size: 1rem;
}

p {
  font-size: .9rem;
}

li {
  font-size: .9rem;
}

dt {
  font-size: .9rem;
}

dd {
  font-size: .9rem;
}

.sec-title {
  font-size: 1rem;
}

  /* header */

  #header {
    border-bottom: 3px solid rgba(165, 42, 42, 0.531);
  }
  
  .headericon {
    width: 80%;
  }

  .pc-menu {
    display: none;
  }


  .sp-menu  {
    display: block;
    position: absolute;
    top: 50px;
    right: 16px;
    font-size: 32px;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 8px;
  }

  .sp-menu #open {
    font-size: 32px;
    line-height: 64px;
    cursor: pointer;
    
  }

  .sp-menu #open.hide {
    display: none;
  }

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .95);
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s;
  }

  .overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .overlay #close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    cursor: pointer;
  }

  .overlay li {
    margin-top: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s, transform .4s ;
  }

  .overlay.show li {
    opacity: 1;
    transform: none;
  }


  #header {
   margin: 0;
   font-size: 22px;
   
  }

.overlay li .icon {
  width: 7rem;
}

/* Main */

#main {
  width: 100%;
  height: auto;
}
  

#main img{
  width: 65%;
  height: auto;
}
  /* About */


  .access  {
    margin-bottom: 50px;
  }

  .access iframe {
    width: 100%;
  }

  .access h2 {
    font-size: 1rem;
  }
 

  #about h2 {
    margin: 0 auto 32px auto;
  }

  #about ul li img.saburou {
    width: 30%;
    height: auto;
  }
  
  #about ul li img.syouko {
    width: 24%;
    height: auto;
  }

 /* News */


 #news {
    margin: 24px auto;
 }

  /* Works */

  #works ul {
    flex-direction: column;
  }

  #works ul li {
    width: 100%;
    text-align: center;
  }


  /* contact */
  #contact dl {
    flex-direction: column;
  }

  #contact dt {
    width: 100%;
    margin-bottom: 5px;
  }

  #contact dd {
      width: 100%;
     
    }
  .reserve  {
    padding-top: 0;
  }

  }
