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

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

/* =============================================== */
/* VibeSync Main Site Styles (Tessi.eu Inspired Modern Theme) */
/* =============================================== */
:root {
    /* Blue gradient theme inspired by Tessi.eu */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-cta-blue: #2563eb;
    --accent-cta-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* Soft professional backgrounds */
    --bg-white: #ffffff;
    --bg-light-blue: #eff6ff;
    --bg-blue-gradient: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    --bg-soft-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);

    /* Text colors for professional look */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-on-blue: #ffffff;

    /* Card and glass effects */
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --card-shadow-strong: 0 28px 50px -24px rgba(15, 23, 42, 0.48), 0 14px 35px -18px rgba(15, 23, 42, 0.32);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(37, 99, 235, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > footer {
    margin-top: auto;
}

/* Prevent horizontal scroll on mobile Safari/Chrome */
html, body { max-width: 100%; overflow-x: hidden; }
/* Lock page scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

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

/* Base sections are stacking contexts */
.hero, .section, .cta-section, footer {
    position: relative;
}

.site-banner {
    display: block;
    background: linear-gradient(90deg, #6b21a8 0%, #9333ea 100%);
    color: #f9f5ff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-banner-text {
    display: inline-flex;
    align-items: center;
}

.site-banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.site-banner-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.site-banner-arrow::after {
    content: '\2192';
    font-size: 1rem;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.site-banner-link:hover .site-banner-arrow::after {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .site-banner { padding: 9px 12px; font-size: 0.88rem; }
    .site-banner-link { gap: 8px; }
    .site-banner-arrow { display: none; }
}

/* Avoid rendering offscreen sections until needed */
.section,
.cta-section,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* Lucide icon styles */
.service-icon,
.philosophy-icon,
.reason-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke-width: 1.5px;
}

.service-card .service-icon {
    margin-bottom: 20px;
    color: var(--accent-cta-blue);
}

.reason-card .reason-icon {
    margin-bottom: 20px;
    color: var(--accent-cta-blue);
}

.philosophy-card .philosophy-icon {
    margin-bottom: 20px;
    color: var(--accent-cta-blue);
}

.process-step-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cta-blue);
    stroke-width: 1.8px;
}

.process-step h3 {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contact-icon-figure {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cta-blue);
    stroke-width: 1.8px;
}

/* Layer 1: Section Backgrounds (Applied directly to sections) */
.hero {
        /* Blue gradient overlay inspired by Tessi.eu + responsive hero image with fallbacks */
        background:
            linear-gradient(135deg, rgba(37, 99, 235, 0.75) 0%, rgba(29, 78, 216, 0.85) 50%, rgba(30, 64, 175, 0.75) 100%),
                            image-set(
                                /* AVIF (preferred) */
                            url('/images/hero-800.avif') type('image/avif') 1x,
                            url('/images/hero-1600.avif') type('image/avif') 2x,
                                /* WebP fallback */
                            url('/images/hero-800.webp') type('image/webp') 1x,
                            url('/images/hero-1600.webp') type('image/webp') 2x,
                                /* Existing PNG ultimate fallback */
                                url('/images/サムネイル0.png') type('image/png') 1x
                            );
        background-size: cover;
        background-position: center 20%;
        background-repeat: no-repeat;
}

.hero.hero--applovin {
    background: linear-gradient(180deg, #f7f8fc 0%, #e3e7f2 100%);
}

.section-dark { background: var(--bg-blue-gradient); }
.section-light { background: var(--bg-white); }
.cta-section { background: var(--bg-soft-gradient); }
footer { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }

/* Layer 2: Particle Animation - DISABLED */
.particles {
    display: none;
}

/* Layer 3: All Content */
header, .hero-content, .section .container, .cta-section .container, footer .container {
    position: relative;
    z-index: 2; /* Content sits ON TOP of particles */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    z-index: 1000; /* Header is always on top */
}

nav {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 24px;
    gap: 24px;
    justify-content: flex-start;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #3b5ef8 0%, #a15af0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 94, 248, 0.65) 0%, rgba(161, 90, 240, 0.5) 100%);
    filter: blur(16px);
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-flex;
}

@media (max-width: 1023px) {
    header {
        min-height: 76px;
    }

    nav {
        justify-content: space-between;
        gap: 16px;
        min-height: 76px;
        padding: 16px 20px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        display: block;
        text-align: left;
        padding: 14px 16px;
        white-space: nowrap;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .nav-links a:hover:not(.cta-nav) {
        background: rgba(37, 99, 235, 0.08);
        transform: translateX(4px);
    }

    .cta-nav {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(90vw, 360px);
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 152px 24px 40px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        gap: 16px;
        margin-left: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition:
            transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            visibility 0s linear 0.4s;
        will-change: transform, opacity;
    }

    nav.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition:
            transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            visibility 0s;
    }

    nav.menu-open .hamburger {
        background: transparent;
        border: none;
        box-shadow: none;
    }
}

@media (min-width: 1024px) {
    nav {
        justify-content: flex-start;
    }

    .hamburger {
        display: none !important;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 24px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        margin-left: auto;
        align-items: center;
    }

    .nav-links::before {
        display: none;
    }

    .nav-links li {
        display: inline-flex;
    }

    .nav-links a {
        display: inline-block;
        color: var(--text-primary);
        padding: 10px 16px;
        border-radius: 6px;
        margin-top: 0;
        white-space: nowrap;
    }

    .nav-links a:hover:not(.cta-nav) {
        background: rgba(37, 99, 235, 0.08);
        transform: none;
    }

    .cta-nav {
        width: auto;
        margin-top: 0;
        justify-content: center;
        padding: 10px 18px;
    }
}

/* Menu overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.4s ease;
    z-index: 998;
}

@media (max-width: 1023px) {
    body.menu-open::after {
        background: rgba(0, 0, 0, 0.5);
        pointer-events: auto;
    }
}

/* Hamburger toggle placement */
.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: auto;
}

