  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: 30vh;
  }

  .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 {
    padding-top: 10px;
    height: 100%;
  }

  .main-content_header {
    display: flex;
    justify-content: space-around;
  }

  .main-content_img {
    margin-left: -15%;
  }

  .sunset {
    width: 730px;
    height: 400px;
  }

  .second-wrap {
    width: fit-content;
    margin-left: 5%;
    margin-top: 25px;
  }

  .animation-text {
    font-size: 3rem;
    overflow: hidden;
    font-weight: 600;
  }

  .animation-text_bottom {
    font-size: 3.5rem;
    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:1; 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 4s 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 rgb(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:1; text-shadow: 0 0 0 rgb(213, 33, 33),0 0 0 rgb(213, 33, 33);}
  }

  .title-name {
    font-size: 3rem;
    position: relative;
    top: 130px;
    text-align: center;
  }

  table th, table td {
    border: solid 3px #918c8c;
  }

  .background-image {
    background-color: #d0c9c9;
    width: 100%;
    height: auto;
    opacity: 0.75;
    margin-top: 10%;
  }

  iframe {
    width: 40%;
    height: 500px;
    position: relative;
    left: 50%;
    top: 250px; 
  }

  table {
    width: 40%;
    height: auto;
    position: relative;
    left: 6%;
    top: -350px;
  }

  table td {
    font-size: 1.8rem;
    padding-left: 20px;
  }

  .about-company {
    font-size: 2rem;
    position: relative;
    bottom: 200px;
    margin-left: 5%;
  }

  .ttl-corporate {
    margin-left: 30px;
    margin-top: 100px;
  }

  .corporate-item {
    font-size: 2.5rem;
    margin-left: 200px;
    border-bottom: 3px solid #b42e40;
    width: fit-content;
  }

  .corporate-philosophy {
    font-size: 2.5rem;
    margin-left: 200px;
    border-bottom: 3px solid #b42e40;
    width: fit-content;
  }

  .corporate-philosophy_number {
    font-size: 2rem;
    margin-left: 13%;
  }

  .corporate-philosophy_text {
    font-size: 2rem;
    margin-left: 14.5%;
  }

  .environment_img {
    margin: 0 auto;
    width: 1000px;
    height: auto;
    display: block;
  }

  .customer_img {
    margin: 0 auto;
    width: 2500px;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .personal-information {
    margin-left: 18%;
  } 

  .personal-information_img {
    width: 1600px;
    height: auto;
  }

  .personal-page_txt {
    text-decoration: underline;
    color: blue;
    margin-left: 10%;
    font-size: 130%;
    margin-top: -5%;
  }

  .group-information {
    margin-left: 17%;
    margin-top: 10%;
  }

  .group {
    width: 800px;
  }

  .corpolate-group {
    font-size: 2.5rem;
    margin-left: 5%;
  }

  .page-top_btn {
    position: fixed;
    bottom: 80px;
    right: 40px;
    font-weight: bold;
    text-align: center;
    padding: 8px 20px 0px 20px;
    background: black;
    color: #fff;
    /* transition: 0.3s0; */
    font-size: 2rem;
    text-decoration: none;
  }

  #footer {
    width: 100%;
    height: auto;
    background-color: #494040;
    margin-top: 13rem;
  }

  .footer-nav {
    width: 101%;
    height: 10vh;
    padding-top: 10rem;
    display: flex;
    justify-content: center;
  }

  .footer-font {
    color: #fff;
  }

  .footer-sub_menu {
    color: #fff;
    margin-top: -5rem;
    list-style: none;
  }

  li.footer-has_menu:hover .footer-sub_menu {
    display: block;
    position: relative;
  }

  li.footer-has_menu .footer-sub_menu {
    display: none;
    padding: 1rem 0;
    position: absolute;
    background-color: #93cdd8;
    list-style: none;
    left: 3rem;
    top: 6rem;
  }

  .footer-font_policy {
    position: relative;
    left: -3rem;
    color: #fff;
  }

  small {
    display: block;
    text-align: center;
    color: #fff;
    padding-top: 13rem;
  }

/*　モバイルサイズ調整  */

