@charset "UTF-8";

/* ==========================================================================
   yagi-leadership.css
   八木洋介氏 特別講義ページ専用スタイル
   ・すべてのセレクタを .yg- プレフィックスで独立させ、他ページ／style.css へ干渉させない
   ・ヘッダー／フッター／Back to Top／.fade-in は style.css（index.html 準拠）をそのまま使用
   ========================================================================== */

.yg-page {
    background-color: #fcfaf5;
    color: #211f1b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.yg-sp-br {
    display: none;
}

/* --- ページ読み込み時アニメーション（Hero） --- */
@keyframes ygFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yg-hero-inner>* {
    opacity: 0;
    animation: ygFadeInUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.yg-hero-inner>*:nth-child(1) { animation-delay: 0.10s; }
.yg-hero-inner>*:nth-child(2) { animation-delay: 0.25s; }
.yg-hero-inner>*:nth-child(3) { animation-delay: 0.40s; }
.yg-hero-inner>*:nth-child(4) { animation-delay: 0.60s; }
.yg-hero-inner>*:nth-child(5) { animation-delay: 0.75s; }

/* --- Hero --- */
.yg-hero {
    position: relative;
    min-height: 730px;
    overflow: hidden;
    background: #090909 url("/brand-pages/emc/images/yagi_leadership_hero.webp") center 46% / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.yg-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.66));
}

.yg-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    padding: 92px 24px 82px;
}

.yg-crumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
    font-family: 'EB Garamond', serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
}

.yg-crumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.yg-crumb a:hover {
    color: #c5a365;
}

.yg-crumb-current {
    color: #c5a365;
}

.yg-hero-label {
    margin-bottom: 28px;
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    letter-spacing: 0.38em;
    color: #c5a365;
}

.yg-hero-title {
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.12em;
}

.yg-hero-sub {
    margin-top: 32px;
    font-size: clamp(15px, 2vw, 21px);
    line-height: 1.9;
    letter-spacing: 0.12em;
    color: #dfc88f;
}

.yg-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 34px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(197, 163, 101, 0.55);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* --- 本文 --- */
.yg-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 30px 120px;
}

.yg-lede {
    max-width: 760px;
    margin: 0 auto 86px;
    font-size: 18px;
    line-height: 2.45;
    letter-spacing: 0.055em;
}

/* 講義の要点（全幅） */
.yg-summary {
    margin: 0 calc(50% - 50vw) 110px;
    padding: 72px max(24px, calc((100vw - 1100px) / 2));
    background-color: #f3efe5;
}

.yg-summary-label {
    margin-bottom: 35px;
    font-family: 'EB Garamond', serif;
    font-size: 13px;
    letter-spacing: 0.28em;
    color: #75603a;
    text-align: center;
}

.yg-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(166, 130, 70, 0.38);
    background-color: #fff;
}

.yg-summary-item {
    padding: 34px 25px;
    border-right: 1px solid rgba(166, 130, 70, 0.38);
}

.yg-summary-item:last-child {
    border-right: 0;
}

.yg-summary-num {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.4;
    color: #c5a365;
}

