/* ===================================
   riving. - Common Styles
   Luxury Interior Design Studio
   =================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #3a3a3a;
    --color-muted: #666;
    --color-light: #999;
    --color-subtle: #bbb;
    --color-bg: #f8f7f5;
    --color-bg-warm: #f5f3f0;
    --color-bg-cool: #f0f1f3;
    --color-white: #ffffff;
    --color-cream: #fdfcfa;
    --color-accent: #8b7355;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-border-subtle: rgba(0, 0, 0, 0.04);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1400px;
    --container-narrow: 900px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.6s var(--ease-out-expo);
    --transition-fast: all 0.3s var(--ease-out-quart);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.4;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Background Decoration
   =================================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 190, 180, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(180, 175, 170, 0.3) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(190, 185, 175, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

.geo-line {
    position: absolute;
    background: var(--color-primary);
    opacity: 0.04;
}

.geo-line-h {
    width: 200px;
    height: 1px;
    top: 25%;
    left: 5%;
    animation: lineFloat 20s ease-in-out infinite;
}

.geo-line-v {
    width: 1px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation: lineFloat 25s ease-in-out infinite reverse;
}

.geo-circle {
    position: absolute;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.05;
    animation: rotate 80s linear infinite;
}

.geo-circle-lg {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 5%;
}

.geo-circle-sm {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 8%;
    animation-direction: reverse;
    animation-duration: 60s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes lineFloat {
    0%, 100% { transform: translateY(0); opacity: 0.04; }
    50% { transform: translateY(-30px); opacity: 0.08; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================================
   Glass Card Base
   =================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    opacity: 0.6;
}

.glass-card:hover {
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-shadow-lg);
    transform: translateY(-4px);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 2.5rem;
    transition: var(--transition-smooth);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.header.scrolled::before {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.header.light {
    --header-color: var(--color-primary);
}

.header.light::before {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border-subtle);
    opacity: 0;
}

.header.light.scrolled::before {
    opacity: 1;
}

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

.header-logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #fff;
    transition: var(--transition-fast);
}

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

.header-logo:hover {
    opacity: 0.7;
}

.header-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.header-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

.header.light .header-nav a {
    color: var(--color-secondary);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s var(--ease-out-expo);
}

.header-nav a:hover {
    color: #fff;
}

.header.light .header-nav a:hover {
    color: var(--color-primary);
}

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

.header-nav a.active::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 1.5px;
    background: #fff;
    transition: var(--transition-fast);
    transform-origin: center;
}

.header.light .menu-toggle span {
    background: var(--color-primary);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
}

.hero-line {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 1.5rem;
    transform: scaleX(0);
    animation: lineReveal 1s var(--ease-out-expo) 1s forwards;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1.2s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1.6s forwards;
    cursor: pointer;
}

.scroll-indicator-text {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.scroll-indicator-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes lineReveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

/* ===================================
   Page Hero (for subpages)
   =================================== */
.page-hero {
    position: relative;
    padding: calc(120px + var(--section-padding)) 2.5rem var(--section-padding);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Animated Geometric Background */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(180, 160, 130, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(160, 140, 110, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(100, 90, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Geometric Pattern Layer */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, transparent 49.5%, rgba(180, 160, 130, 0.06) 49.5%, rgba(180, 160, 130, 0.06) 50.5%, transparent 50.5%),
        linear-gradient(150deg, transparent 49.5%, rgba(180, 160, 130, 0.06) 49.5%, rgba(180, 160, 130, 0.06) 50.5%, transparent 50.5%),
        linear-gradient(90deg, transparent 49.5%, rgba(180, 160, 130, 0.04) 49.5%, rgba(180, 160, 130, 0.04) 50.5%, transparent 50.5%);
    background-size: 80px 80px, 80px 80px, 40px 40px;
    animation: patternShift 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes patternShift {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 80px 80px, -80px 80px, 40px 40px; }
}

/* Geometric Shapes Container */
.page-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Individual Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0;
    animation: shapeFloat 20s ease-in-out infinite;
}

.geo-shape.circle {
    border: 1px solid rgba(180, 160, 130, 0.35);
    border-radius: 50%;
}

.geo-shape.circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation: shapeRotate 40s linear infinite, shapeFadeIn 1s ease-out 0.2s forwards;
}

