/**
 * Lナビ お問い合わせ・資料ダウンロード ページ共通CSS
 * 対象: page-contact.php / page-document-request.php
 * 読み込み: functions.php（条件分岐）
 */

/* ================================================================
   SWELL レイアウトオーバーライド（共通）
   ================================================================ */
.l-topTitleArea,
.p-pageTitle,
.p-breadcrumb { display: none !important; }

#sidebar, .l-sidebar, .l-fixSide { display: none !important; }
.l-content, .l-content__inner, .l-mainContent, .l-mainContent__inner, .l-article {
    max-width: 100% !important; width: 100% !important;
    flex: 0 0 100% !important; float: none !important;
}
.l-content__inner { display: block !important; }
.l-mainContent, .l-article, .l-content { padding-top: 0 !important; margin-top: 0 !important; }
.post_content { padding-top: 0 !important; }


/* ================================================================
   共通 2カラムレイアウト
   ================================================================ */
.lnavi-dlp,
.lnavi-contact {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.lnavi-dlp__row,
.lnavi-contact__row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.lnavi-dlp__left,
.lnavi-contact__left {
    flex: 0 0 340px;
}
.lnavi-dlp__right,
.lnavi-contact__right {
    flex: 1;
    min-width: 0;
}


/* ================================================================
   共通 左カラム要素
   ================================================================ */

/* ── ラベル（DOWNLOAD / CONTACT） ── */
.lnavi-dlp__label,
.lnavi-contact__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    color: #06C755;
    margin-bottom: 4px;
}

/* ── ページ見出し ── */
.lnavi-dlp__title,
.lnavi-contact__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
}

/* ── 信頼バッジ ── */
.lnavi-dlp__trust,
.lnavi-contact__trust {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f8f9fb;
    border-radius: 8px;
    font-size: 11px;
    color: #888;
    line-height: 1.7;
}
.lnavi-dlp__trust strong {
    color: #555;
    font-weight: 600;
}


/* ================================================================
   CF7 フォームスタイル（共通・スマート版）
   ================================================================ */
.wpcf7 {
    max-width: 100%;
    margin: 0;
    padding: 28px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.wpcf7 label {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wpcf7 .required {
    color: #fff;
    background: #e53935;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background: #f8f9fb;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #06C755;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, .1);
    background: #fff;
}

.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    margin: 24px 0 0;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #06C755;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .3px;
}
.wpcf7 input[type="submit"]:hover {
    background: #05b34d;
    transform: translateY(-1px);
}

/* ── バリデーションエラー（個別フィールド） ── */
.wpcf7 .wpcf7-not-valid-tip {
    color: #e53935;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wpcf7 .wpcf7-not-valid-tip::before {
    content: '⚠';
    font-size: 12px;
}

/* バリデーションエラー時のフィールド枠 */
.wpcf7 .wpcf7-not-valid {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .08) !important;
}

/* ── CF7 レスポンス出力（フォーム全体メッセージ） ── */
.wpcf7 .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    border: none !important;
}

/* 成功メッセージ非表示（thanksページにリダイレクトするため） */
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    display: none !important;
}

/* エラーメッセージ */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 500;
}

/* ── CF7 送信中スピナー非表示 ── */
.wpcf7 .wpcf7-spinner {
    display: none !important;
}

/* 送信中のボタン状態 */
.wpcf7 form.submitting input[type="submit"] {
    opacity: .6;
    pointer-events: none;
    position: relative;
}


/* ================================================================
   サンクスページ共通（.lnavi-thanks__*）
   ================================================================ */