.yg-summary-item h2 {
    margin: 22px 0 10px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.yg-summary-item p {
    font-size: 13px;
    line-height: 1.9;
    color: #555;
}

/* 各章 */
.yg-chapter {
    max-width: 760px;
    margin: 0 auto 110px;
}

.yg-chapter-label {
    margin-bottom: 22px;
    font-family: 'EB Garamond', serif;
    font-size: 12px;
    letter-spacing: 0.28em;
    color: #75603a;
}

.yg-chapter-title {
    margin-bottom: 40px;
    padding-left: 24px;
    border-left: 1px solid #c5a365;
    font-size: clamp(28px, 4vw, 43px);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.08em;
}

.yg-copy p,
.yg-dark-inner>p:not(.yg-chapter-label),
.yg-workshop-copy p,
.yg-closing>p:not(.yg-closing-label) {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 2.35;
    letter-spacing: 0.045em;
}

.yg-quote {
    margin: 55px -45px 0;
    padding: 44px 48px;
    border-top: 1px solid #c5a365;
    border-bottom: 1px solid #c5a365;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.9;
    letter-spacing: 0.09em;
    color: #75603a;
    text-align: center;
}

/* 全幅写真 */
.yg-wide-photo {
    margin: 0 calc(50% - 50vw) 110px;
}

.yg-wide-photo img {
    display: block;
    width: 100%;
    height: min(62vw, 680px);
    object-fit: cover;
    object-position: center 42%;
}

/* 黒背景の章（全幅） */
.yg-dark {
    margin: 0 calc(50% - 50vw) 110px;
    padding: 100px 24px;
    background-color: #14130f;
    color: #f8f4e9;
}

.yg-dark-inner {
    max-width: 760px;
    margin: 0 auto;
}

.yg-dark .yg-chapter-label {
    color: #c5a365;
}

.yg-dark-title {
    margin-bottom: 44px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.08em;
    color: #d9be7f;
}

.yg-dark-inner>p:not(.yg-chapter-label) {
    color: rgba(255, 255, 255, 0.82);
}

.yg-dark-quote {
    margin-top: 58px;
    padding: 34px 0;
    border-top: 1px solid rgba(197, 163, 101, 0.5);
    border-bottom: 1px solid rgba(197, 163, 101, 0.5);
    font-size: clamp(21px, 3vw, 31px);
    line-height: 1.8;
    color: #e0c98f;
    text-align: center;
}

/* ワークショップ（全幅） */
.yg-workshop {
    margin: 0 calc(50% - 50vw) 110px;
    padding: 90px max(24px, calc((100vw - 1000px) / 2));
    background-color: #f3efe5;
}

.yg-workshop-heading,
.yg-workshop-copy {
    max-width: 760px;
    margin: 0 auto;
}

.yg-workshop-figure {
    max-width: 920px;
    margin: 55px auto 0;
}

.yg-workshop-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* 結び */
.yg-closing {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.yg-closing-label {
    font-family: 'EB Garamond', serif;
    font-size: 12px;
    letter-spacing: 0.26em;
    color: #75603a;
}

.yg-closing-title {
    margin: 24px 0 36px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.09em;
}

.yg-closing-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c5a365;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #75603a;
    text-decoration: none;
    transition: color 0.3s;
}

.yg-closing-link:hover {
    color: #c5a365;
}

/* --- CTA --- */
.yg-cta {
    padding: 110px 20px;
    background-color: #000;
    background-image: url("/brand-pages/emc/images/bg_08.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    justify-content: center;
    text-align: center;
}

.yg-cta-inner {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.yg-cta-label {
    font-family: 'EB Garamond', serif;
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 0.4em;
    color: #c5a365;
}

.yg-cta-title {
    font-size: clamp(26px, 4vw, 44px);
    color: #b7a664;
    line-height: 1.6;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.yg-cta-text {
    font-size: clamp(14px, 2vw, 20px);
    line-height: 2.2;
    letter-spacing: 0.1em;
    color: #eee;
}

.yg-cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.yg-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 64px;
    width: min(340px, 80vw);
    color: #fff;
    text-decoration: none;
    border-radius: 32px;
    font-size: 15px;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.yg-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.yg-btn-brown {
    background-color: #7b684c;
}

.yg-btn-gold {
    background-color: #bea36d;
}

.yg-btn-icon {
    width: 1.25em;
    height: auto;
    margin-top: -0.1em;
}

.yg-back {
    margin-top: 10px;
    font-family: 'EB Garamond', serif;
    color: #c5a365;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(197, 163, 101, 0.5);
    padding-bottom: 3px;
    transition: color 0.3s;
}

.yg-back:hover {
    color: #fff;
}

/* --- スクロール連動アニメーション --- */
.yg-workshop-figure.fade-in {
    transform: translateY(40px);
}

.yg-workshop-figure.fade-in.is-visible {
    transform: translateY(0);
}

.yg-workshop-figure.fade-in img {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1), transform 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.yg-workshop-figure.fade-in.is-visible img {
    opacity: 1;
    transform: scale(1);
}

.yg-summary-grid.fade-in .yg-summary-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.yg-summary-grid.fade-in.is-visible .yg-summary-item {
    opacity: 1;
    transform: translateY(0);
}

.yg-summary-grid.fade-in.is-visible .yg-summary-item:nth-child(1) { transition-delay: 0.12s; }
.yg-summary-grid.fade-in.is-visible .yg-summary-item:nth-child(2) { transition-delay: 0.26s; }
.yg-summary-grid.fade-in.is-visible .yg-summary-item:nth-child(3) { transition-delay: 0.40s; }
.yg-summary-grid.fade-in.is-visible .yg-summary-item:nth-child(4) { transition-delay: 0.54s; }

/* 読了プログレスバー */
.yg-progress {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 999;
    background-color: rgba(197, 163, 101, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.yg-progress.is-active {
    opacity: 1;
}

.yg-progress-bar {
    width: 0;
    height: 100%;
    background-color: #c5a365;
}

/* --- レスポンシブ --- */
@media (max-width: 1000px) {
    .yg-progress {
        top: 0;
    }
}

@media (max-width: 900px) {

    /* 引用を本文幅からはみ出させない */
    .yg-quote {
        margin: 42px 0 0;
        padding: 36px 24px;
    }

    .yg-cta {
        padding: 80px 20px;
        background-attachment: scroll;
    }
}

@media (max-width: 760px) {
    .yg-sp-br {
        display: block;
    }

    .yg-hero-sub-sep {
        display: none;
    }

    .yg-hero {
        min-height: 650px;
    }

    /* SPでは文字が写真の明るい中央部に重なるため、暗幕を上下方向で均一に濃くする */
    .yg-hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.8));
    }

    .yg-hero-inner {
        padding: 90px 20px 70px;
    }

    .yg-hero-label {
        font-size: 14px;
    }

    /* 「自分の内側から始まる」を1行に収めるため、字送りと文字サイズを抑える */
    .yg-hero-title {
        font-size: clamp(24px, 7.4vw, 38px);
        letter-spacing: 0.06em;
    }

    .yg-hero-meta {
        flex-direction: column;
        align-items: center;
    }

    .yg-body {
        padding: 74px 20px 90px;
    }

    .yg-lede {
        font-size: 16px;
        margin-bottom: 70px;
    }

    .yg-summary {
        margin-bottom: 80px;
        padding: 52px 16px;
    }

    .yg-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .yg-summary-item {
        border-bottom: 1px solid rgba(166, 130, 70, 0.38);
    }

    .yg-summary-item:nth-child(2) {
        border-right: 0;
    }

    .yg-summary-item:nth-child(3),
    .yg-summary-item:nth-child(4) {
        border-bottom: 0;
    }

    .yg-chapter {
        margin-bottom: 80px;
    }

    .yg-chapter-title {
        padding-left: 16px;
    }

    .yg-quote {
        padding: 32px 12px;
    }

    .yg-wide-photo {
        margin-bottom: 80px;
    }

    .yg-wide-photo img {
        height: 72vw;
    }

    .yg-dark {
        margin-bottom: 80px;
        padding: 70px 20px;
    }

    .yg-workshop {
        margin-bottom: 80px;
        padding: 65px 20px;
    }

    .yg-cta-btns {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {

    /* 2行の見出しが3行に割れないよう、画面幅に合わせて縮める */
    .yg-chapter-title,
    .yg-closing-title {
        font-size: clamp(19px, 6.2vw, 28px);
    }

    /* 「だが、一人では起こせない。」（13字）が1行に収まる大きさ */
    .yg-dark-title {
        font-size: clamp(19px, 6vw, 28px);
    }

    /* 「人をリードすることはできない。」（15字）が1行に収まる大きさ */
    .yg-quote,
    .yg-dark-quote {
        font-size: clamp(15px, 4.8vw, 22px);
    }

    .yg-summary-item {
        padding: 28px 18px;
    }

    .yg-btn {
        width: 100%;
        max-width: 340px;
    }
}

/* --- アニメーションを控えたい環境への配慮 --- */
@media (prefers-reduced-motion: reduce) {

    .yg-hero-inner>*,
    .yg-workshop-figure.fade-in img,
    .yg-summary-grid.fade-in .yg-summary-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}
