@charset "utf-8";
/*
Theme Name: expo_2
Theme URI:
Template:
Description:
Author:
Tags:
Version:
*/

.sub_content .main-title{
    font-size:32px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5em;
}

/*ContactForm7カスタマイズ*/
.contact_content {
    position: relative;
    max-width: 960px;
    padding: 20px 45px 35px;
    margin: 60px auto 0px;
    background-color: #fff;
    border-radius: 10px;
    color: #000;
    font-size: 18px;
}

table.contact_table {
    border-spacing: 0 15px;
    width: 100%;
    border-collapse: inherit;
}

table.contact_table th {
    width: 30%;
}

table.contact_table th .required {
    font-size: 12px;
    display: inline-block;
    background-color: #de0000;
    padding: 1px 4px;
    color: #fff;
    border-radius: 5px;
    margin-left: 1em;
    position: relative;
    top: -3px;
}

table.contact_table tr {
    text-align: left;
    vertical-align: top;
}

table.contact_table .mar15 th,
table.contact_table .mar15 td {
    padding-bottom: 15px;
}

.single .entry-content table.contact_table,
.page .entry-content table.contact_table {
    display: table;
}

.contact_table input[type='text'],
.contact_table input[type='email'],
.contact_table input[type='tel'],
.contact_table textarea {
    max-width: none !important;
    box-sizing: border-box;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #707070;
    padding: 6px 20px;
}

::placeholder {
    font-size: 14px;
    line-height: 1.6;
}

::-webkit-input-placeholder {
    font-size: 14px;
    line-height: 1.6;
}

:-moz-placeholder {
    font-size: 14px;
    line-height: 1.6;
}

/*.contact_content input[type="checkbox"],.contact_content input[type="radio"]{
  position: relative;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  outline: 0;
}*/

.contact_content input[type='checkbox'],
.contact_content input[type='radio'] {
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
}

.contact_content input[type='checkbox'] + span {
    position: relative;
    padding-left: 27px;
}

.contact_content .wpcf7-list-item.first {
    display: inline-block;
    margin: 0;
}

.contact_content .wpcf7-list-item {
    display: inline-block;
    margin: 0 0 0 1em;
}

.contact_content input[type='checkbox'] + span::before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    content: '';
    width: 20px;
    height: 20px;
    border: 1px solid #707070;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.contact_content input[type='checkbox']:checked + span::before {
    background-image: url('../img/check.svg');
    background-repeat: no-repeat;
}

.contact_content input[type='checkbox']:focus + span::before {
    border-color: #0080c9;
}

.contact_table .CF7_checkbox input[type='checkbox'] + span::before {
    top: -1px;
}

.contact_table .doui-check input[type='checkbox'] + span::before {
    top: 2px;
}

.contact_content input[type='radio'] + span {
    position: relative;
    padding-left: 30px;
}

.contact_content input[type='radio'] + span::before {
    position: absolute;
    top: -1px;
    left: 0;
    display: inline-block;
    content: '';
    width: 15px;
    height: 15px;
    border: 1px solid #707070;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.contact_content input[type='radio']:checked + span::before {
    background-image: url('../img/radio.svg');
    background-repeat: no-repeat;
}

.contact_table select {
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #707070;
    padding: 6px 14px;
    background-color: #fff;
}

.contact_table .CF7_checkbox label,
.contact_table .CF7_radio label {
    white-space: nowrap;
    margin-right: 20px;
    line-height: 2.5;
}

.contact_table .CF7_checkbox .wpcf7-free-text {
    margin-top: 15px;
}

.contact_table ::placeholder {
    color: #797979;
}

.contact_table th p{
    position: relative;
    display: inline-block;
}

.select_wrap p{
    width: 140px;
    position: relative;
    display: block;
}

/* セレクトボックスのデフォルトのスタイルをリセット */
.wpcf7 select {
    appearance: none; /* Chrome, Safari, Edge */
    -moz-appearance: none; /* Firefox */
    -webkit-appearance: none; /* Safari */
    background: transparent; /* 背景を透明にする */
    border: 1px solid #707070; /* 境界線のスタイル */
    padding: 7px 18px; /* 内側の余白 */
    font-size: 16px; /* フォントサイズ */
    cursor: pointer; /* カーソルのスタイル */
    width: 100%;
}

