body {
    font-family: "Lucida Grande", Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", 
    "メイリオ", Meiryo, Osaka, "黒体", "simhei", "맑은 고딕", "Malgun Gothic", 
    "Lucida Sans Unicode", "Segoe UI", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    overflow: auto;
}

.report-base {
    container-type: inline-size;
    container-name: report-body;
}

.report {
    max-width: 700px;
    /* OURANOS-665-2-2 */
    min-width: 699px;
    margin: auto;
    position: relative;
    padding: 10px 10px;
    background-color: #f3f3ee;
    box-sizing: border-box;
    border: 2px solid #bfbfbf;
    font-size: 10px
}

.report::before {
    max-width: 710px;
    min-width: 300px;
    margin: auto;
    content: "";
    position: absolute;
    padding: 10px 10px;
    border: solid 1px;
    top: 5px;
    left: 5px;
    bottom: 5px;
    right: 5px;
    z-index: -100;
    border: 2px solid #bfbfbf;
    font-size: 10px
}

.report .center-element {
    display: grid;
    justify-content: center;
}

.report .grid-area {
    margin: 5px;
}

.report .grid-element {
    border-bottom: solid #a9a9a9;
    background-color: white;
    border: 0.1px solid #bfbfbf;
}

#grid-1,
#grid-2,
#grid-3,
#grid-4,
#grid-2-3,
#grid-2-5,
#preview_retouch,
#preview_retouch_ai,
#grid-2-5-2 {
    display: grid;
}

.retouch-area{
    display: grid;
}

/**
 * SP画面サイズに対するスタイル
 * 画面サイズが699px以下の場合、グリッドレイアウトを適用
 */
@container report-body (max-width: 699px) {

    .report {
        min-width: 360px;
    }

    #grid-2 {
        grid-template-columns: 1fr;
    }
    #grid-2-2 {order: 1;}
    #grid-2-6 {order: 2;}
    #grid-2-1 {order: 3;}
    #grid-2-3 {
        order: 4;
        grid-template-columns: 1fr 1fr;
        row-gap: 10px;
        width: auto !important; /* SP画面に合わせるためimportantを使用(TODO:OURANOS-1105) */
    }
    #grid-2-3 .item-name-area {
        background-color: #f3f3ee;
        border-bottom: 1px solid #bfbfbf;
        justify-content: left !important; /* SP画面に合わせるためimportantを使用(TODO:OURANOS-1105) */
        align-items: center;
    }
    #grid-2-3 .item-name {
        margin-left: 0px;
        justify-content: flex-start;
    }
    #grid-2-3 .item-value {
        margin-top: 5px;
    }
    #grid-2-5 {order: 5;}
    #grid-2-5-1,
    #grid-2-5-2 {
        background-color: #f3f3ee;
    }
    #grid-2-5-1 .item-name,
    #grid-2-5-2 .item-name {
        justify-content: center;
    }
    #grid-2-4 {
        order: 6;
    }
    #grid-2-4 > * {
        display: block;
    }

    /* 共通化: #grid-2-4, #grid-3 の item-name, item-value, camera-icon-svg */
    #grid-2-4 .item-name,
    #grid-3 .item-name {
        display: flex;
        width: auto;
        height: 15px;
        margin: 8px;
        padding: 0px;
    }
    #grid-2-4 .item-value,
    #grid-3 .item-value {
        border-top: 1px solid #bfbfbf;
        width: auto;
        margin: 0 8px 0 8px;
        padding: 8px 0 8px 0;
    }
    #grid-2-4 .camera-icon-svg,
    #grid-3 .camera-icon-svg {
        position: absolute;
        right: 0px;
        top: 25%;
        transform: translateY(-50%);
    }

    #grid-3 {
        grid-template-columns: 1fr;
    }
    #grid-3 > * {
        display: block;
    }

    #grid-4 {
        grid-template-columns: 1fr;
    }
}

/**
 * 700px以上の画面サイズに対するスタイル
 * 画面サイズが700px以上の場合、グリッドレイアウトを適用
 */
