/* =========================================================
   Message
   ========================================================= */
.sg-message {
    padding: 0 0 50px;
}

/* hero */
.sg-message .sgm-hero {
    padding-bottom: 30px;
}

.sg-message .sgm-hero-figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.sg-message .sgm-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 画像左上のコピー */
.sg-message .sgm-hero-copy {
    position: absolute;
    right: 30px;
    top: 80px;
    margin: 0;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 500;
    font-size: clamp(18px, 6vw, 35px);
    line-height: 1.8;
    letter-spacing: .03em;
    color: #fff;
}

/* -------------------------
   メッセージ
   ------------------------- */
.sg-message .sgm-message {
    padding-bottom: 30px;
}

.sgm-message .sgm-message-inner {
    display: block;
}

.sgm-message .sgm-message-body {
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    line-height: 2.2;
    letter-spacing: .02em;
    margin: 0 0 18px;
}

/* 署名（右寄せ） */
.sgm-message .sgm-sign {
    margin-top: 18px;
    text-align: right;
    line-height: 1.6;
}

.sgm-message .sgm-sign-company {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .02em;
}

.sgm-message .sgm-sign-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .15em;
}

.sgm-message .sgm-sign-name {
    margin-top: 6px;
}

.sgm-message .sgm-sign-svg {
    display: inline-block;
    width: 130px;
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* フォールバック用のテキストは普段は隠す */
.sgm-message .sgm-sign-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------
   History
   ------------------------- */
.sg-message .sgm-history {
    padding-top: 40px;
    padding-bottom: 30px;
}

.sgm-history .sgm-history-title {
    margin: 0 0 20px;
    font-size: 40px;
}

/* タイムラインの縦線（全体） */
.sgm-history .sgm-timeline {
    position: relative;
    padding-left: 24px;
}

.sgm-history .sgm-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: rgba(0, 0, 0, .35);
}

/* 各行：左（年）＋中央（文）＋右（画像） */
.sgm-history .sgm-item {
    display: grid;
    grid-template-columns: 150px 1fr 320px;
    gap: 16px 30px;
    padding: 12px 0 70px;
    align-items: start;
}

/* 左：年・サブ */
.sgm-history .sgm-year {
    position: relative;
    padding-left: 12px;
}


.sgm-history .sgm-dot {
    position: absolute;
    z-index: 2;
    left: -24px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #2f4482;
}

.sgm-history .sgm-year-num {
    display: block;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 45px;
    letter-spacing: .04em;
    color: #2f4482;
    line-height: 1.1;
}

.sgm-history .sgm-year-sub {
    display: block;
    margin-top: 6px;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 16px;
    font-weight: 500;
}

/* 中央：タイトル＋本文 */
.sgm-history .sgm-item-title {
    margin: 0 0 10px;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: .05em;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, .35);
}

.sgm-history .sgm-item-text {
    margin: 0;
    line-height: 2.0;
}

/* 右：写真枠（未設定ならグレーのダミー） */
.sgm-history .sgm-photo {
    width: 100%;
    padding-top: 20px;
}

.sgm-history .sgm-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   左の年と画像の年を分ける
========================= */

/* 左の年（元の大きい表示） */
.sgm-history .sgm-year .sgm-year-num {
    position: static;
    font-size: 45px;
    color: #2f4482;
}


/* -------------------------
   Responsive
------------------------- */

/* 980px以下：右画像を少し細く */
@media (max-width: 980px) {
        .sg-message .sgm-hero-copy {
        right: 20px;
        top: 30px;
        font-size: clamp(16px, 4.2vw, 28px);
        line-height: 1.6;
    }

    .sgm-item {
        grid-template-columns: 140px 1fr 280px;
    }
}

@media (max-width: 600px) {
    .sg-message .sgm-hero-copy {
        right: 12px;
        top: 12px;
        left: auto;
        font-size: clamp(14px, 4.8vw, 20px);
        line-height: 1.5;
    }

    .sgm-hero-inner {
        min-height: 320px;
    }

    .sgm-hero-catch {
        left: 18px;
        top: 18px;
        font-size: 18px;
    }

    .sgm-hero-photo {
        width: 44%;
    }

    .sgm-message-body {
        font-size: 13px;
        line-height: 2.1;
    }

    .sgm-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0 18px;
    }

    /*  .sgm-year {
    padding-left: 0;
  }*/

    /*  .sgm-dot {
    left: -24px;
    top: 8px;
  }*/

    .sgm-photo {
        max-width: 520px;
    }

    /* ===== SPレイアウト完全制御 ===== */
    .sgm-history .sgm-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* 順番 */
    .sgm-history .sgm-year {
        order: 1;
    }

    .sgm-history .sgm-content {
        order: 2;
    }

    .sgm-history .sgm-photo {
        order: 3;
    }

    /* 余白調整 */
    .sgm-history .sgm-year {
        padding-left: 0;
    }

    .sgm-history .sgm-dot {
        left: -24px;
        top: 20px;
        width: 20px;
        height: 20px;
    }

    /* サイズ調整 */
    .sgm-history .sgm-year-num {
        font-size: 28px;
    }

    .sgm-history .sgm-year-sub {
        font-size: 13px;
    }

    .sgm-history .sgm-item-title {
        font-size: 20px;
    }

    .sgm-history .sgm-item-text {
        font-size: 14px;
    }
}

/* 520px以下：人物を下寄せ＆見やすく */
@media (max-width: 520px) {

    .sgm-hero-inner {
        min-height: 280px;
    }

    .sgm-hero-photo {
        width: 52%;
    }
}