:root {
    --p2-bg: #ffffff;
    --p2-surface: #f7f9fc;
    --p2-border: rgba(10, 26, 48, 0.12);
    --p2-text: #17212f;
    --p2-muted: rgba(23, 33, 47, 0.72);
    --p2-accent: #4da3ff;
    --p2-max: 980px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: radial-gradient(circle at 14% -8%, #edf4ff 0%, #ffffff 58%), #ffffff;
    color: var(--p2-text);
    line-height: 1.85;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

.p2s-header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
}

.p2s-nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.p2s-logo {
    flex-shrink: 0;
    margin-right: auto;
}

.p2s-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.p2s-nav-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 2rem;
    font-size: 1rem;
}

.p2s-nav-links li {
    white-space: nowrap;
}

.p2s-nav-links a {
    color: #fff;
    transition: color 0.24s ease;
}

.p2s-nav-links a:hover,
.p2s-nav-links a[aria-current="page"] {
    color: #fff;
    opacity: 0.86;
}

main {
    padding: 0 24px 96px;
}

.p2s-hero,
.p2s-section,
.p2s-contact {
    max-width: var(--p2-max);
    margin: 0 auto;
}

.p2s-hero {
    min-height: 64vh;
    display: grid;
    align-content: center;
    padding: 104px 0 84px;
}

.p2s-eyebrow {
    margin: 0;
    color: var(--p2-accent);
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.p2s-hero h1 {
    margin: 18px 0 16px;
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.18;
    letter-spacing: 0.02em;
}

.p2s-lead {
    margin: 0;
    max-width: 760px;
    color: var(--p2-muted);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.p2s-section {
    padding: 92px 0;
    border-top: 1px solid rgba(20, 46, 75, 0.1);
}

.p2s-section-heading {
    margin-bottom: 36px;
}

.p2s-index {
    margin: 0 0 10px;
    color: rgba(77, 163, 255, 0.88);
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.p2s-section h2 {
    margin: 0;
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.35;
}

.p2s-copy {
    margin: 0 0 30px;
    color: var(--p2-muted);
}

.p2s-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.p2s-card {
    background: linear-gradient(160deg, #ffffff, #f8fbff);
    border: 1px solid var(--p2-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(15, 49, 84, 0.06);
}

.p2s-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.p2s-card p {
    margin: 0;
    color: var(--p2-muted);
}

.p2s-grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.p2s-tile {
    background: #ffffff;
    border: 1px solid rgba(20, 46, 75, 0.12);
    border-radius: 14px;
    padding: 22px;
}

.p2s-tile h3 {
    margin: 0 0 8px;
}

.p2s-tile p {
    margin: 0;
    color: var(--p2-muted);
}

.p2s-example-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.p2s-example {
    border-left: 2px solid rgba(77, 163, 255, 0.78);
    padding: 10px 0 10px 16px;
}

.p2s-example h3 {
    margin: 0 0 8px;
}

.p2s-example p {
    margin: 0;
    color: var(--p2-muted);
}

.p2s-tech-block {
    background: #f7f9fc;
    border: 1px solid rgba(20, 46, 75, 0.12);
    border-radius: 16px;
    padding: 28px;
}

.p2s-tech-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
}

.p2s-tech-block ul {
    margin: 0;
    padding-left: 20px;
    color: var(--p2-muted);
}

.p2s-note {
    margin: 18px 0 0;
    color: rgba(23, 33, 47, 0.82);
}

.p2s-link {
    display: inline-block;
    margin-top: 18px;
    color: #1d5fb3;
    border-bottom: 1px solid rgba(29, 95, 179, 0.5);
    padding-bottom: 1px;
}

.p2s-contact {
    margin-top: 16px;
    border-radius: 20px;
    padding: 78px 26px;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.18), rgba(77, 163, 255, 0.06));
    border: 1px solid rgba(77, 163, 255, 0.44);
}

.p2s-contact h2 {
    margin: 14px 0 12px;
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-size: clamp(1.45rem, 3.2vw, 2.1rem);
    line-height: 1.4;
}

.p2s-contact p {
    margin: 0;
    color: var(--p2-muted);
}

.p2s-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(21, 44, 70, 0.28);
    font-weight: 600;
    transition: transform 0.24s ease, background-color 0.24s ease;
}

.p2s-contact-btn:hover {
    transform: translateY(-2px);
    background: rgba(77, 163, 255, 0.12);
}

.p2s-footer {
    padding: 34px 24px 46px;
    text-align: center;
    color: rgba(23, 33, 47, 0.56);
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .p2s-grid-two,
    .p2s-grid-three,
    .p2s-example-list {
        grid-template-columns: 1fr;
    }

    .p2s-hero {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .p2s-nav {
        flex-wrap: nowrap;
    }

    .p2s-nav-links {
        gap: 1rem;
        font-size: 0.95rem;
    }

    main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .p2s-section {
        padding: 66px 0;
    }

    .p2s-card,
    .p2s-tile,
    .p2s-tech-block {
        padding: 20px;
    }

    .p2s-contact {
        padding: 56px 20px;
    }
}

@media (max-width: 480px) {
    .p2s-header {
        padding: 0.5rem;
    }

    .p2s-logo img {
        height: 35px;
    }

    .p2s-nav-links a {
        font-size: 1.3rem;
    }
}
