* {
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: "Avenir Next";
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

header {
  height: 90px;
  background-color: rgba(255,255,255,0.7);
  max-width: 100vw;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
  padding: 0px 15px;
  transition: 0.5s;
}

header.scroll-nav {
  height: 75px;
  background-color: rgba(255,255,255,1);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.header-bar {
  width: 100%;
}

.title {
  height: 100%;
  width: 30%;
  float: left;
}

.header-logo {
  width: 35%;
  float: left;
  margin: 0 auto;
  padding-top: 20px;
  padding-left: 5px;
  transition: 0.5s;
}

.logo-scroll-nav {
  height: 100%;
  float: left;
  margin: 0 auto;
  padding: 3% 1%;
  padding-top: 12px;
  padding-left: 10px;
  transition: 0.5s;
}

header a {
  color: black;
}

.popup-menu {
  display: none;
}

.popup-menu-list {
  height: 100%;
}

.popup-menu-item {
  width: 100%;
  height: 20%;
  padding-top: 20px;
  text-align: center;
  z-index: 5;
}

#nav {
  background-color: rgba(19,134,144,0.8);
  display: flex;
  flex-direction: column;
  position: fixed;
  margin: 0 auto;
  text-align: center;
  width: 50%;
  right: -50%;
  height: 310px;
  color: rgba(255,255,255,1);
  transition: 1.5s;
  float: right;
  z-index: 5;
}

#nav ul{
  margin: 0 auto;
  padding: 50px 0px 0px 0px;
  font-size: 14px;
  text-align: center;
  height: 100%;
}

#nav ul li{
  list-style-type: none;
}

#nav a{
  text-decoration: none;
  color: #ffff;
  padding: 20px 45px;
  transition: 0.5s;
}

#nav li a:hover{
  color: #ffffff;
  background: #cd5c5c;
  border-bottom: none;
  height: 100%;
}

#menu-icon {
  display: none;
}

.menu-icon {
  display: none;
  position: relative;
  top: 18px;
  right: 15px;
  width: 35px;
  height: 25px;
  cursor: pointer;
  transition: 0.5s;
  float: right;
}

header .icon-scroll-nav {
  transform: scale(70%) translateY(-9px);
  z-index: 15;
}

.inner_line {
  display: none;
  position: absolute;
  left: 0;
  width: 35px;
  height: 3px;
  transition: 1s;
  border-radius: 4px;
}

#line1 {
  top: 0;
}

#line2 {
  top: 11px;
}

#line3 {
  bottom: 0px;
}

.in{
  transform: translateX(-100%);
}

.line_1,.line_2,.line_3 {
  z-index: 15;
}

header .line_1 {
  transform: translateY(20px) rotate(-45deg);
  top: 0;
  background-color: rgba(255,255,255,0.8);
}

header .line_2 {
  opacity: 0;
  background-color: rgba(255,255,255,0.8);
}

header .line_3 {
  transform: translateY(-20px) rotate(45deg);
  bottom: 0;
  background-color: rgba(255,255,255,0.8);
}

.header-list {
  width: 60%;
  padding: 0px 40px 0px 0px;
  float: right;
  transition: 0.5s;
}

.menu-item {
  padding: 15px 20px;
  line-height: 60px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.5s;
}

.library {
  color: rgba(19,134,144,1);
}

