/* =====================================================================
   lp-common.css — pigeon workflow LP (HR / Sales 共通スタイル)
   --------------------------------------------------------------------
   - 既存 loftal.jp の style.css / hp-theme.css を読み込んだ上で重ねる前提
   - LP固有の `.pwlp-` 接頭辞でスコープを限定 (既存ページに影響しない)
   - モバイル 375px 幅で横スクロールしないことを最優先
   - prefers-reduced-motion 配慮済み
   ===================================================================== */

.pigeon-wf-lp-main {
    color: #1F2937;
    font-family: "Inter", "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.75;
    overflow-x: hidden; /* モバイル横スクロール完全防止 (table のはみ出しは .pwlp-table-wrap--scroll で個別対応) */
}

.pwlp-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== セクション共通 ===== */
.pwlp-section {
    padding: 64px 0;
    background: #FFFFFF;
}
.pwlp-section--alt {
    background: #F8FAFC;
}
.pwlp-section--accent {
    background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
}
.pwlp-section--cta {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
}
.pwlp-section--cta .pwlp-h2,
.pwlp-section--cta .pwlp-h3,
.pwlp-section--cta p,
.pwlp-section--cta li {
    color: #FFFFFF;
}

/* ===== 見出し ===== */
.pwlp-h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2563EB;
    letter-spacing: 0.02em;
}
.pwlp-h2--center {
    text-align: center;
    border-bottom: none;
}
.pwlp-h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 36px 0 16px;
    color: #0F172A;
}
.pwlp-section--cta .pwlp-h3 {
    color: #FFFFFF;
}

.pwlp-section p,
.pwlp-section li {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 14px;
}

/* ===== Hero ===== */
.pwlp-hero {
    padding: 80px 0 64px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    position: relative;
    overflow: hidden;
}
.pwlp-hero--hr {
    background: linear-gradient(180deg, #FFFFFF 0%, #FEF3C7 60%, #FDE68A 100%);
}
.pwlp-hero--sales {
    background: linear-gradient(180deg, #FFFFFF 0%, #DBEAFE 60%, #BFDBFE 100%);
}
.pwlp-hero__eye {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #2563EB;
    margin: 0 0 16px;
    font-weight: 600;
}
.pwlp-hero__title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.35;
    margin: 0 0 24px;
    color: #0F172A;
    letter-spacing: 0.01em;
}
.pwlp-hero__lead {
    font-size: 17px;
    line-height: 1.85;
    margin: 0 0 16px;
    color: #334155;
}
.pwlp-hero__note {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 32px;
    line-height: 1.65;
}
.pwlp-hero__badges {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 8px;
}
.pwlp-hero__badges li {
    font-size: 14px;
    color: #475569;
    padding-left: 24px;
    position: relative;
    margin: 0;
}
.pwlp-hero__badges li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563EB;
    font-size: 12px;
    line-height: 1.7;
}

/* ===== CTA ボタン ===== */
.pwlp-cta-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0;
    max-width: 480px;
}
.pwlp-cta-group--center {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    text-align: center;
}
.pwlp-cta-group--end {
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}
.pwlp-cta-sub {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 8px;
    line-height: 1.6;
}
.pwlp-section--cta .pwlp-cta-sub {
    color: #CBD5E1;
}

.pwlp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    border: 2px solid transparent;
}
.pwlp-btn--primary {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.pwlp-btn--primary:hover {
    background: #1D4ED8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    color: #FFFFFF;
    text-decoration: none;
}
.pwlp-btn--primary:active {
    transform: translateY(1px);
}
.pwlp-btn--outline {
    background: transparent;
    color: #2563EB;
    border-color: #2563EB;
}
.pwlp-btn--outline:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1D4ED8;
    text-decoration: none;
}
.pwlp-btn--lg {
    min-height: 64px;
    font-size: 18px;
    padding: 20px 28px;
}

/* CTA group end (ダーク背景) */
.pwlp-section--cta .pwlp-btn--outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.pwlp-section--cta .pwlp-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* ===== 引用ブロック ===== */
.pwlp-quote {
    border-left: 4px solid #2563EB;
    background: #F1F5F9;
    padding: 20px 24px;
    margin: 24px 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.85;
    border-radius: 0 8px 8px 0;
}

/* ===== リスト ===== */
.pwlp-list {
    padding-left: 0;
    list-style: none;
    margin: 16px 0 24px;
}
.pwlp-list > li {
    position: relative;
    padding-left: 26px;
    margin: 0 0 10px;
    line-height: 1.7;
}
.pwlp-list > li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563EB;
    font-size: 12px;
    line-height: 1.85;
}
.pwlp-list--ordered {
    counter-reset: pwlp-counter;
}
.pwlp-list--ordered > li {
    counter-increment: pwlp-counter;
    padding-left: 38px;
}
.pwlp-list--ordered > li::before {
    content: counter(pwlp-counter);
    background: #2563EB;
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    top: 4px;
    left: 0;
}
.pwlp-list--checked > li::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #10B981;
    border-radius: 50%;
    top: 8px;
    left: 4px;
    position: absolute;
    box-shadow: inset 0 0 0 3px #FFFFFF, 0 0 0 2px #10B981;
}

