body {
    background-color: #F8FAFC;
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    line-break: strict;
    word-break: normal;
}

html {
    scroll-behavior: smooth;
}

.no-break {
    white-space: nowrap;
}

#successMessage p {
    max-width: 32rem;
}

.legal-content {
    line-break: strict;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: pretty;
}

.legal-content p,
.legal-content li {
    line-height: 1.9;
}

.legal-content section {
    scroll-margin-top: 96px;
}

.privacy-numbered-content .legal-numbered-item {
    display: grid;
    grid-template-columns: 2.25em minmax(0, 1fr);
    column-gap: 0.45em;
    align-items: start;
}

.privacy-numbered-content .legal-number {
    color: #475569;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: inherit;
    text-align: right;
}

.privacy-numbered-content .legal-numbered-text {
    min-width: 0;
}

.privacy-numbered-content .legal-sublist {
    margin-left: calc(2.25em + 0.45em);
}

@media (max-width: 767px) {
    .privacy-numbered-content .legal-numbered-item {
        grid-template-columns: 1.85em minmax(0, 1fr);
        column-gap: 0.4em;
    }

    .privacy-numbered-content .legal-sublist {
        margin-left: calc(1.85em + 0.4em);
        padding-left: 1.1rem;
    }
}

section[id] {
    scroll-margin-top: 88px;
}

.industry-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.industry-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    transition: all 0.5s ease;
    z-index: -1;
}

.industry-card:hover::before {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(4px);
}

.industry-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 64, 152, 0.25);
}

/* Unique Background Images for each Success Story */
.bg-legal { background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80&w=800'); }
.bg-finance { background-image: url('https://images.unsplash.com/photo-1590283603385-17ffb3a7f29f?auto=format&fit=crop&q=80&w=800'); }
.bg-tech { background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&q=80&w=800'); }
.bg-marketing { background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800'); }
.bg-medical { background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&q=80&w=800'); }
.bg-hr { background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&q=80&w=800'); }

.btn-main {
    background: linear-gradient(135deg, #2ec1d7 0%, #004098 100%);
    transition: all 0.3s;
}
.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -14px rgba(0, 64, 152, 0.55);
}

.menu-toggle-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}

.menu-line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 9999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.search-bar-shadow {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.product-card:hover .illustration-svg {
    transform: translateY(-8px) scale(1.02);
}
.illustration-svg {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-input, .form-select {
    width: 100%;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus, .form-select:focus {
    border-color: #2ec1d7;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(46, 193, 215, 0.1);
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}
.form-required::after {
    content: "必須";
    margin-left: 8px;
    font-size: 10px;
    background: #EF4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

main section {
    border-color: rgba(226, 232, 240, 0.72);
}

main h2[class*="tracking-"],
main h3[class*="tracking-"],
main h4[class*="tracking-"] {
    letter-spacing: 0;
}

main h2[class*="uppercase"] {
    letter-spacing: 0.22em !important;
}

main h3,
main h4 {
    letter-spacing: 0 !important;
}

main h1,
main h2,
main h3,
main h4 {
    text-wrap: balance;
}

main p,
main .faq-toggle span {
    text-wrap: pretty;
}

main [class*="rounded-[2rem]"],
main [class*="rounded-[3rem]"],
main [class*="rounded-[24px]"],
main [class*="rounded-[48px]"] {
    border-radius: 12px !important;
}

main .rounded-lg,
main .rounded-xl {
    border-radius: 10px !important;
}

main .rounded-2xl,
main .rounded-3xl {
    border-radius: 12px !important;
}

main .rounded-full {
    border-radius: 9999px !important;
}

main [class*="shadow-2xl"],
main [class*="shadow-[0_30px_60px"],
main [class*="shadow-[0_20px_50px"] {
    box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.32) !important;
}

main [class*="hover:-translate-y-2"]:hover {
    transform: translateY(-4px) !important;
}

.product-card:hover .illustration-svg {
    transform: translateY(-4px) scale(1.01);
}

#features .group,
#teraanddora .product-card,
#functions .group,
#testimonials .group > .relative,
#faq .space-y-4 > div {
    background-color: #FFFFFF;
    border-color: rgba(226, 232, 240, 0.92);
}

#features .group,
#teraanddora .product-card,
#functions .group,
#testimonials .group > .relative,
#faq .space-y-4 > div,
#form-container {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#features .group:hover,
#teraanddora .product-card:hover,
#functions .group:hover,
#faq .space-y-4 > div:hover {
    border-color: rgba(46, 193, 215, 0.42);
    box-shadow: 0 18px 45px -32px rgba(0, 64, 152, 0.38) !important;
}

#features h3,
#functions h3,
#testimonials h4,
#security h4 {
    font-weight: 800;
}

#demo {
    background:
        radial-gradient(circle at 92% 12%, rgba(46, 193, 215, 0.14), transparent 34%),
        linear-gradient(135deg, #031f46 0%, #004098 100%);
}

@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 76px;
    }

    main section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    #products {
        padding-top: 128px !important;
    }

    #products h1 {
        font-size: clamp(2.55rem, 12vw, 3.5rem);
    }

    #demo-controls {
        scrollbar-width: none;
    }

    #demo-controls::-webkit-scrollbar {
        display: none;
    }

    #demo .space-y-6 > .flex {
        align-items: flex-start;
    }

    #form-container {
        padding: 24px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #functions .group,
    #teraanddora .product-card {
        width: 100%;
        max-width: 680px;
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    #functions .group > div:first-child {
        width: 100%;
    }
}
