@font-face {
  font-family: 'baijamjuree';
  src: url('../fonts/baijamjuree-regular-webfont.woff') format('woff'),
       url('../fonts/baijamjuree-regular-webfont.woff2') format('woff2'),
       url('../fonts/BaiJamjuree-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bgc_header: rgba(25, 50, 89, 1);
  --white: rgba(255, 255, 255, 1);
  --black: rgba(0, 0, 0, 1);
  --gray: rgba(114, 143, 206, 1);
  --blue: rgba(33, 150, 243, 1);
  --text-i: rgba(33, 150, 243, 1);
  --bgc_footer: rgba(64, 182, 232, 1);
  --bgc_topic: rgba(22, 78, 125, 1);
  --text-gray: rgba(124, 123, 130, 1);
  font-family: 'baijamjuree';
}
html, body {
  font-size: 18px;
}
a:link, .back_home { color: var(--text-i); text-decoration: none;font-weight: normal;cursor: pointer;}
a:visited { color: var(--text-i); text-decoration: none;cursor: pointer;}
a:active { color: var(--text-i); text-decoration: none;cursor: pointer;}
a:hover, .back_home:hover { color: var(--text-i); text-decoration: none;font-weight: bold;cursor: pointer;}
.link_ai_knowledge, .link_ai_news, .link_ai_vision, .link_about_us, .link_contact_us {
  cursor: pointer;
}
.back_home {
  filter: drop-shadow(0 0 0.5rem #40b6e8);
}
body {
  background-image: url("../images/bg_body.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  font-family: 'baijamjuree';
}
p {
  text-indent: 2em;
}
.cursor {
  cursor: pointer;
}
.margin_tb2 {
  margin: 2em 0em;
}
.margin_tb4 {
  margin: 4em 0em;
}
.home_image {
  background-image: url("../images/home_image.jpg");
  background-repeat: no-repeat;
}
.bgc_header {
  background-color: var(--bgc_header);
  width: 100vw;
}
.bgc_topic {
  width: 100vw;
  height: 20vh;
  background-color: var(--bgc_topic);
  background-image: url("../images/bgc_image.jpg");
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  background-position: right;
}
.content_header {
  max-width: 1280px;
  margin: auto;
}
.Logo_h02 {
  height: 60px;
  padding: 0.2em 0.5em;
}
.Logo_h02 {
  transition: 0.2s;
  cursor: pointer;
}
.Logo_h02:hover {
  transition: 0.2s;
  filter: drop-shadow(0 0 0.3rem white);
}

.line_height_2 {
  line-height: 1.7;
}
.quotes::before {
  font-size: 2em;
  opacity: 0.2;
  padding: 0.1em;
  content: '"';
}
.quotes::after {
  font-size: 2em;
  opacity: 0.2;
  padding: 0.1em;
  content: '"';
}

.copyright {
  font-size: 0.7em;
}
.footer_home, .footer_sp {
  background-color: var(--bgc_footer);
  color: var(--white);
  width: 100vw;
  height: min-content;
  line-height: 1.1em;
}

.shadow {
  transition: 0.5s;
  filter: drop-shadow(0 0 0.2rem white);
}
.shadow_group:hover {
  transition: 0.5s;
  filter: drop-shadow(0 0 0.2rem white);
}
.text-i {
  filter: drop-shadow(0 0 0.5rem #40b6e8);
  color: var(--text-i);
}
.text-gray {
  color: var(--text-gray);
}
.box {
  transition: 0.5s;
  border: 1px solid #888888;    
  border-radius: 10%;
  box-shadow: 3px 3px 10px #888888;
}
.box:hover {
  transition: 0.2s;
  box-shadow: 0px 0px #888888;

}

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 2;
  cursor: pointer;
}

#ai_k_video{
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}

/* #### Start Burger Menu #### */
:root {
  /*--color-primary: #002626;*/
  --color-primary: var(--bgc_header);
  --color-secondary: #F0F7EE;
  --duration: 1s;
  --nav-duration: calc(var(--duration) / 4);
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --space: 1rem;
  --font-size: 1.125rem;
  --line-height: 1.5;
}

* {
  box-sizing: border-box;
}

.main-navigation-toggle {
  position: fixed;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.main-navigation-toggle + label {
  /*position: fixed;*/
  position: absolute;
  top: calc(var(--space) * 1);
  right: calc(var(--space) * 1.5);
  cursor: pointer;
  z-index: 2;
}

.icon--menu-toggle {
  --size: calc(1rem + 2vmin);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  stroke-width: 6;
  transition: 0.3s;
}
.icon--menu-toggle:hover {
  transition: 0.3s;
  filter: drop-shadow(0 0 0.3rem white);
}

.icon-group {
  transform: translateX(0);
  transition: transform var(--nav-duration) var(--ease);
}

.icon--menu {
  /*stroke: var(--color-primary);*/
  stroke: var(--gray);
}

.icon--close {
  stroke: var(--color-secondary);
  transform: translateX(-100%);
}

.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform var(--nav-duration);
  z-index: 1;
  font-family: 'baijamjuree';
}
.main-navigation:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform-origin: 0 50%;
  z-index: -1;
}
.main-navigation ul {
  font-size: 8vmin;
  width: 100%;
}
.main-navigation li {
  --border-size: 1vmin;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.main-navigation li:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--border-size);
  background-color: var(--color-secondary);
  transform-origin: 0 50%;
  transform: translateX(-100%) skew(15deg);
}
.main-navigation a {
  display: inline-block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-secondary);
  line-height: 1;
  text-decoration: none;
  user-select: none;
  padding: var(--space) calc(var(--space) * 2) calc(var(--space) + var(--border-size) / 2);
  transform: translateY(100%);
}

