:root {
    --primary-color: #ED6103;
    --primary-dark: #B84B02;
    --secondary-color: #FF8533;
    --accent-color: #FFD700;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-color: #F8FAFC;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

.text-emphasis {
    color: var(--primary-color);
    font-size: 1.5rem;
    background: linear-gradient(to top, rgba(237, 97, 3, 0.1) 40%, transparent 40%);
    padding: 0 0.5rem;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(237, 97, 3, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 97, 3, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 1rem 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* 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 {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Mobile Footer Links in Nav - Hidden on Desktop */
.nav .mobile-footer-links {
    display: none !important;
}

/* Nav Link Hover */
.nav a:not(.btn):hover {
    color: var(--primary-color);
}

.nav .btn-primary {
    color: var(--white);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 50, 0.4);
    /* Dark overlay */
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
    padding-top: 100px;
    /* Clear fixed header */
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 120%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-badge {
    background: #FFD700;
    color: var(--text-color);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2.5rem;
    /* Increased margin to prevent overlap with larger logo */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite;
}

.hero-brand {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    width: 100%;
}

.hero-brand img {
    width: 340px;
    height: auto;
    background: #ffffff;
    /* Pure white to match image */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
    /* Changed to left align */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Intro */
.intro {
    background: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.intro-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-align: center;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(237, 97, 3, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.intro-card p {
    color: var(--text-light);
}

/* Features */
.bg-light {
    background-color: #F0F4F8;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-img {
    flex: 1;
    height: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Gradient placeholders for images - in real prod use images */
.gradient-1 {
    background-image: url("image 3.png");
    background-size: cover;
    background-position: center;
}

.gradient-2 {
    background-image: url("Group 3.png");
    background-size: 85%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
}

.gradient-3 {
    background-image: url("image 4.png");
    background-size: cover;
    background-position: center;
}

.dummy-img {
    position: relative;
    overflow: hidden;
}



.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(237, 97, 3, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Flow */
.flow {
    background: var(--white);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    flex: 1;
    max-width: 250px;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(237, 97, 3, 0.3);
}

.step-arrow {
    padding-top: 20px;
    font-size: 2rem;
    color: #CBD5E1;
    font-weight: 300;
}

.step-item h3 {
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
}

/* Footer */
.footer {
    background: #111827;
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
    font-weight: 700;
}

.footer-logo img {
    height: auto;
    width: 160px;
    /* Match width of "株式会社ホームネット" (approx 10rem) */
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    color: #6B7280;
    font-size: 0.8rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    .hero-bg {
        background-position: 70% center;
    }

    .hero-brand {
        justify-content: center;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-img {
        width: 100%;
        height: 200px;
        flex: none;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
        padding: 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        /* Stack children vertically */
        justify-content: flex-start;
        /* Changed from center to flex-start */
        align-items: center;
        padding-top: 80px;
        /* Add padding to clear header */
        overflow-y: auto;
        /* Enable scrolling */
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav .mobile-footer-links {
        /* Increased specificity */
        display: flex !important;
        /* Force display on mobile */
        flex-direction: column;
        align-items: center;
        gap: 1.5rem !important;
        margin-top: 2rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
        /* Add bottom padding for scrolling */
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        width: 80%;
    }

    .mobile-footer-links a {
        font-size: 0.9rem !important;
        /* Smaller text for footer links */
        color: var(--text-light);
    }

    .footer-links {
        display: none !important;
        /* Hide footer links in footer on mobile */
    }

    .nav a {
        font-size: 1.25rem;
    }

    .hamburger {
        display: block;
    }

    .hero-container {
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        padding-top: 110px;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin: 0 auto;
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .sp-br {
        display: block;
    }
}

@media (min-width: 769px) {
    .sp-br {
        display: none;
    }
}

/* PC専用の改行 */
@media (max-width: 768px) {
    .pc-br {
        display: none;
    }
}


/* Use Cases */
.use-cases {
    background: linear-gradient(to bottom, #FFF, #F8FAFC);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-case-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.use-case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.use-case-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}