body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.info {
    padding: 20px;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 100px;
}

h1 {
    text-align: center;
    font-weight: 300;
}

.estimate {
    text-align: center;
    color: #000;
    font-weight: bold;
    font-size: 23px;
    text-decoration: underline;
    text-decoration-color: #e74c3c;
    margin: 5px 0;
}

.subtext,
.note,
.phone-note,
.phone-number,
.hours {
    text-align: center;
    color: #666;
}

.coution {
    border: 1px solid #e74c3c;
    font-weight: bold;
    background-color: #faeef0;
}

.coution_forPc {
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
    background-color: #e94d3c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 10px;
    color: white;
    cursor: pointer;
}

.coution_forPc:hover,
.coution_forPc:active {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    background-color: #e94d3c;
}

.smapleImg {
    display: flex;
    justify-content: center;
    gap: 5%;
    width: 100%;
    height: 190px;
}

.smapleImg img {
    width: auto;
    height: 160px;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: inherit;
    text-decoration: none;
}


.infoBtn {
    border-radius: 50px;
    background-color: #dbedee;
    color: #161616;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.infoBtn:hover,
.infoBtn:active {
    background-color: #dbedee;
    color: #161616;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}


.phone-number {
    color: #467FF7;
    font-size: 50px;
    font-weight: bold;
    margin: 0;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    /* color: #666; */
    margin-left: 40px;
}

ul li {
    margin-bottom: 10px;
}

.form-container {
    border: 20px solid #ebf1ff;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.form-group {
    margin-bottom: 20px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="checkbox"] {
    margin-right: 10px;
}

button,
.start-capture,
.customer-info-btn {
    width: 100%;
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.arrow-down {
    font-size: 80px;
    color: #c0dfff;
    cursor: pointer;
    text-align: center;
    font-weight: bolder;
    height: 18px;
    z-index: 1000;
    position: relative;
    margin-top: -12px;
}

.start-capture {
    padding: 20px 20px;
    font-size: 18px;
    font-weight: bold;
}

.start-capture.for_ios,
#start-measure {
    background-color: rgb(255, 76, 76);
    font-weight: bold;
}

.re-start-capture {
    display: block;
    width: 95%;
    text-align: end;
    font-size: 13px;
    text-decoration: underline;
}

button:hover {
    background: #0056b3;
}

.next-btn,
.back-btn,
#closeGuide {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 100;
    padding: 7px;
}

footer {
    text-align: center;
    margin-top: 20px;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.alert-danger {
    color: red;
}

/* 修正箇所① */
.gide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.6);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.gide {
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: auto;
    background-color: white;
    z-index: 1000;
    display: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

.gide.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


.step-title {
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

/* 修正箇所① */

.step-text-left {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 0 !important;
}

.text-left {
    text-align: left;
}

.mt-4 {
    margin-top: 4px;
}

.font-16 {
    font-size: 16px;
}

.gide-img {
    background-color: #666;
    width: 100%;
    height: 25%;
    min-height: 300px;
    outline: none;
}

.gide-btns {
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 10px;
    justify-content: space-between;
}

/* #step4 .gide-btns {
    justify-content: right;
} */

.start-capture {
    display: block;
}

.for_ios {
    display: none;
}

/* .step2
{
    display: none;
} */

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .content {
        display: flex;
        flex-direction: column;
    }

    .info,
    .form-container {
        width: 100%;
    }

    .logo {
        max-width: 80px;
    }

    .logo2 {
        height: 32px;
    }

    .phone-number {
        font-size: 40px;
    }

    .estimate,
    .subtext,
    .note,
    .phone-note,
    .hours {
        font-size: 18px;
    }

    ul {
        margin-left: 20px;
    }
}

@media (max-width: 430px) {

    /* .form-container {
        width: 100%;
        display: none;
    }
    .start-capture
    {
        display: block;
    }
    .coution_forPc
    {
        display: none;
    } */
    .for_pc {
        display: none;
    }

    .for_ios {
        display: block;
    }
}

@media (max-width: 393px) {
    .form-group.form-check {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .form-check-label {
        margin-left: 10px;
        white-space: normal;
    }
}

.red-line {
    width: 80px;
    height: 3px;
    background-color: red;
    margin: 0 auto;
    /* センターに配置 */
    margin-top: 18px;
    /* h1タグとの間に少しスペースを追加 */
}


/* 撮影画面モーダルのスタイル */
.camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 5px 0 5px;
}

.camera-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.camera-modal-text {
    color: white;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

.guide-text {
    margin: 0;
    padding: 0 10px;
}

video {
    width: 100%;
    height: 100%;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* グリッドはクリックを妨げないように */
}

.grid-overlay::before,
.grid-overlay::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6); /* グリッド線の色 */
    pointer-events: none;
}

/* 垂直方向の線 */
.grid-overlay::before {
    top: 0;
    left: 33.33%;
    width: 1px; /* 線の太さ */
    height: 100%;
}

.grid-overlay::after {
    top: 0;
    left: 66.66%;
    width: 1px; /* 線の太さ */
    height: 100%;
}

/* 水平方向の線 */
.grid-overlay .horizontal-line {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6); /* グリッド線の色 */
    width: 100%;
    height: 1px; /* 線の太さ */
}

