@import url('https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c:400,800&display=swap&subset=japanese');

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.2rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #222222;
  background: #FFFFFF;
  line-height: 1.5;
}

@media screen and (min-width: 560px) {
  body {
    font-size: 1.6rem;
    line-height: 1.6;
  }
}

a:hover {
  opacity: 0.47;
  transition: 0.7s;
}

h1 {
  font-size: 2.4rem;
  font-weight: 800;
}

h2 {
  background: #FB8A43;
  color: #FFFFFF;
  text-align: center;
  font-size: 2.0rem;
  border-radius: 16px;
  margin-bottom: 16px;
}

h3 {
  color: #FB8A43;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin: 16px 0;
}

h4 {
  color: #222222;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border-bottom: 2px solid #FB8A43;
  margin: 8px 0 16px;
  padding-bottom: 4px;
}

@media screen and (min-width: 560px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  h3 {
    font-size: 2.0rem;
  }
  h4 {
    font-size: 1.6rem;
  }
}

header, footer {
  color: #FB8A43;
  background: #FFF5E7;
  text-align: center;
  padding: 8px;
}

footer {
  margin-top: 128px;
}

ruby > rt {
  transform: scale(0.8);
}

.contents {
  max-width: 768px;
  margin: 0 auto;
}

.sec__news {
  padding: 16px;
}

.news {
  background: #FFF5E7;
  padding: 8px;
  border-radius: 16px;
}

.news > a {
  text-decoration: none;
}

.news-topic {
  display: flex;
  padding: 8px;
  color: #222222;
}

.news-topic + .news-topic {
  border-top: 1px dotted #FB8A43;
}

.news-date {
  font-weight: 800;
}

.news-text {
  margin-left: 16px;
}

.sec__intro {
  padding: 16px;
}

.slides {
  height: auto;
}

.slides > img {
  width: 100%;
  border-radius: 16px;
}

.introduce-sentence {
  margin-top: 8px;
}

.sec__feature {
  padding: 16px;
}

.sec__feature--menu {
  display: flex;
  justify-content: space-around;
}

.sec__feature--menu > * {
  margin-left: 4px;
  margin-right: 4px;
}

.sec__feature--menu > *:first-child {
  margin-left: 0;
}

.sec__feature--menu > *:last-child {
  margin-right: 0;
}

.menu-link {
  position: relative;
  font-size: 1.4rem;
  font-weight: 800;
  color: #222222;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 16px;
  padding: 8px;
}

.menu-link > span {
  display: inline-block;
}

.menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #FB8A43;
}

.private-lesson, .group-lesson {
  margin-top: 32px;
}

.menu {
  margin-top: 32px;
}

.menu__thumbnail {
  position: relative;
  width: 100%;
}

.menu__thumbnail-img {
  width: 100%;
  border-radius: 16px;
}

.menu__thumbnail-title {
  position: absolute;
  bottom: 0;
  left: 0;
  color: #FFFFFF;
  font-size: 1.4rem;
  text-align: left; /* h4 の打ち消し */
  text-shadow: 0px 0px 4px #222;
  border-bottom: none;
  margin: 0;
  padding: 16px;
}

@media screen and (min-width: 375px) {
  .menu__thumbnail-title {
    font-size: 1.8rem;
  }
}


@media screen and (min-width: 560px) {
  .menu__thumbnail-title {
    font-size: 2.4rem;
  }
}

.menu__description {
  margin-top: 8px;
}

.menu__description p + p {
  margin-top: 8px;
}

.menu__description-link {
  text-align: right;
  margin-top: 16px;
}


.menu__description-link-text {
  display: inline-block;
  position: relative;
  font-weight: 800;
  padding: 8px;
}

.menu__description-link-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #ACEDB7;
}

.menu__description-link-text a {
  color: #333333;
  text-decoration: none;
}

.sec__teacher {
  padding: 16px;
  margin-top: 64px;
}

.teacher {
  display: flex;
}

.teacher__img {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  border-radius: 16px;
}

