  @charset "utf-8";

  body {
    margin: 0;
    width: 100%;
    height: 100vh;
    font-family: 'メイリオ', serif;
  }

  .wrap {
    display: flex;
    min-height: 100lvh;
    flex-direction: column;
  }

  #header {
    opacity: 0.75;
    width: 100%;
    height: auto;
  }

  .ksc-logo {
    width: 3%;
    display: block;
    margin: 0 70px;
    position: relative;
    top: 55px;
  }

  p.top-title {
    margin-top: auto;
    margin-left: 7%;
  }

  .top-title {
    font-size: 2rem;
    width: 90%;
    height: auto;
    font-weight: bolder;
  }

  .btn-menu {
    display: none;
  }

  nav {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    position: relative;
    right: 2%;
  }

  nav a:hover {
    opacity: 0.75;
  }

  nav a {
    text-decoration: none;
    font-size: 1.3rem;
    color: #000;
    font-weight: bolder;
    margin-left: 80px;
    outline: none;
  }

  li.has-menu:hover .sub-menu {
    display: block;
    position: relative;
  }

  li.has-menu .sub-menu {
    display: none;
    padding: 1rem 2rem 1rem 0;
    position: absolute;
    background-color: #93cdd8;
    list-style: none;
    left: 16%;
  }

  .font_policy {
    margin-left: 1rem;
  }

  main {
    width: 100%;
    height: auto;
  }

  /* .animation-text {
    margin-top: 3%;
    padding-left: 25%;
    font-size: 50px;
    overflow: hidden;
    display: flex;
    font-weight: 500;
  }

  .animation-text_bottom {
    font-size: 60px;
    margin-top: 80px;
    padding-left: 30%;
    font-weight: 600;
    overflow: hidden;
  }

  .animation-text span {
    opacity: 0;
  } */

  /*アニメーションで透過を0から1に変化させtext-shadowをつける*/
  /* .animation-text.glow span { animation:animation-text_on 3s ease-out forwards; }

  @keyframes animation-text_on {
    0% { opacity:0; text-shadow: 0 0 0 rgb(213, 33, 33),0 0 0 rgb(213, 33, 33);}
    50% { opacity:1;text-shadow: 0 0 10px rgb(213, 33, 33),0 0 15px rgb(213, 33, 33); }
    100% { opacity:0; text-shadow: 0 0 0 rgb(213, 33, 33),0 0 0 rgb(213, 33, 33);}
  }

  .animation-text_bottom span{opacity: 0;} */

  /*アニメーションで透過を0から1に変化させtext-shadowをつける*/
  /* .animation-text_bottom span { animation:animation-text_bottom_on 3s ease-out forwards; }

  @keyframes animation-text_bottom_on {
    0% { opacity:0; text-shadow: 0 0 0 rgb(213, 33, 33),0 0 0 rgb(213, 33, 33);}
    25% { opacity:1;text-shadow: 0 0 10px rgb(213, 33, 33),0 0 15px rgb(213, 33, 33); }
    50% { opacity:1;text-shadow: 0 0 10px rgb4(213, 33, 33),0 0 15px rgb(213, 33, 33); }
    75% { opacity:1;text-shadow: 0 0 10px rgb(213, 33, 33),0 0 15px rgb(213, 33, 33); }
    100% { opacity:0; text-shadow: 0 0 0 rgb(213, 33, 33),0 0 0 rgb(213, 33, 33);}
  } */

  .text__img {
    opacity: 0.75;
  }

  .background-image {
    background-color: #93cdd8;
    width: 46%;
    clip-path: polygon(100% 0, 90% 90%, -80% 90%);
    height: 65vh;
    position: relative;
    margin-top: 195px;
    margin-left: auto;
    background-attachment: fixed;
    display: block;
  }

  h2 {
    font-size: 2.2rem;
    width: auto;
    position: relative;
    top: 55%;
    left: -3%;
    text-align: justify;
    margin: 0 80px;
    display: block;
  }

  .item1 {
    display: block;
    width: 50%;
    height: 60vh;
    animation: anime 18s infinite both;
    position: absolute;
    top: 30%;
    left: 4%;
  }

  .item1:nth-of-type(2) {
    animation-delay: 6s;
    animation-delay: 6s;
  }

  .item1:nth-of-type(3) {
    animation-delay: 12s;
    animation-delay: 12s;
  }

  @keyframes anime {
    0% {
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    35% {
      opacity: 0;
    }
    50% {
      opacity: 0;
      z-index: 9;
    }
    100% {
      opacity: 0;
    }
  }

  footer {
    position: fixed;
    text-align: center;
    padding: 1rem 0;
    bottom: 0;
    width: 99.5%;
  }

/* モバイルサイズ調整 */

@media screen and (max-width: 1280px) {
  #header {
    width: 100%;
  }
  
  .ksc-logo {
    width: 4%;
    margin: 0 35px;
    top: 35px;
  }

  p.top-title {
    margin-left: 8%;
    font-size: 1.5rem;
  }

  nav {
    bottom: 0;
  }

  nav a {
    font-size: 1rem;
    margin-left: 40px;
  }

  li.has-menu .sub-menu {
    left: 2rem;
    padding: 0.3rem 1rem 0.3rem 0;
  }

  .font_policy {
    margin-left: 1rem;
    left: 0;
  }

  .background-image {
    margin-top: 103px;
    clip-path: polygon(100% 0, 90% 80%, -80% 80%);
  }

  h2 {
    font-size: 1.1rem;
    top: 48%;
  }
  
  .item1 {
    top: 30%;
  }

  footer {
    bottom: -10px;
  }
}

