@charset "UTF-8";

/*--------------------------------
 レイアウト
---------------------------------*/

.section {
    padding: 90px 0;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/*--------------------------------
Aboutページ
---------------------------------*/
.page-header-img-wrap {
    width: 100%;
    margin-top: 130px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* <img>要素のスタイル */
.page-header-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.page-title-wrap {
    background-color: #f0f8ff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid #4682b4;
}

.page-title-content {
    margin: 0 auto;
}

.page-sub-title {
    font-size: var(--size-md);
    color: #4682b4;
    margin-bottom: 5px;
    letter-spacing: 3px;
}

.page-main-title {
    font-size: var(--size-xl);
    color: var(--text-color);
    font-weight: bold;
    margin-top: 0;
}

/*media Queries 959px
----------------------------------------------------*/
@media (max-width: 959px) {
    .page-header-img-wrap {
        margin-top: 0;
    }
}


/*media Queries 767px
----------------------------------------------------*/
@media (max-width: 767px) {

    .page-main-title {
        font-size: var(--size-lg);
    }

    .page-sub-title {
        font-size: 1.0em;
    }

    .page-title-wrap {
        padding: 30px 0;
    }
}



/* --------------------------------
園長メッセージセクション
-------------------------------- */

.message.section {
    margin-top: 80px;
    background-image: url(../../img/About_un_Back03.png);
    background-color: var(--main-color);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
    background-color: var(--main-color);
    padding: 100px 0 100px;
    min-height: 800px;
    position: relative;
    z-index: 1;
    padding-bottom: 250px;
}



/* ★★★ 画面幅が969px以下の時の背景調整 ★★★ */
@media screen and (max-width: 969px) {
    .message.section {
        background-image: url(../../img/About_un_Back.png);
    }
}

/* ★★★ 画面幅が500px以下の時の背景調整 ★★★ */
@media screen and (max-width: 500px) {
    .message.section {
        background-size: 800px auto;
    }
}



.message.section::before {
    content: '';
    position: absolute;
    background-image: url(../../img/about_usagi05.png);
    background-size: contain;
    background-repeat: no-repeat;
    top: 350px;
    left: 100px;
    width: 250px;
    height: 250px;
    z-index: 0;
}

.message.section::after {
    content: '';
    position: absolute;
    background-image: url(../../img/about_usagi04.png);
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 50px;
    right: 20px;
    width: 280px;
    height: 280px;
    z-index: 0;
}

/* --------------------------------
園長写真とタイトル部分 
-------------------------------- */

.message-heading-wrap {
    margin-top: 80px;
    margin-bottom: 40px;
    position: relative;
    height: 180px;
}


/* 園長写真のラッパー */
.teacher-photo-wrap {
    width: 160px;
    height: 160px;
    padding: 5px;
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 2;
    background-color: transparent;
}

/* --------------------------------
園長画像 調整 (max-width: 969px)
-------------------------------- */
@media screen and (max-width: 969px) {
    .teacher-photo-wrap {
        width: 120px;
        height: 120px;
    }
}


.teacher-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* タイトルエリア */
.message-title-area {
    flex-grow: 1;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 30px;
    text-decoration: none;
    min-height: 100px;
    max-width: 1200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 60px;
    width: calc(100% - 60px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px;
    box-sizing: border-box;
}


.message-title {
    font-size: var(--size-lg);
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0px;
    padding-right: 10px;
}

.massage-name {
    /* 園長名 */
    font-size: var(--size-md);
    color: var(--text-color);
    text-align: right;
    margin-top: 10px;
}

/* --------------------------------
メッセージ本文 (.message-text-content)
-------------------------------- */

.message-text-content {
    text-align: center;
}

.message-text {
    font-size: var(--size-md);
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 1.5em;
}


/*media Queries 767px
----------------------------------------------------*/
@media screen and (max-width: 767px) {

    .message.section::before {
        top: -60px;
        left: -30px;
        width: 170px;
        height: 170px;
    }

    .message.section::after {
        bottom: 180px;
        right: -30px;
        width: 180px;
        height: 180px;

    }

    .message-card {
        padding: 40px 20px;
        border-radius: 30px;
        margin: 30px 10px;
        margin-top: -100px;
    }

    /* 写真とタイトルエリアのラッパー */
    .message-heading-wrap {
        height: auto;
        margin-bottom: 0;
    }

    /* 園長写真のラッパー */
    .teacher-photo-wrap {
        left: 50%;
        transform: translateX(-50%);
        top: -60px;
    }

    /* タイトルエリア */
    .message-title-area {
        position: relative;
        width: 100%;
        margin-top: 0;
        left: 0;
        padding-top: 75px;
        padding-bottom: 15px;
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .message-title {
        text-align: center;
        font-size: 2rem;
        word-break: keep-all;
    }

    .massage-name {
        text-align: center;
        font-size: var(--size-md);

    }

    .message-text-content {
        text-align: center;
        margin-top: 50px;

    }

    .message-text {
        font-size: var(--size-sm);

    }

    .message-text p {
        word-break: keep-all;

    }
}


/* --------------------------------
教育方針セクション (.Kyoiku.section
-------------------------------- */
.Kyoiku.section {
    margin-top: 80px;
    background-image: url(../../img/About_un02_Back.png);
    background-color: var(--main-color);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
    background-color: var(--main-color);
    padding: 100px 0 100px;
    min-height: 800px;
    position: relative;
    z-index: 1;
    padding-bottom: 250px;
}

/*media Queries 1150px
----------------------------------------------------*/
@media (min-width: 1150px) {
    .Kyoiku.section {
        background-image: url(../../img/About_un02_Back_2.png);
    }
}


/* --------------------------------
セクションタイトル
-------------------------------- */
.Kyoiku-header-row {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.Kyoiku-title-wrapper .title {
    font-size: var(--size-xl);
    font-weight: bold;
    color: var(--text-color);
}

/* --------------------------------
カードラッパー (.Kyoiku-card-wrapper)
-------------------------------- */
.Kyoiku-card-wrapper {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 60px;
    position: relative;
    z-index: 5;
}

/* --------------------------------
カード内のタイトル
-------------------------------- */
.Kyoiku-card-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: var(--size-lg);
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 40px;
    text-align: center;
}

/* --------------------------------
SVGアイコン
-------------------------------- */
.Kyoiku-card-title::before {
    content: '';
    background-image: url('../../img/usagi_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
}

/* --------------------------------
フローリスト (.Kyoiku-flow-list)
-------------------------------- */
.Kyoiku-flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Kyoiku-flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    text-align: left;
}

.Kyoiku-flow-item:last-child {
    margin-bottom: 0;
}

/* --------------------------------
アイコン（数字とピンクの円）のラッパー
-------------------------------- */
.Kyoiku-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
}

/* --------------------------------
アイコン画像 (.Kyoiku-icon img)
-------------------------------- */
.Kyoiku-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* --------------------------------
テキストコンテンツ（HTML構造に応じて調整が必要です）
-------------------------------- */

.Kyoiku-flow-item>div {
    flex-grow: 1;
    padding-top: 10px;
}

.Kyoiku-flow-item h4 {
    font-size: var(--size-lg);
    font-weight: bold;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.Kyoiku-flow-item p {
    font-size: var(--size-md);
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* --------------------------------
項目タイトルの点線の下線装飾
-------------------------------- */
.Kyoiku-flow-item .flow-title {
    position: relative;
    display: block;
    text-align: left;
    padding-bottom: 10px;
}

.Kyoiku-flow-item .flow-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: linear-gradient(to right, #ff69b4 33%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 5px 1px;
    background-repeat: repeat-x;
}




/*media Queries 767px
----------------------------------------------------*/
@media (max-width: 767px) {

    .Kyoiku.section {
        margin-top: 0;
        padding-top: 60px;
        padding-bottom: 200px;
    }

    .Kyoiku-card-wrapper {
        max-width: 90%;
        margin: 0 auto;
        padding: 30px 20px;
    }

    /* --------------------------------
    うさっこの約束 タイトル (サイズと横並び)
    -------------------------------- */
    .Kyoiku-card-title {
        font-size: 2rem;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .Kyoiku-card-title::before {
        width: 24px;
        height: 24px;
    }

    /* --------------------------------
    フローアイテム（項目）レイアウト
    -------------------------------- */
    .Kyoiku-flow-item {
        margin-bottom: 30px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }

    /* --- 吹き出しアイコン (30px) --- */
    .Kyoiku-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        margin-top: 0;
        flex-shrink: 0;
    }

    /* --------------------------------
    テキストコンテンツ (本文をカード幅いっぱいに広げる)
    -------------------------------- */
    .Kyoiku-flow-item>div {
        padding-top: 0;
        flex-grow: 1;
        min-width: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        display: block;
    }

    /* 小見出し (h4) - サイズとパディング */
    .Kyoiku-flow-item h4 {
        margin-top: 0;
        margin-bottom: 5px;
        font-size: var(--size-md);
        padding: 0 20px;
        text-align: left;
    }

    /* 本文 (.flow-text) - サイズとパディング */
    .Kyoiku-flow-item p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 20px;
        text-align: left;
    }

    /* --------------------------------
    項目タイトルの点線の下線装飾
    -------------------------------- */
    .Kyoiku-flow-item .flow-title {
        padding: 0 20px 10px;
        text-align: left;
    }

    .Kyoiku-flow-item .flow-title::after {
        width: calc(100% - 40px);
        left: 20px;
        transform: none;
    }
}


/* --------------------------------
    フォントサイズ調整
    -------------------------------- */
@media (max-width: 500px) {

    .Kyoiku-card-title {
        font-size: 1.25rem;
        margin-bottom: 25px;
        gap: 8px;
    }

    .Kyoiku-flow-item h4 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .Kyoiku-flow-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}




/* --------------------------------
リンクカードコンテナ
-------------------------------- */
.link-cards-container {
    padding-top: 150px;
    padding-bottom: 90px;

}

.link-cards-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


/* --------------------------------
個別のカードリンク (.link-card)
-------------------------------- */
.link-card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-bottom: 0;
    position: relative;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------------
カード内の画像とテキスト
-------------------------------- */
.card-text-wrapper {
    width: 35%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    z-index: 2;
}


.card-image-wrapper {
    width: 55%;
    min-height: 200px;
    flex-shrink: 0;
    z-index: 1;
    border-radius: 0 15px 15px 0;
    overflow: hidden;
    padding: 15px;
}

.link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.card-text {
    font-size: var(--size-lg);
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    line-height: 1.5;
}

/* --------------------------------
個別カードの色の調整
-------------------------------- */
.annual-events-card,
.daily-life-card {
    padding-bottom: 5px;
}

.annual-events-card:hover,
.daily-life-card:hover {
    background-color: #4ac7f2;
}

.annual-events-card:hover .card-text,
.daily-life-card:hover .card-text {
    color: #fff;
}


/*media Queries 767px
----------------------------------------------------*/
@media (max-width: 767px) {
    .link-cards-container {
        padding-top: 100px;
        padding-bottom: 0px;
    }

    /* リンクカードのラッパーを縦並びに変更 */
    .link-cards-wrapper {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        margin: 0 20px;
    }

    /* --------------------------------
    個別のリンクカードの調整
    -------------------------------- */
    .link-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    /* 画像エリアの調整 */
    .card-image-wrapper {
        width: 100%;
        min-height: 150px;
        border-radius: 15px 15px 0 0;
        padding: 20px;
        order: 1;
    }

    /* テキストエリアの調整 */
    .card-text-wrapper {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0 0 15px 15px;
        order: 2;
        text-align: center;
    }

    /* --------------------------------
    リンクカード内の文字サイズ調整
    -------------------------------- */
    .card-text {
        font-size: var(--size-md);
    }
}