/* reset----------------------------- */
@charset "utf-8";
html{
    scroll-padding-top: 50px;
    scroll-behavior: smooth;
}
body {
    font-family: "Noto Sans JP", "Noto Serif JP", serif;
    margin: 0 !important;
}

section, main, footer, h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,p,form,fieldset {
    margin: 0;
    padding: 0;
}
h1,h2,h3,h4,h5,h6 {
    line-height: 1.1;
}
p{
    line-height: 2;
    text-align: justify;
}
li {
    list-style: none;
}

th {
    font-weight: normal;
}

em {
    font-style: normal;
}

sup {
    position: relative;
    height: 0;
    font-size: .46em;
}

article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary {
    display: block;
}

img {
    width: 100%;
    max-width:100%;
    display: block;
    object-fit: contain;
}
a{
    text-decoration: none;
    color: #FFF;
}


/* 1. ページタイトルエリア（KV） */
.p-contact-kv {
    width: 100%;
    height: 140px;
    background: linear-gradient(90deg, #EDF4F6 0%, #F4F3ED 50%, #F6EFF4 100%);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #EAEAEA;
}
.p-contact-kv_inner {
    width: min(1200px, 90%);
    margin: 0 auto;
}
.p-contact-kv_title {
    font-family: "Sawarabi Gothic", sans-serif;
    font-size: 28px;
    font-weight: normal;
    color: #4a4a4a;
    letter-spacing: 0.03em;
}
.p-contact-kv_sub {
    font-family: "Jost", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #666666;
    margin-left: 12px;
}

/* 2. お問い合わせフォームセクション共通ベース */
.p-contact-form {
    width: 100%;
    background-color: #ffffff;
    padding: calc(60px + (100 - 60) * ((100vw - 768px) / (1920 - 768))) 0 calc(80px + (140 - 80) * ((100vw - 768px) / (1920 - 768))) 0;
}

/* 1200pxインナー中央枠 */
.p-contact-form_inner {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* リードメッセージ文 */
.p-contact-form_lead {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    letter-spacing: 0.04em;
    text-align: left;
    margin-bottom: calc(40px + (60 - 40) * ((100vw - 768px) / (1920 - 768)));
}

.p-contact-form_wrapper form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 疑似的なテーブル行の構築（各入力欄の親要素） */
.p-contact-form_wrapper .wpcf7-form-control-wrap {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: calc(16px + (24 - 16) * ((100vw - 768px) / (1920 - 768))) 0;
    position: relative;
}

/* 【左カラム】カンプ指定の項目名を全自動空中浮遊配備 */
.p-contact-form_wrapper .wpcf7-form-control-wrap::before {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    letter-spacing: 0.02em;
    line-height: 1.6;
    width: 24%;                    
    flex-shrink: 0;
    display: block;
}

/* 各項目名の一斉マッピング */
.p-contact-form_wrapper .wpcf7-form-control-wrap[data-name="contact-type"]::before { content: "お問い合わせ種別"; }
.p-contact-form_wrapper .wpcf7-form-control-wrap[data-name="company-name"]::before { content: "会社名"; }
.p-contact-form_wrapper .wpcf7-form-control-wrap[data-name="your-name"]::before    { content: "氏名"; }
.p-contact-form_wrapper .wpcf7-form-control-wrap[data-name="your-email"]::before   { content: "メールアドレス"; }
.p-contact-form_wrapper .wpcf7-form-control-wrap[data-name="your-tel"]::before     { content: "電話番号"; }
.p-contact-form_wrapper .wpcf7-form-control-wrap[data-name="your-message"]::before { content: "お問い合わせ内容"; }

/* 【右カラム】入力パーツ共通の美しいカンプ仕様フィッティング（横幅残り76%をフル稼働） */
.p-contact-form_wrapper .wpcf7-text,
.p-contact-form_wrapper .wpcf7-select,
.p-contact-form_wrapper .wpcf7-textarea {
    width: 76%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #F8F9FA;      /* カンプ指定の上品な極薄グレーの座布団 */
    border: 1px solid #EAEAEA;      /* 溶け込むような繊細な境界線 */
    border-radius: 6px;             /* 美しい角丸 */
    padding: 14px 18px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: calc(13px + (14 - 13) * ((100vw - 768px) / (1920 - 768)));
    color: #4a4a4a;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 入力欄にフォーカスした際の心地よい反応 */
.p-contact-form_wrapper .wpcf7-text:focus,
.p-contact-form_wrapper .wpcf7-select:focus,
.p-contact-form_wrapper .wpcf7-textarea:focus {
    background-color: #ffffff;
    border-color: #BCD1DC;
}

/* プルダウン（セレクトボックス）の微調整 */
.p-contact-form_wrapper .wpcf7-select {
    cursor: pointer;
    appearance: none;               
    background-image: url("../images/down-arrow.webp"); 
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;          
    padding-right: 44px;
}

/* お問い合わせ内容（テキストエリア）の高さ保証 */
.p-contact-form_wrapper .wpcf7-textarea {
    height: 200px;
    resize: vertical;
}

/* プレースホルダー（うっすら文字）の品格あるカラー調整 */
.p-contact-form_wrapper ::placeholder {
    color: #b3b3b3;
    opacity: 1;
}

/* 同意チェックボックスエリア */
.p-contact-form_acceptance {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: calc(30px + (40 - 30) * ((100vw - 768px) / (1920 - 768)));
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    letter-spacing: 0.03em;
}
.p-contact-form_policy-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}
.p-contact-form_acceptance input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

/* 送信ボタンエリア */
.p-contact-form_submit-area {
    width: 100%;
    display: block;                 
    text-align: center !important;  
    margin-top: calc(24px + (32 - 24) * ((100vw - 768px) / (1920 - 768)));
}

/* ボタンを包むpタグ */
.p-contact-form_submit-area p {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    position: relative;             
}

.p-contact-form_submit,
.p-contact-form input[type="submit"],
.p-contact-form button[type="submit"],
.wpcf7-submit,
.mwform-submit-input {
    display: inline-flex !important;  
    align-items: center !important;
    justify-content: center !important;
    
    width: calc(260px + (340 - 260) * ((100vw - 768px) / (1920 - 768))) !important;
    max-width: min(340px, 100%) !important;
    height: calc(54px + (64 - 54) * ((100vw - 768px) / (1920 - 768))) !important;
    border-radius: 100px !important;    
    
    border: 1px solid transparent !important;
    outline: none !important;
    background: linear-gradient(90deg, #e2daeb 0%, #e1f3e8 45%, #faf5e2 75%, #faeae5 100%) !important;
    
    font-family: "Sawarabi Mincho", "Noto Serif JP", serif !important;
    font-size: 24px; 
    font-weight: 600 ;
    color: #4a4a4a !important;          
    
    letter-spacing: 0.06em !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 auto !important;
}

.p-contact-form_submit:hover,
.p-contact-form input[type="submit"]:hover,
.p-contact-form button[type="submit"]:hover,
.wpcf7-submit:hover,
.mwform-submit-input:hover {
    opacity: 0.85 !important;
    transform: translateY(1px) !important;
}

.p-contact-form_submit-area .wpcf7-spinner {
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    left: calc(50% + (min(340px, calc(260px + (340 - 260) * ((100vw - 768px) / (1920 - 768)))) / 2) + 12px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.p-contact-form_wrapper p {
    margin: 0;
    padding: 0;
    text-align: inherit;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ff3333 !important;
    padding-left: 24%;
    margin-top: 4px;
    text-align: left;
}
.wpcf7-response-output {
    border-radius: 6px;
    font-size: 14px;
    margin-top: 24px !important;
    padding: 12px 20px !important;
}

.mode-confirm .is-confirmed {
    background-color: #ffffff !important; 
    border-color: #BCD1DC !important;     
    box-shadow: 0 8px 24px rgba(188, 209, 220, 0.25) !important; 
    pointer-events: none !important;      
    color: #333333 !important;
}
.mode-confirm .wpcf7-textarea {
    resize: none !important;
}
.mode-confirm .p-contact-form_acceptance {
    pointer-events: none !important;
    opacity: 0.8;
}

.p-contact-form_back,
.mode-confirm .p-contact-form_submit,
.mode-confirm .p-contact-form_back {
    display: none !important;
}

#cf7-confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    /* 最前面（WordPress管理バーや固定ヘッダーの上）に確実に配置するための特級階層設定 */
    z-index: 99999 !important; 
}

/* 表示クラスが付与されたらパッと視覚化 */
#cf7-confirm-modal.is-visible {
    display: block;
}

#cf7-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4) !important;
}

/* モーダルボックス（1枚目の幅感・角丸・影を忠実にリバイバル） */
#cf7-confirm-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff !important;
    border-radius: 12px !important;    /* 1枚目準拠のマイルドな角丸 */
    padding: 40px 36px !important;    /* 中身を窮屈にさせないラグジュアリーな内側余白 */
    width: 90%;
    max-width: 600px;                  /* カンプに一番近い読みやすい有効横幅 */
    max-height: 85vh;                  /* ノートPCやスマホ等の画面の高さ制限でも絶対にはみ出さない安全弁 */
    overflow-y: auto;                  /* お問い合わせ内容が超長文の時はボックス内で綺麗にスクロール */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16) !important; 
    box-sizing: border-box;
}

