/* ==========================================
   Programming Schools LP — Standalone CSS
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-black: #3B3938;
    --color-white: #ffffff;
    --color-gray: #f9f9f9;
    --color-gray02: #e0e0e0;
    --ps-green: #16962F;
    --ps-green-dark: #0e6e22;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 1.6rem;
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility */
.sp_only {
    display: none;
}

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

/* ==========================================
   LP Header
   ========================================== */

.lp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-gray02);
}

.lp-header__logo img {
    height: 64px;
    width: auto;
}

/* ==========================================
   PS LP
   ========================================== */

/* Hero */
.ps-lp__hero {
    background: linear-gradient(135deg, var(--ps-green) 0%, var(--ps-green-dark) 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.ps-lp__hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.ps-lp__hero-badge {
    display: inline-block;
    background: #E53E3E;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.ps-lp__hero-heading {
    font-size: 5.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.ps-lp__hero-heading em {
    font-style: normal;
    color: #ffd700;
}

.ps-lp__hero-desc {
    font-size: 1.7rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.ps-lp__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--ps-green);
    font-size: 1.7rem;
    font-weight: 800;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.05em;
}

.ps-lp__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Section Heading */
.ps-lp__section-heading {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 48px;
    letter-spacing: 0.05em;
}

/* Flow */
.ps-lp__flow {
    padding: 80px 0;
    background: var(--color-gray);
}

.ps-lp__flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ps-lp__flow-arrow {
    font-size: 2.4rem;
    color: #ccc;
    font-weight: 300;
}

.ps-lp__flow-step {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    flex: 1;
    max-width: 220px;
    position: relative;
}

.ps-lp__flow-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ps-green);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.ps-lp__flow-icon {
    color: var(--ps-green);
    margin-bottom: 16px;
}

.ps-lp__flow-icon svg {
    width: 32px;
    height: 32px;
}

.ps-lp__flow-step h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ps-lp__flow-step p {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

/* Schools */
.ps-lp__schools {
    padding: 80px 0 120px;
}

.ps-lp__schools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ps-lp__school-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px;
    background: #fff;
    border: 2px solid var(--color-gray02);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ps-lp__school-card:hover {
    border-color: var(--ps-green);
    box-shadow: 0 8px 24px rgba(22, 150, 47, 0.12);
    transform: translateY(-3px);
}

.ps-lp__school-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-lp__school-name {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.ps-lp__school-badge {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.4;
    padding: 6px 14px;
    border-radius: 6px;
    background: #E53E3E;
    color: #fff;
    letter-spacing: 0.05em;
}

.ps-lp__school-note {
    display: block;
    font-size: 1.1rem;
    color: #999;
    letter-spacing: 0.03em;
}

.ps-lp__school-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ps-green);
    white-space: nowrap;
}

/* ==========================================
   Footer
   ========================================== */

.lp-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 24px 20px;
    font-size: 1.2rem;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: #3B3938;
    padding: 100px 0 30px;
    color: #fff;
}

footer .container a {
    color: #fff;
    display: block;
}

footer .container ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 20px;
    gap: 20px 40px;
    padding: 0;
    list-style: none;
}

footer .container ul li {
    font-size: 1.6rem;
    text-align: center;
}

footer .container ul.legal-links {
    margin-bottom: 60px;
    gap: 20px 30px;
}

footer .container ul.legal-links li,
footer .container ul.legal-links li a {
    font-size: 1.3rem;
    color: #999;
}

footer .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 720px;
    max-width: 100%;
    margin: 0 auto;
    gap: 60px;
}

footer .d-flex__left {
    flex: 1;
}

footer .d-flex__right {
    width: 340px;
}

footer .d-flex__right p {
    font-size: 1.6rem;
    line-height: normal;
}

footer address {
    font-style: normal;
    text-align: center;
    margin-top: 60px;
    font-size: 1.4rem;
    color: #fff;
}

footer .toTop {
    cursor: pointer;
    width: 75px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    margin: 0;
}

footer .toTop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ==========================================
   Responsive — tablet/mobile (≤768px)
   ========================================== */

@media (max-width: 768px) {

    .sp_only {
        display: inline;
    }

    .lp-header__logo img {
        height: 48px;
    }

    .ps-lp__hero {
        padding: 70px 20px;
    }

    .ps-lp__hero-heading {
        font-size: 3.6rem;
    }

    .ps-lp__hero-desc {
        font-size: 1.5rem;
    }

    .ps-lp__btn {
        font-size: 1.5rem;
        padding: 16px 32px;
    }

    .ps-lp__section-heading {
        font-size: 2.2rem;
        margin-bottom: 32px;
    }

    .ps-lp__flow {
        padding: 60px 0;
    }

    .ps-lp__flow-steps {
        flex-direction: column;
        gap: 8px;
    }

    .ps-lp__flow-arrow {
        transform: rotate(90deg);
    }

    .ps-lp__flow-step {
        max-width: 100%;
        width: 100%;
        padding: 24px 20px;
        text-align: center;
    }

    .ps-lp__schools {
        padding: 60px 0 80px;
    }

    .ps-lp__schools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ps-lp__school-card {
        padding: 22px 20px;
    }

    .ps-lp__school-name {
        font-size: 2.4rem;
    }

    footer .container ul:not(.legal-links) {
        display: none;
    }

    footer .d-flex {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    footer .d-flex__right {
        width: 100%;
    }

    footer .toTop {
        right: 20px;
        bottom: 20px;
        width: 56px;
    }
}
