@charset "UTF-8";
/*
	textbook
-----------------------------------------------------------------------------------------------*/
.textbook {
  display: flex;
  gap: 0 65px;
  justify-content: center;
}
.copy__head {
  font-size: 2.2rem;
}
.textbook__figure {
  box-shadow: 10px 7px 27px rgb(0, 0, 0, 0.15);
  width: 325px;
}
.textbook__caption {
  flex: 1;
  max-width: 490px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.caption__head {
  border-bottom: 1px solid var(--floworange);
  padding-bottom: 20px;
}
.caption__txt {
  margin: 15px 0 16px 0;
}
.textbook .btnArea {
  justify-content: start;
}
.entry__btn {
  background: var(--btnbaseyellow);
  width: 220px;
  transition: 0.3s;
}
.textbook__sns-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 1px solid #000;
  background: #fff;
  gap: 35px;
  border-radius: 15px;
  padding: 30px 55px 30px 30px;
  transition: 0.3s;
}
.textbook__sns-link:hover {
  background: #fffce1;
  color: var(--floworange);
}
.textbook__sns-icon {
  width: 60px;
}
.textbook__sns-copy {
  font-size: 2rem;
  line-height: 1.5;
  font-weight: var(--bold);
}
/* 例題
============================== */
.copy__head {
  line-height: 1.5;
}
.example {
  background: #fff;
  margin-top: 120px;
  padding: 100px 20px 45px;
  position: relative;
  text-align: center;
}
/* border */
.example::before,
.example::after,
.example-container::before,
.example-container::after {
  background: #000;
  content: "";
  position: absolute;
}
.example::before,
.example::after {
  height: 1px;
  left: 50%;
  transform: translate(-50%, 0);
  width: calc(100% - 110px);
}
.example::before {
  top: 0;
}
.example::after {
  bottom: 0;
}
.example-container::before,
.example-container::after {
  height: calc(100% - 110px);
  top: 50%;
  transform: translate(0, -50%);
  width: 1px;
}
.example-container::before {
  left: 0;
}
.example-container::after {
  right: 0;
}
/* head */
.section__head {
  left: 50%;
  position: absolute;
  top: -40px;
  transform: translate(-50%, 0);
}
.section__head::before {
  background: #fff;
  bottom: 23px;
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0);
  width: 150px;
  z-index: -1;
}
.example__list {
  display: flex;
  flex-wrap: wrap;
  gap: 45px 0;
  justify-content: center;
}
.example__item {
  padding-bottom: 60px;
  width: 900px;
}
.example__item:not(:last-child) {
  border-bottom: 1px solid var(--floworange);
}
.txt__number {
  color: var(--floworange);
  line-height: 1;
  margin-bottom: 30px;
}
.choice__list {
  display: flex;
  gap: 0 35px;
  justify-content: center;
  margin: 30px 0 42px 0;
}
.long__choice-list {
  flex-wrap: wrap;
  gap: 20px 10px;
}
.long__choice-txt {
  width: calc((100% - 10px) / 2);
  text-align: left;
  line-height: 1.3;
  padding: 0 0 0 3rem;
  text-indent: -2rem;
}
/* button */
.anser__btn {
  align-items: center;
  justify-content: flex-start;
  background: var(--btnbaseyellow);
  display: flex;
  font-size: 1.6rem;
  font-weight: var(--bold);
  height: 58px;
  padding: 0 20px;
  position: relative;
  width: 220px;
  transition: 0.3s;
}
.anser__btn::before,
.anser__btn::after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 1px;
  height: 17px;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: #000;
  transition: 0.5s;
}
.anser__btn::before {
  transform: translateY(-50%) rotate(90deg);
}
.anser__btn:hover {
  background-color: var(--btnhoverorange);
}
.close_btn {
  background-color: var(--btnhoverorange);
}
.close_btn.anser__btn::after {
  transform: translateY(-50%) rotate(90deg);
}
/* answer */
.example__a {
  background: var(--bgbasebrown);
  margin-top: 30px;
  padding: 35px;
}
.example__version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 10px;
  margin-top: 25px;
}
.example__version--img {
  max-width: 105px;
}
.example__version--txt {
  text-align: left;
}
/* anime */
[class^="example__img0"] {
  position: absolute;
  z-index: 1;
}
.example__img01,
.example__img04 {
  width: 61px;
}
.example__img01 {
  animation: anmUpdown01 5s ease 0s infinite;
  right: 80px;
  top: -32px;
}
.example__img02 {
  animation: anmUpdown02 6s ease 1s infinite;
  bottom: 530px;
  right: -75px;
  width: 55px;
}
.example__img03 {
  animation: anmUpdown01 6s ease 0s infinite;
  bottom: 450px;
  right: -17px;
  width: 45px;
}
.example__img04 {
  animation: anmUpdown01 5s ease 0s infinite;
  bottom: 300px;
  left: -40px;
}
.example__img05 {
  animation: anmUpdown02 5s ease 1s infinite;
  bottom: -60px;
  left: 170px;
  width: 112px;
}
@media screen and (max-width: 812px) {
  .ctsArea {
    padding: 0;
  }
  .textbook {
    display: block;
    text-align: center;
  }
  .textbook__figure {
    margin: 0 auto;
    text-align: center;
    width: 178px;
  }
  .textbook__caption {
    display: block;
    max-width: 100%;
    text-align: center;
  }
  .textbook__txtarea {
    margin: 0 0 32px 0;
  }
  .caption__head {
    padding: 25px 0 15px;
  }
  .caption__txt {
    margin: 20px 0 19px;
  }
  .textbook .btnArea {
    justify-content: center;
  }
  .textbook__sns {
    display: flex;
    justify-content: center;
  }
  .textbook__sns-link {
    padding: 20px;
    max-width: 300px;
    gap: 20px;
  }
  .textbook__sns-icon {
    width: 62px;
  }
  .textbook__sns-copy {
    font-size: 1.6rem;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
  }
  /* 例題
	============================== */
  .example {
    margin-top: 90px;
    padding: 50px 20px 70px;
  }
  /* border */
  .example::before,
  .example::after {
    width: calc(100% - 26px);
  }
  .example-container::before,
  .example-container::after {
    height: calc(100% - 26px);
  }
  /* head */
  .section__head {
    top: -30px;
  }
  .section__head::before {
    bottom: 12px;
    width: 100px;
  }
  .example__list {
    gap: 40px 0;
  }
  .example__item {
    padding-bottom: 60px;
    width: 100%;
  }
  .example__item:last-child {
    padding-bottom: 0;
  }
  .txt__number {
    margin-bottom: 20px;
  }
  .choice__list {
    display: inline-block;
    margin: 20px 0 30px 0;
  }
  .choice__item {
    width: 100%;
    /*width: calc((100% - 10px)/2);*/
  }
  .choice__item:not(:last-child) {
    margin: 0 0 10px 0;
  }
  .long__choice-txt:not(:last-child) {
    margin: 0 0 15px 0;
  }
  .long__choice-txt {
    font-size: 1.7rem;
  }
  /* answer */
  .copy__head {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  .example__a {
    margin-top: 30px;
    padding: 20px;
    position: relative;
  }
  .example__version {
    display: block;
    margin-top: 18px;
  }
  .example__version--img {
    max-width: 70px;
    position: absolute;
    right: 10px;
    top: -10px;
  }
  .example__version--txt {
    text-align: left;
  }
  /* anime */
  .example__img01,
  .example__img04 {
    width: 45px;
  }
  .example__img01 {
    right: 30px;
    top: -18px;
  }
  .example__img02 {
    bottom: auto;
    top: 320px;
    right: -30px;
    width: 60px;
  }
  .example__img03 {
    bottom: auto;
    top: 665px;
    right: -20px;
    width: 45px;
  }
  .example__img04 {
    bottom: auto;
    left: -30px;
    width: 60px;
  }
  .example__img05 {
    bottom: -60px;
    left: 20px;
    width: 100px;
  }
}
@keyframes anmUpdown01 {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes anmUpdown02 {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}
