.container3 {
    display: flex;
    align-items: center; /* 上下中央に揃える */
    justify-content: center; /* 左右中央に寄せる */
    gap: 20px; /* ロゴと文字の間の隙間 */
    max-width: 900px;
    margin-top: -20px;
} 
   
    /* タイトル絵のサイズ調整 */
    .logo3 {            
        width: 30px;  /* スマホで見やすいサイズ */
        height: auto;
    }

    /* タイトル文字の調整*/
    .container2-h2 {
        margin: 0;
        font-size: 1.5rem; /* スマホでちょうど良い大きさ */
    }

.for {
    margin-top: -10px;
    margin-bottom: -15px;
}

.hero {
    background-color: #ddd;
    display: flex;    
    height: auto;  /* 高さを固定せず、写真の大きさに合わせる */
    align-items : center;
    justify-content: center;
    background-image: url('main-image.jpg'); /* ここに園の写真を設定 */
    background-size: cover;/* 背景色を消して透明にする */
    background-color: transparent !important;
    padding: 0px 0; /* 上下に少し余白を作ると綺麗です */
}

/* メニュー全体の枠組み */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCでは4列 */
    gap: 15px; /* ボタン同士の隙間 */
    margin-bottom:  20px;
} 

/* ボタン1つ1つの装飾 */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 20px;
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .menu-item:active {
        transform: translateY(3px); /* 押した時に少し凹む演出 */
    }

.menu-grid{    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 画面幅で自動整列 */
    gap: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 画面幅で自動整列 */
    gap: 15px; 
    gap: 20px;
    margin: 20px 0;
}

.message-box {
    position: relative; /* 重ねる基準点 */
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden; /* はみ出した画像を隠す */
}

.overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 真ん中に配置 */
    width: 80%; /* サイズ調整 */
    height: auto;
    opacity: 0.2; /* ★透明度を薄くする（重要） */
    z-index: 1; /* 背景に回す */
}

.message-box p {
    position: relative; /* 文字を画像より手前に */
    z-index: 2;
    text-align: center;
}

.section-image {
    display: block; /* ブロック要素にして、前後のテキストと独立させる */
    margin: 20px auto; /* 上下20pxの余白、左右中央寄せ */
    max-width: 80%; /* PCでは広すぎず、スマホでは画面幅に合わせる */
    height: auto;
    border-radius: 15px;
}

	/*"書式の設定"*/
.a{
  font-style : italic;
}

.b{
  font-weight : bold;
}

.top1{
    margin-top: 100px;
}

.top2{
    margin-top: 80px;
}


.flex-container {
    display: flex;
    align-items: center; /* ★これで上下中央になります */
    gap: 20px;           /* イラストと文字の間の隙間 */
    margin: 20px 0;
}

.flex-container2 {
    display: flex;
    align-items: center; /* ★これで上下中央になります */
    gap: 20px;           /* イラストと文字の間の隙間 */
    margin: 20px 0;
    justify-content: center; /* 左右中央に寄せる */
} 

.flex-container3 {
    justify-content: center; /* 左右中央に寄せる */
} 

.flex-text {
    flex: 1; /* 残りの幅をすべて文字が使う */
}

.flex-img {
    width: 180px; /* イラストのサイズ */
    height: auto;
}

.flex-img2 {
    width: 120px; /* イラストのサイズ */
    height: auto;       
    margin-top: 60px;
    margin-left: 220px;
}

.flex-img3 {
    width: 120px; /* イラストのサイズ */
    height: auto;
}

.dance{    
    margin-top: -300px;
    margin-left: 180px;
}