/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSSカスタムプロパティ - 重なり量の調整 */
:root {
    --overlap: -20px;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダー */
header {
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    line-height: 0;
    background-color: #faf4ef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-img-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    /* max-width: 375px; */
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
    height: auto;
}

/* 中サイズ端末（395px〜768px）でのヘッダー幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .header-img-wrap {
        padding: 0 10px;
    }
    .header-img {
        height: auto;
        display: block;
        width: 25%;
        object-fit: cover;
    }
    .header-img-wrap a {
        width: auto;
        max-width: none;
    }
    .header-img-wrap a img {
        max-width: 120px;
        max-height: 50px;
    }
}

/* PC版でのヘッダー幅調整 */
@media (min-width: 769px) {
    .header-img-wrap {
        max-width: 768px;
        padding: 0 20px;
    }
    .header-img {
        height: auto;
        display: block;
        width: 20% !important;
        object-fit: cover;
    }
    .header-img-wrap a {
        width: auto;
        max-width: none;
    }
}

.header-img {
    height: auto;
    display: block;
    width: 25%;
    object-fit: cover;
}
.header-img2 {
    margin-top: 5px!important;
}



.header-img-wrap a {
    width: auto; /* 自動幅に変更 */
    max-width: none; /* 最大幅制限を削除 */
    flex-shrink: 0; /* 縮小を防ぐ */
}

.header-img-wrap a img {
    width: auto; /* 画像の元のサイズを維持 */
    height: auto;
    object-fit: contain;
}

@media (max-width: 394px) {
   
    
    footer {
        max-width: 100%;
        margin-bottom: 0px!important; /* フッターの下余白を追加 */
        padding-bottom: 0px!important; /* フッターの内側下余白も追加 */
    }
    

}

/* フッター */
footer {
    display: block;
    line-height: 0;
    margin:0 auto;
    z-index: 1;
    background-color: #faf4ef;
}


.footer-img-wrap {
    /* max-width: 375px; */
    margin: 0 auto;
}

/* 中サイズ端末（395px〜768px）でのフッター幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .footer-img-wrap {
        max-width: none;
    }
}

/* PC版でのフッター幅調整 */
@media (min-width: 768px) {
    .footer-img-wrap {
        max-width: 768px;
    }
    
    /* PC版ではフッター画像2を非表示 */
    .footer-img2 {
        display: none!important;
    }
}

/* メインコンテンツ */
main {
    width: 100%;
    padding: 0;
    background-color: #faf4ef;
    color: #3e3e3e;
    display: flow-root;
    height: fit-content;
    z-index: 2;
}

.main_content_block {
    max-width: none;
    margin: 0 auto;
    padding-bottom: 0;
    height: fit-content;
}

/* 中サイズ端末（395px〜768px）でのメインコンテンツ幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .main_content_block {
        max-width: none;
    }
}

/* PC版でのレイアウト調整 */
@media (min-width: 769px) {
    .main_content_block {
        max-width: 768px;
    }
}

/* SP版での左右マージン調整 */
@media (max-width: 394px) {
    .main_content_block {
        margin: 0;
    }
    
    .header-img-wrap {
        margin: 0;
    }
}

/* セクション共通 */
section {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
    line-height: 0;
    font-size: 0;
    vertical-align: bottom;
    max-width: none;
}

/* 中サイズ端末（395px〜768px）でのセクション幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    section {
        max-width: none;
    }
}

/* PC版でのセクション幅調整 */
@media (min-width: 769px) {
    section {
        max-width: 768px;
    }
}



/* ヘッダーとフッターの画像もスタック効果に含める */
header.stack img,
footer.stack img {
    display: block;
    width: 100%;
    height: auto;
}

.sp-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
margin: 0 auto;
padding: 1rem 3rem;
background-color: #fff;
}



.stack:first-child {
    margin-top: 0;
}

/* 画像共通スタイル */
.fv-img,
.sale-img,
.store-img,
.option-img,
.inquiry-img,
.appoint-img,
.cta-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
    vertical-align: bottom;
    font-size: 0;
}

/* FV画像専用スタイル - アスペクト比を維持 */
.fv-img {
    object-fit: contain;
    max-height: none;
}

/* pictureタグ内のFV画像のアスペクト比を維持 */
.fv-img picture {
    width: 100%;
    height: auto;
}

