html {
  scroll-behavior: smooth;
}

body {
  font-family: YuGothic, "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  color: #2F2F2F;
  font-size: min(4.27vw, 16px);
  line-height: 2;
  overflow-x: hidden;
  margin: 0 0 0 0;
}

html.no-scroll {
  overflow: hidden;
}

a:link,
a:visited,
a:active,
a {
  text-decoration: none !important;
}

@media (any-hover: hover) {
  a:hover {
    text-decoration: none !important;
  }
}

h1 {
  font-size: 60px;
  font-weight: 700;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 700;
}

p {
  font-family: YuGothic, "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  font-weight: 400;
}

@media screen and (max-width: 768px) {
  p {
    font-size: min(3.73vw, 14px);
  }
}

img {
  max-width: 100%;
  height: auto;
}

.width1200 {
  max-width: 1200px;
  margin: auto;
  width: 96%;
}

.width1000 {
  max-width: 1000px;
  margin: auto;
  width: 96%;
}

.width800 {
  max-width: 800px;
  margin: auto;
  width: 96%;
}

.width600 {
  max-width: 600px;
  margin: auto;
  width: 96%;
}

.fw30 {
  flex: 0 0 30%;
}

.fw35 {
  flex: 0 0 35%;
}

.fw40 {
  flex: 0 0 40%;
}

.fw45 {
  flex: 0 0 45%;
}

.fw50 {
  flex: 0 0 50%;
}

.fw55 {
  flex: 0 0 55%;
}

.fw60 {
  flex: 0 0 60%;
}

.fw70 {
  flex: 0 0 70%;
}

.only-sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .only-sp {
    display: block;
  }
}

.block-break {
  display: inline-block;
}

.green-bar-h1 {
  border-bottom: 2px solid white;
  color: white;
  font-family: toppan-bunkyu-gothic-pr6n, "Noto Sans JP", serif;
  font-size: min(3.65vw, 60px);
  font-weight: bold;
  letter-spacing: 0.3rem;
  margin: auto;
  position: absolute;
  top: 70%;
  left: 50%;
  translate: -50% -50%;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  z-index: 4;
  text-wrap: nowrap;
}

.landing-banner {
  width: 100%;
  height: auto;
  position: absolute;
  z-index: 3;
}

.light-green-bg {
  background-color: #E3F4ED;
}

.center-col {
  margin: 0 16% 0 16%;
  width: 68%;
  justify-self: center;
}

@media screen and (max-width: 800px) {
  .center-col {
    margin: 0 9% 0 9%;
    width: 82%;
  }
}

.fx-center-self {
  align-self: center;
  justify-self: center;
}

.fx-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fx-row {
  display: flex;
  flex-direction: row;
}

.fx-row-rev {
  display: flex;
  flex-direction: row-reverse;
}