.grid-overlay .horizontal-line:nth-child(1) {
    top: 33.33%;
}

.grid-overlay .horizontal-line:nth-child(2) {
    top: 66.66%;
}

/* .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
} */

/* .crop-frame {
    position: absolute;
    border: 3px solid red;
    width: 40%;
    height: auto;
    aspect-ratio: 1.414 / 1;
    pointer-events: auto;
    cursor: move;
}

.crop-frame .handle {
    width: 15px;
    height: 15px;
    border: 2px solid black;
    background-color: white;
    position: absolute;
} */

/* .handle.top-left {
    top: -8px;
    left: -8px;
    cursor: nwse-resize;
}

.handle.top-right {
    top: -8px;
    right: -8px;
    cursor: nesw-resize;
}

.handle.bottom-left {
    bottom: -8px;
    left: -8px;
    cursor: nesw-resize;
} */
/* 
.handle.bottom-right {
    bottom: -8px;
    right: -8px;
    cursor: nwse-resize;
} */

.capture-btn {
    position: relative;
    background-color: #007BFF;
    color: white;
    width: 90%;
    padding: 7px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1002;
}

.capture-cancel-btn {
    position: relative;
    color: white;
    width: 90%;
    margin-top: 8px;
    padding: 7px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1002;
}

.capture-btn:hover {
    background-color: #0056b3;
}



/* 測量モーダルのスタイル */
.survey-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.survey-modal-content {
    background: #fff;
    padding: 15px 0px;
    width: 100%;
    text-align: center;
    position: relative;
    /* 追加 */
}

.fixed-top-left {
    position: absolute;
    top: 13px;
    left: 10px;
}

.retake-btn,
#backFrameBtn {
    width: 60px;
    background: none;
    border: none;
    color: #007BFF;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
}

.survey-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.survey-title {
    width: 95%;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.survey-text-left {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin-left: 15px;
    margin-bottom: 0 !important;
}

.survey-image-wrapper {
    position: relative;
    margin-top: 5px;
}

.tap-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    /* 薄めに表示 */
    pointer-events: none;
    /* クリックを無効化 */
    display: block;
    animation: pulse 1.5s infinite;
    /* アニメーションを追加 */
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.survey-footer {
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 5px;
    justify-content: space-between;
    padding: 0 6px;
}

.survey-btn,
.reset-sidebar-btn {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 100;
    padding: 7px 12px;
    cursor: pointer;
}

.survey-btn:hover {
    background-color: #0056b3;
}

.survey-image-wrapper canvas {
    width: 100%;
    height: auto;
}


.survey-result-caontainer {
    display: none;  /* デフォルトは非表示 */
    width: 100%;
    margin-bottom: 30px;
}

.survey-result-title {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    background-color: gray;
    color: white;
    padding: 5px;
}

.survey-result {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.survey-result-caontainer img {
    width: 90%;
    height: auto;
    margin-top: 10px;
}

.survey-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto 7px;
    text-align: center;
}

.survey-result th,
.survey-result td {
    font-size: 15px;
    border: 1px solid #ddd;
    padding: 5px;
}

.survey-result th {
    background-color: #e7e7e7;
}


.customer-info-container {
    display: none;  /* デフォルトは非表示 */
    width: 100%;
    margin-bottom: 30px;
}


/* 縦向き限定モーダルのスタイル */
.orientation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.orientation-modal.show {
    display: flex;
    opacity: 1;
}

.orientation-modal .red-line {
    margin: 0px auto 15px;
}

.orientation-modal-dialog {
    width: 50%;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.5s ease-in-out;
}

.orientation-modal.show .orientation-modal-dialog {
    transform: scale(1);
}

.orientation-modal-header {
    display: flex;
    justify-content: center;
}

.orientation-modal-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.orientation-modal-body {
    text-align: center;
    margin-bottom: 20px;
}


/* レスポンシブデザイン（PC） */
@media (min-width: 960px) {
    .gide {
        width: 50%;
        padding: 15px 20px;
    }

    .gide img {
        width: 65%;
        margin: 15px auto;

    }

    .step-title {
        font-size: 18px;
    }

    .step-text-left {
        font-size: 15px;
    }
}