/* 矢印アイコンの追加 */
.select_wrap p:before {
    content: '';
    position: absolute;
    top: 45%;
    right: 20px;
    transform: translateY(-50%) rotate(135deg);
    width: 9px;
    height: 9px;
    border-top: 1px solid #707070;
    border-right: 1px solid #707070;
}

.CF7_Required{
    position: absolute;
    background-color: #DE0000;
    color: #FFF;
    font-size: 12px;
    display: inline-block;
    right: -4em;
    top: 2px;
    margin: auto;
    padding: 4px;
    border-radius: 3px;
    height: 1.7em;
    line-height: 1.1em;
}

.CF7_red {
    font-size: 14px;
    color: #de0000;
    margin-top: 5px;
    line-height: 1.3;
}

.tyusyaku-red {
    color: #de0000;
}

.CF7_black {
    font-size: 10px;
    color: #000000;
    margin-top: 5px;
    line-height: 1.3;
}

/* タイトル列 */
.contact_table th {
    width: 30%;
    padding-right: 20px;
    padding-bottom: 50px;
}

.contact_content .doui-check {
    width: 74%;
    padding-left: 20px;
    margin-left: auto;
    margin-bottom: 20px;
}

.doui-check input[type='checkbox'] {
    float: left;
    margin-top: 3px;
}

.doui-check .wpcf7-list-item-label {
    display: block;
}

.doui-check .wpcf7-list-item-label a {
    color: #0a31b4;
    font-weight: bold;
    border-bottom: 1px solid #0a31b4;
}

.contact_content .CF7_btn {
    text-align: center;
    margin-top: 50px;
}

.contact_content input[type='submit'] {
    width: 54%;
    font-size: 28px;
    color: #fff;
    display: inline-block;
    padding: 10px 0;
    text-align: center;
    background-color: #009389;
    border: 1px solid #009389;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    font-weight: bold;
}

/*エラーメッセージ非表示化*/
.wpcf7-not-valid-tip {
    display: none!important;
    color: #dc0000!important;
}

.wpcf7-spinner{
    display: none!important;
}

/*--hover--*/

.contact_content input[type='submit']:hover {
    opacity: 0.6;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .sub_content .main-title{
        font-size:24px;
        line-height: 1.2em;
    }

    .wpcf7-form-control {
        width: 100%; /* モバイル画面でも100%幅に収める */
    }

    .wpcf7-list-item {
        display: block;
    }

    .wpcf7 select {
        padding: 7px 9px; /* 内側の余白 */
    }

    .contact_content {
        width: auto;
        max-width: none;
        /*  padding: 30px 25px 35px;*/
        padding: 30px 10px 35px;
        margin: 30px auto 0px;
    }

    table.contact_table {
        width: 100%;
        border-spacing: 0;
    }

    .contact_table tr,
    .contact_table td,
    .contact_table th {
        display: block;
        width: auto;
    }

    .contact_table th {
        padding-right: 0;
        padding-bottom: 10px;
    }

    .contact_table td {
        padding-bottom: 30px;
    }

    table.contact_table th {
        width: auto;
    }

    table.contact_table .mar15 td {
        padding-bottom: 30px;
    }

    .contact_content .doui-check {
        width: auto;
        padding-left: 0;
    }

    .contact_content .doui-check .wpcf7-list-item{
        margin: 0;
    }

    .contact_content input[type='submit'] {
        font-size: 14px;
        width: 80%;
    }

    .contact_table input[type='text'],
    .contact_table input[type='email'],
    .contact_table input[type='tel'],
    .contact_table textarea {
        width: 100%;
        padding: 6px 10px;
    }

    .contact_content input[type='checkbox'] + span {
        white-space: normal;
    }

    .CF7_red {
        font-size: 10px;
    }

    .tyusyaku-red {
        font-size: 14px;
    }

    ::placeholder {
        font-size: 12px;
        line-height: 1.6;
    }

    ::-webkit-input-placeholder {
        font-size: 12px;
        line-height: 1.6;
    }

    :-moz-placeholder {
        font-size: 12px;
        line-height: 1.6;
    }
}

.wpcf7-spinner {
    width: 0;
    margin: 0;
}