@media (max-width: 1023px) {
    .nav-links li {
        width: 100%;
        margin: 0;
        padding-top: 0;
    }

    .nav-links a {
        width: 100%;
        display: block;
        text-align: left;
        padding: 14px 16px;
        white-space: nowrap;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .nav-links a:hover:not(.cta-nav) {
        background: rgba(37, 99, 235, 0.08);
        transform: translateX(4px);
    }

    .cta-nav {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}


/* Hamburger icon styles - McCann style */
.hamburger {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    padding: 0;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

/* X animation when menu is open */
nav.menu-open .hamburger span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

nav.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

nav.menu-open .hamburger span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.cta-nav {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.22);
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
    color: white !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

.nav-links a.active {
    color: var(--accent-cta-blue);
    font-weight: 700;
    position: relative;
}

.nav-links a.cta-nav.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.25);
    border-radius: 8px;
}

.nav-links a.cta-nav.active::after {
    display: none;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

/* Hero Section - Tessi.eu inspired */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 32px;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Reason page hero: improve mobile break control */
.br-m { display: none; }
@media (max-width: 768px) {
    .br-m { display: inline; }
    .reason-hero-title { line-height: 1.2; }
    .reason-hero-title .nowrap-m { white-space: nowrap; }
    /* Slightly reduce font-size on narrow phones to avoid third line wrap */
    @media (max-width: 400px) {
        .reason-hero-title { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }
    }
}

/* PC幅ではヒーロー見出しを改行させない */
/* 強制2行表示にするためPC幅でのnowrapを無効化 */

.hero .subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

.hero.hero--applovin {
    min-height: auto;
    padding: 180px 0 120px;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(180deg, #f7f8fc 0%, #e3e7f2 100%);
}

.hero.hero--applovin .hero-content {
    max-width: 880px;
}

.hero.hero--applovin .hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #5b6585;
    margin-bottom: 24px;
}

.hero.hero--applovin h1,
.hero.hero--applovin .hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-title-accent {
    background: linear-gradient(90deg, #3b5ef8 0%, #a15af0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero.hero--applovin .hero-subtitle {
    color: #4f5a7d;
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-points-marquee {
    --hero-marquee-duration: 28s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 54px auto 0;
    padding: 14px 0;
    border-radius: 999px;
    border: 1px solid rgba(192, 203, 232, 0.7);
    background: linear-gradient(90deg, rgba(243, 245, 254, 0.9) 0%, rgba(228, 232, 248, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 24px 48px rgba(74, 86, 124, 0.18);
    backdrop-filter: blur(6px);
}

.hero-points-marquee::before,
.hero-points-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-points-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(243, 245, 254, 1) 0%, rgba(243, 245, 254, 0) 100%);
}

.hero-points-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(228, 232, 248, 1) 0%, rgba(228, 232, 248, 0) 100%);
}

.hero-points-track {
    display: flex;
    align-items: center;
    gap: 56px;
    list-style: none;
    padding: 0 48px;
    margin: 0;
    flex: 0 0 auto;
    min-width: max-content;
    will-change: transform;
    animation: heroPointsMarquee var(--hero-marquee-duration) linear infinite;
}

.hero-point {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #3f4a69;
    white-space: nowrap;
}

.hero-point::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 18px;
    border-radius: 50%;
    background: rgba(105, 123, 175, 0.3);
    box-shadow: 0 0 0 6px rgba(105, 123, 175, 0.16);
}

@keyframes heroPointsMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-points-track {
        animation: none;
    }
}

.hero.hero--applovin .cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-cta-blue);
    border: 2px solid rgba(59, 94, 248, 0.18);
}

.hero.hero--applovin .cta-secondary:hover {
    background: white;
    border-color: rgba(59, 94, 248, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-cta-gradient);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cta-button .cta-icon {
    width: 20px;
    height: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(30, 64, 175, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.cta-primary {
    background: var(--accent-cta-gradient);
}

.cta-primary:hover {
    box-shadow:
        0 10px 24px rgba(30, 64, 175, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.section {
    padding: 100px 0;
}
.section-dark {
    color: var(--text-primary);
}
.section-light {
    color: var(--text-primary);
    background: #f8fafc;
}
.cta-section {
    padding: 80px 0;
    text-align: center;
    color: var(--text-primary);
}

.service-card p, .reason-card p, .reason-card li, .philosophy-card p, .timeline-content p, .timeline-content li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
    line-height: 1.7;
    font-weight: 400;
}

.section-intro {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 56px;
}

.section-intro .section-subtitle {
    margin-bottom: 0;
}

.live-sharing-layout {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 48px;
    margin-top: 48px;
}

.live-sharing-overview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 8px;
}

.live-sharing-overview h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.live-sharing-overview p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.live-sharing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-sharing-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.live-sharing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-cta-gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-check' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px 12px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-check' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

.live-sharing-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.live-sharing-browser {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 24px;
    position: relative;
    box-shadow: var(--card-shadow-strong);
}

.live-sharing-browser img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: var(--card-shadow);
}

.live-sharing-status {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(37, 99, 235, 0.16);
    color: var(--accent-cta-blue);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 999px;
}

.live-sharing-caption {
    color: var(--text-secondary);
    text-align: center;
    max-width: 420px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.live-sharing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 52px;
}

.live-sharing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--card-shadow-strong);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.live-sharing-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-cta-blue);
    font-size: 1.5rem;
}

.live-sharing-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.live-sharing-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.live-sharing-note {
    margin-top: 48px;
    padding: 28px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--card-shadow);
}

.live-sharing-note-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cta-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.live-sharing-note p {
    margin: 0;
    line-height: 1.8;
}

.comparison-table-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
    vertical-align: top;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.7;
}

.comparison-table thead th {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.08);
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.comparison-table tbody th {
    font-weight: 600;
    color: var(--text-primary);
    width: 180px;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-of-type {
    background: rgba(37, 99, 235, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table tbody td:last-of-type {
    background: rgba(15, 23, 42, 0.2);
}

.comparison-cell {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.comparison-cell p {
    margin: 0;
}

.comparison-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    flex-shrink: 0;
    border: none;
    line-height: 1;
}

.comparison-mark--excellent {
    color: #16a34a;
}

.comparison-mark--good {
    color: #2563eb;
}

.comparison-mark--mixed {
    color: #eab308;
}

.comparison-mark--poor {
    color: #dc2626;
}

@media (max-width: 640px) {
    .comparison-table-wrap {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .comparison-table {
        min-width: 0;
        width: 100%;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .comparison-table tbody tr {
        display: block;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(37, 99, 235, 0.18);
        border-radius: 18px;
        padding: 18px 20px;
        box-shadow: var(--card-shadow);
    }

    .comparison-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .comparison-table tbody th,
    .comparison-table tbody td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 12px 0;
        background: transparent;
        border-right: none;
    }

    .comparison-table tbody th {
        margin-bottom: 6px;
        font-size: 1.05rem;
    }

    .comparison-table tbody td:first-of-type,
    .comparison-table tbody td:last-of-type {
        background: transparent;
    }

    .comparison-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--accent-cta-blue);
        margin-bottom: 6px;
    }

    .comparison-cell {
        gap: 10px;
    }

    .comparison-mark {
        font-size: 1.15rem;
    }
}

/* モバイルのタイポグラフィと余白最適化 */
@media (max-width: 768px) {
    .hero.hero--applovin { padding: 150px 0 80px; }
    .hero.hero--applovin h1,
    .hero.hero--applovin .hero-title { font-size: clamp(2.2rem, 7.8vw, 3.2rem); }
    .hero-points-marquee { margin-top: 36px; padding: 12px 0; }
    .hero-points-track { gap: 36px; padding: 0 32px; }
    .hero-point { font-size: 0.92rem; letter-spacing: 0.015em; }
    .hero-point::before { margin-right: 12px; }
    .section { padding: 80px 0; }
    .section-title { font-size: clamp(2rem, 7vw, 2.5rem); margin-bottom: 16px; }
    .section-subtitle { font-size: 1rem; margin-bottom: 40px; line-height: 1.7; padding: 0 12px; }
    .service-card, .reason-card, .philosophy-card, .process-step, .timeline-content { padding: 28px; }
    .process-grid, .contact-cards { gap: 24px; }
}

@media (max-width: 480px) {
    .section { padding: 64px 0; }
    .section-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 32px; padding: 0 10px; }
    .hero.hero--applovin { padding: 130px 0 72px; }
    .hero-points-marquee { margin-top: 28px; padding: 10px 0; }
    .hero-points-track { gap: 28px; padding: 0 24px; }
    .hero-point { font-size: 0.88rem; }
}

.services-grid,
.reasons-grid,
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.services-grid > .service-card,
.reasons-grid > .reason-card,
.philosophy-grid > .philosophy-card {
    grid-column: span 1;
}

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

.process-grid, .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card, .reason-card, .philosophy-card, .process-step, .timeline-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.service-card h3, .reason-card h3, .philosophy-card h3, .process-step h3, .timeline-content h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.timeline-content h3 .process-step-icon {
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    background: linear-gradient(160deg, #081b58 0%, #161f75 40%, #1b1f86 100%);
    color: rgba(226, 232, 255, 0.85);
    padding: 48px 0 32px;
    position: relative;
    overflow: hidden;
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 142, 255, 0.18) 0%, rgba(113, 142, 255, 0) 70%);
    z-index: 0;
}

