@charset "UTF-8";

/* 共通 */
.section-box {

        & h3 {
            margin-bottom: 3rem;

            @media screen and (max-width: 767px) {
              margin-bottom: 2rem;
            }
        }

        & p:nth-child(2) {
            font-size: 1.6rem;
            font-weight: 500;

            & span {
                display: block;
                font-size: 1.8rem;
                font-weight: bold;
                color: var(--primary-color);
            }
        }
}

/* 概要 */
.sec-about {

    .content-box {

        & p {

            & span {
                display: block;
                color: var(--primary-color);
                font-size: 1.8rem;
                font-weight: bold;
            }
        }
    }
}

/* 実施中の奨学金 */
.sec-foundation {

    .content-box {
        margin-top: 5rem;

        @media screen and (max-width: 767px) {
          margin-top: 2rem;
        }

        .foundation-box{

            &:not(:last-child) {
                margin-bottom: 4rem;
            }

            .title-box{
            
                .category{
                
                }
            }
            .content-box{
            
                .desc-text{
                    margin-top: 2rem;
                    margin-bottom: 3rem;
                    font-size: 1.6rem;
                    font-weight: normal;

                    @media screen and (max-width: 767px) {
                      margin-top: 0;
                    }
                
                }
                .foundation-list{
                    display: flex;
                    gap: 5rem;

                    @media screen and (max-width: 767px) {
                      flex-direction: column;
                      gap: 2rem;
                    }
                
                    .foundation-item{

                        & a {
                            width: 57rem;
                            max-width: 57rem;
                            height: 7.5rem;
                            border-radius: 60px;
                            padding-left: 4.6rem;
                            padding-right: 2.6rem;

                            @media screen and (max-width: 767px) {
                              width: 100%;
                              height: 5rem;
                              border-radius: 30px;
                              padding-left: 4rem;
                              padding-right: 2rem;
                              line-height: 1.5;
                            }
                        }
                    
                    }
                }
            }
        }
    }
}

/* 実施状況 */
.sec-status {

    & p:nth-child(2) {
        margin-bottom: 3rem;
    }
    .content-box {

        .detail-table {

            & tr {

                & td:first-child {
                    font-weight: bold;
                }
            }

            & th {
                @media screen and (max-width: 767px) {
                    display: none;
                }
            }

            & td p a {
                text-decoration: underline;
                position: relative;
                padding-left: 5px;

                &::after {
                    content: '・';
                    position: absolute;
                    top: 0;
                    left: 0;
                    transform: translateX(-100%);
                }

            }

            & tr td {

                @media screen and (max-width: 767px) {
                    display: block;
                    width: 100%;
                }
            }

            & tr td:first-child {
                @media screen and (max-width: 767px) {
                  padding: 1rem 2rem;
                  background-color: var(--primary-color);
                  color: #fff;
                  font-size: 1.6rem;
                  font-weight: bold;
                  text-align: center;
                  border: 1px solid var(--primary-color);
                }
            }
        }
    }
}

/* 奨学生の声 */

.sec-voice {

    .content-box {
        .voice-list{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-row-gap: 6rem;
            margin-top: 4rem;

            @media screen and (max-width: 767px) {
              grid-template-columns: 1fr;
              grid-row-gap: 4rem;
            }

            .voice-item{
                display: flex;
                gap: 3rem;
                align-items: center;

                @media screen and (max-width: 767px) {
                    border-bottom: 1px solid var(--primary-color);
                    padding-bottom: 3rem;
                }

                &:nth-child(odd) {
                    padding-right: 8rem;
                    border-right: 1px solid var(--primary-color);
                    
                    @media screen and (max-width: 767px) {
                    border-right: unset;
                    padding-right: 0;
                    }
                    
                }
                &:nth-child(even) {
                    padding-left: 8rem;

                    @media screen and (max-width: 767px) {
                      padding-left: 0;
                    }
                    
                }
            
                .img-box{
                    width: 11rem;
                    height: 11rem;

                    & img {
                        width: 100%;
                        object-fit: cover;
                    }
                
                }
                .text-box{
                    display: flex;
                    flex-direction: column;
                    gap: 1.8rem;
                
                    .main-text{
                        font-size: 1.6rem;
                    
                    }

                    & a {
                        & span {
                            font-size: 1.4rem !important;

                            @media screen and (max-width: 767px) {
                              font-size: 1.2rem !important;
                            }
                        }
                    }
                }
            }
        }

    }
}

/* 奨学生からの近況報告 */
.sec-update {
    & p {
        margin-bottom: 4rem;

        @media screen and (max-width: 767px) {
          margin-bottom: 3rem;
        }
    }

    & a {
        width: 40rem !important;
        height: 7.4rem !important;
        border-radius: 60px !important;
        padding-left: 3.2rem !important;
        padding-right: 2.2rem !important;

        @media screen and (max-width: 767px) {
          width: 100% !important;
          height: 5rem !important;
        }
    }

}


.sec-news {

  @media screen and (max-width: 767px) {
    .news-btn-box {
      margin-top: 5rem;
    }
  }
}