/* ============================================================
   message.css (simple)
   - 参考画像（SUNDA）っぽい「大きい角丸ヒーロー画像＋白文字オーバーレイ」
   - 本文はカード感を消して、余白と可読性で見せる
   - 既存HTMLをそのまま使用（構造変更なし）
============================================================ */

/* =========================================
   Base / Container
========================================= */
.tm-message {
    background: var(--base-color);
    color: var(--text-color);
}

.tm-message .tm-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 余計な装飾は今回使わない */
.tm-message .tm-mediaSquare {
    display: none;
}

/* =========================================
   Hero (SUNDA風：横長・角丸・文字オーバーレイ)
========================================= */
.tm-msgHero {
    padding: clamp(1.25rem, 4vw, 2.75rem) 0 clamp(1rem, 3vw, 2rem);
}

.tm-msgHero__grid {
    position: relative;
}

/* 画像を「横長のバナー」にする */
.tm-msgHero__media {
    position: relative;
    width: 95vw;
    max-width: 1200px;
    /* 横にしっかり広げる */
    margin: 0 auto;

    aspect-ratio: 2 / 1;
    /* 横2：縦1は維持 */
    min-height: 60vh;
    /* ← FV感の正体 */
    max-height: 80vh;
    /* 伸びすぎ防止 */

    border-radius: 3rem;
    overflow: hidden;
    background: #e9eef2;
}



/* 画像の見え方 */
.tm-msgHero__img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: contain;
    /* 見切れない */
    object-position: center;
}


/* 下部に薄い暗幕（白文字が読みやすいように） */
.tm-msgHero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 38%,
            rgba(0, 0, 0, .58) 100%);
    pointer-events: none;
}

/* コピーを画像上に載せる */
.tm-msgHero__copy {
    position: absolute;
    left: clamp(18px, 4.2vw, 56px);
    bottom: clamp(18px, 4.2vw, 46px);
    z-index: 2;

    color: #fff;
    max-width: min(720px, 92%);
}

/* ラベルは控えめに */
.tm-msgHero__label {
    margin: 0 0 10px;
    font-size: .86rem;
    letter-spacing: .18em;
    font-weight: 750;
    opacity: .92;
}

/* タイトルは大きく、余白たっぷり */
.tm-message .tm-h1.tm-msgHero__title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 3.6vw, 2.65rem);
    line-height: 1.25;
    font-weight: 900;
    text-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    white-space: nowrap;
}

