/* ATS Form Styles */

:root {
    /* カラーパレット */
    --color-primary: #0066cc;
    --color-primary-dark: #004999;
    --color-primary-light: #3385d6;
    --color-urgent: #ff4444;
    --color-urgent-dark: #cc0000;
    --color-urgent-light: #ff6666;
    --color-warning: #ff9800;
    --color-success: #4caf50;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #1a1a1a;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-dark: rgba(0, 0, 0, 0.2);

    /* タイポグラフィ */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Inter', 'Noto Sans JP', sans-serif;

    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;

    /* ブレークポイント */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* Error Messages */
.error-message {
    color: #cc0000;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    display: none;
    /* Hidden by default, shown via JS */
}

.error-message:not(:empty) {
    display: block;
}

/* Loading Overlay */
.ats-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    /* Match form container radius */
}

.ats-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Spinner */
.ats-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0066cc;
    /* Primary color */
    border-radius: 50%;
    animation: ats-spin 1s linear infinite;
}

@keyframes ats-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Confirmation View Styling */
.ats-confirm .form-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ats-confirm label {
    color: #666;
    font-size: 0.9rem;
}

.ats-confirm .confirm-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    white-space: pre-wrap;
    /* Preserve newlines */
}

.ats-confirm .form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .ats-confirm .form-actions {
        flex-direction: column;
    }

    .ats-confirm .btn {
        width: 100%;
    }
}



@charset "utf-8";

input[type="submit"],
input[type="button"] {
    border-radius: 0;
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
    display: none;
}

input[type="submit"]::focus,
input[type="button"]::focus {
    outline-offset: -2px;
}

/*h1 {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 26px;
  padding: 50px 0;
}*/
.flex {}

.contactForm {
    max-width: 600px;
    margin: 0 auto;
}

.formMenu {
    margin-bottom: 10px;
}

.contactForm.checktrue .formMenu {}

.formTitle {}

.formMenu:nth-child(4) .formTitle {}

.hiddenrow {
    display: none;
}

input,
textarea,
select {
    border: solid 1px #1d2061;
    /*border-radius: 3px;*/
    padding: 0 20px;
    width: 100%;
    font-size: 1.2rem;
}

input,
select {}

textarea {}

.formContent {
    width: calc(100% - 220px);
}

.formContent .chugo {
    display: none;
}

.formContent .innertxt {}

.formContent .innerblock:not(:first-child) {
    margin-top: 10px;
}

/*.formContent > input,*/
.formContent>textarea {
    padding: 13px 20px;
    width: 100%;
}

select#prefecture {
    width: 25%;
    font-size: 14px;
    border: solid 1px;
}

span.must {
    color: #fff;
    background: orange;
    padding: 0px 5px;
    font-size: .9rem;
    margin-left: 10px;
}

.inner {
    padding: 70px 50px;
}

.formMenu>label {
    /* margin: 0 auto; */
    text-align: left;
    width: 220px;
}

.checkbox-input {
    display: none;
}

.checkbox-parts {
    padding-left: 20px;
    position: relative;
    margin-right: 20px;
}

.checkbox-parts::before {
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    left: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 14px;
}

.checkbox-input:checked+.checkbox-parts {
    color: #d01137;
}

.checkbox-input:checked+.checkbox-parts::after {
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 5px;
    width: 7px;
    height: 14px;
    transform: rotate(40deg);
    border-bottom: 3px solid #d01137;
    border-right: 3px solid #d01137;
}

#atsform-send-btn {
    margin-top: 20px;
}

button[type="button"],
button[type="submit"] {
    height: 70px;
    margin: 0 auto;
    display: block;
    background-color: orange;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding: 10px 0;
    border-radius: 4px;
    width: 60%;
    border: solid 1px #0e63af;
}

input[type="submit"].errbtn {
    background-color: #DDDDDD;
    border: solid 1px #BBBBBB;
    color: #282828;
}

.formbtns {
    display: flex;
    justify-content: center;
}

.formbtns>a {
    background-color: #fff;
    color: #0e63af;
    font-weight: bold;
    align-items: center;
    font-size: 1.2rem;
    padding: 10px 0;
    border: solid 1px #0e63af;
    border-radius: 3px;
    line-height: 50px;
}

.formbtns>input[type="submit"],
.formbtns>a {
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 10px;
}

