/* ============================================
   Messages Page Styles (qzs-5/message.html)
============================================ */

/* ヒーローセクション */
.message-hero {
    background-image: url('../../../qzs-5/images/messages/hero-background.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 6rem 0 0;
    text-align: center;
}

.message-hero__inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.message-hero__title {
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0 0 0.5rem 0;
    padding: 220px 0 0 0;
    color: #fff;
    font-weight: 700;
}

.message-hero__icon {
    margin-bottom: 0;
}

.message-hero__icon img {
    display: inline-block;
}

.message-hero__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 0 0 2rem 0;
    border: none;
}

/* main-contentとcontent-sectionのpaddingを上書き（他ページに影響しないよう） */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.content-section {
    padding: 0;
}

.content-section__body {
    gap: 0;
}

/* 導入テキスト */
.message-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* フォームボタンセクション */
.message-form-button {
    text-align: center;
    margin: 0;
    padding: 1rem 0 1.5rem 0;
}

.message-form-button__inner {
    display: inline-block;
}

.button-arrow {
    display: inline-block;
    width: 460px;
    height: 73px;
    line-height: 73px;
    text-decoration: none;
    color: #ffffff;
    background: url('../../../qzs-5/images/messages/btn_arrow.webp') no-repeat;
    background-size: contain;
    text-align: center;
    transition: opacity 0.3s ease;
    padding: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.button-arrow:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* 募集終了のお知らせ */
.message-notice {
    background-color: #f0f0f0;
    padding: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
    border-radius: 4px;
}

.message-notice p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

/* メッセージリストセクション */
.message-list-section {
    margin: 0;
    padding: 2rem 0 0 0;
}

.message-list-section__title {
    background-color: #20b648;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    margin: 0 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: none;
    text-align: center;
}

/* メッセージリストラッパー */
.message-list-wrapper {
    background: #ededed;
    padding: 0;
    margin: 0;
}

/* メッセージリスト */
.message-list {
    list-style: none;
    padding-left: 0;
    padding-top: 1em;
    margin: 0;
}

.message-list li {
    width: 100%;
    display: inline-block;
    padding: 1em 1.25em 1em 2em;
    border-bottom: 1px dashed #666;
    color: #333;
    line-height: 1.8;
}

.message-list li:first-child {
    padding-top: 1.5em;
}

.message-list li:last-child {
    border-bottom: none;
    padding-bottom: 1.5em;
    padding-right: 0;
}

/* 六角形のアイコン（6号機と同じ方式） */
.message-list li::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 14px;
    background-color: #20b648;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin-right: 0.5em;
    margin-bottom: -2px;
    vertical-align: baseline;
}

/* メッセージ作成者 */
.message-list__author {
    font-weight: 700;
    color: #333;
    display: inline;
}

/* メッセージ日付 */
.message-list__date {
    font-size: 0.9rem;
    color: #666;
    display: inline;
}

.message-list__date::before {
    content: '|';
    margin: 0 0.5em;
    padding: 0 0 0 1em;
    color: #888;
}

/* メッセージ本文 */
.message-list__text {
    display: block;
    margin: 0.5rem 0 0 1.5rem;
    line-height: 1.8;
}

/* レスポンシブ対応 */
/* xlarge */
@media screen and (max-width: 1680px) {
    .message-hero__title {
        padding: 220px 0 0 0;
    }
}

/* large */
@media screen and (max-width: 1280px) {
    .message-hero__title {
        padding: 230px 0 0 0;
    }
}

/* タブレット */
@media screen and (max-width: 980px) {
    .message-hero__title {
        padding: 185px 0 0 0;
    }

    .message-list li {
        padding: 1rem 1rem 1rem 2rem;
    }
    
    .message-list li::before {
        left: 0.5rem;
        top: 1.25rem;
    }
}

/* スマートフォン */
@media screen and (max-width: 736px) {
    .message-hero {
        padding-bottom: 0;
        background-size: 180%;
        background-position: center top;
    }
    
    .message-hero__title {
        padding: 120px 0 0 0;
        font-size: 2rem;
    }

    .message-hero__subtitle {
        font-size: 1.125rem;
    }

    .message-intro {
        font-size: 1rem;
    }
    
    .button-arrow {
        width: 300px;
        height: 48px;
        line-height: 48px;
        font-size: 1.2rem;
    }
    
    .message-list-section__title {
        font-size: 1.25rem;
        padding: 0.625rem 1rem;
    }
    
    .message-list li {
        padding: 1rem 0.75rem 1rem 1.75rem;
    }
    
    .message-list li::before {
        left: 0.25rem;
        top: 1.25rem;
    }
    
    .message-list__author {
        margin-bottom: 0.25rem;
    }
    
    .message-list__date {
        font-size: 0.85rem;
    }
    
    .message-list__date::before {
        display: none;
    }
}

/* 極小スマートフォン */
@media screen and (max-width: 480px) {
    .message-hero {
        background-size: 200%;
        background-position: center top;
    }
    
    .message-hero__title {
        padding: 100px 0 0 0;
        font-size: 1.75rem;
    }

    .message-hero__subtitle {
        font-size: 1rem;
    }

    .message-notice {
        padding: 1rem;
    }
    
    .message-notice p {
        font-size: 0.9rem;
    }
}