@container report-body (min-width: 700px) {
    #grid-2 {
        grid-template-areas:
            "grid-2-1 grid-2-1"
            "grid-2-2 grid-2-3"
            "grid-2-4 grid-2-5"
            "grid-2-6 grid-2-5";
        grid-template-columns: 4fr 6fr;
    }
    #grid-2:not(:has(#grid-2-3:not([style*="display: none"]))) {
        grid-template-areas:
            "grid-2-1 grid-2-1"
            "grid-2-2 grid-2-5"
            "grid-2-4 ."
            "grid-2-6 .";
        grid-template-columns: 4fr 6fr;
    }

    #grid-2:not(:has(#grid-2-3:not([style*="display: none"]), #grid-2-5:not([style*="display: none"]))) {
        grid-template-columns: 1fr;
    }

    #grid-2:not(:has(#grid-2-4:not([style*="display: none"]))) {
        grid-template-areas:
            "grid-2-1 grid-2-1"
            "grid-2-2 grid-2-3"
            "grid-2-6 grid-2-5";
    }

    /* header */
    #grid-2-1 {grid-area: grid-2-1;}

    /* image item */
    #grid-2-2 {grid-area: grid-2-2;}

    /* Camera signature item */
    #grid-2-3 {
        grid-template-areas:
            "preview_original_image preview_sensor_based_depth_map"
            "preview_camera_signature preview_3d_detection";
    }
    #grid-2-3:has(#preview_original_image[style*="display: none"]):has(#preview_sensor_based_depth_map[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-3:has(#preview_original_image[style*="display: none"]):has(#preview_camera_signature[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-3:has(#preview_original_image[style*="display: none"]):has(#preview_3d_detection[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-3:has(#preview_sensor_based_depth_map[style*="display: none"]):has(#preview_camera_signature[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-3:has(#preview_sensor_based_depth_map[style*="display: none"]):has(#preview_3d_detection[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-3:has(#preview_camera_signature[style*="display: none"]):has(#preview_3d_detection[style*="display: none"]) { grid-template-areas: none ; }

    /* Capture date and time item */
    #grid-2-4 {grid-area: grid-2-4;}

    /* Retouch item */
    #grid-2-5 {grid-area: grid-2-5;}
    #grid-2-5-2 {
        grid-template-areas:
            "preview_partial_modification preview_retouch";
    }
    #grid-2-5-2:has(#preview_partial_modification[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-5-2:has(#preview_retouch[style*="display: none"]) { grid-template-areas: none ; }
    #grid-2-5-2:has(#value_retouch[style*="display: none"]) { grid-template-areas: none ;}

    /* Summary item */
    #grid-2-6 {grid-area: grid-2-6;}

    /* Item Display Options */
    #grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    /* footer */
    #grid-4 {
        grid-template-columns: 1fr;
    }
}

.report .right-element {
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: end;
    text-align: right;
    padding-bottom: 2px;
}

.report .left-element {
    display: flex;
    text-align: left;
}

.report .border-element {
    display: flex;
    align-items: center;
    background-color: white;
    border: 0.1px solid #bfbfbf;
    position: relative;
}

.report .border-element .item-name {
    width: 100%;
}

.report .item-name-area {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.report .item-name {
    color: rgb(113, 103, 81);
    align-items: center;
    position: relative;
    padding: 8px;
    box-sizing: border-box;
}

.report .center-text {
    display: flex;
    text-align: center;
    justify-content: center;
}

.report .center-text.item-with-camera-icon {
    margin: 0 0 0 30px;
    width: 100%;
}

.report .center-text span {
    max-width: 150px;
}

.report .item-value {
    word-wrap: break-word;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.report .title {
    padding: 8px;

    .title-image {
        width: 100%;
        height: 21px;
    }
}

.report .header {
    margin-bottom: 10px;
    word-wrap: break-word;
    border: 0.1px solid #bfbfbf;
    background-color: white;
    margin: 5px;
    padding: 5px;
}

.report .item-with-tooltip {
    display: flex;
}

.report .logo-image[src=""] {
    display: none;
}

.report .logo-image {
    max-width: 100%;
    height: auto;
}

.report .image {
    min-height: 100px;
    min-width: 200px;
    padding: 8px;
    border: 0.1px solid #bfbfbf;
    background-color: white;
}

.report .image-title {
    background-color: rgb(113, 103, 81);;
    color: white;
    font-size: 16px;
    padding: 5px;
    text-align: center;
    font-weight: bold; 
}

.report .image-text {
    font-size: 10px;
    padding: 5px;
    text-align: center;
    color: rgb(113, 103, 81);
    font-weight: bold;
    font-size: 16px;
}

.report .depth-map-area-3d {
    max-width: 150px;
    margin: 0 auto;
}

.report .depth-map-area-3d .image-area {
    justify-content: center;
    align-items: center;
    width: 150px;
}

.report .image-error-area {
    display: none;
    max-width: 150px;
}

.report .scale-area {
    max-width: 150px;
    display: block;
    position: absolute;
    width: 100%;
}

.report .scale-bar {
    height: 12px;
}

.report .image-detai-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    background-color: lightgray;
    margin: 0 auto 15px auto;
    padding: 0px;
}

.report .retouched-image-detai-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background-color: lightgray;
    margin: 0 auto 0 auto;
    padding: 0px;
}

.report .retouched-image-label {
    display: flex;
    justify-content: center;
    padding: 5px 0 8px 0;
}

.report .retouched-image-high-sample {
    background-color: RGB(255, 0, 0);
    margin: 2px 2px;
    width: 20px;
}
.report .retouched-image-low-sample {
    background-color: RGB(255, 189, 0);
    margin: 2px 2px;
    width: 20px;
}

.report .retouch,
.report .retouch > * {
    display: grid;
    background-color: white;    
}

#value_retouch {
    grid-template-columns: 32% 68%;
    word-break: break-all;
}

.report .retouched-main-image-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    background-color: lightgray;
    margin: 0 auto;
}