/* ===== テーブル ===== */
.pwlp-table-wrap {
    margin: 16px 0 24px;
}
.pwlp-table-wrap--scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pwlp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.pwlp-table th,
.pwlp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #E5E7EB;
    text-align: left;
    vertical-align: top;
}
.pwlp-table thead th {
    background: #F1F5F9;
    color: #0F172A;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.pwlp-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pwlp-table th.num {
    text-align: right;
}
.pwlp-table tbody tr:hover {
    background: #F8FAFC;
}
.pwlp-table__total td {
    background: #FEF3C7;
    font-weight: 700;
}
.pwlp-table--compare th[scope="row"] {
    background: #F8FAFC;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
}
.pwlp-table--compare td:nth-child(2) {
    background: #EFF6FF;
}
.pwlp-table--pricing tbody tr.pwlp-recommended td {
    background: #FEF3C7;
    border-top: 2px solid #F59E0B;
    border-bottom: 2px solid #F59E0B;
}

/* ===== ユースケースカード ===== */
.pwlp-usecase {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.pwlp-section--alt .pwlp-usecase {
    background: #FFFFFF;
}
.pwlp-usecase__effect {
    margin-top: 16px;
    padding: 12px 16px;
    background: #DCFCE7;
    border-left: 4px solid #10B981;
    color: #064E3B;
    border-radius: 0 6px 6px 0;
}

/* ===== コードブロック (営業LP 実出力例) ===== */
.pwlp-codeblock {
    background: #0F172A;
    color: #E2E8F0;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 16px 0 24px;
    white-space: pre;
}

/* ===== 脚注 ===== */
.pwlp-footnote {
    font-size: 12px;
    color: #64748B;
    line-height: 1.65;
    margin: 12px 0 24px;
}

/* ===== 動画埋め込み ===== */
.pwlp-video-wrap {
    margin: 24px 0;
    text-align: center;
}
.pwlp-video {
    width: 100%;
    max-width: 720px;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #0F172A;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}
.pwlp-video__caption {
    font-size: 13px;
    color: #64748B;
    margin: 12px 0 0;
    text-align: center;
}

/* ===== FAQ accordion (<details> ベース・JS不要) ===== */
.pwlp-faq {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.pwlp-faq__item {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.pwlp-faq__q {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    color: #0F172A;
    list-style: none;
    position: relative;
    padding-right: 48px;
    font-size: 15px;
    line-height: 1.55;
}
.pwlp-faq__q::-webkit-details-marker {
    display: none;
}
.pwlp-faq__q::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563EB;
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s ease;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pwlp-faq__item[open] .pwlp-faq__q::after {
    content: "−";
}
.pwlp-faq__a {
    padding: 0 20px 20px;
    color: #334155;
    border-top: 1px solid #F1F5F9;
    padding-top: 16px;
}
.pwlp-faq__a p,
.pwlp-faq__a li {
    font-size: 15px;
    line-height: 1.8;
}

/* ===== モバイル対応 (375px幅で横スクロールしない) ===== */
@media (max-width: 768px) {
    .pwlp-wrap {
        padding: 0 16px;
    }
    .pwlp-section {
        padding: 48px 0;
    }
    .pwlp-hero {
        padding: 48px 0 40px;
    }
    .pwlp-hero__title {
        font-size: 26px;
        line-height: 1.4;
    }
    .pwlp-h2 {
        font-size: 22px;
    }
    .pwlp-h3 {
        font-size: 17px;
        margin-top: 28px;
    }
    .pwlp-hero__lead {
        font-size: 15px;
    }
    .pwlp-section p,
    .pwlp-section li {
        font-size: 15px;
    }
    .pwlp-cta-group {
        max-width: 100%;
    }
    .pwlp-btn {
        font-size: 15px;
        padding: 14px 18px;
        min-height: 52px;
    }
    .pwlp-btn--lg {
        font-size: 16px;
        padding: 18px 22px;
        min-height: 60px;
    }
    .pwlp-usecase {
        padding: 20px 18px;
    }
    /* モバイルではテーブルを横スクロール可能に */
    .pwlp-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pwlp-table {
        min-width: 480px;
    }
    .pwlp-table--compare,
    .pwlp-table--pricing {
        min-width: 720px;
    }
    .pwlp-codeblock {
        font-size: 12px;
        padding: 12px 14px;
    }
    .pwlp-faq__q {
        font-size: 14px;
        padding: 14px 44px 14px 16px;
    }
    .pwlp-faq__a {
        padding: 14px 16px 16px;
    }
}

@media (max-width: 480px) {
    .pwlp-hero__title {
        font-size: 22px;
    }
    .pwlp-h2 {
        font-size: 20px;
    }
    .pwlp-section {
        padding: 40px 0;
    }
    .pwlp-hero {
        padding: 40px 0 32px;
    }
}

/* ===== LP ビジュアル画像 (Hero / 図解・HR LP で追加) ===== */
.pwlp-hero__visual {
    margin: 36px 0 0;
}
.pwlp-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.pwlp-figure {
    margin: 24px 0 28px;
}
.pwlp-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.pwlp-figure--usecase {
    margin: 4px 0 20px;
}
.pwlp-figure__cap {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin: 10px 0 0;
    text-align: center;
}

/* ===== アクセシビリティ (prefers-reduced-motion) ===== */
@media (prefers-reduced-motion: reduce) {
    .pwlp-btn,
    .pwlp-faq__q::after {
        transition: none;
    }
    .pwlp-btn--primary:active {
        transform: none;
    }
}

/* ===== フォーカスリング (キーボード操作・WCAG準拠) ===== */
.pwlp-btn:focus-visible,
.pwlp-faq__q:focus-visible {
    outline: 3px solid #FBBF24;
    outline-offset: 2px;
}
