/**
 * LP1: 救急初期対応セミナー専用CSS
 * - 他ページに影響しないよう .lp1-* で名前空間を限定
 * - 既存 tokens.css / base.css / layout.css / components.css の上に乗せる
 */

/* =========================
   CSS Variables (LP1 Scope)
========================= */
.lp1-page {
    --lp1-navy: #1e3a5f;
    --lp1-navy-dark: #0d1f35;
    --lp1-navy-light: #2a4a6f;
    --lp1-accent: #00a86b;
    --lp1-accent-hover: #00875a;
    --lp1-bg-light: #f8f9fa;
    --lp1-bg-alt: #eef1f4;
    --lp1-text: #333;
    --lp1-text-muted: #666;
    --lp1-white: #fff;
    --lp1-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --lp1-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --lp1-radius: 12px;
    --lp1-radius-lg: 24px;
    --lp1-transition: 0.3s ease;
}

.lp1-page {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    color: var(--lp1-text);
    line-height: 1.8;
    overflow-x: hidden;
}

.lp1-page * {
    box-sizing: border-box;
}

/* =========================
   Fixed CTA (PC: Top Right, SP: Bottom Bar)
========================= */
.lp1-sticky-top {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.lp1-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--lp1-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
}

@media (min-width: 769px) {
    .lp1-sticky-top {
        display: block;
    }

    .lp1-sticky-bottom {
        display: none;
    }
}

/* ---- Sticky CTA visibility control (desktop only, fail-safe) ---- */
@media (min-width: 769px) {

    /* JSが有効なときだけ、初期状態を隠す（JS無効なら常時表示＝フェイルセーフ） */
    html.js .lp1-sticky-top {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .25s ease, transform .25s ease;
    }

    html.js .lp1-sticky-top.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* motion配慮 */
    @media (prefers-reduced-motion: reduce) {
        html.js .lp1-sticky-top {
            transition: none;
        }
    }
}

/* =========================
   CTA Button Styles
========================= */
.lp1-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #00a86b 0%, #00875a 100%);
    color: var(--lp1-white);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 168, 107, 0.3);
    transition: all var(--lp1-transition);
    white-space: nowrap;
}

.lp1-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 168, 107, 0.4);
    background: linear-gradient(135deg, #00c77a 0%, #00a86b 100%);
}

.lp1-cta-btn--large {
    font-size: 1.5rem;
    /* Further increased size */
    padding: 24px 64px;
    /* Further increased padding */
    min-height: 80px;
}

@media (max-width: 480px) {
    .lp1-cta-btn--large {
        width: min(92vw, 420px);
        justify-content: center;
        padding: 18px 24px;
        font-size: 1.125rem;
    }
}

.lp1-cta-btn--sticky {
    font-size: 0.9rem;
    padding: 12px 24px;
}

/* =========================
   Hero Section
========================= */
.lp1-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 100px;
    background: linear-gradient(135deg, var(--lp1-navy) 0%, var(--lp1-navy-dark) 100%);
    overflow: hidden;
}

.lp1-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
}

@media (max-width: 768px) {
    .lp1-hero__bg {
        /* モバイルで右側の医師たち（女性研修医・男性指導医）が見えるように位置調整 */
        background-position: 80% center;
    }
}

.lp1-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* 上部は顔を明るくするため透明に、下部はテキスト可読性のため少し残す */
    background: linear-gradient(180deg,
            rgba(7, 14, 22, 0) 0%,
            transparent 40%,
            transparent 80%,
            rgba(7, 14, 22, 0.4) 100%);
}

.lp1-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    color: var(--lp1-white);
    padding-top: clamp(60px, 20vh, 160px);
    width: 100%;
    /* Shift content to the left to avoid person on the right */
    margin-left: -5%;
}

@media (max-width: 768px) {
    .lp1-hero__content {
        margin-left: 0;
        /* Reset on mobile */
    }
}

/* New Panel Wrapper */
.lp1-hero__panel {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
    padding: 32px 24px;
    border-radius: var(--lp1-radius-lg);
    z-index: 1;
}

.lp1-hero__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--lp1-radius-lg);

    /* Darker center, fading to transparent edges */
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.15) 85%,
            transparent 100%);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* H1 Emphasis */
.lp1-hero__em {
    font-size: 1.4em;
    color: #c3f9e8;
    /* faint mint white */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 168, 107, 0.2);
}

