@charset "utf-8";

/*--------------------
      共通ヘッダー
--------------------*/

main {
  margin-top: 80px;
}
header {
  display: flex;
  width: 100%;
  height: 80px;
  background: rgba(255,255,255, .9);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}
header .logo {
  margin-top: 13px;
  margin-left: 30px;
}
header nav {
  display: flex;
  margin-left: auto;
  margin-right: 30px;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 600;
}
header nav a,
header nav a:visited,
header nav a:active {
  color: #000;
  text-decoration: none;
  line-height: 1;
}
header nav a.btn-bg,
header nav a.btn-bg:visited,
header nav a.btn-bg:active {
  color: #fff;
}
header nav a.btn-outline,
header nav a.btn-outline:visited,
header nav a.btn-outline:active {
  color: #f33;
}

.header-menu {
  display: flex;
}
.header-menu a {
  margin-right: 2.5rem;
}
.header-btn {
  display: flex;
}
.header-btn a {
  margin-right: 1.5rem;
  padding: 12px;
  width: 145px;
  height: 40px;
  border-radius: 50px;
  font-size: 1.5rem;
  text-align: center;
}
.header-small {
  font-size: 1.1rem;
}
.caret-right {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0rem;
  border-style: solid;
  border-color: transparent;
  border-width: .6rem .8rem;
  border-left-color: currentColor;
  vertical-align: middle;
  color: #f33;
  line-height: 1;
}

.only-sp {
  display: none;
}

@media screen and (max-width: 940px) {
  main {
    margin-top: 60px;
  }
  header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 60px;
    background: rgba(255,255,255, .9);
    z-index: 10000;
  }
  header .logo img {
    position: absolute;
    top: 9px;
    left: 15px;
    width: 125px;
    margin: 0;
  }
  .only-sp {
    display: inline-block;
    position: absolute;
    top: 13px;
    right: 60px;
  }
  .only-sp a {
    text-decoration: none;
  }
  .sp-btn {
    margin-left: 5px;
    padding: 8px 20px 9px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
  }
  header .btn-bg {
    padding: 8px 25px 9px;
  }

  nav.__open {
    top: 60px;
    right: 0;
    padding-bottom: 100px;
  }
  header nav {
    display: block;
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(235,235,235, .95);
    transition: 0.3s all;
    overflow-y: auto;
    margin-right: 0;
    padding: 5rem 1.5rem;
    font-size: 1.7rem;
  }
  .header-menu {
    display: block;
    text-align: center;
  }
  .header-menu a {
    display: block;
    margin-right: 0;
    margin-bottom: 3.5rem;
  }
  .header-btn {
    display: block;
    position: relative;
  }
  .header-btn a {
    display: block;
    position: relative;
    width: 50%;
    height: 54px;
    margin-left: 0;
    margin: 2rem auto;
    padding: 19px;
  }
  .header-small {
    margin-top: 3rem;
    text-align: center;
    line-height: 3;
  }
}

@media screen and (max-width: 577px) {
  main {
    margin-top: 50px;
  }
  header {
    height: 50px;
  }
  header .logo img {
    width: 90px;
    top: 10px;
    left: 12px;
  }
  .only-sp {
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 55px;
  }
  .sp-btn {
    margin-left: 5px;
    padding: 7px 15px 8px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
  }
  .only-sp .btn-bg {
    padding: 7px 20px 8px;
  }
  nav.__open {
    top: 50px;
  }
  header nav {
    top: 50px;
  }
  .header-btn a {
    width: 70%;
  }
}

@media screen and (max-width: 400px) {
  .only-sp .btn-outline {
    display: none;
  }
}

/* humberger */

@media screen and (max-width:940px) {
  .menu-trigger {
    display: block;
    cursor: pointer;
    position: fixed;
    width: 30px;
    height: 27px;
    top: 17px;
    right: 15px;
    z-index: 100000;
  }
  .menu-trigger,
  .menu-trigger span {
    display: inline-block;
    transition: all .4s;
    box-sizing: border-box;
  }
  .menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #505050;
  }
  .menu-trigger span:nth-of-type(1) {
    top: 0;
  }
  .menu-trigger span:nth-of-type(2) {
    top: 12px;
  }
  .menu-trigger span:nth-of-type(3) {
    bottom: 0;
  }
  .menu-trigger.active span {
    background-color: #505050;
  }
  .menu-trigger.active span:nth-of-type(1) {
    -webkit-transform: translateY(12px) rotate(-45deg);
    transform: translateY(12px) rotate(-45deg);
  }
  .menu-trigger.active span:nth-of-type(2) {
    -webkit-transform: translateY(0) rotate(45deg);
    transform: translateY(0) rotate(45deg);
  }
  .menu-trigger.active span:nth-of-type(3) {
    opacity: 0;
  }
}

@media screen and (max-width:577px) {
  .menu-trigger {
    top: 12px;
    right: 12px;
  }
}