:root {
    --bg-base: #f5f8fe;
    --bg-panel: #ffffff;
    --bg-panel-2: #eef3fc;
    --border-soft: rgba(16, 40, 90, 0.09);
    --text-main: #0f1b33;
    --text-sub: rgba(15, 27, 51, 0.64);
    --text-faint: rgba(15, 27, 51, 0.42);
    --blue: #2b57e8;
    --blue-deep: #12245e;
    --blue-soft: #e8eefc;
    --blue-softer: #f2f6ff;
    --coral: #ff6b57;
    --coral-soft: #ffe9e4;
    --amber: #ffb020;
    --amber-soft: #fff3dc;
    --up-red: #e53e3e;
    --down-green: #16a34a;
    --container-width: 1120px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.75;
    color: var(--text-main);
    background-color: var(--bg-base);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Background texture */
body {
    background-image:
        radial-gradient(circle at 12% 6%, rgba(43, 87, 232, 0.10), transparent 42%),
        radial-gradient(circle at 88% 2%, rgba(255, 176, 32, 0.12), transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(255, 107, 87, 0.07), transparent 40%);
    background-repeat: no-repeat;
}

/* Header & Nav */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(245, 248, 254, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.2px;
}

.logo-img {
    height: 32px;
    width: 32px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--blue-soft);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--blue);
    transition: var(--transition);
    background: var(--blue-soft);
}

.icon-link:hover {
    background-color: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

.icon-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

.text-link {
    text-decoration: none;
    color: var(--blue-deep);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--blue-soft);
}

.text-link:hover {
    background-color: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    padding: 110px 0 90px;
    position: relative;
    text-align: center;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b9660a;
    border: 1px solid rgba(255, 176, 32, 0.4);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
    background: var(--amber-soft);
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--blue-deep);
}

.hero h1 .accent-red {
    color: var(--blue);
}

.hero h1 .accent-gold {
    color: var(--coral);
}

.hero p {
    font-size: 17px;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto 40px;
    text-wrap: balance;
}

.badge-button {
    display: inline-block;
    transition: var(--transition);
}

.badge-button:hover {
    transform: translateY(-5px);
}

.badge-button img {
    height: 74px;
}

.trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
}

/* Tap demo mock (hero) */
.tap-demo {
    margin: 56px auto 0;
    max-width: 420px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tap-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 22px 12px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(20, 50, 140, 0.08);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tap-card:hover {
    transform: translateY(-4px);
}

.tap-card.is-punched {
    transform: translateY(-4px) scale(0.96);
}

.damage-pop {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, 0) scale(0.7);
    font-size: 20px;
    font-weight: 800;
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
    animation: damage-float 0.9s ease-out forwards;
}

.damage-pop.is-saving {
    color: var(--up-red);
    text-shadow: 0 2px 10px rgba(229, 62, 62, 0.35);
}

.damage-pop.is-waste {
    color: var(--down-green);
    text-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
}

@keyframes damage-float {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.7);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60px) scale(1);
    }
}

.tap-card .tap-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
}

.tap-card.is-waste .tap-icon {
    background: var(--coral-soft);
}

.tap-card .tap-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.tap-card.is-waste .tap-icon svg {
    color: var(--coral);
}

.tap-card .tap-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.tap-card .tap-amount {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.tap-card.is-saving .tap-amount {
    color: var(--up-red);
}

.tap-card.is-waste .tap-amount {
    color: var(--down-green);
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-soft);
}

.feature-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-grid.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blue-soft);
}

.feature-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.45;
    letter-spacing: -1px;
    color: var(--blue-deep);
}

.feature-content p {
    color: var(--text-sub);
    font-size: 16px;
    text-wrap: balance;
}

.feature-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screenshot showcase */
.showcase {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}

.showcase-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    z-index: 0;
    background: radial-gradient(circle, var(--blue-soft), transparent 70%);
}

.showcase-blob.blob-coral {
    background: radial-gradient(circle, var(--coral-soft), transparent 70%);
}

.showcase-blob.blob-amber {
    background: radial-gradient(circle, var(--amber-soft), transparent 70%);
}

.phone-shot {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 260px;
    filter: drop-shadow(0 26px 46px rgba(18, 36, 94, 0.22));
    transition: var(--transition);
    border-radius: 28px;
}

.feature-grid:hover .phone-shot {
    transform: translateY(-6px) rotate(0deg) !important;
}

.tilt-left .phone-shot {
    transform: rotate(-4deg);
}

.tilt-right .phone-shot {
    transform: rotate(4deg);
}

.float-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--blue-deep);
    box-shadow: 0 16px 34px rgba(18, 36, 94, 0.16);
}

.float-chip.chip-top {
    top: 6px;
    right: -6px;
}

.float-chip.chip-bottom {
    bottom: 12px;
    left: -14px;
}

.float-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.float-chip.chip-coral .dot {
    background: var(--coral);
}

.float-chip.chip-amber .dot {
    background: var(--amber);
}

/* Download Section */
.download-section {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    background: radial-gradient(circle at 50% 0%, rgba(43, 87, 232, 0.10), transparent 60%);
}

.download-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
    color: var(--blue-deep);
}

.download-section p {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 36px;
}

/* Footer */
footer {
    background-color: var(--blue-deep);
    padding: 70px 0 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.footer-top-link {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-top-link:hover {
    background: var(--blue);
}

.footer-nav {
    display: flex;
    gap: 36px;
}

.footer-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-operator {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .text-link {
        display: none;
    }

    .hero {
        padding: 90px 0 70px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .feature-section {
        padding: 70px 0;
    }

    .feature-grid,
    .feature-grid.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .feature-content h2 {
        font-size: 26px;
    }

    .tilt-left .phone-shot,
    .tilt-right .phone-shot {
        transform: rotate(0deg);
    }

    .download-section {
        padding: 90px 0;
    }

    .download-section h2 {
        font-size: 26px;
    }
}

/* Legal Content Pages */
.legal-page {
    padding: 90px 0 100px;
    min-height: 100vh;
}

.legal-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-soft);
    padding: 72px;
    border-radius: 32px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 30px 70px rgba(18, 36, 94, 0.08);
}

.legal-card h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 44px;
    color: var(--blue-deep);
    letter-spacing: -1px;
    text-align: center;
}

.legal-card h2 {
    font-size: 20px;
    font-weight: 800;
    margin-top: 52px;
    margin-bottom: 22px;
    color: var(--blue-deep);
    border-left: 4px solid var(--blue);
    padding-left: 16px;
    margin-left: -20px;
    line-height: 1.5;
}

.legal-card p,
.legal-card li {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 18px;
    line-height: 1.85;
    text-align: left;
}

.legal-card ul {
    margin-bottom: 30px;
    padding-left: 22px;
}

.legal-card li {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.legal-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: bold;
}

.legal-card a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s;
}

.legal-card a:hover {
    opacity: 0.7;
}

.legal-card strong {
    color: var(--text-main);
    font-weight: 700;
}

.legal-card .date {
    margin-top: 70px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-faint);
    text-align: left;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 56px 0;
    }

    .legal-card {
        padding: 40px 22px;
        border-radius: 24px;
        margin: 0 16px;
    }

    .legal-card h1 {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .legal-card h2 {
        font-size: 17px;
        margin-top: 40px;
        margin-left: 0;
        padding-left: 12px;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
