/* P-mark Specific Styling */
:root {
    --pm-primary: #0F3869;
    --pm-accent: #0284C7;
    --pm-accent-light: #E0F2FE;
    --pm-secondary: #0D9488;
    --pm-warning: #F59E0B;
    --pm-dark: #0F172A;
    --pm-light: #F8FAFC;
    --pm-text: #334155;
    --pm-muted: #64748B;
    --pm-badge: #EF4444;
}

.pmark-page {
    background-color: #F8FAFC;
    color: #1E293B;
}

/* P-mark Hero Section */
.pm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 25, 44, 0.82) 0%, rgba(15, 23, 42, 0.85) 100%), url('pmark_hero_bg.jpg') center/cover no-repeat;
    color: #FFFFFF;
    padding-top: 110px;
    padding-bottom: 60px;
    overflow: hidden;
}

.pm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 35%, rgba(2, 132, 199, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 80% 65%, rgba(13, 148, 136, 0.3) 0%, transparent 55%);
    pointer-events: none;
}

.pm-badge-top {
    display: inline-block;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
    letter-spacing: 0.05em;
}

.pm-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.pm-hero-btn-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pm-hero-title {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.pm-hero-title span.highlight-pm {
    color: #38BDF8;
    background: rgba(2, 132, 199, 0.2);
    padding: 0 10px;
    border-radius: 8px;
    display: inline-block;
}

.pm-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #BAE6FD;
    margin-bottom: 16px;
}

.pm-hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #F1F5F9;
    margin-bottom: 30px;
    max-width: 620px;
}

.pm-tag-both {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEF3C7;
    color: #92400E;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #FDE68A;
}

.pm-hero-stat-card {
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(56, 189, 248, 0.4);
    text-align: center;
    position: relative;
}

.pm-stat-highlight {
    font-size: 3.2rem;
    font-weight: 900;
    color: #0284C7;
    line-height: 1;
    margin: 10px 0;
}

.pm-stat-highlight span {
    font-size: 1.5rem;
    color: #0F172A;
    font-weight: 800;
}

/* Overview & Benefits Grid */
.pm-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 40px;
}

.pm-glass-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pm-merit-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-left: 5px solid #0284C7;
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-merit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

.pm-merit-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0284C7;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-merit-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-top: 6px;
}

/* Checklist Section (Such Companies) */
.pm-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.pm-check-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pm-check-icon {
    width: 32px;
    height: 32px;
    background: #E0F2FE;
    color: #0284C7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 4 Steps Detailed Roadmap */
.pm-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pm-step-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #0284C7;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pm-step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0284C7 0%, #0F3869 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    margin: 0 auto 16px;
}

.pm-step-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.pm-step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F3869;
    margin-bottom: 10px;
    text-align:left!important;
}

.pm-step-desc {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.6;
    text-align:left!important;
}

/* Key Knowledge Cards (Standards, Period, Costs) */
.pm-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.pm-knowledge-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    position: relative;
}

.pm-knowledge-tag {
    display: inline-block;
    background: #EFF6FF;
    color: #0284C7;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* FAQ Accordion / Cards */
.pm-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
}

.pm-faq-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
}

.pm-faq-q {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F3869;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pm-faq-q span {
    color: #0284C7;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.pm-faq-a {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    padding-left: 24px;
}

/* Support Scope Highlights Box */
.pm-support-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
    border: 2px solid #BAE6FD;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.pm-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pm-support-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pm-support-item .icon {
    font-size: 1.5rem;
    color: #0284C7;
    flex-shrink: 0;
}

/* Contact Form 7 Scoped Styles for P-mark LP */
.pmark-cf7-wrapper,
.pmark-cf7-wrapper *,
.pmark-cf7-wrapper *::before,
.pmark-cf7-wrapper *::after {
    box-sizing: border-box !important;
}

.pmark-cf7-wrapper {
    max-width: 680px !important;
    margin: 0 auto !important;
    background: #FFFFFF !important;
    color: #334155 !important;
    padding: 40px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    text-align: left !important;
    position: relative !important;
    z-index: 10 !important;
}

.pmark-cf7-wrapper .wpcf7,
.pmark-cf7-wrapper div.wpcf7,
div.pmark-cf7-wrapper .wpcf7 {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    box-shadow: none !important;
}

.pmark-cf7-wrapper form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

.pmark-cf7-wrapper form p,
.pmark-cf7-wrapper .wpcf7-form-control-wrap {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
}

.pmark-cf7-wrapper label,
.pmark-cf7-wrapper p label {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    float: none !important;
    width: 100% !important;
}

.pmark-cf7-wrapper label .required,
.pmark-cf7-wrapper label span.required {
    color: #EF4444 !important;
    margin-left: 4px !important;
    font-weight: bold !important;
}

.pmark-cf7-wrapper input[type="text"],
.pmark-cf7-wrapper input[type="email"],
.pmark-cf7-wrapper input[type="tel"],
.pmark-cf7-wrapper select,
.pmark-cf7-wrapper textarea,
.pmark-cf7-wrapper .wpcf7-form-control-wrap input,
.pmark-cf7-wrapper .wpcf7-form-control-wrap select,
.pmark-cf7-wrapper .wpcf7-form-control-wrap textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
    line-height: 1.5 !important;
    color: #1E293B !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.pmark-cf7-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px 18px !important;
    padding-right: 40px !important;
}

