/* *****************************************************************************
子育て支援
***************************************************************************** */
body {
  background-color: #f0f0f0;
}

#wrapper {
  position: relative;
  background: url(../images/support/bg.jpg);
}

#wrapper::after {
  position: absolute;
  content: "";
  display: block;
  background: url(../images/philosophy/header_bg.webp) bottom center repeat-x;
  background-size: 684px;
  width: 100%;
  height: 420px;
  top: 0;
}

@media screen and (max-width: 800px) {
  #wrapper::before {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: calc(129vw - 500px);
    top: 0;
    background-color: #fff;
  }
  #wrapper::after {
    height: 129vw;
  }
}

.section_support_detail {
  position: relative;
  z-index: 1;
  padding-top: 210px;
  padding-bottom: 200px;
}

.section_support_detail > h2 {
  width: 264px;
  margin: auto;
}

.section_support_detail > h2 + .lead {
  width: 90%;
  max-width: 840px;
  margin: 20px auto 0 auto;
}

@media screen and (max-width: 800px) {
  .section_support_detail {
    padding-top: 50vw;
    padding-bottom: 20vw;
  }

  .section_support_detail > h2 {
    width: auto;
    text-align: center;
  }
  .section_support_detail > h2 > img {
    height: 8vw;
  }

  .section_support_detail > h2 + .lead {
    margin: 1.5em auto 0 auto;
  }
}

.support_body {
  background-color: #ffffffe0;
  border-radius: 48px;
  padding: 60px 60px 100px 60px;
  width: calc(1032px - 120px);
  margin: 80px auto 0 auto;
}

@media screen and (max-width: 800px) {
  .support_body {
    border-radius: 2rem;
    padding: 2rem 2rem 4rem 2rem;
    width: calc(90% - 4rem);
    margin: 20vw auto 0 auto;
  }
}

.support_body > hr {
  width: 100%;
  height: 24px;
  border: none;
  background: url(../images/support/hr.webp) center center no-repeat;
  background-size: contain;
  margin: 32px auto;
}

@media screen and (max-width: 800px) {
  .support_body > hr {
    height: 1rem;
    background-size: cover;
    margin: 2rem auto;
  }
}

.support_item h3 {
  border-left: solid 5px #000098;
}

.support_item h3 > img {
  height: 23px;
  padding-left: 8px;
}

@media screen and (max-width: 800px) {
  .support_item h3 > img {
    height: 1.25rem;
    padding-left: 0.5rem;
  }
}

.support_item .support_content {
  margin-top: 20px;
}

@media screen and (max-width: 800px) {
  .support_item .support_content {
    margin-top: 1.5rem;
  }
}

.support_item .support_content .picture_right {
  float: right;
  width: 45%;
  margin-left: 2em;
}

.support_item .support_content h4 {
  color: #e30075;
  margin-top: 20px;
  margin-bottom: 5px;
}
@media screen and (max-width: 800px) {
  .support_item .support_content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
}
.support_item .support_content a {
  color: #0098ff;
}

/*  WP */
.support_content {
  @media screen and (max-width: 800px) {
    width: 100%;
  }

  p {
    margin: 1em 0;
  }

  img {
    display: block;
    margin: 1em 0;

    &.alignleft {
      width: calc(45% - 0.75em);
      margin-right: 1.5em;
      float: left;
    }

    &.alignright {
      width: calc(45% - 0.75em);
      margin-left: 1.5em;
      float: right;
    }

    &.aligncenter {
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    &.alignnone {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
  }

  .wp-caption {
    max-width: 100%;
  }

  ul,
  ol {
    display: block;
    margin: 1em 0;
    padding-left: 1.5em;
  }

  blockquote {
    border: solid 1px #ddd;
    padding: 2em;
    margin: 1em 0;
  }

  h1 {
    font-size: 150%;
  }

  h2 {
    font-size: 140%;
  }

  h3 {
    font-size: 130%;
  }

  h4 {
    font-size: 120%;
  }

  h5 {
    font-size: 110%;
  }

  h6 {
    font-size: 105%;
  }

  iframe {
    &[src^="https://www.youtube.com/embed"] {
      width: 100%;

      @media screen and (min-width: 942px) {
        height: 450px;
      }

      @media screen and (max-width: 941px) {
        height: 47.8vw;
      }
    }
  }

  @media screen and (max-width: 800px) {
    img {
      &.alignleft,
      &.alignright,
      &.aligncenter,
      &.alignnone {
        float: none;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
      }
    }
  }
}