.formbtns>input[type="submit"] {
    width: calc(65% - 40px);
}

form dl {
    display: flex;
    font-size: 14px;
    text-align: left;
    margin: 20px auto;
    max-width: 700px;
}

form dt {
    width: 50%;
    font-weight: bold;
}

form dd {
    width: 50%;
    position: relative;
}

.formCompText.succeed>img,
.formCompText.failed>img {
    width: 20%;
    min-width: 180px;
    margin: 0 auto;
    display: block;
}

.formCompText.failed>img {
    transform: rotate(-90deg);
}

@media all and (-ms-high-contrast: none) {

    *::-ms-backdrop,
    .formCompText.failed>img {
        transform: rotate(0deg);
    }
}

span.errmsg {
    /*position: absolute;*/
    width: 100%;
    left: 5px;
    font-size: 14px;
    bottom: -15px;
    color: orange;
    font-weight: bold;
}

h4 {
    margin-bottom: 40px;
    text-align: center;
}

.formCompText.succeed>img+h4,
.formCompText.failed>img+h4 {
    font-weight: bold;
}

.formCompTextWrap {
    text-align: center;
    color: #282828;
}

.inner>.formCompTextWrap.done p {
    margin: 20px 0;
    line-height: 200%;
    font-size: 13px;
}

.inner>.formCompTextWrap.done .engGothic {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.inner>.formCompTextWrap.done .fontSmall {
    font-size: 13px;
}

input.errform,
select.errform,
textarea.errform {
    border: solid 2px orange;
    background-color: #feebc7;
}


@media screen and (max-width: 450px) {

    /* 料金表ダウンロードフォーム */
    #infoForm h2 p.maintitle {
        font-size: 22px;
    }

    #infoForm h2 p.subtitle {
        font-size: 16px;
    }

    #infoForm h2 p.subtitle:before {
        margin-right: 5px;
    }

    #infoForm h2 p.subtitle:after {
        margin-left: 5px;
    }

    .formMenu,
    .checkfalse dl,
    .checktrue dl {
        flex-direction: column;
    }

    .formMenu.flex>.formTitle,
    .checkfalse dl>dt,
    .checktrue dl>dt {
        width: 100%;
        margin-bottom: 5px;
    }

    .formMenu.flex>.formContent,
    .checkfalse dl>dd,
    .checktrue dl>dt {
        width: 100%;
    }

    .contactForm>input[type="submit"] {
        width: 100%;
    }

    .formbtns {
        flex-direction: column;
    }

    .contactForm.checktrue>.formbtns>input[type="submit"],
    .contactForm.checktrue>.formbtns>a {
        width: 100%;
        /*display: block;*/
        margin: 10px 0;
    }

    .contactForm {
        width: 100% !important;
    }

}

@media screen and (max-width: 385px) {
    .formCompTextWrap p {
        font-size: .9rem;
    }
}

@charset "utf-8";

input[type="submit"],
input[type="button"] {
    border-radius: 0;
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
    display: none;
}

input[type="submit"]::focus,
input[type="button"]::focus {
    outline-offset: -2px;
}

/*h1 {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 26px;
  padding: 50px 0;
}*/
.flex {}

.contactForm {
    max-width: 600px;
    margin: 0 auto;
}

.formMenu {
    margin-bottom: 10px;
}

.contactForm.checktrue .formMenu {}

.formTitle {}

.formMenu:nth-child(4) .formTitle {}

.hiddenrow {
    display: none;
}

input,
textarea,
select {
    border: solid 1px #1d2061;
    /*border-radius: 3px;*/
    /*padding: 0 20px;*/
    width: 100%;
    font-size: 1.2rem;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

input[type="radio"] {
    width: auto;
}

input,
select {}

textarea {}

.formContent {
    width: 100%;
}

.formContent .chugo {
    display: none;
}

.formContent .innertxt {}

.formContent .innerblock:not(:first-child) {
    margin-top: 10px;
}

/*.formContent > input,*/
.formContent>textarea {
    padding: 13px 20px;
    width: 100%;
}

select#prefecture {
    width: 25%;
    font-size: 14px;
    border: solid 1px;
}

span.must {
    color: #fff;
    background: orange;
    padding: 0px 5px;
    font-size: .9rem;
    margin-left: 10px;
}