.fv-img picture img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 中サイズ端末（395px〜768px）での画像幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .fv-img,
    .sale-img,
    .store-img,
    .option-img,
    .inquiry-img,
    .appoint-img,
    .cta-img {
        max-width: none;
    }
}

/* PC版での画像幅調整 */
@media (min-width: 769px) {
    .fv-img,
    .sale-img,
    .store-img,
    .option-img,
    .inquiry-img,
    .appoint-img {
        max-width: 768px;
    }
}

/* CTAセクション専用スタイル */
.cta-section {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100vw;
    height: 60px;
    max-width: 375px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    margin: 0 auto;
    background-color: rgba(250, 244, 239, .8);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    gap: 15px;
}

/* 中サイズ端末（395px〜768px）でのCTAセクション幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .cta-section {
        max-width: 375px;
    }
}

/* PC版でのCTAセクション幅調整 */
@media (min-width: 769px) {
    .cta-section {
        max-width: 768px;
        gap: 30px;
    }
}   
/* CTAセクション内の画像のみに適用 */
.cta-section .cta-img {
    width: 180px;
    height: auto;
    max-width: 180px;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    font-size: 0;
    cursor: pointer;
    position: relative;
background-color: #fff;    
}

/* CTAセクション内の2番目の画像の間隔を詰める */
.cta-section .cta-img:nth-child(2) {
    margin-left: -8px;
}

/* CTA2.pngの位置調整 */
/* #tel-btn-2 {
    margin-top: 5px;
} */

/* 電話モーダル */
.tel-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.tel-modal-content {
    background-color: rgba(0, 0, 0, 0.3); /* 30%透明度 */
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* モーダルタイトル */
.tel-modal-title {
    margin-bottom: 30px;
    text-align: center;
}

.tel-modal-title h3 {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Noto Sans JP', sans-serif;
}

/* スマートフォン対応 */
@media screen and (max-width: 480px) {
    .tel-modal-title h3 {
        font-size: 16px;
        line-height: 1.5;
    }
}

.tel-modal-close {
    position: relative;
    top: 3%;
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 4px;
    color: #fff;
    opacity: 0.8;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid #fff;
}

.tel-modal-close .close-icon {
    font-size: 20px;
    line-height: 1;
}

.tel-modal-close .close-text {
    font-size: 14px;
}

.tel-modal-close:hover,
.tel-modal-close:focus {
    opacity: 1;
}

.tel-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
    width: 60vw;
}

/* 中サイズ端末とSP版でのパディング調整 */
@media (max-width: 768px) {
    .tel-buttons {
        padding: 0;
        width: 80vw;
    }
}

.tel-button {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tel-button:hover {
    transform: scale(1.05);
}

.tel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* フッター画像の幅を他の画像と統一 */
.footer-img-wrap img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* お問い合わせフォーム */
.inquiry-section {
    padding: 0;
    width: 100%;
    max-width: none;
    line-height: normal;
    font-size: 16px;
    margin: 0 auto;
}

/* 中サイズ端末（395px〜768px）でのお問い合わせセクション幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .inquiry-section {
        max-width: none;
    }
}

/* PC版でのお問い合わせセクション幅調整 */
@media (min-width: 769px) {
    .inquiry-section {
        max-width: 768px;
    }
}

.form-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 8px;
    font-size: 16px;
    margin-top: -5px;
    box-sizing: border-box;
}

/* 中サイズ端末（395px〜768px）でのフォーム幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .form-container {
        max-width: none;
        padding: 0;
    }
}

/* PC版でのフォーム幅調整 */
@media (min-width: 769px) {
    .form-container {
        max-width: 768px;
        padding: 0;
    }
}

.form {
    background-color: #fff;
    padding: 0 30px;
    padding: 10px;
}

/* フォームグループ */
.form-group {
    margin-bottom: 2px;
}

.form-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold!important;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group label.required::before {
    content: "必須";
    color: #fff;
    font-size: 2.66vw;
    background-color: #de6d00;
    border-radius: 3px;
    margin-right: 7px;
    padding: 0 4px 1px;
    display: inline-block;
    vertical-align: middle;
    font-weight: normal;
}

.form-group label.required::after {
    content: "";
}

