/**
 * PREMIUM COSMETICS B2B DESIGN SYSTEM
 * Sophisticated, Elegant, Professional
 * Inspired by Japanese Minimalism & Luxury Cosmetics Brands
 */

/* ===================================
   DESIGN TOKENS - PREMIUM PALETTE
   =================================== */

:root {
    /* Pink Theme Color Palette */
    --color-primary: #e91e63;
    --color-secondary: #ff6b9d;
    --color-accent: #ffc5d9;
    --color-text-dark: #2d3436;
    --color-text-light: #636e72;
    --color-bg-light: #fef8fa;
    --color-elegant-gray: #2d3436;
    --color-charcoal: #1A202C;
    --color-warm-gray: #636e72;
    --color-light-gray: #718096;
    --color-off-white: #fef8fa;
    --color-pearl: #fff5f7;
    --color-silver: #ffe0e6;

    /* Pink Gradients */
    --gradient-primary: linear-gradient(135deg, #e91e63 0%, #ff6b9d 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b9d 0%, #ffc5d9 100%);
    --gradient-hero: linear-gradient(135deg, #fff5f7 0%, #ffe0e6 100%);
    --gradient-soft: linear-gradient(135deg, #fef8fa 0%, #fff5f7 100%);
    --gradient-premium: linear-gradient(135deg, #e91e63 0%, #ff6b9d 50%, #ffc5d9 100%);

    /* Typography */
    --font-serif: 'Noto Serif JP', 'Georgia', serif;
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;
    --space-section: 160px;

    /* Shadows - Elegant & Subtle */
    --shadow-soft: 0 2px 12px rgba(44, 62, 80, 0.04);
    --shadow-medium: 0 4px 24px rgba(44, 62, 80, 0.08);
    --shadow-elevated: 0 8px 40px rgba(44, 62, 80, 0.12);
    --shadow-premium: 0 12px 60px rgba(212, 175, 55, 0.15);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elegant: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================================
   TYPOGRAPHY SYSTEM - REFINED
   =================================== */

body {
    font-family: var(--font-sans);
    color: var(--color-charcoal);
    line-height: 1.8;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Elegant Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: var(--color-elegant-gray);
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: clamp(18px, 2.5vw, 24px); }
h5 { font-size: clamp(16px, 2vw, 20px); }
h6 { font-size: clamp(14px, 1.5vw, 18px); }

p {
    line-height: 2.0;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-md);
}

.lead {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    line-height: 2.0;
    color: var(--color-elegant-gray);
}

/* ===================================
   IMAGE SIZE CONSTRAINTS - OPTIMIZED
   =================================== */

/* Hero Images - Compact & Elegant */
.page-hero {
    max-height: 250px;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #FFE8E5 0%, #EF695A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 70%);
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    z-index: 2;
}

.page-hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 300;
    letter-spacing: 3px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-sm);
}

.page-hero-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    font-weight: 300;
}

/* Service & Introduction Images - Small & Elegant */
.intro-image img,
.service-image img {
    max-height: 280px;
    height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    transition: all var(--transition-elegant);
    filter: brightness(0.95) contrast(1.05);
}

.intro-image img:hover,
.service-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-premium);
    filter: brightness(1) contrast(1.08);
}

/* Type/Category Images - Compact */
.type-image img {
    max-height: 250px;
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-slow);
}

.type-image img:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

/* Product/Gallery Images - Square & Elegant */
.gallery-item img {
    width: 100%;
    max-height: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: all var(--transition-elegant);
}

/* YOHAKU Product Images - Ultra Minimalist */
.yohaku-product-image {
    max-width: 250px;
    max-height: 250px;
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: linear-gradient(135deg, #FAFBFC 0%, #F5F7FA 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-elegant);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.06));
}

.yohaku-product-image:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.2));
}

/* Lazy Loading Enhancement */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===================================
   PREMIUM CARD DESIGNS
   =================================== */

/* Service Cards - Magazine Style */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    border: 1px solid var(--color-silver);
    margin-bottom: var(--space-xl);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-slow);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(233, 30, 99, 0.3);
}

.service-content {
    padding: var(--space-xl);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 40px rgba(233, 30, 99, 0.4);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--color-elegant-gray);
    letter-spacing: 1px;
}

.service-description {
    color: var(--color-warm-gray);
    line-height: 2.0;
    margin-bottom: var(--space-lg);
    font-size: 15px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
}

.service-features li {
    padding: var(--space-sm) 0;
    color: var(--color-charcoal);
    font-size: 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-pearl);
    transition: all var(--transition-base);
}

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

.service-features li:hover {
    padding-left: var(--space-sm);
    color: var(--color-primary);
}

.service-features li i {
    color: var(--color-primary);
    margin-right: var(--space-sm);
    font-size: 16px;
    transition: all var(--transition-base);
}

.service-features li:hover i {
    transform: scale(1.2);
}

.service-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-pearl);
}

