/* common */

@media screen and (min-width: 768px) {
  .pc-none {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .sp-none {
    display: none;
  }

  #top_contents h2 {
    font-size: 20px;
    font-weight: 900;
  }

  #top_contents h2 p {
    font-size: 14px;
  }
}

/* header */

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  width: 100%;
  padding: 0px 15px 5px 15px;
  height: 75px;
}

#head-logo {
  float: unset;
  width: 100%;
  max-width: 150px;
  margin-top: 1px;
}

#global-nav {
  float: unset;
  width: unset;
  margin-right: -20px;
}

#global-nav ul {
  display: flex;
  margin-right: 20px;
}

#global-nav li {
  float: unset;
}

.menu1-last a:hover {
  padding-top: 17px !important;
  padding-bottom: 13px !important;
}

.top-line {
  position: absolute;
  z-index: 100;
  background-color: #ccc;
  width: 100%;
  height: 1px;
  top: 72px;
}

@media screen and (max-width: 999px) {
  #global-nav a,
  .menu1-last a {
    font-size: 14px;
    padding: 17px 15px 17px 15px !important;
  }

  #global-nav {
    margin-right: unset;
  }
}

@media screen and (min-width: 768px) {
  .header-tab-box01 {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  #header {
    height: unset;
    padding: 15px 15px;
  }

  #inner {
    border-top: none;
  }

  #head-logo img {
    max-width: 100px;
    margin-top: 5px;
  }

  #global-nav {
    display: none;
  }

  .top-line {
    display: none;
  }

  /* ハンバーガーメニュー */
  .header-tab-box01 {
    margin-left: auto;
    margin-right: 40px;
  }

  #nav-open01 {
    position: fixed;
    z-index: 20;
    right: 20px;
    top: 20px;
    display: inline-block;
    width: 30px;
    height: 22px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
  }

  /*ハンバーガーアイコン*/
  #nav-open01 span,
  #nav-open01 span:before,
  #nav-open01 span:after {
    position: absolute;
    transition: all 0.4s;
    height: 3px;
    width: 30px;
    border-radius: 3px;
    background: #0f4793;
    display: block;
    content: "";
    cursor: pointer;
    z-index: 9999;
  }

  #nav-open01 span:before {
    bottom: -10px;
  }

  #nav-open01 span:after {
    bottom: -20px;
  }

  /*中身*/
  #nav-content01 {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: 0.2s ease-in-out;
  }

  #nav-content01.open {
    display: block;
    opacity: 1;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 1000px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
  }

  #nav-content01.open:before {
    content: "";
    overflow: hidden;
    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -o-filter: blur(10px);
    /* -ms-filter: blur(10px); */
    filter: blur(10px);
    z-index: -1;
  }

  /*三本線*/
  #nav-open01.active span {
    -webkit-transform: translateY(8px) rotate(-45deg);
    transform: translateY(8px) rotate(-45deg);
  }

  #nav-open01.active span:before {
    -webkit-transform: translateY(-8px) rotate(45deg);
    transform: translateY(-8px) rotate(45deg);
    opacity: 0;
  }

  #nav-open01.active span:after {
    -webkit-transform: translateY(-16px) rotate(45deg);
    transform: translateY(-16px) rotate(90deg);
    bottom: -17px;
  }

  /*チェックが入ったら表示*/

  .nav-list01 {
    margin-top: 70px;
  }

  .nav-list01 ul li {
    position: relative;
    font-size: 18px;
    border-top: 2px solid #0f4793;
    padding: 10px 20px 10px 20px;
  }

  .nav-list01 ul li:last-child {
    border-bottom: 2px solid #0f4793;
  }

  .nav-list01 ul li::before {
    position: absolute;
    content: "";
    background-color: #0f4793;
    height: 2px;
    width: 15px;
    right: 20px;
    top: 20px;
    transform: rotate(45deg);
  }

  .nav-list01 ul li::after {
    position: absolute;
    content: "";
    background-color: #0f4793;
    height: 2px;
    width: 15px;
    right: 20px;
    top: 30px;
    transform: rotate(-45deg);
  }

  .nav-list01 ul li a {
    color: #333 !important;
    font-weight: 500;
    text-decoration: none;
  }

  /* ハンバーガーメニュー */
}

/* visual */