/* 項目タイトル */
#cf7-modal-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    margin: 0 0 14px 0 !important;
    text-align: left;
}

/* リード文 */
.cf7-confirm-lead {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13.5px !important;
    color: #666666 !important;
    margin: 0 0 24px 0 !important;
    line-height: 1.6;
    text-align: left;
    border-bottom: 1px solid #edf0f2 !important; /* 項目との境界を美しく分ける極細中線 */
    padding-bottom: 16px !important;
}

/* テーブル（dl要素） */
#cf7-confirm-table {
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    width: 100%;
}

.cf7-confirm-row {
    display: grid !important;
    grid-template-columns: 170px 1fr !important; /* 左項目幅を170pxでピシッと揃えて垂直美を死守 */
    gap: 8px 16px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #edf0f2 !important; 
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14.5px !important;
    line-height: 1.6;
    text-align: left;
}

/* 項目見出し（dt） */
.cf7-confirm-row dt {
    font-weight: 700 !important;
    color: #4a4a4a !important;
    word-break: break-all;
    margin: 0;
}

/* 入力データ（dd） */
.cf7-confirm-row dd {
    margin: 0 !important;
    color: #222222 !important;
    word-break: break-word; 
}

/* モーダル下部のボタンエリア */
.cf7-confirm-buttons {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    width: 100%;
}