.main-content {
  margin: 6rem auto;
  max-width: 70ch;
  padding: 0 calc(var(--space) * 2);
  transform: translateX(0);
  transition: transform calc(var(--nav-duration) * 2) var(--ease);
}
.main-content > * + * {
  margin-top: calc(var(--space) * var(--line-height));
}

.main-navigation-toggle:checked ~ label .icon--menu-toggle .icon-group {
  transform: translateX(100%);
}
.main-navigation-toggle:checked ~ .main-content {
  transform: translateX(10%);
}
.main-navigation-toggle:checked ~ .main-navigation {
  transition-duration: 0s;
  transform: translateX(0);
}
.main-navigation-toggle:checked ~ .main-navigation:after {
  animation: nav-bg var(--nav-duration) var(--ease) forwards;
}
.main-navigation-toggle:checked ~ .main-navigation li:after {
  animation: nav-line var(--duration) var(--ease) forwards;
}
.main-navigation-toggle:checked ~ .main-navigation a {
  animation: link-appear calc(var(--duration) * 1.5) var(--ease) forwards;
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(1):after, .main-navigation-toggle:checked ~ .main-navigation li:nth-child(1) a {
  animation-delay: calc((var(--duration) / 2) * 1 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(2):after, .main-navigation-toggle:checked ~ .main-navigation li:nth-child(2) a {
  animation-delay: calc((var(--duration) / 2) * 2 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(3):after, .main-navigation-toggle:checked ~ .main-navigation li:nth-child(3) a {
  animation-delay: calc((var(--duration) / 2) * 3 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(4):after, .main-navigation-toggle:checked ~ .main-navigation li:nth-child(4) a {
  animation-delay: calc((var(--duration) / 2) * 4 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(5):after, .main-navigation-toggle:checked ~ .main-navigation li:nth-child(5) a {
  animation-delay: calc((var(--duration) / 2) * 5 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(6):after, .main-navigation-toggle:checked ~ .main-navigation li:nth-child(6) a {
  animation-delay: calc((var(--duration) / 2) * 6 * 0.125);
}

@keyframes nav-bg {
  from {
    transform: translateX(-100%) skewX(-15deg);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes nav-line {
  0% {
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  35% {
    transform: scaleX(1.001);
    transform-origin: 0 50%;
  }
  65% {
    transform: scaleX(1.001);
    transform-origin: 100% 50%;
  }
  100% {
    transform: scaleX(0);
    transform-origin: 100% 50%;
  }
}
@keyframes link-appear {
  0%, 25% {
    transform: translateY(100%);
  }
  50%, 100% {
    transform: translateY(0);
  }
}
/* #### End Burger Menu #### */

@media only screen and (min-width:1281px) and (orientation: landscape) {  
  .home_image {
    background-size: 1150px 650px;
    margin-top: 20px;
    display: flex;
    min-height: 70vh;
  }
  .box {
    width: 200px;
    height: 180px;
    margin-top: 10px;
  }
  .icon05 {
    margin-top: 10px;
    width: 120px;
    height: 120px;
  }
  .icon06 {
    margin-top: 10px;
    width: 120px;
    height: 120px;
  }
  .icon07 {
    margin-top: 10px;
    width: 120px;
    height: 120px;
  }
  .icon08 {
    margin-top: 10px;
    width: 120px;
    height: 120px;
  }
}

@media (min-width:1024px) and (max-width:1280px) and (orientation: landscape) {
    .home_image {
        background-size: 508px 340px;
        margin-top: 50px;
        display: flex;
    }
    
    .box {
        width: 230px;
        height: 180px;
        margin-top: 10px;
    }

    .move_box {
        margin-left: 0px;
        margin-top: 425px;
    }

    .move_box2 {
        margin-top: 425px;
    }
    
    .icon05 {
        margin-top: 10px;
        width: 120px;
        height: 120px;
    }

    .icon06 {
        margin-top: 10px;
        width: 120px;
        height: 120px;
    }

    .icon07 {
        margin-top: 10px;
        width: 120px;
        height: 120px;
    }

    .icon08 {
        margin-top: 10px;
        width: 120px;
        height: 120px;
    }

}

@media (min-width:769px) and (max-width:1024px) and (orientation: landscape) {
    .home_image {
        margin-top: 50px;
    }

    
    .box {
        width: 180px;
        height: 130px;
        margin-top: 10px;
    }

    .move_box {
        margin-left: 282px;
        margin-top: 185px;
    }

    .move_box2 {
        margin-top: 185px;
    }
    
    .icon05 {
        margin-top: 10px;
        width: 70px;
        height: 70px;
    }

    .icon06 {
        margin-top: 10px;
        width: 70px;
        height: 70px;
    }

    .icon07 {
        margin-top: 10px;
        width: 70px;
        height: 70px;
    }

    .icon08 {
        margin-top: 10px;
        width: 70px;
        height: 70px;
    }
}

@media (min-width:769px) and (max-width:1024px) and (orientation: portrait) {
  .home_image {
    margin-top: 50px;
    display: flex;
  }

  .box {
    width: 230px;
    height: 180px;
    margin-top: 10px;
  }

  .move_box {
      margin-left: 780px;
      margin-top: 425px;
  }

  .move_box2 {
      margin-top: 425px;
  }
  
  .icon05 {
      margin-top: 10px;
      width: 120px;
      height: 120px;
  }

  .icon06 {
      margin-top: 10px;
      width: 120px;
      height: 120px;
  }

  .icon07 {
      margin-top: 10px;
      width: 120px;
      height: 120px;
  }

  .icon08 {
      margin-top: 10px;
      width: 120px;
      height: 120px;
  }
}

/* Default */
/* #### Mobile Phones Portrait #### */
@media screen and (max-device-width: 480px) and (orientation: portrait){
  .bgc_header {
    background-color: var(--white);
  }
  .hc_icon {
    height: auto;
    width: 90vw;
    margin: 3vw;
  }
  .home_image {
    background-image: url("");
  }
  .video {
    margin-top: 2em;
    width: 90%;
    max-width: 960px;
    height: auto;
    max-height: 540px;
  }
}

/* #### Mobile Phones Landscape #### */
@media screen and (max-device-width: 640px) and (orientation: landscape){
  .bgc_header {
    background-color: var(--white);
  }
  .hc_icon {
    height: auto;
    width: 90vw;
    margin: 3vw;
  }
  .video {
    margin-top: 2em;
    width: 90%;
    max-width: 960px;
    height: auto;
    max-height: 540px;
  }
}

/* #### Mobile Phones Portrait or Landscape #### */
@media screen and (max-device-width: 640px){
  .bgc_header {
    background-color: var(--white);
  }
  .hc_icon {
    height: auto;
    width: 90vw;
    margin: 3vw;
  }
  .video {
    margin-top: 2em;
    width: 90%;
    max-width: 960px;
    height: auto;
    max-height: 540px;
  }
}

/* #### iPhone 4+ Portrait or Landscape #### */
@media screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2){
  .bgc_header {
    background-color: var(--white);
  }
  .hc_icon {
    min-height: 2vw;
    max-width: 30%;
    margin: 3.5vh;
  }
  .video {
    margin-top: 2em;
    width: 90%;
    max-width: 960px;
    height: auto;
    max-height: 540px;
  }
  .icon_link {
    height: 35vw;
    width: auto;
  }
  .text_link {
    padding: 1em 0em;
  }
  .box {
    border-radius: 1em;
    margin: 1em 0em;
  }
}

/* #### Tablets Portrait or Landscape #### */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px){
  .bgc_header {
    background-color: var(--bgc_header);
  }
  .hc_icon {
    min-height: 2vw;
    max-height: 12vh;
    height: auto;
    margin: 3.5vh;
  }
  .video {
    width: 70%;
    max-width: 960px;
    height: auto;
    max-height: 540px;
  }
}

/* #### Desktops #### */
@media screen and (min-width: 1024px){
  .bgc_header {
    background-color: var(--bgc_header);
  }
  .home_image {
    background-size: 1150px 650px;
    margin-top: 20px;
    display: flex;
    min-height: 70vh;
  }
  .hc_icon {
    min-height: 2vw;
    max-height: 12vh;
    height: auto;
    margin: 3.5vh;
  }
  .footer_home {
    position: fixed;
    left: 0;
    bottom: 0;
  }
  .footer_sp {
    position: relative;
    left: 0;
    bottom: 0;
    height: max-content;
  }
  .box {
    width: 11vw;
    height: 10vw;
    max-height: max-content;
  }
  .icon_link {
    width: 6vw;
    height: auto;
    margin-bottom: 0.5vw;
  }
  .text_link {
    font-size: 1.2vw;
  }
  .move_box {
    position: absolute;
    right: 24vw;
    bottom: 10vh;
  }
  .move_box2 {
    position: absolute;
    right: 12vw;
    bottom: 10vh;
  }
  .move_box3 {
    position: absolute;
    right: 0vw;
    bottom: 10vh;
  }  
  .video {
    width: 70%;
    max-width: 960px;
    height: auto;
    max-height: 540px;
  }
}