html {
  scroll-behavior: smooth;
}

header {
  /*
  background: rgba(var(--accentColorRGB), 0.3);
*/
  background: #fffafa;
}

#page-title {
  background: var(--accentColor);
}

main {
  padding: 4rem 1rem 2rem;
  width: 100%;
  margin: 0;
}


main h1 {
  letter-spacing: 4pt;
  line-height: 3;
  text-align: center;
  font-weight: 900;
  color: #2d3436;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff;
}

html#kids-p1 main h1 {
  font-size: 4rem;
}

html#kids-p2 main h1 {
  font-size: 4rem;
}

html#kids-p3 main h1 {
  font-size: 3rem;
}

.main-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5em 0 2em;
}

.main-container h2 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 2rem;
  text-align: center;
  margin: 1.5em auto 2.5em;
  letter-spacing: 2.75pt;
  line-height: 2.0;
  width: 100%;
}

.main-container h2 rt {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.main-container h2:before {
  content: '';
  position: absolute;
  bottom: -25px;
  display: inline-block;
  width: 60px;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #a4343a;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  main h1 {
    font-size: 2.25rem;
    line-height: 2.05;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .main-container {
    width: 100%;
    padding: 1em 0;
  }

  .main-container h2 {
    font-size: 1.5rem;
    flex-wrap: wrap;
  }

  .main-container h2 rt {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
}

.main-inner {
  max-width: 1280px;
  padding: 1rem 10%;
  margin: 2em auto;
}

.main-inner h3 {
  position: relative;
  line-height: 1.75em;
  text-align: left;
  font-size: 25px;
  margin: 100px 10% 0;
  padding-left: 25px;
  border-bottom: solid 3px #a4343a;
  letter-spacing: 2.0pt;
}

.main-inner h3:before {
  position: absolute;
  content: '';
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0;
  border: none;
  border-left: solid 15px transparent;
  border-bottom: solid 15px rgb(0, 0, 0);
}

.main-inner h3:after {
  position: absolute;
  content: '';
  bottom: -3px;
  left: 10px;
  width: 100%;
  border-bottom: solid 3px rgb(0, 0, 0);
}

.main-inner h3 span {
  font-size: 22px;
  position: absolute;
  right: 0;
}


@media screen and (max-width: 768px) {
  .main-inner {
    max-width: 1280px;
    padding: 1rem 0;
    margin: 2em auto;
  }

  .main-inner h3 {
    font-size: 110%;
  }

  .main-inner h3 span {
    font-size: 100%;
    display: block;
    position: relative;
  }
}


/* 会話吹き出し */
/* 全体の設定 */
.balloon {
  display: block;
  padding: 0 20px;
  height: auto;
  min-height: 120px;
}

.balloon-color {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: 2em auto;
  padding: 0 5%;
  height: auto;
}

.chatting-color {
  width: auto;
  max-width: 700px;
  height: auto;
  position: relative;
  margin: 2% 0;
  padding: 30px 50px;
  background: #fff;
  text-align: left;
  white-space: normal;
  border-radius: 15px;
  color: #111;
  line-height: 2.0;
  letter-spacing: 2.75pt;
  font-size: 1.3em;
  display: inline-block;
}

.chatting-color rt {
  font-size: 0.5em;
  letter-spacing: 1pt;
}


/* 左の吹き出し */
.balloon-color.left {
  flex-direction: row;

  /* 左から右に並べる */
}

.left .chatting-color {
  left: 130px;
  box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.left .chatting-color::after {
  content: "";
  border: 15px solid transparent;
  border-top-color: #fff;
  position: absolute;
  top: 35px;
  left: -15px;
}

/* 右の吹き出し */
.balloon-color.right {
  flex-direction: row-reverse;
  /* 右から左に並べる */
}

.right .chatting-color {
  right: 150px;
  box-shadow: -10px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.right .chatting-color::after {
  content: "";
  border: 15px solid transparent;
  border-top-color: #fff;
  position: absolute;
  top: 45px;
  right: -15px;
}

.kidsbg .chatting-color {
  right: 220px;
}


@media screen and (max-width: 1024px) {
  .balloon {
    padding: 0;
  }

  .balloon-color {
    padding: 0;
  }

  .chatting-color {
    width: auto;
    max-width: 500px;
  }
}

@media screen and (max-width: 768px) {
  .balloon {
    display: block;
    padding: 0;
    margin: 0;
    min-height: 120px;
    margin-bottom: 2rem;
  }

  .balloon-color {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
  }


  .chatting-color {
    width: 92%;
    max-width: 550px;
    height: auto;
    position: relative;
    display: block;
    margin: 0;
    padding: 1em;
    left: 0;
  }

  .left .chatting-color {
    left: 0px;
  }

  .right .chatting-color {
    right: 0px;
  }

  .left .chatting-color::after,
  .right .chatting-color::after {
    display: none;
  }


}

/* 説明画像つき */
.balloon-img {
  width: 100%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: 2em auto;
  padding: 0 2%;
  height: auto;
  justify-content: center;
  align-items: center;
}

.balloon-img .chatting-color {
  width: 55%;
  height: auto;
  display: inline-block;
  position: relative;
  margin: 0;
  margin-left: 1em;
  padding: 20px 30px;
  background: #fff;
  text-align: left;
  border-radius: 15px;
  color: #111;
  line-height: 1.75em;
  font-size: 18px;
  left: 0;
  box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.balloon-img .ballon-inner-img {
  width: 40%;
  height: auto;
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  left: 0;
}

.balloon-img .ballon-inner-img img {
  width: 100%;
  max-width: 350px;
  margin: 1em;
  border: 1px solid #111;
}


@media screen and (max-width: 768px) {
  .balloon-img {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2em auto;
    padding: 0 2%;
    height: auto;
    align-items: center;
  }

  .balloon-img .chatting-color {
    width: 90%;
    max-width: 650px;
    height: auto;
    display: block;
    position: relative;
    margin: 0;
    margin-left: 0;
    padding: 15px;
    background: #fff;
    text-align: left;
    border-radius: 15px;
    color: #111;
    line-height: 1.75em;
    font-size: 18px;
    left: 0;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
  }

  .balloon-img .ballon-inner-img {
    width: 90%;
    height: auto;
    display: block;
    position: relative;
    margin: 0 1em;
    padding: 1em 1em;
    left: 0;
  }

  .balloon-img .ballon-inner-img img {
    width: 100%;
    margin: 0;
    border: 1px solid #111;
  }

}

/* アイコンの作成 */
.balloon-color figure img {
  margin: 0;
}

/* アイコンの大きさ */
.icon-color {
  position: absolute;
  display: block;
}

.left .icon-color img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.right .icon-color img {
  width: auto;
  height: 130px;
  object-fit: contain;
}

@media screen and (max-width: 768px) {

  .balloon-color figure,
  .balloon-botabon figure {
    display: flex;
    margin: 1em 0;
    justify-content: center;
  }


  .balloon-color figure img,
  .balloon-botabon figure img {
    text-align: center;
  }

  /* アイコンの大きさ */
  .icon-color {
    position: relative;
    top: 0;
    display: block;
  }

  .icon-color img {
    width: 120px;
    height: 120px;
    object-fit: contain;
  }
}

/* 文中画像 */
.inner-img {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5em 0;
}

.inner-img a {
  text-decoration: none;
  color: #181D38;
  position: relative;
  display: block;
}

.inner-img figure img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  max-height: 600px;
  object-fit: contain;
  /*  border: 2px solid #555;*/
  background: none;
}

.inner-img figcaption {
  font-size: 1.25rem;
  letter-spacing: 2.5pt;
  font-weight: bold;
  text-align: center;
  line-height: 1.75em;
  padding-top: 1rem;
}

.inner-img figcaption rt {
  font-size: 0.5rem;
  letter-spacing: 1pt;
}

.inner-img figcaption span {
  display: block;
  color: #CC2C37;
}

.inner-img figcaption span.license {
  color: #000;
  font-size: 60%;
}


.inner-img .caption {
  width: 100%;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  line-height: 1.75em;
}

.inner-img figure p {
  position: absolute;
  top: 5px;
  right: 10px;
  border: none;
}

.inner-img figure p img {
  width: 50px;
  height: 50px;
  border: none;
  background: none;
}

.com2-cont>a {
  width: 45%;
  margin: 0 0.5em;
}

/* 2列、3列ならび */
.col2,
.col3 {
  /*
background-color: rgba(38, 38, 38, 0.2);*/
  background: #FFFFFA;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.col2>.inner-img {
  width: 45%;
  margin: 1rem 1rem;
}

.col2>.inner-img figure>img {
  width: 500px;
  height: 500px;
  object-fit: contain;
}

.col3>.inner-img {
  width: 31%;
  margin: 1rem 0.5rem;
}

.col3>.inner-img figure>img {

  width: 300px;
  height: 300px;
  object-fit: contain;
}

.col3>.inner-img figcaption {
  font-size: 15px;
}

@media screen and (max-width: 768px) {
  .inner-img {
    width: 100%;
    display: block;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2.5em 0;
  }

  .inner-img a {
    width: auto;
    display: block;
    text-decoration: underline;
    position: relative;
  }

  .inner-img figure {
    width: 90%;
    margin: 1em;
  }

  .inner-img figure img {
    width: 100%;
    max-width: 767px;
    object-fit: contain;
    border: 2px solid #555;
    background: #fff;
  }

  .inner-img figcaption {
    font-size: 17px;
    font-weight: bold;
    text-align: left;
    line-height: 1.75em;
  }

  .inner-img .caption {
    width: 100%;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    line-height: 1.75em;
  }

  .inner-img figure p {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
  }

  .inner-img figure p img {
    width: 50px;
    height: 50px;
    border: none;
    background: none;
  }
}

/* ページネーション */

.page-f {
  display: block;
  width: 100%;
  margin: 1em auto;
  padding: 2em 0;
  text-align: center;

}

.pagination {
  display: inline-block;
}

.pagination a {
  float: left;
  padding: 2px 12px;
  text-decoration: none;
  width: 42px;
  height: 42px;
  background: #fff;
  border: solid 2px #333;
  font-size: 24px;
  color: #111;
  font-weight: bold;
  transition: all 0.15s linear;

}

.pagination a.active {
  background-color: var(--accentColor);
  color: white;
  border: solid 2px var(--accentColor);
}

.pagination a:hover:not(.active) {
  background-color: #707070;
}

.pagination a:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.pagination a:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.back-index {
  margin: 1rem auto;
  padding: 1rem 1rem;
  width: 70%;
  min-width: 800px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  border-radius: 20px;
  justify-content: center;
  align-items: center;
}

.back-index img {
  width: 20%;
  max-width: 200px;
  padding-right: 1rem;
}

.go-back {
  color: #000;
  font-family: 'Open Sans', sans-serif;
  font-size: 2em;
  font-weight: 600;
  line-height: 1;
  padding-left: 3rem;
  position: relative;
  margin-left: 1rem;
}

.go-back::before,
.go-back::after {
  content: "";
  display: block;
  left: 0px;
  position: absolute;
  top: 50%;
  transition: left 0.1s;
}

.go-back::before {
  border-color: #000;
  border-style: solid;
  border-width: 0 0 2px 2px;
  height: 16px;
  margin-top: -7px;
  width: 16px;

  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.go-back::after {
  background: #000;
  height: 2px;
  width: 2.5rem;
}

.go-back:hover::before,
.go-back:hover::after {
  left: -3px;
}

@media screen and (max-width: 768px) {
  .back-index {
    width: 80%;
    min-width: 200px;
    display: block;
    text-align: center;
  }

  .back-index img {
    width: 50%;
    min-width: 150px;
    max-width: 250px;
    padding-right: 0;
    text-align: center;
  }

  .go-back {
    width: 100%;
    display: block;
    color: #000;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.5;
    padding-left: 3rem;
    position: relative;
    margin-left: 1rem;
    margin-top: 1rem;
    text-align: left;
  }

}

/* 折り畳みポイント */
.accordion-008 {
  width: 80%;
  max-width: 800px;
  border-radius: 5px;
  box-shadow: 0 7px 15px -5px rgb(0 0 0 / 5%);
  background-color: #fff;
  margin: 5rem auto;
}

.accordion-008 summary {

  display: flex;
  /*
    justify-content: space-between;
*/
  align-items: flex-end;
  position: relative;
  padding: 1em 2em;
  color: #333333;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2.5pt;
  cursor: pointer;
}

.accordion-008 summary::-webkit-details-marker {
  display: none;
}

.accordion-008 summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 17px;
  height: 17px;
  margin-left: 10px;
  margin-bottom: 5px;
  border-bottom: 5px solid #333333b3;
  border-right: 5px solid #333333b3;
  content: '';
  transition: transform .3s;
}

.accordion-008[open] summary::after {
  transform: rotate(225deg);
}
.accordion-008 div {
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: .3em 2em 1.5em;
  color: #333333;
  transition: transform .5s, opacity .5s;
}
.accordion-008[open] div {
  transform: none;
  opacity: 1;
}

.accordion-008 .edo-a {
  padding: 0 1.25em 2rem;
  font-size: 1.5rem;
  line-height: 1.8;

}

/* 治右衛門さんのルートをみるボタン */
.original-button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: #000;
  font-size: 18px;
  border-radius: 20px;
  width: 60%;
  min-width: 450px;
  max-width: 650px;
  height: 80px;
  font-weight: bold;
  border: 2px solid #000;
  transition: 0.3s;
  box-shadow: 0px 6px 0px -2px rgba(67, 145, 209, 1);
  background-color: #22caf9;
  background-image: url('../kids/images/foot.png');
  background-repeat: no-repeat;
  background-position: 90%;
  background-size: 60px;
  margin: 4rem auto 2rem;
}

.original-button:hover {
  box-shadow: 0 0 #fff;
  transform: translateY(1px);
  color: #555555;
}

.original-button p {
  display: inline-block;
  margin: 0 auto;
  line-height: 3rem;
}

/* 入り口に戻る */
.back {
  width: 100%;
  max-width: 1280px;
  margin: 1rem auto 2rem;
  text-align: center;
}

.back a {
  display: inline-block;
  place-items: center;
  padding: 0.5rem 1rem;
  width: 70%;
  min-width: 200px;
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  vertical-align: middle;
  line-height: 3;
  background: var(--accentColor);
  position: relative;
  border-radius: 24px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
}

.back a::before,
.back a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 40px;
  margin: auto;
  vertical-align: middle;
}

.back a::before {
  width: 32px;
  height: 32px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #fff;
}

.back a::after {
  right: 51px;
  width: 14px;
  height: 14px;
  border-top: 4px solid var(--accentColor);
  border-right: 4px solid var(--accentColor);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

@media screen and (max-width: 768px) {
  .back a {
    padding: 1em 1em 0.5em;
    font-size: 1.25rem;
    padding-right: 80px;
    line-height: 2;
  }
}