@charset "utf-8";

body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

html {
  /* values min 16px max 32px | viewport min 320px max 960px */
  font-size: clamp(1rem, 0.359rem + 2.74vw, 2rem);
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  font-family: sans-serif;
  overflow-x: hidden;
  background: #fff;
}

p {
  font-weight: 500;
}

a {
  transition: all 0.3s;
  &:hover {
    opacity: 0.8;
  }
}

img {
  width: inherit;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

.all-wrapper {
  margin-inline: auto;
  max-width: 960px;
  position: relative;
  overflow-x: hidden;
}

#header {
  position: relative;
  #header-logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 5.375rem;
  }
  #header-baloon {
    position: absolute;
    right: 0;
    width: 11rem;
  }
}

#hero {
  margin-top: -6rem;
  background: url(../img/hero-bg.svg) center top 5rem no-repeat;
  background-size: cover;
  position: relative;
  width: 100%;
  .hero-title {
    margin-inline: -2.4rem -3rem;
    @media (428px <= width) {
      margin-inline: -1.6rem -2rem;
    }
    img {
      width: 100%;
    }
  }
  .kids {
    margin-top: -3rem;
    @media (428px <= width) {
      margin-top: -4rem;
    }
  }
}

#feature {
  padding: 2.5rem 1.5rem 1.5rem;
  background: url(../img/bg-dot.svg) #fff9b1;
  .sec-title {
    padding-bottom: 3rem;
    text-align: center;
    background: url(../img/triangle.svg) center bottom no-repeat;
  }
  .sec-title-ja {
    text-align: center;
    margin-bottom: 1rem;
    & + p {
      padding: 0 1.5rem 1rem;
      font-weight: bold;
    }
    & + p + figure {
      padding-inline: 1.5rem;
      text-align: center;
    }
  }
  .lesson-list {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    .lesson {
      padding-block: 2.5rem;
      opacity: 0;
      translate: 0 -20px;
      &:first-of-type {
        padding-top: 0.5rem;
      }
      &:not(:last-of-type) {
        background: url(../img/line-dot.svg) center bottom no-repeat;
      }
      .lesson-title {
        margin-bottom: 1.25rem;
      }
      .title {
        margin-bottom: 0.625rem;
        font-size: 1.32rem;
      }
    }
  }
  .step-list {
    margin: 2.5rem 0 0;
    @media (428px <= width) {
      margin: 2.5rem 1.25rem 0;
    }
    .step {
      margin-top: -1.3rem;
      display: flex;
      gap: 1rem;
      align-items: center;
      opacity: 0;
      translate: 0 -20px;
      @media (428px <= width) {
        gap: 1.875rem;
      }
      &:nth-of-type(1) {
        position: relative;
        z-index: 2;
      }
      &:nth-of-type(2) {
        position: relative;
        z-index: 1;
      }
      .flow {
        width: 2.1875rem;
        min-width: 50px;
      }
      .text {
        p {
          margin-bottom: 1.25rem;
        }
        figure {
          width: 100%;
        }
      }
    }
    strong {
      color: #0000ff;
    }
  }
  .arrow-list {
    margin-block: 2.5rem 0;
    text-align: center;
    .arrow {
      opacity: 0;
      translate: 0 -20px;
    }
    .arrow + .arrow {
      margin-top: 1.5rem;
    }
    h5 {
      margin-bottom: 1rem;
      font-size: 1.25rem;
      color: #0000ff;
    }
    figure + figure {
      margin-top: 2.5rem;
    }
  }
  .desc {
    padding-top: 1.5rem;
    @media (428px <= width) {
      margin-inline: 2.5rem;
    }
  }
}

#shops {
  padding: 2.5rem 1.25rem;
  .sec-title {
    margin: 0 auto 2.5rem;
    text-align: center;
    @media (428px > width) {
      max-width: 200px;
    }
  }
  .shop-title {
    margin-bottom: 0.625rem;
    font-size: 1.4rem;
    a {
      color: inherit;
    }
  }
  .shop + .shop {
    margin-top: 2.5rem;
  }
  .tel-number {
    font-size: 1.25rem;
    font-weight: bold;
  }
}

.fixed-bnr {
  z-index: 100;
  position: sticky;
  bottom: 0;
  @media (428px <= width) {
    writing-mode: vertical-rl;
    position: fixed;
    top: 200px;
    right: 0;
    font-size: 0.75rem;
  }
  a {
    padding: 0.75rem 0.25rem;
    background: #ff3333;
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
    @media (428px <= width) {
      display: inline-block;
      border-radius: 0.25rem 0 0 0.25rem;
    }
  }
}

#footer {
  padding: 1rem 0;
  #copyright {
    text-align: center;
    font-size: 0.5rem;
  }
}
