/* common */

body {
  font-family: 'ヒラギノ明朝 ProN','Hiragino Mincho ProN','Yu Mincho Light','YuMincho','Yu Mincho','游明朝体',sans-serif;
  background: #F9F5EF;
}

img {
  vertical-align: bottom;
}

a:hover {
  opacity: .7;
}

a {
  text-decoration: none;
  color: #666666;
}

li,ul {
  list-style: none;
  font-size: 0.95em;
  color: #666666;
  width: 95vw;
  margin: 0 auto;
}

section {
  margin-top: 120px;
}

.title {
  text-align: center;
  margin: 0 0 40px 0;
}

.title img {
  width: 95vw;
}

p {
  font-size: 0.95em;
}

.main_text {
  color: #666666;
  line-height: 2;
  max-width: 95vw;
  margin: 0 auto;
}

.more_button {
  background: #E2B6BB;
  text-align: center;
  width: 120px;
  padding: 10px;
  margin: 0 auto;
}

.more_button a {
  color: #fff;
}

span.red {
  color: red;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.pc-mode,
.pc-br {
  display: none;
}

/* body */

/* header */

header {
  background: #F3EEE9;
  height: 60px;
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99;
  opacity: 0;
  transition: opacity .3s;
}

header.lower {
  opacity: 1;
}

header.scrolled {
  opacity: 1;
}

.bibi_logo {
  text-align: center;
}

.bibi_logo img {
  width: 170px;
}

#open {
  position: absolute;
  top: 15px;
  right: 15px;
}

#open img {
  height: 20px;
}

#open.hide {
  display: none;
}

.overlay {
  background: #E2B6BB;
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  z-index: 100;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay a {
  color: #fff;
}

.overlay ul {
  padding-top: 56px;
}

.overlay li {
  padding: 8px;
  border-bottom: 1px solid #fff;
}

.overlay li:last-child {
  border-bottom: none;
}

.overlay #close {
  position: absolute;
  top: 16px;
  right: 16px;
}

#close img {
  width: 30px;
}

/* main */

#top {
  margin-top: 0;
  position: relative;
}

.top_copy {
  color: #fff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  font-size: 24px;
}

/* BIBIMAKE.のフェードインアニメーション */
.logo img {
  width: 200px;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%)translateX(-50%);
  animation-name:logo-fadeIn;
  animation-delay: 0.5s;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  opacity: 0;
  z-index: -1;
}
  
@keyframes logo-fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#top {
  animation-name: top-fadeIn;
  animation-delay: 3s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes top-fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#top .top_copy {
  margin-top: 0px;
  animation-name: top-text-fadeIn;
  animation-delay: 5s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes top-text-fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ループアニメーション */
.top_img_wrapper img {
  height: 100%;
}

.top_img_wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

@keyframes loop1 {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}

.top_img_wrapper img:first-child {
  animation: loop1 50s -25s linear infinite;
}

.top_img_wrapper img:last-child {
  animation: loop2 50s linear infinite;
}
/* ループアニメーション */

.greeting_back {
  background: #fff;
  max-width: 95vw;
  margin: 0 auto;
  border-radius: 5px;
  padding: 24px 0 24px 0;
  position: relative;
}

.inner_text {
  color: #666666;
  line-height: 2;
  max-width: 90vw;
  margin: 0 auto;
}

#greeting .more_button {
  margin: 32px 0px 32px 32px;
}

.chisato_wrapper {
  display: flex;
  position: absolute;
  right: 20px;
  bottom: 0;
  align-items: flex-end;
}

#greeting .main_text {
  padding-right: 8px;
}

.chisato_img img {
  width: 110px;
}

.clinic_wrapper {
  padding-bottom: 56px;
}

.clinic_wrapper li:first-child {
  font-size: 21px;
  font-weight: bold;
  padding-bottom: 8px;
}

.clinic_wrapper li {
  padding-top: 8px;
}

#clinic a {
  border-bottom: #666666 1px solid;
}

#clinic video {
  width: 100vw;
  margin-bottom: 8px;
}

.container {
  width: 95vw;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.container img {
  width: 100%;
}

.container ul {
  display: flex;
  transition: transform .3s;
}

.container li {
  min-width: 100%;
}

#prev,
#next,
#prev02,
#next02 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .8);
  color: #666;
  font-size: 24px;
  padding: 0 8px 4px 8px ;
  cursor: pointer;
}

#prev:hover,
#next:hover,
#prev02:hover,
#next02:hover {
  opacity: .7;
}

#prev,
#prev02 {
  left: 8px;
}

#next,
#next02 {
  right: 8px;
}

.hidden {
  display: none;
}

.carousel nav {
  margin-top: 8px;
  text-align: center;
}

.carousel nav button {
  width: 16px;
  height: 16px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
}

.carousel nav .current {
  background: #999;
}

#clinic .clinic_wrapper {
  padding-bottom: 32px;
}