.geo-shape.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: 10%;
    animation: shapeRotate 30s linear infinite reverse, shapeFadeIn 1s ease-out 0.4s forwards;
}

.geo-shape.circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 5%;
    border-style: dashed;
    animation: shapeRotate 25s linear infinite, shapeFadeIn 1s ease-out 0.6s forwards;
}

.geo-shape.hexagon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(180, 160, 130, 0.25) 0%, rgba(139, 115, 85, 0.1) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.geo-shape.hexagon-1 {
    top: 20%;
    right: 15%;
    animation: shapeFloat 15s ease-in-out infinite, shapeFadeIn 1s ease-out 0.3s forwards;
}

.geo-shape.hexagon-2 {
    bottom: 25%;
    left: 20%;
    width: 80px;
    height: 80px;
    animation: shapeFloat 18s ease-in-out infinite reverse, shapeFadeIn 1s ease-out 0.5s forwards;
    animation-delay: -5s, 0.5s;
}

.geo-shape.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(180, 160, 130, 0.2);
    background: none;
}

.geo-shape.triangle-1 {
    top: 40%;
    right: 8%;
    animation: shapeFloat 12s ease-in-out infinite, shapeFadeIn 1s ease-out 0.7s forwards;
}

.geo-shape.triangle-2 {
    bottom: 15%;
    right: 25%;
    transform: rotate(180deg);
    animation: shapeFloat 14s ease-in-out infinite reverse, shapeFadeIn 1s ease-out 0.8s forwards;
}

.geo-shape.line {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 180, 150, 0.5), transparent);
}

.geo-shape.line-1 {
    width: 200px;
    top: 25%;
    left: 10%;
    transform: rotate(-15deg);
    animation: lineGlow 8s ease-in-out infinite, shapeFadeIn 1s ease-out 0.4s forwards;
}

.geo-shape.line-2 {
    width: 150px;
    bottom: 30%;
    right: 5%;
    transform: rotate(25deg);
    animation: lineGlow 10s ease-in-out infinite reverse, shapeFadeIn 1s ease-out 0.6s forwards;
}

.geo-shape.line-3 {
    width: 100px;
    top: 60%;
    left: 25%;
    transform: rotate(-30deg);
    animation: lineGlow 7s ease-in-out infinite, shapeFadeIn 1s ease-out 0.8s forwards;
}

.geo-shape.dot {
    width: 6px;
    height: 6px;
    background: rgba(200, 180, 150, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(200, 180, 150, 0.3);
}

.geo-shape.dot-1 {
    top: 15%;
    left: 30%;
    animation: dotPulse 4s ease-in-out infinite, shapeFadeIn 1s ease-out 0.3s forwards;
}

.geo-shape.dot-2 {
    top: 45%;
    right: 20%;
    animation: dotPulse 5s ease-in-out infinite, shapeFadeIn 1s ease-out 0.5s forwards;
    animation-delay: -2s, 0.5s;
}

.geo-shape.dot-3 {
    bottom: 20%;
    left: 40%;
    animation: dotPulse 3.5s ease-in-out infinite, shapeFadeIn 1s ease-out 0.7s forwards;
    animation-delay: -1s, 0.7s;
}

.geo-shape.dot-4 {
    top: 35%;
    left: 15%;
    animation: dotPulse 4.5s ease-in-out infinite, shapeFadeIn 1s ease-out 0.4s forwards;
}

.geo-shape.dot-5 {
    bottom: 35%;
    right: 35%;
    animation: dotPulse 3s ease-in-out infinite, shapeFadeIn 1s ease-out 0.6s forwards;
}

/* Geometric Animations */
@keyframes shapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(5px); }
}

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

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(1) rotate(var(--rotate, 0deg));
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2) rotate(var(--rotate, 0deg));
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(200, 180, 150, 0.3);
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 20px rgba(200, 180, 150, 0.6);
    }
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.page-hero-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.page-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.page-hero-description {
    font-size: 1rem;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

/* ===================================
   Section Common
   =================================== */
.section {
    position: relative;
    padding: var(--section-padding) 2.5rem;
    z-index: 1;
}

.section-dark {
    background: var(--color-primary);
    color: #fff;
}

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

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.align-left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-light);
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-dark .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 2.2;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--color-primary);
}

