/* 動画⑧ メッセージでやり取りする：メッセージ画面・TOP・編集の再現と、説明の場面の部品（2026-11-06）
   実画面の写し（ヘルプ記事の画像）：白い吹き出しのカード、桃色の「送信」、「ファイル添付」の行と注記 */
:root { --ms-pink: #d38fca; --ms-pink-d: #a43f98; --ms-navy: #10194f; --ms-line: #e4e2ef; --ms-blue: #1f39d8; }

/* 提案詳細の下の「メッセージのやり取りを開始する」 */
.ms-start { display: flex; justify-content: center; padding: 36px 0 20px; }
.ms-startbtn, .ms-send, .ms-reqbtn, .ms-editbtn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.ms-startbtn { background: var(--ms-pink); color: #fff; font-size: 22px; padding: 22px 56px; box-shadow: 0 6px 16px rgba(164,63,152,.22); }

/* メッセージ画面 */
.ms-page { padding: 24px 0 40px; }
.ms-with { text-align: center; font-size: 17px; color: #5a5f86; margin: 4px 0 18px; font-weight: 600; }
.ms-thread { width: 860px; margin: 0 auto; display: grid; gap: 18px; min-height: 120px; padding-bottom: 20px; border-bottom: 1px solid var(--ms-line); }
.ms-empty { text-align: center; color: #9a9db8; font-size: 17px; padding: 40px 0; }
.ms-bubble { background: #fff; border: 1.5px solid var(--ms-line); border-radius: 16px; padding: 20px 26px; width: 640px; box-shadow: 0 2px 6px rgba(20,30,80,.04); }
.ms-bubble.is-me { justify-self: end; border-color: #a99be8; }
.ms-bubble.is-them { justify-self: start; }
.ms-who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ms-who b { font-size: 17px; color: var(--ms-navy); }
.ms-bubble.is-me .ms-who b { color: #6a4fd8; }
.ms-who small { font-size: 14px; color: #8b8fae; }
.ms-av { width: 38px; height: 38px; border-radius: 50%; background: #e7e6ef; display: inline-block; position: relative; }
.ms-av::after { content: ""; position: absolute; left: 12px; top: 8px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #555; box-shadow: 0 0 0 0 #555; }
.ms-bubble p { font-size: 18px; line-height: 1.75; color: #1d2142; margin: 0; }
.ms-file { margin-top: 12px; display: inline-block; font-size: 16px; font-weight: 700; color: var(--ms-pink-d); background: #faf0f8; border-radius: 10px; padding: 8px 14px; }
.ms-compose { width: 860px; margin: 22px auto 0; display: grid; gap: 12px; }
.ms-input { min-height: 150px; border: 1.5px solid var(--ms-line); border-radius: 14px; background: #fff; padding: 18px 22px; font-size: 18px; line-height: 1.75; color: #1d2142; }
.ms-attach { display: flex; align-items: center; gap: 20px; border: 1.5px solid var(--ms-line); border-radius: 14px; background: #fff; padding: 16px 22px; font-size: 17px; color: #6b6f8e; font-weight: 600; }
.ms-attach em { font-style: normal; color: var(--ms-pink-d); font-weight: 700; flex: 1; }
.ms-attach i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--ms-pink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.ms-note { text-align: right; font-size: 14px; line-height: 1.6; color: #6b6f8e; margin: 0; }
.ms-sendrow { display: flex; justify-content: center; padding-top: 6px; }
.ms-send { background: var(--ms-pink); color: #fff; font-size: 22px; width: 300px; height: 62px; }
.ms-request { position: absolute; right: 0; bottom: 0; background: linear-gradient(135deg, #e7a9de, #c46cc0); padding: 18px 26px; border-radius: 22px 0 0 0; }
.ms-reqbtn { background: #fff; color: var(--ms-pink-d); font-size: 18px; padding: 14px 34px; }

/* 取得者のTOP（4枚のカード） */
.ms-top { background: linear-gradient(180deg, #d79bd0, #e3b4dc); padding: 34px 50px 60px; min-height: 900px; }
.ms-toplogo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 40px; }
.ms-toplogo img { height: 40px; filter: brightness(0) invert(1); }
.ms-toplogo span { color: #fff; font-weight: 700; font-size: 18px; border-left: 2px solid rgba(255,255,255,.6); padding-left: 14px; }
.ms-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ms-card { background: #fff; border-radius: 26px; padding: 30px 26px 34px; display: grid; gap: 14px; align-content: start; min-height: 300px; }
.ms-card b { font-size: 26px; color: #7d4fd8; }
.ms-card p { font-size: 16px; line-height: 1.7; color: #2b2f50; margin: 0; }
.ms-cic { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #efe9fb; display: grid; place-items: center; }
.ms-cic img { width: 32px; height: 32px; }
.ms-count { position: absolute; top: -6px; right: -8px; min-width: 28px; height: 28px; border-radius: 999px; background: #e0457b; color: #fff; font-size: 15px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }

/* 取得者：提案の編集 */
.ms-editrow { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 26px 0 10px; }
.ms-editbtn { border: 2px solid var(--ms-blue); color: var(--ms-blue); background: #fff; font-size: 19px; padding: 14px 40px; }
.ms-editform { display: none; margin: 18px auto 0; width: 860px; background: #fff; border: 1.5px solid var(--ms-line); border-radius: 16px; padding: 24px 30px; }
.ms-editform h3 { font-size: 22px; color: var(--ms-navy); margin: 0 0 14px; }
.ms-editform label { display: grid; gap: 6px; font-size: 15px; font-weight: 700; color: #5a5f86; margin-bottom: 14px; }
.ms-editform label span { font-size: 18px; font-weight: 500; color: #1d2142; border: 1.5px solid var(--ms-line); border-radius: 10px; padding: 10px 14px; }
.ms-editform .ms-send { background: var(--ms-blue); }

/* 説明の場面：時間の帯 */
.ms-tl { display: grid; grid-template-columns: 1fr 0.55fr 1.15fr 1fr; gap: 0; width: 1600px; margin: 10px auto 0; }
.ms-tl > div { position: relative; padding: 30px 26px 26px; background: #fff; border: 2px solid #e1e4f5; display: grid; gap: 10px; align-content: start; }
.ms-tl > div:first-child { border-radius: 22px 0 0 22px; }
.ms-tl > div:last-child { border-radius: 0 22px 22px 0; }
.ms-tl .no { width: 44px; height: 44px; border-radius: 50%; background: #10194f; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.ms-tl b { font-size: 30px; color: #10194f; line-height: 1.35; }
.ms-tl p { font-size: 22px; line-height: 1.6; color: #3a3f66; margin: 0; }
.ms-tl .is-dead { background: #10194f; }
.ms-tl .is-dead b, .ms-tl .is-dead p { color: #fff; }
.ms-tl .is-dead .no { background: #ffd76a; color: #10194f; }
.ms-tl .is-msg { background: #fbeef9; border-color: #e7a9de; }
.ms-tl .is-msg b { color: #a43f98; }
.ms-tl .is-done { background: #eef7f1; border-color: #a9d6b8; }
.ms-tl .is-done b { color: #2f8a5f; }
.ms-who2 { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: #a43f98; background: #fff; border-radius: 999px; padding: 4px 14px 4px 4px; justify-self: start; }
.ms-who2 img { width: 36px; height: 36px; }
.ms-rule { margin: 34px auto 0; width: 1600px; display: flex; gap: 22px; }
.ms-rule > div { flex: 1; border-radius: 18px; padding: 22px 28px; font-size: 24px; line-height: 1.6; font-weight: 700; color: #10194f; background: #fff7dc; border: 2px solid #f2d374; }
.ms-rule > div.ng { background: #fdecee; border-color: #f1a7b2; }
.ms-rule small { display: block; font-size: 19px; font-weight: 500; color: #4a5080; }

/* 説明の場面：できる／できない */
.ms-can { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; width: 1560px; margin: 22px auto 0; }
.ms-can > div { border-radius: 22px; padding: 28px 34px; background: #fff; border: 2px solid #e1e4f5; }
.ms-can h3 { font-size: 30px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.ms-can .ok h3 { color: #2f8a5f; } .ms-can .ng h3 { color: #c0344f; }
.ms-can .ok { border-color: #a9d6b8; } .ms-can .ng { border-color: #f1a7b2; }
.ms-can ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ms-can li { font-size: 25px; line-height: 1.5; color: #1d2142; padding-left: 40px; position: relative; }
.ms-can .ok li::before { content: "○"; position: absolute; left: 0; color: #2f8a5f; font-weight: 800; }
.ms-can .ng li::before { content: "×"; position: absolute; left: 0; color: #c0344f; font-weight: 800; }
.ms-ex { width: 1560px; margin: 0 auto; background: #fff; border: 2px solid #e7a9de; border-radius: 22px; padding: 22px 30px; display: flex; gap: 18px; align-items: flex-start; }
.ms-ex img { width: 64px; height: 64px; flex: none; }
.ms-ex p { font-size: 23px; line-height: 1.7; color: #1d2142; margin: 0; }
.ms-ex small { display: block; font-size: 18px; font-weight: 700; color: #a43f98; margin-bottom: 4px; }
.ms-law { width: 1560px; margin: 20px auto 0; font-size: 20px; color: #4a5080; text-align: center; }
.ms-ph { color: #a3a6c0; }
.ms-h { text-align: center; font-size: 22px; color: #10194f; margin: 6px 0 14px; }
.ms-can li, .ms-ex p, .ms-can h3 { text-align: left; }
.ms-ex small { text-align: left; }
