/* =========================================================
   思い出投稿 家族確認ページ
   ========================================================= */

.memorial-review-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    color: #554f48;
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
}


/* ---------------------------------------------------------
   ページ上部
   --------------------------------------------------------- */

.memorial-review-page > h1 {
    margin: 0 0 22px;
    color: #51457e;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "YuMincho",
        serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.06em;
    text-align: center;
}

.memorial-review-page > p {
    margin: 0 auto 18px;
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
}


/* ---------------------------------------------------------
   確認待ち件数
   --------------------------------------------------------- */

.memorial-review-count {
    margin: 34px auto 32px !important;
    padding: 15px 20px;
    background: #f5f3ef;
    border-radius: 4px;
    color: #665f56;
    text-align: center;
}

.memorial-review-count strong {
    margin: 0 3px;
    color: #51457e;
    font-size: 20px;
}


/* ---------------------------------------------------------
   投稿一覧
   --------------------------------------------------------- */

.memorial-review-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* ---------------------------------------------------------
   投稿カード
   --------------------------------------------------------- */

.memorial-review-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #ddd8cf;
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(60, 52, 42, 0.05);
}


/* ---------------------------------------------------------
   投稿者・日付
   --------------------------------------------------------- */

.memorial-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ebe7df;
}

.memorial-review-meta strong {
    color: #514b44;
    font-size: 16px;
    font-weight: 600;
}

.memorial-review-meta span {
    color: #aaa49a;
    font-size: 12px;
}


/* ---------------------------------------------------------
   投稿写真
   --------------------------------------------------------- */

.memorial-review-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.memorial-review-photo {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f5f3ee;
    border-radius: 3px;
}


/* 写真1枚の場合は少し大きく見せる */
.memorial-review-photos:has(.memorial-review-photo:only-child) {
    display: block;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.memorial-review-photos:has(.memorial-review-photo:only-child)
.memorial-review-photo {
    height: auto;
    max-height: 420px;
}


/* ---------------------------------------------------------
   メッセージ本文
   --------------------------------------------------------- */

.memorial-review-message {
    margin: 0 0 26px;
    color: #5e584f;
    font-size: 15px;
    line-height: 2;
}

.memorial-review-message p {
    margin: 0 0 1em;
}

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


/* ---------------------------------------------------------
   掲載ボタン
   --------------------------------------------------------- */

.memorial-review-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid #ebe7df;
}

.memorial-review-actions button {
    min-width: 150px;
    padding: 13px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}


/* 掲載する */
.memorial-review-approve {
    background: #687d6a;
    border: 1px solid #687d6a;
    color: #fff;
}

.memorial-review-approve:hover {
    opacity: 0.86;
}


/* 掲載しない */
.memorial-review-reject {
    background: #fff;
    border: 1px solid #b8b2aa;
    color: #777067;
}

.memorial-review-reject:hover {
    background: #f6f4f0;
}


/* ---------------------------------------------------------
   投稿なし
   --------------------------------------------------------- */

.memorial-review-empty {
    margin: 40px auto 0;
    padding: 38px 24px;
    background: #f7f5f1;
    border-radius: 5px;
    text-align: center;
}

.memorial-review-empty p {
    margin: 0 0 8px;
    color: #6c665d;
    font-size: 14px;
    line-height: 1.8;
}

.memorial-review-empty p:last-child {
    margin-bottom: 0;
}



/* =========================================================
   ご家族用「思い出の写真」管理
   ========================================================= */

.memorial-family-photo-manager {
    max-width: 900px;
    margin: 42px auto 48px;
    padding: 34px 30px 32px;
    background: #fbfaf7;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
}

.memorial-family-photo-manager > h2 {
    margin: 0 0 12px;
    color: #51457e;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "YuMincho",
        serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.memorial-family-photo-lead,
.memorial-family-photo-count {
    margin: 0;
    color: #6c665f;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.memorial-family-photo-count {
    margin-top: 8px;
}

.memorial-family-photo-count strong {
    color: #51457e;
    font-size: 17px;
}

.memorial-family-photo-count span {
    margin-left: 8px;
    color: #8b847b;
    font-size: 13px;
}

.memorial-family-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 30px;
}

.memorial-family-photo-item {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2ddd5;
    border-radius: 6px;
}

.memorial-family-photo-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f2ed;
}

.memorial-family-photo-replace-form,
.memorial-family-photo-delete-form {
    margin: 0;
    padding: 0 12px;
    text-align: center;
}

.memorial-family-photo-replace-form {
    padding-top: 12px;
}

.memorial-family-photo-delete-form {
    padding-top: 8px;
    padding-bottom: 12px;
}

.memorial-family-photo-replace-file {
    display: none;
}

.memorial-family-photo-change-button,
.memorial-family-photo-delete-button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

.memorial-family-photo-change-button {
    background: #665b96;
    border: 1px solid #665b96;
    color: #fff;
}

.memorial-family-photo-change-button:hover {
    opacity: 0.88;
}

.memorial-family-photo-delete-button {
    background: #fff;
    border: 1px solid #c9c2b9;
    color: #756e66;
}

.memorial-family-photo-delete-button:hover {
    background: #f6f4f0;
}

