/* ==========================================================================
   LP: 自由診療 成約要因分析システム
   白ベース・ネイビー主軸 + 暖色アクセント。セクション毎にレイアウト変化。
   ========================================================================== */

:root {
    --lp-navy: #1B2B4B;
    --lp-navy-light: #2A3F6A;
    --lp-blue-gray: #64748B;
    --lp-cyan: #0891B2;
    --lp-cyan-light: #22D3EE;
    --lp-cyan-pale: #ECFEFF;

    --lp-accent: #D4613E;
    --lp-accent-hover: #C0522F;
    --lp-accent-pale: #FFF6F2;

    --lp-white: #FFFFFF;
    --lp-bg: #FFFFFF;
    --lp-bg-alt: #F8FAFC;
    --lp-bg-warm: #FFFBF8;
    --lp-text: #1E293B;
    --lp-text-light: #64748B;
    --lp-text-muted: #94A3B8;
    --lp-border: #E2E8F0;
    --lp-border-light: #F1F5F9;

    --lp-success: #059669;
    --lp-danger: #DC6868;

    --lp-font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    --lp-radius: 8px;
    --lp-radius-lg: 12px;
    --lp-radius-xl: 16px;

    --lp-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --lp-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --lp-shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --lp-shadow-lg: 0 10px 25px rgba(0,0,0,0.06);

    --lp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
.lp-clinic {
    margin: 0;
    padding: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.lp-clinic *, .lp-clinic *::before, .lp-clinic *::after {
    box-sizing: border-box;
}

.lp-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* セクション余白: 重要度でメリハリ */
.lp-section {
    padding: 80px 0;
}

.lp-section--spacious {
    padding: 104px 0;
}

.lp-section--compact {
    padding: 56px 0;
}

.lp-section--alt {
    background: var(--lp-bg-alt);
}

.lp-section--warm {
    background: var(--lp-bg-warm);
}

.lp-section--dark {
    background: linear-gradient(135deg, #1B2B4B 0%, #243656 50%, #1B2B4B 100%);
    color: var(--lp-white);
}

.lp-section-header {
    margin-bottom: 48px;
}

/* セクション番号 (英語ラベルの代替) */
.lp-section-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--lp-text-muted);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.lp-section--dark .lp-section-num {
    color: rgba(255,255,255,0.4);
}

.lp-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--lp-navy);
    line-height: 1.5;
    margin: 0;
}

.lp-section-title--lg {
    font-size: 28px;
}

.lp-section--dark .lp-section-title {
    color: var(--lp-white);
}

.lp-section-desc {
    font-size: 15px;
    color: var(--lp-text-light);
    margin: 12px 0 0;
    line-height: 1.9;
}

.lp-sp-hide { display: inline; }
.lp-sp-only { display: none; }

/* テキストアクセント */
.lp-text-accent {
    color: var(--lp-accent);
}

.lp-text-cyan {
    color: var(--lp-cyan);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: 60px;
    transition: background 0.3s var(--lp-ease), border-color 0.3s var(--lp-ease);
}

.lp-header.is-scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--lp-border);
}

.lp-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.lp-header__logo {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s var(--lp-ease);
}

.lp-header.is-scrolled .lp-header__logo {
    color: var(--lp-navy);
}

.lp-header__cta {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-white);
    background: var(--lp-accent);
    border-radius: var(--lp-radius);
    text-decoration: none;
    transition: background 0.2s var(--lp-ease);
}

.lp-header__cta:hover {
    background: var(--lp-accent-hover);
}

/* --------------------------------------------------------------------------
   Hero — ダークフルブリード + 大型タイポ + はみ出しスクリーンショット
   -------------------------------------------------------------------------- */
.lp-hero {
    padding: 60px 0 0;
    background: var(--lp-navy);
    position: relative;
    overflow: visible;
}

.lp-hero__inner {
    display: flex;
    flex-direction: column;
    padding: 96px 0 0;
}

.lp-hero__copy {
    max-width: 100%;
}

.lp-hero__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lp-hero__title {
    font-size: 44px;
    font-weight: 700;
    color: var(--lp-white);
    line-height: 1.6;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.lp-hero__title-em {
    color: var(--lp-accent);
    font-style: normal;
    position: relative;
}

.lp-hero__title-sub {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    letter-spacing: 0;
}

.lp-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    line-height: 1.9;
    margin: 0 0 40px;
    max-width: 520px;
}

.lp-hero__cta-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 0;
}

.lp-hero__notes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-hero__note {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: 0.02em;
}

.lp-hero__note::before {
    display: none;
}

.lp-hero .lp-container {
    max-width: 1200px;
}

/* Hero Screenshot — 下にはみ出して次セクションに被る */
.lp-hero__mock {
    width: 100%;
    max-width: 960px;
    margin: 72px auto -120px;
    position: relative;
    z-index: 2;
}