footer::before { top: -120px; left: -80px; }
footer::after { bottom: -80px; right: -40px; }

.footer-simple {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    color: rgba(233, 237, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.85) 0%, rgba(147, 112, 255, 0.85) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-bottom.footer-bottom--simple {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(148, 163, 255, 0.25);
    padding-top: 24px;
    color: rgba(226, 232, 255, 0.65);
    font-size: 0.9rem;
}

.footer-bottom--simple p {
    margin: 0;
}

.footer-email {
    color: rgba(226, 232, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
}

.footer-email:hover {
    color: #ffffff;
}

.footer-legal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-legal a {
    color: rgba(226, 232, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
}

.footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .footer-links { gap: 14px 20px; }
    .footer-links a { font-size: 0.88rem; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user preference: reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .particle { display: none !important; }
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

.floating-card {
    transition: all 0.3s ease;
}

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

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-step-number {
    background: var(--primary-gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem; /* 文字サイズを調整 */
    line-height: 1; /* 行の高さを調整 */
    text-align: center; /* 中央揃えを確実にする */
    margin-right: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    flex: 1;
}

.timeline-content h3 {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.timeline-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cta-blue);
    font-weight: bold;
}

.chat-process-hero {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-shadow: var(--card-shadow);
}

.chat-process-hero img {
    width: min(720px, 100%);
    height: auto;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.chat-process-caption {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 780px;
    text-align: center;
    line-height: 1.7;
}

.chat-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: 60px;
}

.chat-transition-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    width: min(420px, 100%);
    box-shadow: var(--card-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chat-transition-media {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
}

.chat-transition-media img {
    width: 100%;
    height: auto;
    display: block;
}

.chat-transition-card figcaption {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-transition-arrow {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.chat-transition-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--accent-cta-blue);
    transform: translateY(-50%);
    border-radius: 999px;
}

.chat-transition-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--accent-cta-blue);
    border-right: 2px solid var(--accent-cta-blue);
    transform: translateY(-50%) rotate(45deg);
}

.chat-process-note {
    color: var(--text-secondary);
    text-align: center;
    max-width: 720px;
    margin: 48px auto 0;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .chat-transition {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .chat-process-hero {
        padding: 24px;
    }

    .chat-transition {
        flex-direction: column;
        margin-top: 48px;
    }

    .chat-transition-arrow {
        transform: rotate(90deg);
    }

    .chat-transition-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .chat-process-caption {
        font-size: 0.95rem;
    }

    .chat-transition-card figcaption {
        font-size: 0.9rem;
    }

    .chat-process-note {
        font-size: 0.95rem;
    }
}

.live-sharing-icon svg,
.chat-transition-card svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .live-sharing-layout {
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .live-sharing-layout {
        flex-direction: column;
    }

    .live-sharing-caption {
        max-width: none;
    }

    .live-sharing-note {
        flex-direction: column;
        align-items: stretch;
    }

    .live-sharing-note-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .live-sharing-card {
        padding: 24px;
    }

    .live-sharing-note {
        padding: 24px;
        gap: 16px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 16px;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}


/* legacy pricing badge (unused) */
.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cta-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 32px;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-on-dark);
}

.plan-tagline {
    color: var(--text-secondary);
    font-style: italic;
}

.price-prefix {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    /* Flexboxで配置を制御 */
    display: flex;
    justify-content: center;
    align-items: baseline; /* テキストのベースラインで揃える */
    white-space: nowrap; /* 折り返しを禁止 */
}

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

.pricing-card .price .price-tax {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 8px; /* 金額との間に余白を追加 */
}

.pricing-card .price.discounted {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-top: 18px;
    white-space: normal;
}

.pricing-card .price.discounted .price-original {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.pricing-card .price.discounted .price-amount {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card .price.discounted .price-tax {
    margin-left: 0;
}

.pricing-card .price.discounted .discount-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-cta-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.price-suffix {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-monthly {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    position: relative;
    padding-left: 32px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cta-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card .features-list {
    flex: 1 1 auto;
}

.pricing-card .cta-button {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.pricing-note {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .pricing-note {
        font-size: 0.9rem;
        padding: 16px;
    }
}

@media(max-width: 768px) {
    .pricing-card {
        transform: none;
        order: initial;
    }
}

.portfolio-section {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 64, 175, 0.92) 55%, rgba(30, 58, 138, 0.96) 100%);
    color: #f5f7ff;
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(103, 132, 255, 0.45), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.28), transparent 60%),
                radial-gradient(circle at 50% 100%, rgba(15, 118, 110, 0.25), transparent 65%);
    pointer-events: none;
    opacity: 0.7;
}

.portfolio-section .container {
    max-width: 1180px;
    position: relative;
    z-index: 1;
}

.portfolio-section .section-title,
.portfolio-section .section-subtitle {
    color: #f5f7ff;
    text-align: left;
}

.portfolio-section .section-subtitle {
    max-width: 640px;
    opacity: 0.85;
    margin-bottom: 56px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px 40px;
    margin-top: 72px;
    align-items: start;
}

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

.portfolio-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #f5f5f5;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.05);
}

.portfolio-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #0f0f0f;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.04);
}

.portfolio-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portfolio-meta {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.portfolio-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fdfdfd;
}

.portfolio-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #f0f4ff;
    text-decoration: none;
    position: relative;
}

.portfolio-link::after {
    content: '↗';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.portfolio-link:hover::after {
    transform: translateY(-2px);
}

.portfolio-link:hover {
    color: #ffffff;
}

.reason-card ul {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.reason-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    position: relative;
    padding-left: 32px;
    transition: all 0.3s ease;
}

.reason-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cta-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.reason-card li:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

/* =============================================== */
/* Case Study Page Styles (Innovate Consulting)  */
/* =============================================== */
.case-study-page {
    background: #ffffff;
    color: #333;
    font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.case-study-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid #EAECEF;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.case-study-logo {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.case-study-nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.case-study-nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.case-study-nav-links a:hover {
    color: #0057FF;
}

.case-study-main {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cs-hero {
    background: url('../innovate-consulting/images/背景1.png') center center/cover no-repeat;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cs-hero .container {
    position: relative;
    z-index: 2;
}

.cs-main-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #000000 !important;
}

.cs-main-title .highlight {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-subtitle {
    font-size: 1.25rem;
    color: #000000 !important;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cs-section {
    padding: 100px 0;
}

.cs-section-light {
    background-color: #F8F9FA;
}

.cs-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

.cs-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
}

.text-center { text-align: center; }
.text-center .cs-section-title { margin-bottom: 80px; }

.cs-flex-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.cs-text-content { flex: 1; }
.cs-image-content { flex: 1; }
.cs-image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.cs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cs-service-item {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cs-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cs-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0057FF 0%, #1E3A8A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: #ffffff;
}

.cs-service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

.cs-service-item p {
    color: #555;
    line-height: 1.6;
}

.cs-news-list {
    max-width: 800px;
    margin: 0 auto;
}

.cs-news-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cs-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cs-news-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.cs-news-item time {
    font-weight: 600;
    color: #0057FF;
}

.cs-news-category {
    background: #E6F0FF;
    color: #0057FF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    align-self: flex-start;
}

.cs-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    flex: 1;
    padding-right: 24px;
    position: relative;
}

.cs-news-title::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #0057FF;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cs-news-item:hover .cs-news-title::after {
    transform: translateY(-50%) translateX(4px);
}

.case-study-footer {
    background: url('../innovate-consulting/images/背景2.png') center center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
}

.cs-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.cs-footer-main {
    max-width: 300px;
}

.cs-footer-main .case-study-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}

