/**
 * 上位記事コンテンツ分析フォーム CSS
 * 新サービスページのデザインシステムに準拠
 */

/* ========================================
   リセット・基本設定
======================================== */
.content-form-container {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    line-height: 1.8;
}

.content-form-container * {
    box-sizing: border-box;
}

/* PC/SPの表示切り替え */
.pc-only {
    display: inline;
}

.sp-only {
    display: none;
}

.sp-break::before {
    content: "";
}

@media (max-width: 1024px) {
    .pc-only {
        display: none;
    }
    
    .sp-only {
        display: inline;
    }
    
    .sp-break::before {
        content: "\A";
        white-space: pre;
    }
}

/* ========================================
   ヒーローセクション
======================================== */
.content-form-hero {
    background: #fff;
    padding: 100px 5% 80px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.content-form-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.content-form-hero-label {
    font-size: 13px;
    font-weight: 600;
    color: #0071e3;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.content-form-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
}

.content-form-hero-desc {
    font-size: clamp(14px, 1.8vw, 17px);
    color: #6e6e73;
    line-height: 1.9;
    margin: 0 0 24px;
}

.content-form-hero-note {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.8;
    padding: 20px 24px;
    background: #f5f5f7;
    border-radius: 12px;
    display: inline-block;
    text-align: left;
    margin: 0;
}

.content-form-hero-highlight {
    color: #0071e3;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .content-form-hero {
        padding: 80px 5% 60px;
    }
    
    .content-form-hero-label {
        font-size: 11px;
        letter-spacing: 0.2em;
    }
    
    .content-form-hero-note {
        padding: 16px 20px;
        font-size: 13px;
    }
}

/* ========================================
   セクション共通
======================================== */
.content-form-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    text-align: center;
    margin: 0 0 48px;
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
    .content-form-section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

/* ========================================
   ご利用の流れ
======================================== */
.content-form-flow {
    background: #f5f5f7;
    padding: 80px 5%;
}

.content-form-flow-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.content-form-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.content-form-step {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.content-form-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.content-form-step-num {
    font-size: 14px;
    font-weight: 700;
    color: #0071e3;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.content-form-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 12px;
}

.content-form-step-desc {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1024px) {
    .content-form-flow {
        padding: 60px 5%;
    }
    
    .content-form-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .content-form-step {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .content-form-step-title {
        font-size: 16px;
    }
    
    .content-form-step-desc {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .content-form-steps {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   対象企業
======================================== */
.content-form-target {
    background: #fff;
    padding: 80px 5%;
}

.content-form-target-inner {
    max-width: 700px;
    margin: 0 auto;
}

.content-form-target-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-form-target-list li {
    font-size: 16px;
    color: #1d1d1f;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
}

.content-form-target-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0071e3;
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .content-form-target {
        padding: 60px 5%;
    }
    
    .content-form-target-list li {
        font-size: 15px;
        padding-left: 28px;
    }
}

/* ========================================
   フォームメインセクション
======================================== */
.content-form-main {
    background: #f5f5f7;
    padding: 80px 5% 120px;
}

.content-form-main-inner {
    max-width: 700px;
    margin: 0 auto;
}

/* フォームブロック */
.content-form-block {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.content-form-block-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 32px;
    padding-left: 16px;
    border-left: 4px solid #0071e3;
}

/* フォームフィールド */
.content-form-field {
    margin-bottom: 28px;
}

.content-form-field:last-child {
    margin-bottom: 0;
}

.content-form-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.content-form-field-note {
    font-size: 13px;
    color: #6e6e73;
    margin: -6px 0 10px;
}

.content-form-required {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #0071e3;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.content-form-field input[type="text"],
.content-form-field input[type="email"],
.content-form-field input[type="url"],
.content-form-field textarea {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    background: #f5f5f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.content-form-field input:focus,
.content-form-field textarea:focus {
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.content-form-field input::placeholder,
.content-form-field textarea::placeholder {
    color: #86868b;
}

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

/* セレクトボックス */
.content-form-select-wrap {
    position: relative;
}

.content-form-select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #6e6e73;
    pointer-events: none;
}

.content-form-field select {
    width: 100%;
    padding: 16px;
    padding-right: 48px;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    background: #f5f5f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.content-form-field select:focus {
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* エラー状態 */
.content-form-field.error input,
.content-form-field.error textarea,
.content-form-field.error select {
    border-color: #ff3b30;
    background: #fff5f5;
}

.content-form-field .error-message {
    color: #ff3b30;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

@media (max-width: 1024px) {
    .content-form-main {
        padding: 60px 5% 100px;
    }
    
    .content-form-block {
        padding: 28px 24px;
        border-radius: 12px;
    }
    
    .content-form-block-title {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .content-form-field label {
        font-size: 14px;
    }
    
    .content-form-field input,
    .content-form-field textarea,
    .content-form-field select {
        padding: 14px;
        font-size: 16px;
    }
}

/* ========================================
   送信ボタン
======================================== */
.content-form-submit {
    text-align: center;
    margin-top: 40px;
}

.content-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #0071e3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-form-button:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.content-form-button:active {
    transform: translateY(0);
}

.content-form-button:disabled {
    background: #86868b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.content-form-button.loading span {
    opacity: 0;
}

.content-form-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: content-spin 0.8s linear infinite;
}

@keyframes content-spin {
    to {
        transform: rotate(360deg);
    }
}

.content-form-submit-note {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .content-form-button {
        width: 100%;
        min-width: auto;
        padding: 16px 32px;
    }
    
    .content-form-submit-note {
        font-size: 13px;
    }
}

/* ========================================
   送信完了
======================================== */
.content-form-success {
    background: #fff;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.content-form-success-icon {
    margin-bottom: 32px;
}

.content-form-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 20px;
}

.content-form-success-desc {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.9;
    margin: 0 0 40px;
}

.content-form-success-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #0071e3;
    background: #fff;
    border: 2px solid #0071e3;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-form-success-btn:hover {
    background: #0071e3;
    color: #fff;
}

@media (max-width: 1024px) {
    .content-form-success {
        padding: 60px 24px;
        border-radius: 12px;
    }
    
    .content-form-success-title {
        font-size: 22px;
    }
    
    .content-form-success-desc {
        font-size: 15px;
    }
}

/* ========================================
   エラーメッセージ
======================================== */
.content-form-error {
    background: #fff5f5;
    border: 1px solid #ff3b30;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.content-form-error p {
    color: #ff3b30;
    font-size: 15px;
    margin: 0;
}
/* ヘッダー非表示 */
.content-analysis-page .l-header,
body.page-template-page-content-analysis .l-header,
body.page-template-page-content-analysis header {
    display: none !important;
}