@charset "utf-8";

/*========================================================================*\

$目次

\*========================================================================*/

/*$root
/*$common
/*$header
/*$navi （PC）
/*$contactArea（ボタン）
/*$navi （SP）
/*$hamburger


/*========================================================================*\

$common

\*========================================================================*/

.hamburger {
  display: none;
}

.tablet {
  display: none;
}

.navi .naviInner > ul > li.sponly {
  display: none !important;
}

/*========================================================================*\

$header

\*========================================================================*/

header {
  margin: 0 auto;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0 2rem 0;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 1800px) {
  header {
    width: 100%;
    max-width: 100%;
    padding: 3rem 2rem;
  }
}

header #headerInner {
  align-items: center;
  justify-content: space-between;
  display: flex;
  position: relative;
  transition: all 0.5s;
  width: 100%;
}

header #headerInner #headerL {
  margin: 0;
  z-index: 1000;
  width: 15%;
  min-width: 196px;
  max-width: 220px;
}

header #headerInner #headerR {
  margin: 0;
  width: calc(100% - var(--headerL));
}

/*========================================================================*\

$navi （PC）

\*========================================================================*/

.navi {
  margin: 0 auto;
  width: 100%;
  display: flex;
}

.navi .naviInner {
  display: flex;
  flex-direction: column;
  flex-direction: column-reverse;
}

.navi .naviInner > ul {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
  width: 100%;
}