.teacher__introduction {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher__name {
  font-size: 1.6rem;
}

.teacher__biography {
  margin-top: 8px;
}


@media screen and (min-width: 560px) {
  .teacher__img {
    flex: 0 0 196px;
    width: 196px;
    height: 196px;
  }

  .teacher__name {
    font-size: 2.4rem;
  }  
}

.teacher__message {
  position: relative;
  background: #FFF5E7;
  border-radius: 16px;
  margin-top: 24px;
  padding: 16px;
}

.teacher__message::before {
  position: absolute;
  content: '';
  top: -32px;
  left: 32px;
  border: 16px solid transparent;
  border-bottom: 16px solid #FFF5E7;
}

.menu-link.menu-link--out-page::after {
  background: #FB43C5;
}

.teacher__blog-link {
  text-align: right;
  margin-top: 16px;
}


.teacher__blog-link-text {
  display: inline-block;
  position: relative;
  font-weight: 800;
  padding: 8px;
}

.teacher__blog-link-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #FB43C5;
}

.teacher__blog-link-text a {
  color: #333333;
  text-decoration: none;
}

.sec__price-table {
  margin-top: 64px;
  padding: 16px;
}

.sec__price-table-menu {
  margin-top: 32px;
}

.price-table {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  margin: 32px auto;
}

.price-table__menu {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.price-table__menu-title {
  color: #FFFFFF;
  background: #FB8A43;
  margin: 0 auto;
  padding: 4px 16px;
  border-radius: 16px;
}

.price-table__menu-price {
  margin: 8px;
  text-align: center;
}

.price-detail-menu {
  display: flex;
  flex-direction: column;
}

.price-detail-menu__course {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
}

.price-detail-menu__course + .price-detail-menu__course{
  border-top: dashed 2px #FB8A43;
}

.price-detail-menu__course-title {
  flex: 1;
  margin: 0 auto;
  padding: 4px;
}

.course-price__menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price__menu + .course-price__menu {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dotted #FB8A43;
}

.course-price__menu-title {
  flex-grow: 1;
  padding: 0 4px;
}

.course-price__menu-price {
  text-align: right;
  width: 80px;
}

@media screen and (min-width: 560px) {
  .price-detail-menu__course-title {
    padding: 8px;
  }
  
  .course-price__menu-title {
    padding: 0 8px;
  }  

  .course-price__menu-price {
    width: 92px;
  }
}

.sec__qa {
  padding: 16px;
}

.qa__q {
  float: right;
  position: relative;
  max-width: calc(100% - 64px);
  background: #ACEDB7;
  margin-top: 32px;
  padding: 8px;
  border-radius: 8px;
}

.qa__q::before {
  position: absolute;
  content: '';
  top: 4px;
  right: -8px;
  border: 8px solid transparent;
  border-top: 8px solid #ACEDB7;
}

.qa__a {
  display: inline-block;
  position: relative;
  max-width: calc(100% - 64px);
  background: #FFF5E7;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
}

.qa__a::before {
  position: absolute;
  content: '';
  top: 4px;
  left: -8px;
  border: 8px solid transparent;
  border-top: 8px solid #FFF5E7;
}

@media screen and (min-width: 560px) {
  .qa__q, .qa__a {
    max-width: calc(100% - 128px);
    padding: 16px;
    border-radius: 16px;
  }
  .qa__q::before {
    border: 16px solid transparent;
    border-top: 16px solid #ACEDB7;
  }
  .qa__a::before {
    border: 16px solid transparent;
    border-top: 16px solid #FFF5E7;  
  }
}

.inquiry {
  position: fixed;
  width: calc(100% - 80px) ; /* 100% - 64(margin) - 16(padding) */
  color: #FFFFFF;
  background: #FB8A43;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin: 0 32px;
  padding: 8px;
  border-radius: 16px;
  bottom: -64px;
  box-shadow: 0px 0px 25px 5px #FFFFFF;
  transition: bottom 0.5s ease-out;
}

.inquiry--show {
  bottom: 64px;
}

@media screen and (min-width: 560px) {
  .inquiry {
    width: calc(100% - 160px); /* 100% - 128(margin) - 32(padding) */ 
    max-width: 608px; /* 768 - 128(margin) - 32(padding) */
    font-size: 2rem;
    margin: 0 64px;
    padding: 16px;
  }
}