.inner {
    padding: 70px 50px;
}

.formMenu>label {
    /* margin: 0 auto; */
    text-align: left;
    width: 220px;
}

.checkbox-input {
    display: none;
}

.checkbox-parts {
    padding-left: 20px;
    position: relative;
    margin-right: 20px;
}

.checkbox-parts::before {
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    left: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 14px;
}

.checkbox-input:checked+.checkbox-parts {
    color: #d01137;
}

.checkbox-input:checked+.checkbox-parts::after {
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 5px;
    width: 7px;
    height: 14px;
    transform: rotate(40deg);
    border-bottom: 3px solid #d01137;
    border-right: 3px solid #d01137;
}

input[type="submit"] {
    height: 70px;
    margin: 0 auto;
    display: block;
    background-color: orange;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding: 10px 0;
    border-radius: 4px;
    width: 60%;
    border: solid 1px #0e63af;
}

input[type="submit"].errbtn {
    background-color: #DDDDDD;
    border: solid 1px #BBBBBB;
    color: #282828;
}

.formbtns {
    display: flex;
    justify-content: center;
}

.formbtns>a {
    background-color: #fff;
    color: #0e63af;
    font-weight: bold;
    align-items: center;
    font-size: 1.2rem;
    padding: 10px 0;
    border: solid 1px #0e63af;
    border-radius: 3px;
    line-height: 50px;
}

.formbtns>input[type="submit"],
.formbtns>a {
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 10px;
}

.formbtns>input[type="submit"] {
    width: calc(65% - 40px);
}

form dl {
    display: flex;
    font-size: 14px;
    text-align: left;
    margin: 20px auto;
    max-width: 700px;
}

form dt {
    width: 50%;
    font-weight: bold;
}

form dd {
    width: 50%;
    position: relative;
}

.formCompText.succeed>img,
.formCompText.failed>img {
    width: 20%;
    min-width: 180px;
    margin: 0 auto;
    display: block;
}

.formCompText.failed>img {
    transform: rotate(-90deg);
}

@media all and (-ms-high-contrast: none) {

    *::-ms-backdrop,
    .formCompText.failed>img {
        transform: rotate(0deg);
    }
}

span.errmsg {
    /*position: absolute;*/
    width: 100%;
    left: 5px;
    font-size: 14px;
    bottom: -15px;
    color: orange;
    font-weight: bold;
}

h4 {
    margin-bottom: 40px;
    text-align: center;
}

.formCompText.succeed>img+h4,
.formCompText.failed>img+h4 {
    font-weight: bold;
}

.formCompTextWrap {
    text-align: center;
    color: #282828;
}

.inner>.formCompTextWrap.done p {
    margin: 20px 0;
    line-height: 200%;
    font-size: 13px;
}

.inner>.formCompTextWrap.done .engGothic {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.inner>.formCompTextWrap.done .fontSmall {
    font-size: 13px;
}

input.errform,
select.errform,
textarea.errform {
    border: solid 2px orange;
    background-color: #feebc7;
}


@media screen and (max-width: 450px) {

    /* 料金表ダウンロードフォーム */
    #infoForm h2 p.maintitle {
        font-size: 22px;
    }

    #infoForm h2 p.subtitle {
        font-size: 16px;
    }

    #infoForm h2 p.subtitle:before {
        margin-right: 5px;
    }

    #infoForm h2 p.subtitle:after {
        margin-left: 5px;
    }

    .formMenu,
    .checkfalse dl,
    .checktrue dl {
        flex-direction: column;
    }

    .formMenu.flex>.formTitle,
    .checkfalse dl>dt,
    .checktrue dl>dt {
        width: 100%;
        margin-bottom: 5px;
    }

    .formMenu.flex>.formContent,
    .checkfalse dl>dd,
    .checktrue dl>dt {
        width: 100%;
    }

    .contactForm>input[type="submit"] {
        width: 100%;
    }

    .formbtns {
        flex-direction: column;
    }

    .contactForm.checktrue>.formbtns>input[type="submit"],
    .contactForm.checktrue>.formbtns>a {
        width: 100%;
        /*display: block;*/
        margin: 10px 0;
    }

    .contactForm {
        width: 100% !important;
    }

}

@media screen and (max-width: 385px) {
    .formCompTextWrap p {
        font-size: .9rem;
    }
}