/* お問い合わせページ専用CSS */

/* コンテンツエリア */
.contact-page {
    padding: 120px 0 80px;
    background: var(--background-light);
    min-height: calc(100vh - 70px);
}

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

/* ページタイトル */
.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-notice {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-notice a:hover {
    text-decoration: underline;
}

/* コンテンツレイアウト */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* 左側：イラスト */
.contact-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contact-illustration img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

/* 右側：フォーム */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    width: 100%;
}

/* フォームグループ */
.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-form-label .required {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* 入力フィールド */
.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: var(--transition);
    background: white;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: #adb5bd;
}

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

/* プライバシーポリシー同意 */
.contact-privacy {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-privacy a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* 送信ボタン */
.contact-submit-wrapper {
    text-align: center;
}

.contact-submit-btn {
    min-width: 200px;
    padding: 14px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-submit-btn:hover:not(:disabled) {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* メッセージ表示エリア */
.contact-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ローディング状態 */
.contact-submit-btn.loading {
    position: relative;
    color: transparent;
}

.contact-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-illustration {
        order: 2;
        padding: 1rem;
    }

    .contact-form-wrapper {
        order: 1;
        padding: 1.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-page {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .contact-submit-btn {
        width: 100%;
        min-width: auto;
    }
}