@media screen and (max-width: 1280px) {
  #header {
    width: 100%;
    height: auto;
  }
  
  .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: 1rem;
    padding: 0.3rem 1rem 0.3rem 0;
  }

  .font_policy {
    margin-left: 1rem;
    left: 0;
  }

  #main {
    padding-top: 80px;
  }

  .sunset {
    width: 400px;
    height: 240px;
  }

  .second-wrap {
    margin-left: 0;

  }

  .animation-text {
    font-size: 1.6rem;
  }

  .animation-text_bottom {
    font-size: 1.8rem;
  }

  .title-name {
    font-size: 2.5rem;
  }

  iframe {
    top: 170px;
    left: 63%;
    width: 35%;
    height: 460px;
  }

  table {
    width: 60%;
    left: 1%;
    top: -330px;
  }

  table td {
    font-size: 1.5rem;
  }

  .about-company {
    font-size: 1.7rem;
  }

  .corporate-philosophy {
    font-size: 2rem;
    margin-left: 10%;
  }

  .corporate-philosophy_number {
    font-size: 1.7rem;
  }

  .corporate-item {
    font-size: 2rem;
    margin-left: 10%;
  }

  .corporate-philosophy_text {
    font-size: 1.7rem;
    margin-left: 15.5%;
    width: 80%;
  }

  .environment_img {
    margin: 100px auto;
    width: 600px;
  }

  .customer_img {
    margin: 100px auto;
    width: 760px;
  }

  .personal-information {
    margin-left: 12%;
    margin-top: 100px;
  }

  .personal-information_img {
    width: 800px;
  }
  
  .personal-page_txt {
    font-size: 110%;
  }

  li.footer-has_menu .footer-sub_menu {
    left: 1rem; 
  }

  .footer-font_policy {
    left: -1rem;
  }
}

@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;
  }
  
  .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: 20%;
    padding-left: 3rem;
    padding-top: 5rem;
  }

  p.top-title {
    /* top: -9rem;
    left: 2rem; */
  }

  .footer-nav {
    background-color: #494040;
  }
}

@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;
  }

  #main {
    padding-top: 20px;
  }

  .main-content_img {
    margin-left: 0;
    margin-top: -100px;
  }

  .main-content_header {
    display: block;
  }

  .sunset {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .second-wrap {
    position: relative;
    top: 180px;
  }

  .animation-text {
    width: auto;
    font-size: 1rem;
    margin-top: 15%;
    padding-left: 40px;
  }

  .animation-text_bottom {
    display: block;
    margin: 0 40px;
    width: 88%;
    font-size: 1.2rem;
    padding: 0;
  }

  .background-image {
    height: 55rem;
    margin-top: 45%;
  }

  .title-name {
    font-size: 1.3rem;
    top: 70px;
  }

  iframe {
    width: 325px;
    height: 225px;
    margin: 0 -187px;
    display: block;
    top: 440px;
    left: 57%;
  }

  table {
    width: 95%;
    top: -175px;
    height: auto;
    left: 3%;
  }

  table td {
    font-size: 0.8rem;
  }

  .about-company {
    font-size: 1rem;
    left: -1%;
    width: 94%;
    bottom: auto;
    margin-top: 150px;
  }

  .corporate-philosophy {
    font-size: 1.3rem;
    width: fit-content;
    margin-left: -3px;
  } 

  .corporate-philosophy_number {
    font-size: 1rem;
    width: 95%;
    margin-left: -1%;
  }

  .corporate-item {
    font-size: 1.3rem;
    width: fit-content;
    margin-left: -3px;
  }

  .corporate-philosophy_text {
    font-size: 1rem;
    margin-left: 4.5%;
    width: 90%;
  }

  .environment_img {
    width: 340px;
    height: auto;
    margin: 0 auto;
  }

  .customer_img {
    width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .personal-information {
    margin-left: 0;
    margin-top: 0 ;
  } 
  
  .personal-information_img {
    width: 350px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  
  .personal-page_txt {
    margin-left: 50px;
    font-size: 60%;
  }

  .corpolate-group {
    font-size: 1.5rem;
    margin-left: -6%;
  }

  .group {
    width: 365px;
    margin-left: -5rem;
  }

  .page-top_btn {
    font-size: 0.8rem;
    bottom: 315px;
    padding: 5px 10px 0px 10px;
    right: 40px;
  }

  #footer {
    margin-top: 5rem;
    width: 100%;
  }

  .footer-nav {
    position: relative;
    left: 0rem;
    display: block;
    height: auto;
    padding-top: 1rem;
  }

  .footer-nav li {
    padding-top: 1rem;
    padding-bottom: 0;
  }

  .footer-font {
    font-size: 0.8rem;
  }

  li.footer-has_menu .footer-sub_menu {
    left: 0;
  }

  .footer-sub_menu .footer-order {
    padding-top: 0;
  }

  .footer-font_policy {
    left: 0;
    padding: 0;
    font-size: 0.8rem;
  }

  small {
    padding-top: 7rem;
  }
}
