body {
  border-top: 2px solid #0065AF;
}
/* 各ページのheaderの1つ下の要素にmargin-topを入れる必要がある */
.main {
  margin-top: 93px;
}
.active {
  display: block;
  transition: 0.5s;
}
#header_n {
  width: 100%;
  position: fixed;
  background-color: #FFF;
  padding: 0 30px;
  z-index: 1000;
  margin-top: -2px;
  border-top: 2px solid #0065AF;
}
.toppage #header_n {
  margin-top: -14px;
}
#header_n h1 {
  position: relative;
  display: flex;
}
#header_n h1 a {
  order: 1;
}
#header_n h1 p {
  float: none;
  order: 2;
  margin-right: 15px;
}
#header_n div.six {
  position: relative !important;
  top: auto;
  right: auto;
  order: 3;
}
#header_n div.six img {
  width: 70px;
  float: none;
}
#header_n #globalNavi1 {
  left: 44px;
}
#header_n #subnavi {
  top: 30px;
  right: 30px;
}
#header_n #globalNavi2 {
}
#header_n #globalNavi1 li.current {
  background-color: #267EBC;
}
#header_n #globalNavi1 li.current a {
  color: #FFF !important;
}

#header_n #globalNavi1 li a:hover,
#header_n #globalNavi2 li a:hover {
  background-color: #0065AF !important;
  color: #FFF !important;
}
.openbtn1, #g-nav {
  display: none;
}
#header_n.UpMove{
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
  transform: translateY(0);
  }
  to {
    opacity: 0;
  transform: translateY(-100px);
  }
}

/*　下に下がる動き　*/

#header_n.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
    opacity: 0;
  transform: translateY(-100px);
  }
  to {
    opacity: 1;
  transform: translateY(0);
  }
}

.page-title {
  width: 100%;
  height: 270px;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  margin-bottom: 15px;
  border-top: 1px solid #e5e5e5;
  margin-top: 92px;
}
.page-title .title-box {
  padding: 18px 34px 18px 29px;
  background-color: rgba(0, 101, 175, 0.8);
  display: inline-block;
  margin-top: 57px;
  margin-left: 110px;
}
.page-title .title-box h2 {
  font-size: 34px;
  color: #FFF;
  font-weight: bold;
  margin-bottom: 17px;
}
.page-title .title-box p {
  font-size: 14px;
  color: #FFF;
  line-height: 24px;
  font-weight: bold;
}
.page-title .title-box p span {
  white-space: nowrap;
}
.page-title.tochikatu0100 {
  background: url('../img/main_visual/bn_img_001.png');
  margin-top: 105px;
}
.page-title.kenchiku {
  background: url('../img/main_visual/bn_img_003.png');
  margin-top: 105px;
}
.page-title.b0201reform {
  background: url('../img/main_visual/bn_img_004.png');
  margin-top: 105px;
}
.page-title.manage {
  background: url('../img/main_visual/bn_img_005.png');
  margin-top: 105px;
}
.page-title.owner {
  background: url('../img/main_visual/bn_img_006.png');
  margin-top: 105px;
}
.page-title.kigyou {
  background: url('../img/main_visual/bn_img_007.png');
  margin-top: 105px;
}
.page-title.shisan {
  background: url('../img/main_visual/bn_img_008.png');
  margin-top: 105px;
}
.page-title.nairankai {
  background: url('../img/main_visual/bn_img_009.png');
  margin-top: 105px;
}
.page-title.master {
  background: url('../img/main_visual/bn_img_010.png');
  margin-top: 105px;
}
.page-title.sentou {
  background: url('../img/main_visual/bn_img_011.png');
  margin-top: 105px;
}
.page-title.saiyou{
  background: url('../img/main_visual/bn_img_012.png');
  margin-top: 105px;
}
.popup-banner {
  position: fixed;
  bottom: 55px;
  right: 30px;
  text-align: right;
  z-index: 500;
}
.popup-banner .close-btn {
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
  cursor: pointer;
}
.popup-banner .flex {
  display: flex;
}
.popup-banner .flex .bnr {
  width: 244px;
  height: 60px;
  box-sizing: border-box;
  border: 1px solid #C6C6C6;
  border-radius: 5px;
  box-shadow: 0px 3px 10px #00000033;
  background-color: #EEF1F2;
  text-align: center;
}
.popup-banner .flex .bnr1 {
  margin-right: 15px;
}
.popup-banner .flex .bnr1 p {
  font-size: 14px;
  font-weight: bold;
  margin: 8px 0;
}
.popup-banner .flex .bnr1 .tel {
  font-size: 22px;
  font-weight: bold;
  color: #0065AF;
  /*padding-left: 25px;*/
  /*background: url('../img/open_phone.png') no-repeat;*/
  background-position: left top;
  background-size: 23px 21px;
}
.popup-banner .flex .bnr2 p {
  font-size: 21px;
  font-weight: bold;
  padding-top: 21px;
}
.popup-banner .flex .bnr2 span {
  font-size: 15px;
  margin-left: 8px;
}
#totop {
  bottom: 6px;
}
.swiper {
  position: relative;
}
.swiper-container {
  width: 80%;
  height: 100%;
  margin: 70px auto 80px auto;
  overflow: hidden;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 120px;
}
.swiper-slide a:hover {
  opacity: 0.7;
}
.swiper-slide img {
  width: 286px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}