/* ポップアップ内専用ボタン（1枚目の形をフラットに完全同期） */
#cf7-back-btn,
#cf7-send-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48% !important;             
    height: 54px !important;            /* ページ本体のメインボタンと厚み・存在感を同期 */
    border: none !important;
    
    border-radius: 100px !important;    
    
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: 0.06em !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box;
}

/* 左ボタン：戻って修正する（形状は右と全く同じカプセル、色は上品なライトグレーを維持） */
#cf7-back-btn {
    background: #eeeeee !important;
    color: #4a4a4a !important;
    font-family: "Noto Sans JP", sans-serif !important; /* 親しみやすく読みやすいゴシックを維持 */
}
#cf7-back-btn:hover {
    background: #e2e2e2 !important;
    transform: translateY(1px) !important; /* 心地よいクリック感を演出 */
}

#cf7-send-btn {
    /* 修正箇所②：黒ベタ塗りをやめ、サイト全体のブランドカラーである4色パステルグラデーションを全面展開 */
    background: linear-gradient(90deg, #e2daeb 0%, #e1f3e8 45%, #faf5e2 75%, #faeae5 100%) !important;
    color: #4a4a4a !important;          /* 抜群に映える上品なチャコールグレー */
    
    /* 修正箇所③：フォントを伝統的な明朝体へ変更し、サイズをわずかに肉付け調整 */
    font-family: "Sawarabi Mincho", "Noto Serif JP", serif !important;
    font-size: 16px !important;         
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
#cf7-send-btn:hover {
    opacity: 0.85 !important;
    transform: translateY(1px) !important;
}

/* モーダルが開いている間は、背後のメインページが勝手にスクロールするのを完全ブロック */
body.cf7-modal-open {
    overflow: hidden !important;
}

@media screen and (max-width: 768px) {
    .p-contact-kv { height: 100px; }
    .p-contact-kv_title { font-size: 22px; }
    .p-contact-kv_sub { font-size: 12px; margin-left: 6px; }

    .p-contact-form { padding: 50px 0; }
    .p-contact-form_lead { font-size: 14px; margin-bottom: 30px; }
    
    .p-contact-form_wrapper .wpcf7-form-control-wrap {
        display: block;
        padding: 12px 0;
    }
    
    .p-contact-form_wrapper .wpcf7-form-control-wrap::before {
        width: 100%;
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    .p-contact-form_wrapper .wpcf7-text,
    .p-contact-form_wrapper .wpcf7-select,
    .p-contact-form_wrapper .wpcf7-textarea {
        width: 100%;
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .p-contact-form_wrapper .wpcf7-select {
        background-position: right 14px center;
    }
    
    .wpcf7-not-valid-tip { padding-left: 0; }
    
    .p-contact-form_acceptance { font-size: 13.5px; margin-top: 24px; }
    
    .p-contact-form_submit,
    .p-contact-form input[type="submit"],
    .p-contact-form button[type="submit"],
    .wpcf7-submit,
    .mwform-submit-input {
        width: 240px !important; 
        height: 52px !important; 
        font-size: 15px !important; 
    }

    .confirm-value {
        width: 100%;
        font-size: 14px;
        padding: 4px 0;
    }
    .p-contact-form_back {
        width: 240px;
        height: 52px;
        font-size: 14px;
    }

    /* スマホ時のポップアップモーダル表示最適化（480px近辺対応） */
    #cf7-confirm-box {
        padding: 28px 18px !important; 
        width: 92% !important;
    }
    
    /* スマホ画面では確認リストの項目名と入力データを「1列縦並び」へスマート変換 */
    .cf7-confirm-row {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        padding: 12px 0 !important;
    }
    
    /* アクションボタンを縦並びにして、スマホ親指でのタップのしやすさを極大化 */
    .cf7-confirm-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    #cf7-back-btn,
    #cf7-send-btn {
        width: 100% !important;         
        height: 48px !important;
    }
}