.memorial-family-photo-form {
    margin: 28px auto 0;
    padding-top: 26px;
    border-top: 1px solid #e6e1d9;
    text-align: center;
}

.memorial-family-photo-file-label,
.memorial-family-photo-submit {
    box-sizing: border-box;
    display: block;
    width: min(360px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 12px 18px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.memorial-family-photo-file-label {
    background: #fff;
    border: 1px solid #665b96;
    color: #51457e;
}

.memorial-family-photo-file {
    display: none;
}

.memorial-family-photo-selected {
    margin: 10px 0 0;
    color: #665b96;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.memorial-family-photo-submit {
    margin-top: 12px;
    border: 1px solid #665b96;
    background: #665b96;
    color: #fff;
}

.memorial-family-photo-submit:hover {
    opacity: 0.88;
}

.memorial-family-photo-note,
.memorial-family-photo-full {
    margin: 16px 0 0;
    color: #817a72;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.memorial-family-photo-error {
    max-width: 720px;
    margin: 18px auto 0;
    padding: 14px 18px;
    background: #fff7f5;
    border: 1px solid #ead6d0;
    border-radius: 5px;
}

.memorial-family-photo-error p {
    margin: 0;
    color: #8a5149;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   スマートフォン
   ========================================================= */

@media screen and (max-width: 640px) {

    .memorial-family-photo-manager {
        margin: 30px auto 38px;
        padding: 26px 14px 24px;
    }

    .memorial-family-photo-manager > h2 {
        font-size: 20px;
    }

    .memorial-family-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin: 22px 0 26px;
    }

    .memorial-family-photo-image {
        height: 165px;
    }

    .memorial-family-photo-replace-form,
    .memorial-family-photo-delete-form {
        padding-left: 8px;
        padding-right: 8px;
    }

    .memorial-family-photo-replace-form {
        padding-top: 8px;
    }

    .memorial-family-photo-delete-form {
        padding-top: 6px;
        padding-bottom: 8px;
    }

    .memorial-family-photo-change-button,
    .memorial-family-photo-delete-button {
        padding: 9px 5px;
        font-size: 12px;
    }

    .memorial-family-photo-count span {
        display: block;
        margin: 3px 0 0;
    }


    .memorial-review-page {
        padding: 36px 16px 60px;
    }

    .memorial-review-page > h1 {
        margin-bottom: 18px;
        font-size: 23px;
        line-height: 1.65;
    }

    .memorial-review-page > p {
        font-size: 14px;
        line-height: 1.85;
    }

    .memorial-review-count {
        margin: 28px auto 24px !important;
        padding: 13px 15px;
        font-size: 14px;
    }

    .memorial-review-count strong {
        font-size: 18px;
    }

    .memorial-review-list {
        gap: 22px;
    }

    .memorial-review-card {
        padding: 20px 16px;
    }

    .memorial-review-meta {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .memorial-review-meta strong {
        font-size: 15px;
    }

    .memorial-review-meta span {
        padding-top: 2px;
        font-size: 11px;
        white-space: nowrap;
    }

    .memorial-review-photos {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }

    .memorial-review-photo {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .memorial-review-photos:has(.memorial-review-photo:only-child) {
        max-width: none;
    }

    .memorial-review-photos:has(.memorial-review-photo:only-child)
    .memorial-review-photo {
        max-height: none;
    }

    .memorial-review-message {
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.95;
    }

    .memorial-review-actions {
        gap: 9px;
        padding-top: 18px;
    }

    .memorial-review-actions button {
        flex: 1;
        min-width: 0;
        padding: 13px 8px;
        font-size: 14px;
    }
}


/* ---------------------------------------------------------
   掲載済み・非掲載
   --------------------------------------------------------- */

.memorial-review-history {
    margin-top: 56px;
}

.memorial-review-history > h2 {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd8cf;
    color: #51457e;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "YuMincho",
        serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.memorial-review-history > h2 span {
    margin-left: 6px;
    color: #9c968d;
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.memorial-review-card-history {
    background: #fcfbf8;
}

@media screen and (max-width: 640px) {

    .memorial-review-history {
        margin-top: 42px;
    }

    .memorial-review-history > h2 {
        margin-bottom: 18px;
        font-size: 19px;
    }
	
}

/* =========================================================
   投稿写真 一括ダウンロード
   ========================================================= */

.memorial-photo-download {
    margin: 26px auto 36px;
    text-align: center;
}

.memorial-photo-download-button {
    display: inline-block;
    padding: 13px 30px;
    background: #665b96;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.memorial-photo-download-button:hover {
    background: #51457e;
    color: #ffffff !important;
    text-decoration: none !important;
}

.memorial-photo-download p {
    margin: 10px 0 0;
    color: #6f6862;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}


/* スマートフォン */
@media (max-width: 767px) {

    .memorial-photo-download {
        margin: 24px 15px 32px;
    }

    .memorial-photo-download-button {
        display: inline-block;
        padding: 13px 24px;
        font-size: 15px;
    }

    .memorial-photo-download p {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.7;
    }
}

/* =========================================================
   確認期間終了
   ========================================================= */

.memorial-review-expired {
    text-align: center;
}

.memorial-review-expired-title {
    text-align: center;
}

}
