/* Contact Page Styles */

/* メインコンテナ */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    color: #fff;
    background-color: #000;
    min-height: calc(100vh - 220px);
}

/* コンタクトフォームのラッパー */
.contact-form {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form form {
    margin: 0 auto;
    padding: 0;
    max-width: 500px;
    display: block;
}

/* 導入テキスト */
.contact-info {
    margin-bottom: 3rem;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

/* 入力フィールド */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

/* 送信ボタン */
.submit-btn {
    width: 200px;
    padding: 1.2rem;
    background: #fff;
    color: #000;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 2rem auto 2rem;
    display: block;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    color: #fff;
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 0 0 2px #fff,
                0 0 20px rgba(255, 255, 255, 0.5),
                0 0 40px rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: scale(0.95) rotate(-1deg);
    transition: all 0.1s ease;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* ホバー解除時のバウンス効果 */
@keyframes bounce-out {
    0% { transform: scale(1.05) rotate(1deg); }
    40% { transform: scale(0.95) rotate(-0.5deg); }
    70% { transform: scale(1.02) rotate(0.5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.submit-btn:not(:hover) {
    animation: bounce-out 0.6s ease;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ページタイトル */
.contact-container h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 背景キャンバス */
#contact-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}


/* メインタグのスタイル */
main.contact-main {
    padding-top: 110px;
    background-color: #000;
}

/* アクティブなナビゲーションリンク */
nav a.active {
    color: #fff;
    font-weight: bold;
}

/* 必須項目のアスタリスク */
.form-group label span {
    color: #ff6b6b;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-container h1 {
        font-size: 2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
    
    .submit-btn {
        width: 80%;
        font-size: 0.9rem;
        padding: 0.8rem;
        margin: 1.5rem auto;
    }
}