.menu-item::after {
  position: absolute;
  bottom: 15px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: rgba(19,134,144,1);
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

.menu-item:hover {
  color: rgba(19,134,144,1);
}

.menu-item:hover::after {
  bottom: 30px;
  opacity: 1;
  visibility: visible;
}

.list-scroll-nav a {
  padding: 0px 20px;
  line-height: 75px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.5s;
}

.list-scroll-nav a::after {
  position: absolute;
  bottom: 10px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: rgba(19,134,144,1);
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

.list-scroll-nav a:hover {
  color: rgba(19,134,144,1);
}

.list-scroll-nav a:hover::after {
  bottom: 20px;
  opacity: 1;
  visibility: visible;
}

main {
  height: 7200px;
  background-color: #ffff;
}

.top-wrapper {
  height: 657px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: ' ';
  z-index: 4;
}

.top-wrapper:before {
  background-color: rgba(0,0,0,0.2);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: ' ';
  z-index: 4;
}

.container {
  height: 100%;
  width: 100%;
  padding-top: 17%;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  z-index: 5;
}

#main-slide {
  width: 100%;
  height: 657px;
  z-index: 1;
  position: absolute;
  object-fit: cover;
  font-family: 'object-fit: cover;'
}

.movie {
  height: 331px;
  width: 100%;
  display: none;
  z-index: 1;
  background-color: black;
}

.top-wrapper h1 {
  color: white;
  opacity: 1;
  font-size: 55px;
  letter-spacing: 7px;
  padding-top: 30px;
}

.top-wrapper p {
  color: white;
  opacity: 0.7;
  font-size: 20px;
}

.btn-wrapper {
  margin: 90px 0px 0px 0px;
}

.btn {
  text-decoration: none;
  color: white;
  display: inline-block;
  background-color: rgba(19,134,144,1);
  padding: 15px 15px;
  margin: 0px 20px;
  border-radius: 5px;
  border-style: solid;
  border-width: 2px;
  border-color: rgba(201,225,232,1);
  z-index: 2;
}

.btn:hover {
  box-shadow: 0px 5px rgba(63,89,90,1);
  background-color: rgba(10,72,77,1);
  transform: translateY(-5px);
  transition: 0.5s;
}

.btn:active {
  position: relative;
  box-shadow: none;
  top: 5px;
  transition: 0s;
}

.contents {
  background-color: #ffff
}

.title-text {
  margin: 20px 0px 20px 0px;
}

.page-text {
  width: 70%;
  text-align: center;
  margin: 0 auto;
  padding-bottom: 10px;
}

.contents1 {
  height: 1200px;
  width: 100%;
  text-align: center;
  margin-top: 100px;
}

.contents1-text {
  padding: 20px 0px 80px 0px;
}

.contents-btn {
  margin: 30px 0px 0px 0px;
}

.contents1-img {
  height: 500px;
  width: 70%;
  background-image: url(library-img/ノギ図書館夜ver.png);
  background-position: center;
  background-size: cover;
  margin: 0 auto;
}

.contents2 {
  height: 1350px;
  width: 100%;
  text-align: center;
}

.contents2-text {
  padding: 20px 0px 0px 0px;
}

.contents2-img {
  height: 500px;
  width: 70%;
  background-image: url(library-img/ノギ図書館無造作ver.png);
  background-position: center;
  background-size: cover;
  margin: 0 auto;
}

.contents3 {
  height: 1400px;
  width: 100%;
  text-align: center;
  margin-top: 50px;
}

.contents3-text {
  padding: 20px 0px 100px 0px;
}

.contents3-img {
  height: 500px;
  width: 70%;
  background-image: url(library-img/ノギ図書館本棚.png);
  background-position: center;
  background-size: cover;
  margin: 0 auto;
}

.info {
  margin-top: 150px;
}

.sns-list {
  height: 200px;
  text-align: center;
  margin: 0 auto;
}

.sns-text {
  padding-bottom: 20px;
}

.sns-icon {
  font-size: 35px;
  letter-spacing: 10px;
}

.sns-icon a {
  color: rgba(19,134,144,1);
}

.sns-icon a:hover {
  color: rgba(10,72,77,1);
  transform: scale(1.5, 1.5);
  transition: 0.7s;
} /*ちょい遅く、大きくなるように設定*/

.sns-icon a:active {
  color: rgba(10,72,77,1);
  transform: scale(1, 1);
  transition: 0.1s;
}

.calendar {
  width: 70%;
  height: 600px;
  margin-top: 100px;
  margin-left: 180px;
}

.sponsored {
  height: 750px;
  width: 100%;
}

.ads {
  margin: 30px auto;
  display: flex;
  justify-content: center;
  width: 80%;
}

.ad-text {
  margin-top: 150px;
  font-size: 16.5px;
  letter-spacing: 0px;
}

.ad {
  width: 25%;
  float: left;
}

form {
  color: rgba(19,134,144,1);
  width: 100%;
}

.form-tag {
  width: 45%;
  margin: 0 auto;
  text-align: left;
}

.form-desc {
  border-color: rgba(201,225,232,1);
  width: 45%;
  height: 25px;
  border-radius: 3px;
  border-style: solid;
  border-width: 2px;
  margin-top: 10px;
}

.contact-form {
  text-align: center;
  font-size: 16.5px;
  letter-spacing: 0px;
}

.form-tag {
  margin-top: 20px;
}

.form-text textarea {
  height: 120px;
}

.submit-bottom {
  text-decoration: none;
  color: white;
  display: inline-block;
  background-color: rgba(19,134,144,1);
  padding: 10px 20px;
  margin: 20px auto;
  border-radius: 5px;
  border-style: solid;
  border-width: 2px;
  border-color: rgba(201,225,232,1);
}


footer {
  height: 500px;
  width: 100%;
  background-color: rgba(19,134,144,0.6);
  padding: 50px 0px 10px 50px;
  color: white;
}

.footer-left {
  width: 50%;
  float: left;
}

.footer-top {
  height: 80px;
  width: 100%;
}

.footer-logo {
  height: 78px;
  width: 160px;
  background-image: url(homepage-img/フッター白文字.png);
  background-size: cover;
}

.footer-text {
  width: 50%;
  padding-top: 20px;
}

.address {
  padding: 15px 0px 5px 0px;
}

.footer-title {
  float: left;
}

.address-text {
  padding-left: 20px;
}

.address-number {
  padding-left: 10px;
}

.address-text p {
  padding-left: 40px;
}

.mail {
  padding: 20px 0px;
}

.mail-address {
  float: left;
}

.mail-text {
  padding-left: 20px;
}

.mail-text a {
  padding: 10px 0px 10px 20px;
  color: white;
}

.member-list {
  overflow: hidden;
}

.member-title {
  float: left;
  padding: 5px 0px 0px 0px;
}

.member-name {
  float: left;
  padding-left: 20px;
}

.member-name p {
  padding: 5px 0px;
}

.privacy-policy {
  padding: 20px 0px 10px 0px;
}

.privacy-policy a {
  color: white;
}

.footer-right {
  float: right;
  width: 50%;
  height: 350px;
}

.map {
  text-align: center;
  padding-top: 105px;
}