.report .retouched-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.report .original-image {
    margin: auto;
    max-width: 150px;
    max-height: 150px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.report .retouched-image {
    margin: auto;
    max-width: 150px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.report .gray-image {
    filter: grayscale(100%);
}

.report .scale-text {
    font-size: 10px;
    position: relative;
    color: white;
    font-weight: bold;
    padding-left: 2px;
}

.report .far {
    float: right;
    padding-right: 2px;
}

.report .canvas {
    position: absolute;
    max-width: 150px;
    max-height: 150px;
}

.report .canvas-error {
    height: 150px;
    width: 150px;
    background-color: black;
}

.report .camera-icon {
    color: rgb(113, 103, 81);
    img {
        height: 15px;
    }
}

.report #camera_icon_text {
    padding-left: 4px;
}

.report .camera-icon-svg {
    height: 15px;
    padding: 8px;
 }

.report div.camera-icon-svg {
    width: 28px;
}

.report .result-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    flex-direction: column;
    padding: 8px;
}

.report .result-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    pointer-events: none;
}

.report .summary-text {
    word-break: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: -webkit-line-clamp 0.2s;
    margin: 8px;
}

.report .summary-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.report .summary-toggle-btn {
    cursor: pointer;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-width: 0px 0px 1px 1px;
    border-style: solid;
    border-color: #D6D6D6;
    transform: rotate(-45deg);
    margin: 5px auto 8px auto;
}

.report .info-circle {
    width: 13px;
    top: 3px;
    left: 3px;
}

.report .small-text-description {
    color: rgb(162, 162, 162);
    font-size: 9px;
}

.report .tooltip-text {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    padding: 5px;
    background: lightgray;
    border-radius: 5px;
    white-space: normal;
    top: 25px;
    font-size: 10px;
    z-index: 1000;
    width: 200px;
}

.report .tooltip {
    position: relative;
    cursor: pointer;
    padding-left: 5px;
    display: flex;
    justify-content: normal;
}

.report .tooltip-camera-signature:hover .tooltip-text-camera-signature,
.report .tooltip-camera-signature.show-tooltip .tooltip-text-camera-signature {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-3d-detection:hover .tooltip-text-3d-detection,
.report .tooltip-3d-detection.show-tooltip .tooltip-text-3d-detection {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-original-image:hover .tooltip-text-original-image,
.report .tooltip-original-image.show-tooltip .tooltip-text-original-image {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-partial-modification:hover .tooltip-text-partial-modification,
.report .tooltip-partial-modification.show-tooltip .tooltip-text-partial-modification {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-capture-server-time:hover .tooltip-text-capture-server-time,
.report .tooltip-capture-server-time.show-tooltip .tooltip-text-capture-server-time {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-sensor-based-depth-map:hover .tooltip-text-sensor-based-depth-map,
.report .tooltip-sensor-based-depth-map.show-tooltip .tooltip-text-sensor-based-depth-map {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-retouch-ai:hover .tooltip-text-retouch-ai,
.report .tooltip-retouch-ai.show-tooltip .tooltip-text-retouch-ai {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-retouch:hover .tooltip-text-retouch,
.report .tooltip-retouch.show-tooltip .tooltip-text-retouch {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-capture-date-time-in-exif:hover .tooltip-text-capture-date-time-in-exif,
.report .tooltip-capture-date-time-in-exif.show-tooltip .tooltip-text-capture-date-time-in-exif {
    opacity: 1;
    visibility: visible;
}

.report .tooltip-c2pa-provenance:hover .tooltip-text-c2pa-provenance,
.report .tooltip-c2pa-provenance.show-tooltip .tooltip-text-c2pa-provenance {
    opacity: 1;
    visibility: visible;
}

.report .logo-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #bfbfbf;;
}

.report .menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.report .menu-area {
    color: gray
}

.report .language {
    display: none;
    position: absolute;
    right: 25px;
    top: 45px;
    background-color: rgb(227, 227, 227);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.report .language button {
    /* display: block; */
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

.report .language button:hover {
    background-color: #c5c5c5;
}

.overlayTemplate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.language-select {
    font-size: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: gray;
}

.language-select option {
    color: black;
}

.report .tooltip-location:hover .tooltip-text-location,
.report .tooltip-location.show-tooltip .tooltip-text-location {
    opacity: 1;
    visibility: visible;
}
.cookie-policy-link-area {
    margin-top: 5px;
    color: rgb(162, 162, 162);
    font-size: 9px;
    padding: 0 8px;
}
.cookie-policy-link {
    color: rgb(162, 162, 162);
}
.issued-by-area {
    margin-top: 5px;
    overflow-wrap: break-word;
    word-break: break-all;
    justify-content: flex-end;
}
.issued-by {
    min-width: max-content;
    color: rgb(113, 103, 81);
    display: inline-block;
    font-size: 9px;
}
.company-name {
    margin-left: 5px;
    color: rgb(113, 103, 81);
    font-size: 9px;
}