:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #06b6d4;
    --color-accent: #f59e0b;

    --color-bg-dark: #0f172a;
    --color-bg-darker: #020617;
    --color-bg-light: #f8fafc;
    --color-white: #ffffff;

    --color-text-main: #1e293b;
    --color-text-light: #64748b;
    --color-text-white: #f1f5f9;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

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

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white {
    color: var(--color-white) !important;
}

.text-gray {
    color: var(--color-text-light) !important;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.badge {
    font-size: 0.75rem;
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-list a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-list a:not(.btn):hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    z-index: -1;
}

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

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Hero Visual / Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-mockup {
    width: 320px;
    height: 600px;
    background: var(--color-white);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid var(--color-bg-darker);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.mockup-header {
    height: 40px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #22c55e;
}

.mockup-screen {
    padding: 1.5rem;
    height: calc(100% - 40px);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    display: flex;
    gap: 0.75rem;
    max-width: 90%;
}

.chat-bubble.ai {
    align-self: flex-start;
}

.chat-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.chat-bubble.user .avatar {
    background: var(--color-text-light);
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.ai .message {
    background: white;
    border-top-left-radius: 0;
}

.chat-bubble.user .message {
    background: var(--color-primary);
    color: white;
    border-top-right-radius: 0;
}

.ai-feedback {
    margin-top: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.feedback-icon {
    color: var(--color-primary);
}

.feedback-content {
    font-size: 0.75rem;
}

.feedback-title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.voice-wave {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.voice-wave span {
    width: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.voice-wave span:nth-child(1) {
    height: 10px;
    animation-delay: 0.1s;
}

.voice-wave span:nth-child(2) {
    height: 20px;
    animation-delay: 0.2s;
}

.voice-wave span:nth-child(3) {
    height: 30px;
    animation-delay: 0.3s;
}

.voice-wave span:nth-child(4) {
    height: 20px;
    animation-delay: 0.4s;
}

.voice-wave span:nth-child(5) {
    height: 10px;
    animation-delay: 0.5s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-bg-dark);
}

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

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 強制的に2列 */
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        /* スマホでは1列 */
    }
}

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

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

/* Cards */
.card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-card h3 {
    margin: 1rem 0;
    font-size: 1.25rem;
}

.problem-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.illustration-box {
    width: 100%;
    height: 160px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.illustration-box svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
}

.icon-box.warning {
    background: #fff7ed;
    color: #ea580c;
}

/* Features / Solution */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

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

.feature-text {
    flex: 1;
}

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

.feature-text .tag {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.feature-text p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-list li i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.rounded-img {
    width: 100%;
    aspect-ratio: 16/10;
    /* 画像の比率を統一 */
    object-fit: cover;
    /* トリミングして枠に収める */
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.gradient-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 1;
}

.gradient-blob.secondary {
    left: -20px;
    right: auto;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-card {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.dash-card.wide {
    grid-column: span 2;
}

.dash-card h4 {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.dash-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.dash-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dash-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
}

.dash-table-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.dash-table-row:last-child {
    border-bottom: none;
}

.status {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 99px;
}

.status.good {
    background: #dcfce7;
    color: #166534;
}

.status.medium {
    background: #fef9c3;
    color: #854d0e;
}

/* Feature Items (Dark Section) */
.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.feature-screenshot {
    width: 65%;
    margin: 0 auto;
    border-radius: 33px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    /* transition: transform 0.3s ease; ホバーエフェクト削除のためコメントアウト */
}

/* ホバーエフェクト削除
.feature-item:hover .feature-screenshot img {
    transform: scale(1.05);
}
*/

/* Points Section */
.point-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.point-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.point-icon i {
    width: 32px;
    height: 32px;
}

.point-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-bg-dark);
}

.point-card p {
    color: var(--color-text-light);
    line-height: 1.8;
}

.point-card b {
    color: var(--color-primary);
    font-weight: 700;
}

.point-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #f8fafc;
    /* イラスト用の背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.point-image img,
.point-image svg {
    width: 100%;
    height: 180px;
    object-fit: contain;
    /* イラスト全体を表示 */
    transition: transform 0.3s ease;
}

.point-image svg {
    width: auto;
    max-width: 100%;
}

.point-card:hover .point-image img,
.point-card:hover .point-image svg {
    transform: scale(1.05);
}

.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--color-bg-darker);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Use Case Cards */
.usecase-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: var(--shadow-md);
}

.usecase-card .usecase-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.usecase-card .usecase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.usecase-card:hover .usecase-img img {
    transform: scale(1.05);
}

.usecase-card .card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.usecase-card .icon-box {
    margin-bottom: 1rem;
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.usecase-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.usecase-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {

    .hero-content,
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .check-list li {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-list {
        display: none;
    }

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

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}