:root {
    /* Colors */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #10B981;
    --dark: #0F172A;
    --light: #F8FAFC;
    --text: #334155;
    --text-light: #64748B;
    --accent-gradient: linear-gradient(135deg, #2563EB 0%, #10B981 100%);

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: #EFF6FF;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Text Utilities */
.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--text);
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-list .btn-primary {
    color: white !important;
}

.nav-list .btn-primary:hover {
    color: white !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    /* Overlay gradient on top of image for readability */
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.85) 100%), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center 20%;
    overflow: hidden;
}

/* Service Background Overlay (Parallax) */
.service-bg-parallax {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('images/service-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin: 60px 0;
    color: white;
    text-align: center;
    position: relative;
    z-index: 10;
}

.service-bg-parallax h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-bg-parallax p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Responsive adjustment for parallax on mobile */
@media (max-width: 768px) {
    .service-bg-parallax {
        background-attachment: scroll;
        padding: 60px 0;
    }

    .service-bg-parallax h2 {
        font-size: 1.8rem;
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #F1F5F9;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.profile-detail {
    margin-top: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.profile-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #F1F5F9;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--dark);
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
}

.profile-text p {
    margin-bottom: 2rem;
    color: var(--text);
}

.supported-platforms h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: #F1F5F9;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    border: 1px solid #E2E8F0;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F1F5F9;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.25rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.service-card p {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Columns Section */
.columns {
    background-color: #fff;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.column-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.column-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.column-tag {
    display: inline-block;
    background: #DBEAFE;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    align-self: flex-start;
}

.column-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.column-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.column-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.column-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .columns-grid {
        gap: 1.5rem;
    }
}

/* Achievements */
/* Featured Project */
.featured-project {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    border: 1px solid #E2E8F0;
}

.project-image {
    flex: 1 1 500px;
    min-height: 300px;
    position: relative;
    background: #f1f5f9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 書類画像なので全体が見えるように */
    display: block;
    padding: 1rem;
    /* 少し余白を入れて書類っぽさを出す */
}

.project-info {
    flex: 1 1 400px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badgem-featured {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.2;
}

.project-info h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-info p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.project-info blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.project-tech {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    border-top: 1px solid #E2E8F0;
    padding-top: 1rem;
    margin-bottom: 0 !important;
}

.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.achievements-action {
    text-align: center;
    margin-bottom: 1.5rem;
}

.achievement-item {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--primary-dark);
    border: 1px solid #BFDBFE;
    background: #EFF6FF;
}

.notes-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Notes Section */
.notes {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.notes-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notes-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.notes-list li::before {
    content: '※';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

/* Contact */
.contact {
    text-align: center;
    background: var(--dark);
    color: white;
    border-radius: 20px 20px 0 0;
}

.contact .section-title {
    color: white;
}

.contact p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: 0.3s;
    border-radius: 3px;
}

/* アニメーション用クラス */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* コンタクトフォーム */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: #f8fafc;
    /* Lighter color for better contrast against dark background */
}

.required {
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--dark);
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    margin-top: 1rem;
    cursor: pointer;
}

.form-note {
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsiveness */
@media (max-width: 768px) {
    .featured-project {
        flex-direction: column;
    }

    .project-image {
        min-height: 250px;
    }

    .profile-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-text h3 {
        border-left: none;
        border-bottom: 3px solid var(--primary);
        display: inline-block;
        padding-left: 0;
        padding-bottom: 0.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transition: 0.3s ease-in-out;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-subtitle br {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Service Card Badges */
.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-rakuten {
    background: #bf0000;
}

.badge-yahoo {
    background: #ff0033;
}

.badge-amazon {
    background: #ff9900;
    color: #111;
}

.badge-shopify {
    background: #95bf47;
    color: #002e25;
}

.badge-base {
    background: #1c1c1c;
}

.badge-colorme {
    background: #00ac9a;
}

.badge-makeshop {
    background: #004a9e;
}

.badge-future {
    background: #0081cb;
}

.badge-qoo10 {
    background: #ed212d;
}

.badge-eccube {
    background: #16365c;
}

.project-image-grid {
    flex: 1 1 500px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    min-height: 300px;
}

.grid-image-item {
    position: relative;
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grid-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    text-align: center;
}

.pricing-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.price-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text);
    font-size: 0.9rem;
}

.price-features li:last-child {
    border-bottom: none;
}

.pricing-intro,
.pricing-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item-open {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    padding: 1.5rem;
}

.faq-question {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

/* Q icon style if needed, or simple text */
.faq-question::before {
    content: none;
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: 800;
}

.faq-answer {
    color: var(--text);
    line-height: 1.7;
    margin-left: 0;
    padding-left: 0;
}

/* Contact Form Enhancements */
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--dark);
    transition: 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.contact-form select:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
    border-color: var(--primary);
}

.privacy-note {
    font-size: 0.85rem;
    margin: 1.5rem 0 1rem;
    text-align: center;
    color: var(--text);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 4px;
}

.privacy-note a {
    color: var(--primary);
    text-decoration: underline;
}

.footer-info {
    text-align: center;
}

.tech-stack {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    /* Desktop default hidden */
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.mobile-sticky-cta .btn {
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    font-size: 1.1rem;
    border: 2px solid white;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    .footer {
        padding-bottom: 80px;
        /* Space for sticky button */
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.policy-section {
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.policy-section p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.modal-footer {
    margin-top: 2rem;
    text-align: center;
}

.modal-footer .btn {
    min-width: 150px;
}