.clinic_map {
  text-align: center;
  margin: 40px 0 40px 0;
}

.clinic_map img {
  width: 90vw;
}

.case_wrapper {
  border: #E2B6BB 1px solid;
  background: #fff;
  width: 95vw;
  margin: 16px auto 0px auto;
}

.case_wrapper dt {
  background: #E2B6BB;
  color: #fff;
  padding: 8px;
  font-size: 21px;
  cursor: pointer;
  position: relative;
}

.case_wrapper dt::after {
  content: '+';
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 16px;
  transition: transform .3s;
}

.case_wrapper dd {
  width: 90vw;
  margin: 24px auto 24px auto;
  display: none;
}

.case_wrapper img {
  width: 90vw;
}

dl > div.appear dd {
  display: block;
  animation: .7s fadeIn;
}

dl > div.appear dt::after {
  transform: rotate(45deg);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

#course li,
#course ul {
  width: 98vw;
  margin: 0 auto;
}

#course ul img {
  width: 100%;
}

#course ul {
  margin-bottom: 24px;
}

.sns_wrapper {
  display: flex;
  width: 95vw;
  margin: 0 auto;
  align-items: center;
  font-size: 0.95em;
  justify-content: space-around;
  margin-bottom: 40px;
}

.sns_wrapper img {
  width: 45px;
}

#campany table {
  width: 90vw;
  margin: 0 auto;
}

#campany table td, 
#campany th {
  border: #E2B6BB 1px solid;
  font-family: 'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','ヒラギノ角ゴシック','Hiragino Sans',YuGothic,'Yu Gothic',sans-serif;
  font-weight: normal;
  padding: 12px;
}

#campany table th {
  background: #E2B6BB;
  color: #fff;
  border-bottom: #fff 1px solid;
  text-align: left;
}

#campany table tr:last-child th {
  border-bottom: #E2B6BB;
}

#campany table td {
  background: #fff;
  color: #666;
}

form table {
  width: 90vw;
  margin: 0 auto;
  font-family: 'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','ヒラギノ角ゴシック','Hiragino Sans',YuGothic,'Yu Gothic',sans-serif;
}

form table th {
  font-weight: normal;
  font-size: 14px;
  width: 135px;
  text-align: left;
}

form table td,
form table th {
  padding: 8px 0 8px 0;
}

form input,
form textarea {
  border:#E2B6BB 1px solid;
  background: #fff;
  width: 100%;
  padding: 4px;
}

form textarea {
  height: 200px;
}

#submit_btn {
  background: #E2B6BB;
  color: #fff;
}

form table {
  margin-bottom: 16px;
}

.line_link {
  text-align: center;
  margin: 40px 0 40px 0;
}

.line_link img {
  margin-top: 8px;
  width: 300px;
}

#return_top {
  text-align: center;
  margin-bottom: 40px;
}

#return_top img {
  width: 100px;
  margin-bottom: -16px;
}

footer {
  background: #E2B6BB;
  color: #fff;
  text-align: center;
  padding: 40px;
}

/* lower */

.title_lower {
  text-align: center;
  margin: 0 0 64px 0;
}

.title_lower img {
  height: 40px;
}

.title_lower.sp-mode img {
  height: auto;
  width: 95vw;
}

#lower #greeting .lower_greeting_img {
  width: 80vw;
  margin: 64px auto 64px auto;
}

#lower #greeting .lower_greeting_img img {
  width: 80vw;
}

#lower #greeting .inner_text.last {
  margin-bottom: 80px;
}

#lower .clinic_map {
  margin: 64px 0 80px 0;
}

.clinic_wrapper_wap {
  margin-bottom: 64px;
}

#lower #greeting .inner_text {
  font-size: 18px;
}

#lower .couese_lower_img {
  width: 95vw;
  margin: 0 auto;
}

#lower .couese_lower_img img {
  width: 95vw;
}

#lower .couese_lower_img.plus {
  width: 40px;
  margin: 16px auto 16px auto;
}

#lower .couese_lower_img.plus img {
  width: 40px;
}

#lower .course_section {
  margin-bottom: 80px;
}

#lower #course table {
  width: 95vw;
  margin: 0 auto;
  font-size: 14px;
}

#lower #course table td, 
#lower #course th {
  border: #E2B6BB 1px solid;
  font-family: 'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','ヒラギノ角ゴシック','Hiragino Sans',YuGothic,'Yu Gothic',sans-serif;
  font-weight: normal;
  padding: 12px;
}

#lower #course table th {
  background: #E2B6BB;
  color: #fff;
  border-bottom: #fff 1px solid;
  text-align: left;
  width: 130px;
}

#lower #course table tr:last-child th {
  border-bottom: #E2B6BB;
}

#lower #course table td {
  background: #fff;
  color: #666;
}

.course_others li {
  font-size: 24px;
  text-align: center;
}

.course_others li a {
  color: #E2B6BB;;
}

.side_line_title_sp {
  display: flex;
  align-items: center;
  color: #784E55;
  font-size: 24px;
  padding: 0px 8px 16px 8px;
}

