/*
Theme Name: 株式会社コハタホームページ
Author: 株式会社コハタホームページ Developer
Version: 1.0.1
*/

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-width: 1200px;
  font-family: "Zen Kaku Gothic New";
  overflow-x: hidden;
}
/* header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  transition: background-color 1s ease;
  z-index: 998;
}
header.click_on {
  background-color: rgba(0, 138, 170, 0.8);
  height: 100%;
  z-index: 998;
}
header .header_container {
  display: flex;
  justify-content: space-between;
  margin: auto;
}
header .header_left {
  margin: auto 0;
  background: white;
  padding: 30px 3% 10px;
  border-radius: 0px 0px 35px 0px;
  cursor: pointer;
}
header .header_right {
  margin-right: 2%;
}
header .icon-hamburger {
  position: relative;
  top: 3px;
  height: 60px;
  width: 60px;
  display: inline-block;
  border-radius: 50%;
  vertical-align: middle;
  cursor: pointer;
}
header .icon-hamburger span {
  background: white;
  position: absolute;
  height: 2px;
  left: 16%;
  width: 70%;
  transition: all 0.4s;
  cursor: pointer;
}
header .icon-hamburger span header .icon-hamburger span {
  content: "";
  background: white;
  position: absolute;
  display: block;
  height: 2px;
  width: 100%;
}
header .icon-hamburger span:nth-of-type(1) {
  top: 28%;
}
header .icon-hamburger span:nth-of-type(2) {
  top: 48%;
}
header .icon-hamburger span:nth-of-type(3) {
  top: 68%;
}
header .icon-hamburger.click_on {
  top: 8px;
}
header .click_on span:nth-of-type(1) {
  top: 30%;
  left: 16%;
  transform: translateY(6px) rotate(-45deg);
}
header .click_on span:nth-of-type(2) {
  opacity: 0;
}
header .click_on span:nth-of-type(3) {
  top: 50%;
  left: 16%;
  transform: translateY(-6px) rotate(45deg);
}

header .menu-container_sp {
  display: none;
  position: absolute;
  width: 75%;
  top: 10%;
  left: 15%;
}
header .menu-container_sp ul.menu {
  padding-left: 0;
}
header .menu-container_sp ul li.menu-item {
  list-style-type: none;
  margin: 30px 0;
}
header .menu-container_sp ul li.menu-item a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 19px;
}
header .menu-container_sp ul li.menu-item span {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  transition: transform 0.6s ease;
  display: inline-block;
  margin-left: 5px;
  transform: rotate(180deg);
  cursor: pointer;
}
header .menu-container_sp ul li.menu-item span {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  transition: transform 0.6s ease;
  display: inline-block;
  margin-left: 5px;
  transform: rotate(180deg);
  cursor: pointer;
}
header .menu-container_sp ul li .sub_categories {
  padding: 10px 0;
}
header .menu-container_sp ul li .sub_categories .category_inner {
  width: 180px;
  margin-right: 30px;
  height: 130px;
}
header
  .menu-container_sp
  ul
  li
  .sub_categories
  .category_inner
  .post-thumnbail {
  background: gray;
  height: 120px;
}
header
  .menu-container_sp
  ul
  li
  .sub_categories
  .category_inner
  .post-thumnbail
  img {
  height: 120px;
}
header
  .menu-container_sp
  ul
  li
  .sub_categories
  .category_inner
  .category_title {
  display: flex;
  justify-content: space-between;
}
header .menu-container_sp ul li .sub_categories .category_inner label {
  position: relative;
  display: block;
  margin-top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: solid 1px white;
}
header .menu-container_sp ul li .sub_categories .category_inner label::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 5px;
  width: 9px;
  height: 1px;
  border-radius: 9999px;
  background-color: #fff;
  transform: rotate(45deg);
  transform-origin: calc(100% - 1px) 50%;
}
header .menu-container_sp ul li .sub_categories .category_inner label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 18px;
  height: 1px;
  border-radius: 9999px;
  background-color: #fff;
}
header .menu-container_sp ul li.menu-item .sub_categories {
  display: none;
}
header .menu-container_sp ul li.open .sub_categories {
  display: flex;
}
header .menu-container_sp ul li.open .sub_categories p.entry-title {
  margin-top: 8px;
  font-size: 16px;
  color: white;
  width: 120px;
}
header .menu-container_sp ul li.open span {
  transform: rotate(0deg);
}
/* aside */
#sidebar {
  position: fixed;
  top: 100px;
  height: 300px;
  right: 0;
  z-index: 998;
}
#sidebar .login_banner,
#sidebar .form_banner {
  position: relative;
  overflow: hidden;
  outline: none;
  font-size: 15px;
  letter-spacing: 0.2em;
  border: 1px solid #008aaa;
  display: inline-block;
  margin: auto;
  width: 50px;
  writing-mode: vertical-rl;
  text-align: center;
  border-radius: 15px 0px 0px 15px;
  cursor: pointer;
  text-decoration: none;
  transition: ease 0.2s;
}
#sidebar .login_banner {
  background: #008aaa;
  height: 180px;
}
#sidebar .form_banner {
  background: #008aaa;
}
#sidebar.click_on .login_banner,
#sidebar.click_on .form_banner {
  border: 1px solid white;
}
#sidebar .login_banner span,
#sidebar .form_banner span {
  position: relative;
  padding-right: 12px;
  display: block;
  z-index: 999;
}
#sidebar .login_banner span {
  color: white;
}
#sidebar .form_banner span {
  color: white;
}
#sidebar .login_banner:before,
#sidebar .form_banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: -250%;
  width: 240%;
  height: 100%;
  transform: skewX(-10deg);
  transform-origin: right top;
  z-index: 998;
}
#sidebar .login_banner:before {
  background: white;
}
#sidebar .form_banner:before {
  background: white;
}
#sidebar #topBtn {
  position: fixed;
  cursor: pointer;
  display: block;
  text-decoration: none;
  background-image: url(./assets/img/top_up.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 30px;
  height: 25px;
  bottom: 20px;
  right: 15px;
  box-sizing: border-box;
  z-index: 998;
}
#loading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: -8px;
  width: 101%;
  height: 101vh;
  transition: all 0.5s;
  overflow: hidden;
  z-index: 999;
}
#loading .spinner {
  position: relative;
  width: 100%;
  height: 100%;
}
#loading .spinner .top {
  background: #3889a7;
  position: absolute;
  height: 50%;
  width: 100%;
  top: 0;
  z-index: -1;
}
#loading .spinner .bottom {
  background: #3889a7;
  position: absolute;
  top: 50%;
  height: 50%;
  width: 100%;
  z-index: 2;
}
#loading .spinner img {
  position: absolute;
  width: 70px;
  display: block;
  left: 40vw;
  opacity: 1;
  z-index: 1;
}
#loading .spinner .top img {
  bottom: -63px;
}
#loading .spinner .top img:nth-of-type(2) {
  left: calc(40vw + 110px);
}
#loading .spinner .top img:nth-of-type(3) {
  left: calc(40vw + 215px);
}
#loading .spinner img:last-of-type {
  width: 319px;
}
#loading .line {
  width: 100%;
  height: 2px;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}
