@charset "UTF-8";
:root {
  --main-color: #4576BF;
  --sub-color: #97F36B;
  --bg-color: #f0f1e9;
  --kitakyu-bg: #f18d00;
  --fukuoka-bg: #008437;
  font-size: 16px;
}
p.entry {
  & a {
    display: block;
    width: fit-content;
    margin: 50px auto;
    background-color: #f00;
    padding: 10px 30px 7px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
  }
}
body {
  color: #666;
  background-color: var(--bg-color);
  background-image: url("../images/bg.jpg");
}
header {
  max-width: 1200px;
  margin: 0 auto;
  .lang {
    & ul {
      display: flex;
      margin-bottom: 20px;
      gap: 20px;
      justify-content: center;
      & li {
        & a {
          display: block;
          border: solid 1px #857759;
          padding: 5px 10px 5px;
          border-radius: 10px;
          background-color: #fff;
          color: #333;
          position: relative;
          height: 80px;
          min-width: 80px;
          text-align: center;
          &::after {
            content: '';
            display: inline-block;
            width: 60px;
            height: 40px;
            background-position: center;
            background-size: contain;
            background-repeat: no-repeat;
            background-image: url("../images/flag-jp.webp");
            position: absolute;
            bottom: 5px;
            left: calc(50% - 30px)
          }
        }
      }
      .lang-item-en a::after {
        background-image: url("../images/flag-en.webp");
      }
      .lang-item-zh a::after {
        background-image: url("../images/flag-zh.webp");
      }
      .lang-item-vi a::after {
        background-image: url("../images/flag-vi.webp");
      }
      .lang-item-id a::after {
        background-image: url("../images/flag-id.webp");
      }
    }
  }
}
#wrapper {
  max-width: 100%;
  background-color: transparent;
}
#content {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.inner {
  max-width: 1200px;
  margin: 0 auto;
}
.indent {
  text-indent: -1em;
  padding-left: 1em;
}
.jptext {
  max-width: 1000px;
  margin: 30px auto 50px;
  font-size: 1.5rem;
}
header.top {
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url("../images/header-back.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  & h1 {
    max-width: 600px;
    margin: 0px auto;
  }
  #mainnav {
    & ul {
      & li {
        border: none;
        flex: initial;
        &.page-item-14 {
          order: 10;
        }
        &.page-item-66 {
          order: 11;
        }
        &.page-item-134 {
          order: 12;
        }
        &.page-item-20 {
          order: 20;
        }
        &.page-item-69 {
          order: 21;
        }
        &.page-item-136 {
          order: 22;
        }
        &.page-item-25 {
          order: 30;
        }
        &.page-item-85 {
          order: 31;
        }
        &.page-item-138 {
          order: 32;
        }
        &.page-item-27 {
          order: 40;
        }
        &.page-item-89 {
          order: 41;
        }
        &.page-item-140 {
          order: 42;
        }
        & a {
          background-color: transparent;
          color: #333;
        }
      }
    }
  }
}
.slidein, .slidein2 {
  opacity: 0;
  transform: translate(0, 0);
  transition: all 1.0s;
  &.slidein-left {
    transform: translate(-100%, 0);
  }
  &.slidein-right {
    transform: translate(100%, 0);
  }
  &.slidein-up {
    transform: translate(0, -100%);
  }
  &.slidein-bottom {
    transform: translate(0, 50%);
  }
  &.scrollin {
    transform: translate(0, 0) !important;
    opacity: 1 !important;
  }
}
.wpcf7cp-btns {
  text-align: center;
}
#confirmation {
  margin: 10px;
  & ol {
    margin: 1em 2em;
    li {
      list-style-type: decimal;
    }
  }
}
section.dl {
  background-color: #fff;
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  & h3 {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: solid 1px #999;
    margin-bottom: 10px;
  }
  & figure {
    & a {
      display: flex;
      justify-content: space-around;
      gap: 20px;
      & img {
        width: 30%;
      }
    }
  }
}
.fixed-button {
  position: fixed;
  top: 120px;
  right: 0px;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 15px 10px;
  font-size: 16px;
  border-radius: 5px 0 0 5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  z-index: 50;
  font-size: 1.2rem;
  writing-mode: vertical-rl; /* 縦書きの設定 */
  text-orientation: upright; /* 文字の方向を直立に */
  letter-spacing: 2px;
}
.fixed-button.contact {
  top: 270px;
  background-color: #f90;
}
.fixed-button:hover {
  background-color: #218838;
  text-decoration: none;
}
.fixed-button.contact:hover {
  background-color: #c70;
  text-decoration: none;
}
#confirmation {
  border: solid 1px #ccc;
  background-color: #fff;
  margin: 5px;
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  & dl {
    margin-top: 10px;
    & dd {
      margin-bottom: 0.5em;
      padding-left: 1em;
    }
  }
}
.forminator-row:has(.titleFollow) {
  margin-bottom: 5px !important;
}
.forminatorForm {
  padding: 10px;
  margin: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  .please {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px;
  }
}
.forminator-ui.forminator-custom-form[data-design=default] .forminator-checkbox .forminator-checkbox-box ~ span {
  font-size: 1rem;
}
.privacy {
  & h3 {
    font-size: 1.5rem;
    margin: 30px 0 10px;
  }
  & p {
    margin: 10px;
  }
  & ul {
    margin: 20px;
  }
}
p.tsuika {
    text-align: center;
    font-size: 1.7em;
    margin: 20px 20px 50px;
    color: #f30;
    font-weight: bold;
    display: none;
}
footer {
  background-image: url("../images/footerback.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  color: #333;
  padding: 50px;
  max-width: 1200px;
  margin: 0 auto;
  & a {
    color: #fff;
  }
  & h3 {
    display: inline-block;
    background-color: #fff;
    padding: 5px 20px 3px;
    margin: 10px auto;
    color: #333;
    border-radius: 10px;
  }
  .flagBt {
    margin-bottom: 20px;
    & ul {
      display: flex;
      gap: 20px;
      justify-content: center;
    }
  }
}
@media screen and (max-width: 559px) {
  .alignright {
    float: none;
    margin: 0;
  }
  header {
    & h1 {
      text-align: center;
      & a {
        & img {
          width: 90%;
        }
      }
    }
    #mainnav {
      margin-top: 0px;
      & ul {
        flex-direction: row;
        background-color: transparent;
        & li {
          background-color: transparent;
        }
      }
    }
    & .lang {
      & ul {
        gap: 10px;
        margin-bottom: 0px;
        & li {
          & a {
            font-size: 0.7rem;
            min-width: 50px;
            padding: 5px;
            &::after {
              width: 40px;
              height: 26px;
              left: calc(50% - 20px);
            }
          }
          &:first-child {
            & a {
              width: 6em; /* ひらがな4文字分の幅 */
              word-break: break-all;
            }
          }
        }
      }
    }
  }
  .jptext {
    font-size: 1.2rem;
    margin: 30px 20px 50px;
  }
  .homeimgbt {
    & .btbox {
      & li {
        line-height: 1.3em;
        & a {
          padding: 8px 5px 5px;
          margin-bottom: 10px;
        }
      }
    }
  }
  span.bt {
    position: fixed;
    display: block;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 100;
    text-align: center;
    padding-top: 10px;
    & a {
      position: static;
      display: inline-block;
      writing-mode: horizontal-tb;
      text-orientation: mixed;
      border-radius: 10px;
    }
  }
  a.pagetop {
    bottom: 90px;
  }
  #content {
    & table {
      & tr:nth-child(odd) {
        background-color: transparent;
      }
    }
  }
  .text {
    & h2 {
      padding-bottom: 30px;
    }
    & p {
      padding: 0px 30px 20px;
      font-size: 0.7rem;
    }
  }
  .courses {
    & archive {
      & ul.flex {
        display: flex;
        justify-content: flex-start;
      }
      & header {
        position: static;
        & h3 {
          font-size: 1.5rem;
        }
      }
      & .details {
        & tr {
          & th {
            width: auto;
            padding-bottom: 10px;
            clip-path: polygon(0% 0%, /* 左上 */ 100% 0%, /* 右上 */ 100% 80%, /* 右の中央を少し右に */ 50% 100%, /* 右下 */ 0% 80% /* 左下 */ );
          }
          & td {
            padding: 20px 0;
            font-size: 1rem;
            text-align: center;
          }
        }
      }
      .itpasport {
        word-break: break-all;
        margin: 20px 0;
      }
    }
  }
  .text2 {
    .caution {
      margin: 20px 10px;
      font-size: 1rem;
    }
  }
  .slidein, .slidein2 {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 1.0s;
    &.slidein-left {
      transform: translate(-100%, 0);
    }
    &.slidein-right {
      transform: translate(100%, 0);
    }
    &.slidein-up {
      transform: translate(0, -100%);
    }
    &.slidein-bottom {
      transform: translate(0, 50px);
    }
    &.scrollin {
      transform: translate(0, 0) !important;
      opacity: 1 !important;
    }
  }
  .voices {
    & .introduction {
      & figure {
        text-align: center;
        margin: 20px;
      }
    }
  }
  .place {
    .flex {
      display: block;
      .fukuoka {
        margin-bottom: 20px;
      }
    }
  }
  .syousai {
    padding: 10px;
    .inner {
      margin-bottom: 20px;
      & figure {
        height: 200px;
        text-align: center;
      }
    }
  }
  #confirmation {
    width: 90vw;
  }
  footer {
    padding: 20px;
  }
  main {
    & section {
      padding: 20px 10px;
      & h2 {
        font-size: 1.5rem;
      }
      & p {
        font-size: 0.9rem;
      }
      & ul {
        & li {
          font-size: 0.9rem;
        }
      }
      .date {
        font-size: 1.5rem;
      }
    }
  }
}