@media (min-width: 769px) {
    .form-group label.required::before {
        font-size: 10px;
    }
}

/* 入力フィールド */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 5px 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #faf4ef;
    transition: border-color 0.3s ease;
}

/* select要素の基本スタイル（文字色は個別に設定） */
.form-group select {
    width: 100%;
    padding: 5px 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #faf4ef;
    transition: border-color 0.3s ease;
    color: #333; /* デフォルトの文字色 */
}

/* エラーメッセージ */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    display: none;
}

/* 成功メッセージ */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* ラジオボタン */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 15px;
    height: 15px;
    border: 1px solid #000;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: border 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
    background: #3498db;
}

.radio-custom::before {
    content: '';
    width: 15px;
    height: 15px;
    display: block;
    position: absolute;
    left: 0;
    bottom: 50%;
    transform: translateY(50%);
    border: 1px solid #000;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s border;
}

.radio-custom::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 4px;
    transform: translateY(50%);
    width: 9px;
    height: 9px;
    background-color: #de6d00;
    border-radius: 100px;
    opacity: 0;
    transition: 0.2s opacity;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

/* サンプルHTML対応のラジオボタンスタイル */
.contactitem_body {
    position: relative;
}

.l_radiobtn {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.radiobtn {
    position: relative;
}

.radiobtn > input[type="radio"] {
    display: none;
}

.radiobtn > label {
    padding: 0 0 0 25px;
    position: relative;
    cursor: pointer;
    font-weight: normal;
}

.radiobtn > label::before {
    content: '';
    width: 15px;
    height: 15px;
    display: block;
    position: absolute;
    left: 0;
    bottom: 50%;
    transform: translateY(50%);
    border: 1px solid #000;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s border;
}

.radiobtn > label::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 4px;
    transform: translateY(50%);
    width: 9px;
    height: 9px;
    background-color: #de6d00;
    border-radius: 100px;
    opacity: 0;
    transition: 0.2s opacity;
}

.radiobtn > input[type="radio"]:checked + label::after {
    opacity: 1;
}

.mark {
    display: none;
}

.errortxt {
    display: none;
    color: #e65757;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.73vw;
    margin-top: 5px;
    font-weight: 700;
}

@media (min-width: 769px) {
    .errortxt {
        font-size: 14px;
    }
}

/* チェックボックス */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2.5px solid #3e3e3e;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border: 2.5px solid #de6d00;
    background: #de6d00;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::before {
    opacity: 1;
}

.checkbox-custom::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9ImNsaXAtcGF0aCI+CiAgICAgIDxyZWN0IGlkPSLplbfmlrnlvaJfNTA5OSIgZGF0YS1uYW1lPSLplbfmlrnlvaIgNTA5OSIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiByeD0iNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUzMzcgLTE2ODY1LjUpIiBmaWxsPSIjZGU2ZDAwIiBzdHJva2U9IiNkZTZkMDAiIHN0cm9rZS13aWR0aD0iMi41Ii8+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KICA8ZyBpZD0i44Oe44K544Kv44Kw44Or44O844OXXzI5NSIgZGF0YS1uYW1lPSLjg57jgrnjgq/jgrDjg6vjg7zjg5cgMjk1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTUzMzcgMTY4NjUuNSkiIGNsaXAtcGF0aD0idXJsKCNjbGlwLXBhdGgpIj4KICAgIDxnIGlkPSLjgrDjg6vjg7zjg5dfMzYzNzEiIGRhdGEtbmFtZT0i44Kw44Or44O844OXIDM2MzcxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTMxNCAtMTg3NzUpIj4KICAgICAgPHBhdGggaWQ9IuODkeOCuV8xMTQ5OSIgZGF0YS1uYW1lPSLjg5HjgrkgMTE0OTkiIGQ9Ik0yNjQuNzM0LDMyMy4xNzlsNi40OTQsNi4xODMsOC41MDYtOC42OCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzNC4yMzQgMTU5OS44MTcpIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI0Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K) no-repeat center / contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* プライバシーポリシー（サンプルHTML対応） */
.customer_foot_privacy {
    margin-bottom: 20px;
}

.l_privacypolicy {
    position: relative;
}

.privacypolicy {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    justify-content: center;
    max-width: 250px;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
}

.privacypolicy_checkbox {
    flex-shrink: 0;
    position: relative;
}

