.header_inner .header_lef :is(h1:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h1"])) {
    color: #868daa;
}

.header_item a {
    color: #000;
    text-decoration: none;
}


main {
    margin-top: 200px;
}

header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    position: relative;
}

.breadcrumb {
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 50px;
}

:is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
    margin-bottom: 120px;
}

:is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
    content: "Contact";
    left: 30%;
    transform: translateX(-50%);
}

:is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
    font-size: 40px;
    font-weight: 500;
    font-family: "yu-mincho-pr6n", sans-serif;
}



/* フォーム全体のスタイル */
.wpcf7 {
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    margin-bottom: 150px;
}

/* 各セクションの見出し */
.wpcf7 p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* チェックボックス */
.wpcf7-checkbox {
    margin-bottom: 20px;
    line-height: 0;
}

.wpcf7-checkbox label {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 5px 0;
    cursor: pointer;
}

/* テキストエリア */
.wpcf7 textarea {
    width: 100%;
    height: 190px;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* テキストフィールド */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
    width: 80%;
    height: 70px;
    padding: 10px;
    font-size: 18px;
    margin-bottom: 20px;
    border: solid 1px #838db3;
}

.wpcf7 input::placeholder {
    color: #afaeae;
}

.apply_mail {
    margin-bottom: 30px;
}

/* ボタン */
.wpcf7 input[type="submit"] {
    display: block;
    width: 445px;
    padding: 15px;
    font-size: 16px;
    background-color: #f8cf3f;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 4.405px 5.44px 7.44px 0.56px rgba(79, 84, 122, 0.4);
    margin: 0 auto;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.8;
}

/* 料金プランのスタイル */
.wpcf7-checkbox label span {
    display: inline-block;
    margin-left: 10px;
}

.apply_service2 .pricing-table {
    position: relative;
    margin: 0 auto;
    margin-top: 100px;
  }
  
  .pricing-column {
    flex: 1;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
  }
  
  .pricing-column :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
    background-color: #0073aa;
    color: white;
    text-align: center;
    padding: 10px 0;
    border-radius: 5px 5px 0 0;
  }
  
  .pricing-row {
    display: block;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
  }

  .pricing-row .checkbox-group .wpcf7-form-control-wrap .wpcf7-form-control {
    display: flex;
  }
  
  .pricing-row span {
    font-weight: bold;
  }
  
  .pricing-row div {
    flex: 2;
    display: flex;
    flex-direction: column;
  }
  
  .pricing-row label {
    margin-left: 5px;
  }
  
  .pricing-row p {
    margin: 0;
    font-size: 12px;
    color: #666;
  }


.apply_block {
    display: flex;
    margin-top: 85px;
}

.wpcf7 .apply_txt {
    margin-bottom: 60px;
}


.apply_box {
    position: relative;
}

.apply_box .apply_plan p {
    position: absolute;
    width: 220px;
    height: 47px;
    background-color: #162a70;
    color: #fff;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.apply_box .apply_plan p:after {
    content: "";
    position: absolute;
    bottom: -10px; /* pタグの下部に配置 */
    left: 50%; /* 水平方向の中央に配置 */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent; /* 左側の透明部分 */
    border-right: 15px solid transparent; /* 右側の透明部分 */
    border-top: 15px solid #162a70; /* 下向き三角形の色 */
}

.apply_box .apply_plan_b p:after {
    border-top: 15px solid #165870;
}
.apply_box .apply_plan_c p:after {
    border-top: 15px solid #237016;
}
.apply_box .apply_plan_d p:after {
    border-top: 15px solid #706916;
}



.apply_box .apply_plan_b p {
    background-color: #165870;
}

.apply_box .apply_plan_c p {
    background-color: #237016;
}

.apply_box .apply_plan_d p {
    background-color: #706916;
}



.wpcf7-form-control-wrap .wpcf7-list-item-label {
    font-size: 17px;
    margin-left: 5px;
}

.wpcf7-list-item input {
    width: 20px;
    height: 20px;
}