.swiper-slide h3 {
  font-size: 18px;
  font-weight: bold;
  color: #0065AF;
  margin-bottom: 14px;
  text-align: left;
}
.swiper-slide p {
  font-size: 16px;
  line-height: 22px;
  color: #333;
  text-align: left;
}
.swiper-button-next {
  top: 40%;
  right: 60px;
}
.swiper-button-prev {
  top: 40%;
  left: 60px;
}
.swiper-button-next img,
.swiper-button-prev img {
  width: 46px;
  height: 70px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

/* ヘッダーナビが被ってしまうの防止 */
@media screen and (min-width: 750px) and ( max-width:1070px) {
  #header_n #globalNavi2 {
    top: 48px;
    right: 19px;
  }
}

@media screen and (max-width: 750px) {
  .topmain {
    margin-top: 62px;
  }
  a.tenant {
    display: block;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-top: 1px solid #EEE;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 83px;
  }
  .topmain a.tenant {
    margin-top: 0;
  }
  #header_n {
    height: 85px;
    padding: 0 14px;
    margin-top: -2px;
  }
  .toppage #header_n {
    margin-top: -23px;
  }
  #header_n h1 {
    left: 10px;
    flex-wrap: wrap;
  }
  #header_n h1 a {
    order: 2;
  }
  #header_n h1 a img {
    width: 160px;
  }
  #header_n h1 p {
    float: none;
    order: 1;
    margin-right: 0;
    font-size: 14px;
    width: 100%;
  }
  #header_n div.six {
    position: relative;
    top: auto;
    right: auto;
    order: 3;
  }
  #header_n div.six img {
    width: 54px;
  }
  #header_n .PC {
    display: none !important;
  }
  #header_n #globalNavi1 {
    left: 10px;
  }
  #header_n #subnavi {
    right: 10px;
  }
  #header_n #globalNavi2 {
    right: 10px;
  }

  /* ハンバーガーメニュー */
  .menu-back {
    background-color: #3C3C3C98;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 85px;
    left: 0;
    display: none;
    z-index: 80;
  }
  #g-nav{
    position:absolute;
    z-index: 999;
    top:85px;
    right: 0;
    width:60%;
    height: auto;
    background:#FFF;
    transition: all 0.6s;
    display: none;
    margin-top: -2px
  }

  #g-nav.panelactive{
    display: block !important;
  }

  #g-nav.panelactive #g-nav-list{
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  #g-nav ul {
    z-index: 999;
  }
  #g-nav ul:before {
    font-size: 22px;
    font-weight: bold;
    margin-left: -15px;
  }
  #g-nav .main-nav li {
    list-style: none;
    width: 100%;
    height: 55px;
    border-bottom: 1px solid #DDD;
  }
  #g-nav .main-nav li:last-child {
    border-bottom: none;
  }
  #g-nav .main-nav li a {
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: bold;
    font-size: 20px;
    line-height: 55px;
    padding-left: 28px;
    width: 100%;
    box-sizing: border-box;
  }
  #g-nav .main-nav li.current {
    background-color: #267EBC;
  }
  #g-nav .main-nav li.current a {
    color: #FFF !important;
  }
  #g-nav li a:hover {
    opacity: 0.5;
  }
  #g-nav .sub-nav {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 20px 0;
  }
  #g-nav .sub-nav li {
    margin-bottom: 15px;
  }
  #g-nav .sub-nav li:last-child {
    margin-bottom: 0;
  }
  #g-nav .sub-nav li a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding-left: 28px;
  }
  #g-nav .sub-nav li a:before {
    content: '> ';
  }
  #g-nav .mini-nav {
    padding: 15px 0;
  }
  #g-nav .mini-nav li {
    margin-bottom: 15px;
  }
  #g-nav .mini-nav li:last-child {
    margin-bottom: 0;
  }
  #g-nav .mini-nav li a {
    font-size: 15px;
    color: #333;
    padding-left: 28px;
  }
  #g-nav .mini-nav li a:before {
    content: '> ';
  }

  .openbtn1 {
    display: block;
    position:absolute;
    z-index: 9999;
    top:30px;
    right: 24px;
    cursor: pointer;
    width: 35px;
    height:26px;
  }

  .openbtn1 span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 0;
    height: 3px;
    background-color: #333333;
    width: 100%;
  }

  .openbtn1 span:nth-of-type(1) {
    top:0;
  }

  .openbtn1 span:nth-of-type(2) {
    top: 12px;
  }

  .openbtn1 span:nth-of-type(3) {
    top: 23px;
  }

  .openbtn1.active span:nth-of-type(1) {
    top: 9px;
    left: 0px;
    transform: translateY(6px) rotate(-45deg);
    width: 100%;
  }

  .openbtn1.active span:nth-of-type(2) {
    opacity: 0;
  }

  .openbtn1.active span:nth-of-type(3){
    top: 21px;
    left: 0px;
    transform: translateY(-6px) rotate(45deg);
    width: 100%;
  }

  .page-title {
    width: 100%;
    height: 142px;
    margin-bottom: 24px;
    background-position: center;
    margin-top: 0;
  }
  .page-title .title-box {
    padding: 10px 20px;
    margin-top: 24px;
    margin-left: 17px;
  }
  .page-title .title-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-title .title-box p {
    font-size: 11px;
    color: #FFF;
    line-height: 18px;
  }
  .page-title.tochikatu0100 {
    background: url('../img/main_visual/sp/bn_img_001_sp.png');
	margin-top: 0;
  }