.lnavi-thanks {
    max-width: 560px !important;
    margin: 0 auto 60px !important;
    padding: 56px 20px 0 !important;
}
.lnavi-thanks__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* ── 完了メッセージ（上部ヘッダー） ── */
.lnavi-thanks__complete {
    text-align: center;
    padding: 48px 32px 40px;
    background: linear-gradient(135deg, #f0faf4 0%, #f8fdfb 100%);
}
.lnavi-thanks__complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #06C755;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(6, 199, 85, .25);
}
.lnavi-thanks__complete-icon svg { width: 28px; height: 28px; }
.lnavi-thanks__heading {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 12px !important;
    letter-spacing: .02em;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.lnavi-thanks__lead {
    font-size: 13px; color: #888;
    line-height: 1.8; margin: 0;
}

/* ── 下部セクション ── */
.lnavi-thanks__dl-section {
    padding: 28px 32px 28px;
}

/* ── ファイルカード ── */
.lnavi-thanks__dl-file {
    display: flex; align-items: center;
    background: #f8f9fb; border: 1px solid #eef0f4;
    border-radius: 8px; padding: 16px 20px; margin-bottom: 16px;
}
.lnavi-thanks__dl-file-icon {
    flex-shrink: 0; width: 42px; height: 42px;
    background: #dc2626; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; margin-right: 16px;
}
.lnavi-thanks__dl-file-icon span { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.lnavi-thanks__dl-file-info { flex: 1; min-width: 0; }
.lnavi-thanks__dl-file-name {
    font-size: 14px; font-weight: 600; color: #1a1a2e; margin: 0 0 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lnavi-thanks__dl-file-meta { font-size: 11px; color: #999; margin: 0; }

/* ── ダウンロードボタン ── */
.lnavi-thanks__dl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; background: #333 !important; color: #fff !important;
    font-size: 15px; font-weight: 600; padding: 15px 24px;
    border-radius: 8px; text-decoration: none !important;
    transition: background .2s, transform .15s; letter-spacing: .02em;
}
.lnavi-thanks__dl-btn:hover { background: #555 !important; color: #fff !important; transform: translateY(-1px); }
.lnavi-thanks__dl-btn--green { background: #06C755 !important; }
.lnavi-thanks__dl-btn--green:hover { background: #05b34d !important; }
.lnavi-thanks__dl-btn svg { margin-right: 8px; flex-shrink: 0; }

/* ── お問い合わせ用：情報カード ── */
.lnavi-thanks__info-row {
    display: flex; gap: 16px;
}
.lnavi-thanks__info-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fb;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 16px;
}
.lnavi-thanks__info-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.lnavi-thanks__info-label {
    font-size: 11px;
    color: #999;
    margin: 0 0 2px;
    font-weight: 500;
}
.lnavi-thanks__info-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: .02em;
}

/* ── メール通知ストリップ ── */
.lnavi-thanks__notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #f8f9fb;
    font-size: 12px;
    color: #999;
    border-top: 1px solid rgba(0,0,0,.04);
}
.lnavi-thanks__notice svg {
    flex-shrink: 0;
    color: #bbb;
}

/* ── フッター ── */
.lnavi-thanks__footer { text-align: center; margin-top: 40px; }
.lnavi-thanks__home-link {
    font-size: 14px; color: #06C755 !important;
    text-decoration: none !important; font-weight: 500;
}
.lnavi-thanks__home-link:hover { text-decoration: underline !important; }

/* ── レスポンシブ ── */
@media (max-width: 600px) {
    .lnavi-thanks { padding: 32px 16px 0 !important; }
    .lnavi-thanks__complete { padding: 36px 20px 32px; }
    .lnavi-thanks__dl-section { padding: 20px 16px 20px; }
    .lnavi-thanks__info-row { flex-direction: column; gap: 10px; }
    .lnavi-thanks__notice { padding: 12px 16px; }
    .lnavi-thanks__heading { font-size: 19px !important; }
}


/* ================================================================
   資料ダウンロードページ固有（.lnavi-dlp__*）
   ================================================================ */

/* ── 資料カード ── */
.lnavi-dlp__card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.lnavi-dlp__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 84px;
    background: #fff;
    border: 1px solid #d8dce4;
    border-radius: 3px;
    box-shadow: 2px 3px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
}
.lnavi-dlp__thumb::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent #eef0f4 transparent transparent;
}
.lnavi-dlp__thumb-bar {
    width: 100%; height: 2px;
    background: #06C755; border-radius: 2px;
}
.lnavi-dlp__thumb-logo {
    font-size: 11px; font-weight: 800;
    color: #1a1a2e; letter-spacing: -.02em;
}
.lnavi-dlp__thumb-sub {
    font-size: 6px; font-weight: 600;
    color: #555; text-align: center; line-height: 1.4;
}
.lnavi-dlp__card-body { flex: 1; min-width: 0; }
.lnavi-dlp__card-title {
    font-size: 13px; font-weight: 700;
    color: #1a1a2e; margin: 0 0 4px; line-height: 1.4;
}
.lnavi-dlp__card-desc {
    font-size: 11px; color: #888;
    margin: 0; line-height: 1.5;
}
.lnavi-dlp__card-tags {
    display: flex; gap: 5px;
    margin-top: 8px; flex-wrap: wrap;
}
.lnavi-dlp__tag {
    font-size: 9px; color: #06C755;
    background: rgba(6,199,85,.08);
    padding: 2px 8px; border-radius: 20px; font-weight: 600;
}

