#sub_contact{
    padding: 80px 0 var(--section-margin) 0;
  
}
#sub_contact h2.title{
    color: #fff;
}
#sub_contact h3.title{
    color: #fff;
}
#sub_contact p.explain{
    color: #fff;
}
/* ヒーローセクション */
.contact_hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 0 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
}

.contact_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/25img/hero_back.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.contact_hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(22, 33, 62, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
    
}


.contact_hero_content{
    position: relative;
    z-index: 4;
}


/* フォームスタイル */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: var(--font-s);
    letter-spacing: 0.5px;
}

.required {
    color: #e74c3c;
    margin-left: 0.25rem;
    font-size: var(--font-s);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: var(--font-m);
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="tel"]:hover,
.form-group textarea:hover {
    border-color: #3498db;
    background: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    background: #fff;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--font-s);
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3498db;
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 1.2rem 4rem;
    font-size: var(--font-m);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* エラーメッセージ */
.error-message {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 600px;
    color: #c53030;
}

.error-message p {
    margin: 0;
    line-height: 1.6;
}

.error-message p:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* フォームのエラー表示 */
.form-group.error input,
.form-group.error textarea {
    border-color: #feb2b2;
    background: #fff5f5;
}

.form-group .error-message {
    color: #c53030;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group .error-message::before {
    content: "⚠";
    font-size: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact_hero {
        padding: 60px 0;
    }

    .contact-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }

    .privacy-policy {
        padding: 1rem;
    }
}

/* 確認ページのスタイル */
.confirm-content {
    margin-bottom: 2rem;
}

.confirm-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-label {
    width: 200px;
    font-weight: 600;
    color: #2c3e50;
    font-size: var(--font-s);
}

.confirm-value {
    flex: 1;
    color: #2c3e50;
    font-size: var(--font-s);
    line-height: 1.6;
    white-space: pre-wrap;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.back-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 1.2rem 4rem;
    font-size: var(--font-m);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.back-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(127, 140, 141, 0.2);
}

.back-btn:active {
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .confirm-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .confirm-label {
        width: 100%;
    }

    .form-buttons {
        flex-direction: column;
    }

    .back-btn,
    .submit-btn {
        width: 100%;
    }
}

/* 送信完了メッセージ */
.fin {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fin p {
    margin: 0;
    line-height: 1.6;
}

.fin-sub {
    margin-top: 0.5rem !important;
    font-size: 0.9em;
    color: #666;
}

/* 送信完了時のフォーム非表示 */
.fin + .contact-form {
    display: none;
} 