/* --- ページタイトル --- */
.page-main-title {
    text-align: center;
    color: #4097B6;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- ベビーコース --- */
section#baby, section#youji, section#shougakusei {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 60px;
    padding: 0 0 60px;
}

.sp-class-top {
    display: none;
}

img.sp-class-top {
    display: none;
}

img.pc-class-top {
    display: block;
}

/* --- タイトルエリアの中央寄せ設定 --- */
.title-wrap {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}


.baby-title {
    display: inline-block;
    background-color: #FAD9DA;
    padding: 10px 40px;
    border-radius: 100px 100px 0 0;
    margin-bottom: 30px;
    font-size: 32px;
    line-height: 1.4;
    width: 100%;
}

h1 {
    font-size: clamp(22px, 4vw + 11px, 60px);
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin: 0;
    font-family: "RocknRoll One", sans-serif;
}

    section#youji, section#shougakusei {
        margin-top: 80px;
    }

.subtitle-wrap {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.subtitle {
    width: auto; 
    text-align: left; 
    position: relative;
}

.subtitle_img {
    position: absolute; 
    top: -50px;
    left: -60px;
    width: clamp(60px, 8vw + 15px, 120px);  
}

.subtitle h3 {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(17px, 1.4vw + 10px, 34px);
    font-family: "RocknRoll One", sans-serif;
}

.course {
    margin-top: 50px;
    width: 100%;
}

#baby .course {
    margin-top: 80px;
}

#shougakusei .course {
    margin-top: 80px;
}

.course h3 {
    font-family: "RocknRoll One", sans-serif;
}

.left-subtitle {
    font-family: "RocknRoll One", sans-serif;
}

.title-img {
    width: auto; 
    margin-left: 40px;
}

#youji .title-img {
    margin-left: -20px;
}

#baby .title-img_img {
    width: clamp(100px, 14.55vw + 25.45px, 200px);
    height: auto;
    max-width: 100%;
    display: block;
}

#youji .title-img_img, #shougakusei .title-img_img {
    width: clamp(110px, 19.55vw + 25.45px, 250px);
}

.zero {
    font-size: clamp(28px, 3.39vw + 15.3px, 56px);
    letter-spacing: 0.3rem;
    line-height: 1;
    font-weight: bold;
} 

.lead {
    margin: -20px auto 40px;
}  

#youji .course-wrap {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
}

#baby .lead-wrap {
    text-align: left;
    max-width: 1040px;
    margin: 0 auto 1.5em;
    line-height: 1.8;
    padding: 0 7vw;
    box-sizing: border-box;
}

#youji .lead-wrap {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 7vw;
    line-height: 1.8;
    box-sizing: border-box;
}

#shougakusei .lead-wrap {
    text-align: left;
    max-width: 1000px;
    margin: 60px auto 1.5em;
    line-height: 1.8;
    padding: 0 7vw;
    box-sizing: border-box; 
}

#youji .lead strong {
    display: inline-block;
    min-width: 4em;
}

#baby .ikunou-lead_wrap {
    display: flex;
    width: 90%;
    align-items: flex-start;
    justify-content: space-evenly;
    padding: 0;
    margin: 0 auto;
    gap: 30px;
}

#youji .ikunou-lead_wrap {
    display: flex;
    align-items: flex-start;
    padding: 0;
    gap: 5vw;
    flex-direction: row;
    width: 90%;
}

#shougakusei .ikunou-lead_wrap {
    display: flex;
    align-items: flex-start;
    padding: 0;
    width: 90%;
    gap: 10px;
    flex-direction: row;
}

#baby .class-links_wrapper {
    gap: 100px;
    max-width: 80%;
    margin: 20px auto 20px;
}

#baby .wara-links, .nouiku-links {
    align-items: center;
}

#baby .link-sub {
    text-align: center;
    margin-left: 10vw;
    pointer-events: auto;
}


#baby  .strip-frame {
    width: 50%;
    margin: 0;
}

.inner-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.inner-img {
    width: 25%;
}


/* --- 1. 左側：リストの設定 --- */
#youji .bunri, #youji .boshi {
    border: 4px dashed #2F9B63;
    border-radius: 100px;
    padding: 0px 0px;
    display: inline-block;
    text-align: center;
    width: 250px;
    margin: 0 auto 20px;
}

.left-wrap {
    margin: 0 0 -20px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#youji .left-wrap, #shougakusei .left-wrap {
    margin: 0 auto;
    width: 50%;
    align-items: center;

}

.left-inner {
    margin: 0 0 40px 0;
}

.left-inner ul {
    list-style: none;
    padding: 0;
    padding-left: 20px;
}

.left-inner ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 8px;
}

.left-inner ul li:not(:first-child)::before {
    content: "●";
    position: absolute;
    top: 4px;
    left: -11px;
    color: #29313D;
    font-size: 0.8em;
}

/* --- 2. 右側：番号リストの設定 --- */
.inner-lead ol {
    list-style: none; 
    counter-reset: lesson-counter; 
    padding-left: 0;
    margin: 0;
}

.inner-lead ol li {
    counter-increment: lesson-counter; 

    position: relative;
    padding-left: 2.5em;
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

#youji .right-wrap, #shougakusei .right-wrap {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
}

