/* ========================================================
   LIVITTUS Inc. - Corporate Website Styles
   MUJI-Inspired Natural & Warm Theme
   ======================================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors — MUJI-inspired warm natural palette */
    --color-bg-primary: #faf8f5;
    --color-bg-secondary: #f3efe9;
    --color-bg-tertiary: #ebe6de;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #fdfcfa;
    --color-accent: #b8860b;
    --color-accent-glow: rgba(184, 134, 11, 0.08);
    --color-accent-dark: #96700a;
    --color-accent-gradient: linear-gradient(135deg, #c4973b, #a0782a);
    --color-text-primary: #2c2420;
    --color-text-secondary: #6b5e54;
    --color-text-muted: #a09688;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-light: rgba(0, 0, 0, 0.10);

    /* Typography */
    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 140px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ja);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.sp-only { display: none; }
.sp-hidden { display: inline; }

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    color: #ffffff;
    transition: color var(--transition-base);
}

.header.scrolled .logo {
    color: var(--color-text-primary);
}

.logo-svg {
    height: 28px;
    width: auto;
}

/* Nav link colors adapt to header state */
.header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.header:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}

.header:not(.scrolled) .hamburger-line {
    background: #ffffff;
}

.header.scrolled .hamburger-line {
    background: #2c2420;
}

.header.scrolled .nav-link {
    color: #6b5e54;
}

.header.scrolled .nav-link:hover {
    color: #2c2420;
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-ja);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-accent-gradient);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.25);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--color-text-primary);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--color-text-primary);
}

/* Mobile Nav */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav-mobile.open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile-link {
    font-size: 24px;
    font-weight: 600;
    color: #6b5e54;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.nav-mobile-link:hover {
    color: var(--color-accent);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(44, 36, 32, 0.30) 0%,
        rgba(44, 36, 32, 0.45) 40%,
        rgba(44, 36, 32, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-label {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #e8c97a;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    color: #ffffff;
}

.text-accent {
    color: #e8c97a;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 2;
    margin-bottom: 48px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ja);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent-gradient);
    color: #ffffff;
    padding: 18px 42px;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 0.04em;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(184, 134, 11, 0.25);
}

.btn-primary i {
    font-size: 14px;
    transition: transform var(--transition-base);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-hero {
    padding: 20px 52px;
    font-size: 17px;
    border-radius: 10px;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.hero-scroll span {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, #e8c97a, transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ==================== SECTION BASE ==================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-label {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

/* ==================== PROBLEMS SECTION ==================== */
.section-problems {
    background: var(--color-bg-secondary);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.problem-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 48px 36px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.problem-icon i {
    font-size: 28px;
    color: var(--color-accent);
}

.problem-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
}

.problem-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.problems-empathy {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-accent);
    padding: 28px 0;
    border-top: 1px solid var(--color-border);
    letter-spacing: 0.04em;
}

/* ==================== SERVICES SECTION ==================== */
.section-services {
    background: var(--color-bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 80px;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.07);
}

/* Service Card Image */
.service-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(44, 36, 32, 0.0) 0%,
        rgba(44, 36, 32, 0.25) 100%
    );
    transition: background var(--transition-base);
}

.service-card:hover .service-card-image-overlay {
    background: linear-gradient(
        180deg,
        rgba(184, 134, 11, 0.03) 0%,
        rgba(44, 36, 32, 0.30) 100%
    );
}

.service-card-image .service-number {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
    background: rgba(184, 134, 11, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* Service Card Body */
.service-card-body {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    margin-bottom: 20px;
}

.service-card:hover .service-icon {
    background: var(--color-accent);
}

.service-card:hover .service-icon i {
    color: #ffffff;
}

.service-icon i {
    font-size: 20px;
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.service-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.9;
    font-weight: 300;
    flex: 1;
}

/* Service Flow */
.service-flow {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
}

.flow-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0.04em;
}

.flow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 80px;
}

.flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-glow);
    border: 2px solid rgba(184, 134, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.flow-icon:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.flow-icon:hover i {
    color: #ffffff;
}

.flow-icon i {
    font-size: 20px;
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.flow-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.flow-arrow {
    color: var(--color-accent);
    font-size: 16px;
    opacity: 0.5;
    margin-top: -20px;
}

.flow-arrow-loop {
    opacity: 0.7;
}

.flow-note {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ==================== RESULTS SECTION ==================== */
.section-results {
    background: var(--color-bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 52px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06), transparent);
    border-radius: 50%;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 72px;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
}

.stat-suffix {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
    position: relative;
}

.stat-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.stat-badge i {
    font-size: 24px;
    color: var(--color-accent);
}

.stat-text-large {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
}

.stat-label {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
}

.stat-note {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Clients Marquee */
.clients-section {
    text-align: center;
}

.clients-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 32px;
}

.clients-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 20px;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: marquee 35s linear infinite;
    white-space: nowrap;
    width: max-content;
}

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

.client-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
    opacity: 0.7;
    transition: opacity var(--transition-base);
    flex-shrink: 0;
}

.client-name:hover {
    opacity: 1;
    color: var(--color-accent);
}

.client-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-text-muted);
    flex-shrink: 0;
}