#loading .top .line {
  top: 50vh;
}
#loading .bottom .line {
  top: -0.5vh;
}
#loading .line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
}
#loading .spinner .top {
  animation: revealTop 1.1s 2.3s forwards;
}
#loading .spinner .bottom {
  animation: revealBottom 1.1s 2.3s forwards;
}
#loading .spinner .top img:first-of-type {
  animation:
    moveUp 0.8s ease-in-out forwards,
    moveK 0.3s 1.6s ease-in-out forwards;
}
#loading .spinner .top img:nth-of-type(2) {
  animation:
    moveUp 0.8s ease-in-out forwards,
    moveH 0.3s 1.6s ease-in-out forwards;
}
#loading .spinner .top img:nth-of-type(3) {
  animation:
    moveUp 0.8s ease-in-out forwards,
    moveT 0.3s 1.6s ease-in-out forwards;
}
#loading .spinner .top img:nth-of-type(4) {
  animation:
    moveUp 0.8s ease-in-out forwards,
    moveLeft 0.3s 1.2s ease-in-out forwards;
}
/* ローディングアニメーション */
@keyframes fadeBorder {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes moveUp {
  0% {
    bottom: -63px;
  }
  100% {
    bottom: 3px;
  }
}
@keyframes moveLeft {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50px);
    opacity: 0;
  }
}

