/*
 * ==================================================================
 * トップページ「在校生の声」カード — 名前まわりを /voice/ と同じ見せ方に
 * ------------------------------------------------------------------
 * /voice/ の名前ブロック（.vc-article__sub / __course / __name）と
 * 同じ体裁（サブ見出し＋コースの角丸バッジ＋氏名）に揃えます。
 *
 * HTML の変更は不要です。
 * 対象は「氏名・コース・コース年」の3行を持つカードだけです
 * （3つ目の <p> がある .img-wrapper に限定して狙っています）。
 *
 * 読み込み順：トップページの CSS（section.css 等）より【後】に読み込んでください。
 * ==================================================================
 */

/* 対象カードの3行をリセット（既存の余白・中央揃え指定を上書き） */
.ygh-section .img-wrapper:has(> p:nth-of-type(2)) > p {
    margin: 0 !important;
    text-align: center;
    font-family: inherit;
}

/* ── 1行目：コース名（例「入試対策コース」）→ /voice/ の .vc-article__sub 相当 ── */
.ygh-section .img-wrapper:has(> p:nth-of-type(2)) > p:nth-of-type(1) {
    color: #333;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 12px 0 0px !important;
}



/* ── 3行目：氏名（例「Yui さん」）→ .vc-article__name 相当 ── */
.ygh-section .img-wrapper:has(> p:nth-of-type(2)) > p:nth-of-type(2) {
    color: #1b2735;
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px !important;
}

/* スマホでは氏名・サブ見出しを少し小さく（/voice/ と同じ考え方） */
@media (max-width: 767px) {
    .ygh-section .img-wrapper:has(> p:nth-of-type(2)) > p:nth-of-type(1) { font-size: 1rem; }
    .ygh-section .img-wrapper:has(> p:nth-of-type(2)) > p:nth-of-type(2) { font-size: 1.3rem; }
}