.navi .naviInner > ul > li {
  display: flex;
  flex-wrap: wrap;
  font-weight: 500;
  letter-spacing: 0.1rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.navi .naviInner > ul > li.toggle {
  position: relative;
}

.navi .naviInner > ul > li.toggle::after {
  border: 0.15em solid var(--primary-color);
  border-bottom: 0;
  border-left: 0;
  color: var(--primary-color);
  content: "";
  display: inline-block;
  height: 0.8rem;
  line-height: 1;
  position: absolute;
  right: 15px;
  top: 47%;
  transform: translateY(-25%) rotate(135deg);
  vertical-align: middle;
  width: 0.8rem;
}

.navi .naviInner > ul > li.toggle a {
  padding-right: 3.5rem;
}

.navi .naviInner > ul > li a {
  align-items: center;
  color: var(--font-color);
  display: flex;
  font-size: 1.7rem;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease-out;
  border-left: 1px dashed #908c89;
}

.navi .naviInner > ul > li:first-child a {
  border-left: none;
}

.navi .naviInner > ul > li:last-child a {
  border-left: none;
  padding-right: 0;
}

.navi .naviInner > ul > li a.title {
  display: block;
  position: relative;
}

.navi .naviInner > ul > li a.title:hover {
  color: var(--primary-color);
}

.navi .naviInner > ul > li a.title::after {
  background: var(--primary-color);
  bottom: -5px;
  content: "";
  height: 2px;
  left: 10%;
  position: absolute;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: all 0.3s ease-out;
  width: 80%;
}

.navi .naviInner > ul > li a.title:hover::after {
  transform: scale(1, 1);
}

.navi .naviInner > ul .menu {
  border-radius: 22px;
  box-sizing: border-box;
  left: 40%;
  margin: 0 auto;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 1.5rem 2rem;
  position: absolute;
  text-align: center;
  top: 39px;
  transform: translateX(-50%);
  width: 250px;
  z-index: 10000000;
}

.navi .naviInner > ul > li:hover .menu,
.navi .naviInner > ul > li .menu.checked {
  background: var(--primary-color);
  max-height: 9999px;
  opacity: 1;
}

.navi .naviInner > ul .menu .menu_inner {
  display: block;
  margin: 0 auto;
  position: relative;
  text-align: left;
  z-index: 10000000;
}

.navi .naviInner > ul .menu .menu_inner .child {
  margin: 0;
}

.navi .naviInner > ul .menu .menu_inner .child li a {
  border-left: none;
}

.navi .naviInner > ul .menu .menu_inner .child li:nth-child(n + 2) {
  margin-top: 0 !important;
}

.navi .naviInner > ul .menu .menu_inner .child a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  display: block;
  font-size: 1.4rem;
  height: auto;
  padding: 1.5rem 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.navi .naviInner > ul .menu .menu_inner .child li:last-child a {
  border-bottom: none;
}

.navi .naviInner > ul .menu .menu_inner .child a:after {
  border-bottom: 1px solid #ffffff;
  bottom: -0.22rem;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.2s;
  width: 100%;
}

.navi .naviInner > ul .menu .menu_inner .child a:hover::after {
  transform: scale(1, 1);
}

.navi .naviInner > ul .menu .menu_inner .child a:before {
  border-right: solid 2px #ffffff;
  border-top: solid 2px #ffffff;
  content: "";
  height: 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: 0.2s;
  width: 8px;
}
@media screen and (max-width: 1700px) {
  .navi .naviInner > ul > li a {
    font-size: 1.6rem;
  }

  header #headerInner #headerL {
    min-width: 166px;
  }

  .navi .naviInner > ul .contactArea a {
    font-size: 1.6rem;
  }

  .navi .naviInner > ul .contactArea.mail a {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 1370px) {
  .navi .naviInner > ul > li a {
    font-size: 1.4rem;
    padding: 1rem 1.5rem;
  }
}

/*========================================================================*\

$contactArea（ボタン）

\*========================================================================*/

.navi .naviInner .contactlist {
  margin-bottom: 0.625rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navi .naviInner .contactlist ul {
  display: flex;
  margin-bottom: 0;
}

.navi .naviInner .contactlist ul li {
  margin-right: 1.875rem;
}

.navi .naviInner .contactlist ul li a {
  text-decoration: none;
}

.navi .naviInner .contactlist ul a .title {
  font-family: "Kiwi Maru", "UDデジタル教科書体 ProN", "BIZ UDPGothic",
    "Kiwi Maru", serif;
  font-size: 1.25rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 2px 8px;
  margin-right: 10px;
}

.navi .naviInner .contactlist ul .ico_tel {
  font-size: 1.875rem;
}

.navi .naviInner .contactlist .mail a {
  font-size: 1.7rem;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 60px;
  display: block;
  border: none;
  padding: 0.4rem 2rem;
}

.navi .contactlist .mail a:before {
  background: url(../images/ico_mail.png) no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 14px;
  margin-right: 10px;
  width: 18px;
}

.navi .naviInner > ul .contactlist a:hover {
  transform: translateY(-5px);
}

@media screen and (max-width: 1260px) {
  #header {
    overflow: hidden;
    width: 100%;
    padding: 1.5rem 2rem;
  }

  header #headerInner #headerL {
    width: 20%;
  }
  .navi .naviInner > ul > li a.title::after {
    content: none;
  }

  .navi .naviInner .contactlist .mail a {
    font-size: 1.7rem;
    background: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 60px;
    border: none;
    padding: 0.4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

/*========================================================================*\

$navi （SP）

\*========================================================================*/

@media screen and (max-width: 1260px) {
  .tablet {
    display: block !important;
  }

  .navi .naviInner > ul > li.sponly {
    display: block !important;
  }

  .navi {
    background: #ffffff;
    box-sizing: border-box;
    color: var(--font-color);
    display: none;
    height: 100%;
    left: 0;
    opacity: 0;
    overflow: auto;
    padding: 0;
    position: fixed;
    text-align: center;
    text-align: left;
    top: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    width: 100%;
    z-index: -1;
  }

  .navi .logo {
    width: 55%;
    min-width: 196px;
    max-width: 266px;
  }

  .navi .logo a {
    display: block;
    padding: 1.5rem 0 0 2rem;
  }

  .navi.active {
    display: block;
    opacity: 1;
    z-index: 30000;
  }

  .navi .naviInner > ul {
    display: block;
    padding: 2rem 0;
  }

  .navi ul li {
    border-bottom: 1px solid #e0e0e0;
    display: block;
    position: relative;
  }

  .navi ul li:last-child {
    width: 100%;
    display: inline-block;
  }

  .navi ul li a.title {
    color: var(--font-color);
    display: block;
    font-size: 1.5rem;
    height: auto;
    line-height: 1;
    padding: 2rem;
    position: relative;
    text-decoration: none;
    width: 100%;
    border-left: none;
  }

  .navi ul li a.title::after {
    background: transparent;
    border-right: solid 2px var(--primary-color);
    border-top: solid 2px var(--primary-color);
    content: "";
    height: 8px;
    left: auto;
    position: absolute;
    right: 21px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: 0.2s;
    width: 8px;
  }

  .navi ul li a.title::before {
    border-right: solid 2px var(--primary-color);
    border-top: solid 2px var(--primary-color);
    content: "";
    height: 8px;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: 0.2s;
    width: 8px;
  }
  .navi ul li.toggle a.title::before {
    content: none;
  }

  .navi ul li a.title::after {
    content: none;
  }

  .navi .naviInner > ul > li.toggle::after {
    right: 21px;
  }

  .navi .naviInner {
    display: block;
  }

  .navi .naviInner .contactlist {
    margin-bottom: 0;
    display: block;
    padding: 0 1.25rem;
  }

  .navi .naviInner .contactlist ul {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.9375rem;
  }

  .navi .naviInner .contactlist ul li {
    margin-right: 0;
    width: 48.5%;
    border: none;
  }

  .navi .naviInner .contactlist ul a .title {
    font-size: 1.25rem;
  }

  .navi .naviInner .contactlist ul .ico_tel {
    font-size: 1.625rem;
  }

  .navi .naviInner > ul > li.toggle::after {
    top: 22px;
  }

  .navi ul li.ico a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 0 1rem;
    width: 100%;
  }

  .navi ul li a.title.clicked:before {
    transform: rotate(0deg);
  }

  .navi .naviInner > ul .menu {
    border-radius: 0;
    display: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    position: static;
    text-align: left;
    transform: none;
    width: 100%;
  }

  .navi ul li .menu .menu_inner ul {
    display: block;
    margin: 0;
    width: 100%;
  }

  .navi ul ul {
    margin-bottom: 0;
  }

  .navi ul ul li {
    border-bottom: 1px solid #ffffff;
  }

  .navi ul ul li:last-child {
    border: none;
  }

  .navi ul ul li:before {
    content: none !important;
  }

  .navi .naviInner > ul .menu .menu_inner .child a {
    border: none;
    display: block;
    font-size: 1.4rem;
    padding: 2rem;
    position: relative;
    text-align: left;
    text-decoration: none;
    width: 100%;
  }

  .navi .naviInner > ul .menu .menu_inner .child a:before {
    right: 2.1rem;
  }
}

/*========================================================================*\

$hamburger

\*========================================================================*/

@media screen and (max-width: 1260px) {
  .hamburger {
    background: var(--primary-color);
    border-radius: 0 0 0 30px;
    display: block;
    height: 70px;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 70px;
    z-index: 99999;
  }

  .hamburger__line {
    background-color: #ffffff;
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    top: 26px;
    transform: translateX(-50%);
    transition: 0.4s;
    width: 24px;
  }

  .hamburger__line:before,
  .hamburger__line:after {
    background-color: #ffffff;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: inherit;
    width: 100%;
  }

  .hamburger__line:before {
    top: -6px;
  }

  .hamburger__line:after {
    top: 6px;
  }

  .hamburger__text {
    bottom: 8px;
    left: 50%;
    margin: auto;
    position: absolute;
    transform: translateX(-50%);
  }

  .hamburger__text::before {
    color: #ffffff;
    content: "MENU";
    font-size: 10px;
    font-weight: 900;
    text-align: center;
  }

  .hamburger.active .hamburger__line {
    background-color: transparent;
  }

  .hamburger.active .hamburger__line::before {
    top: 0;
    transform: rotate(45deg);
  }

  .hamburger.active .hamburger__line::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hamburger.active .hamburger__text::before {
    content: "Close";
  }
}