@media screen and (max-width: 768px) {
  #header {
    display: flex;
  }

  .hamburger {
    position: relative;
    display: block;
    margin: 0 0 0 auto;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 300;
    top: 4.3rem;
    left: 33rem;
  }
  
  .hamburger__line {
    position: absolute;
    width: 30px;
    height: 6px;
    right: 4px;
    background-color: black;
    transition: all 0.5s;
  }
  
  .hamburger__line--1 {
    top: 1px;
    width: 50px;
    margin-top: 15px;
  }
  
  .hamburger__line--2 {
    top: 10px;
    width: 50px;
    margin-top: 20px;
  }
  
  .hamburger__line--3 {
    top: 20px;
    width: 50px;
    margin-top: 23px;
  }
  
  /*ハンバーガーがクリックされたら*/
  .open .hamburger__line--1 {
    transform: rotate(-45deg);
    top: 11px;
  }
  
  .open .hamburger__line--2 {
    opacity: 0;
  }
  
  .open .hamburger__line--3 {
    transform: rotate(47deg);
    top: 4px;
  }
  
  /* 
  sp-nav(ナビ)
  =================================== */
  nav {
    position: absolute;
    right: 100%; /*ハンバーガーがクリックされる前はWindow右側に隠す*/
    top: 0;
    width: 50%; /* 出てくるスライドメニューの幅 */
    height: 100vh;
    background-color: #fff;
    transition: all 0.5s;
    z-index: 999;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
    display: block;
  }
  
  /*ハンバーガーがクリックされたら右からスライド*/
  .open nav {
    right: 490px;
  }

    /* 
  black-bg(ハンバーガーメニュー解除用bg)
  =================================== */
  .black-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 130vh;
    z-index: 5;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    cursor: pointer;
    z-index: 100;
  }

  /*ハンバーガーメニューが開いたら表示*/
  .open .black-bg {
    opacity: 0.3;
    visibility: visible;
  }

  .ksc-logo {
    width: 13%;
    padding-left: 5rem;
    padding-top: 5rem;
  }

  p.top-title {
    margin-left: 9rem;
  }

  .background-image {
    left: 16rem;
    top: 15rem;
  }

  h2 {
    font-size: 2.3rem;
    width: 80%;
    top: 25rem;
    left: 3rem;
  }

  .item1 {
    width: 80%;
    height: 60vh;
    top: 13rem;
  }

  footer {
    bottom: 0;
  }
}

@media screen and (max-width: 680px) {
  .hamburger {
    left: 30rem;
  }

  .background-image {
    left: 35rem;
    top: 25rem;
  }

  .item1 {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  #header {
    height: auto;
    width: 100%;
  }

  .ksc-logo {
    width: 12%;
    padding-top: 2.8rem;
    padding-left: 0;
    top: -13px;
    margin: 0 25px;
  }

  .title {
    width: 80%;
  }

  .top-title {
    bottom: 7.5rem;
    left: 7rem;
  }

  p.top-title {
    font-size: 1.1rem;
    margin-left: 4.3rem;
    margin-top: -2.5rem;
  }

  .hamburger {
    position: relative;
    top: 1.3rem;
    left: 0;
  } 

  .hamburger__line--1 {
    top: 4px;
    width: 40px;
  }

  .hamburger__line--2 {
    width: 40px;
  }

  .hamburger__line--3 {
    top: 18px;
    width: 40px;
  }

  .open nav {
    right: 100px;
    width: 80%;
    padding-top: 2rem;
  }

  nav a {
    margin-left: 5rem;
    font-size: 1rem;
  }

  nav li {
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  li.has-menu .sub-menu {
    left: 0rem;
  }

  .sub-menu li {
    padding-top: 1rem;
  }

  .font_policy {
    margin-left: 5rem;
  }

  .font_align {
    padding-left: 80px;
  }

  .background-image {
    left: 0;
    top: 6rem;
    width: auto;
    clip-path: polygon(180% 0, 100% 85%, -115% 85%);
    margin-top: 20px;
  }

  h2 {
    font-size: 1rem;
    left: -4rem;
    top: 55%;
    width: 90%;
    text-align: justify;
  }

  .item1 {
    width: 84%;
    height: 30vh;
    top: 7rem;
    left: 1.8rem;
  }

  small {
    padding-top: 5rem;
  }
}