.pmark-cf7-wrapper textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.pmark-cf7-wrapper input:focus,
.pmark-cf7-wrapper select:focus,
.pmark-cf7-wrapper textarea:focus {
    border-color: #0284C7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
    background-color: #FFFFFF !important;
}

.pmark-cf7-wrapper input[type="submit"],
.pmark-cf7-wrapper button[type="submit"],
.pmark-cf7-wrapper .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    background: linear-gradient(135deg, #0F3869 0%, #0284C7 100%) !important;
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
    text-align: center !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 24px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 14px rgba(15, 56, 105, 0.3) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.pmark-cf7-wrapper input[type="submit"]:hover,
.pmark-cf7-wrapper button[type="submit"]:hover,
.pmark-cf7-wrapper .wpcf7-submit:hover {
    opacity: 0.95 !important;
    transform: translateY(-2px) !important;
}

.pmark-cf7-wrapper .wpcf7-spinner {
    margin: 10px auto 0 auto !important;
    display: block !important;
}

.pmark-cf7-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    text-align: center !important;
}

.pmark-cf7-wrapper .wpcf7-mail-sent-ok {
    background-color: #ECFDF5 !important;
    border: 1px solid #10B981 !important;
    color: #047857 !important;
}

.pmark-cf7-wrapper .wpcf7-validation-errors,
.pmark-cf7-wrapper .wpcf7-acceptance-missing {
    background-color: #FEF2F2 !important;
    border: 1px solid #EF4444 !important;
    color: #991B1B !important;
}

.pmark-cf7-wrapper .wpcf7-not-valid-tip {
    color: #EF4444 !important;
    font-size: 0.85rem !important;
    margin-top: 6px !important;
    font-weight: 600 !important;
    display: block !important;
}

/* ========================================================
   Responsive Media Queries for All Devices (Mobile, Tablet, Desktop)
   ======================================================== */

/* Large Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
    .pm-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pm-hero-text {
        text-align: center;
    }
    .pm-hero-desc {
        margin: 0 auto 24px auto;
    }
    .pm-hero-btn-wrap {
        justify-content: center;
    }
    .pm-overview-grid {
        grid-template-columns: 1fr;
    }
    .pm-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-knowledge-grid {
        grid-template-columns: 1fr;
    }
    .pm-faq-grid {
        grid-template-columns: 1fr;
    }
    .pm-hero-title {
        font-size: 2.2rem;
    }
}

/* Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
    .pm-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .pm-badge-top {
        font-size: 0.82rem !important;
        padding: 5px 14px !important;
        margin-bottom: 12px;
    }
    .pm-tag-both {
        font-size: 0.82rem !important;
        padding: 5px 12px !important;
        margin-bottom: 14px;
    }
    .pm-hero-title {
        font-size: 1.6rem !important;
        line-height: 1.35;
    }
    .pm-hero-subtitle {
        font-size: 0.98rem !important;
        margin-bottom: 12px;
    }
    .pm-hero-desc {
        font-size: 0.88rem !important;
        line-height: 1.65 !important;
    }
    .pm-hero-btn-wrap {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .pm-hero-btn-wrap .btn {
        width: 100%;
        text-align: center;
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
    }

    /* Section Headings */
    .section-title {
        font-size: 1.45rem !important;
        line-height: 1.35 !important;
    }
    .section-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }

    /* Cards & Grids */
    .pm-check-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pm-check-card {
        padding: 18px 16px;
    }
    .pm-glass-box {
        padding: 24px 18px !important;
    }
    .pm-merit-card {
        padding: 18px 16px;
    }
    .pm-knowledge-card {
        padding: 24px 18px;
    }
    .pm-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pm-step-card {
        padding: 24px 18px;
    }
    .pm-faq-card {
        padding: 20px 16px;
    }

    /* Support Highlights */
    .pm-support-box {
        padding: 26px 18px !important;
    }
    .pm-support-box h2 {
        font-size: 1.35rem !important;
    }
    .pm-support-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pm-support-item {
        padding: 16px 18px;
    }
    .pm-stat-highlight {
        font-size: 2.5rem !important;
    }

    /* Contact Form & Footer */
    .pm-contact-title {
        font-size: 1.35rem !important;
        line-height: 1.4 !important;
    }
    .pmark-cf7-wrapper {
        padding: 24px 18px !important;
    }
    .pmark-cf7-wrapper label {
        font-size: 0.88rem !important;
    }
    .pmark-cf7-wrapper input[type="submit"],
    .pmark-cf7-wrapper button[type="submit"],
    .pmark-cf7-wrapper .wpcf7-submit {
        font-size: 0.95rem !important;
        padding: 14px 18px !important;
    }
}

/* Small Smart Phones (max-width: 480px) */
@media (max-width: 480px) {
    .pm-hero-title {
        font-size: 1.38rem !important;
    }
    .pm-hero-subtitle {
        font-size: 0.9rem !important;
    }
    .pm-contact-title {
        font-size: 1.15rem !important;
    }
    .pm-stat-highlight {
        font-size: 2.1rem !important;
    }
    .section-title {
        font-size: 1.28rem !important;
    }
    .pm-step-num {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .pmark-cf7-wrapper {
        padding: 20px 14px !important;
    }
}