.lp-hero__screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--lp-radius-xl);
    box-shadow:
        0 8px 16px rgba(0,0,0,0.12),
        0 32px 64px rgba(0,0,0,0.14);
}

/* はみ出し分を次セクションで吸収 */
.lp-hero + .lp-section,
.lp-hero + .lp-section--spacious {
    padding-top: 160px;
}

/* Features Screenshot */
.lp-features-screenshot {
    margin-bottom: 40px;
    text-align: center;
}

.lp-features-screenshot__img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--lp-radius-xl);
    box-shadow: var(--lp-shadow-lg);
    border: 1px solid var(--lp-border);
}

.lp-features-screenshot__caption {
    font-size: 13px;
    color: var(--lp-text-muted);
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.lp-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--lp-font);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--lp-radius);
    cursor: pointer;
    transition: all 0.2s var(--lp-ease);
}

.lp-btn--primary {
    background: var(--lp-accent);
    color: var(--lp-white);
}

.lp-btn--primary:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 97, 62, 0.25);
}

.lp-btn--outline {
    background: transparent;
    color: var(--lp-navy);
    border: 1.5px solid var(--lp-border);
}

.lp-btn--outline:hover {
    border-color: var(--lp-navy);
}

/* --------------------------------------------------------------------------
   Problem — ボーダーなし、左線アクセント
   -------------------------------------------------------------------------- */
.lp-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-problem-card {
    padding: 24px 24px 24px 28px;
    border-left: 3px solid var(--lp-border);
    transition: border-color 0.3s var(--lp-ease);
}

.lp-problem-card:hover {
    border-left-color: var(--lp-accent);
}

.lp-problem-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--lp-text-muted);
}

.lp-problem-card__icon svg {
    width: 20px;
    height: 20px;
}

.lp-problem-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 8px;
    line-height: 1.5;
}

.lp-problem-card p {
    font-size: 13px;
    color: var(--lp-text-light);
    margin: 0;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Solution Cards — カードスタイル維持だがボーダー色にアクセント
   -------------------------------------------------------------------------- */
.lp-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-solution-card {
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 32px 28px;
    transition: border-color 0.3s var(--lp-ease), box-shadow 0.3s var(--lp-ease);
}

.lp-solution-card:hover {
    border-color: var(--lp-cyan);
    box-shadow: var(--lp-shadow-md);
}

.lp-solution-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-white);
    background: var(--lp-navy);
    border-radius: 50%;
    line-height: 1;
    margin-bottom: 16px;
}

.lp-solution-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 20px;
    line-height: 1.6;
}

.lp-solution-ba {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border-radius: var(--lp-radius);
    overflow: hidden;
}

.lp-solution-ba__item {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--lp-text);
}

.lp-solution-ba__item--before {
    background: #FEF2F2;
}

.lp-solution-ba__item--after {
    background: #ECFDF5;
}

.lp-solution-ba__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.lp-solution-ba__item--before .lp-solution-ba__label {
    color: var(--lp-white);
    background: var(--lp-danger);
}

.lp-solution-ba__item--after .lp-solution-ba__label {
    color: var(--lp-white);
    background: var(--lp-success);
}

.lp-solution-card__note {
    font-size: 13px;
    color: var(--lp-text-light);
    padding: 0;
    line-height: 1.7;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Impact — 斜めグラデ背景、計算式ではなく結果を強調
   -------------------------------------------------------------------------- */
.lp-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.lp-impact-card {
    text-align: center;
    padding: 28px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--lp-radius-lg);
}

.lp-impact-card__number {
    font-size: 40px;
    font-weight: 700;
    color: var(--lp-white);
    line-height: 1.1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.lp-impact-card__unit {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.lp-impact-card__label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
}

.lp-impact-card--result {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
}

.lp-impact-card--result .lp-impact-card__number {
    color: var(--lp-white);
    font-size: 48px;
}

.lp-impact-card--result .lp-impact-card__unit {
    color: rgba(255,255,255,0.9);
}

.lp-impact-card--result .lp-impact-card__label {
    color: rgba(255,255,255,0.75);
}

.lp-impact-result {
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.lp-impact-result strong {
    color: var(--lp-white);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Features — 2列カード、アイコン上配置
   -------------------------------------------------------------------------- */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lp-feature-card {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    transition: border-color 0.3s var(--lp-ease), box-shadow 0.3s var(--lp-ease);
}

.lp-feature-card:hover {
    border-color: var(--lp-cyan);
    box-shadow: var(--lp-shadow-md);
}

.lp-feature-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--lp-navy);
    color: var(--lp-white);
    border-radius: var(--lp-radius);
}

.lp-feature-card__icon svg {
    width: 20px;
    height: 20px;
}

.lp-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 6px;
    line-height: 1.4;
}