/* リードは読みやすく */
.tm-msgHero__lead {
    margin: 0 0 12px;
    font-size: 1.02rem;
    line-height: 1.9;
    opacity: .92;
    text-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.tm-msgHero__sign {
    margin: 0;
    font-weight: 850;
    letter-spacing: .02em;
    text-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

/* SUNDAはヒーロー内にボタンやプロフィールを置かないため、まずは非表示 */
.tm-msgHero__actions,
.tm-profileMini {
    display: none;
}

/* =========================================
   Body layout (シンプルに1カラム)
========================================= */
.tm-msgBody {
    padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.tm-msgLayout {
    display: block;
}

.tm-msgArticle {
    max-width: 860px;
    margin: 0 auto;
}

/* =========================================
   Sections (カード感を消して、余白で区切る)
========================================= */
.tm-msgSection {
    padding: 0;
    margin: 0 0 clamp(2.25rem, 5vw, 3.4rem);
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.tm-msgSection__head {
    margin: 0 0 1.1rem;
}

/* 見出し前の短いライン（控えめ） */
.tm-message .tm-divider {
    margin: 0 0 12px;
    height: 3px;
    width: 56px;
    border-radius: 999px;
    background: rgba(11, 31, 42, .25);
}

/* H2 */
.tm-message .tm-h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* 本文 */
.tm-msgSection__body {
    font-size: 1.02rem;
    line-height: 2.05;
    color: var(--text-color);
}

.tm-msgSection__body p {
    margin: 0;
}

.tm-msgSection__body p+p {
    margin-top: 1.35em;
}

/* 引用（過剰に装飾しない） */
.tm-quote {
    margin: 1.4em 0;
    padding: 0 0 0 1em;
    border-left: 4px solid rgba(11, 111, 134, .75);
    font-weight: 850;
    letter-spacing: .01em;
}

/* 署名 */
.tm-signOff {
    margin-top: 1.75em;
    padding-top: 1.25em;
    border-top: 1px solid var(--border-color);
    color: var(--muted-color);
}

.tm-signOff p {
    margin: 0;
    line-height: 1.75;
    font-weight: 750;
}

/* CTA（本文の流れを邪魔しないシンプル） */
.tm-ctaCard {
    margin-top: 1.75em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: #fff;
}

.tm-ctaCard__inner {
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tm-ctaCard__title {
    margin: 0 0 6px;
    font-weight: 900;
    letter-spacing: .01em;
}

.tm-ctaCard__desc {
    margin: 0;
    color: var(--muted-color);
    line-height: 1.75;
}

.tm-ctaCard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ボタン（ページ内で統一されるよう最低限） */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: .02em;
    border: 1px solid var(--border-color);
    transition: transform .15s ease, filter .15s ease;
}

.tm-btn--primary {
    background: var(--main-color);
    color: #fff;
    border-color: rgba(11, 111, 134, .55);
}

.tm-btn--ghost {
    background: transparent;
    color: var(--text-color);
}

.tm-btn:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
}

.tm-btn:focus-visible {
    outline: 3px solid rgba(11, 111, 134, .22);
    outline-offset: 3px;
}

/* ============================================================
   message.css 用：レスポンシブ調整メディアクエリ
   - SP：ヒーロー文字を折り返し、余白/角丸/高さを詰める
   - TB：ヒーロー文字サイズと配置を最適化
   - PC：余白を少し広げる（現状のままでもOKな範囲）
============================================================ */

/* ------------------------------
   Tablet (<= 1024px)
-------------------------------- */
@media (max-width: 1024px) {
    .tm-msgHero__media {
        border-radius: 2.25rem;
        aspect-ratio: 1 / 1;
        max-height: 50vh;
        min-height: 40vh;
    }


    .tm-msgHero__copy {
        left: clamp(14px, 3.6vw, 40px);
        bottom: clamp(14px, 3.6vw, 34px);
        max-width: min(640px, 92%);
    }

    .tm-message .tm-h1.tm-msgHero__title {
        font-size: clamp(1.55rem, 4.2vw, 2.2rem);
        white-space: normal;
        /* 折り返し許可（TB以下は基本ON推奨） */
    }

    .tm-msgHero__lead {
        font-size: 1rem;
        line-height: 1.85;
    }

    .tm-msgArticle {
        max-width: 780px;
    }
}

/* ------------------------------
   Mobile (<= 768px)
-------------------------------- */
@media (max-width: 768px) {
    .tm-msgHero {
        padding: 1.25rem 0 1.25rem;
    }

    .tm-msgHero__media {
        border-radius: 1.75rem;
    }

    /* 暗幕を少し強めて文字の可読性UP */
    .tm-msgHero__media::after {
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0) 28%,
                rgba(0, 0, 0, .66) 100%);
    }

    .tm-msgHero__copy {
        left: 16px;
        right: 16px;
        /* 横幅を固定せず、SPでは左右余白で管理 */
        bottom: 16px;
        max-width: none;
        /* right/leftで幅を作る */
    }

    .tm-msgHero__label {
        font-size: .82rem;
        margin: 0 0 8px;
    }

    .tm-message .tm-h1.tm-msgHero__title {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
        line-height: 1.25;
        white-space: normal;
        /* SPは必ず折り返す */
    }

    .tm-msgHero__lead {
        font-size: .98rem;
        line-height: 1.8;
        margin: 0 0 10px;
    }

    .tm-msgHero__sign {
        font-weight: 800;
    }

    .tm-msgBody {
        padding: 1.75rem 0 4rem;
    }

    .tm-msgArticle {
        max-width: 100%;
    }

    .tm-msgSection {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tm-msgSection__body {
        font-size: 1rem;
        line-height: 2.0;
    }

    .tm-ctaCard__inner {
        padding: 16px;
    }

    /* ボタンは縦積みの方が事故りにくい */
    .tm-ctaCard__actions {
        width: 100%;
    }

    .tm-btn {
        width: 100%;
    }
}

/* ------------------------------
   Small Mobile (<= 420px)
-------------------------------- */
@media (max-width: 420px) {
    .tm-msgHero__media {
        border-radius: 1.4rem;
    }

    .tm-msgHero__copy {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .tm-message .tm-h1.tm-msgHero__title {
        font-size: clamp(1.22rem, 7.2vw, 1.65rem);
    }

    .tm-msgHero__lead {
        font-size: .95rem;
    }

    .tm-message .tm-divider {
        width: 48px;
    }
}

/* ------------------------------
   Large Desktop (>= 1200px)
   （必要なら：余白を少し増やす程度）
-------------------------------- */
@media (min-width: 1200px) {
    .tm-msgHero__media {
        border-radius: 3rem;
    }

    .tm-msgArticle {
        max-width: 860px;
    }
}