.cs-footer-links {
    display: flex;
    gap: 60px;
}

.cs-footer-links ul {
    list-style: none;
}

.cs-footer-links a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.cs-footer-links a:hover {
    color: #ffffff;
}

.cs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
}

.cs-footer-bottom p {
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-footer-content {
        flex-direction: column;
    }
    .cs-footer-links {
        gap: 40px;
    }
}

/* =============================================== */
/* Case Study Sub-Page Styles                    */
/* =============================================== */

.cs-page-hero {
    background: #F8F9FA;
    padding: 80px 0;
    border-bottom: 1px solid #EAECEF;
}

.cs-page-title {
    font-size: 2.5rem;
    color: #111;
}

/* =============================================== */
/* Subscription Plan Card Styles                 */
/* =============================================== */

.sub-plan-card {
    background: #ffffff;
    color: var(--text-on-light);
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sub-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.sub-plan-card .plan-name {
    color: #667eea;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sub-plan-card .plan-fit {
    font-size: 1rem;
    color: #4A5568;
    margin-bottom: 12px;
}

.sub-plan-card .plan-fit strong {
    color: #2D3748;
    font-weight: 600;
    margin-right: 6px;
}

.sub-plan-card .plan-main-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 12px;
}

.sub-plan-card .price {
    color: #1A202C;
    margin-bottom: 24px;
    /* Flexboxを使ってテキストの縦位置を揃える */
    display: flex;
    justify-content: center;
    align-items: baseline;
    white-space: nowrap;
}

.sub-plan-card .price.price-multi {
    flex-direction: column;
    gap: 8px;
    white-space: normal;
}

.sub-plan-card .price.price-multi .price-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.sub-plan-card .price.price-multi .price-amount {
    font-size: 2.1rem;
}

.sub-plan-card .price.price-multi .price-suffix {
    font-size: 1rem;
    color: #4A5568;
}

.sub-plan-card .price .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
}
.sub-plan-card .price .price-suffix {
    font-size: 1rem;
    color: #718096;
}

.sub-plan-card .features-list {
    text-align: left;
    color: #4A5568;
}

.sub-plan-card .features-list li {
    border-bottom: 1px solid #e2e8f0;
    color: #4A5568;
}

.sub-plan-card .features-list li::before {
    color: #38A169;
}

.plan-download-cta {
    margin-top: 32px;
    text-align: center;
}

.plan-download-cta .cta-button {
    min-width: 260px;
}

/* =============================================== */
/* SaaS LP Page Styles (Cognify) - NEW THEME     */
/* =============================================== */
.saas-lp-page {
    --saas-base: #FFFFFF;
    --saas-text-charcoal: #2C3E50;
    --saas-text-grey: #7F8C8D;
    --saas-cta-purple: #8E44AD;
    --saas-accent-blue: #2980B9;
    --saas-bg-light-blue: #EBF5FB;
    --saas-border: #EAECEF;
    background: var(--saas-base);
    color: var(--saas-text-charcoal);
    font-family: 'Inter', sans-serif;
}

.saas-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--saas-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.saas-header nav { display: flex; justify-content: space-between; align-items: center; }
.saas-logo { font-size: 28px; font-weight: 700; color: var(--saas-text-charcoal); text-decoration: none; }
.saas-cta-nav {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--saas-cta-purple);
    color: var(--saas-base);
}
.saas-cta-nav:hover {
    background: #7D3C98; /* Darker Purple */
}

.saas-main { animation: fadeIn 1s ease-in-out; }