/* 自作の番号を表示 */
.inner-lead ol li::before {
    content: counter(lesson-counter) "."; 
    position: absolute;
    left: 0;
    color: #4097B6; 
    font-weight: bold;
    font-family: 'RocknRoll One', sans-serif;
    width: 2em;
    text-align: right;
    padding-right: 0.5em;
}

.inner-img img {
    width: 130px;
}

#baby .strip-frame h2 {
    text-align: center;
    color: #4097B6;
    margin-top: 0;
}

#youji .strip-frame {
    margin-top: 50px;
}

.left-inner .ikunou-leaf {
    position: absolute;
    left: -38px;
    top: -15px;
    width: 60px;
}


#youji .baby-title {
    background-color: #FEF7B9;
}


#shougakusei .baby-title {
    background-color: #C2DFDD;
}


#shougakusei p.cta-p.reveal.is-visible {
    text-align: center;
    margin-top: 120px;
}

#shougakusei a.cta-btn {
    width: 50%;
}

@media (max-width: 768px) {
.subtitle_img {
    position: absolute;
    top: -40px;
    left: -40px;
    width: clamp(60px, 8vw + 15px, 200px);
}

#baby .ikunou-lead_wrap{
    display: flex;
    width: 95%;
    margin: 0 auto;
}

#youji .ikunou-lead_wrap {
    display: flex;
    margin: 0 auto;
    gap: 40px;

}

 #shougakusei .ikunou-lead_wrap {
    display: flex;
    margin: 0 auto;
    gap: 0;
}

.ikunou-lead_wrap {
    flex-direction: column;
}

#baby .ikunou-lead_wrap .left-wrap {
    margin: 0 auto;
    flex-direction: row;
    gap: 50px;
    text-align: left;
}   

.left-inner .ikunou-leaf {
    width: 50px;
}

.left-inner ul li:not(:first-child)::before {
    top: 3px;
    left: -16px;
}

#baby .strip-frame {
    width: 370px;
    margin: 0 auto;
}

#shougakusei .strip-frame  {
    width: 50%;
}

#shougakusei .strip-frame .inner {
    padding: 30px 20px;
}

#youji .lead {
    max-width: 100%; 
    font-size: 15px;
} 

#youji .inner-wrap {
    display: flex;
    width: auto;
    flex-direction: column;
}
#youji .inner-lead {
    width: 100%;
}
#youji .inner-img {
    width: 100%;
}

#shougakusei p.cta-p.reveal.is-visible {
    margin-top: 80px;
}


}

@media (max-width: 640px) {
#baby .ikunou-lead_wrap .left-wrap {
    flex-direction: column;
    gap: 0; 
}

#youji .ikunou-lead_wrap {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;

}

#shougakusei .ikunou-lead_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}
#youji .right-wrap, #shougakusei .right-wrap {
    width: 100%;
    align-items: center;
}

#youji .left-wrap, #shougakusei .left-wrap {
    width: 100%;
    align-items: center;
}

#shougakusei a.cta-btn {
    width: 70%;
}

}


@media (max-width: 430px) {
section#baby,section#youji,section#shougakusei {
    width: 95%;
    margin-right: 0;
    border-radius: 60px 0 0 60px;
    padding-bottom: 30px;
}

section#youji, section#shougakusei {
    margin-top: 50px;
}

.baby-title {
    border-radius: 60px 0 0 0;
}

.main-hero .pc-class-top {
    display: none;
}

.main-hero .sp-class-top {
    display: block;
}

h1.page-main-title {
    margin-top: 25px;
}

.nouiku-links a, .wara-links a {
    width: 70%;
    padding-bottom: 7px;
}

.subtitle-wrap {
    padding: 0;
    gap: 0;
    justify-content: flex-end;
}

#youji .subtitle-wrap, #shougakusei .subtitle-wrap {
    gap: 0;
    padding-left: 0
}

.course {
    margin-top: 30px;
}

#baby .course {
    margin-top: 60px;
}

.inner-img img {
    width: 80px;
}

.subtitle_img {
    position: absolute;
    top: -30px;
    left: -35px;
    width: clamp(60px, 8vw + 15px, 200px);
}

.title-img_img {
    margin-right: 10px;
}

#baby .class-links_wrapper {
    gap: 30px;
    max-width: 90%;
    margin: 0px auto;
}

img.ikunou-leaf {
    left: -20px;
}

.left-inner ul li:not(:first-child)::before {
    top: 3px;
    left: -9px;
}

.left-inner .ikunou-leaf {
    left: -24px;
    top: -10px;
    width: 35px;
}

#youji .lead-wrap {
    margin: 20px auto 0;
}

#baby .strip-frame {
    width: 310px;
    border-radius: 40px;
}

#youji .strip-frame {
    border-radius: 40px;
}

#shougakusei .strip-frame {
    border-radius: 40px;
    width: 90%;
    margin: 0 auto;
}

#baby .strip-frame .inner {
    padding: 10px;
}

.inner-lead {
    width: 77%;
}

.inner-img {
    width: 23%;
}

#youji .right-wrap {
    margin: 0;
}

#shougakusei p.cta-p.reveal.is-visible {
    margin-top: 50px;
}

}