:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #06b6d4;
    --ink: #13203a;
    --text-color: var(--ink);
    --muted: #5f6f89;
    --surface: #ffffff;
    --background-color: #fbfdff;
    --surface-soft: #f4f8ff;
    --border-color: #dbe5f2;
    --card-bg: rgba(255, 255, 255, .96);
    --shadow: 0 18px 50px rgba(26, 58, 108, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.75;
    background:
        radial-gradient(circle at 92% 6%, rgba(6, 182, 212, .14), transparent 24rem),
        radial-gradient(circle at 8% 42%, rgba(37, 99, 235, .11), transparent 27rem),
        #fbfdff;
    overflow-x: hidden;
}

a { color: var(--primary-color); }
.bg-blob, .bg-blob-2 { display: none; }

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 72px;
    padding: .9rem clamp(1.25rem, 5vw, 5rem);
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(219, 229, 242, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ink);
}
header h1::before {
    display: inline-grid;
    place-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-right: .55rem;
    border-radius: .55rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    content: 'P';
    font-size: .9rem;
    letter-spacing: 0;
}
nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.2rem; margin: 0; padding: 0; list-style: none; }
nav a { color: #40506a; font-size: .88rem; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--primary-color); }

main { min-height: 65vh; }
section { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 5.5rem 0; }
.hero { position: relative; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 1120px; }
.hero::before {
    width: fit-content;
    margin-bottom: 1.25rem;
    padding: .38rem .8rem;
    border: 1px solid #b9d6ff;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #eff6ff;
    content: 'PLEASURE LAB  /  SOFTWARE & AI';
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}
.hero h2 {
    max-width: 850px;
    margin: 0 0 1.35rem;
    color: var(--ink);
    font-size: clamp(3rem, 7vw, 6.1rem);
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: .98;
}
.hero p { max-width: 680px; margin: 0 0 2.1rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.cta-button, .store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .72rem 1.25rem;
    border-radius: .8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cta-button:hover, .store-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37, 99, 235, .3); }

.section-title { margin: 0 0 2.7rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.055em; line-height: 1.15; text-align: left; }
.section-title::after { display: block; width: 2.6rem; height: .3rem; margin-top: 1rem; border-radius: 999px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); content: ''; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.15rem; }
.card {
    position: relative;
    min-height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: var(--card-bg);
    box-shadow: 0 6px 18px rgba(27, 57, 99, .035);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); border-color: #b9d6ff; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 .7rem; color: var(--ink); font-size: 1.18rem; line-height: 1.45; }
.card h3::before { display: block; width: .55rem; height: .55rem; margin-bottom: .85rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); content: ''; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

footer { margin-top: 2rem; padding: 2.7rem 1.5rem; border-top: 1px solid var(--border-color); color: var(--muted); background: #fff; font-size: .9rem; text-align: center; }
footer p { margin: .45rem 0; }
footer a { color: #40506a; font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--primary-color); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
@media (max-width: 720px) {
    header { align-items: flex-start; flex-direction: column; gap: .55rem; padding: .85rem 1.2rem; }
    nav ul { justify-content: flex-start; gap: .25rem 1rem; }
    section { width: min(100% - 2.25rem, 1120px); padding: 3.7rem 0; }
    .hero { min-height: 62vh; }
    .hero h2 { font-size: clamp(2.8rem, 15vw, 4.25rem); }
    .hero p { font-size: 1rem; }
    .card { padding: 1.45rem; }
}
