/* ============================================================
   AI観測ラボ — Contact Page CSS
   blog.ai-kansoku.com/contact/
   ============================================================ */

/* ── リセット・ベース ────────────────────────────── */
.ct-wrap *,
.ct-wrap *::before,
.ct-wrap *::after {
    box-sizing: border-box;
}

.ct-section .ct-layout {
    margin-left: auto;
    margin-right: auto;
}

.ct-wrap {
    --ct-ink:        #1a1f2e;
    --ct-ink-mid:    #4a5568;
    --ct-ink-light:  #718096;
    --ct-ink-xlight: #a0aec0;
    --ct-bg:         #f4f6fb;
    --ct-bg-card:    #ffffff;
    --ct-border:     #e2e8f0;
    --ct-border-dark:#cbd5e0;
    --ct-accent:     #2B5EA7;
    --ct-accent-lt:  #dbeafe;
    --ct-gold:       #B8954A;
    --ct-success:    #2D6A4F;
    --ct-error:      #B91C1C;
    --ct-error-bg:   #fef2f2;
    --ct-radius:     10px;
    --ct-shadow:     0 2px 12px rgba(43,94,167,.07);
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--ct-ink);
    background: var(--ct-bg);
    max-width: 100%;
    width: 100%;
}

/* ── HERO ────────────────────────────────────────── */
.ct-hero {
    position: relative;
    overflow: hidden;
    background: #f4f6fb;
    padding: 80px 24px 64px;
    text-align: center;
}

.ct-hero-starmap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ct-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
}
.ct-hero-orb-1 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, #c7d9f5 0%, transparent 70%);
    top: -60px; left: -60px;
    opacity: .5;
}
.ct-hero-orb-2 {
    width: 240px; height: 240px;
    background: radial-gradient(circle, #e8d5a3 0%, transparent 70%);
    bottom: -40px; right: 5%;
    opacity: .35;
}

.ct-hero-scope {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    opacity: .7;
}

.ct-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.ct-hero-eyebrow {
    display: inline-block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ct-accent);
    background: var(--ct-accent-lt);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.ct-hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ct-ink);
    margin: 0 0 16px;
    line-height: 1.2;
}

.ct-hero-desc {
    font-size: 15px;
    color: var(--ct-ink-light);
    line-height: 1.8;
    margin: 0;
}

/* ── SECTION ─────────────────────────────────────── */
.ct-section {
    padding: 64px 24px 80px;
}

.ct-layout {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* ── フォームカラム ───────────────────────────────── */
.ct-form-col {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 40px;
    box-shadow: var(--ct-shadow);
}

.ct-form-header {
    margin-bottom: 28px;
}

.ct-form-label {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--ct-ink-xlight);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ct-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ct-ink);
    margin: 0;
    letter-spacing: -.02em;
}

/* アラート */
.ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.ct-alert--error {
    background: var(--ct-error-bg);
    border: 1px solid #fecaca;
    color: var(--ct-error);
}
.ct-alert svg { flex-shrink: 0; margin-top: 2px; }

/* ハニーポット */
.ct-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}

/* フォームグループ */
.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-form-group {
    position: relative;
    margin-bottom: 20px;
}

.ct-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ct-ink-mid);
    margin-bottom: 8px;
    letter-spacing: .02em;
}

.ct-required {
    color: var(--ct-error);
    margin-left: 2px;
}

.ct-input,
.ct-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: var(--ct-ink);
    background: #fafbfc;
    border: 1.5px solid var(--ct-border);
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    appearance: none;
}

.ct-input::placeholder,
.ct-textarea::placeholder {
    color: var(--ct-ink-xlight);
}

.ct-input:focus,
.ct-textarea:focus {
    border-color: var(--ct-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43,94,167,.1);
}

.ct-form-group.is-focused .ct-label {
    color: var(--ct-accent);
}

.ct-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
}

.ct-char-count {
    display: block;
    text-align: right;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--ct-ink-xlight);
    margin-top: 6px;
}

/* 送信ボタン */
.ct-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 32px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--ct-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .02em;
    box-shadow: 0 2px 12px rgba(43,94,167,.25);
}

.ct-submit:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(43,94,167,.35);
}

.ct-submit:active {
    transform: translateY(0);
}

.ct-privacy-note {
    text-align: center;
    font-size: 11px;
    color: var(--ct-ink-xlight);
    margin-top: 14px;
    line-height: 1.7;
}

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

/* 送信成功 */
.ct-success {
    text-align: center;
    padding: 40px 20px;
}

.ct-success-icon {
    margin-bottom: 20px;
}

.ct-success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ct-success);
    margin: 0 0 12px;
}

.ct-success-desc {
    font-size: 14px;
    color: var(--ct-ink-light);
    line-height: 1.8;
    margin: 0 0 28px;
}

.ct-back-link {
    display: inline-block;
    font-size: 13px;
    color: var(--ct-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--ct-accent-lt);
    padding-bottom: 2px;
    transition: border-color .15s;
}

.ct-back-link:hover {
    border-color: var(--ct-accent);
}

/* ── サイドバー ──────────────────────────────────── */
.ct-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ct-sidebar-card {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 24px;
    box-shadow: var(--ct-shadow);
}

.ct-sidebar-icon {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1;
}

.ct-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ct-ink);
    margin: 0 0 8px;
}

.ct-sidebar-desc {
    font-size: 12px;
    color: var(--ct-ink-light);
    line-height: 1.75;
    margin: 0 0 12px;
}

.ct-sidebar-email {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--ct-accent);
    text-decoration: none;
    word-break: break-all;
    background: var(--ct-accent-lt);
    padding: 8px 10px;
    border-radius: 6px;
    transition: background .15s;
}

.ct-sidebar-email:hover {
    background: #bfdbfe;
}

.ct-sidebar-link {
    font-size: 12px;
    color: var(--ct-accent);
    text-decoration: none;
    font-weight: 600;
}

.ct-sidebar-link:hover {
    text-decoration: underline;
}

/* ── SP対応 ──────────────────────────────────────── */
@media (max-width: 768px) {
    .ct-hero {
        padding: 56px 20px 48px;
    }

    .ct-hero-scope {
        display: none;
    }

    .ct-hero-br {
        display: none;
    }

    .ct-section {
        padding: 40px 16px 60px;
    }

    .ct-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ct-form-col {
        padding: 28px 20px;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ct-sidebar {
        order: -1; /* サイドバーをフォームの上に */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ct-sidebar-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .ct-hero-title {
        font-size: 26px;
    }

    .ct-sidebar {
        grid-template-columns: 1fr;
    }

    .ct-sidebar-card:last-child {
        grid-column: auto;
    }
}

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

.ct-form-col,
.ct-sidebar-card {
    animation: ct-fadein .5s ease both;
}

.ct-sidebar-card:nth-child(1) { animation-delay: .05s; }
.ct-sidebar-card:nth-child(2) { animation-delay: .1s; }
.ct-sidebar-card:nth-child(3) { animation-delay: .15s; }