/* ===============================================
全体の基本設定
=============================================== */


html {
    scroll-padding-top: 10rem;
    scroll-behavior:smooth;
}

body.page-template-page-childrens {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    position: relative;
    padding-top: 12.6rem;
    /* padding-bottom: 3rem; */
    /* padding-top: 5rem; */
    padding-bottom: 10rem;
    background-image: url(../img/bg/bg_short2x.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 50.1%;
}

.page-template-page-childrens main {
    flex: 1;
}

.footer {
    background-color: #F9C1DD;
}

.footer img {
    display: block;
}

.footer div {
    display: none;
}
.header_padding{
    padding-bottom:0rem;
}

/* ===============================================
背景画像
=============================================== */
.background.pc_only {
    display: block;
}

.bg_top {
    position: absolute;
    top: 0rem;
    left: 0rem;
    z-index: -1;
    height: auto;
}

.bg_middle {
    position: absolute;
    bottom: -26rem;
    left: 0rem;
    z-index: -1;
}
.bg_sp {
    position: absolute;
    top: 0rem;
    left: 0rem;
    z-index: -1;
    object-fit: cover;
    height: 100%;
    width:100%;
  }


/* ===============================================
ページヘッダー
=============================================== */
/* .childrens__header {
    display: flex;
} */

.childrens__title {
    font: 2.8rem / 4rem "Zen Maru Gothic";
    font-weight: 500;
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
    margin-left: 9rem;
    position: relative;
}

.childrens__title::before {
    background-color: #df778f;
    display: inline-block;
    height: 4rem;
    width: 1rem;
    content: '';
    position: absolute;
    top: -0.1rem;
    left: -1.5rem;
}

/* ===============================================
メインコンテンツ
=============================================== */
.childrens__main-content {
    display: flex;
}

.childrens__main-visual {
    width: 83.6rem;
    height: 47rem;
    box-shadow: 0.6rem 0.6rem 0rem #df778f;
    border-radius: 1rem;
    margin-bottom: 10rem;
    margin-left: 6.8rem;
    margin-top: 2rem;
}

.childrens__main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* ===============================================
サイドバー
=============================================== */
.sidebar {
    width: 27.9rem;
    height: auto;
    font: 1.6rem/2.4rem "Zen Maru Gothic";
    font-weight: 500;
    border: 0.1rem solid #000;
    border-radius: 1rem;
    background: #FFFFFF;
    position: fixed;
    top: 29rem;
    right: 7rem;
    padding: 1.4rem 2.1rem;
}

.sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar__item {
    margin-bottom: 1rem;
}

.sidebar__item a {
    text-decoration: none;
    color: inherit;
}

.sidebar__button {
    background: #F7F1DC;
    color: #000000;
    padding: 1.45rem;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.sidebar__button--facility {
    margin-top: 1rem;
}

.sidebar__icon {
    width: 2rem;
    height: 2rem;
    border: 0.1rem solid #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #df778f;
}

.sidebar__icon-arrow {
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-left: 0.8rem solid #FFFFFF;
}

/* ===============================================
コンテンツボディ
=============================================== */
.childrens__body {
    width: 83.6rem;
    height: auto;
    border: 0.1rem solid #000;
    border-radius: 1rem;
    margin-left: 7rem;
    margin-top: -0.8rem;
    background-color: #FFFFFF;
    padding: 6rem 3rem 6rem 3rem;
}

/* ===============================================
児童養護施設についてセクション (インタビュー)
=============================================== */
.about-section {
    margin-bottom: 5rem;
}

.about-section__title {
    margin-bottom: 1.2rem;
    font: 2.5rem/3.6rem "Zen Maru Gothic";
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
}

.about-section__title::before {
    background-color: #df778f;
    display: inline-block;
    height: 4rem;
    width: 1rem;
    content: '';
    position: absolute;
    top: -0.3rem;
    left: -1.5rem;
}

.about-section__interview-title,
.intro-section__title {
    font: 2rem/2.9rem "Noto Sans JP";
    font-weight: 500;
    margin-top: 3.2rem;
    margin-left: 4rem;
    position: relative;
}

.about-section__interview-title::before,
.intro-section__title::before {
    background-color: #df778f;
    display: inline-block;
    height: 0.4rem;
    width: 3rem;
    content: '';
    position: absolute;
    top: 1.2rem;
    left: -4rem;
}

.about-section__image {
    width: 71.6rem;
    height: 47.7rem;
    margin: 1.4rem auto 0 auto;
}

/* ===============================================
イントロダクションセクション
=============================================== */
.intro-section {
    margin-bottom: 10rem;
}

.intro-section__text {
    font: 1.5rem/3rem "Noto Sans JP";
    text-align: left;
    margin-top: 1.1rem;
    letter-spacing: 0.075rem;
    margin-left: 4rem;
    margin-bottom: 10rem;
}

.intro-section__image {
    width: 55rem;
    height: 30.9rem;
    margin: -8.5rem auto 0rem auto;
}

/* ===============================================
ニュースセクション
=============================================== */
.news {
    margin-top: 10.2rem;
}

.news__heading {
    font: 2.5rem/3.6rem "Zen Maru Gothic";
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
}

.news__heading::before {
    background-color: #df778f;
    display: inline-block;
    height: 4rem;
    width: 1rem;
    content: '';
    position: absolute;
    top: -0.3rem;
    left: -1.5rem;
}

.news__list {
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 3.2rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.news__item {
    width: 23.5rem;
}

.news__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news__thumbnail {
    width: 100%;
    height: 14rem;
    display: block;
    border: #df778f solid 0.1rem;
}

.news__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__date {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    line-height: calc(30 / 15);
    letter-spacing: calc(0.75em / 15);
}

.news__title {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Zen Maru Gothic", sans-serif;
    line-height: calc(30 / 15);
    letter-spacing: calc(0.75em / 15);
}

.news__button-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.news__button {
    padding: 0.1rem 1rem;
    background: #df778f;
    border-radius: 1.6rem;
    color: #FFF;
    font: 1.5rem/3rem "Zen Maru Gothic";
    font-weight: 500;
    border: none;
    letter-spacing: 0.075rem;
    text-decoration: none;
    display: inline-block;
}

/* ===============================================
インスタグラムセクション
=============================================== */
.instagram-section {
    margin-top: 10.2rem;
}

.instagram-section__title {
    margin-bottom: 3.2rem;
    font: 2.5rem/3.6rem "Zen Maru Gothic";
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
}

.instagram-section__title::before {
    background-color: #df778f;
    display: inline-block;
    height: 4rem;
    width: 1rem;
    content: '';
    position: absolute;
    top: -0.3rem;
    left: -1.5rem;
}

/* ===============================================
アクセスセクション
=============================================== */
.access-section {
    margin-top: 10.2rem;
}

.access-section__box {
    display: flex;
    justify-content: space-between;
}

.access-section__title {
    margin-bottom: 3.2rem;
    font: 2.5rem/3.6rem "Zen Maru Gothic";
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
}

.access-section__title::before {
    background-color: #df778f;
    display: inline-block;
    height: 4rem;
    width: 1rem;
    content: '';
    position: absolute;
    top: -0.3rem;
    left: -1.5rem;
}

.access-section__item {
    font: 1.6rem/3.2rem "Noto Sans JP";
    font-weight: 400;
    margin-left: 1.5rem;
    letter-spacing: 0.08rem;
}

.satooya-link-button {
    display: block;
    width: fit-content;
    margin: 5rem auto 0 auto;
    color: #fff;
    background-color: #df778f;
    padding: 2rem 9.5rem;
    text-decoration: none;
    font: 1.5rem/3rem "Zen Maru Gothic";
    font-weight: 500;
    border-radius: 1.6rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.satooya-link-button:hover {
    background-color: #c9657c;
    /* ホバー時の色 */
}

.sp_only{
    display: none;
}

/* ===============================================
SP
=============================================== */
@media screen and (max-width: 699.98px) {
     main {
        padding-top: 4rem;
        /* padding-bottom: 10rem; */
    } 

    .pc_only {
        display: none;
    }

    .sp_only {
        display: block;
    }

    .bg_top {
        top: -4rem;
    }

    .bg_middle {
        bottom: -24.4rem;
    }

    .childrens__title {
        font-size: 2rem;
        line-height: 3rem;
        font-weight: 500;
        font-family: "Zen Maru Gothic", sans-serif;
        color: #FFFFFF;
        background-color: #df778f;
        text-align: center;
        width: fit-content;
        padding: 1rem 2rem;
        margin: 3rem auto 3rem;
        border-radius: 1rem;
    }

    .childrens__title::before {
        display: none;
    }

    .childrens__main-content {
        display: flex;
        flex-direction: column;
    }

    .childrens__main-visual {
        order: 1;
        width: 35.5rem;
        height: 18rem;
        margin: 5rem auto 0rem;
        box-shadow: 0.3rem 0.3rem 0rem #df778f;
    }

    .childrens__main-content .childrens__header.sp_only {
        order: 2;
    }

    .childrens__main-content .sp_only:last-of-type {
        /* アコーディオンのラッパー */
        order: 3;
    }

    .childrens__body {
        width: 33.5rem;
        margin: 0rem auto 0 auto;
        padding: 3rem 1.5rem;
    }

    .about-section,
    .intro-section,
    .news,
    .instagram-section,
    .access-section {
        margin-bottom: 5rem;
    }

    .about-section__title,
    .news__heading,
    .instagram-section__title,
    .access-section__title {
        font-size: 2rem;
        margin-left: 1rem;
    }

    .about-section__title::before,
    .news__heading::before,
    .instagram-section__title::before,
    .access-section__title::before {
        width: 0.5rem;
        height: 3rem;
        top: -0.1rem;
        left: -1rem;
    }

    .about-section__interview-title,
    .intro-section__title {
        font-size: 1.6rem;
        line-height: 2rem;
        margin-left: 3.3rem;
        margin-top: 0rem;
    }

    .about-section__interview-title::before,
    .intro-section__title::before {
        width: 2rem;
        height: 0.3rem;
        left: -3rem;
        top: 0.8rem;
    }

    .about-section__image {
        width: 28.9rem;
        height: auto;
    }

    .intro-section__text {
        font-size: 1.4rem;
        margin-left: 0rem;
        margin-bottom: 5rem;
        width: 28.9rem;
        margin: 1.5rem auto 5rem auto;
    }

    .intro-section__image {
        width: 28.9rem;
        height: auto;
        margin-top: -3rem;
    }

    .news__list {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-right: 0;
    }

    .news__item {
        width: 90%;
    }

    .access-section__box {
        flex-direction: column;
        align-items: center;
    }

    .access-section__list {
        width: 100%;
        margin-bottom: 2rem;
    }

    .access-section__item {
        font-size: 1.5rem;
        margin-left: 0;
    }

    iframe {
        width: 100%;
        height: 22rem;
    }

    .satooya-link-button {
        width: 100%;
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
    }

    /* New Accordion CSS */
    .nav {
        display: none;
    }

    .nav_text {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        display: block;
        color: #333;
        text-decoration: none;
    }

    .nav_text_aut1,
    .nav_text_aut2,
    .nav_text_aut3 {
        display: block;
        font-size: 1.6rem;
        width: 29rem;
        height: 5.4rem;
        margin-bottom: 1rem;
        padding: 1.5rem 2rem;
        background-color: #F7F1DC;
        border-radius: 1rem;
        color: #333;
        text-decoration: none;
        position: relative;
    }

    .nav_text_aut2,
    .nav_text_aut3 {
        width: 20rem;
    }

    .nav_wrap {
        padding: 1rem 2rem;
        font-family: "Zen Maru Gothic";
        width: 33.5rem;
        border-radius: 1rem;
        border: 0.1rem solid #000000;
        margin: 0 auto 1rem;
        background-color: white;
    }

    .nav_wrap nav {
        display: none;
        font-weight: 500;
    }

    .nav_open {
        font-size: 1.6rem;
        font-weight: 600;
        position: relative;
        transition: 0.7s;
        cursor: pointer;
    }

    .nav_open.active {
        margin-bottom: 2rem;
    }

      .nav_open {
        font-size: 1.6rem;
        font-weight: 600;
        position: relative;
        transition: 0.7s;
        cursor: pointer;
        padding-right: 4rem; /* アイコンスペース確保 */
      }
    
      .nav_open.active {
        margin-bottom: 2rem;
      }
    
      /* 円の背景 */
      .nav_open::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 1.2rem;
        width: 2.5rem;
        height: 2.5rem;
        margin-top: -1.25rem;
        border-radius: 50%;
        background-color: #df778f;
        transition: all 0.3s;
        z-index: 1;
      }
    
      /* アイコンのコンテナ */
      .nav_icon {
        position: absolute;
        top: 50%;
        right: 1.2rem;
        width: 2.5rem;
        height: 2.5rem;
        transform: translateY(-50%);
        z-index: 2;
      }
    
      /* 横棒 */
      .nav_icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.6rem;
        height: 0.2rem;
        background-color: #000;
        transform: translate(-50%, -50%);
      }
    
      /* 縦棒 */
      .nav_icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.2rem;
        height: 1.6rem;
        background-color: #000;
        transform: translate(-50%, -50%) rotate(0deg);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
      }
    
      /* active時の縦棒アニメーション */
      .nav_open.active .nav_icon::after {
        transform: translate(-50%, -50%) rotate(-90deg);
        opacity: 0;
      }    .nav_arrow,
    .nav_arrow2 {
        width: 2rem;
        height: 2rem;
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        display: inline-block;
    }

    .nav_arrow::before,
    .nav_arrow2::before {
        content: "";
        display: inline-block;
        position: absolute;
        width: 2rem;
        height: 2rem;
        background-color: #df778f;
        border: #000000 solid 0.1rem;
        border-radius: 50%;
        top: 0;
        left: 0;
    }

    .nav_arrow::after,
    .nav_arrow2::after {
        content: "";
        display: inline-block;
        position: absolute;
        width: 0.7rem;
        height: 1rem;
        background-color: #FFFFFF;
        clip-path: polygon(0 0, 100% 50%, 0 100%);
        top: 50%;
        left: 50%;
        transform: translate(-40%, -50%);
    }
}