.spec-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.spec-item:hover {
    background: white;
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.spec-label {
    display: block;
    font-size: 11px;
    color: var(--color-light-gray);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.spec-value {
    display: block;
    font-size: 16px;
    color: var(--color-elegant-gray);
    font-weight: 600;
    font-family: var(--font-serif);
}

/* Category/Option Cards - Asymmetric Grid */
.category-card,
.option-card,
.custom-card,
.spec-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    border: 1px solid var(--color-silver);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::after,
.option-card::after,
.custom-card::after,
.spec-card::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
    border-radius: 50%;
    transition: all var(--transition-slow);
}

.category-card:hover::after,
.option-card:hover::after,
.custom-card:hover::after,
.spec-card:hover::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
}

.category-card:hover,
.option-card:hover,
.custom-card:hover,
.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(212, 175, 55, 0.3);
}

.category-icon,
.option-icon,
.custom-icon,
.spec-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-rose);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(183, 110, 121, 0.3);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon,
.option-card:hover .option-icon,
.custom-card:hover .custom-icon,
.spec-card:hover .spec-icon {
    transform: rotate(15deg) scale(1.1);
}

.category-title,
.option-card h3,
.custom-card h3,
.spec-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--color-elegant-gray);
    letter-spacing: 0.5px;
}

.category-items,
.custom-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-items li,
.custom-features li {
    padding: var(--space-sm) 0;
    color: var(--color-warm-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-pearl);
    transition: all var(--transition-base);
}

.category-items li:last-child,
.custom-features li:last-child {
    border-bottom: none;
}

.category-items li:hover,
.custom-features li:hover {
    color: var(--color-rose-gold);
    padding-left: var(--space-xs);
}

.category-items li i,
.custom-features li i {
    color: var(--color-rose-gold);
    margin-right: var(--space-sm);
    font-size: 14px;
}

/* Type Cards - Elegant Product Display */
.type-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    border: 1px solid var(--color-silver);
}

.type-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
}

.type-content {
    padding: var(--space-lg);
}

.type-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--color-elegant-gray);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.type-title i {
    margin-right: var(--space-sm);
    color: var(--color-muted-purple);
}

.type-description {
    color: var(--color-warm-gray);
    line-height: 2.0;
    margin-bottom: var(--space-md);
    font-size: 14px;
}

.type-specs {
    background: var(--color-off-white);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-muted-purple);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-pearl);
}

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

.spec-row .spec-label {
    font-size: 13px;
    color: var(--color-light-gray);
    font-weight: 500;
}

.spec-row .spec-value {
    font-size: 13px;
    color: var(--color-elegant-gray);
    font-weight: 600;
}

/* Gallery Items - Premium Grid */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-premium);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.8), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    color: white;
    transform: translateY(100%);
    transition: transform var(--transition-elegant);
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.gallery-caption p {
    font-size: 13px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   YOHAKU SKIN SECTION - ULTRA PREMIUM
   =================================== */

.yohaku-section {
    background: linear-gradient(135deg, #FAFBFC 0%, #F5F7FA 100%);
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle Background Elements - Japanese "Ma" Concept */
.yohaku-section::before,
.yohaku-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.yohaku-section::before {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.yohaku-section::after {
    bottom: -15%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.06) 0%, transparent 70%);
}

.yohaku-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.yohaku-logo {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 12px;
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.yohaku-logo::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.yohaku-subtitle {
    font-size: 14px;
    color: var(--color-light-gray);
    letter-spacing: 3px;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    font-weight: 400;
}

.yohaku-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-warm-gray);
    line-height: 2.2;
    font-size: 15px;
    font-weight: 300;
}

.yohaku-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.yohaku-product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.yohaku-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-premium);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.yohaku-product-card:hover::before {
    transform: scaleX(1);
}

.yohaku-product-card:hover {
    transform: translateY(-16px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(212, 175, 55, 0.3);
}

.yohaku-product-image-wrapper {
    position: relative;
    padding: var(--space-xl);
    background: linear-gradient(135deg, #FAFBFC 0%, #F0F2F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.yohaku-product-content {
    padding: var(--space-xl);
    text-align: center;
}

.yohaku-product-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-xs);
    letter-spacing: 1px;
}

.yohaku-product-name-en {
    font-size: 11px;
    color: var(--color-light-gray);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    display: block;
    font-weight: 500;
}

.yohaku-product-description {
    font-size: 14px;
    color: var(--color-warm-gray);
    line-height: 2.0;
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.yohaku-product-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    text-align: left;
}

.yohaku-product-features li {
    font-size: 13px;
    color: var(--color-light-gray);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.yohaku-product-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.yohaku-cta {
    text-align: center;
    margin-top: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.yohaku-cta-text {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    letter-spacing: 1px;
}

.yohaku-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-2xl);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all var(--transition-elegant);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
    font-size: 14px;
    text-transform: uppercase;
}

.yohaku-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.5);
    color: white;
    text-decoration: none;
}

/* ===================================
   GRID LAYOUTS - ASYMMETRIC & ELEGANT
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.categories-grid,
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.specs-grid,
.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

/* ===================================
   SECTION STYLING - GENEROUS SPACING
   =================================== */

.section {
    padding: var(--space-section) 0;
}

.section-compact {
    padding: var(--space-3xl) 0;
}

.bg-gray {
    background-color: var(--color-off-white);
}