/* ── 訴求ポイント ── */
.lnavi-dlp__stats {
    display: flex;
    background: #f8f9fb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.lnavi-dlp__stat {
    flex: 1; text-align: center; padding: 10px 4px;
}
.lnavi-dlp__stat + .lnavi-dlp__stat {
    border-left: 1px solid #eaedf2;
}
.lnavi-dlp__stat-num {
    display: block; font-size: 18px;
    font-weight: 800; color: #06C755; line-height: 1.2;
}
.lnavi-dlp__stat-num small {
    font-size: 10px; font-weight: 600;
}
.lnavi-dlp__stat-label {
    font-size: 9px; color: #999;
    margin-top: 2px; display: block;
}

/* ── こんな方へ ── */
.lnavi-dlp__who {
    font-size: 11px; font-weight: 700;
    color: #1a1a2e; margin: 0 0 8px;
}
.lnavi-dlp__benefits {
    list-style: none; margin: 0; padding: 0;
}
.lnavi-dlp__benefits li {
    font-size: 12px; color: #555;
    padding: 5px 0; display: flex;
    align-items: center; gap: 8px; line-height: 1.5;
}
.lnavi-dlp__benefits li::before {
    content: '✓'; color: #06C755;
    font-weight: 700; font-size: 11px; flex-shrink: 0;
}

/* ── フォームカード ── */
.lnavi-dlp__form-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: .15em; color: #999; margin-bottom: 8px;
}
.lnavi-dlp__form-heading {
    font-size: 16px !important; font-weight: 700 !important;
    color: #1a1a2e !important; margin: 0 0 16px !important;
    padding: 0 !important; border: none !important; background: none !important;
}
.lnavi-dlp__form-card {
    background: none; border-radius: 0; padding: 0;
}


/* ================================================================
   お問い合わせページ固有（.lnavi-contact__*）
   ================================================================ */

/* ── サブテキスト ── */
.lnavi-contact__subtitle {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ── 強みバッジ ── */
.lnavi-contact__strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.lnavi-contact__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    background: #f0f7f1;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── 会社概要テーブル ── */
.lnavi-contact__info {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    font-size: 12px;
    background: #f8f9fb;
    border-radius: 10px;
    overflow: hidden;
}
.lnavi-contact__info th,
.lnavi-contact__info td {
    padding: 10px 16px;
    vertical-align: top;
    line-height: 1.6;
    border: none;
}
.lnavi-contact__info tr + tr th,
.lnavi-contact__info tr + tr td {
    border-top: 1px solid rgba(0,0,0,.04);
}
.lnavi-contact__info th {
    color: #999; font-weight: 500;
    width: 54px; white-space: nowrap;
    font-size: 11px; letter-spacing: .03em;
}
.lnavi-contact__info td {
    color: #333; font-weight: 500;
}


/* ================================================================
   レスポンシブ
   ================================================================ */
@media (max-width: 768px) {
    .lnavi-dlp__row,
    .lnavi-contact__row {
        flex-direction: column;
        gap: 24px;
    }
    .lnavi-dlp__left,
    .lnavi-contact__left {
        flex: none;
        width: 100%;
    }
    .lnavi-dlp,
    .lnavi-contact { padding: 24px 16px 48px; }

    .lnavi-dlp__title,
    .lnavi-contact__title { font-size: 18px !important; }

    .lnavi-dlp__form-card { padding: 20px 16px; }
}

@media (max-width: 600px) {
    .wpcf7 label { font-size: 13px; }
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 select,
    .wpcf7 textarea { font-size: 13px; padding: 9px 10px; }
}
