/* Contact Page Styles */
:root {
    --main-green: #275d46;
    --dark-green: #022b22;
    --light-green: #569578;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
}

/* page-header は main.css の共通定義を使用（ここでは定義しない） */

/* 旧 breadcrumb スタイルは不使用 */

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.breadcrumb-list a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--main-green);
}

.breadcrumb-separator {
    color: #6c757d;
}

.breadcrumb-current {
    color: var(--main-green);
    font-weight: 600;
}

.contact-main {
    padding: 250px 0;
    background: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-section {
    background: var(--white);
}

.form-header {
    margin-bottom: 40px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--light-green);
}

.form-description {
    color: #6c757d;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.required-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.required-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: var(--white);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Form Styles */
.contact-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-green);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 4px rgba(86, 149, 120, 0.1);
}

.form-control:hover {
    border-color: var(--light-green);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-help {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control.error ~ .error-message {
    display: block;
}

/* Privacy Policy Agreement */
.privacy-agreement {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.privacy-title {
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1rem;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.privacy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--main-green);
}

.privacy-checkbox label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #212529;
    line-height: 1.6;
}

.privacy-checkbox label a {
    color: var(--main-green);
    text-decoration: none;
}

.privacy-checkbox label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.form-footer {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 60px;
    background: linear-gradient(135deg, var(--main-green) 0%, var(--light-green) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 93, 70, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 93, 70, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    box-shadow: none;
}

/* Success Message */
.success-message {
    display: none;
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.success-text {
    color: #6c757d;
    line-height: 1.8;
}

/* Sidebar */
.contact-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-green), var(--main-green));
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--dark-green);
    font-size: 0.9rem;
    min-width: 80px;
}

.info-value {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-list {
    list-style: none;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.faq-answer {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: 0;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text {
    opacity: 0.7;
}

.btn-submit.loading .spinner {
    display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .contact-main {
        padding: 40px 0;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 16px 40px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

/* Hero Section Text Colors - 追加修正 */
/* ページ共通ヘッダーのリード文（.page-header 内） */
/* page-header 内の補助テキストを使う場合に限り個別で追加する */

/* お問い合わせページ専用のスタイル */
/* 互換指定不要のため削除 */

/* =============================== */
/* 採用フォーム専用スタイル         */
/* =============================== */

/* 名前フィールド（姓・名） */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.name-field {
    display: flex;
    flex-direction: column;
}

.name-field .sub-label {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
    font-weight: 500;
}

/* 生年月日フィールド */
.date-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-select {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 12px 16px;
}

.date-fields span {
    font-size: 14px;
    color: #374151;
}

/* フォームヘルパーテキスト */
.form-helper {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
    margin-bottom: 0;
}

/* 任意マーク */
.optional-mark {
    background: #9CA3AF;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .name-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .date-fields {
        flex-wrap: wrap;
    }
    
    .date-select {
        min-width: 80px;
    }
}