@keyframes moveK {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(70px);
  }
}
@keyframes moveH {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(23px);
  }
}
@keyframes moveT {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-20px);
  }
}
@keyframes revealTop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}
@keyframes revealBottom {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* slider */
#silder_pc .slick-slide {
  display: none;
  transition:
    transform 0.5s,
    opacity 0.5s;
}
#silder_pc .slick-active {
  display: block;
}
#silder_pc .sp-slide img {
  /* transition: opacity 1s ease-in-out, background-color 5s ease-in-out; */
}
#silder_pc .sp-selected img {
  background-color: white;
  animation: zoomIn 15s linear 0s normal both;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2); /* 拡大率 */
  }
}
/* contact */
section#contact {
  padding: 40px 0;
  background: #0089a9;
  margin: -8px;
  color: white;
  margin-top: 300px;
}
section#contact .contact_conteiner {
  width: 85%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}
section#contact .contact_left h2 {
  font-size: 52px;
  letter-spacing: 0.1em;
  line-height: 0.5em;
}
section#contact .contact_left h2 span {
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-left: 5px;
}
section#contact .contact_right {
  text-align: center;
  width: 50%;
}
section#contact .contact_right h2 {
  font-size: 20px;
  color: white;
  vertical-align: middle;
  margin-bottom: -10px;
}
section#contact .contact_right h2 a {
  color: white;
  text-decoration: none;
  font-size: 32px;
}
section#contact .contact_right .form_banner {
  background: white;
  width: 360px;
  margin: 10px auto;
  padding: 30px 0;
  cursor: pointer;
}
section#contact .contact_right .form_banner a {
  color: #0089a9;
  font-size: 20px;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-decoration: none;
}
/* アコーディオン */
h3.accordion_submit {
  position: relative;
  cursor: pointer;
}
h3.accordion_submit + p,
h3.accordion_submit + div {
  display: none;
}
h3.accordion_submit.open + p,
h3.accordion_submit.open + div {
  display: block;
}
h3.accordion_submit:after {
  content: "";
  border-top-width: 5px;
  border-left-width: 6px;
  border-right-width: 6px;
  border-top-style: solid;
  border-left-style: solid;
  border-right-style: solid;
  border-top-color: rgba(0, 0, 0, 0.45);
  border-left-color: transparent;
  border-right-color: transparent;
  width: 0px;
  height: 0px;
  display: block;
  position: absolute;
  top: 50%;
  right: 0.5em;
}
h3.accordion_submit.open:after {
  border-top-width: 0px;
  border-bottom-width: 5px;
  border-top-style: none;
  border-bottom-style: solid;
}
/* footer */
footer {
  background: #b4b4b4;
  color: white;
  padding-top: 60px;
}
footer .footer_list {
  display: flex;
  justify-content: center;
  width: 85%;
  max-width: 1280px;
  margin: auto;
}
footer .footer_left {
  width: 35%;
  min-width: 300px;
}
footer .footer_left .footer_address a {
  cursor: pointer;
}
footer .footer_left p code,
footer .footer_left .footer_address p a {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
}
footer .footer_left p code {
  margin-right: 20px;
}
footer .footer_right {
  min-width: 300px;
  margin-top: -1em;
}
footer ul.footer_link {
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  margin: 10px auto;
}
footer .footer_bottom ul.footer_link {
  margin-bottom: 20px;
}
footer ul.footer_link li {
  position: relative;
  list-style-type: none;
  width: 100px;
}
footer ul.footer_link li:nth-of-type(2) {
  text-align: center;
}
footer ul.footer_link li:last-of-type {
  text-align: right;
}
footer ul.footer_link li:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  z-index: 0;
  width: 100%;
  height: 1px;
  background: white;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
  transform: translateX(-25%);
  opacity: 0;
}
footer .footer_left .footer_address p a,
footer ul.footer_link li a {
  list-style-type: none;
  color: white;
  text-decoration: none;
  cursor: pointer;
}
footer .footer_right .footer_bannerlink {
  display: flex;
  justify-content: space-between;
}
footer .footer_right .login_banner,
footer .footer_right .form_banner {
  position: relative;
  overflow: hidden;
  outline: none;
  display: inline-block;
  border: 1px solid white;
  margin: 0;
  width: 200px;
  text-align: center;
  padding: 5px 0;
  text-decoration: none;
  cursor: pointer;
  transition: ease 0.2s;
}
footer .footer_right .login_banner {
  background: #b4b4b4;
  margin-right: 20px;
}
footer .footer_right .form_banner {
  background: white;
}
footer .footer_right .login_banner span,
footer .footer_right .form_banner span {
  position: relative;
  z-index: 100;
}
footer .footer_right .login_banner span {
  color: white;
}
footer .footer_right .form_banner span {
  color: #b4b4b4;
}
footer .footer_right .login_banner:before,
footer .footer_right .form_banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  transform: skewX(-25deg);
  transform-origin: right top;
  background: #b4b4b4;
  z-index: 99;
}
footer .footer_right .login_banner:before {
  background: white;
}
footer .footer_right .form_banner:before {
  background: #b4b4b4;
}
footer .footer_credit {
  text-align: center;
  padding: 10px 0;
}
/* animation */
header .click_on span:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
header .click_on span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
#sidebar .login_banner:hover:before,
#sidebar .form_banner:hover:before,
footer .footer_right .login_banner:hover:before,
footer .footer_right .form_banner:hover:before {
  animation: skewanime 0.5s forwards;
}
#sidebar .login_banner:hover span {
  color: #008aaa;
}
#sidebar .form_banner:hover span {
  color: #b4b4b4;
}
footer ul.footer_link li:hover::before {
  transform: translateX(0);
  opacity: 1;
}
footer .footer_right .login_banner:hover span {
  color: #b4b4b4;
}
footer .footer_right .form_banner:hover span {
  color: white;
}
p.scroll_text {
  opacity: 0.25;
}
/* 会員ページログイン　*/
#main form.post-password-form {
  height: 27.1vh;
}
#main form.post-password-form p {
  display: block;
  text-align: center;
  margin-top: 60px;
}
#main form.post-password-form p span {
  opacity: 0.5;
  font-size: 18px;
}
#main form.post-password-form p:first-of-type input {
  width: 40%;
  min-width: 300px;
  height: 40px;
  border: 1px solid;
  display: block;
  margin: 10px auto;
}
#main form.post-password-form p:nth-of-type(2) input[type="submit"] {
  border-radius: 50px;
  width: 300px;
  padding: 10px;
  background-color: #4b88a6;
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
}
.grecaptcha-badge {
  visibility: hidden !important;
}
.sp {
  display: block !important;
}
.pc {
  display: none !important;
}
@keyframes skewanime {
  100% {
    left: -10%; /*画面の見えていない左から右へ移動する終了地点*/
  }
}
@media screen and (max-width: 1200px) {
  body {
    min-width: 784px;
  }
  section .company_desc a.viewmore {
    left: 46.9vw;
    width: 100px;
  }
  section .company_desc a.viewmore:before,
  section .company_desc a.viewmore:after {
    right: -5.2vw;
    left: auto;
  }
}
/* スマホ向け */
@media screen and (max-width: 767px) {
  body {
    min-width: auto;
    margin: 0;
  }
  .wp-block-image .alignleft {
    margin: 0;
  }
  /* ヘッダー　*/
  header .header_left {
    height: 40px;
    padding: 20px 3% 10px;
  }
  header .menu-container_sp ul li.open .sub_categories {
    display: grid;
  }
  header .menu-container_sp ul li .sub_categories .category_inner {
    width: 42vw;
    height: 90px;
  }
  header
    .menu-container_sp
    ul
    li
    .sub_categories
    .category_inner
    .post-thumnbail
    img,
  header
    .menu-container_sp
    ul
    li
    .sub_categories
    .category_inner
    .post-thumnbail {
    height: 83px;
  }
  header .menu-container_sp ul li.open .sub_categories .category_inner a {
    display: flex;
  }
  header
    .menu-container_sp
    ul
    li.open
    .sub_categories
    div.category_inner:nth-of-type(2)
    p.entry-title {
    font-size: 12px;
    margin-bottom: 0;
  }
  header .menu-container_sp ul li.open .sub_categories p.entry-title {
    position: relative;
    z-index: 2;
  }
  header
    .menu-container_sp
    ul
    li
    .sub_categories
    .category_inner
    .category_title {
    position: relative;
    display: block;
    width: 100%;
  }
  header
    .menu-container_sp
    ul
    li
    .sub_categories
    .category_inner
    .category_title:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background: rgba(0, 0, 0, 0.5);
  }
  header .menu-container_sp ul li.menu-item {
    margin: 15px 0;
  }
  header .menu-container_sp ul li .sub_categories .category_inner label {
    margin: 5px;
  }
  header .menu-container_sp ul li.open .sub_categories p.entry-title {
    width: 310px;
    margin-left: 5px;
  }
  /* ローディング　*/
  /*
    #loading .spinner img {left: 30px;}
    #loading .spinner .top img:nth-of-type(2) {
        left: calc(30px + 110px);
    }
    #loading .spinner .top img:nth-of-type(3) {
        left: calc(30px + 215px);
    }
    */
  #loading .spinner img {
    left: 28.683vw;
    width: 9.126vw;
  }
  #loading .spinner .top img:nth-of-type(2) {
    left: calc(28.683vw + 14.342vw);
  }
  #loading .spinner .top img:nth-of-type(3) {
    left: calc(28.683vw + 28.031vw);
  }
  #loading .spinner img:last-of-type {
    width: 41.591vw;
  }
  @keyframes moveK {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(9.126vw);
    }
  }
  @keyframes moveH {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(2.999vw);
    }
  }
  @keyframes moveT {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-2.608vw);
    }
  }
  /* フッター　*/
  #sidebar {
    top: auto;
    height: auto;
    bottom: 60;
  }
  #sidebar .login_banner {
    background: transparent;
    border: none;
    background-image: url(./assets/img/SPicon_01.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 70px;
    height: 50px;
  }
  #sidebar.click_on .login_banner {
    border-radius: 30px 0 0 30px;
  }
  #sidebar .login_banner span {
    display: none;
  }
  #sidebar .login_banner:before {
    content: none;
  }
  footer {
    padding-top: 20px;
  }
  footer .footer_left {
    width: 100%;
  }
  footer .footer_left .footer_address a {
    height: 53px;
  }
  footer .footer_left .footer_address p {
    font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  }
  footer .footer_left p code:after {
    content: "\A";
    white-space: pre-line;
  }
  footer .footer_list {
    display: block;
  }
  footer .footer_top ul.footer_link {
    margin: 30px auto 15px;
  }
  footer .footer_bottom ul.footer_link {
    margin-bottom: 0;
    margin-top: 0;
  }
  footer .footer_right .footer_bannerlink {
    display: grid;
    justify-content: normal;
  }
  footer .footer_right .login_banner,
  footer .footer_right .form_banner {
    width: 100%;
  }
  footer .footer_right .login_banner {
    margin-top: 30px;
    width: 100%;
  }
  footer .footer_right .form_banner {
    margin-top: 20px;
    width: 100%;
  }
  .sp {
    display: none !important;
  }
  .pc {
    display: block !important;
  }
}

a:focus {
  outline: none;
}