.page-title.kenchiku {
  background: url('../img/main_visual/sp/bn_img_003_sp.png');
  margin-top: 0;
  }
.page-title.b0201reform {
    background: url('../img/main_visual/sp/bn_img_004_sp.png');
	margin-top: 0;
  }
.page-title.manage {
    background: url('../img/main_visual/sp/bn_img_005_sp.png');
	margin-top: 0;
  }
.page-title.owner {
    background: url('../img/main_visual/sp/bn_img_006_sp.png');
	margin-top: 0;
  }
.page-title.kigyou {
    background: url('../img/main_visual/sp/bn_img_007_sp.png');
	margin-top: 0;
  }
.page-title.shisan {
    background: url('../img/main_visual/sp/bn_img_008_sp.png');
	margin-top: 0;
  }
.page-title.nairankai {
    background: url('../img/main_visual/sp/bn_img_009_sp.png');
	margin-top: 0;
  }
.page-title.master {
    background: url('../img/main_visual/sp/bn_img_010_sp.png');
	margin-top: 0;
  }
.page-title.sentou {
    background: url('../img/main_visual/sp/bn_img_011_sp.png');
	margin-top: 0;
  }
.page-title.saiyou {
    background: url('../img/main_visual/sp/bn_img_012_sp.png');
	margin-top: 85px;
  }
  .popup-banner {
    left: 15px;
    bottom: 20px;
    width: 244px;
  }
  .popup-banner .flex {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .popup-banner .flex .bnr1 {
    margin-right: 0;
    margin-bottom: 0;
  }
  .popup-banner .flex .bnr1 p {
    margin-top: 5px;
    margin-bottom: -3px;
  }
  .popup-banner .flex .bnr2{
    display: none;
  }
  .popup-banner .flex .bnr2 p {
    padding-top: 15px;
  }

  #totop {
    bottom: 30px;
  }

  .swiper-container {
    width: 180%;;
    margin: 0 auto 76px auto;
    /* padding: 0 10%; */
  }
  .swiper-wrapper {
    gap: 0px 20px;
  }
  .swiper-slide {
    /* width: 180px; */
    width: 30%;
  	padding: 0;
  }
  .swiper-slide a {
    width: auto;
  }
  .swiper-slide img {
    width: 100%;
    height: 139px;
    margin-bottom: 12px;
  }
  .swiper-slide h3 {
    margin-bottom: 9px;
  }
  .swiper-slide p {
    font-size: 14px;
  }
  .swiper-button-next {
    top: 24%;
    right: 20px;
  }
  .swiper-button-prev {
    top: 24%;
    left: 20px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    /* display: none; */
  }
  .swiper-button-next img,
  .swiper-button-prev img {
    background-color: #FFF;
  }
}
