:root {
    --bs-body-font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --td-primary: #0d6efd;
    --td-primary-soft: #eef5ff;
    --td-dark: #111827;
    --td-body: #212529;
    --td-muted: #6c757d;
    --td-soft-bg: #f8fafc;
    --td-border: rgba(15, 23, 42, 0.08);
    --td-card-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.08);
    --td-card-shadow-sm: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.06);
    --td-radius-sm: 1rem;
    --td-radius-md: 1.5rem;
    --td-radius-lg: 2rem;
}

/* =========================================================
   Base
========================================================= */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    overflow-y: scroll;
}

@supports (scrollbar-gutter: stable) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-weight: 400;
    color: var(--td-body);
    background-color: #fff;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img,
video {
    max-width: 100%;
}

section {
    overflow: hidden;
}

/* =========================================================
   Typography
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--td-dark);
    font-weight: 700;
    letter-spacing: 0;
}

p {
    line-height: 1.85;
}

.lead {
    line-height: 1.85;
}

.text-secondary {
    color: var(--td-muted) !important;
}

.section-eyebrow {
    color: var(--td-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.section-heading,
.section-title {
    font-weight: 700;
    line-height: 1.3;
    color: var(--td-dark);
}

.section-text,
.section-subtitle {
    color: var(--td-muted);
    line-height: 1.9;
}

/* =========================================================
   Text Utilities
========================================================= */

.text-indent-1 {
    text-indent: 1em;
}

/* =========================================================
   Layout Spacing
========================================================= */

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* =========================================================
   Header / Navigation
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: #fff;
    backdrop-filter: none;
}

.navbar,
.navbar-brand,
.navbar-nav,
.nav-link {
    font-family: inherit;
}

.site-header-navbar {
    min-height: 84px;
}

.site-header-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.site-header-title {
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--td-dark);
}

.site-header-subtitle {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 400;
}

.header-nav-list {
    column-gap: 1.35rem;
    flex-wrap: nowrap;
}

.header-nav-link,
.header-nav-link:link,
.header-nav-link:visited,
.header-nav-link:hover,
.header-nav-link:focus,
.header-nav-link:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem !important;
    border-radius: 50rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700 !important;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
    color: #111827 !important;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.active-nav-link,
.active-nav-link:hover,
.active-nav-link:focus {
    color: var(--td-primary) !important;
    background-color: #f8f9fa !important;
    font-weight: 700 !important;
}

/* =========================================================
   Mobile Header / Offcanvas
========================================================= */

.site-menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

    .site-menu-toggle:hover,
    .site-menu-toggle:focus {
        border-color: #b8c7e6;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
        transform: translateY(-1px);
        outline: none;
    }

    .site-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #1f2a44;
    }

.site-mobile-menu {
    width: min(86vw, 360px);
    height: 100vh;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    z-index: 1060;
}

.site-mobile-menu-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-mobile-menu-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.site-mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    color: #1f2a44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

    .site-mobile-menu-close:hover {
        background: #f8fbff;
    }

.site-mobile-menu .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
    gap: 14px;
    overflow: hidden;
}

.site-mobile-menu-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 2px;
}

.site-mobile-menu-section + .site-mobile-menu-section {
    margin-top: 14px;
}

.site-mobile-menu-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #7b8794;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.site-mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-mobile-menu-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #1f2a44;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    .site-mobile-menu-link.soft {
        font-weight: 600;
        background: #fbfcfe;
    }

    .site-mobile-menu-link:hover {
        color: #0d6efd;
        background: #eef5ff;
        border-color: #d8e6ff;
    }

.site-mobile-menu-cta {
    flex-shrink: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* =========================================================
   Cards
========================================================= */

.card {
    border-radius: var(--td-radius-lg);
}

.ui-card {
    border: 0;
    border-radius: var(--td-radius-lg);
    box-shadow: var(--td-card-shadow);
    background-color: #fff;
}

.ui-card-bordered {
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg);
    box-shadow: var(--td-card-shadow);
    background-color: #fff;
}

.card-fixed-shadow {
    box-shadow: var(--td-card-shadow);
}

.card.rounded-4 {
    border-radius: var(--td-radius-md) !important;
}

.card.rounded-5,
.rounded-5 {
    border-radius: var(--td-radius-lg) !important;
}

.card.shadow-sm {
    box-shadow: var(--td-card-shadow-sm) !important;
}

.card.shadow,
.card.shadow-lg {
    box-shadow: var(--td-card-shadow) !important;
}

.hover-lift {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
    will-change: transform, box-shadow;
}

@media (hover: hover) and (pointer: fine) {
    .hover-lift {
        cursor: pointer;
    }

        .hover-lift:hover {
            transform: translateY(-8px);
            box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.12) !important;
        }
}

/* =========================================================
   Badges / Pills
========================================================= */

.badge {
    font-weight: 700;
    letter-spacing: 0;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* =========================================================
   Buttons
========================================================= */

.btn {
    font-weight: 700;
    letter-spacing: 0;
}

.btn-lg {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* =========================================================
   Icons
========================================================= */

.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =========================================================
   Timeline / Service Point
========================================================= */

.timeline-item,
.service-point-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.timeline-no {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--td-primary-soft);
    color: var(--td-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.service-point-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e9f8ef;
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

/* =========================================================
   Tables / Definition Lists
========================================================= */

.pricing-table th {
    font-weight: 700;
    white-space: nowrap;
}

.job-summary dt {
    font-weight: 700;
    color: var(--td-dark);
}

.job-summary dd {
    color: var(--td-muted);
}

/* =========================================================
   Reveal Animation
========================================================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.4s;
}

.reveal-delay-6 {
    transition-delay: 0.48s;
}

/* =========================================================
   Responsive
========================================================= */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .ui-card .card-body,
    .ui-card-bordered .card-body {
        padding: 3rem;
    }

    .site-menu-toggle,
    .site-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .py-lg-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .site-header-navbar {
        min-height: 72px;
    }

    .site-header-logo {
        width: 42px;
        height: 42px;
        object-fit: cover;
    }

    .site-header-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .site-header-subtitle {
        font-size: 12px;
        line-height: 1.3;
    }

    .header-nav-list {
        row-gap: 0.25rem;
        flex-wrap: wrap;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 2.4rem;
    }

    .timeline-item,
    .service-point-item {
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .site-header-title {
        font-size: 1.05rem;
    }

    .site-header-subtitle {
        font-size: 0.72rem;
    }

    .site-header-logo {
        width: 42px;
        height: 42px;
    }

    .display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .site-mobile-menu {
        width: min(90vw, 360px);
    }

    .site-mobile-menu-link {
        padding: 11px 12px;
        font-size: 14px;
    }
}