.btn i {
    font-size: 0.7rem;
    transition: transform 0.4s var(--ease-out-expo);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   Cards
   =================================== */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.card-header i {
    font-size: 1rem;
    color: var(--color-primary);
    opacity: 0.5;
}

.card-header h4 {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 2.5rem 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav h4 {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

/* ===================================
   Animations & Effects
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===================================
   Responsive
   =================================== */

/* --- Large Desktop (1280px+) --- */
@media (min-width: 1281px) {
    .container {
        padding: 0 3rem;
    }
}

/* --- Desktop/Laptop (1024px - 1280px) --- */
@media (max-width: 1280px) {
    :root {
        --container-max: 1200px;
    }

    .footer-content {
        gap: 3rem;
    }
}

/* --- Tablet Landscape (1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: clamp(60px, 10vw, 120px);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Reduce geometric shapes on tablet */
    .geo-shape.circle-1 {
        width: 200px;
        height: 200px;
    }

    .geo-shape.circle-2,
    .geo-shape.circle-3 {
        display: none;
    }
}

/* --- Tablet Portrait (768px) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(50px, 8vw, 100px);
    }

    body {
        font-size: 14px;
        line-height: 1.9;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.4s var(--ease-out-expo);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        overscroll-behavior: contain;
    }

    .header.light .header-nav {
        background: var(--glass-bg-strong);
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav a {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .header.light .header-nav a {
        color: var(--color-primary);
    }

    /* Mobile menu overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .section {
        padding: var(--section-padding) 1.25rem;
    }

    .page-hero {
        padding: calc(100px + var(--section-padding)) 1.25rem var(--section-padding);
    }

    .page-hero-description {
        font-size: 0.9rem;
        line-height: 2;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 0 1.25rem;
    }

    .hero-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.6rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-description {
        font-size: 0.85rem;
    }

    /* Buttons - touch friendly */
    .btn {
        padding: 1rem 2rem;
        min-height: 48px;
        font-size: 0.7rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 3.5rem 1.25rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-nav ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .footer-nav a {
        padding: 0.5rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Hide complex animations on tablet */
    .geo-shape.hexagon,
    .geo-shape.triangle,
    .geo-shape.line {
        display: none;
    }

    /* Glass card - no hover transform on touch */
    .glass-card:hover {
        transform: none;
    }
}

/* --- Large Phone (640px) --- */
@media (max-width: 640px) {
    :root {
        --section-padding: clamp(40px, 8vw, 80px);
    }

    .page-hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        letter-spacing: 0.05em;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        letter-spacing: 0.05em;
    }

    .section-label {
        font-size: 0.55rem;
        padding: 0.4rem 1rem;
    }

    /* Cards */
    .glass-card {
        border-radius: 16px;
    }
}

/* --- Phone (480px) --- */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .header {
        padding: 0.875rem 1rem;
    }

    .header-logo {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: 0.08em;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .page-hero {
        padding: calc(80px + var(--section-padding)) 1rem var(--section-padding);
    }

    .page-hero-label {
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }

    .section {
        padding: var(--section-padding) 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-brand p {
        font-size: 0.8rem;
    }

    .footer-nav h4 {
        font-size: 0.6rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    /* Hide all geometric shapes on small phones */
    .geo-shape {
        display: none;
    }
}

/* --- Small Phone (375px) --- */
@media (max-width: 375px) {
    :root {
        --section-padding: clamp(32px, 6vw, 60px);
    }

    .header {
        padding: 0.75rem;
    }

    .header-logo {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 14vw, 3rem);
    }

    .page-hero-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }

    .section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .btn {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }

    .footer-nav ul {
        gap: 1rem;
    }
}

/* ===================================
   Touch Device Optimizations
   =================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .glass-card:hover {
        transform: none;
        box-shadow: var(--glass-shadow);
    }

    .btn-primary:hover {
        transform: none;
    }

    .btn-primary:hover::before {
        left: -100%;
    }

    .social-link:hover {
        transform: none;
    }

    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .glass-card:active {
        transform: scale(0.99);
    }

    .social-link:active {
        transform: scale(0.95);
    }

    /* Larger tap targets */
    .header-nav a {
        padding: 0.75rem 0.5rem;
    }
}

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

    .hero-slide {
        transition: none;
    }

    .blur-orb,
    .geo-circle,
    .geo-line,
    .geo-shape {
        animation: none;
    }

    .page-transition {
        transition: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   High Contrast Mode
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0, 0, 0, 0.3);
    }

    .header-nav a::after {
        height: 2px;
    }

    .btn {
        border-width: 2px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .footer,
    .page-transition,
    .bg-decoration,
    .scroll-indicator,
    .menu-toggle {
        display: none !important;
    }

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

    .section {
        padding: 2rem 0;
    }

    .page-hero {
        background: #f5f5f5;
        color: #000;
        padding: 2rem;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ===================================
   Accessibility
   =================================== */

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: #fff;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* 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: 0;
}

/* ===================================
   Premium Enhancements (UX Layer)
   =================================== */

/* Subtle film grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
    body::after { display: none; }
}

/* Unified focus ring */
:focus-visible {
    outline: 2px solid var(--color-line, #06C755);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline-offset: 4px;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-line) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 1000;
    pointer-events: none;
    transition: transform 0.08s linear;
}

/* Header auto-hide */
.header {
    transition: transform 0.45s var(--ease-out-expo), background 0.4s, box-shadow 0.4s;
    will-change: transform;
}

.header.header-hidden {
    transform: translateY(-100%);
}

/* Mobile sticky LINE bar */
.sticky-line {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 900;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
    pointer-events: none;
}

.sticky-line.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-line a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.25rem;
    background: var(--color-line);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.4), 0 0 0 1px rgba(6, 199, 85, 0.2);
    backdrop-filter: blur(8px);
}

