/* styles.css */
:root {
    /* Color Palette - Premium Dark Theme */
    --bg-color: #0d0f1a;
    --surface-color: #1a1e36;
    --text-primary: #ffffff;
    --text-secondary: #a0a8cc;
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #6366f1;
    /* Indigo 500 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --accent-color: #8b5cf6;
    /* Violet 500 */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Inter', 'Noto Sans JP', sans-serif;

    /* Effects */
    --glass-bg: rgba(26, 30, 54, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --------------------
   Typography Utils
----------------------- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------
   Buttons
----------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    box-shadow: none;
    pointer-events: none;
}

/* --------------------
   Header
----------------------- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------
   Hero Section
----------------------- */
.hero {
    position: relative;
    padding: calc(var(--spacing-xl) + 80px) 0 var(--spacing-xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(13, 15, 26, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Mockup (CSS Drawing Placeholder) */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.mockup-placeholder {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--bg-color) 100%);
}

.mockup-logo {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------
   Sections Common
----------------------- */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* --------------------
   Features
----------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.feature-title {
    font-size: 1.25rem;
}

.feature-desc {
    color: var(--text-secondary);
}

/* --------------------
   Advantages
----------------------- */
.advantages-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.glow-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    padding: var(--spacing-lg);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.2);
}

.glow-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.glow-box p {
    color: var(--text-secondary);
}

.advantage-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.advantage-number {
    font-size: 2rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    line-height: 1;
}

.advantage-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.advantage-content p {
    color: var(--text-secondary);
}

/* --------------------
   FAQ
----------------------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
}

.faq-answer p {
    padding-bottom: 1rem;
}

/* --------------------
   Pricing Area
----------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: linear-gradient(180deg, rgba(30, 33, 61, 0.4) 0%, var(--surface-color) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(79, 70, 229, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.2);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1) 0%, var(--surface-color) 100%);
}

.pricing-card.premium {
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 33, 61, 0.8) 100%);
}

.pricing-card.premium:hover {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(245, 158, 11, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, #312e81 100%);
    color: white;
    padding: 0.35rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.pricing-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}

.pricing-card:hover .pricing-icon-wrapper {
    transform: scale(1.1);
}

.pricing-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.free-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.basic-icon {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

.premium-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.period {
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pricing-features li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.check-icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-weight: bold;
}

.cross-icon {
    color: #ef4444;
    margin-right: 0.75rem;
    font-weight: bold;
}

.pricing-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.pricing-footer .btn {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------
   CTA Area
----------------------- */
.cta-box {
    background: linear-gradient(135deg, var(--surface-color) 0%, #1c2340 100%);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* --------------------
   Footer
----------------------- */
.site-footer {
    background: var(--surface-color);
    padding: var(--spacing-lg) 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* --------------------
   Feature Showcase
----------------------- */
.feature-showcase {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(26, 30, 54, 0.4) 50%, var(--bg-color) 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.feature-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.showcase-block {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-lg) * 1.5);
    /* 画像とテキストの隙間を広げる */
    margin-bottom: calc(var(--spacing-xl) * 1.5);
    text-align: left;
    /* テキストは左揃えを強制 */
}

.showcase-block:last-child {
    margin-bottom: 0;
}

.showcase-block.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
    /* 横幅の50%を占有 */
    max-width: 50%;
    /* 画像と1:1の比例幅を維持 */
}

.showcase-label {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.showcase-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.showcase-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.showcase-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 50%;
    /* 画像ラッパーも50%を占有 */
}

/* プレイスホルダーの枠組み。画像がなくても崩れないようにする */
.showcase-image {
    width: 100%;
    max-width: 320px;
    /* 特大にならないよう最大幅を安全に固定 */
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #1a1e36;
    aspect-ratio: 1284 / 2778;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    text-align: center;
}

.showcase-image:hover {
    transform: translateY(-10px) scale(1.02);
}

/* --------------------
   Responsive
----------------------- */
@media (max-width: 900px) {
    .header-inner {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto var(--spacing-md);
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .advantages-layout {
        grid-template-columns: 1fr;
    }

    .advantages-image {
        order: 2;
    }

    .advantages-list {
        order: 1;
    }

    .showcase-block {
        flex-direction: column !important;
        text-align: center;
        /* モバイルのときは中央揃えへ */
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .showcase-content,
    .showcase-image-wrapper {
        max-width: 100%;
        /* モバイルのときは100%幅 */
        width: 100%;
    }

    .showcase-image {
        max-width: 280px;
        /* モバイル用にもう少し画像を縮小 */
    }
}
/* Language Switcher */
.lang-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;}
.lang-switch a { color: var(--text-muted); text-decoration: none; transition: color 0.2s;}
.lang-switch a:hover { color: var(--primary-color); }
.lang-switch a.active { color: var(--text-color); font-weight: bold; }
@media (max-width: 768px) { .lang-switch { margin-left: 0; margin-top: 1rem; } }