.apply_plan_a .wpcf7-list-item {
    height: 47px;
}
.apply_plan_b .wpcf7-list-item {
    height: 47px;
}
.apply_plan_c .wpcf7-list-item {
    height: 47px;
}
.apply_plan_d .wpcf7-list-item {
    height: 47px;
}

.pricing-table thead th p {
    position: absolute;
    width: 260px;
    height: 47px;
    background-color: #162a70;
    color: #fff;
    top: -50px;
    left: 48%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
} 

.pricing-table thead th p::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #162a70;
}

.pricing-table .thead1 p {
    background-color: #3b4d87;
}

.pricing-table .thead1 p::after {
    
    border-top: 15px solid #3b4d87;
}

.pricing-table .thead2 p {
    right: -120px;
    left: initial;
}

.pricing-table tbody {
    width: 100%;
}

.apply_td1 {
    width: 250px;
    text-align: center;
}

.apply_td2 {
    width: 290px;
    text-align: center;

}

.apply_td3 {
    width: 290px;
    text-align: center;
}

.apply_td1 p {
    font-size: 24px;
}

.apply_td1 {
    border-right: solid 2px #162a70;
    border-left:  solid 2px #162a70;
    padding: 10px 30px;
    padding-bottom: 0;
}

.apply_service2_body tr:last-child .apply_td1{
    padding-bottom: 10px;
}

.apply_service2_body tr:last-child .apply_td2 {
    padding-bottom: 10px;
}

.apply_service2_body tr:last-child .apply_td3 {
    padding-bottom: 10px;
}

.apply_td1_1 {
    border-top:  solid 2px #162a70;
    padding-top: 30px;
}

.apply_td1_4 {
    border-bottom:  solid 2px #162a70;
}

.apply_td1_1 p,.apply_td1_2 p,.apply_td1_3 p, .apply_td1_5 p {
    border-bottom: solid 2px #c7c7c7;
    padding-bottom: 10px;
}

.pricing-table .apply_service2_body .wpcf7-form-control-wrap .wpcf7-list-item-label {
    font-size: 30px;
    line-height: 1;
}

.apply_service2_body .wpcf7-form-control-wrap input {
    margin-right: 20px;
}

.apply_td2 {
    border-right: solid 2px #162a70;
    padding: 10px 30px;
    padding-bottom: 0;
}

.apply_td2_1 {
    border-top:  solid 2px #162a70;
    padding-top: 30px;
}

.apply_td2_1 .apply_span {
    display: block;
    font-size: 14px;
}

.apply_td2_1 .wpcf7-list-item {
    margin-bottom: 0;
}

.apply_td2_2 .wpcf7-list-item {
    margin-bottom: 0;
}

.apply_td_mb .wpcf7-list-item {
    margin-bottom: 10px;
}

.apply_td2_4 {
    border-bottom:  solid 2px #162a70;
}

.apply_td2_1 p {
    margin-bottom: 0;
}

.apply_td2_1 p,.apply_td2_2 p,.apply_td2_3 p, .apply_td2_5 p {
    border-bottom: solid 2px #c7c7c7;
    padding-bottom: 10px;
}

.apply_td3 {
    border-right: solid 2px #162a70;
    padding: 10px 30px;
    padding-bottom: 0;
}

.apply_td3_1 {
    border-top:  solid 2px #162a70;
    padding-top: 30px;
}

.apply_td3_1 .apply_span {
    display: block;
    font-size: 14px;
}

.apply_td3_4 {
    border-bottom:  solid 2px #162a70;
}

.apply_td3_1 p {
    margin-bottom: 0;
}

.apply_td3_1 p,.apply_td3_2 p,.apply_td3_3 p, .apply_td3_5 p {
    border-bottom: solid 2px #c7c7c7;
    padding-bottom: 10px;
}

.apply_service1, .apply_service2, .apply_service3,
.apply_service4, .apply_service5, .apply_service6 {
    margin-bottom: 80px;
}

.apply_service3 .wpcf7-list-item-label,.apply_service4 .wpcf7-list-item-label {
    font-size: 40px;
    font-weight: 500;
    font-family: "yu-mincho-pr6n", sans-serif;
}