.sticky-line a i {
    font-size: 1.15rem;
}

.sticky-line a::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid var(--color-line);
    opacity: 0.45;
    animation: stickyLinePulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes stickyLinePulse {
    0% { transform: scale(1); opacity: 0.45; }
    100% { transform: scale(1.12); opacity: 0; }
}

@media (min-width: 769px) {
    .sticky-line { display: none; }
}

/* Side scroll dots (TOP page) */
.side-dots {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 50;
}

.side-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: block;
}

.side-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
}

.side-dot:hover {
    background: rgba(0, 0, 0, 0.45);
    transform: scale(1.35);
}

.side-dot.active {
    background: var(--color-primary);
    transform: scale(1.55);
}

.side-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translate(8px, -50%);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-out-expo);
}

.side-dot:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.side-dot.dark::after {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 1100px) {
    .side-dots { display: none; }
}

/* Hero title letter reveal */
.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroLetter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-letter { opacity: 1; transform: none; animation: none; }
}

/* Ken Burns on hero slideshow */
.hero-slide.active img {
    animation: kenBurns 9s ease-out forwards;
}

@keyframes kenBurns {
    from { transform: scale(1.02); }
    to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.active img { animation: none; }
}

/* 3D Tilt cards */
[data-tilt] {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out-expo);
    will-change: transform;
}

[data-tilt]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}

[data-tilt]:hover::before {
    opacity: 1;
}

/* Magnetic buttons */
[data-magnetic] {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: none) {
    [data-tilt], [data-magnetic] {
        transform: none !important;
    }
}

/* Blur-up images */
img[data-blur-up] {
    filter: blur(18px);
    transform: scale(1.04);
    transition: filter 0.7s ease-out, transform 0.7s var(--ease-out-expo);
}

img[data-blur-up].blur-up-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Step sequential reveal */
.step-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.step-stagger > .step-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Step connecting flow line */
.step-flow .contact-step-arrow i {
    animation: arrowFlow 1.6s ease-in-out infinite;
}

@keyframes arrowFlow {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(3px); opacity: 1; }
}

