:root {
    --bg-color: #ffffff;
    --bg-light: #f5f7fa;
    --text-primary: #111111;
    --text-secondary: #64748b;
    --accent-red: #c41e3a;
    --accent-blue: #134285;
    --accent-blue-light: #add8e6;
    --accent-gold: #c9a84c;
    --card-border: #e2e8f0;
    --input-bg: #f8fafc;
    --input-border: #cbd5e1;
    --error-color: #c41e3a;
    --success-color: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ═══ Layout ═══ */
.lp-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.sp-only { display: inline; }
.pc-break { display: none; }

/* ═══ HERO セクション ═══ */
.hero-section {
    width: 100%;
    background: #fffcf4; /* Premium soft Japanese cream background */
}

.hero-inner {
    width: 92%;
    max-width: 720px;
    margin: 0 auto;
}

.media-container {
    width: 100%;
    overflow: hidden; /* Crops shifted/negative-margined elements */
}

.profile-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ═══ CTAセクション (both top & bottom) ═══ */
.form-section.form-section-cta {
    background: linear-gradient(180deg, #fffcf4 0%, #ffffff 100%); /* Seamless premium gradient */
    padding: 0 0 2.5rem !important; /* No top padding so it touches image */
    text-align: center;
}

.countdown-banner {
    width: 100%;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    color: #c53030;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(197, 48, 48, 0.05);
}

.countdown-label {
    color: #333;
    font-size: 0.75rem;
}

.countdown-spots {
    font-weight: 700;
    color: #c53030;
}

.countdown-spots strong {
    color: #e53e3e;
    font-weight: 900;
    font-size: 1.2rem;
    margin: 0 3px;
    text-decoration: underline;
}

.countdown-sep {
    color: #cbd5e0;
    font-size: 0.8rem;
}

.countdown-deadline {
    font-weight: 700;
    background: #c53030;
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
}

.countdown-deadline strong {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

/* ═══ Trust Badges ═══ */
.trust-badges {
    display: flex;
    justify-content: space-between;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    flex-wrap: nowrap;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.3rem;
    font-size: clamp(0.55rem, 2.2vw, 0.7rem);
    font-weight: 700;
    color: #1a202c;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.badge svg { color: #10b981; }

/* ═══ 青い見出しバー (reference site style) ═══ */
.heading-bar {
    background: var(--accent-blue);
    padding: 1.2rem 0;
    text-align: center;
}

.section-heading {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.heading-accent {
    color: var(--accent-blue-light);
    font-size: 1.5rem;
}

/* ═══ コンテンツセクション ═══ */
.content-section {
    padding: 2rem 0;
    background: var(--bg-color);
}

.text-block {
    margin-bottom: 1.5rem;
}

.text-block p {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-danger {
    color: var(--accent-red);
    font-weight: 700;
}

.bold-lg {
    font-size: 1.15em;
    text-decoration: underline;
}

.highlight-text {
    background: #fff9e6;
    border-left: 4px solid var(--accent-gold);
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.big-answer {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-red);
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fef2f2;
    border: 2px solid #fecaca;
}

/* ═══ 事実ボックス ═══ */
.fact-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 2px solid #c5d5f0;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.fact-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.fact-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.fact-unit {
    font-size: 2rem;
    font-weight: 900;
}

.fact-desc {
    font-size: 0.95rem;
    color: #333;
    margin-top: 0.8rem;
    line-height: 1.6;
}

/* ═══ 5重苦リスト ═══ */
.five-pain-list {
    background: #fff;
    border: 2px solid var(--accent-red);
    margin: 1.5rem 0;
    overflow: hidden;
}

.list-title {
    background: var(--accent-red);
    color: #fff;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.05em;
}

.five-pain-list ul {
    list-style: none;
    padding: 0;
}

.five-pain-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
}

.five-pain-list li:last-child {
    border-bottom: none;
}

.pain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
    border-radius: 50%;
}

/* ═══ 受講者の声 ═══ */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--accent-blue);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.testimonial-text {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

.testimonial-text strong {
    color: var(--accent-blue);
    font-style: normal;
}

/* ═══ フォームセクション ═══ */
.form-section {
    padding: 2rem 0;
    background: var(--bg-color);
}

.form-section-bottom {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.form-section-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 900;
    color: #d97706;
    background: #fffbeb;
    border: 2px solid #fde68a;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #fde68a;
}

.form-section-title::before {
    content: "✅";
    font-size: 1.1em;
}

.form-section-headline {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: #000000;
    line-height: 1.3;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.form-section-headline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    border-bottom: 3px dashed #facc15;
}

.form-section-desc {
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

/* ═══ Form Card (Japanese LP Style) ═══ */
.form-card {
    width: 100%;
    background: #f0f4ff;
    border: 2px solid #c5d5f0;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    box-shadow: 0 4px 20px rgba(19, 66, 133, 0.08);
}

.form-card-final {
    background: #f0f4ff;
    text-align: left;
}

.input-group {
    margin-bottom: 1.1rem;
}

.input-group label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.required {
    background: #fef2f2;
    color: var(--accent-red);
    font-size: 0.55rem;
    padding: 0.1rem 0.35rem;
    margin-left: 0.4rem;
    font-weight: 700;
    border: 1px solid #fecaca;
}

.optional {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 500;
    margin-left: 4px;
}

.input-group input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: #ffffff;
    border: 2px solid #d0d8e8;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(19, 66, 133, 0.12);
}

.input-group input::placeholder {
    color: #a0aec0;
    font-size: 0.88rem;
}

/* ═══ Button (Japanese 3D Cubic Style) ═══ */
.submit-btn {
    width: 100%;
    padding: 1.1rem 1rem;
    background: linear-gradient(180deg, #2ecc40 0%, #1db334 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #178a28, 0 6px 16px rgba(0,0,0,0.12);
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.submit-btn:hover {
    background: linear-gradient(180deg, #3bd84c 0%, #22c73b 100%);
    box-shadow: 0 4px 0 #178a28, 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #178a28, 0 2px 6px rgba(0,0,0,0.1);
}

.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.submit-btn-final {
    font-size: 1.15rem;
    padding: 1.2rem;
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 0 #178a28, 0 6px 16px rgba(0,0,0,0.12), 0 0 0 0 rgba(46, 204, 64, 0.4); }
    50% { box-shadow: 0 4px 0 #178a28, 0 6px 16px rgba(0,0,0,0.12), 0 0 0 14px rgba(46, 204, 64, 0); }
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

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

/* ═══ Messages ═══ */
.form-message {
    margin-top: 1rem;
    padding: 0.7rem;
    font-weight: 700;
    display: none;
    font-size: 0.8rem;
}

.form-message.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--success-color);
}

.form-message.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--error-color);
}

/* ═══ Micro Trust Signals ═══ */
.micro-trust-signals {
    margin-top: 0.8rem;
    padding: 0;
}

.micro-trust-signals p {
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin: 0.2rem 0;
    line-height: 1.4;
    opacity: 0.7;
}

/* ═══ LINE Promo ═══ */
.line-promo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #06C755 0%, #05a348 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    box-shadow: 0 4px 0 #048a3a, 0 6px 14px rgba(0,0,0,0.12);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    animation: linePulse 2.5s ease-in-out infinite;
}

.line-btn:hover {
    background: linear-gradient(180deg, #0fdb62 0%, #06C755 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #048a3a, 0 8px 18px rgba(0,0,0,0.15);
}

.line-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #048a3a, 0 2px 6px rgba(0,0,0,0.1);
}

@keyframes linePulse {
    0%, 100% { box-shadow: 0 4px 0 #048a3a, 0 6px 14px rgba(0,0,0,0.12), 0 0 0 0 rgba(6, 199, 85, 0.4); }
    50% { box-shadow: 0 4px 0 #048a3a, 0 6px 14px rgba(0,0,0,0.12), 0 0 0 12px rgba(6, 199, 85, 0); }
}

.line-icon {
    width: 24px;
    height: 24px;
}

.line-qr-container {
    margin-top: 1.2rem;
}

.line-qr {
    max-width: 140px;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
}

.line-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.line-divider::before,
.line-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.line-divider span {
    padding: 0 10px;
}

.line-micro-trust {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* ═══ Footer ═══ */
.footer {
    padding: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.65rem;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
}

.legal-disclaimer {
    margin-top: 1.2rem;
    font-size: 0.45rem;
    color: rgba(100, 116, 139, 0.35);
    line-height: 1.4;
    text-align: justify;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ═══ Notifications ═══ */
.live-notifications {
    display: none !important; /* Hidden from screen but code is preserved */
    position: fixed;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.notification-toast {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--accent-blue);
    padding: 0.7rem 0.9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    will-change: transform, opacity, filter;
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    filter: blur(10px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease-out,
                filter 0.6s ease-out;
}

.notification-toast.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
}

.notification-toast.hiding {
    transform: scale(0.95) translateY(-5px);
    opacity: 0;
    filter: blur(8px);
    transition: transform 0.6s cubic-bezier(0.5, 0, 0.1, 1),
                opacity 0.4s ease-in,
                filter 0.4s ease-in;
}

.toast-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.nyukin-style { border-left-color: var(--accent-red); }
.nyukin-style .toast-icon { background: #fef2f2; color: var(--accent-red); }
.shukkin-style { border-left-color: var(--accent-blue); }
.shukkin-style .toast-icon { background: #eff6ff; color: var(--accent-blue); }

.toast-content { display: flex; flex-direction: column; }
.toast-location { font-size: 0.55rem; color: var(--text-secondary); margin-bottom: 1px; display: flex; align-items: center; gap: 3px; font-weight: 700; }
.toast-name { font-size: 0.7rem; color: var(--text-primary); margin-bottom: 1px; font-weight: 700; display: flex; align-items: center; }
.name-blur { filter: blur(2.5px); -webkit-filter: blur(2.5px); }
.toast-age { font-weight: 900; color: var(--text-primary); font-size: 0.7rem; }
.toast-amount { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.3px; }
.toast-time { font-size: 0.55rem; color: #94a3b8; margin-left: auto; align-self: flex-start; white-space: nowrap; padding-top: 2px; }

/* ═══════════════════════════════════
   PC (≥768px) — 中央配置の1カラムLP
   ═══════════════════════════════════ */
@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-break { display: inline; }

    .container {
        max-width: 680px;
        padding: 0 2rem;
    }

    .hero-inner {
        max-width: 680px;
    }

    .profile-img {
        max-height: 450px;
        width: auto;
        margin: 0 auto; /* Reset negative margin on PC */
    }

    .section-heading {
        font-size: 1.7rem;
    }

    .heading-accent {
        font-size: 2rem;
    }

    .heading-bar {
        padding: 1.6rem 0;
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .text-block p {
        font-size: 1.05rem;
    }

    .fact-number {
        font-size: 5rem;
    }

    .form-section-headline {
        font-size: 1.6rem;
    }

    .form-card {
        padding: 2rem 2.5rem;
    }

    .countdown-banner {
        font-size: 0.8rem;
        flex-wrap: nowrap;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Notifications */
    .live-notifications {
        top: 25px;
        right: 25px;
    }
}

/* ═══ 大画面最適化 ═══ */
@media (min-width: 1200px) {
    .container {
        max-width: 740px;
    }

    .hero-inner {
        max-width: 740px;
    }

    .section-heading {
        font-size: 1.9rem;
    }
}