.apply_service5 .apply_service5_box .wpcf7-list-item-label {
    font-size: 40px;
    font-weight: 500;
    font-family: "yu-mincho-pr6n", sans-serif;
}

.apply_service6 .wpcf7-form-control .wpcf7-list-item-label {
    font-size: 40px;
    font-weight: 500;
    font-family: "yu-mincho-pr6n", sans-serif;
}

.apply_service6 .wpcf7-form-control-wrap .wpcf7-list-item input {
    width: 50px;
    height: 50px;
    margin-right: 18px;
}

.apply_service6 .placeholder-date-1,.apply_service6 .placeholder-date-2,.apply_service6 .placeholder-date-3 {
    width: 300px;
    height: 40px;
}

.wpcf7 .apply_service6_txt {
    margin-bottom: 30px;
}

.apply_service3 .wpcf7-list-item input {
    width: 50px;
    height: 50px;
    margin-right: 18px;
}

.apply_service6_label {
    margin-bottom: 10px;
}

.apply_service4 .wpcf7-list-item input {
    width: 50px;
    height: 50px;
    margin-right: 18px;
}


.wpcf7-list-item {
    display: flex;
    margin-left: 0;
    font-size: 20px;
}

.apply_service5_box .wpcf7-list-item input {
    width: 50px;
    height: 50px;
    margin-right: 18px;
}

.apply_service3_price,.apply_service4_price {
    margin-left: 20px;
}

.wpcf7 .apply_service5_txt {
    margin-top: 40px;
    margin-bottom: 30px;
}

.pricing-row .apply_service5_one {
    display: flex;
    font-size: 16px;
    margin-left: 30px;
}

.pricing_all {
    margin-left: 30px;
}

.apply_td3_1 .apply_span.sp {
    display: none;
}

.apply_service1 .sp {
    display: none;
}

/* 過去問添削セクション：金額なしバージョンの調整 */
.pricing_wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.horizontal_checkboxes span.wpcf7-list-item {
    display: inline-block;
    margin: 0 15px 10px 0;
    min-width: 80px; /* 金額がない分、幅をコンパクトに設定 */
}

.horizontal_checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #1a2a3a; /* テキストカラーをメインのネイビーに統一 */
}

.apply_card {
    margin-top: 3rem;
}

.apply_user_info {
    margin-top: 3rem;
}

.input_row p span {
    font-size: 10px;
    color: #fff;
    background-color: ;
}

.wpcf7 .column_label {
    font-size: 16px;
    margin-bottom: 0;
}

/* スマホでは3列程度で並ぶように調整 */
@media (max-width: 480px) {
    .horizontal_checkboxes span.wpcf7-list-item {
        width: 30%;
        min-width: auto;
        margin-right: 3%;
        margin-bottom: 0;
    }
    .wpcf7 p {
        font-size: 14px;
    }
}

