/* シミュレーションセクション */
.simulation-section {
    padding: 80px 0;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* サイドバー（共通スタイルはcommon.cssに移動） */
.simulation-section .section-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start; /* stretchを上書き */
    height: calc(100vh - 78px); /* 罫線表示のため高さを設定 */
}

.simulation-content h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 5px;
    line-height: 1.5;
    color: #2f7340;
    margin-bottom: 24px;
}

.simulation-intro {
    margin-bottom: 40px;
}

.intro-capsule {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3.2px;
    line-height: 1.8;
    color: white;
    margin-bottom: 16px;
    padding: 12px 20px;
    background-color: #2f7340;
    border-radius: 25px;
    display: inline-block;
}

.intro-description {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.4px;
    line-height: 2.4;
    color: #2f7340;
}

.intro-description strong {
    font-weight: 600;
    letter-spacing: 2.4px;
}

ul.intro-description {
    padding: 0 0 16px 48px;
    border-bottom: 1px solid #2f7340;
    margin: 0 0 16px 0;
}

/* チャットコンテナ */
.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #eef0ed;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}

/* 担当者情報 */
.participant-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0;
    box-sizing: border-box;
}

.participant-left,
.participant-right {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.4px;
    line-height: 1.4;
    color: #2f7340;
}

.participant-left {
    text-align: left;
}

.participant-right {
    text-align: right;
}

/* 日付セクション */
.day-section {
    margin-bottom: 32px;
}

.day-section:last-child {
    margin-bottom: 0;
}

.day-section h4 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3.2px;
    line-height: 1.8;
    color: #2f7340;
    margin-bottom: 16px;
    padding: 8px 16px;
    background-color: transparent;
    border-radius: 6px;
    border: 2px solid #2f7340;
    text-align: center;
}

/* 時間グループ */
.time-group {
    margin-bottom: 16px;
}

.time-group:last-child {
    margin-bottom: 0;
}

.time-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: #6c757d;
    margin-bottom: 8px;
    padding-left: 8px;
}

/* メッセージ */
.message {
    margin-bottom: 16px;
    display: flex;
}

.message:last-child {
    margin-bottom: 0;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.6px;
    line-height: 1.8;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* 送信メッセージ（右側） */
.message.sent {
    justify-content: flex-end;
}

/* 留意事項 */
.notice-section {
    margin-top: 40px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.notice-section h4 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3.2px;
    line-height: 1.8;
    color: #2f7340;
    margin-bottom: 16px;
}

.notice-description {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.6px;
    line-height: 1.6;
    color: #2f7340;
    margin-bottom: 16px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.6px;
    line-height: 1.6;
    color: #2f7340;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.notice-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: #2f7340;
    border-radius: 50%;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.message.sent .message-content {
    background-color: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-right-radius: 4px;
}

/* 受信メッセージ（左側） */
.message.received {
    justify-content: flex-start;
}

.message.received .message-content {
    background-color: #2f7340;
    color: white;
    border-bottom-left-radius: 4px;
}

/* システムメッセージ（中央） */
.message.system {
    justify-content: center;
}

.message-content .checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.message-content .checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.6px;
    line-height: 1.8;
    color: #000;
}

.message-content .checklist li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 3px;
    box-sizing: border-box;
}

.message-content .checklist li:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    width: 6px;
    height: 10px;
    border: solid #2f7340;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message-content .checklist li:checked:after,
.message-content .checklist li.completed:after {
    opacity: 1;
}

.message.system .message-content {
    background-color: #fff3cd;
    color: #333;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.6px;
    line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .simulation-section {
        padding: 40px 0;
    }
    
    .chat-container {
        padding: 16px;
        margin: 0 16px;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 13px;
    }
    
    .day-section h4 {
        font-size: 16px;
    }
    
    .simulation-content h3 {
        font-size: 20px;
    }
}