.lp-feature-card p {
    font-size: 13px;
    color: var(--lp-text-light);
    margin: 0;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Process — 横ライン接続
   -------------------------------------------------------------------------- */
.lp-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

/* 横ラインを番号の高さで通す */
.lp-process-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 16.6%;
    right: 16.6%;
    height: 1px;
    background: var(--lp-border);
}

.lp-process-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.lp-process-card__num {
    width: 40px;
    height: 40px;
    background: var(--lp-white);
    border: 2px solid var(--lp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    transition: border-color 0.3s var(--lp-ease), color 0.3s var(--lp-ease);
}

.lp-process-card:hover .lp-process-card__num {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}

.lp-process-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 8px;
}

.lp-process-card p {
    font-size: 13px;
    color: var(--lp-text-light);
    margin: 0 0 12px;
    line-height: 1.7;
}

.lp-process-card__time {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--lp-text-muted);
    background: var(--lp-bg-alt);
    padding: 3px 10px;
    border-radius: 100px;
}

/* --------------------------------------------------------------------------
   Trust — アイコン大きめ、背景なし
   -------------------------------------------------------------------------- */
.lp-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.lp-trust-card {
    text-align: center;
    padding: 16px 20px;
}

.lp-trust-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    color: var(--lp-navy);
    opacity: 0.4;
}

.lp-trust-card__icon svg {
    width: 100%;
    height: 100%;
}

.lp-trust-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 6px;
}

.lp-trust-card p {
    font-size: 13px;
    color: var(--lp-text-light);
    margin: 0;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   CTA — 暖色背景
   -------------------------------------------------------------------------- */
.lp-cta {
    padding: 96px 0;
    text-align: center;
    background: var(--lp-bg-warm);
}

.lp-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 8px;
}

.lp-cta__desc {
    font-size: 15px;
    color: var(--lp-text-light);
    margin: 0 0 36px;
    line-height: 1.9;
}

.lp-cta__form {
    max-width: 560px;
    margin: 0 auto 24px;
    padding: 32px;
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-xl);
    box-shadow: var(--lp-shadow-lg);
}

.lp-cta__fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lp-cta__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-navy);
    margin-bottom: 4px;
}

.lp-cta__field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--lp-font);
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-white);
    transition: border-color 0.2s var(--lp-ease);
    box-sizing: border-box;
}

.lp-cta__field input:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px rgba(212,97,62,0.08);
}

.lp-cta__form .lp-btn { width: 100%; }

.lp-cta__notes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-cta__note {
    font-size: 12px;
    color: var(--lp-text-muted);
}

.lp-cta__note-single {
    font-size: 13px;
    color: var(--lp-text-muted);
    text-align: center;
    margin: 0;
}

.lp-cta__thanks {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    text-align: center;
}

.lp-cta__thanks h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 8px;
}

.lp-cta__thanks p {
    font-size: 14px;
    color: var(--lp-text);
    margin: 0;
}

/* --------------------------------------------------------------------------
   FAQ — アコーディオン風
   -------------------------------------------------------------------------- */
.lp-faq {
    max-width: 720px;
    margin: 0 auto;
}

.lp-faq__item {
    padding: 20px 0;
    border-bottom: 1px solid var(--lp-border);
}

.lp-faq__item:first-child {
    border-top: 1px solid var(--lp-border);
}

.lp-faq__q {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-navy);
    margin: 0 0 8px;
    line-height: 1.5;
    padding-left: 0;
    position: relative;
}

.lp-faq__q::before {
    content: 'Q.';
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-accent);
    margin-right: 8px;
}

.lp-faq__a {
    font-size: 14px;
    color: var(--lp-text-light);
    margin: 0;
    line-height: 1.8;
    padding-left: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.lp-footer {
    padding: 24px 0;
    border-top: 1px solid var(--lp-border);
    text-align: center;
    font-size: 12px;
    color: var(--lp-text-muted);
}

.lp-footer p { margin: 0; }

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.lp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--lp-ease), transform 0.5s var(--lp-ease);
}

.lp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .lp-sp-hide { display: none; }
    .lp-sp-only { display: inline; }

    .lp-section { padding: 56px 0; }
    .lp-section--spacious { padding: 72px 0; }

    .lp-hero__inner {
        padding: 56px 0 0;
    }

    .lp-hero__title {
        font-size: 26px;
    }

    .lp-hero__title-sub {
        font-size: 18px;
    }

    .lp-hero__cta-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lp-hero__mock {
        margin: 48px auto -80px;
    }

    .lp-hero + .lp-section,
    .lp-hero + .lp-section--spacious {
        padding-top: 120px;
    }

    .lp-problem-grid,
    .lp-solution-grid,
    .lp-trust-grid {
        grid-template-columns: 1fr;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-process-grid {
        grid-template-columns: 1fr;
    }

    .lp-process-grid::before { display: none; }

    .lp-cta__fields {
        grid-template-columns: 1fr;
    }

    .lp-cta__notes {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .lp-section-title { font-size: 20px; }
    .lp-section-title--lg { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
