/* Contact Page Styles */

.contact-page {
    padding: 120px 0 80px;
    background: var(--gray-light);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--accent-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.page-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 60px;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-left: 5px;
}

.optional {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

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

.privacy-check {
    margin-top: 40px;
}

.privacy-check label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.privacy-check input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.privacy-check a {
    color: var(--accent-main);
    text-decoration: underline;
}

.privacy-check a:hover {
    color: var(--accent-secondary);
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-actions .btn {
    min-width: 200px;
}

.form-actions .btn i {
    margin-right: 8px;
}

/* 送信完了メッセージ */
.success-message {
    max-width: 700px;
    margin: 0 auto 60px;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #155724;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #155724;
}

.success-message p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 連絡先情報ボックス */
.contact-info-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-box h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-border);
}

.contact-info-box h3 i {
    color: var(--accent-main);
    margin-right: 10px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* メールアイコン用 */
.contact-method>i {
    font-size: 1.5rem;
    color: var(--accent-main);
    min-width: 30px;
}

/* SNSアイコンのコンテナ */
.contact-method>div {
    flex: 1;
}

/* SNSアイコンのリンク */
.contact-method a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-light);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.contact-method a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 各SNSの個別カラー */
.contact-method a:has(.fa-x-twitter):hover {
    background: #000000;
}

.contact-method a:has(.fa-x-twitter):hover i {
    color: white;
}

.contact-method a:has(.fa-facebook):hover {
    background: #1877F2;
}

.contact-method a:has(.fa-facebook):hover i {
    color: white;
}

.contact-method a:has(.fa-linkedin):hover {
    background: #0A66C2;
}

.contact-method a:has(.fa-linkedin):hover i {
    color: white;
}

/* SNSアイコン自体 */
.contact-method a i {
    font-size: 1.5rem;
    color: var(--accent-main);
    transition: color 0.3s ease;
}

/* テキスト部分 */
.contact-method strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-method p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* メールリンク（テキストリンク）用のスタイル */
.contact-method p a {
    color: var(--accent-main);
    text-decoration: none;
    display: inline;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.contact-method p a:hover {
    text-decoration: underline;
    transform: none;
    box-shadow: none;
    background: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .contact-page {
        padding: 100px 0 60px;
    }

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

    .contact-form,
    .contact-info-box {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* iOSのズーム防止 */
    }

    .contact-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-method>i {
        font-size: 1.3rem;
    }

    .contact-method a {
        width: 45px;
        height: 45px;
    }

    .contact-method a i {
        font-size: 1.3rem;
    }
}