.saas-hero { padding: 100px 0; }
.saas-hero-badge {
    display: inline-block;
    background: var(--saas-bg-light-blue);
    color: var(--saas-accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}
.saas-main-title { font-size: clamp(3rem, 6vw, 4.5rem); color: var(--saas-text-charcoal); margin-bottom: 24px; }
.saas-subtitle { font-size: 1.25rem; color: var(--saas-text-grey); margin-bottom: 40px; }
.saas-cta-main {
    padding: 20px 48px;
    font-size: 1.2rem;
    border-radius: 8px;
    background: var(--saas-cta-purple);
    color: var(--saas-base);
}
.saas-cta-main:hover {
    background: #7D3C98; /* Darker Purple */
}
.saas-hero-image { margin-top: 60px; }
.saas-hero-image img { width: 100%; max-width: 800px; border-radius: 12px; box-shadow: 0 20px 40px rgba(44, 62, 80, 0.1); }

/* SaaS LP モバイル調整 */
@media (max-width: 768px) {
  .saas-header nav { gap: 24px; }
  .saas-logo { font-size: 24px; }
  .saas-cta-nav { padding: 10px 16px; font-size: 0.95rem; }

  .saas-hero { padding: 80px 0 60px; }
  .saas-hero .container { text-align: left; padding: 0 16px; }
  .saas-hero-badge { font-size: 0.9rem; }
  .saas-main-title { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.2; }
  .saas-subtitle { font-size: 1rem; line-height: 1.8; }
  .saas-hero-image { margin-top: 32px; }
  .saas-hero-image img { max-width: 100%; }

  .saas-feature-item, .saas-feature-item.reverse { flex-direction: column; gap: 24px; }
  .saas-feature-item + .saas-feature-item { margin-top: 40px; }
}

@media (max-width: 480px) {
  .saas-hero .container { padding: 0 14px; }
  .saas-main-title { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .saas-subtitle { font-size: 0.95rem; }
}

.saas-section { padding: 100px 0; }
.saas-section-light { background-color: var(--saas-bg-light-blue); }
.saas-section-title { font-size: 2.8rem; color: var(--saas-text-charcoal); margin-bottom: 80px; }

.saas-problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.saas-problem-item .saas-icon { font-size: 2.5rem; margin-bottom: 16px; }
.saas-problem-item h4 { font-size: 1.5rem; margin-bottom: 12px; }
.saas-problem-item p { color: var(--saas-text-grey); }

.saas-feature-item { display: flex; align-items: center; gap: 80px; margin-bottom: 100px; }
.saas-feature-item.reverse { flex-direction: row-reverse; }

/* 再定義（ベース定義の直後に配置）: モバイルでは縦並びに強制 */
@media (max-width: 768px) {
  .saas-feature-item,
  .saas-feature-item.reverse {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .saas-feature-image img { width: 100%; height: auto; }
}
.saas-feature-text { flex: 1; }
.saas-feature-text h4 { font-size: 2rem; margin-bottom: 20px; }
.saas-feature-text p { font-size: 1.1rem; line-height: 1.8; color: var(--saas-text-grey); }
.saas-feature-image { flex: 1; }
.saas-feature-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1); }

.saas-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.saas-plan-item { border: 1px solid var(--saas-border); padding: 40px; border-radius: 12px; text-align: left; }
.saas-plan-item.popular { border-width: 2px; border-color: var(--saas-cta-purple); position: relative; }
.saas-popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--saas-cta-purple); color: var(--saas-base); padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; }
.saas-plan-item h4 { font-size: 1.5rem; }
.saas-price { font-size: 2.5rem; font-weight: 700; margin: 24px 0; }
.saas-price span { font-size: 1rem; font-weight: 400; color: var(--saas-text-grey); }
.saas-plan-item ul { list-style-position: inside; }
.saas-plan-item .cta-button {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    background: var(--saas-cta-purple);
    color: var(--saas-base);
}

.saas-cta-final { padding: 100px 0; background-color: var(--saas-text-charcoal); }
.saas-cta-final .saas-section-title { color: var(--saas-base); }
.saas-cta-final .cta-button { background: var(--saas-base); color: var(--saas-text-charcoal); }

.saas-footer { background: var(--saas-text-charcoal); color: var(--saas-base); opacity: 0.8; text-align: center; padding: 40px 0; } 

/* サービス紹介カードの文章とボタンの間に余白を追加 */
.service-card p {
    margin-bottom: 24px;
}

/* ========================= */
/* Home: Monitor Offer block */
/* ========================= */
.promo-offer::before,
.promo-offer::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}
.promo-offer::before { background: #7F9CF5; top: -60px; left: -60px; }
.promo-offer::after  { background: #9F7AEA; bottom: -60px; right: -60px; }

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}
.promo-title {
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.promo-subtitle {
    font-size: 1.15rem;
    opacity: .95;
    margin-bottom: 24px;
}
.promo-cta {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .promo-title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .promo-subtitle { font-size: 1rem; }
}

/* =============================================== */
/* Special Offer Box Styles                      */
/* =============================================== */


/* =============================================== */
/* Monitor Campaign Banner                         */
/* =============================================== */

.monitor-campaign {
    width: 100%;
    margin: 96px 0 0;
    padding: 0 24px;
    position: relative;
    z-index: 5;
    scroll-margin-top: 140px;
}

.monitor-banner {
    appearance: none;
    border: none;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
    border: 1px solid rgba(121, 82, 255, 0.5);
    border-radius: 999px;
    width: 100%;
    padding: 18px clamp(18px, 4vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #f7f8ff;
    cursor: pointer;
    box-shadow: 0 24px 64px rgba(19, 17, 46, 0.55);
    position: relative;
    overflow: hidden;
    text-align: left;
    font: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.monitor-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 8% 22%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
                radial-gradient(circle at 88% 30%, rgba(164, 111, 255, 0.12) 0%, transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}

.monitor-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 72px rgba(15, 13, 41, 0.6);
    border-color: rgba(144, 122, 255, 0.65);
}

.monitor-banner:focus-visible {
    outline: 2px solid rgba(197, 181, 255, 0.95);
    outline-offset: 4px;
}

.monitor-banner-main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.monitor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5fffd1 0%, #22c55e 70%);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.7);
    flex-shrink: 0;
}

.monitor-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    min-height: 32px;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(16, 185, 129, 0.85) 100%);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
    color: #042b17;
}

.monitor-headline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.45;
    display: block;
    color: #f9faff;
}

.monitor-highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.monitor-banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monitor-spots {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(239, 68, 68, 0.3) 100%);
    border: 1px solid rgba(252, 129, 129, 0.5);
    color: #ff9c9c;
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.35);
    text-transform: uppercase;
}

.monitor-spots-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.monitor-toggle-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(18, 19, 51, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 255, 0.45);
    backdrop-filter: blur(8px);
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.monitor-toggle-icon svg {
    width: 18px;
    height: 18px;
    color: inherit;
    transition: transform 0.35s ease;
}

.monitor-banner[data-expanded="true"] .monitor-toggle-icon {
    background: rgba(121, 104, 255, 0.65);
}

.monitor-banner[data-expanded="true"] .monitor-toggle-icon svg {
    transform: rotate(180deg);
}

.monitor-details {
    margin-top: 18px;
    border-radius: 28px;
    border: 1px solid rgba(123, 104, 238, 0.45);
    background: linear-gradient(155deg, rgba(18, 20, 41, 0.94) 0%, rgba(37, 17, 62, 0.94) 100%);
    box-shadow: 0 36px 90px rgba(10, 6, 28, 0.65);
    overflow: hidden;
    position: relative;
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    transition: max-height 0.5s ease, opacity 0.35s ease, transform 0.35s ease;
}

.monitor-details::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 12%, rgba(102, 126, 234, 0.25) 0%, transparent 55%),
                radial-gradient(circle at 82% 85%, rgba(45, 212, 191, 0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.65;
}

.monitor-details.is-open {
    opacity: 1;
    transform: translateY(0);
}

.monitor-details-inner {
    position: relative;
    padding: clamp(32px, 6vw, 60px);
    color: #f1f5ff;
    z-index: 1;
}

.monitor-details-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.monitor-banner-main--detail {
    flex: 1;
    min-width: 240px;
}

.monitor-details-lead {
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 720px;
    line-height: 1.7;
    opacity: 0.92;
}

.monitor-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
    display: grid;
    gap: 14px;
}

.monitor-details-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 1rem;
    line-height: 1.6;
}

