/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #171A1F;
    background-color: #FFFFFF;
}

.tb-br {
    display: none;
}

@media(max-width: 959px) {
    .tb-br {
        display: block;
    }
}


/* ヘッダーセクション */
.hero-section-wrapper {
    position: relative;
    background: #0095FF;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 1300px;
    padding: 0 50px;
    margin: 0 auto;
    padding: 44.5px 50px 53.5px;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #0095FF;
    line-height: 1.4;
    max-width: 1300px;
    padding: 125.5px 50px 25px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 50px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 29.5px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-subtitle--sm {
    font-size: 32px;
    font-weight: 500;
    display: block;
}

.hero-description {
    font-size: 24px;
    font-weight: 400;
    color: #19191F;
    line-height: 1.45;
}

.hero-images {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 539px;
    height: auto;
}

.banner-image {
    width: 100%;
    height: 100%;
}

.banner-left {
    margin-right: -67px;
    z-index: 1;
}

.banner-right {
    z-index: 0;
}

@media(min-width: 1921px) {
    .hero-images {
        right: 24%;
    }
}

@media(max-width: 1279px) {
    .hero-images {
        width: 40%;
        right: 2%;
    }

    .hero-title {
        padding: 7vw 50px 25px;
    }
}

@media(max-width: 959px) {
    .hero-images {
        position: relative;
        top: initial;
        right: initial;
        transform: initial;
        margin: -22vw 4% -28vw auto;
        width: 62%;
        max-width: 420px;
    }
    .hero-section-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-content {
        margin: 0;
        width: 100%;
        padding: 4vw 20px 14vw;
    }
    .hero-title {
        font-size: clamp(32px, 3.75vw, 40px);
        padding: 24px 20px 12px;
    }
    .hero-subtitle {
        font-size: clamp(34px, 9vw, 50px);
        margin-bottom: 12px;
    }
    .hero-subtitle--sm {
        font-size: clamp(25px, 6.66vw, 32px);
    }
    .hero-description {
        font-size: clamp(15px, 4.25vw, 24px);
        margin-top: 28px;
    }
}

@media(max-width: 850px) {
    .hero-images {
        margin: -9vw 4% -28vw auto;
    }
}



/* メインコンテンツセクション */
.main-content {
    background-color: #FAFAFB;
    padding: 280.5px 0 0;
}

.ly-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

.content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    gap: 65px;
    align-items: flex-start;
}

.left-content {
    flex: 1;
}

.main-heading {
    font-size: 40px;
    font-weight: 700;
    color: #171A1F;
    line-height: 1.325;
    margin-bottom: 60px;
    text-align: center;
}

.case-studies {
    display: flex;
    gap: 32px;
}

.case-study {
    text-align: center;
}

.case-image {
    width: 225px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.case-label {
    font-size: 16px;
    font-weight: 700;
    color: #171A1F;
    line-height: 3.31;
}

.right-content {
    flex: 1;
}

.description-text {
    font-size: 18px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.56;
    text-align: justify;
}

.main-image {
    width: 48%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media(max-width: 1279px) {
    .main-content {
        padding: 180.5px 0 0;
    }
    .main-heading {
        font-size: clamp(36px, 3.75vw, 40px);
    }
    .case-image {
        width: 80%;
        max-width: 350px;
    }
    .case-label {
        line-height: 1;
    }

    .content-wrapper {
        flex-direction: column-reverse;
        padding-top: 16px;
    }
    .content-wrapper .left-content {
        margin: 0 auto;
    }
}

@media(max-width: 959px) {
    .main-content {
        padding: 37vw 0 0;
    }
    .content-wrapper {
        padding: 0;
        gap: 38px;
        max-width: 500px;
    }

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

    .ly-inner {
        padding: 0 20px;
    }

    .main-heading {
        font-size: clamp(24px, 4.25vw, 40px);
        margin-bottom: 5vw;
    }

    .case-studies {
        flex-direction: column;
        gap: 40px;
    }
}

/* 特徴セクション */
.features-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 50px 145px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    margin-bottom: 10px;
}

.feature-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10.35px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
}

.feature-text {
    font-size: 20.7px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.5;
}

@media(max-width: 1279px) {
    .feature-text {
        font-size: clamp(16px, 1.67vw, 20.7px);
    }
    .features-section {
        padding: 80px 50px 100px;
    }
}

