/* ==============================
   報告フォーム / 報告管理
============================== */

.report-page {
    max-width: 1000px;
    margin: 0 auto;
}

.report-card,
.report-manage-card {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #999;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.report-card--intro {
    background: rgba(255, 255, 255, 0.96);
}

.report-card__title {
    margin: 0 0 10px;
    padding: 0;
    border-bottom: none;
    font-size: 24px;
    line-height: 1.4;
}

.report-card__text {
    margin: 0 0 8px;
    line-height: 1.7;
}

.report-form {
    margin: 0;
}

.report-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.report-form__field {
    margin-bottom: 14px;
}

.report-form__field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.report-form__field input,
.report-form__field textarea,
.report-form__field select {
    max-width: none;
}

.report-form__required {
    color: #b00020;
    font-size: 12px;
}

.report-form__optional {
    color: #555;
    font-size: 12px;
}

.report-form__help {
    margin: 5px 0 0;
    color: #555;
    font-size: 13px;
}

.report-form ul.errorlist {
    margin: 5px 0 0;
    padding-left: 1.2em;
    color: #b00020;
    font-weight: bold;
}

.report-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.report-form__actions--between {
    justify-content: space-between;
}

.report-form__submit,
.report-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.report-form__submit:hover,
.report-link-button:hover {
    background: #eee;
    text-decoration: none;
}

.report-complete-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.own-report-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.own-report-item {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.own-report-item__summary {
    font-weight: bold;
    cursor: pointer;
}

.own-report-item__body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.own-report-item__meta {
    margin: 0 0 8px;
    color: #555;
    font-weight: bold;
}

.own-report-item__text {
    margin: 0;
    line-height: 1.7;
    word-break: break-word;
}

.report-manage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-manage-card {
    margin-bottom: 0;
}

.report-manage-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.report-manage-card__title {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.report-manage-card__title:hover {
    text-decoration: underline;
}

.report-manage-card__meta {
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
    font-weight: bold;
}

.report-manage-card__snippet {
    margin: 0;
    line-height: 1.7;
    word-break: break-word;
}

.report-status {
    flex-shrink: 0;
    padding: 3px 9px;
    border: 1px solid #999;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: bold;
}

.report-status--new {
    border-color: #d2a15d;
    background: #fff8eb;
    color: #704900;
}

.report-status--checking {
    border-color: #8aa8d8;
    background: #f0f5ff;
    color: #244f91;
}

.report-status--done {
    border-color: #8cbf8c;
    background: #f1fff1;
    color: #245624;
}

.report-status--rejected {
    border-color: #bbb;
    background: #f5f5f5;
    color: #555;
}

.report-detail-list {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.report-detail-list dt {
    font-weight: bold;
}

.report-detail-list dd {
    margin: 0;
}

.report-detail-body {
    line-height: 1.8;
    word-break: break-word;
}

@media (max-width: 700px) {
    .report-manage-card__header,
    .report-form__actions--between {
        align-items: stretch;
        flex-direction: column;
    }

    .report-detail-list {
        display: block;
    }

    .report-detail-list dt {
        margin-top: 8px;
    }
}


/* ==============================
   全体ページ幅の最終統一
============================== */

/*
   このCSSは reports.css が現状もっとも後ろで読み込まれる想定のため、
   ページごとの max-width / margin / padding 差を最後に上書きする。

   目的：
   - ホーム、報告フォーム、キャラ設定、移動・ルーム、GM専用ページ
   - キャラリスト、ルールブック、PLメッセージ
   上記のカード表示幅を中央フレーム内で揃える。
*/
.main-content > .home-layout,
.main-content > .report-page,
.main-content > .character-form-page,
.main-content > .character-list-page,
.main-content > .area-manage-page,
.main-content > .room-edit-page,
.main-content > .pl-message-page,
.main-content > .rulebook-page,
.main-content > .login-page {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/*
   キャラリストだけはページwrapperに左右paddingが入っているため、
   他ページとカード端がずれて見えないように消す。
*/
.main-content > .character-list-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/*
   ルールブックとPLメッセージも、内部カードを確実に横いっぱいへ広げる。
*/
.rulebook-hero,
.rulebook-section-card,
.rulebook-card-link,
.pl-message-header-card,
.pl-message-compose-card,
.pl-message-log-card {
    box-sizing: border-box;
    width: 100%;
}

/* ==============================
   報告削除
============================== */

.report-card--danger {
    border-color: rgba(160, 70, 70, 0.65);
}

.report-delete-form {
    margin: 0;
}

.report-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #9a3a3a;
    border-radius: 6px;
    background: #fff;
    color: #8a1f1f;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.report-delete-button:hover {
    background: #f7eaea;
}