/* 画面上部のお知らせ（flash メッセージ）。templates/base.html の flash_messages ブロックで使う。
   どの画面でも出るので、.lrn-page の外でも効くよう色はここに直接書く（値は learning.css と同じ）。
   色で塗らず、白い面に小さなラベル（完了・注意・エラー・ご案内）だけ色を付ける。 */

.flash-messages.container { max-width: 1180px; padding-left: 24px; padding-right: 24px; } /* .lrn-page と幅をそろえる */

.flash-messages .ll-flash {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0 0;
    padding: 12px 44px 12px 16px;
    background: #fff;
    border: 1px solid #e4e9e6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(20, 36, 38, .06);
    color: #142426;
    font-size: .9375rem;
    line-height: 1.7;
}
.flash-messages .ll-flash + .ll-flash { margin-top: 8px; }

.flash-messages .ll-flash-label {
    flex: none;
    min-width: 3.5em; /* 「完了」「ご案内」で本文の頭がそろうように */
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #4b5d58;
}
.flash-messages .ll-flash-success .ll-flash-label { color: #3f7a3a; }
.flash-messages .ll-flash-warning .ll-flash-label { color: #8a5a12; }
.flash-messages .ll-flash-error .ll-flash-label { color: #a3262f; }

.flash-messages .ll-flash-text { min-width: 0; overflow-wrap: anywhere; }
.flash-messages .ll-flash-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.flash-messages .ll-flash .btn-close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 10px;
    height: 10px;
    padding: 6px;
    transform: translateY(-50%);
    background-size: 10px;
    opacity: .4;
}
.flash-messages .ll-flash .btn-close:hover { opacity: .8; }
.flash-messages .ll-flash .btn-close:focus { box-shadow: 0 0 0 .2rem rgba(20, 36, 38, .12); }

@media (max-width: 575.98px) {
    .flash-messages.container { padding-left: 16px; padding-right: 16px; }
    .flash-messages .ll-flash { flex-direction: column; gap: 2px; }
}
