* {
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
}
.shared-report-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}
.error-message {
    padding: 24px;
    background: #fee2e2;
    color: #991b1b;
    text-align: center;
    border-radius: 8px;
    margin: 20px;
}
.report-header {
    background: #FF679C;
    color: #fff;
    padding: 24px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.report-header-logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.report-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.report-brand {
    font-size: 1.3rem;
    font-weight: 700;
    opacity: 1;
    margin-bottom: 2px;
}
.report-date {
    font-size: 1.2rem;
    font-weight: 600;
}
.report-store {
    font-size: 1rem;
    opacity: 0.9;
}
.report-staff {
    font-size: 0.9rem;
    opacity: 0.85;
}
.items-list-bar {
    background: #f9f9f9;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.items-list {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.items-list-label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
    text-align: left;
}
.items-list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.items-list-item {
    font-size: 0.95rem;
    color: #fff;
    padding: 6px 12px;
    background: #FFB3D1;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    text-align: center;
}
.cleaning-section {
    padding: 16px;
    background: #FFE5F0;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.cleaning-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.item-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333 !important;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    display: block;
}
.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 5px;
}
.detail-tag {
    background: #f0f4f8;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}
.subsection {
    margin-top: 20px;
}
.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}
.subsection p {
    margin: 0 0 15px 0;
    color: #555;
    white-space: pre-wrap;
    font-size: 1.1rem;
    line-height: 1.8;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.image-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.image-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 0;
    text-align: center;
    width: 100%;
}
.image-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
}
.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.image-item:hover {
    transform: scale(1.02);
}
.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.default-no-photo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.no-photo {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}
/* セクション共通スタイル */
.section-header {
    margin-bottom: 15px;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FF679C;
    background: none;
    padding: 12px 0;
    margin: 0;
    border-bottom: 3px solid #FF679C;
}
.image-section,
.comment-section,
.work-content-section {
    padding: 16px 24px;
}
/* レポート承認セクション */
.approval-section {
    padding: 32px 24px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}
/* サンクス画像 */
.thanks-image-wrapper {
    text-align: center;
    padding: 24px 0 0 0;
    margin-top: 24px;
    background: transparent;
}
.thanks-image {
    max-width: 400px;
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.approval-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}
.approval-message {
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.8;
}
.approval-message p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}
.approval-button-wrapper {
    text-align: center;
}
.approval-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #FF679C;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 103, 156, 0.3);
}
.approval-button:hover:not(.disabled) {
    background: #e55a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 156, 0.4);
}
.approval-button:active:not(.disabled) {
    transform: translateY(0);
}
.approval-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}
/* 承認ダイアログ */
.approval-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.approval-dialog.show {
    opacity: 1;
    pointer-events: all;
}
.approval-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.approval-dialog-content {
    position: relative;
    z-index: 10001;
    background: #fff;
    padding: 40px 32px;
    border-radius: 12px;
    max-width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.approval-dialog-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
}
/* 画像モーダル */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.image-modal.show {
    opacity: 1;
    pointer-events: all;
}
.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}
.image-modal-content {
    position: relative;
    z-index: 10001;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.image-modal-close:hover {
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .shared-report-container {
        margin: 0;
        border-radius: 0;
    }
    .report-header {
        padding: 16px;
    }
    .report-date {
        font-size: 1rem;
    }
    .report-store {
        font-size: 0.9rem;
    }
    .items-list-bar {
        padding: 12px 16px;
    }
    .cleaning-section,
    .comment-section,
    .work-content-section {
        padding: 16px;
    }
    .image-section {
        padding: 16px;
    }
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    .item-title {
        font-size: 1.2rem;
    }
    .image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .image-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .image-item {
        aspect-ratio: 1;
        min-height: 200px;
    }
    .default-no-photo-image {
        width: 100%;
        height: auto;
        min-height: 200px;
        object-fit: contain;
    }
    .thanks-image-wrapper {
        padding: 24px 16px;
    }
    .approval-section {
        padding: 24px 16px;
    }
    .approval-title {
        font-size: 1.1rem;
    }
    .approval-message {
        margin-bottom: 20px;
    }
    .approval-message p {
        font-size: 0.9rem;
    }
    .approval-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .approval-dialog-content {
        padding: 32px 24px;
        max-width: 85%;
    }
    .approval-dialog-message {
        font-size: 0.95rem;
    }
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    .image-modal-close {
        top: -35px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
}
