/* ヘッダーのスタイル */
body > header {
    padding: 40px 0 !important;
}

body > header .logo {
    margin-top: -3px !important;
    margin-left: 10px !important;
}

body > header .header-nav {
    margin-right: 10px !important;
    margin-top: -9px !important;
}

/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* ヒーローセクション */
.contact-hero {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    perspective: 1300px;
}

.hero-sections-wrapper {
    position: relative;
    overflow: hidden;
}

/* 立方体アニメーション関連のスタイル */
.cube-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: -1;
}

.cube {
    position: relative;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid;
    border-color: #09163a;
    backface-visibility: visible;
}

/* 立方体の各面の位置設定 */
.cube-face:nth-child(1) { transform: translateZ(calc(50% - 1px)); }
.cube-face:nth-child(2) { transform: translateZ(calc(-50% + 1px)) rotateY(180deg); }
.cube-face:nth-child(3) { transform: translateX(calc(50% - 1px)) rotateY(90deg); }
.cube-face:nth-child(4) { transform: translateX(calc(-50% + 1px)) rotateY(-90deg); }
.cube-face:nth-child(5) { transform: translateY(calc(-50% + 1px)) rotateX(90deg); }
.cube-face:nth-child(6) { transform: translateY(calc(50% - 1px)) rotateX(-90deg); }

/* ヒーローコンテンツ */
.contact-hero-content {
    margin-left: calc((100% - 1200px) / 2);
    padding-left: 0;
    z-index: 2;
}

.contact-hero-content h1 {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 0;
    letter-spacing: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    margin-left: -5px;
    color: #968242;
    background-color: white;
    border-radius: 50px;
}

.contact-hero-content p {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 5px 20px 5px 40px;
    background-color: white;
    border-radius: 50px;
}

.contact-hero-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background-color: #333;
}

/* メッセージセクション */
.contact-message {
    background-color: #fff;
    padding-top: 0;
    position: relative;
    z-index: 2;
}

.message-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    padding-left: 600px;
    z-index: 2;
}

.message-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 106%;
    transform: translateY(-50%);
    width: 500px;
    height: 1px;
    background-color: #333;
}

.message-content p {
    font-size: 16px;
    line-height: 2;
}

/* 会社情報 */
.company-info {
	margin-top: 0;
    padding-left: 600px;
}

.company-info p {
    font-size: 16px;
    line-height: 2;
}

/* フォームセクション */
.contact-form-section {
    background-color: #fff;
    padding: 80px 0;
	display: block;
}

/* Contact Form 7 - 基本設定のみ（既存クラスを最大活用） */
.contact-form-7-section {
    background-color: #fff;
}

/* Contact Form 7 お問い合わせフォーム用スタイル - リクルートページと統一 */
.contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(150, 130, 66, 0.1);
    border: 1px solid rgba(150, 130, 66, 0.1);
    box-sizing: border-box;
}

