/*
 * YGH Section CSS - メインコンテンツ（.ygh-main, .ygh-section, .ygh-card, .ygh-cta-row）
 * Version: Refactor 2026-08-12
 * Asset path: assets/css/section.css
 * 注: ヘッダー / フッター / ドロワー / スライダー / ページトップ 関連は
 *     header.css / footer.css に分離。本ファイルは section 専用。
 */

main.ygh-main { width: 100%; }

.ygh-section {
    width: min(1320px, calc(100% - 32px));
    margin-inline: auto;
    padding: clamp(40px, 6vw, 40px) 0;
}

.ygh-section__heading {
    margin: 0 0 18px;
    font-size: clamp(1.4rem, 2.4vw, 2.3rem);
    font-weight: 700;
    color: #333;                             /* ← 濃紺から変更 */
    line-height: 1.4;
	 letter-spacing: 0.08em;

    /* 追加 */
    text-align: center;                                                                          /* センター揃え */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "Times New Roman", serif;  /* 明朝体 */
}


.ygh-section__lead {
    margin: 0 0 28px;
    max-width: 1320px;
    color: #333;
    font-size: clamp(1.0rem, 1vw, 1.15rem);
    line-height: 1.7;
	 letter-spacing: 0.02em;
}

.ygh-section__subheading {
    margin: clamp(26px, 3.6vw, 42px) 0 50px;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--ygh-color-green, #009E96);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333;
}

.ygh-section__subheading:first-child { margin-top: 0; }


.ygh-section__subheading:first-child { margin-top: 0; }
@media (max-width: 767px) {
    .ygh-section__subheading { font-size: 1.2rem; }
}




.ygh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.ygh-card {
    display: block;
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: var(--ygh-radius-md, 18px);
    background: #ffffff;
    border: 1px solid rgba(216, 229, 226, 0.95);
    box-shadow: 0 10px 30px rgba(0, 46, 108, 0.10);
    color: inherit;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ygh-card:hover,
.ygh-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 46, 108, 0.16);
}

.ygh-card__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #F6FBFB;
    color: #007D75;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ygh-card__title {
    display: block;
    margin: 10px 0 8px;
    color: #003C8C;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 800;
}

.ygh-card__desc {
    margin: 0;
    color: #5B6B82;
    font-size: 0.92rem;
    line-height: 1.7;
}

.ygh-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.ygh-cta-row .ygh-btn {
    min-width: 220px;
}

@media (max-width: 599px) {
    .ygh-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ygh-cta-row .ygh-btn {
        width: 100%;
        min-width: 0;
    }
}
/* トップページ「お知らせ」枠: 下層ページの .ygh-page-content__inner と同一仕様 */
.ygh-page-content__inner {
    min-height: 360px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 46, 108, 0.08);
    box-shadow: 0 18px 40px rgba(18, 48, 88, 0.06);
}

@media (max-width: 767px) {
    .ygh-page-content__inner {
        min-height: 240px;
        border-radius: 16px;
    }
}
/* .img-wrapper 直下のキャプション p を太字・拡大（class が空でも当たる） */
.ygh-section .img-wrapper > p {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);   /* 大きく（1.05〜1.35remで伸縮） */
    font-weight: 700;                            /* 太字 */
    line-height: 1.5;
    color: #1f1f1f;
}
@media (max-width: 767px) {
    .ygh-section .img-wrapper > p { font-size: 1rem; }
}
.btn-primary {
    color: #fff;
    background-color: #009E96;
    border-color: #009E96;
}