.fx-col {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 400px) {
  .mobile-break {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .no-mobile {
    display: none;
  }
}

.h2-aligned-title img {
  width: 30px;
}

.h2-aligned-title .fx-col {
  align-items: center;
  justify-content: center;
}

.h2-aligned-title .fx-col .rj-title {
  color: #676767;
  font-size: min(4.27vw, 16px);
  font-weight: 500;
  letter-spacing: 0.4rem;
  margin-bottom: -16px;
}

.h2-aligned-title .fx-col h2 {
  font-size: min(4.69vw, 50px);
  letter-spacing: 0.16vw;
}

header {
  box-sizing: border-box;
  font-weight: 700;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  padding: min(2.6vw, 50px) 2vw 0;
  align-items: flex-start;
}

header .header-logo {
  height: 100%;
  width: min(6.51vw, 86px);
  align-self: center;
  position: relative;
  z-index: 301;
}

header .header-logo img {
  height: 100%;
  filter: drop-shadow(0px 0px 4px #33333383);
  will-change: filter;
  vertical-align: bottom;
}

header .header-logo.logo-long {
  display: none;
}

@media screen and (max-width: 1000px) {

  header .header-logo.logo-stacked {
    display: none;
  }

  header .header-logo.logo-long {
    display: block;
  }
}

@media only screen and (min-width: 540px) and (max-width: 1023px) and (min-height: 720px) and (max-height: 1366px) {

  header .header-logo.logo-stacked {
    display: none;
  }

  header .header-logo.logo-long {
    display: block;
  }
}

header .nav-container {
  display: flex;
  justify-content: space-between;
}

header .nav-container .pc-nav {
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  letter-spacing: 0.1em;
}

header .nav-container .pc-nav li {
  margin-right: 1.5vw;
  list-style: none;
}

header .nav-container .pc-nav li.footer-btn {
  display: none;
}

header .nav-container .pc-nav a {
  color: white;
  font-size: min(5.33vw, 20px);
  padding: 5px 15px;
  transition: all .3s;
}

header .nav-container .pc-nav .migiudejuku-btn {
  background-color: white;
  border-radius: 50px;
  color: #47b389;
  padding: 10px 15px;
  margin-right: 3vw;
}

header .nav-container.open-menu {
  -webkit-animation: slidein 0.2s ease-in-out;
  animation: slidein 0.2s ease-in-out;
  background: #47b389;
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 30vw;
  height: 100%;
  z-index: 300;
}

header .nav-container.open-menu .pc-nav {
  display: block;
  margin: 15px 0 0 0;
  padding-top: 12.5vh;
  padding-left: 40px;
  z-index: 301;
}

header .nav-container.open-menu .pc-nav .form-btn {
  margin-bottom: 10px;
}

header .nav-container.open-menu .pc-nav .form-btn a {
  border: 2px solid white;
  border-radius: 30px;
  transition: background 0.7s;
}

@media (any-hover: hover) {
  header .nav-container .pc-nav a:hover {
    opacity: 0.7;
  }

  header .nav-container .pc-nav .migiudejuku-btn:hover {
    background-color: #f5f5f5;
  }

  header .nav-container.open-menu .pc-nav .form-btn a:hover {
    background-color: white;
    color: #47b389;
  }
}

header .nav-container.open-menu .pc-nav .facebook img {
  height: 25px;
  margin-right: 5px;
}

header .nav-container.open-menu .pc-nav li {
  margin-bottom: 5px;
}

header .nav-container.open-menu .pc-nav li.footer-btn {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
}

header .nav-container.open-menu .pc-nav li.footer-btn:first-child {
  margin-top: 20vh;
}

@media screen and (max-width: 800px) {
  header .nav-container.open-menu {
    max-width: 100vw;
  }

  header .nav-container.open-menu .pc-nav {
    padding-top: 20vh;
  }
}

header .hamburger-btn {
  display: block;
  width: 60px;
  height: 50px;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  right: 4vw;
  top: 2vw;
  z-index: 302;
}

header .hamburger-btn span {
  display: block;
  position: absolute;
  height: 5px;
  width: 100%;
  background: white;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
  /* box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.5); */
  filter: drop-shadow(0px 0px 4px #33333383);
  will-change: filter;
}

header .hamburger-btn span:nth-child(1) {
  top: 0px;
  transform-origin: left center;
}

header .hamburger-btn span:nth-child(2) {
  top: 22px;
  transform-origin: left center;
}

header .hamburger-btn span:nth-child(3) {
  top: 44px;
  transform-origin: left center;
}

/* header .hamburger-btn.scrolled span {
  background: #47b389;
} */

header .hamburger-btn.active-menu span {
  background: white;
}

header .hamburger-btn.active-menu span:nth-child(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 8px;
}

header .hamburger-btn.active-menu span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

header .hamburger-btn.active-menu span:nth-child(3) {
  transform: rotate(-45deg);
  top: 42px;
  left: 8px;
}

@media screen and (max-width: 768px) {
  header .hamburger-btn {
    width: 30px;
    height: 30px;
  }

  header .hamburger-btn span {
    height: 3px;
  }

  header .hamburger-btn span:nth-child(1) {
    top: 0px;
  }

  header .hamburger-btn span:nth-child(2) {
    top: 11px;
  }

  header .hamburger-btn span:nth-child(3) {
    top: 22px;
  }

  header .hamburger-btn.active-menu span:nth-child(1) {}

  header .hamburger-btn.active-menu span:nth-child(3) {
    color: purple;
    top: 21px;
  }
}

footer {
  width: 100%;
  background-color: #46b487;
  color: white;
  padding-top: 80px;
  margin-top: -1px;
}

footer a {
  color: white;
  transition: all .3s;
}

@media (any-hover: hover) {
  footer a:hover {
    opacity: 0.7;
  }

  footer .footer-logo a:hover {
    opacity: 1;
  }
}

footer .footer-menu {
  align-self: center;
  display: flex;
  flex-direction: row;
}

footer .footer-menu .footer-logo {
  justify-self: center;
  width: 50px;
  height: auto;
}

footer .footer-menu .fx-left .two-line-menu {
  margin: 24px 0;
  font-weight: bold;
}

footer .footer-menu .fx-left .two-line-menu ul {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 0;
  margin-left: 3.6vw;
}

footer .footer-menu .fx-left .two-line-menu ul li {
  list-style: none;
  margin-right: 2.6vw;
}

footer .footer-copy {
  display: flex;
  justify-self: flex-end;
  align-self: center;
  margin: 60px 0 1rem 0;
  font-size: 14px;
}

@-webkit-keyframes slidein {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0%);
  }
}

@keyframes slidein {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0%);
  }
}

@media screen and (max-width:768px) {
  header {
    padding: 20px 20px 0;
    align-items: center;
  }

  header .header-logo {
    width: min(13.33vw, 50px);
  }

  .green-bar-h1 {
    font-size: min(5.33vw, 28px);
  }

  .h2-aligned-title .fx-col h2 {
    font-size: min(6.4vw, 30px);
  }

  footer {
    padding-top: 40px;
  }

  .footer-menu .fx-row {
    flex-direction: column;
    align-items: center;
  }

  footer .footer-menu .fx-left .footer-logo {
    margin: 0;
    max-width: 60px;
    width: 70%;
  }

  footer .footer-menu .fx-left .two-line-menu {
    margin: 10px 0 24px;
  }

  footer .footer-menu .fx-left .two-line-menu ul {
    flex-direction: column;
    margin-left: 0;
  }

  footer .footer-menu ul li {
    font-size: min(3.73vw, 14px);
    margin: 0;
  }

  footer .footer-menu .fx-left .two-line-menu ul li {
    margin-right: 0;
  }

  footer .footer-copy {
    margin: 0 0 1em;
    font-size: min(3.2vw, 12px);
  }
}