@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #FF4024;
    --primary-dark: #cc331d;
    --primary-light: #ff6650;
    --secondary-color: #2D3436;
    --bg-color: #ffffff;
    --text-color: #2D3436;
    --text-muted: #636E72;
    --card-bg: #fdf2f2;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[lang="en"] .lang-ja,
[lang="ja"] .lang-en {
    display: none !important;
}

.lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.lang-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 64, 36, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-app-list {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #ff4024 0%, #ff6b52 100%);
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 64, 36, 0.2);
}

.btn-app-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 36, 0.3);
    opacity: 0.9;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    padding: 12rem 0 5rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .hero {
        padding: 5rem 0 2rem;
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .hero-text {
        display: contents;
    }

    .hero-logo {
        display: none;
    }

    .hero-image {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-title {
        order: 3;
        font-size: clamp(1.2rem, 6.5vw, 2.2rem);
        line-height: 1.6;
        margin-bottom: 1rem;
        width: 100%;
    }

    .hero-title .line {
        display: block;
    }

    .hero-btns {
        order: 4;
    }

    .btn-app-list {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-color);
}

.hero-title .line {
    display: block;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(255, 64, 36, 0.2);
    border-radius: 20px;
}

.highlight {
    background: linear-gradient(transparent 40%, rgba(255, 64, 36, 0.25) 40%);
    color: #ff4024;
    display: inline;
    padding: 0 0.1rem;
    margin: 0;
    font-weight: 700;
    transition: none;
}

.highlight:hover {
    transform: none;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Redundant media query removed */

.hero-image {
    position: relative;
    width: 100%;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
}

/* Features */
.features {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 24px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(255, 64, 36, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Feature Details */
.feature-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.feature-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-horizontal-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-horizontal-item .mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .feature-horizontal-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
        margin: 0 -1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .feature-horizontal-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-horizontal-item {
        flex: 0 0 75%;
        scroll-snap-align: center;
    }
}

.feature-detail-item {
    display: grid;
    grid-template-columns: 1fr auto;
    /* 画像側の幅をコンテンツに合わせる */
    gap: 4rem;
    align-items: center;
}

.feature-detail-item.reverse {
    direction: rtl;
    /* 左右反転 */
}

.feature-detail-item.reverse .feature-text {
    direction: ltr;
    /* テキストの向きは戻す */
}

.feature-label {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-visual {
    padding: 0;
    /* 余白をなくす */
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-visual .mockup-img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

@media (max-width: 868px) {
    .feature-detail-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .feature-detail-item.reverse {
        direction: ltr;
    }

    .feature-visual .mockup-img {
        max-width: 300px;
    }
}

/* CTA */
.cta {
    padding: 5rem 0;
    text-align: center;
}

.store-badge {
    display: inline-block;
    vertical-align: middle;
}

.store-badge img {
    height: 60px;
    display: block;
    transition: var(--transition);
}

.store-badge:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Policy Pages */
.policy-page {
    padding: 8rem 0 5rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--card-bg);
}

.policy-content h3 {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.policy-content p,
.policy-content li {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.policy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Policy Page */
@media (max-width: 768px) {
    .policy-page {
        padding: 6rem 0 3rem;
    }

    .policy-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .policy-content h1 {
        font-size: 1.75rem;
    }

    .policy-content h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.75rem;
    }

    .policy-content h3 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.75rem;
    }

    .policy-content p,
    .policy-content li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Footer Improvements */
.footer-links {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: underline;
    margin: 0 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer container padding fixes & Style */
footer {
    padding: 2rem 0 2rem !important;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: var(--text-muted);
}