@media screen and (min-width: 768px) {
  .sp-v {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  #main_visual {
    display: none;
  }

  .sp-v__top {
    position: relative;
  }

  .sp-v__top--img {
    width: 100%;
  }

  .sp-v__top--text {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 30px !important;
    color: #fff !important;
  }

  .sp-v__middle {
    background-color: #0f4793;
    color: #fff;
    text-align: center;
    padding: 20px 0 20px 0;
    font-size: 14px;
    margin-top: -5px;
  }

  .sp-v__banners {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }

  .sp-v__banners a {
    /* padding: 0 18px; */
    padding: 0 10px;
  }

  .sp-v__banners a:first-child {
    text-align: right;
  }

  .sp-v__banners a:last-child {
    text-align: left;
  }

  .sp-v__banners img {
    /* width: 90%; */
    width: 96%;
    max-width: 250px;
  }
}

@media screen and (max-width: 500px) {
  .sp-v__top--text {
    top: 40px;
    right: 30px;
    font-size: 20px !important;
  }
}

/* service */

.sub_area {
  max-width: 980px;
  width: 90%;
}

.sub_area .block_out:first-child {
  margin: 0 0 20px 1%;
}

@media screen and (max-width: 767px) {
  .sub_area {
    /* width: 90%; */
    width: 96%;
  }

  .sub_area .block_out {
    /* width: calc(47%); */
    width: calc(47.5%);
    margin: 0 5px 20px 5px;
  }

  .sub_area .block_out:first-child {
    margin: 0 5px 0 5px;
  }

  .sub_area .block_out img {
    border: none;
  }

  .sub_area .block_title {
    font-size: 16px;
    margin-top: 10px;
  }

  .sub_area .block_out div {
    font-size: 14px;
  }
}

@media screen and (max-width: 500px) {
  .sub_area .block_out {
    /* width: calc(46%); */
    width: calc(46.5%);
  }
}

/* news */

@media screen and (max-width: 767px) {
  .info-box li span {
    margin-left: 0;
    margin-top: 10px;
    display: block;
  }

  .ichiran_button.list3 {
    margin: 40px 0px 0px 0px;
  }

  #top_contents .ichiran_button a {
    padding: 10px 70px 10px 50px;
  }

  #top_contents .ichiran_button a:after {
    right: 40px;
  }
}

/* banner */

.banner_area a {
  text-align: center;
}

.banner_area img {
  width: 90%;
}

@media screen and (max-width: 767px) {
  .sub_area .banner_area {
    margin: 0 0 0 0;
  }

  .sub_area .banner_area a:first-child {
    margin: unset;
  }

  .banner_area img {
    width: 100%;
  }
}

/* footer */

#footer .footer_inner {
  width: 100%;
  max-width: 980px;
  display: flex;
}

#footer .footer_left {
  float: unset;
  margin-left: 20px;
}

.footer_right {
  float: unset;
  display: flex;
}

#footer ul {
  float: unset;
}

@media screen and (max-width: 999px) {
  #footer ul {
    margin-left: 10px;
    width: 120px;
  }

  #footer ul:last-child {
    margin-right: 20px;
  }
}

@media screen and (max-width: 767px) {
  #footer {
    border-top: none;
  }

  #footer .footer_inner {
    flex-direction: column;
  }

  #footer .footer_left {
    text-align: center;
    margin-left: 0;
    width: 100%;
    padding-top: 30px;
  }

  .footer_right {
    display: none;
  }

  .footer_sp {
    width: 90%;
    margin: 0 auto 0 auto;
  }

  #footer ul {
    margin-left: 0;
    width: unset;
  }

  #footer ul:last-child {
    margin-right: 0;
  }

  .footer_sp ul li {
    position: relative;
    font-size: 20px;
    border-top: 2px solid #0f4793;
  }

  .footer_sp ul li:last-child {
    border-bottom: 2px solid #0f4793;
  }

  .footer_sp ul li::before {
    position: absolute;
    content: "";
    background-color: #0f4793;
    height: 2px;
    width: 15px;
    right: 20px;
    top: 20px;
    transform: rotate(45deg);
  }

  .footer_sp ul li::after {
    position: absolute;
    content: "";
    background-color: #0f4793;
    height: 2px;
    width: 15px;
    right: 20px;
    top: 30px;
    transform: rotate(-45deg);
  }

  .footer_sp ul li a {
    padding: 10px 20px 10px 20px;
    color: #333 !important;
    font-weight: 500;
  }

  #copyright {
    padding: 15px 0;
    font-size: 9px;
  }
}