.bg-pearl {
    background: var(--gradient-soft);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.subtitle-en {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.title-ja {
    font-family: var(--font-serif);
    display: block;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 300;
    color: var(--color-elegant-gray);
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: var(--space-lg) auto;
    border-radius: var(--radius-full);
}

.intro-content {
    margin-bottom: var(--space-2xl);
}

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

.intro-text .lead {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    line-height: 2.0;
}

.intro-text p {
    font-size: 15px;
    color: var(--color-warm-gray);
    line-height: 2.0;
}

/* ===================================
   PROCESS TIMELINE - REFINED
   =================================== */

.process-timeline {
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
    position: relative;
    padding-left: var(--space-2xl);
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--gradient-gold);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    transform: translateY(30px);
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.1);
    transition: all var(--transition-base);
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    border-color: var(--color-rose-gold);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2);
}

.timeline-content {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    border-left: 3px solid transparent;
}

.timeline-item:hover .timeline-content {
    transform: translateX(12px);
    box-shadow: var(--shadow-elevated);
    border-left-color: var(--color-gold);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--color-warm-gray);
    line-height: 1.9;
    margin-bottom: var(--space-sm);
}

.timeline-duration {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-rose);
    color: white;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===================================
   SPEC TABLE - ELEGANT
   =================================== */

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.spec-table tr {
    border-bottom: 1px solid var(--color-pearl);
    transition: background var(--transition-fast);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table tr:hover {
    background: var(--color-off-white);
}

.spec-table th,
.spec-table td {
    padding: var(--space-md) var(--space-sm);
    text-align: left;
    font-size: 14px;
}

.spec-table th {
    color: var(--color-light-gray);
    font-weight: 500;
    width: 40%;
    letter-spacing: 0.5px;
}

.spec-table td {
    color: var(--color-elegant-gray);
    font-weight: 500;
}

/* ===================================
   PREMIUM ANIMATIONS
   =================================== */

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.7s ease-out;
}

/* Stagger Animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* ===================================
   LOADING SKELETON - ELEGANT
   =================================== */

.skeleton {
    background: linear-gradient(90deg, #F5F7FA 25%, #E2E8F0 50%, #F5F7FA 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-xs);
}

.skeleton-image {
    height: 280px;
    border-radius: var(--radius-md);
}

/* ===================================
   PROFESSIONAL POLISH
   =================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States - Accessible */
a:focus,
button:focus,
input:focus,
.yohaku-btn:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

/* Selection Colors */
::selection {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-elegant-gray);
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-elegant-gray);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-rose);
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    :root {
        --space-section: 120px;
        --space-4xl: 96px;
    }

    .page-hero {
        max-height: 250px;
        height: 250px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .services-grid,
    .categories-grid,
    .types-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-lg);
    }

    .intro-image img,
    .service-image img {
        max-height: 240px;
        height: 240px;
    }

    .yohaku-logo {
        font-size: 42px;
        letter-spacing: 8px;
    }

    .yohaku-products-grid {
        gap: var(--space-xl);
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --space-section: 80px;
        --space-4xl: 64px;
        --space-3xl: 48px;
    }

    .page-hero {
        max-height: 200px;
        height: 200px;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .services-grid,
    .categories-grid,
    .types-grid,
    .specs-grid,
    .custom-grid,
    .options-grid,
    .gallery-grid,
    .yohaku-products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .service-specs {
        grid-template-columns: 1fr;
    }

    .intro-image img,
    .service-image img {
        max-height: 200px;
        height: 200px;
    }

    .type-image img {
        max-height: 200px;
        height: 200px;
    }

    .gallery-item img {
        max-height: 240px;
        height: 240px;
    }

    .service-content,
    .category-card,
    .option-card,
    .custom-card,
    .spec-card {
        padding: var(--space-lg);
    }

    .process-timeline {
        padding-left: var(--space-md);
    }

    .process-timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: var(--space-2xl);
    }

    .timeline-dot {
        left: 6px;
        width: 20px;
        height: 20px;
    }

    .yohaku-logo {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .yohaku-section {
        padding: var(--space-2xl) 0;
    }

    .yohaku-header {
        margin-bottom: var(--space-2xl);
    }

    .yohaku-product-image {
        max-height: 220px;
        height: 220px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .page-hero {
        max-height: 180px;
        height: 180px;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .service-title,
    .category-title {
        font-size: 22px;
    }

    .service-icon,
    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .intro-text .lead {
        font-size: 16px;
    }

    .gallery-item img {
        height: 200px;
    }

    .yohaku-logo {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .yohaku-product-image {
        max-height: 200px;
        height: 200px;
        padding: var(--space-md);
    }

    .yohaku-btn {
        padding: var(--space-sm) var(--space-xl);
        font-size: 12px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .page-hero,
    .yohaku-cta,
    .yohaku-section::before,
    .yohaku-section::after {
        display: none;
    }

    .service-card,
    .category-card,
    .yohaku-product-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    body {
        color: #000;
        background: white;
    }

    a {
        text-decoration: underline;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   END OF PREMIUM DESIGN SYSTEM
   =================================== */
