/*
 * message.css - 代表メッセージページ
 * Version: 3.0
 * v3.0: エンタープライズBtoB品質へ改善
 */

/* ===================================
   Page Base
=================================== */
.ewrd-page-message {
    background: #fff;
}

/* ページヘッダーは common.css .ewrd-sub-hero に統合 */

/* ===================================
   メイン: ポートレート右 + テキスト左 2カラム
=================================== */
.ewrd-message-main {
    padding: 112px 0;
}

.ewrd-message-row {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

/* テキスト左カラム */
.ewrd-message-txt {
    flex: 1.2;
}

.ewrd-message-lead {
    font-size: clamp(1.5rem, 2.5vw, 1.7rem);
    line-height: 1.6;
    margin-bottom: 48px;
    color: var(--secondary-color, #1A2B48);
    font-family: var(--font-serif, 'Noto Serif JP', serif);
    font-weight: 700;
    position: relative;
    padding-left: 24px;
    letter-spacing: 0.06em;
}

.ewrd-message-lead::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--accent-color, #B8942E);
}

.ewrd-message-txt .ewrd-article-content {
    line-height: 2.2;
    font-size: var(--fs-body, 0.9375rem);
    color: var(--text-main, #2C2C2C);
    letter-spacing: 0.04em;
}

.ewrd-message-txt .ewrd-article-content p {
    margin-bottom: 1.8em;
}

/* ポートレート右カラム */
.ewrd-message-portrait {
    flex: 0 0 360px;
    position: sticky;
    top: 120px;
}

.ewrd-message-portrait img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md, 4px);
    filter: grayscale(10%);
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ewrd-message-portrait:hover img {
    filter: grayscale(0%);
}

.ewrd-message-name-card {
    margin-top: 28px;
    padding: 0 4px;
}

.ewrd-message-role {
    font-size: var(--fs-small, 0.8125rem);
    color: var(--text-caption, #8A8A8A);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.ewrd-message-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--secondary-color, #1A2B48);
    font-family: var(--font-serif, 'Noto Serif JP', serif);
    letter-spacing: 0.12em;
}

/* ===================================
   メッセージ本文（続き — テキスト + メンバー写真 2カラム）
   v4.0: 1カラム → 2カラム化
=================================== */
.ewrd-message-body {
    padding: 0 0 112px;
}

.ewrd-message-body .ewrd-container {
    max-width: 1120px;
}

.ewrd-message-body-row {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.ewrd-message-body-txt {
    flex: 1;
    min-width: 0;
}

.ewrd-message-body-photo {
    flex: 0 0 400px;
    max-width: 400px;
}

.ewrd-message-body-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md, 4px);
}

.ewrd-message-body .ewrd-article-content {
    line-height: 2.2;
    font-size: var(--fs-body, 0.9375rem);
    color: var(--text-main, #2C2C2C);
    letter-spacing: 0.04em;
}

.ewrd-message-body .ewrd-article-content p {
    margin-bottom: 1.8em;
}

/* ===================================
   署名
=================================== */
.ewrd-signature {
    margin-top: 80px;
    text-align: right;
}

.ewrd-signature-role {
    font-size: var(--fs-small, 0.8125rem);
    color: var(--text-caption, #8A8A8A);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.ewrd-signature-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--secondary-color, #1A2B48);
    font-family: var(--font-serif, 'Noto Serif JP', serif);
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.ewrd-signature img {
    width: 200px;
    height: auto;
}

/* ===================================
   会社紹介PV動画
=================================== */
.ewrd-message-video {
    padding: 112px 0;
    background: var(--secondary-color, #1A2B48);
    position: relative;
    overflow: hidden;
}

.ewrd-message-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAAAi4wAAAAV0Uk5TABAQEBDQlXkAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAA0SURBVDjLY2AYBaNgOAMmBgYWBij4DwIMUMAEBQxQwAAFTFDABAWMUMCIAsAKUMG/UTDkAQAHLALRSN0r2AAAAABJRU5ErkJggg==");
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.ewrd-message-video > * {
    position: relative;
    z-index: 1;
}

/* 2カラム: 左テキスト + 右動画 */
.ewrd-video-row {
    display: flex;
    align-items: center;
    gap: 64px;
}

.ewrd-video-info {
    flex: 0 0 340px;
}

.ewrd-video-info .ewrd-heading {
    margin-bottom: 32px;
}

.ewrd-video-desc {
    font-size: var(--fs-body, 0.9375rem);
    line-height: 2;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

.ewrd-video-player {
    flex: 1;
    min-width: 0;
}

.ewrd-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ewrd-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   レスポンシブ
=================================== */
@media (max-width: 900px) {
    .ewrd-message-row {
        flex-direction: column-reverse;
        gap: 48px;
    }

    .ewrd-message-portrait {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
        position: static;
    }

    .ewrd-message-lead {
        font-size: 1.375rem;
    }

    .ewrd-message-main {
        padding: 72px 0;
    }

    .ewrd-message-body {
        padding: 0 0 72px;
    }

    .ewrd-message-body-row {
        flex-direction: column;
        gap: 40px;
    }

    .ewrd-message-body-photo {
        flex: none;
        max-width: 100%;
    }

    .ewrd-video-row {
        flex-direction: column;
        gap: 40px;
    }

    .ewrd-video-info {
        flex: none;
        text-align: center;
    }

    .ewrd-video-info .ewrd-heading {
        text-align: center;
    }

    .ewrd-video-info .ewrd-heading-en::after {
        margin-left: auto;
        margin-right: auto;
    }
}