@media (max-width: 480px) {
    .lp1-hero__panel {
        width: min(92vw, 760px);
        padding: 24px 16px;
    }
}

/* Old content::before removed */

.lp1-hero__brand {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--lp1-white);
    opacity: 0.9;
    transition: opacity var(--lp1-transition);
}

.lp1-hero__brand:hover {
    opacity: 1;
}

.lp1-hero__brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lp1-hero__brand span {
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .lp1-hero__brand {
        top: 12px;
        left: 12px;
    }

    .lp1-hero__brand img {
        height: 26px;
    }

    .lp1-hero__brand span {
        font-size: 0.875rem;
    }
}

.lp1-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 24px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 4px 32px rgba(0, 0, 0, 0.4);
}

.lp1-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    margin: 0 0 32px;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.lp1-hero__features {
    list-style: none;
    padding: 0;
    margin: 40px 0 40px;
    text-align: left;
    display: inline-block;
}

.lp1-hero__features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.lp1-hero__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lp1-accent);
    font-weight: bold;
}

.lp1-hero__cta-wrap {
    margin: 40px 0 32px;
    /* Increased margin */
}

.lp1-hero__note {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    /* 明示的 */
}

/* =========================
   Section Base Styles
========================= */
.lp1-section {
    padding: 80px 24px;
}

.lp1-section--alt {
    background: var(--lp1-bg-alt);
}

.lp1-section--navy {
    background: var(--lp1-navy);
    color: var(--lp1-white);
}

.lp1-section__inner {
    max-width: 960px;
    margin: 0 auto;
}

.lp1-section__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px;
    line-height: 1.4;
}

.lp1-section__title--left {
    text-align: left;
}

/* =========================
   Emphasis Band (強調帯)
========================= */
.lp1-emphasis {
    background: var(--lp1-white);
    border-left: 4px solid var(--lp1-accent);
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0 var(--lp1-radius) var(--lp1-radius) 0;
    box-shadow: var(--lp1-shadow);
}

.lp1-emphasis--center {
    text-align: center;
    border-left: none;
    border-bottom: 4px solid var(--lp1-accent);
    border-radius: var(--lp1-radius);
}

/* =========================
   3 Cards Grid (解決策)
========================= */
.lp1-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .lp1-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lp1-card {
    background: var(--lp1-white);
    padding: 32px 24px;
    border-radius: var(--lp1-radius);
    box-shadow: var(--lp1-shadow);
    text-align: center;
    transition: transform var(--lp1-transition);
}

.lp1-card:hover {
    transform: translateY(-4px);
}

.lp1-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--lp1-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lp1-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.lp1-card__text {
    font-size: 0.9375rem;
    color: var(--lp1-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* =========================
   3 Pillars (2-Column Layout)
========================= */
.lp1-pillar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .lp1-pillar {
        grid-template-columns: 1fr 1fr;
    }

    .lp1-pillar--reverse {
        direction: rtl;
    }

    .lp1-pillar--reverse>* {
        direction: ltr;
    }
}

.lp1-pillar__content {
    padding: 0;
}

.lp1-pillar__badge {
    display: inline-block;
    background: var(--lp1-navy);
    color: var(--lp1-white);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.lp1-pillar__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.5;
}

.lp1-pillar__text {
    font-size: 1rem;
    color: var(--lp1-text-muted);
    margin: 0;
    line-height: 1.8;
}

.lp1-pillar__image {
    border-radius: var(--lp1-radius-lg);
    overflow: hidden;
    box-shadow: var(--lp1-shadow-lg);
}

.lp1-pillar__image img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================
   Target Audience List
========================= */
.lp1-target-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.lp1-target-list li {
    position: relative;
    padding: 20px 24px 20px 56px;
    background: var(--lp1-white);
    border-radius: var(--lp1-radius);
    box-shadow: var(--lp1-shadow);
    font-size: 1rem;
}

.lp1-target-list li::before {
    content: "→";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp1-accent);
    font-size: 1.25rem;
    font-weight: bold;
}

/* =========================
   Steps (参加の流れ)
========================= */
.lp1-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    counter-reset: step;
}

@media (min-width: 640px) {
    .lp1-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lp1-step {
    position: relative;
    text-align: center;
    padding: 32px 16px;
}

.lp1-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--lp1-navy);
    color: var(--lp1-white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
}