.monitor-list-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
    color: #4ade80;
    margin-top: 2px;
}

.monitor-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.monitor-plan {
    position: relative;
    padding: 28px 28px 36px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.monitor-plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(37, 99, 235, 0.25);
}

.monitor-plan--featured {
    border: 2px solid rgba(37, 99, 235, 0.35);
    background: #ffffff;
    box-shadow: var(--card-shadow-hover);
}

.monitor-plan-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.monitor-plan-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 20px;
}

.monitor-plan-prices {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    font-weight: 700;
}

.monitor-plan-original {
    font-size: 1rem;
    opacity: 0.6;
    text-decoration: line-through;
}

.monitor-plan-current {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.monitor-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #042b17;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 12px 32px rgba(52, 211, 153, 0.35);
}

.monitor-plan-note {
    font-size: 0.95rem;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 32px;
}

.monitor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.monitor-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.monitor-action-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.monitor-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.55);
}

.monitor-action-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 255, 0.4);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.35);
}

.monitor-action-secondary:hover {
    transform: translateY(-2px);
    background: rgba(148, 163, 255, 0.16);
}

.monitor-action-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.monitor-spots--detail {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.25) 0%, rgba(220, 38, 38, 0.35) 100%);
    border-color: rgba(252, 129, 129, 0.6);
    color: #ffb4b4;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .monitor-campaign {
        margin: 88px 0 0;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .monitor-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-radius: 15px;
        padding: 12px 14px;
    }

    .monitor-banner-main {
        gap: 6px;
        align-items: center;
    }

    .monitor-pill {
        padding: 4px 12px;
        font-size: 0.74rem;
        min-height: 28px;
    }

    .monitor-headline {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .monitor-banner-right {
        width: 100%;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .monitor-spots {
        font-size: 0.72rem;
        padding: 5px 10px;
        letter-spacing: 0.03em;
        gap: 8px;
    }

    .monitor-toggle-icon {
        width: 28px;
        height: 28px;
    }

    .monitor-details-inner {
        padding: 20px 14px 24px;
    }

    .monitor-plan-grid {
        gap: 12px;
    }

    .monitor-plan {
        padding: 18px 16px 22px;
    }

    .monitor-plan-note {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .monitor-campaign {
        margin: 80px 0 0;
        padding: 0 10px;
    }

    .monitor-banner {
        border-radius: 12px;
        padding: 10px 12px;
    }

    .monitor-dot {
        width: 8px;
        height: 8px;
    }

    .monitor-pill {
        padding: 3px 10px;
        font-size: 0.68rem;
        min-height: 24px;
    }

    .monitor-headline {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .monitor-banner-main {
        align-items: flex-start;
        gap: 5px;
    }

    .monitor-banner-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .monitor-spots {
        width: 100%;
        justify-content: center;
        padding: 4px 9px;
        font-size: 0.68rem;
        gap: 6px;
    }

    .monitor-toggle-icon {
        align-self: center;
        width: 26px;
        height: 26px;
    }

    .monitor-details-topline {
        align-items: flex-start;
    }

    .monitor-plan-grid {
        grid-template-columns: 1fr;
    }

    .monitor-spots--detail {
        align-self: flex-start;
    }
}

/* ============================== */
/* Static campaign highlight block */
/* ============================== */
.campaign-highlight {
    background: #ffffff;
    padding: 110px 0 130px;
}

.campaign-container {
    max-width: 1100px;
    text-align: center;
}

.campaign-heading {
    max-width: 760px;
    margin: 0 auto 48px;
}

.campaign-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(59, 94, 248, 0.1);
    color: var(--accent-cta-blue);
    margin-bottom: 18px;
}

.campaign-title {
    font-size: clamp(2.1rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.campaign-title-accent {
    display: inline-block;
    margin-left: 6px;
    background: linear-gradient(90deg, #3b5ef8 0%, #a15af0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.campaign-lead {
    font-size: 1.05rem;
    color: #4f5a7d;
    line-height: 1.75;
}

.campaign-highlight .monitor-details-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 48px auto;
    max-width: 960px;
}

.campaign-highlight .monitor-details-list li {
    background: #f8faff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 20px 24px;
    color: var(--text-primary);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.campaign-highlight .monitor-list-icon {
    color: var(--accent-cta-blue);
}

.campaign-highlight .monitor-plan-grid {
    margin-bottom: 40px;
    gap: 24px;
}

.campaign-highlight .monitor-plan {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 45px rgba(30, 41, 59, 0.08);
    color: var(--text-primary);
}

.campaign-highlight .monitor-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 52px rgba(30, 41, 59, 0.14);
}

.campaign-highlight .monitor-plan--featured {
    background: #ffffff;
    border: 2px solid rgba(37, 99, 235, 0.35);
    box-shadow: var(--card-shadow-hover);
}

.campaign-highlight .monitor-plan-desc {
    color: var(--text-secondary);
}

.campaign-highlight .monitor-plan-note {
    color: #4f5a7d;
    margin-bottom: 40px;
}

.campaign-highlight .monitor-actions {
    gap: 20px;
}

.campaign-highlight .monitor-action-primary {
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.28);
}

.campaign-highlight .monitor-action-secondary {
    background: #ffffff;
    color: var(--accent-cta-blue);
    border: 1px solid rgba(59, 94, 248, 0.25);
    box-shadow: none;
}

.campaign-highlight .monitor-action-secondary:hover {
    background: rgba(59, 94, 248, 0.08);
}

@media (max-width: 768px) {
    .campaign-highlight { padding: 80px 0 100px; }
    .campaign-heading { margin-bottom: 40px; }
    .campaign-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .campaign-highlight .monitor-details-list { margin: 36px auto 40px; }
    .campaign-highlight .monitor-plan-grid { grid-template-columns: 1fr; }
    .campaign-highlight .monitor-plan { padding: 24px 24px 32px; }
}

@media (max-width: 480px) {
    .campaign-pill { font-size: 0.75rem; }
    .campaign-highlight .monitor-details-list { grid-template-columns: 1fr; }
    .campaign-highlight .monitor-details-list li { padding: 18px; }
}

/* =============================================== */
/* Marketing Steps Section Styles                */
/* =============================================== */

.marketing-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.marketing-step-card {
    background: var(--base-color);
    color: var(--text-on-light);
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.marketing-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.marketing-step-number {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.marketing-step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-on-light);
}

.marketing-step-card p {
    color: #555;
    line-height: 1.8;
} 

/* =============================================== */
/* Single Contact Card Layout                    */
/* =============================================== */

.contact-cards.single-contact {
    display: flex;
    justify-content: center;
}

.contact-cards.single-contact .contact-card {
    max-width: 500px; /* カードが横に広がりすぎないように最大幅を指定 */
    width: 100%;
    text-align: center; /* ボタン含め中央揃え */
}

/* 単一カード内のCTAを中央配置 */
.contact-cards.single-contact .contact-card .cta-button {
    margin: 20px auto 0 !important;
    display: inline-flex;
    justify-content: center;
}

/* =============================================== */
/* EC Site Page Styles (KŌSAI)                   */
/* =============================================== */
.ec-site-page {
    background: #FFF;
    color: #4A4A4A;
    font-family: 'Inter', sans-serif;
}
.ec-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.ec-header nav { display: flex; justify-content: space-between; align-items: center; }
.ec-logo { font-size: 24px; font-weight: 600; color: #333; text-decoration: none; letter-spacing: 0.1em; }
.ec-nav-links { list-style: none; display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.ec-nav-links a { text-decoration: none; color: #555; font-weight: 500; transition: color 0.3s ease; white-space: nowrap; }
.ec-nav-links a:hover, .ec-nav-links a.active { color: #000; }
.ec-nav-links .cart-icon-wrapper { display: flex; align-items: center; }
.ec-nav-links .cart-icon { width: 24px; height: 24px; margin-top: -2px; }

.ec-main { animation: fadeIn 1s ease-in-out; }

.ec-hero { position: relative; width: 100%; height: 80vh; overflow: hidden; }
/* 画像を背景化して常にテキストの背面に配置 */
.ec-hero-image { position: absolute; inset: 0; z-index: 1; }
.ec-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 画像に薄い暗幕を重ね、下部ほど濃くして可読性を担保 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 75%);
  z-index: 2;
}
.ec-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* テキストを前面へ */
.ec-hero-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; z-index: 3; padding: 0 16px; }
.ec-hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 500; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    white-space: nowrap; /* 改行を防ぐ */
}

/* KOSAI モバイル調整: PCと同様に重ね表示を維持 */
@media (max-width: 768px) {
  .ec-hero { height: 70vh; }
  .ec-hero-text { top: 50%; }
  .ec-hero h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); white-space: normal; line-height: 1.15; text-shadow: 0 4px 16px rgba(0,0,0,0.45); }
  .ec-hero::after { background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.46) 80%); }
}

