@charset "utf-8";

/* ==========1024========== */

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

  /* header */
  .header-logo {
    font-size: 1.5rem;
    font-weight: bold;
    height: 1.5rem;
    line-height: 1.5rem;
  }

  .header-logo .namba {
    font-size: 1.1rem;
  }

  .tel {
    display: none;
  }

  /* lesson */
  #lessons .content-card {
    width: calc((100% - 1rem) / 2);
  }

  /* point */
  .point-container {
    display: block;
  }

  .point-box {
    width: 100%;
  }

  .box01,
  .box03 {
    width: 50%;
    margin-right: 0;
  }

  .box02 {
    width: 50%;
    margin-left: 4rem;
  }

  .point-img {
    width: 100%;
    height: 50px;
  }

  .point-img img {
    width: 30%;
    top: 0;
    left: 10%;
  }

  .point-container:nth-of-type(2) img {
    top: 0;
    left: auto;
    right: 10%;
  }

  /* voice */
  #voice h2 {
    margin-top: 0;
  }

  /* flow */
  #flow {
    padding-top: 0;
  }

}

/* ==========760========== */

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

  html {
    font-size: 14px;
    scroll-padding-top: 50px;
    position: relative;
  }

  h2 {
    font-size: 1.2rem;
  }

  .top-page {
    bottom: 6rem;
  }
  
  /* header */
  header {
    padding: 0;
    height: fit-content;
  }

  .header-left {
    display: block;
    margin: auto 0;
  }

  .header-logo img {
    margin-left: 1rem;
  }

  header .title {
    font-size: 1.2rem;
  }

  .header-wrapper-top {
    max-width: 100%;
  }

  #header-btn {
    display: none;
  }

  .btn-menu {
    display: block;
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: #000;
    border: 1px solid #000;
    border-radius: 0;
    position: relative;
    cursor: pointer;
  }

  .btn-menu:hover {
    background-color: #000;
  }

  .btn-menu span {
    display: inline-block;
    position: absolute;
    left: 13px;
    height: 2px;
    background-color: #fff;
    transition: all .4s;
  }

  .btn-menu span:nth-of-type(1) {
    top: 22px;
    width: 50%;
  }

  .btn-menu span:nth-of-type(2) {
    top: 29px;
    width: 30%;
  }

  .btn-menu.open span:nth-of-type(1) {
    top: 20px;
    left: 16px;
    transform: translateY(6px) rotate(-45deg);
    width: 35%;
  }

  .btn-menu.open span:nth-of-type(2) {
    top: 32px;
    left: 16px;
    transform: translateY(-6px) rotate(45deg);
    width: 35%;
  }

  .header-wrapper-bottom {
    background: #000;
    width: 0;
    overflow: hidden;
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 100;
    transition: .2s;
  }

  .header-wrapper-bottom.open {
    width: 90%;
  }

  .header-wrapper-bottom ul {
    display: block;
    white-space: nowrap;
  }

  .header-wrapper-bottom ul li {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
  }

  .header-wrapper-bottom ul li:nth-of-type(8) {
    border-bottom: 0;
  }

  .header-wrapper-bottom ul li a {
    color: #fff;
  }

  .header-right {
    margin-bottom: 0;
  }

  .sns-x::before {
    font: var(--fa-font-brands);
    content: '\e61b';
    font-weight: 400;
    font-size: 1.2rem;
    color: #fff;
  }

  .sns-fb::before {
    font: var(--fa-font-brands);
    content: '\f09a';
    font-weight: 400;
    font-size: 1.2rem;
    color: #fff;
  }

  .sns-insta::before {
    font: var(--fa-font-brands);
    content: '\f16d';
    font-weight: 400;
    font-size: 1.5rem;
    color: #fff;
  }

  /* main-visual */
  .slide {
    height: 100vh;
  }
  
  .slide-image:nth-child(2),
  .slide-image:nth-child(3) {
    background-position: top right;
  }
  
  .main-txt {
    gap: 3rem;
    position: absolute;
    top: 1%;
    left: 5%;
    text-align: left;
  }

  .main-visual h1 {
    font-size: 2.5rem;
  }

  #main-btn {
    display: none;
  }

  /* lesson */
  #lessons .section-wrapper {
    max-width: 90%;
    margin: 0 auto;
  }

  .lesson-item {
    flex-wrap: wrap;
  }

  .lesson-img,
  .lesson-course {
    width: 100%;
  }

  .lesson-title,
  #lessons p {
    font-size: 1rem;
    text-align: left;
  }

  #lessons p {
    border-radius: 0;
    border-left: 5px solid #F90;
  }

  #lessons .content-menu {
    width: 100%;
    height: fit-content;
    position: static;

  }

  /* lesson下層 */
  .lesson-course-top {
    flex-direction: column;
  }

  /* point */
  #point h2 span {
    font-size: 2rem;
    color: #F90;
  }

  .point-box {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .box01,
  .box02,
  .box03 {
    margin: 0 auto;
    width: 65%;
  }

  .point-img {
    height: 200px;
    width: 100%;
  }

  .point-container:nth-of-type(1) img,
  .point-container:nth-of-type(2) img {
    position: static;
    left: 0;
    right: 0;
    object-fit: cover;
    object-position: 100% 45%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
  }

  .point-container:nth-of-type(3) img {
    position: static;
    left: 0;
    right: 0;
    object-fit: cover;
    object-position: 100% 25%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
  }

  .point-box.c02::after {
    content: "02";
    font-family: "Poller One", serif;
    font-size: 8rem;
    font-weight: 400;
    font-style: normal;
    position: absolute;
    left: auto;
    right: 5rem;
    bottom: 0;
    color: rgba(255, 255, 255, .5);
  }

  /* flow */
  .flow-container {
    flex-direction: column;
    justify-content: center;
  }

  #flow::after {
    content: "";
    position: absolute;
    height: 50px;
    width: 100%;
    -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: #ffebcc;
    bottom: -49px;
  }

  /* contact */
  #contact {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .contact-txt {
    font-size: 1rem;
  }

  .contact.wrapper {
    width: 80%;
  }

  /* voice */
  .voice {
    flex-direction: column;
    justify-content: center;
  }

  .voice-container {
    min-width: 300px;
  }

  /* faq */
  #faq ul {
    width: 90%;
  }

  /* news */
  #news ul {
    width: 90%;
  }

  /* access */
  #access .section-wrapper {
    display: block;
    width: 100%;
  }

  .map-left,
  .map-right {
    width: 100%;
    height: auto;
  }

  /* footer */
  footer {
    padding-bottom: 6rem;
  }

  footer ul {
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }

  footer ul::before {
    content: "＼ Follow Us ! ／";
  }

  footer li {
    text-align: center;
  }

  footer li:nth-of-type(1),
  footer li:nth-of-type(2),
  footer li:nth-of-type(3),
  footer li:nth-of-type(4),
  footer li:nth-of-type(5) {
    display: none;
  }

  .footer-logo img {
    display: block;
    margin: 0 auto;
    margin-bottom: 1rem;
  }

  /* contact.html */
  .contact.wrapper {
    width: 80%;
  }

  #submit {
    width: 50%;
  }

  .fixed-contact {
    position: fixed;
    bottom: 1.5rem;
    z-index: 1000;
    width: 100%;
    height: fit-content;
  }

  #fixed-btn {
    width: 90%;
    text-align: center;
  }

  #fixed-btn::before {
    font: var(--fa-font-solid);
    content: '\f0e0';
    font-weight: 900;
    font-size: 1.1rem;
    margin-right: .25rem;
    color: #fff;
  }

}