.lp1-step__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.lp1-step__text {
    font-size: 0.9375rem;
    color: var(--lp1-text-muted);
    margin: 0;
}

/* =========================
   Voices Slider (参加者の声)
========================= */
.lp1-voices-slider {
    position: relative;
    overflow: hidden;
}

.lp1-voices-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 16px 0 24px;
    -webkit-overflow-scrolling: touch;
}

.lp1-voices-track::-webkit-scrollbar {
    height: 6px;
}

.lp1-voices-track::-webkit-scrollbar-track {
    background: var(--lp1-bg-alt);
    border-radius: 3px;
}

.lp1-voices-track::-webkit-scrollbar-thumb {
    background: var(--lp1-navy-light);
    border-radius: 3px;
}

.lp1-voice-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--lp1-white);
    border-radius: var(--lp1-radius);
    padding: 24px;
    box-shadow: var(--lp1-shadow);
}

.lp1-voice-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lp1-voice-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lp1-bg-alt);
    flex-shrink: 0;
}

.lp1-voice-card__role {
    font-size: 0.875rem;
    color: var(--lp1-text-muted);
}

.lp1-voice-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* =========================
   FAQ Accordion
========================= */
.lp1-faq-list {
    display: grid;
    gap: 16px;
}

.lp1-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--lp1-radius);
    overflow: hidden;
}

.lp1-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--lp1-white);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

.lp1-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp1-faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--lp1-navy);
    transition: transform var(--lp1-transition);
}

.lp1-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.lp1-faq-item__answer {
    padding: 0 24px 20px;
    font-size: 0.9375rem;
    color: var(--lp1-text-muted);
    line-height: 1.8;
}

/* =========================
   Strong CTA Block
========================= */
.lp1-strong-cta {
    background: linear-gradient(135deg, var(--lp1-navy) 0%, var(--lp1-navy-dark) 100%);
    color: var(--lp1-white);
    text-align: center;
    padding: 64px 24px;
    border-radius: var(--lp1-radius-lg);
    margin: 48px 0;
}

.lp1-strong-cta__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 16px;
}

.lp1-strong-cta__text {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 32px;
}

/* =========================
   Final CTA Section
========================= */
.lp1-final-cta {
    background: var(--lp1-navy);
    color: var(--lp1-white);
    text-align: center;
    padding: 100px 24px;
}

.lp1-final-cta__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.4;
}

.lp1-final-cta__text {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 40px;
}

.lp1-final-cta__note {
    font-size: 0.8125rem;
    opacity: 0.7;
    margin: 32px 0 0;
}

/* =========================
   Footer (Compact)
========================= */
.lp1-footer {
    background: var(--lp1-navy-dark);
    color: var(--lp1-white);
    padding: 40px 24px;
    text-align: center;
}

.lp1-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.lp1-footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
}

.lp1-footer__links a:hover {
    color: var(--lp1-white);
}

.lp1-footer__copy {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 768px) {
    .lp1-section {
        padding: 60px 16px;
    }

    .lp1-hero {
        min-height: auto;
        padding: 100px 16px 120px;
    }

    .lp1-pillar {
        margin-bottom: 48px;
    }

    .lp1-voice-card {
        flex: 0 0 280px;
    }

    /* SPボトムCTA用のスペーサー（safe-areaも考慮） */
    .lp1-page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .lp1-cta-btn--large {
        font-size: 1rem;
        padding: 16px 32px;
    }

    .lp1-voice-card {
        flex: 0 0 260px;
    }
}

/* ===== Voices avatar (LP1) ===== */
.lp1-voice-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lp1-voice-card__avatar svg {
    width: 22px;
    height: 22px;
    opacity: 0.95;
}

/* role variants */
.lp1-voice-card__avatar[data-role='resident'] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.26), rgba(59, 130, 246, 0.18));
}

.lp1-voice-card__avatar[data-role='student'] {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(16, 185, 129, 0.16));
}

/* role chip */
.lp1-voice-card__rolechip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 480px) {
    .lp1-voice-card__avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .lp1-voice-card__avatar svg {
        width: 20px;
        height: 20px;
    }
}


/* role chip fix */
.lp1-voice-card__rolechip {
    background: var(--lp1-bg-alt) !important;
    color: var(--lp1-navy) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    font-weight: 700;
}