:root {
    --primary-color: #69f0ae;
    --primary-dark: #45c08d;
    --bg-light: #f9fbf9;
    --bg-mint: #ecf3ef;
    --bg-grey: #f5f5f5;
    --text-main: #2d3436;
    --text-light: #636e72;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Header & Nav */
header {
    padding: 20px 0;
    background-color: var(--bg-grey);
    width: 100%;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.2px;
}

.logo-img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
}

html {
    scroll-behavior: smooth;
}

.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(--text-main);
    transition: var(--transition);
    opacity: 0.6;
}

.icon-link:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

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

.text-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    opacity: 0.6;
}

.text-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-color: var(--bg-mint);
    padding: 100px 0 100px;
    position: relative;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f9fbf9' fill-opacity='1' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

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

.keep-phrase span {
    display: inline-block;
}

/* Feature Sections */
.feature-section {
    padding: 120px 0;
}

.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(--primary-dark);
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.feature-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -1px;
}

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

.feature-image {
    flex: 1;
    position: relative;
}

/* Feature Images */
.blob-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob-wrapper img {
    max-width: 90%;
    max-height: 400px;
    object-fit: contain;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    text-align: center;
    background-color: #fff;
    border-radius: 60px 60px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

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

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

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

/* Footer */
footer {
    background-color: var(--bg-grey);
    padding: 80px 0 40px;
    text-align: center;
}

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

.footer-top-link {
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-top-link:hover {
    color: var(--text-main);
}

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

.footer-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.footer-operator {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
}

.copyright {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

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

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

/* Legal Content Pages */
.legal-page {
    background-color: var(--bg-mint);
    padding: 100px 0;
    min-height: 100vh;
}

.legal-card {
    background-color: #fff;
    padding: 80px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.03);
    max-width: 800px;
    margin: 0 auto;
}

.legal-card h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-main);
    letter-spacing: -1px;
    text-align: center;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 40px 24px;
        border-radius: 24px;
    }

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

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

.legal-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 56px;
    margin-bottom: 24px;
    color: var(--text-main);
    border-left: 5px solid var(--accent-mint);
    padding-left: 16px;
    margin-left: -21px;
    /* 棒(5px) + 余白(16px) を左に突き出させて、文字の開始位置を揃える */
    line-height: 1.4;
}

.legal-card p,
.legal-card li {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: left;
}

.legal-card ul {
    margin-bottom: 32px;
    padding-left: 24px;
}

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

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

.legal-card a {
    color: #3b82f6;
    /* Subtle blue for links */
    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: 80px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.6;
    text-align: left;
}

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

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

    .legal-card h1 {
        font-size: 28px;
    }

    .legal-card h2 {
        font-size: 18px;
    }
}

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

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