/* .side_line_title_sp:before, */
.side_line_title_sp:after {
  content: "";
  height: 1.5px;
  flex-grow: 1;
  background-color: #784E55;
}

.side_line_title_sp:before {
  margin-right: 1rem;
}

.side_line_title_sp:after {
  margin-left: 1rem;
}


/* movie ============================== */

.movie_title {
  padding-top: 110px;
  font-size: 28px;
  font-weight: normal;
  color: #784E55;
  text-align: center;
}

.movie_title_under-line {
  border-top: #784E55 2px solid;
  width: 150px;
  margin: 0 auto;
  margin-top: 4px;
  margin-bottom: 64px;
}

.movie_content {
  width: 300px;
  margin: 0 auto 56px auto;
  text-align: center;
}

.movie_content h4 {
  color: #784E55;
  font-size: 22px;
  margin-bottom: 8px;
}

.movie_content video {
  width: 300px;
  margin-bottom: 8px;
}

.movie_content a {
  border-bottom: 1px solid #784E55;
  font-weight: bold;
}

#complete {
  text-align: center;
  color: #784E55;
}

.complete_ttl {
  margin-top: 100px;
  margin-bottom: 40px;
}

.cmp_footer {
  position: absolute;
  bottom: 0;
  width: 100vw;
}

@media (min-width: 850px) {

  /* main */

   p {
    font-size: 18px
   }

   .sp-mode,
   .sp-br {
    display: none;
   }

   .pc-mode,
   .pc-br {
    display: block;
   }

   .title.pc-mode img {
    height: 60px;
    width: auto;
   }

   .pc-nav {
    width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
   }

   .pc-nav ul {
    display: flex;
   }

   .pc-nav ul li {
    padding: 0 12px 0 12px;
   }

   #what_bibi,
   #greeting,
   #clinic,
   #case,
   #course,
   #instagram,
   #movie {
    width: 800px;
    margin: 180px auto 0 auto;
   }

   #campany,
   #contact {
    width: 800px;
    margin: 180px auto 0 auto;
   }

   #what_bibi .main_text {
    text-align: center;
   }

  .greeting_back {
    padding: 24px;
  }

  .chisato_img img {
    width: 150px;
  }

  #clinic video {
    width: 100%;
  }

  li, ul {
    width: auto;
    margin: 0;
  }

  .clinic_wrapper {
    font-size: 18px;
    text-align: center;
  }

  .clinic_wrapper li:first-child {
    font-size: 28px;
    font-weight: bold; 
    margin-top: 48px;
  }

  .clinic_pc_wap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .clinic_pc_wap img {
    width: 380px;
  }

  .clinic_map img {
    width: 55%;
  }

  .case_wrapper,
  .case_wrapper img {
    width: 100%;
  }

  .case_wrapper dd {
    width: auto;
    margin-top: 32px;
    padding: 64px;
  }

  #course li.pc-mode,
  #course ul {
    width: 800px;
    margin: 80px auto 0 auto;
  }

  #course li.pc-mode img {
    width: 800px;
    margin: 0 auto;
  }
  

  .sns_wrapper {
    width: 800px;
    justify-content: center;
    font-size: 18px;
  }

  .instagram_post {
    display: flex;
  }

  #campany table {
    width: 100%;
  }

  form table {
    width: 100%;
  }

  /* lower */

  #lower #greeting .lower_greeting_img {
    width: 350px;
    margin: 64px auto 64px auto;
  }
  
  #lower #greeting .lower_greeting_img img {
    width: 350px;
  }

  #lower .title img {
    width: 100%;
  }

  .title_lower img {
    height: 60px;
  }

  .side_line_title {
    display: flex;
    align-items: center;
    color: #784E55;
    font-size: 42px;
  }
 
  .side_line_title:before,
  .side_line_title:after {
    content: "";
    height: 3px;
    flex-grow: 1;
    background-color: #784E55;
  }
 
  .side_line_title:before {
    margin-right: 1rem;
  }
 
  .side_line_title:after {
    margin-left: 1rem;
  }

  .couese_lower_img.pc-mode img {
    width: 800px;
  }

  #lower .couese_lower_img,
  #lower .couese_lower_img img {
    width: 100%;
  }

  #lower .course_section {
    margin-bottom: 180px;
  }

  #lower #course table,
  #course li, #course ul {
    width: 100%;
  }

  .curriculum_flexbox {
    display: flex;
    flex-wrap: wrap;
  }

  .curriculum_flexbox .couese_lower_img,
  .curriculum_flexbox .couese_lower_img img {
    width: 380px !important ;
  }

  .curriculum_flexbox .couese_lower_img {
    margin: 0 auto 24px auto !important;
  }

  /* movie ============================== */
  
  .movie_wap {
    display: flex;
    justify-content: center;
  }

  .movie_content {
    margin: 0 48px 104px 48px;
  }

}