.stylish-contact-form {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.stylish-contact-form .form-group {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.stylish-contact-form .form-group:first-child {
    padding-top: 60px;
}

.stylish-contact-form .form-group.full-width {
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    width: 80%;
    margin: 0 auto 30px;
    box-sizing: border-box;
}

.stylish-contact-form .form-label {
    min-width: 200px;
    flex: 0 0 180px;
    font-weight: bold;
    color: #968242;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

.stylish-contact-form .label-text {
    display: block;
    margin-bottom: 30px;
}

.stylish-contact-form .required-asterisk {
    color: #ff0000;
    margin-left: 8px;
    font-size: 14px;
    font-weight: normal;
}

.stylish-contact-form .form-input,
.stylish-contact-form .form-select,
.stylish-contact-form .form-textarea {
    display: block;
    width: 600px;
    max-width: 650px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.stylish-contact-form .form-input:focus,
.stylish-contact-form .form-select:focus,
.stylish-contact-form .form-textarea:focus {
    outline: none;
    border-color: #968242;
    box-shadow: 0 0 0 3px rgba(150, 130, 66, 0.1);
    background: #ffffff;
    transform: translateY(-2px);
}

.stylish-contact-form .form-textarea {
    height: 200px;
    resize: none;
}

.stylish-contact-form .form-select {
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23968242' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 50px;
}

.stylish-contact-form .submit-button {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 40px auto 40px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #968242 0%, #b8941f 100%);
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 15px rgba(150, 130, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.stylish-contact-form .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stylish-contact-form .submit-button:hover::before {
    left: 100%;
}

.stylish-contact-form .submit-button:hover {
    background: linear-gradient(135deg, #b8941f 0%, #968242 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150, 130, 66, 0.4);
}

.stylish-contact-form .submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Contact Form 7のプライバシーポリシーとボタンの幅を統一 */
.stylish-contact-form .wpcf7-acceptance {
    max-width: 80%;
    margin: 0 !important;
    width: 80%;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    text-align: center !important;
}

.stylish-contact-form .wpcf7-acceptance .wpcf7-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.stylish-contact-form .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    order: 1 !important;
    margin-right: 8px !important;
}

.stylish-contact-form .wpcf7-acceptance .wpcf7-list-item-label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    order: 2 !important;
    flex: 1 !important;
}

/* Contact Form 7の自動挿入brタグを非表示 */
.stylish-contact-form br {
    display: none !important;
}

/* プライバシーポリシーリンクのスタイル */
.stylish-contact-form .privacy-link {
    color: #000000 !important;
    text-decoration: underline !important;
}

.stylish-contact-form .privacy-link:hover {
    color: #000000 !important;
}

/* フォームヘッダーのスタイル */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: #968242;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.form-header p {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
}

.contact-form-7-section .wpcf7 {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact Form 7のpタグ構造に対応 */
.contact-form-7-section .entry-form .form-group {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}


.contact-form-7-section .entry-form .form-group p:first-child {
    min-width: 500px;
    flex: 0 0 480px;
    margin: 0;
}

.contact-form-7-section .entry-form .form-group p:first-child label {
    font-weight: bold;
    text-align: left;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    display: block;
}

.contact-form-7-section .entry-form .form-group p:last-child,
.contact-form-7-section .entry-form .form-group .input-wrapper {
    flex: 1;
    width: 100%;
    margin: 0;
}

.contact-form-7-section .entry-form .form-group .input-wrapper p {
    margin: 0;
}

/* Contact Form 7の必須マーク */
.contact-form-7-section .entry-form .required {
    color: #968242;
    margin-left: 8px;
    font-size: 12px;
    font-weight: normal;
}

/* Contact Form 7で既存クラスを使用するための最小限のCSS */
.contact-form-7-section .entry-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f5f5f5;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-form-7-section .entry-form .form-control:focus {
    outline: none;
    border-color: #968242;
    box-shadow: 0 0 0 2px rgba(150, 130, 66, 0.1);
}

.contact-form-7-section .entry-form textarea.form-control {
    height: 200px;
    resize: none;
}

.contact-form-7-section .entry-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Contact Form 7のwpcf7フィールドにも適用 */
.contact-form-7-section .wpcf7-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f5f5f5;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

.contact-form-7-section .wpcf7-form-control:focus {
    outline: none;
    border-color: #968242;
    box-shadow: 0 0 0 2px rgba(150, 130, 66, 0.1);
}

.contact-form-7-section .wpcf7-form-control.wpcf7-acceptance {
    background: transparent;
    border: none;
}

.contact-form-7-section .wpcf7-textarea {
    height: 200px;
    resize: none;
}

.contact-form-7-section .wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* プライバシーポリシーの調整 */
.contact-form-7-section .entry-form .form-group.privacy-policy {
    justify-content: center;
    margin: 30px auto;
    display: flex;
    align-items: center;
}

.contact-form-7-section .entry-form .form-group.privacy-policy p {
    min-width: auto;
    flex: none;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-7-section .entry-form .form-group.privacy-policy label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.contact-form-7-section .wpcf7-acceptance input[type="checkbox"],
.contact-form-7-section .entry-form .form-group.privacy-policy input[type="checkbox"] {
    width: auto;
    min-width: auto;
    background-color: #fff;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
}

.contact-form-7-section .entry-form .form-group.privacy-policy .privacy-text {
    display: inline;
    white-space: nowrap;
}

/* 送信ボタンの調整 */
.contact-form-7-section .entry-button,
.contact-form-7-section .wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 15px;
    background-color: #09163a;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-form-7-section .entry-button:hover,
.contact-form-7-section .wpcf7-submit:hover {
    background-color: #968242;
}
.contact-form-7-section .wpcf7-submit:disabled:hover {
    background-color: #cccccc;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-7-section {
        padding: 60px 0;
        margin-top: -50px;
        position: relative;
        z-index: 3;
        background-color: #fff;
    }
    
    .contact-form-7-section .entry-form .form-group {
        flex-direction: column !important;
        gap: 5px !important;
        margin-bottom: 20px !important;
    }
    
    .contact-form-7-section .entry-form .form-group p:first-child {
        width: 100% !important;
        min-width: unset !important;
        margin-bottom: 2px !important;
        flex: none !important;
    }
    
    .contact-form-7-section .entry-form .form-control,
    .contact-form-7-section .wpcf7-form-control {
        width: 100%;
        min-width: unset;
    }
    
    .contact-form-7-section .form-note {
        white-space: normal;
        margin-top: 4px;
    }
    
    .contact-form-7-section .entry-form .form-group.privacy-policy p,
    .contact-form-7-section .entry-form .form-group.privacy-policy label {
        white-space: nowrap !important;
        width: auto !important;
        font-size: 13px;
    }
}

/* エントリーステップ */
.entry-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.entry-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.entry-steps .step.active {
    opacity: 1;
}

.step-number {
    color: #999;
}

.step.active .step-number {
    color: #968242;
}

.entry-steps .step-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.entry-steps .step-text {
    font-size: 14px;
    line-height: 1.4;
}

/* フォーム要素 */
.entry-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.form-group label {
    min-width: 200px;
    width: 500px;
    font-weight: bold;
    text-align: left;
}

/* お名前のlabelにpadding-topを追加 */
.form-group:first-child label {
    padding-top: 60px;
}

.required {
    color: #968242;
    margin-left: 8px;
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f5f5f5;
}

.form-group textarea {
    height: 200px;
    resize: none;
}

.form-group .input-wrapper {
    flex: 1;
    width: 100%;
}

.form-note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
	white-space: nowrap;
}

/* プライバシーポリシー */
.form-group.privacy-policy {
    justify-content: center;
    margin: 30px auto;
}

.privacy-policy label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: auto;
    flex: none;
}

.privacy-policy input[type="checkbox"] {
    width: auto;
    min-width: auto;
}

.privacy-text .underline {
    text-decoration: underline;
    color: inherit;
    transition: color 0.3s ease;
}

.privacy-text .underline:hover {
    color: #0066cc;
}

/* 確認画面のスタイル */
.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.confirmation-buttons button {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;  /* トランジション効果を追加 */
}

/* 「修正する」ボタン */
.confirmation-buttons button:first-child {
    background-color: #ccc;
    color: #fff;
}

.confirmation-buttons button:first-child:hover {
    background-color: #968242;  /* 立方体の黄色に変更 */
}

/* 「送信する」ボタン */
.confirmation-buttons button:last-child {
    background-color: #09163a;  /* 紺色 */
    color: #fff;
}

.confirmation-buttons button:last-child:hover {
    background-color: #968242;  /* 立方体の黄色に変更 */
}

.confirm-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.confirm-label {
    font-weight: bold;
    margin-bottom: 8px;
}

.confirm-value {
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.confirmation-buttons button {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirmation-buttons button:first-child {
    background-color: #ccc;
    color: #fff;
}

.confirmation-buttons button:last-child {
    background-color: #09163a;  /* 紺色に変更 */
    color: #fff;
}

.confirmation-buttons button:last-child:hover {
    background-color: #968242;  /* ホバー時は黄色に変更 */
}

/* 送信ボタン */
.entry-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 15px;
    background-color: #09163a;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.entry-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.entry-button:not(:disabled):hover {
    background-color: #968242;
}

/* 完了画面のスタイル */
.completion-message {
    text-align: center;
    padding: 40px 20px;
}

.completion-message h3 {
    color: #968242;
    margin-bottom: 20px;
}

@keyframes rotate {
    from {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* PCでは改行しない */
.sp-break {
    display: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    /* ヘッダー調整 */
    body > header {
        padding: 15px 0 !important;
    }

    body > header .logo {
        margin-top: 6px !important;
        margin-left: 0 !important;
    }
	
	.sp-break {
        display: block;
    }

    /* ヒーローセクション */
    .contact-hero {
        height: 300px;
        margin-top: 60px;
    }

    .contact-hero-content {
        margin-left: 20px;
    }

    .contact-hero-content h1 {
        font-size: 48px;
    }

    /* メッセージセクション */
    .message-content {
        padding-left: 20px;
        padding-top: 30px;
        margin-top: -30px;
    }

    .message-content::before {
        display: none;
    }

    .company-info {
        padding-left: 20px;
    }
	
	/* メッセージセクションの調整 */
    .contact-message {
        padding-bottom: 0;  /* 下部の余白を削除 */
    }
	
	/* フォームセクションを上に移動 */
    .contact-form-section {
               margin-top: -50px; /* 上に移動させる量を調整 */
               position: relative;
               z-index: 3;  /* メッセージセクションより前面に表示 */
               background-color: #fff;  /* 背景色を確実に不透明に */
    }

    /* フォーム */
	.form-note {
        white-space: normal; /* モバイルでは通常の折り返しに戻す */
		margin-top: 4px;  /* 元の8pxから4pxに縮小 */
    }
	
	.form-group .input-wrapper {
        width: 100%;
    }
	
    /* フォームグループのスタイル調整 */
    .form-group {
        flex-direction: column !important;  /* !importantを追加 */
        gap: 5px !important;
        margin-bottom: 20px !important;
    }

    .form-group label {
        width: 100% !important;
        min-width: unset !important;
        margin-bottom: 2px !important;
        flex: none !important;  /* flexの設定を上書き */
    }

    /* 入力欄の上部マージンを削除 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        min-width: unset;
    }

    /* エントリーステップ */
    .entry-steps {
        flex-direction: row;
        padding: 0 10px;
        gap: 15px;
    }

    .entry-steps .step {
        flex: 1;
    }

    .entry-steps .step-number {
        font-size: 18px;
    }

    .entry-steps .step-text {
        font-size: 12px;
    }
	
	/* プライバシーポリシーのテキスト調整 */
    .privacy-policy label {
        white-space: nowrap !important;  /* テキストの折り返しを防ぐ */
        width: auto !important;  /* 幅を内容に合わせる */
    }
	
	.privacy-text {
        font-size: 13px;  /* 必要に応じてフォントサイズを小さく */
    }
}

/* Contact Form 7 確認画面・完了画面用スタイル */
.contact-form-7-section .cf7-confirm_area,
.contact-form-7-section .cf7-thanks_area {
    display: none;
}

.contact-form-7-section .wpcf7-response-output {
    display: none;
}

/* 確認画面のスタイル（既存デザインに合わせる） */
.contact-form-7-section .cf7-confirm_area {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form-7-section .cf7-confirm_area h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: #333;
}

.contact-form-7-section .cf7-confirm-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-form-7-section .cf7-confirm-label {
    min-width: 200px;
    flex: 0 0 180px;
    font-weight: bold;
    text-align: left;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

.contact-form-7-section .cf7-confirm-value {
    flex: 1;
    width: 100%;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    border: 1px solid #ddd;
}

.contact-form-7-section .cf7-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.contact-form-7-section .cf7-confirm-buttons button {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
}

.contact-form-7-section .cf7-confirm-buttons .back_button {
    background-color: #ccc;
    color: #fff;
}

.contact-form-7-section .cf7-confirm-buttons .back_button:hover {
    background-color: #968242;
}

/* 完了画面のスタイル（既存デザインに合わせる） */
.contact-form-7-section .cf7-thanks_area {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-7-section .cf7-thanks_area h2 {
    color: #968242;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: bold;
}

.contact-form-7-section .cf7-thanks_area p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 確認ボタンの無効化スタイル */
.contact-form-7-section .confirm_button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.contact-form-7-section .confirm_button:disabled:hover {
    background-color: #cccccc;
}

/* レスポンシブ対応 - Contact Form 7確認画面・完了画面 */
@media (max-width: 768px) {
    .contact-form-7-section .cf7-confirm-item {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 20px;
    }
    
    .contact-form-7-section .cf7-confirm-label {
        width: 100%;
        min-width: unset;
        margin-bottom: 2px;
        flex: none;
    }
    
    .contact-form-7-section .cf7-confirm-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .contact-form-7-section .cf7-confirm-buttons button {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form-7-section .cf7-thanks_area {
        padding: 20px 10px;
    }
    
    .contact-form-7-section .cf7-thanks_area h2 {
        font-size: 24px;
    }
    
    /* Contact Form 7 お問い合わせフォーム レスポンシブ対応 */
    .stylish-contact-form {
        margin: 0 10px;
    }
    
    .stylish-contact-form .form-group {
        flex-direction: column !important;
        gap: 5px !important;
        margin-bottom: 20px !important;
    }
    
    .stylish-contact-form .form-group.full-width {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 20px !important;
    }
    
    .stylish-contact-form .form-label {
        width: 100% !important;
        min-width: unset !important;
        margin-bottom: 2px !important;
        flex: none !important;
    }
    
    .stylish-contact-form .form-input,
    .stylish-contact-form .form-select,
    .stylish-contact-form .form-textarea {
        width: 100%;
        min-width: unset;
        padding: 12px 15px;
    }
    
    .stylish-contact-form .submit-button {
        width: 100%;
        max-width: 100%;
        padding: 15px 20px;
    }
    
    .stylish-contact-form .wpcf7-acceptance {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
}