/* =====================================================================
   お問い合わせページ (contact.html)
   ===================================================================== */

/* ページ全体ラッパー */
.contact-page-wrap {
    background: #ffffff;
    min-height: calc(100vh - 160px);
    padding-bottom: 80px;
}

/* ヒーローエリア */
.contact-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #d5f9f6 60%, #f5f7ff 100%);
    border-bottom: 1px solid #dde3f0;
    padding: 80px 20px 60px;
    text-align: center;
}

.contact-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contact-hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: #065fd4;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.contact-hero-sub {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* フォームコンテナ */
.contact-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 注意書き */
.contact-notice {
    background: #eff6ff;
    border-left: 3px solid #065fd4;
    border-radius: 6px;
    padding: 12px 18px;
    margin: 40px 0 28px;
}

.contact-notice p {
    text-align: left;
    color: #1d4ed8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.contact-notice i {
    margin-right: 6px;
}

/* フォームラッパー */
.contact-form-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* フォーム全体 */
.contact-form {
    width: 100%;
}

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

/* ラベル */
.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 10px;
}

.form-label i {
    color: #065fd4;
    font-size: 0.85rem;
    width: 16px;
}

.form-required {
    font-size: 0.72rem;
    background: #ef4444;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.form-optional {
    font-size: 0.72rem;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
}

/* テキスト入力 */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #2d2d2d;
    font-size: 0.95rem;
    padding: 13px 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #065fd4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 95, 212, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

/* セレクトラッパー（▼矢印） */
.form-select-wrap {
    position: relative;
}

.form-select-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #6b7280;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.9rem;
}

.form-select {
    cursor: pointer;
    padding-right: 40px;
}

.form-select option {
    background: #ffffff;
    color: #2d2d2d;
}

/* ▼ カテゴリ専用フィールド（初期非表示・スライドイン） */
.form-category-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.form-category-fields.active {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 20px;
}

/* 2カラムレイアウト（PC用） */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

@media screen and (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* エラーメッセージ */
.form-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.88rem;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* 送信ボタンエリア */
.form-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

/* 送信ボタン */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #065fd4 0%, #3f8cff 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(6, 95, 212, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        opacity 0.2s ease;
    letter-spacing: 0.05em;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 30px rgba(6, 95, 212, 0.5);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

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

.btn-submit-text,
.btn-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 送信完了メッセージ */
.contact-success {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    min-height: 340px;
}

.contact-success-inner {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 60px 50px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    animation: contactSuccessFade 0.6s ease forwards;
}

@keyframes contactSuccessFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-success-inner i {
    font-size: 3.5rem;
    color: #16a34a;
    margin-bottom: 20px;
    display: block;
}

.contact-success-inner h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 14px;
}

.contact-success-inner p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}

.contact-success-btn {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #065fd4;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.contact-success-btn:hover {
    background: #065fd4;
    color: #fff;
}

/* Discord 案内バナー */
.contact-discord-banner {
    margin-top: 48px;
    background: linear-gradient(135deg, #eef0ff 0%, #e8ecff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 28px 36px;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.1);
}

.contact-discord-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-discord-logo {
    height: 48px;
    flex-shrink: 0;
}

.contact-discord-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.contact-discord-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.contact-discord-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.contact-discord-btn {
    display: inline-block;
    background: #5865f2;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.contact-discord-btn:hover {
    background: #4752c4;
    color: #fff;
    transform: translateY(-2px);
}

/* =====================================================================
   お問い合わせ レスポンシブ
   ===================================================================== */

/* タブレット以下 */
@media screen and (max-width: 900px) {
    .contact-form-wrap {
        padding: 32px 28px;
    }
}

/* スマホ */
@media screen and (max-width: 700px) {
    .contact-hero {
        padding: 70px 16px 50px;
    }

    .contact-hero-title {
        font-size: 1.8rem;
    }

    .contact-hero-sub {
        font-size: 0.88rem;
    }

    .contact-form-wrap {
        padding: 28px 20px;
        border-radius: 12px;
    }

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

    .btn-submit {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .contact-discord-banner {
        padding: 22px 20px;
        margin-top: 36px;
    }

    .contact-discord-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .contact-discord-text {
        text-align: center;
    }

    .contact-discord-btn {
        width: 100%;
        text-align: center;
    }

    .contact-success-inner {
        padding: 40px 24px;
    }

    .contact-notice {
        margin: 28px 0 20px;
    }
}