@media(max-width: 959px) {
    .features-section {
        padding: 60px 0 50px;
        flex-direction: column;
    }
    .main-image {
        width: 100%;
        max-width: 500px;
    }
    .features-wrapper {
        margin-top: 0;
        margin-bottom: 50px;
    }
    .feature-text {
        font-size: clamp(14px, 3.73vw, 16px);
    }
}

/* お問い合わせフォームセクション */
.contact-section {
    background-color: #FFFFFF;
    padding: 139px 0 158px;
    box-shadow: 0px 3px 6px 0px rgba(18, 15, 40, 0.12);
}

.contact-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 300px;
}

.contact-title {
    font-size: 36px;
    font-weight: 500;
    color: #171A1F;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 16px;
    font-weight: 400;
    color: #565D6D;
    line-height: 1.5;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: #323743;
    line-height: 1.67;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 13.5px 12px;
    border: 1px solid #DEE1E6;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.57;
    background-color: #FFFFFF;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(23, 26, 31, 0.7);
}

.form-textarea {
    height: 138px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.57;
}

/* 資料送付希望チェックボックスのスタイル（規約チェックボックスと同じ） */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact Form 7のチェックボックスを非表示にしてカスタムスタイルを適用 */
.form-checkbox input[type="checkbox"] {
    display: none;
}

/* カスタムチェックボックスのスタイル（規約チェックボックスと同じ） */
.form-checkbox .wpcf7-list-item {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0; /* クリック範囲をさらに広げる */
    margin: -4px 0; /* 上下のマージンを調整 */
}

/* ラベル全体をクリック可能にする */
.form-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    margin: -4px 0; /* 上下のマージンを調整 */
    position: relative;
    z-index: 10; /* クリック可能な要素を前面に配置 */
}





/* チェック時のスタイル（label内のinputに対応） */
.form-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    background-color: #000;
    border-color: #000;
}

.form-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    opacity: 1;
}

.form-checkbox:has(input[type="checkbox"]:checked) .wpcf7-list-item-label::before {
    background-color: #000;
    border-color: #000;
}

.form-checkbox:has(input[type="checkbox"]:checked) .wpcf7-list-item-label::after {
    opacity: 1;
}

.form-checkbox .wpcf7-list-item-label {
    font-size: 14px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.57;
    cursor: pointer;
    flex: 1; /* 残りのスペースを使用 */
    padding: 4px 0; /* クリック範囲を広げる */
    position: relative;
    z-index: 8; /* テキストラベルも前面に配置 */
}

/* wpcf7-list-item-labelにカスタムチェックボックスを追加 */
.form-checkbox .wpcf7-list-item-label::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    background-color: #fff;
    border-radius: 2px;
    position: relative;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    margin-right: 8px;
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 5;
}

.form-checkbox .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 7px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    top: 43%;
    left: 15px;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 6;
    pointer-events: auto;
    cursor: pointer;
}

/* 規約チェックボックスのスタイル（現在のHTML構造に対応） */
.form__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.form__item-head {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.form__item-head label {
    font-size: 14px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.57;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.form__item-body {
    flex: 1;
    box-sizing: border-box;
}

.form__checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    margin: -4px 0;
    gap: 8px;
}

/* Contact Form 7のacceptanceチェックボックスを非表示 */
.form__checkbox-wrap input[type="checkbox"] {
    display: none;
}

/* カスタムチェックボックスのスタイル */
.form__checkbox-wrap .custom-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    background-color: #fff;
    border-radius: 2px;
    position: relative;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
}

/* チェックマークのスタイル */
.form__checkbox-wrap .custom-checkbox::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 7px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* チェック時のスタイル（Contact Form 7のacceptanceフィールド対応） */
.form__checkbox-wrap input[type="checkbox"]:checked ~ .custom-checkbox {
    background-color: #000;
    border-color: #000;
}

.form__checkbox-wrap input[type="checkbox"]:checked ~ .custom-checkbox::after {
    opacity: 1;
}

/* より確実なセレクタ（Contact Form 7のacceptanceフィールド対応） */
.form__checkbox-wrap:has(input[type="checkbox"]:checked) .custom-checkbox {
    background-color: #000;
    border-color: #000;
}

.form__checkbox-wrap:has(input[type="checkbox"]:checked) .custom-checkbox::after {
    opacity: 1;
}

/* Contact Form 7のacceptanceフィールドの特別な対応 */
.wpcf7-acceptance input[type="checkbox"]:checked ~ .custom-checkbox {
    background-color: #000;
    border-color: #000;
}

.wpcf7-acceptance input[type="checkbox"]:checked ~ .custom-checkbox::after {
    opacity: 1;
}

