.ssi-wrap {
  /* できるだけ他のCSSの影響は受けないようにするためにリセット。ただし限界はアリ */
  all: initial;
  display: block;
  box-sizing: border-box;
  margin: 0 ;
  padding: 0;
  list-style: none;
  background-color: #fff;
  word-wrap: break-word;
  color: #333;
  font-family: Helvetica Neue,Arial,Hiragino Kaku Gothic ProN,Hiragino Sans,Meiryo,sans-serif;
  font-size: 3.5vw;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  @media (min-width:768px){
    font-size: 16px;
  }

  /*START STORY ------------------------------------------------------------------------------------------------------------------------------*/
  &.story{
    background: #ebfdff;
    padding: 50px 20px;
    @media (min-width: 768px) {
      padding: 100px 1em;
    }
    .story_wrap {
        max-width: 860px;
        margin: 0 auto;
    }
    h2 {
      text-align: center;
      font-size: 2.4rem;
      font-weight: bold;
      line-height: 1.2;
      position: relative;
      margin-bottom: 60px;
      padding-bottom: 6px;

      span.small_text {
        font-size: 1.6rem;
        margin-top: 15px;
        display: block;
      }

      &:before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -15px;
        display: inline-block;
        width: 165px;
        height: 2px;
        transform: translateX(-50%);
        background-color: #01bfaf;
      }

      @media (min-width: 768px) {
        font-size: 3.2rem;
        span.small_text {
          font-size: 2.4rem;
        }
        br { display: none; }
      }
    }

    .story_block {
      background: #fff;
      padding: 25px;
      margin-bottom: 25px;
      border-radius: 10px;

      h3 {
        border-left: 8px solid #01bfaf;
        font-size: 2rem;
        font-weight: bold;
        line-height: 1.5;
        padding-left: 15px;
        margin-bottom: 25px;
        @media (min-width: 768px) {
          font-size: 2.5rem;
        }
      }

      img, p{
        margin-bottom: 15px;
      }

      p span {
        font-weight: bold;
        background: linear-gradient(transparent 50%, #fff36b 50%);
      }

      img.pc_right,
      img.pc_left {
        display: block;
        width: 100%;
        float: none;
        padding: 0 0 15px;
      }
      @media (min-width: 768px) {
        img.pc_right,
        img.pc_left{
          width: 350px;
        }
        img.pc_right {
          float: right;
          padding: 0 0 25px 25px;
        }
        img.pc_left {
          float: left;
          padding: 0 25px 25px 0;
        }
      }
    }
  }

  /*START PROFILE -----------------------------------------------------------------------------------------------------------------------------*/
  &.profile{
    background: #ebfdff;
    padding: 1em 20px;
    @media (min-width: 768px) {
        padding: 1em;
    }
    .profile_wrap {
        max-width: 860px;
        margin: 0 auto;
    }
    .profile_block {
      background: #fff;
      padding: 25px;
      margin-bottom: 25px;
      border-radius: 10px;

      h3 {
        border-left: 8px solid #01bfaf;
        font-size: 2rem;
        font-weight: bold;
        line-height: 1.5;
        padding-left: 15px;
        margin-bottom: 25px;
        @media (min-width: 768px) {
          font-size: 2.5rem;
        }
      }

      img, p{
        margin-bottom: 15px;
      }

      p span {
        font-weight: bold;
        background: linear-gradient(transparent 50%, #fff36b 50%);
      }

      img.pc_right,
      img.pc_left {
        display: block;
        width: 100%;
        float: none;
        padding: 0 0 15px;
      }
      @media (min-width: 768px) {
        img.pc_right,
        img.pc_left{
          width: 350px;
        }
        img.pc_right {
          float: right;
          padding: 0 0 25px 25px;
        }
        img.pc_left {
          float: left;
          padding: 0 25px 25px 0;
        }
      }
    }
  }

  /*START ABOUTUS -----------------------------------------------------------------------------------------------------------------------------*/
  &.aboutus{
    text-align: left;
    padding: 25px 0;
    .aboutus_wrap{
      max-width: 1060px;
      margin: auto;
      width: 90%;
    }

    p { margin-bottom: 1.5em; }

    h2{
      position: relative;
      width: 100%;
      font-size: 1.5em;
      margin-bottom: 1em;
      font-weight: bold;
      border-bottom: 2px solid #e60012;
      &::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: -2px;
        width: 80%;
        border-bottom: 2px solid #d5d5d5;
      }
    }

    .aboutus_block {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin: 0 0 0 -2%;

      > div {
        width: calc((100% / 2) - 2%); /* モバイルでは2列表示 */
        margin: 0 0 1em 2%;
        font-size: .9em;
        > h3{
          text-align: center;
          padding: 15px;
          line-height: 1;
          border-radius: 3px;
          margin-bottom: 1em;
          background-color: #e60012;
          color: #fff;
          font-size: 2rem;
          font-weight: bold;
        }
        ul{
          margin-bottom: 1em;
          li{
            position: relative;
            padding: 0 0 0 1.1em;
            &::before{
              position: absolute;
              content: '●';
              top: 0;
              left: 0;
            }
          }
        }

        img {
          display: block;
          margin: 0 auto;
          height: 70%;
          max-height: 140px;
          width: auto;
          object-fit: cover;
          border: 0.5px solid #000;
          margin-bottom: 1em;
        }
      }
    }
    @media (min-width: 768px) {
      h2{
        font-size: 1.8em;
      }
      .aboutus_block {
        > div {
          width: calc((100% / 3) - 2%); /* PCでは3列表示 */
          img {
            height: auto;
            max-height: 210px;
          }
        }
      }
    }
  }

  /*START JISSEKI ----------------------------------------------------------------------------------------------------------------------------*/
  &.jisseki{
    padding: 25px 0;

    .jisseki_wrap{
      max-width: 1060px;
      margin: auto;
      width: 90%;
    }

    h2 {
      text-align: center;
      font-size: clamp(2.1rem, 4vw, 2.4rem);
      font-weight: bold;
      position: relative;
      margin: 0 0 2em 0;
      @media (min-width: 768px) {
        font-size: 2.4rem;
        br{
          display: none;
        }
      }
    }

    ul {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      li {
        width: 100%;

        margin-bottom: 36px;

        @media (min-width: 768px) {
          width: 47.5%;
        }
      }
    }

    .jisseki_title {
      margin-bottom: 24px;
      h3 {
        position: relative;
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 12px;
        border-bottom: 2px solid #d5d5d5;
        &::after {
          position: absolute;
          left: 0;
          bottom: -2px;
          width: 40%;
          height: 100%;
          content: '';
          z-index: 1;
          border-bottom: 2px solid #e60012;
        }
      }

      strong {
        display: block;
        text-align: center;
        font-size: 1.4rem;
        font-weight: bold;
        color: #e60012;
        line-height: 1.2;
        margin: 0 auto 12px;
        .num {
          font-size: clamp(3.6rem, 5.5vw, 4.8rem);
        }
      }

      aside {
        text-align: right;
        font-size: clamp(1.2rem, 2.5vw, 1.4rem);
        color: #333 !important;
        font-weight: normal;
        &::before {
          content: '※';
        }
      }
    }

    .jisseki_icon {
      img {
        display: block;
        margin: 0 auto 12px;
        width: 240px;
        height: auto;
      }
    }

    .jisseki_flex {
      display: flex;
      justify-content: space-around;
      align-items: flex-start;
    }

    .jisseki_text {
      h4 {
        position: relative;
        background-color: #d5d5d5;
        font-weight: bold;
        width: fit-content;
        margin-bottom: 16px;
        padding: 6px 12px;
        border-radius: 12px;

        &::after {
          position: absolute;
          bottom: -12px;
          left: 50%;
          transform: translateX(-50%);
          content: '';
          width: 0;
          height: 0;
          border-style: solid;
          border-right: 7px solid transparent;
          border-left: 7px solid transparent;
          border-top: 13px solid #d5d5d5;
          border-bottom: 0;
          z-index: 1;
        }
      }
      p { font-size: 1.4rem; }
    }
  }

  /*START COMPANY -----------------------------------------------------------------------------------------------------------------------------*/
  &.company{
    padding: 25px 0;
    .company_wrap{
      max-width: 1060px;
      margin: auto;
      width: 90%;
    }
    dl{
      border-top: 2px solid #d5d5d5;
      dt{
        padding: 1.5em 0 .5em;
        font-weight: bold;
        color: #000;
      }
      dd{
        border: solid #d5d5d5;
        border-width: 0 0 2px 0;
        padding-bottom: 1.5em;
        > p:not(:last-child){
          margin-bottom: 1em;
        }
      }
    }
    @media (min-width: 768px) {
      dl{
        display: flex;
        flex-wrap: wrap;
        border-top: none;
        dt{
          text-align: center;
          border: solid #e60012;
          border-width: 0 0 2px 0;
          width: 25%;
          padding: 2.5em 0;
        }
        dd{
          width: 75%;
          padding: 2.5em;
        }
        dt:nth-of-type(1),
        dd:nth-of-type(1){
          border-width: 2px 0 2px 0;
        }
      }
    }
  }

  /*START CTA -----------------------------------------------------------------------------------------------------------------------------*/
  &.cta{
    background: #f6f6f6;
    padding: 50px 0;
    &.monthly{
      background: #f6f6f6 url('../images/cta_bg.jpg') no-repeat top / 100%;
    }
    .cta_wrap{
      max-width: 1060px;
      margin: auto;
      width: 90%;
    }
    h2 {
      position: relative;
      font-size: 1.25em;
      z-index: 0;
      margin-bottom: 1.5em;
      font-weight: bold;
      span {
        position: relative;
        z-index: 1;
        display: block;
        width: fit-content;
        padding: 0.5em;
        line-height: 1;
        margin: 0 auto .75em;
        &::before {
          content: '';
          position: absolute;
          top: .25em;
          left: .25em;
          width: 100%;
          height: 100%;
          background: #e60012;
          z-index: -2;
        }
        &::after {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: #fff;
          z-index: -1;
        }
      }
    }
    div.cta_block{
      display: grid;
      gap: 1.5em;
      grid-template-columns: 1fr;
      > div{
        background: #fff;
        padding: 0 0 1em;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        overflow: hidden;
        .cta_eyecatch{
          width: 100%;
          aspect-ratio: 16 / 9;
          margin-bottom: 1em;
          iframe{
            width: 100%;
            height: 100%;
            display: block;
            border: none;
          }
          img{
            width: 100%;
          }
        }
        h3{
          display: flex;
          flex-direction: column;      /* 縦並びにする */
          align-items: center;         /* 横中央 */
          justify-content: center;     /* 縦中央 */
          text-align: center;
          font-size: 1.75em;
          min-height: 3em;
          line-height: 1.5;
          font-weight: bold;
          small{
            font-size: .5em;
          }
        }
        p{
          padding: 0 1.5em 1.5em;
        }
        aside{
          text-align: center;
          font-weight: bold;
          margin-bottom: 1em;
        }
        a.cta_button{
          display: block;
          width: fit-content;
          background: #e60012 url('../images/arrow_white.svg') no-repeat center right .75em / auto 50%;
          color: #fff;
          margin: 0 auto .5em;
          font-size: 1.25em;
          font-weight: bold;
          line-height: 1;
          text-decoration: none;
          padding: .75em 3em .75em 1.75em;
          border: 3px solid #e60012;
          border-radius: 1000px;
          transition: .3s;
          strong{
            font-size: 1.5em;
            margin: 0 .1em;
          }
          &:hover{
            background: #fff url('../images/arrow_red.svg') no-repeat center right .75em / auto 50%;
            color: #e60012;
          }
        }
        a.cta_sub{
          display: block;
          margin: 0 auto;
          width: fit-content;
        }
      }
    }
    @media (min-width: 768px) {
      h2{
        font-size: 2em;
      }
      div.cta_block{
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        /*子要素がひとつしかない場合、幅を狭める*/
        >div:only-of-type{
          max-width: 700px;
          margin: auto;
        }
      }
    }
  }

  /*START FOOTER -----------------------------------------------------------------------------------------------------------------------------*/
  &.footer {
    background-color: #4c4b4c;
    color: #fff;
    padding: 5em 0;
    img.footer_logo{
      display: block;
      margin: 0 auto;
      width: 200px;
      @media screen and (min-width: 768px) {
        width: 300px;
      }
    }
    a{
      color: #fff;
      border: none;
    }
    > .footer_wrap{
      max-width: 1060px;
      margin: auto;
      width: 90%;
    }
    > .footer_copy{
      text-align: center;
      font-weight: bold;
    }
    nav{
      text-align: center;
      margin: 3em 0 2em;
      > ul{
        all: unset;
        li{
          all: unset;
          display: inline-block;
          margin: 0 .25em .5em;
          a{
            text-decoration: none;
            background: rgba(0,0,0,.1);
            border-top: 1px solid rgba(0,0,0,.25);
            font-size: .9em;
            padding: .75em 1em;
            border-radius: 7px;
            transition: .3s;
            &:hover{
              background: #e60012;
            }
          }
        }
      }
    }
    .donate-goodgiving {
      display: grid;
      gap: 1em;
      padding: 1em;
      background-color: rgba(255,255,255,0.1);
      border-radius: 1em;
      margin-block: 1em;
      .wrap-media {
        text-align: center;
        background-color: #fff;
        border-radius: .5em;
        margin: auto;
        width: 50%;
        line-height: 1;
        /*埋め込みタグから吐き出されるdiv*/
        > div{
          margin: auto;
          width: 50% !important;
        }
      }
      .wrap-text {
        text-align: left;
      }
      @media screen and (min-width: 768px) {
        grid-template-columns: 150px 1fr;
        margin-block: 1.5em;
        .wrap-media {
          width: 100%;
          > div{
            width: 100% !important;
          }
        }
        .wrap-text {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }
}