.ec-section { padding: 100px 0; }
.ec-section-light { background: #F8F9FA; }
.ec-section-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 60px; text-align: center; }

.ec-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 60px; }
.ec-product-card { text-align: center; text-decoration: none; color: inherit; }
.ec-product-image { width: 100%; height: 400px; overflow: hidden; margin-bottom: 24px; }
.ec-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ec-product-card:hover .ec-product-image img { transform: scale(1.05); }
.ec-product-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.ec-product-card p { font-size: 1.1rem; color: #777; }
.ec-cta {
    background: #333;
    color: #FFF;
    padding: 16px 48px;
    border-radius: 4px;
    font-weight: 500;
}
.ec-concept-container { display: flex; align-items: center; gap: 80px; }
.ec-concept-image { flex: 1; }
.ec-concept-image img { width: 100%; }
.ec-concept-text { flex: 1; }
.ec-concept-text .ec-section-title { margin-bottom: 24px; text-align: left; }
.ec-concept-text p { font-size: 1.1rem; line-height: 2; }

/* KOSAI 私たちの想い: モバイルで縦並び・可読性向上 */
@media (max-width: 768px) {
  .ec-concept-container { flex-direction: column; gap: 24px; }
  .ec-section-title { text-align: center; margin-bottom: 16px; }
  .ec-concept-text p { font-size: 1rem; line-height: 1.9; }
}

.ec-product-detail-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 100px 24px; }
.ec-product-detail-images img { width: 100%; }
.ec-product-detail-info h1 { font-size: 2.5rem; font-weight: 600; margin-bottom: 16px; }
.ec-product-price { font-size: 1.8rem; margin-bottom: 24px; }
.ec-product-description { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; }