.privacypolicy_checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
}

.privacypolicy_checkbox_label {
    width: 20px;
    height: 20px;
    background: #fff;
    display: block;
    border: 2.5px solid #3e3e3e;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.privacypolicy_checkbox_label::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9ImNsaXAtcGF0aCI+CiAgICAgIDxyZWN0IGlkPSLplbfmlrnlvaJfNTA5OSIgZGF0YS1uYW1lPSLplbfmlrnlvaIgNTA5OSIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiByeD0iNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUzMzcgLTE2ODY1LjUpIiBmaWxsPSIjZGU2ZDAwIiBzdHJva2U9IiNkZTZkMDAiIHN0cm9rZS13aWR0aD0iMi41Ii8+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KICA8ZyBpZD0i44Oe44K544Kv44Kw44Or44O844OXXzI5NSIgZGF0YS1uYW1lPSLjg57jgrnjgq/jgrDjg6vjg7zjg5cgMjk1IiB0cmFuc2Zvcm0oLTE1MzM3IDE2ODY1LjUpIiBjbGlwLXBhdGg9InVybCgjY2xpcC1wYXRoKSI+CiAgICA8ZyBpZD0i44Kw44Or44O844OXXzM2MzcxIiBkYXRhLW5hbWU9IjgrDjg6vjg7zjg5cgMzYzNzEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1MzE0IC0xODc3NSkiPgogICAgICA8cGF0aCBpZD0i48OR44K5XzExNDk5IiBkYXRhLW5hbWU9IuODkeOCuV8xMTQ5OSIgZD0iTTI2NC43MzQsMzIzLjE3OWw2LjQ5NCw2LjE4Myw4LjUwNi04LjY4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjM0LjIzNCAxNTk5LjgxNykiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjQiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=) no-repeat center / contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacypolicy input[type="checkbox"]:checked + .privacypolicy_checkbox_label {
    border: 2.5px solid #de6d00;
    background: #de6d00;
}

.privacypolicy input[type="checkbox"]:checked + .privacypolicy_checkbox_label::before {
    opacity: 1;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9ImNsaXAtcGF0aCI+CiAgICAgIDxyZWN0IGlkPSLplbfmlrnlvaJfNTA5OSIgZGF0YS1uYW1lPSLplbfmlrnlvaIgNTA5OSIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiByeD0iNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUzMzcgLTE2ODY1LjUpIiBmaWxsPSIjZmZmIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMi41Ii8+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KICA8ZyBpZD0i44Oe44K544Kv44Kw44Or44O844OXXzI5NSIgZGF0YS1uYW1lPSLjg57jgrnjgq/jgrDjg6vjg7zjg5cgMjk1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTUzMzcgMTY4NjUuNSkiIGNsaXAtcGF0aD0idXJsKCNjbGlwLXBhdGgpIj4KICAgIDxnIGlkPSLjgrDjg6vjg7zjg5dfMzYzNzEiIGRhdGEtbmFtZT0i44Kw44Or44O844OXIDM2MzcxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTMxNCAtMTg3NzUpIj4KICAgICAgPHBhdGggaWQ9IuODkeOCuV8xMTQ5OSIgZGF0YS1uYW1lPSLjg5HjgrkgMTE0OTkiIGQ9Ik0yNjQuNzM0LDMyMy4xNzlsNi40OTQsNi4xODMsOC41MDYtOC42OCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzNC4yMzQgMTU5OS44MTcpIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI0Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K) no-repeat center / contain;
}

.privacypolicy.is_invalid .privacypolicy_checkbox_label {
    border: 2.5px solid #e65757;
}

.privacypolicy_checkbox_label_error {
    display: inline-block;
    position: absolute;
    background-color: #e65757;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 3.73vw;
    padding: 3px 10px 5px;
    border-radius: 5px;
    top: -40px;
    left: 0;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacypolicy_checkbox_label_error::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 26px;
    width: 0;
    height: 0;
    margin: auto;
    border-style: solid;
    border-color: #e65757 transparent transparent transparent;
    border-width: 10px 5px 0 5px;
}

.privacypolicy.is_invalid .privacypolicy_checkbox_label_error {
    opacity: 1;
}

@media (min-width: 769px) {
    .privacypolicy_checkbox_label_error {
        font-size: 14px;
    }
}

