/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/
form {
    margin: 30px 0 0;
}
input,textarea {
    font-size: 16px !important;
}
input {
    font-family: a-otf-ryumin-pr6n, serif;
    -webkit-appearance: none !important;
    border-radius: 0;
}
::-webkit-input-placeholder {
    color: #ddd;
}
::-moz-placeholder {
    color: #ddd;
}
:-ms-input-placeholder {
    color: #ddd;
}
::-ms-input-placeholder {
    color: #ddd;
}
::placeholder {
    color: #ddd;
}

/*input[type="radio"] {
    position: absolute;
    opacity: 0;
}
input[type="radio"] {
    display: none;
}*/
input[type="text"] {
    height: 40px;
    width: 390px;
    border: 0;
    padding: 0 10px;
}
button {
    font-family: serif;
    border: 0;
}
textarea {
    padding: 10px;
    font-family: serif;
}
.contact_page_header {
    position: relative;
    margin:0 0 60px;
}
.contact_page_header h3 {
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
    text-align: center;
    color: #fff;
}
.contact_page_header .category {
    font-size: 13px;
    letter-spacing: 0.25em;
}
.inquiry {
    width: 100%;
}
.inquiry tr {
    display: block;
    margin: 0 0 20px;
}
.inquiry th {
    text-align: left;
    padding-right: 5px;
    width: 260px;
}
.inquiry th span:last-child {
    display: block;
    margin: 0;
}
.conf {
    width: 100%;
}
.conf tbody{
    border-top: 1px solid #eee;
}
.conf tr {
    display: block;
    margin: 0;
    border-bottom: 1px solid #eee;
    padding: 20px;
}
.conf th {
    text-align: left;
    padding-right: 5px;
    width: 180px;
}
.conf th span:last-child {
    display: block;
    margin: 0;
}

.form_back_btn{
    background: #eee;
    border: 0;
    color: #000;
}



.g-recaptcha > div {
    margin: auto;
}

.radio_btn {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 5px 45px;
    position: relative;
    width: auto;
}
.radio_btn::before {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    content: "";
    display: block;
    height: 30px;
    left: 0;
    margin-top: -15px;
    position: absolute;
    top: 50%;
    width: 30px;
}
.radio_btn::after {
    background: #4a90e2;
    border-radius: 50%;
    content: "";
    display: block;
    height: 18px;
    left: 7px;
    margin-top: 0;
    opacity: 0;
    position: absolute;
    top: 27%;
    width: 18px;
}
input[type="radio"]:checked + .radio_btn::before {
    border-color: #666;
}
input[type="radio"]:checked + .radio_btn::after {
    opacity: 1;
}
.inquiry td .flex {
    display: flex;
    margin: 20px 0;
    align-items: center;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
    display: block;
    width: 100%;
    padding: 20px;
    margin: 30px 0 60px;
    background: #999383;
    color: #fff;
    border: 0;
    font-size: 16px;
}
button.submitBtn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}
.product_contact_wrap {
    width: 60%;
    position: relative;
    margin: 0 auto 60px;
    max-width: 800px;
}
.product_contact_wrap .title h1 {
    margin: 0;
}
.product_contact_wrap .title h1 + div {
    margin: 0 0 20px;
}

.shop_contact_tab_btn {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
}
.shop_contact_tab_btn a {
    display: block;
    border: 1px solid #222;
    width: 100%;
    margin-right: 2%;
    padding: 20px 0;
    text-align: center;
}
.shop_contact_tab_btn a:last-of-type {
    margin-right: 0;
}
.shop_contact_tab_btn a.add {
    border: 0;
    background: #65593d;
    color: #fff;
}
.shop_contact_tab_btn a span:first-child {
    display: block;
    margin: 0 0 10px;
}

.error_messe {
    text-align: left;
    margin: 0 0 30px;
    padding: 0;
}
.contact h4{
    margin: 0 0 30px;
}
    input[type="text"],
    textarea {
        border: 1px solid #000;
    }

@media screen and (max-width: 767px) {
    .contact_page_header {
        position: relative;
        margin:0;
    }
    .contact_page_header h3 {
        text-align: center;
        width: 100%;
    }
    .contact_page_header img {
        height: 140px;
        object-fit: cover;
    }
    .product_contact_wrap{
        width: 90%;
    }
    .radio_btn::after {
        top: 27%;
    }
    .inquiry tr {
        display: block;
        margin: 0 0 40px;
    }
    .inquiry td .flex {
        display: flex;
        margin: 10px 0 20px;
        align-items: center;
    }
    input[type="text"],
    textarea {
        width: 100%;
        padding: 5px 12px;
        font-size: 110%;
        display: block;
    }
    .shop_contact_tab_btn {
        display: flex;
        flex-flow: column;
    }
    .shop_contact_tab_btn a {
        margin-bottom: 5%;
    }
    .shop_contact_tab_btn a:first-of-type {
        margin-right: 0;
    }
    .shop_contact_tab_btn a:last-of-type {
        margin-right: 0;
    }
    .inquiry th,
    .inquiry td {
        display: block;
        border-top: none;
        box-sizing: border-box;
        margin: 0 0 10px;
    }
    .inquiry th{
        width: 100%;
    }
    .conf td{
        display: block;
        word-break: break-all;
    }
    .conf th{
        width: 100%;
    }


    input[type="submit"],
    input[type="button"] {
        width: 100%;
        background: #fff;
        padding: 20px 0;
    }
    /* iOSでのデフォルトスタイルをリセット */
    input[type="submit"],
    input[type="button"] {
        border-radius: 0;
        -webkit-box-sizing: content-box;
        -webkit-appearance: button;
        -moz-appearance: button;
        appearance: button;
        border: none;
        -webkit-box-sizing: border-box;
        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;
    }
    #formbtn {
        margin: 30px 0 0;
        padding: 25px 0;
    }
    .recaptcha-submit {
        width: 100%;
        justify-content: center;
    }
}



/* チェックボックス全体のスタイル */
.agreement {
    margin: 20px 0;
    display: flex;
    align-items: center;
    padding: 30px;
    background: #eee;
    justify-content: center;
    flex-direction: column;
}

.agreement div:first-child{
    margin: 0 0 20px;
}
.agreement div:first-child a{
    display: inline-block;
    color: #999383;
    text-decoration: underline;
}

/* チェックボックス自体のスタイル */
.agreement input[type="checkbox"] {
    appearance: none; /* ブラウザデフォルトのスタイルを削除 */
    width: 30px;
    height: 30px;
    border: 2px solid #ccc;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}


/* チェックされたときのスタイル */
.agreement input[type="checkbox"]:checked {
    background-color: #999383; /* 緑色の背景 */
    border-color: #999383;
}

/* チェックマークを描画 */
.agreement input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 5px; /* 横棒の長さ */
    height: 10px; /* 縦棒の長さ */
    border: solid white;
    border-width: 0 2px 2px 0; /* 右と下の線を描画 */
    top: 5px; /* チェックマークの縦位置 */
    left: 10px; /* チェックマークの横位置 */
    transform: rotate(45deg); /* チェックマークを斜めに回転 */
}
/* ホバー時のスタイル */
.agreement input[type="checkbox"]:hover {
    border-color: #888;
}

/* ラベルのスタイル */
.agreement label {
    cursor: pointer;
    display: flex;
    align-items: center;
}