/* Filter chips */
.filter-chips {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-chip {
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.filter-chip:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    padding: 2rem;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-stage {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.96);
    transition: transform 0.45s var(--ease-out-expo);
}

.lightbox.open .lightbox-stage {
    transform: scale(1);
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: -2.4rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.has-lightbox img {
    cursor: zoom-in;
}

/* LINE chat mockup */
.line-mock {
    background: linear-gradient(to bottom, #8DA4BD, #7C97B5);
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    width: 100%;
    max-width: 360px;
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6);
    position: relative;
}

.line-mock::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.line-mock-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #fff;
    font-size: 0.78rem;
    margin: 0.5rem 0 1.1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.line-mock-header i {
    font-size: 0.9rem;
    opacity: 0.85;
}

.line-mock-msgs {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.line-msg {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    max-width: 85%;
    opacity: 0;
    animation: lineMsgIn 0.5s var(--ease-out-expo) forwards;
}

.line-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.line-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.line-msg-bubble {
    padding: 0.65rem 0.95rem;
    border-radius: 18px;
    background: #fff;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #2c2c2c;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.line-msg.user .line-msg-bubble {
    background: #80E54B;
    color: #1a3a0e;
}

.line-msg-time {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    margin-bottom: 0.15rem;
}

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

.line-mock.in-view .line-msg:nth-child(1) { animation-delay: 0.2s; }
.line-mock.in-view .line-msg:nth-child(2) { animation-delay: 0.7s; }
.line-mock.in-view .line-msg:nth-child(3) { animation-delay: 1.3s; }
.line-mock.in-view .line-msg:nth-child(4) { animation-delay: 1.9s; }
.line-mock.in-view .line-msg:nth-child(5) { animation-delay: 2.5s; }

.line-mock-typing {
    display: flex;
    gap: 4px;
    padding: 0.65rem 0.95rem;
    background: #fff;
    border-radius: 18px;
    width: fit-content;
}

.line-mock-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa;
    animation: typingDot 1.4s ease-in-out infinite;
}

.line-mock-typing span:nth-child(2) { animation-delay: 0.2s; }
.line-mock-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-3px); opacity: 1; }
}

/* Star shimmer */
.testimonial-rating {
    --star-delay: 0;
}

.testimonial-card:hover .testimonial-rating i {
    animation: starShimmer 0.9s ease-in-out;
}

.testimonial-card:hover .testimonial-rating i:nth-child(1) { animation-delay: 0ms; }
.testimonial-card:hover .testimonial-rating i:nth-child(2) { animation-delay: 80ms; }
.testimonial-card:hover .testimonial-rating i:nth-child(3) { animation-delay: 160ms; }
.testimonial-card:hover .testimonial-rating i:nth-child(4) { animation-delay: 240ms; }
.testimonial-card:hover .testimonial-rating i:nth-child(5) { animation-delay: 320ms; }

@keyframes starShimmer {
    0%, 100% { color: var(--color-accent); transform: scale(1) rotate(0); }
    50% { color: #FFD56B; transform: scale(1.25) rotate(-10deg); filter: drop-shadow(0 2px 6px rgba(255, 213, 107, 0.7)); }
}

/* Counted stat (no special style needed; JS sets text) */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* ===================================
   LINE CTA Components
   =================================== */

:root {
    --color-line: #06C755;
    --color-line-dark: #05a847;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.05rem 2rem;
    background: var(--color-line);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(6, 199, 85, 0.28);
}

.btn-line:hover {
    background: var(--color-line-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.4);
    color: #fff;
}

.btn-line i {
    font-size: 1.15rem;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-line:hover i {
    transform: translateX(3px);
}

.btn-line.btn-line-lg {
    padding: 1.35rem 2.5rem;
    font-size: 0.95rem;
}

.btn-line.btn-line-block {
    width: 100%;
}

.btn-line-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.05rem 2rem;
    background: transparent;
    color: var(--color-line);
    border: 1.5px solid var(--color-line);
    border-radius: 999px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-line-outline:hover {
    background: var(--color-line);
    color: #fff;
    transform: translateY(-3px);
}

.footer-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    background: var(--color-line);
    color: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(6, 199, 85, 0.4);
    color: #fff;
    background: var(--color-line-dark);
}

.footer-line-btn i {
    font-size: 1.1rem;
}

.footer-line-note {
    margin-top: 0.85rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* ===================================
   Page Transitions
   =================================== */

/* Horizontal Slide Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