.ec-footer { background: #F8F9FA; color: #888; padding: 60px 0; }
/* KOSAI 商品詳細: モバイルでは縦並びに */
@media (max-width: 768px) {
  .ec-product-detail-container { grid-template-columns: 1fr; gap: 32px; padding: 64px 16px; }
  .ec-product-detail-info h1 { font-size: 2rem; }
  .ec-product-price { font-size: 1.5rem; }
  .ec-product-description { font-size: 1rem; line-height: 1.9; }
}
.ec-footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; gap: 24px; flex-wrap: nowrap; }
.ec-footer .ec-logo { margin-right: 16px; }
.ec-footer-bottom { border-top: 1px solid #EAECEF; padding-top: 40px; text-align: center; }

/* KOSAI Mobile nav and footer wrapping to avoid horizontal overflow */
@media (max-width: 768px) {
  .ec-header nav { padding: 16px; }
  /* ロゴの下にナビを縦積み配置 */
  .ec-header nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ec-logo { margin-bottom: 2px; }
  .ec-nav-links { gap: 24px; flex-wrap: wrap; width: 100%; }
  .ec-nav-links a { font-size: 14px; }
  .ec-footer-content { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .ec-nav-links { gap: 10px; }
}

/* ロゴアイコンのスタイル */
.logo {
    display: flex;
    align-items: center;
    gap: 24px; /* アイコンとテキストの間の余白 */
}

.logo-icon {
    width: 36px; /* アイコンの幅 */
    height: 36px; /* アイコンの高さ */
}

/* =============================================== */
/* Contact Form Styles                           */
/* =============================================== */

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}
@media (max-width: 768px) {
    .contact-form-wrapper { padding: 24px 16px; }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label span {
    color: #e53e3e; /* Red for required fields */
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cta-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.form-group textarea {
    resize: vertical;
}

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

.form-group .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* [NEW] ドロップダウンメニューの選択肢のスタイルを上書き */
.form-group select option {
    background: white;
    color: #1A202C;
}
/* Safer image scaling on small viewports */
img { max-width: 100%; height: auto; }

/* =============================================== */
/* Photographer Portfolio Styles (Akira Tanaka)  */
/* =============================================== */
.photographer-page {
    background: #FFF;
    color: #333;
    font-family: 'Inter', sans-serif;
}
.pg-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.pg-header nav { display: flex; justify-content: space-between; align-items: center; }
.pg-logo { font-size: 20px; font-weight: 600; color: #333; text-decoration: none; }
.pg-nav-links { list-style: none; display: flex; gap: 40px; }
.pg-nav-links a { text-decoration: none; color: #555; font-weight: 500; }
.pg-nav-links a.active { color: #000; font-weight: 600; }

.pg-main { animation: fadeIn 1s ease-in-out; }

.pg-hero { position: relative; width: 100%; height: 70vh; }
.pg-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%); }
.pg-hero-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; width: 90%; }
.pg-hero-title h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: white; text-shadow: 0 2px 15px rgba(0,0,0,0.5); font-weight: 500; line-height: 1.2;}

.pg-section { 
    padding: 100px 0; 
    width: 100%;
    overflow: hidden;
}
.pg-section-dark { background: #111; color: #FFF; }
.pg-section-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.2em; text-align: center; margin-bottom: 60px; font-weight: 600; }
.pg-section-dark .pg-section-title { color: #FFF; }

.pg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 100%;
}
.pg-gallery-item { 
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    display: block;
}
.pg-gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.pg-gallery-item:hover img {
    transform: scale(1.05);
}

.pg-about-container { display: flex; align-items: center; gap: 80px; }
.pg-about-image { flex-basis: 40%; }
.pg-about-image img { width: 100%; border-radius: 50%; }
.pg-about-text { flex-basis: 60%; }
.pg-about-text .pg-section-title { text-align: left; margin-bottom: 24px; }
.pg-about-text p { color: #DDD; line-height: 2; }

.pg-cta { background: #333; color: #FFF; border-radius: 4px; }

.pg-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pg-contact-form input,
.pg-contact-form textarea {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-family: inherit;
}
.pg-contact-form button {
    cursor: pointer;
    border: none;
}


.pg-footer { background: #111; color: #888; text-align: center; padding: 40px 0; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pg-gallery-item {
        height: 250px;
    }
    
    .pg-about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .pg-about-image, .pg-about-text {
        flex-basis: 100%;
    }
    
    .pg-nav-links {
        gap: 20px;
    }

    /* Photographer Hero: スマホでのテキストはみ出し防止 */
    .pg-hero { height: 65vh; }
    .pg-hero-title { top: 32%; }
    .pg-hero-title h1 { font-size: clamp(1.8rem, 7.5vw, 3rem); line-height: 1.2; }
}

@media (max-width: 480px) {
    .pg-hero-title { top: 28%; }
    .pg-hero-title h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* =============================================== */
/* FAQ Page Styles                               */
/* =============================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* 十分な高さを確保 */
}

/* =============================================== */
/* EC Product Back Button                         */
/* =============================================== */

.ec-product-back {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.ec-back-button {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ec-back-button:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* =============================================== */
/* Cart Page Styles                              */
/* =============================================== */

.cart-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
    color: #333;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    margin-right: 20px;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: #666;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity {
    margin: 0 15px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    min-width: 100px;
    text-align: right;
    margin-right: 20px;
}

.cart-item-remove {
    width: 30px;
    height: 30px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.cart-item-remove:hover {
    background: #c82333;
}

.cart-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cart-total {
    margin-bottom: 30px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.total-final {
    border-top: 2px solid #333;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.3rem;
    color: #333;
}

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

.cart-checkout {
    margin-bottom: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.cart-continue {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cart-continue:hover {
    background-color: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.cart-continue:hover {
    text-decoration: underline;
}

/* =============================================== */
/* Toast Notification Styles                     */
/* =============================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out forwards;
    max-width: 300px;
}

.toast.success {
    background: rgba(40, 167, 69, 0.9);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 10px;
    }
    
    .cart-item-details {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cart-item-quantity {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cart-item-total {
        margin-right: 0;
        text-align: left;
    }
}

/* =============================================== */
/* Cart Icon Styles                              */
/* =============================================== */

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #333;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cart-icon-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.cart-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
    transform: translate(50%, -50%);
}

.cart-badge.hidden {
    display: none;
}

/* =============================================== */
/* レスポンシブ対応 - ヘッダー                    */
/* =============================================== */

@media (max-width: 768px) {
    nav {
        padding: 15px 16px;
        min-height: 76px;
    }

    .logo {
        font-size: 24px;
        margin-bottom: 0;
    }

    nav .nav-links {
        padding: 152px 24px 40px;
        gap: 16px;
    }

    nav .nav-links a {
        font-size: 14px;
        padding: 12px 12px;
    }

    nav .cta-nav {
        padding: 14px 20px;
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 120px;
        min-height: calc(100vh - 120px);
    }
}


@media (max-width: 480px) {
    nav {
        padding: 12px 12px;
        min-height: 76px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-links {
        padding: 152px 20px 36px;
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .cta-nav {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 150px 0 56px;
        min-height: auto;
    }
    .hero .hero-content { padding: 0 14px; }
    .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
    .hero .subtitle { font-size: 0.95rem; }
    .hero.hero--applovin { padding: 160px 0 72px; }
    .hero-points-marquee { margin-top: 20px; }
}

/* =============================================== */
/* Case Study ヘッダー - レスポンシブ対応         */
/* =============================================== */

@media (max-width: 768px) {
    .case-study-header {
        padding: 12px 0;
    }
    
    .case-study-header nav {
        padding: 12px 16px;
    }
    
    .case-study-logo {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .case-study-header nav .case-study-nav-links {
        gap: 18px;
        padding: 12px 16px 16px;
    }
    
    .case-study-nav-links a {
        font-size: 14px;
        padding: 10px 8px;
    }
    
    .cs-hero {
        padding: 80px 0 60px;
    }
    
    .cs-main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }
    
    .cs-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Innovate Consulting: テキストと画像の2カラムを縦並びに */
    .cs-flex-container {
        flex-direction: column;
        gap: 24px;
    }
    .cs-image-content img { width: 100%; height: auto; }
}


/* =============================================== */
/* CTA spacing and FAQ mobile tuning               */
/* =============================================== */

/* 共通CTAコンテナ（複数ボタン横並び用） */
.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ質問行でプラスアイコンと文の間に余白を確保 */
.faq-question {
    padding-right: 56px; /* アイコン用の余白を追加 */
}

@media (max-width: 768px) {
    /* ヒーローのCTA間隔を広げる */
    .hero-buttons { gap: 20px; }

    /* 複数CTAを縦並び＋適切な間隔に */
    .cta-buttons {
        flex-direction: column;
        gap: 24px;
    }

    /* ヒーロー全体の縦余白とコンテンツ幅をモバイル向けに最適化 */
    .hero {
        display: block;
        padding: 140px 0 64px;
        min-height: auto;
        text-align: center;
    }

    .hero .hero-content {
        padding: 0 18px;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 7.2vw, 2.6rem);
        line-height: 1.25;
        margin-bottom: 24px;
    }

    .hero .subtitle {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        justify-content: center;
    }

    .hero-buttons .cta-button {
        width: 100%;
        justify-content: center;
    }

    .hero-points-marquee {
        margin-top: 24px;
        padding: 8px 0;
    }

    .hero.hero--applovin {
        padding: 150px 0 80px;
    }

    /* モバイルでFAQのアイコンとテキストの距離をさらに確保 */
    .faq-question { padding-right: 64px; }
    .faq-question::after { right: 16px; }

    /* 料金プラン：モバイルでは記述順のまま表示 */
    .pricing-card {
        order: 0;       /* 初期順序に戻す */
        transform: none; /* 拡大は無効化して高さ差を抑える */
    }
}

@media (max-width: 480px) {
    .case-study-header {
        padding: 10px 0;
    }
    
    .case-study-header nav {
        padding: 10px 12px;
    }
    
    .case-study-logo {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .case-study-header nav .case-study-nav-links {
        gap: 14px;
        padding: 10px 12px 12px;
    }
    
    .case-study-nav-links a {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .cs-hero {
        padding: 60px 0 40px;
    }
    
    .cs-main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 16px;
    }
    
    .cs-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
}
