/**
 * Hayaoポートフォリオサイト - お問い合わせページスタイル
 */

/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.05) 0%, 
        rgba(78, 205, 196, 0.05) 100%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title i {
    margin-right: 0.5rem;
}

.page-description {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

/* コンタクトコンテナ */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* メッセージ表示 */
.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInDown 0.5s ease;
}

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

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

/* コンタクトコンテンツ */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* フォームセクション */
.contact-form-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
}

.form-group.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1;
}

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

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.required {
    color: var(--primary-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

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

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

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 1rem;
}

/* フォームノート */
.form-note {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-note i {
    margin-right: 0.5rem;
}

/* 送信ボタン */
.submit-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* イラストセクション */
.contact-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* メールアニメーション */
.mail-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.envelope.bounce {
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -60%) scale(1.1);
    }
}

/* メールパーティクル */
.mail-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 3s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    bottom: 30%;
    right: 30%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(30px, -30px) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(60px, -60px) scale(0);
        opacity: 0;
    }
}

/* コンタクト情報 */
.contact-info {
    text-align: center;
    max-width: 300px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* アニメーション */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-illustration {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .mail-animation {
        width: 150px;
        height: 150px;
    }
    
    .envelope {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .contact-container {
        padding: 1.5rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.8rem;
    }
    
    .submit-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-form-section {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .mail-animation {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .envelope {
        font-size: 3rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
}