.pre-content {
  background-color: #ffffff;
  height: fit-content;
  /*display: flex;
  flex-direction: column;*/
  flex-grow: 1;
  text-align: center;
  /*margin-top: 10px;*/
  /*padding-left: 2em;
  padding-right: 2em;*/
  font-size: medium;
  line-height: 30px;

  /*display: flex;*/
  justify-content: center;
  margin-top: 2em;
}

.titleswitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/*gifの位置*/
.gif-animation {

  /*padding: 30px;
  padding-right: 140px;*/
  height: fit-content;
  width: fit-content;

  float: left;
  margin-top: 5em;
  margin-right: 10%;
  margin-left: 15%;
  line-height: 20px;
}


.btn-container {
    text-align: center;
  }
  
  .footer {
    margin-top: 2em;
    text-align: center;
    margin-left: 0;
    color: #525151;
  }

  /* クリックで表示させるテキストを隠す */
  .hidden {
    display: none;
    
  }

  .content {
    background-color: #ffffff;
    height: fit-content;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    /*padding-left: 2em;
    padding-right: 2em;*/
    font-size: medium;
    line-height: 30px;
  }

  .content h2{
    position: relative;
    padding: 0.5rem 0 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 26px;
    background-image: linear-gradient(90deg, white 0% 40%, black 40% 60%, white 60%);
    background-repeat: no-repeat;
    background-size: 100% 0.3rem;
    background-position: bottom;
  }



  .main-text {
    margin-top: 2em;
    margin-bottom: 2em;
  }

  .img-left {
    width: 400px;
    height: 300px; 
    float: left;
    margin-right: 5%;
    margin-left: 5%;
    line-height: 20px;
}

.img-left2 {
  width: 300px;
  height: 400px; 
  float: left;
  margin-right: calc(5% + 50px);
  margin-left: 10%;
  line-height: 20px;
}

.text-right {
  padding-right: 7%;
}

.img-right {
  width: 400px;
  height: 300px; 
  float: right;
  margin-right: 5%;
  margin-left: 5%;
  line-height: 20px;
}

.img-right2 {
  width: 300px;
  height: 400px; 
  float: right;
  margin-right: 10%;
  margin-left: calc(5% + 50px);
  line-height: 20px;
}

.text-left {
  padding-left: 7%;
}

  .title {
    /*margin-left: 15%;*/
    /*margin-top: 30px;*/
    margin-top: 3em;
    margin-bottom: 2em;
    margin-left: 3%;
    padding-right: 25%;
    width: 390px;
    height: 80px;

  }
  .switch-text {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  text-align: center;
  color: white;
}
/*トグルスイッチ１つ目*/
  .switch_outer1 {
    width: 200px;
    height: 60px;
    margin: 10px;
    margin-left: 18%;
    background-color: rgb(206,90,85);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: background-color .2s ease-in-out;
}
.switch_outer1.active {
    background-color: rgb(206,90,85);
}
.toggle_switch1 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 5px;
    margin: auto;
    box-shadow: 1px 1px 7px #B7B7B7, -1px -1px 4px #CECECE inset;
    transition: left .3s ease-in-out;
}
.toggle_switch1.active {
    left: 145px;
}



/*トグルスイッチ２個目*/
.switch_outer2 {
  width: 200px;
  height: 60px;
  margin: 10px;
  margin-left: 20%;
  background-color: rgb(220,118,95);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.switch_outer2.active {
  background-color: rgb(220,118,95);
}
.toggle_switch2 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  box-shadow: 1px 1px 7px #B7B7B7, -1px -1px 4px #CECECE inset;
  transition: left .3s ease-in-out;
}
.toggle_switch2.active {
  left: 145px;
}

/*トグルスイッチ３つ目*/
.switch_outer3 {
  width: 200px;
  height: 60px;
  margin: 10px;
  margin-left: 22%;
  background-color: rgb(231,146,104);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.switch_outer3.active {
  background-color: rgb(231,146,104);
}
.toggle_switch3 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  box-shadow: 1px 1px 7px #B7B7B7, -1px -1px 4px #CECECE inset;
  transition: left .3s ease-in-out;
}
.toggle_switch3.active {
  left: 145px;
}

/*トグルスイッチ4つ目*/
.switch_outer4 {
  width: 200px;
  height: 60px;
  margin: 10px;
  margin-left: 24%;
  background-color: rgb(239,164,106);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.switch_outer4.active {
  background-color: rgb(239,164,106);
}
.toggle_switch4 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  box-shadow: 1px 1px 7px #B7B7B7, -1px -1px 4px #CECECE inset;
  transition: left .3s ease-in-out;
}
.toggle_switch4.active {
  left: 145px;
}

/*トグルスイッチ5つ目*/
.switch_outer5 {
  width: 200px;
  height: 60px;
  margin: 10px;
  margin-left: 26%;
  background-color: rgb(249,186,114);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.switch_outer5.active {
  background-color: rgb(249,186,114);
}
.toggle_switch5 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  box-shadow: 1px 1px 7px #B7B7B7, -1px -1px 4px #CECECE inset;
  transition: left .3s ease-in-out;
}
.toggle_switch5.active {
  left: 145px;
}

/*トグルスイッチ6つ目*/
.switch_outer6 {
  width: 200px;
  height: 60px;
  margin: 10px;
  margin-left: 28%;
  background-color: rgb(250,204,123);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.switch_outer6.active {
  background-color: rgb(250,204,123);
}
.toggle_switch6 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  box-shadow: 1px 1px 7px #B7B7B7, -1px -1px 4px #CECECE inset;
  transition: left .3s ease-in-out;
}
.toggle_switch6.active {
  left: 145px;
}