.clients-note {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ==================== COMPANY SECTION ==================== */
.section-company {
    background: var(--color-bg-primary);
}

.company-content {
    max-width: 800px;
    margin: 0 auto;
}

.company-message {
    text-align: center;
    margin-bottom: 56px;
}

.company-lead {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 2;
    font-weight: 400;
}

.company-info {
    background: #ffffff;
    border: 1px solid #e0dbd4;
    border-radius: 16px;
    overflow: hidden;
}

.company-row {
    display: flex;
    border-bottom: 1px solid #e0dbd4;
}

.company-row:last-child {
    border-bottom: none;
}

.company-label {
    flex: 0 0 160px;
    padding: 24px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #2c2420;
    background: #f3efe9;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.company-value {
    flex: 1;
    padding: 24px 32px;
    font-size: 15px;
    font-weight: 300;
    color: #6b5e54;
    line-height: 1.8;
}

/* ==================== WHY CHOOSE US SECTION ==================== */
.section-reasons {
    background: var(--color-bg-secondary);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.reason-card {
    background: #ffffff;
    border: 1px solid #e0dbd4;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Reason card image */
.reason-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.reason-card:hover .reason-image img {
    transform: scale(1.05);
}

.reason-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(44, 36, 32, 0.15) 100%);
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.reason-card:hover .reason-image-overlay {
    opacity: 0.6;
}

.reason-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(184, 134, 11, 0.85);
    padding: 6px 14px;
    border-radius: 6px;
    line-height: 1;
    letter-spacing: 0.05em;
    z-index: 2;
}

.reason-content {
    padding: 28px 32px 32px;
    flex: 1;
}

.reason-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    color: #2c2420;
}

.reason-text {
    font-size: 14px;
    color: #6b5e54;
    line-height: 1.9;
    font-weight: 300;
}

/* ==================== CONTACT SECTION ==================== */
.section-contact {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.04), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 56px;
}

.contact-lead {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

/* Form */
.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 52px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    margin-bottom: 32px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required {
    font-size: 11px;
    font-weight: 600;
    background: var(--color-accent);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
}

.optional {
    font-size: 11px;
    font-weight: 600;
    background: var(--color-border-light);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 16px 20px;
    font-family: var(--font-ja);
    font-size: 15px;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
    font-weight: 300;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

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

.btn-submit {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 20px 48px;
    font-size: 17px;
    border-radius: 10px;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    color: #4caf50;
}

.form-message.error {
    display: block;
    color: #d32f2f;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #2c2420;
    border-top: none;
    padding: 60px 0 40px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 24px;
    width: auto;
}

.footer-company {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.footer-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    font-weight: 300;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-address i {
    color: #e8c97a;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    text-align: center;
}

.copyright {
    font-family: var(--font-en);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .service-flow {
        padding: 40px 32px;
    }

    .flow-wrapper {
        gap: 6px;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .reason-image {
        height: 180px;
    }

    .reason-content {
        padding: 24px 24px 28px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .sp-only { display: inline; }
    .sp-hidden { display: none; }

    /* Header */
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .nav-mobile { display: flex; }

    .header-inner {
        height: 64px;
    }

    /* Hero */
    .hero { min-height: 600px; }

    .hero-label { font-size: 11px; margin-bottom: 20px; }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .btn-hero {
        padding: 16px 40px;
        font-size: 15px;
    }

    .hero-scroll { display: none; }

    /* Sections */
    .section-header { margin-bottom: 48px; }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-card {
        padding: 36px 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        flex-direction: row;
    }

    .service-card-image {
        width: 140px;
        height: auto;
        min-height: 160px;
        flex-shrink: 0;
    }

    .service-card-body {
        padding: 24px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
    }

    .service-icon i {
        font-size: 16px;
    }

    .service-flow {
        padding: 36px 20px;
    }

    .flow-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .flow-step {
        flex-direction: row;
        gap: 16px;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        padding-left: 20px;
    }

    .flow-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .flow-icon i { font-size: 16px; }

    .flow-label {
        font-size: 14px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin-top: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card { padding: 40px 28px; }
    .stat-number { font-size: 56px; }
    .stat-text-large { font-size: 40px; }

    /* Company */
    .company-label {
        flex: 0 0 120px;
        padding: 18px 20px;
        font-size: 14px;
    }

    .company-value {
        padding: 18px 20px;
        font-size: 14px;
    }

    /* Reasons */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reason-card {
        flex-direction: row;
    }

    .reason-image {
        width: 40%;
        height: auto;
        min-height: 200px;
    }

    .reason-content {
        padding: 24px;
        width: 60%;
    }

    /* Contact */
    .contact-form {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    :root {
        --section-padding: 64px;
    }

    .container { padding: 0 16px; }

    .section-title {
        font-size: 24px;
    }

    .problem-card { padding: 32px 24px; }

    .company-row {
        flex-direction: column;
    }

    .company-label {
        flex: none;
        padding: 16px 20px 4px;
        background: transparent;
        color: #b8860b;
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .company-value {
        padding: 0 20px 20px;
    }

    .service-card {
        flex-direction: column;
    }

    .service-card-image {
        width: 100%;
        height: 160px;
        min-height: auto;
    }

    .service-card-body {
        padding: 20px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .reason-card {
        flex-direction: column;
    }

    .reason-image {
        width: 100%;
        height: 180px;
        min-height: auto;
    }

    .reason-content {
        width: 100%;
        padding: 20px;
    }

    .reason-title {
        font-size: 16px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .btn-submit span {
    display: none;
}

.loading .btn-submit::after {
    content: '送信中...';
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .header, .hero-scroll, .back-to-top, .hamburger { display: none; }
    body { background: white; color: #2c2420; }
    .section { padding: 40px 0; }
}