@media screen and (max-width: 1000px) {
    main {
        margin-top: 42.5vw;
    }
    .breadcrumb {
        padding-left: 4vw;
        font-size: 3.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
        margin-bottom: 22.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
        left: 50%;
        bottom: 6.25vw;
        font-size: 27.5vw;
    }
    :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
        font-size: 5vw;
    }
    .wpcf7 .apply_txt {
        font-size: 3.5vw;
    }
    .apply_service1 p {
        font-size: 3.5vw;
    }
    .apply_block {
        display: block;
        justify-content: center;
    }
    .apply_box img {
        display: block;
        margin: 0 auto;
    }
    .apply_td1 {
        padding: 0px 1.25vw;
    }
    .apply_td1 p {
        font-size: 3.5vw;
    }
    .wpcf7-form-control-wrap .wpcf7-list-item-label {
        font-size: 3.8vw;
    }
    .apply_td2 {
        padding: 0 0.75vw;
    }
    .wpcf7-list-item {
        margin-left: 0;
    }
    .apply_td2_1 .apply_span {
        font-size: 2.75vw;
    }.apply_td3_1 .apply_span {
        font-size: 2.75vw;
    }
    .apply_td3 {
        padding: 0px 0.75vw;
    }
    .apply_service2 .pricing-table .wpcf7-list-item-label {
        font-size: 4.5vw;
    }
    .pricing-table thead th p {
        font-size: 4vw;
    }
    .pricing-table thead th p {
        width: 31vw;
        left: 39%;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }.pricing-table .thead2 p {
        right: -13.25vw;
    }
    .apply_service3 .wpcf7-list-item-label, .apply_service4 .wpcf7-list-item-label {
        font-size: 4.3vw;
    }
    .apply_service3 .wpcf7-list-item input {
        width: 7vw;
        height: 7vw;
        margin-right: 1.25vw;
    }
    .apply_service4 .wpcf7-list-item input {
        width: 7vw;
        height: 7vw;
        margin-right: 1.25vw;
    }
    .apply_service5 .apply_service5_box .wpcf7-list-item-label {
        font-size: 5vw;
    }
    .apply_service5_box .wpcf7-list-item input {
        width: 7vw;
        height: 7vw;
        margin-right: 1.25vw;
    }
    .apply_service2 p {
        font-size: 3.5vw;
    }
    .apply_service3 p {
        font-size: 3.5vw;
    }
    .apply_service4 p {
        font-size: 3.5vw;
    }
    .apply_service5 p {
        font-size: 3.5vw;
    }
    .apply_service5 .wpcf7-list-item-label {
        font-size: 3.5vw;
    }
    .wpcf7 form {
        width: 85%;
        margin:  0 auto;
    }
    .apply_box img {
        width: 80%;
    }
    .apply_service1 .wpcf7-list-item {
        justify-content: center;
    }
    .apply_box .apply_plan p {
        width: 60vw;
    }
    .apply_box {
        margin-bottom: 10vw;
    }
    .wpcf7 input[type="submit"] {
        width: 100%;
    }
    .wpcf7 input[type="text"], .wpcf7 input[type="email"] {
        width: 100%;
    }
    .apply_service6 .wpcf7-form-control-wrap .wpcf7-list-item input {
        width: 7vw;
        height: 7vw;
        margin-right: 1.25vw;
    }
    .apply_service6 .wpcf7-form-control .wpcf7-list-item-label {
        font-size: 5vw;
    }
    .pricing-row .checkbox-group .wpcf7-form-control-wrap .wpcf7-form-control {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 1.25vw;
    }
    .pricing-row .checkbox-group .wpcf7-form-control-wrap .wpcf7-form-control span {
        margin-right: 1.25vw;
    }
    .pricing-row .apply_service5_one {
        margin-left: 0;
    }
    .pricing_all {
        margin-left: 0;
    }
    .wpcf7 .apply_service6_txt {
        font-size: 3.5vw;
    }
    .apply_service6_label {
        font-size: 3.5vw;
    }
    .pricing-table .apply_service2_body .wpcf7-form-control-wrap .wpcf7-list-item-label {
        font-size: 4.5vw;
    }
    .apply_td2 {
        width: 60.75vw;
    }
    .apply_service2_body .wpcf7-form-control-wrap input {
        margin-right: 1.25vw;
    }
    .apply_td3_1 .apply_span.sp {
        display: block;
    }
    .apply_td3_1 .apply_span.pc {
        display: none;
    }
    .apply_service2_body p {
        padding: 2.75vw 0;
    }
    .apply_service2_body .wpcf7-list-item {
        justify-content: space-around;
    }
    .apply_td3 {
        width: 60.5vw;
    }
    .apply_service1 .sp {
        display: block;
    }
    .apply_service1 .apply_tit_box {
        display: flex;
        align-items: center;
    }
    .apply_service2 .apply_tit_box {
        display: flex;
        align-items: center;
    }
    .apply_tit_box p {
        margin-right: 10px;
        margin-bottom: 15px;
        line-height: 1;
    }
    .hidden {
        display: none;
    }
    .apply_service1 .apply_tit_box input {
        width: 7vw;
        height: 7vw;
    }
    .apply_service2 .apply_tit_box input {
        width: 7vw;
        height: 7vw;
    }
    .apply_td1_1 {
        padding-top: 15px;
    }
}