.privacypolicy_textbox {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.privacypolicy_textbox_required {
    color: #fff;
    font-size: 2.66vw;
    background-color: #de6d00;
    border-radius: 3px;
    margin-right: 0;
    padding: 0 4px 1px;
    display: block;
    font-weight: normal;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .privacypolicy_textbox_required {
        font-size: 10px;
    }
}

.privacypolicy_textbox_text {
    display: block;
    line-height: 1.4;
    font-size: 11px;
    font-weight: 700;
}

.privacypolicy_textbox_text a {
    color: #de6d00;
    text-decoration: underline;
    text-decoration-color: #de6d00;
}

.privacypolicy_textbox_text a:hover {
    text-decoration: underline;
}

/* 日時選択グループのスタイル */
.datetime-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* iPhoneでの縦並びレイアウト */
@media screen and (max-width: 480px) {
    .datetime-group {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    .datetime-group input[type="date"],
    .datetime-group select {
        width: 100% !important;
        flex: none !important;
    }
}

/* iPhone Safari専用の縦並びレイアウト */
@supports (-webkit-touch-callout: none) {
    .datetime-group {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    .datetime-group input[type="date"],
    .datetime-group select {
        width: 100% !important;
        flex: none !important;
    }
}

/* iOS Safariでの縦並びレイアウト */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .datetime-group {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    .datetime-group input[type="date"],
    .datetime-group select {
        width: 100% !important;
        flex: none !important;
    }
}

/* スマートフォン全般での縦並びレイアウト */
@media screen and (max-width: 768px) {
    .datetime-group {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    .datetime-group input[type="date"],
    .datetime-group select {
        width: 100% !important;
        flex: none !important;
    }
}

.datetime-group input[type="date"] {
    width: 100%;
    padding: 5px 8px; /* Compact height */
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #faf4ef; /* Matches select dropdown */
    color: #333;
    transition: border-color 0.3s ease;
    /* iPhoneでの日付ピッカーサイズ統一 */
    -webkit-appearance: none;
    appearance: none;
    height: 35px; /* 固定の高さを設定 */
    box-sizing: border-box;
}

/* カレンダーアイコンのスタイル */
.datetime-group .flatpickr-input,
.datetime-group .has-calendar-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3e%3cline x1='16' y1='2' x2='16' y2='6'/%3e%3cline x1='8' y1='2' x2='8' y2='6'/%3e%3cline x1='3' y1='10' x2='21' y2='10'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 35px;
    cursor: pointer;
}

/* カレンダーアイコンのホバー効果 */
.datetime-group .flatpickr-input:hover,
.datetime-group .has-calendar-icon:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3e%3cline x1='16' y1='2' x2='16' y2='6'/%3e%3cline x1='8' y1='2' x2='8' y2='6'/%3e%3cline x1='3' y1='10' x2='21' y2='10'/%3e%3c/svg%3e");
}



/* iPhone Safari専用の日付ピッカーサイズ調整 */
@supports (-webkit-touch-callout: none) {
    .datetime-group input[type="date"] {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        line-height: 1.2 !important;
        padding: 5px 8px !important;
        font-size: 14px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* iOS Safariでの日付ピッカーサイズ調整 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .datetime-group input[type="date"] {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
    }
}

.datetime-group input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.datetime-group select {
    flex: 1;
    padding: 5px 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #faf4ef;
    color: #333;
    transition: border-color 0.3s ease;
    /* iPhoneでのselectサイズ統一 */
    height: 35px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

/* iPhone Safari専用のselectサイズ調整 */
@supports (-webkit-touch-callout: none) {
    .datetime-group select {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        line-height: 1.2 !important;
        padding: 5px 8px !important;
        padding-right: 30px !important;
        font-size: 14px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* iOS Safariでのselectサイズ調整 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .datetime-group select {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
    }
}

.datetime-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 時間選択のプレースホルダー色を統一 */
.datetime-group select option[value=""][disabled] {
    color: #999 !important;
    font-style: italic;
}

/* 選択肢の色を通常の色に戻す */
.datetime-group select option:not([disabled]) {
    color: #333 !important;
}

/* より確実なプレースホルダー色設定 */
.datetime-group select option[value=""] {
    color: #999 !important;
}

/* select要素自体の文字色をリセット */
.datetime-group select {
    color: #333 !important;
}

/* プレースホルダーが選択されている状態での表示 */
.datetime-group select option[value=""]:checked {
    color: #999 !important;
}

/* 値が選択されている場合の表示 */
.datetime-group select:not([value=""]) {
    color: #333 !important;
}

/* プレースホルダーが選択されている場合のselect要素の文字色 */
.datetime-group select option[value=""]:checked + select,
.datetime-group select:has(option[value=""]:checked) {
    color: #999 !important;
}

/* 注意事項ブロック */
.notice-block {
    background: #DFDFDF;
    color: #333;
    padding: 6px 10px;
    margin: 15px auto;
    text-align: center;
    width: fit-content;
    max-width: 700px;
    white-space: nowrap;
    font-size: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.notice-block p {
    width: 100%;
    margin: 0;
    font-weight: bold;
    line-height: 1.0;
}

/* 送信ボタン */
.submit-btn {
    width: 160px;
    display: block;
    text-align: center;
    background-color: #de6d00;
    color: #fff;
    border: none;
    padding: 11px 0 13px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 4.26vw;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 769px) {
    .submit-btn {
        font-size: 16px;
    }
    
    .notice-block {
        font-size: 14px;
    }
    
    .privacypolicy_textbox_text {
        font-size: 12px;
    }
}

.submit-btn::before {
    content: "";
    width: 12px;
    height: 2px;
    background-color: #fff;
    border-radius: 10px;
    position: absolute;
    margin-right: 10px;
    transform: rotate(-45deg);
    top: 26px;
    right: 0;
}

.submit-btn::after {
    content: "";
    width: 12px;
    height: 2px;
    background-color: #fff;
    border-radius: 10px;
    position: absolute;
    margin-left: 10px;
    transform: rotate(45deg);
    top: 19px;
    right: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .arrow {
    transform: translateX(5px);
}



/* エラーページと完了ページのスタイル */
.error-container,
.complete-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container .error-content,
.complete-container .complete-content {
    max-width: 360px;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.error-container h1,
.complete-container h1 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 24px;
}

.complete-container h1 {
    color: #27ae60;
}

.error-list {
    margin: 20px 0;
    text-align: left;
}

.error-item {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

.back-btn,
.top-btn {
    display: inline-block;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover,
.top-btn:hover {
    transform: translateY(-2px);
}

.complete-message {
    font-size: 18px;
    color: #2c3e50;
    margin: 20px 0;
    line-height: 1.8;
}

.inquiry-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.inquiry-details h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.inquiry-details dl {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inquiry-details dt {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.inquiry-details dd {
    color: #555;
    margin-bottom: 15px;
}

.contact-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.business-hours {
    color: #666;
    font-size: 14px;
}

.notice-content {
    text-align: left;
}




.main_content_block2 {
    max-width: 786px;
    margin: 0 auto;
}


/* SP専用デザイン（394px幅以下） */
@media (max-width: 394px) {
    main {
        max-width: 100%;
        margin: 0;
    }

    .form-section {
        margin-bottom: 1rem;
    }
    
    .main_content_block2 {
        padding:0 1rem;
        max-width: 100%;
     }

    .main_content_block {
        max-width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    
    .header-img-wrap {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    

    
    header,
    section,
    footer {
        max-width: 100%;
    }

    footer {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3)!important;
    }

    .header-img {
        width: 25%;
        max-width: 150px;
    }
    
    .header-img-wrap a img {
        max-width: 100px;
        max-height: 40px;
    }
    

    
    .fv-img,
    .sale-img,
    .store-img,
    .option-img,
    .inquiry-img,
    .appoint-img,
    .cta-img,
    .footer-img {
        max-width: 100%;
    }
    
    .form-container {
        padding: 0;
        max-width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .datetime-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn {
        width: 40%;
        justify-content: center;
        padding: 8px 0 10px;
        font-size: 16px;
    }
    
    /* SP版でのCTAセクション調整 */
    .cta-section {
        max-width: 365px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        gap: 10px;
    }
    
    .cta-section .cta-img {
        width: 160px;
        max-width: 160px;
    }
    
    .form-container h2 {
        font-size: 18px;
    }
    
    .error-container .error-content,
    .complete-container .complete-content {
        padding: 15px;
        margin: 0;
        max-width: 100%;
    }
    
    .inquiry-details dl {
        gap: 5px;
    }
    
    .inquiry-section {
        padding: 0;
        max-width: 100%;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 5px 8px;
        font-size: 14px;
        height: 35px;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .form-group label.required::before {
        font-size: 10px;
        padding: 0 3px 1px;
    }
    
    .form-group textarea {
        height: 80px;
        resize: vertical;
    }
    
    .complete-message {
        font-size: 16px;
    }
}

/* 中サイズ端末（395px〜768px）での追加調整 */
@media (min-width: 395px) and (max-width: 768px) {
    /* ヘッダーとフッターの画像サイズ調整 */
    .header-img {
        width: 25%;
        max-width: 160px;
    }
    
    /* フォーム要素の調整 */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 15px;
        height: 38px;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        margin-bottom: 6px;
        font-size: 15px;
    }
    
    .form-group label.required::before {
        font-size: 11px;
        padding: 0 4px 1px;
    }
    
    .form-group textarea {
        height: 90px;
        resize: vertical;
    }
    
    /* 送信ボタンの調整 */
    .submit-btn {
        width: 180px;
        padding: 12px 0 14px;
        font-size: 16px;
    }
    
    /* CTAセクションの調整 */
    .cta-section {
        padding: 8px 12px;
        gap: 18px;
    }
    
    .cta-section .cta-img {
        width: 170px;
        max-width: 170px;
    }
    
    /* 注意事項ブロックの調整 */
    .notice-block {
        font-size: 12px;
        max-width: 375px;
    }
    
    /* プライバシーポリシーの調整 */
    .privacypolicy_textbox_text {
        font-size: 12px;
    }
    
    .privacypolicy_textbox_required {
        font-size: 11px;
    }
    
    .errortxt {
        font-size: 14px;
    }
}

/* 成功メッセージモーダル */
.success-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.success-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.success-modal-header {
    background-color: #28a745;
    color: #fff;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.success-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.success-modal-close:hover {
    opacity: 0.8;
}

.success-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.success-modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.success-modal-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.success-modal-ok-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.success-modal-ok-btn:hover {
    background-color: #0056b3;
}

/* サンクスページ用スタイル */
.thanks-section {
    text-align: center;
    padding: 40px 20px;
}

.thanks-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    margin: 0 auto;
}

/* 中サイズ端末（395px〜768px）でのサンクス画像幅調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .thanks-img {
        max-width: none;
    }
}

/* PC版でのサンクス画像幅調整 */
@media (min-width: 769px) {
    .thanks-img {
        max-width: 600px;
    }
}

.header-thx {
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    line-height: 0;
    background-color: #faf4ef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



.notice-section {
    text-align: center;
    padding: 30px 20px;
    background-color: #faf4ef;
    margin: 20px 0;
}

@media screen and (max-width: 767px) {
    .notice-section {
        text-align: left;
    }
}

.notice-content h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.notice-content p {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .notice-content h2 {
        text-align: left;
    }
    .notice-content p {
        text-align: left;
    }
}

.back-section {
    text-align: center;
    padding: 40px 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
}

.back-btn:hover {
    transform: translateY(-2px);
}

.back-btn .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-btn:hover .arrow {
    transform: translateX(5px);
}

/* サンクスページ内の画像最大幅制限 */
.back-btn-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SP版でのサンクスページ調整 */
@media (max-width: 394px) {
    .thanks-section {
        padding: 30px 15px;
    }
    
    .notice-section {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .notice-content h2 {
        font-size: 16px;
        margin-bottom: 15px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.6;
    }
    
    .notice-content p {
        font-size: 13px;
    }
    
    .back-section {
        padding: 30px 15px;
    }
    
    .back-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* 中サイズ端末（395px〜768px）でのサンクスページ調整 */
@media (min-width: 395px) and (max-width: 768px) {
    .thanks-section {
        padding: 35px 20px;
    }
    
    .notice-section {
        padding: 25px 20px;
        margin: 18px 0;
    }
    
    .notice-content h2 {
        font-size: 17px;
        margin-bottom: 18px;
    }
    
    .notice-content p {
        font-size: 14px;
    }
    
    .back-section {
        padding: 35px 20px;
    }
    
    .back-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}
