@charset "utf-8";

* {
  box-sizing: border-box;
}

:root {
  --brand-color: #56c7ff;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

header {
  height: 120px;
  width: 100%;
  background-color: var(--brand-color);
  display: flex;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
}

header a {
  display: flex;
  align-items: center;
  height: 100%;
}

.icon {
  height: 80px;
  width: 80px;
  margin: 20px 0 20px 27px;
}

.site-name {
  height: 65px;
  width: 180px;
  margin: 27px 0 28px 23px;
}

.top {
  margin-top: 120px;
  width: 100%;
  aspect-ratio: 2 / 1;
  background-image: url(img/top-image.png);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
}

.top p {
  color: #fff;
  font-size: clamp(1.25rem, 3cqi, 2rem);
  line-height: 1.2;
}

.explanation p,
.text p {
  padding: 0 24px;
  text-align: justify;
}

.explanation {
  margin: 48px auto 140px;
  display: flex;
  justify-content: center;
}

.explanation p {
  margin: 0;
  font-size: 24px;
}

.features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px auto;
  max-width: 1400px;
  padding: 0 24px;
}

.feature-1,
.feature-2,
.feature-3 {
  aspect-ratio: .7 / 1;
  max-width: 448px;
  min-width: 0;
  flex: 1;
  border: solid 2px var(--brand-color);
  overflow: hidden;
  border-radius: 50px;
}

.feature-title {
  max-width: 100%;
  height: auto;
  aspect-ratio: 448 / 277;
  margin: 0;
  background-size: cover;
  background-position: center;
}

.feature-1 .feature-title {
  background-image: url(img/Feature1.png);
}

.feature-2 .feature-title {
  background-image: url(img/Feature2.png);
}

.feature-3 .feature-title {
  background-image: url(img/Feature3.png);
}

.feature-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(18px, 2.5vw, 24px);
}

.feature {
  margin: 49px auto;
  font-size: 20px;
  max-width: 16em;
  width: 100%;
}

.price,
.free-trial {
  border: solid var(--brand-color) 10px;
  border-radius: 50px;
  max-width: 900px;
  width: 100%;
  margin: 188px auto 0;
  padding: 50px 200px 50px 70px;
}

.title {
  font-size: 32px;
  display: inline;
  font-weight: normal;
  margin-top: 50px;
  padding-bottom: 6px;
  background-image: url(img/Line\ 1.png);
  background-size: 200px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.elementary {
  display: flex;
  justify-content: space-between;
}

.grade {
  margin: auto auto auto 70px;
}

.middle {
  display: flex;
  justify-content: space-between;
}

.price p,
.free-trial p {
  margin: 44px 0 0;
  line-height: 2;
}

.text {
  margin: 130px 0 0 0;
  display: flex;
  justify-content: center;
  font-size: 32px;
}

.text span {
  font-size: 24px;
}

.winter a {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 20px gray;
  width: 43%;
  aspect-ratio: 13 / 5;
  border: solid #0af 20px;
  border-radius: 50px;
  background-color: var(--brand-color);
  color: #fff;
  font-size: clamp(24px, 4vw, 64px);
  font-weight: bold;
  transition-property: background-color border;
  transition-duration: .3s;
}

.winter a:hover {
  background-color: #C0EAFF;
  border: solid 20px #80D4FF;
  transform: scale(1.01);
}

.button {
  display: flex;
  justify-content: center;
  margin: 100px 0 0;
}

footer {
  background-color: var(--brand-color);
  height: 160px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
  width: 100%;
  gap: 32px;
}

footer img {
  width: 170px;
  height: 64px;
}

footer p {
  margin: 0;
  font-size: 20px;
}


.winter-top {
  margin-top: 120px;
  width: 100%;
  aspect-ratio: 2 / 1;
  background-image: url(img/top-image2.png);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
}

.winter-top p {
  color: #fff;
  font-size: clamp(1.25rem, 3cqi, 2rem);
  line-height: 1.2;
}

.curriculum,
.period {
  border: solid var(--brand-color) 10px;
  border-radius: 50px;
  max-width: 900px;
  width: 100%;
  margin: 188px auto 0;
  padding: 50px 200px 50px 70px;
}

.curriculum-contents {
  margin: 44px 0 0;
  line-height: 2;
}

.curriculum-contents ul,
.curriculum-contents p {
  margin: 0;
  list-style: none;
  padding: 0;
}

.curriculum-contents li::before {
  content: '・';
}

.period p {
  margin: 0;
  line-height: 2;
}

.sub-title {
  padding-top: 22px;
}

.period-contents {
  margin-top: 22px;
}


@media (max-width: 1024px) {
  .features {
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-1,
  .feature-2,
  .feature-3 {
    flex: 0 1 45%;
  }

  .price,
  .free-trial,
  .curriculum,
  .period {
    width: 90%;
    padding: 32px;
  }

  .winter a {
    width: 43%;
  }
}

@media (max-width: 600px) {

  header {
    height: 86px;
  }

  header .icon {
    width: 56px;
    height: auto;
  }

  header .site-name {
    width: 130px;
    height: auto;
  }

  .top,
  .winter-top {
    margin-top: 86px;
    aspect-ratio: auto;
    height: 600px;
    background-size: cover;
    background-position: right;
  }

  .top {
    position: relative;
  }

  .top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
  }

  .top p {
    display: inline-block;
    text-align: left;
    margin: 0 12px;
    position: relative;
  }

  .explanation p,
  .text p {
    font-size: 16px;
  }

  .text span {
    font-size: 12px;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0;
  }

  .feature-1,
  .feature-2,
  .feature-3 {
    width: 90%;
    max-width: 500px;
  }

  .winter a {
    width: 90%;
    font-size: 32px;
    margin: 0 24px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  footer img {
    width: 120px;
    height: auto;
  }

  footer p {
    text-align: left;
    margin: 0;
    font-size: 16px;
  }
}