@charset "utf-8";

/* ==========================================================================
   page-message.css - Compact Vertical Adjustment
   - 画像サイズ・影の迫力は元のまま完全に保持
   - 縦方向の巨大な余白・行間を極限まで削り、スクロール量を大幅削減
   ========================================================================== */

.p-message-content {
    /* 下部の巨大な余白を 140px -> 40px に圧縮 */
    padding: 0 0 40px; 
    background: #fff;
}

.p-message-content__inner {
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 5%;
}

/* レイアウト：中央寄せ（間隔を 60px -> 20px へ大幅圧縮） */
.p-message-layout {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px;
}

/* --- スクロールアニメーション（main.js 連動） --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ビジュアルエリア（元コードのサイズ・影を100%維持） --- */
.p-message-visual {
    width: 100%;
    max-width: 620px; /* 元のサイズのまま */
    margin: 0 auto;
    padding-left: 30px;  
    padding-right: 30px; 
    padding-bottom: 30px;
    box-sizing: border-box;
}

.p-message-visual__img {
    position: relative;
    width: 100%;
}

.p-message-visual__img img {
    width: 100%;
    height: auto;
    box-shadow: 30px 30px 0 #f0f4f8; /* 元のダイナミックな影のまま */
    vertical-align: bottom;
    display: block;
}

/* --- テキストエリア（行間・余白を凝縮） --- */
.p-message-text {
    width: 100%;
}

.p-message-text__lead {
    font-size: 19px;
    font-weight: 700;
    color: #0054a4;
    line-height: 1.5;
    margin-bottom: 1.0em; /* 余白を 2.5em -> 1.0em へ圧縮 */
    font-family: "Yu Mincho", serif;
    text-align: center;
}

.p-message-text__body p {
    font-family: "Yu Mincho", serif;
    font-size: 16px; 
    line-height: 1.65; /* 行間を 2.3 -> 1.65 へ凝縮 */
    color: #333;
    margin-bottom: 0.9em; /* 段落間を 2.5em -> 0.9em へ大幅圧縮 */
    text-align: justify;
}

.p-message-text__body strong {
    color: #0054a4;
    font-weight: 700;
}

/* 署名エリア */
.p-signature {
    margin-top: 20px; /* 上部空きを 60px -> 20px へ短縮 */
    padding-top: 15px; /* パディングを 40px -> 15px へ短縮 */
    border-top: 1px solid #d4a74a;
    text-align: right;
}

.p-signature .post {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.p-signature .name {
    font-family: "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #333;
    margin-bottom: 15px; /* 更新日との間に少し余白を持たせる場合 */
}

/* 更新日のスタイル（右揃え） */
.p-signature .update-date {
    font-size: 12px;
    color: #666;
}

/* -------------------------------------------
   レスポンシブ (スマホ表示時)
------------------------------------------- */
@media (max-width: 768px) {
    .p-message-content {
        padding: 0 0 40px;
    }

    .p-message-visual {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .p-message-visual__img img {
        box-shadow: 15px 15px 0 #f0f4f8;
    }

    .p-message-text__lead {
        font-size: 17px;
        text-align: left;
    }

    .p-message-text__body p {
        font-size: 15px;
        line-height: 1.6;
    }

    .p-signature .name {
        font-size: 20px;
    }
}