.wpcf7-acceptance:has(input[type="checkbox"]:checked) .custom-checkbox {
    background-color: #000;
    border-color: #000;
}

.wpcf7-acceptance:has(input[type="checkbox"]:checked) .custom-checkbox::after {
    opacity: 1;
}

/* 規約チェックボックスのラッパー */
.terms-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.terms-checkbox-wrapper .form__checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: -4px 0;
    gap: 8px;
}

.terms-checkbox-wrapper .terms-label {
    font-size: 14px;
    font-weight: 400;
    color: #171A1F;
    line-height: 1.57;
    cursor: pointer;
    flex: 1;
    padding: 4px 0;
}


.submit-button {
    width: 100%;
    height: 40px;
    text-align: center;
    background-color: #007BFF;
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.57;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.submit-button:hover {
    background-color: #0056CC;
}

@media(max-width: 1279px) {
    .contact-wrapper {
        padding: 0 50px;
        max-width: 900px;
    }
}

@media(max-width: 959px) {
    .contact-wrapper {
        padding: 0 20px;
    }
    .contact-section {
        padding: 70px 0 60px;
    }
    .contact-title {
        font-size: 20px;
    }
}




/* フォーム項目のヘッダー（ラベル部分） */
.form__item-head {
    font-weight: 400;
    width: 25%;
    padding-right: 10px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

/* フォーム項目の内容部分（インプットやチェックボックス） */
.form__item-body {
    width: 100%;
    box-sizing: border-box;
}

/* テキストインプット、セレクト、テキストエリア */
.form__item-body input,
.form__select-wrap select,
.form__item-body textarea {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form__item-body textarea {
    height: auto;
    min-height: 100px;
}

/* チェックボックスのスタイル */
.form__checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* チェックボックス（非表示） */
.form__checkbox-wrap input[type="checkbox"] {
    display: none;
}

/* チェックボックスのカスタムスタイル */
.form__checkbox-wrap .custom-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    background-color: #fff;
    border-radius: 2px;
    position: relative;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* チェックマークのスタイル */
.form__checkbox-wrap .custom-checkbox::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 7px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* チェック時のスタイル */
.form__checkbox-wrap input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #000;
    border-color: #000;
}

.form__checkbox-wrap input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

.form__checkbox-wrap span.wpcf7-list-item {
    margin: 0;
}
.form__checkbox-wrap:has(input[type="checkbox"]:checked) .custom-checkbox {
    background-color: #000;
    border-color: #000;
}

.form__checkbox-wrap:has(input[type="checkbox"]:checked) .custom-checkbox::after {
    opacity: 1;
}

/* プライバシーポリシーの説明テキスト */
.privacy-text {
    margin-top: 10px;
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.privacy-text a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.privacy-text a:hover {
    color: #0056b3;
}

.submit-btn__wrap {
    text-align: center;
    margin-top: 50px;
}

.submit-btn__wrap input {
    display: inline-block;
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
    background-color: #71C3AB;
    border-color: transparent;
    width: 40% !important;
    color: #fff;
    font-weight: 500;
}

.parsley-required,
.parsley-pattern {
    color: #FF0000;
    list-style: none;
}

.required-txt {
    color: #FF0000;
}


@media(max-width: 959px) {
    .form__item {
        display: block;
    }

    .form__item-head,
    .form__item-body {
        width: 100%;
    }

    .submit-btn__wrap input {
        font-size: 80%;
        font-size: 16px;
    }

    .contact-lv2-heading {
        font-size: 20px;
        margin: 0 auto 30px;
    }
}

.wpcf7-display-none {
    display: none;
}
.screen-reader-response {
    display: none;
}
span.wpcf7-not-valid-tip {
    color: #f00;
    font-size: 13px;
    font-weight: normal;
    display: block;
    margin-top: 5px;
    padding-left: 10px;
}
div.wpcf7-response-output {
    font-size: 13px;
    margin: 2em 0.5em 1em;
    padding: 0.4em 1em;
    color: #f00;
    text-align: center;
    font-weight: 500;
    /* border: 2px solid #ff0000; */
}
div.wpcf7-validation-errors, 
div.wpcf7-acceptance-missing {
    border: 2px solid #f7e700;
}
div.wpcf7-mail-sent-ok {
    border: 2px solid #71C3AB;
}



/* 2025/08/29追記 */
.consulting21-11 .hidden-fields-container {
    border: none;
}


.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required
.wpcf7-response-output {
    margin-top: 30px;
    text-align: center;
    font-weight: 500;
    color: #f00;
}