/* ページ全体 */
.page-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px)    {
    .page-header {
        margin-bottom: 0px;
    }
}

.header-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .header-image {
        height: 200px;
    }
}   

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

.header-image h1 {
    position: absolute;
    top: 10%;
    left: 28%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.4rem;
    font-weight: bold;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #92bb44;
    width: 400px; /* 線の横幅を指定 */
    text-align: left; /* テキストを中央揃え */
    padding: 0 50px 0;
}

.header-image p {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-align: left;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .header-image h1 {
        font-size: 24px;
        width: 150px;
        left: 30%;
        top: 20%;
        padding-left: 10px;
    }

    .header-image p {
        font-size: 17px;
        width: 300px; /* 線の横幅を指定 */
        left: 50%;
        top: 55%;
    }
}

/* メインコンテンツ */
.achievement-content {
    padding: 20px 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
}


h2 {
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #92bb44;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    color: #92bb44;
    font-size: 20px;
    margin-bottom: 10px;
}

h4 {
    color: #76b3e0;
    font-size: 16px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.entry-list {
    list-style: none;
    padding: 0;
}

.entry-list li {
    margin-bottom: 20px;
}

.sakura-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/icons/sakura.svg') no-repeat center center;
    background-size: contain;
}

.year-group {
    margin-bottom: 40px;
}

.year-group h3 {
    font-size: 16px;
    color: black; /* タイトルはあえて黒で引き締める */
    margin-bottom: 10px;
}

/* ラベル部分（ご入園先・併願合格園） */
.admission-label {
    color: #92bb44; /* 画像に近い黄緑色 */
    font-weight: bold;
}


.school-list li {
    display: flex;
    justify-content: space-between; /* 園名と人数を左右に振り分け */
    max-width: 265px; /* 線の長さを画像に合わせて調整 */
}

/* スマホ表示の微調整 */
@media screen and (max-width: 768px) {
    .school-list li {
        max-width: 100%; /* スマホでは横幅いっぱい */
    }
}

.admission-label{
margin-left: 17px;
margin-top: 5px;
}

.school-list.highlight {
    padding-left: 25px;
    margin: 0;
}

.school-list {
    list-style: none; /* これを追加 */
    padding-left: 25px;
    margin: 0;
}

.school-list li {
    list-style-type: none !important; /* 強制的に非表示 */
}

.notes p{
    font-size: 12px;
}

.year-group p{
    font-size: 18px;
    margin-bottom: -5px;
}

/* スマホ表示の微調整 */
@media screen and (max-width: 768px) {
    .school-list li {
        /* 横幅いっぱいにするのをやめ、コンテンツの長さに合わせる */
        max-width: 280px;
        display: flex;
        justify-content: space-between; /* 園名と人数を左右に分ける */
    }
}

/* すべてのリンク（aタグ）の初期色をリセットして黒にする */
a {
    color: inherit; /* 親要素の文字色を引き継ぐ（通常は黒） */
    text-decoration: underline; /* リンクとわかるよう下線は残す */
}

/* リンクの青文字を黒にし、下線をつける設定 */
.lead-text a {
    color: #333 !important; /* 黒（または濃いグレー）に強制指定 */
    text-decoration: underline; /* リンクだとわかるように下線を表示 */
}