/* ============================================
   KOETE - Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;
    --blue-900: #1E3A5F;
    --orange-400: #FB923C;
    --orange-500: #F97316;
    --orange-600: #EA580C;
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --red-500: #EF4444;
    --green-500: #22C55E;

    --text-primary: var(--navy-900);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--gray-50);
    --border-color: var(--gray-200);
    --primary: var(--blue-600);
    --primary-dark: var(--blue-700);
    --accent: var(--orange-500);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: var(--blue-50);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 56px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    background: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-text .ruby {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 4px;
    vertical-align: super;
}

/* Header nav - default visible state is white for hero */
.header .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 4px;
    position: relative;
    transition: color var(--transition);
}

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

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

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

.header.scrolled .nav-link:hover {
    color: var(--primary);
}

.header .logo-text {
    color: #fff;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-cta {
    display: inline-flex;
}

.header .header-cta .btn {
    padding: 10px 24px;
    font-size: 13px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--text-primary);
}

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

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

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

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 80px 32px 32px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

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

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav .btn {
    margin-top: 24px;
    width: 100%;
}

/* ============================================
   HERO Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #3B82F6 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('images/hero-bg.png') center/cover no-repeat;
    opacity: 0.12;
}

.hero-decoration-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: heroFloat 20s infinite ease-in-out;
}

.hero-decoration-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    animation: heroFloat 25s infinite ease-in-out reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-tag {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange-400);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero-title {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--orange-400);
}

.hero-desc {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc strong {
    color: #fff;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.app-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.app-badge {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: opacity 0.2s, transform 0.2s;
}

.app-badge:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-number {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    color: var(--orange-400);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 8px;
}

/* Fade-in animation */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
}

.fade-up.visible {
    animation: fadeInUp 0.7s forwards;
}

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

/* stagger delays for hero children */
.hero .fade-up:nth-child(1) { animation-delay: 0.1s; }
.hero .fade-up:nth-child(2) { animation-delay: 0.2s; }
.hero .fade-up:nth-child(3) { animation-delay: 0.3s; }
.hero .fade-up:nth-child(4) { animation-delay: 0.4s; }
.hero .fade-up:nth-child(5) { animation-delay: 0.5s; }
.hero .fade-up:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   VIDEO Section
   ============================================ */
.video-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: min(540px, 50vw); /* 上下収まるサイズに制限 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   PROBLEMS Section
   ============================================ */
.problems {
    padding: 100px 0;
    background: var(--bg-primary);
}

.problems-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto 20px;
    text-align: center;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.problem-card {
    background: var(--gray-50);
    padding: 36px 32px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--red-500);
    position: relative;
    transition: all var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 56px;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.07);
    line-height: 1;
}

.problem-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-right: 40px;
}

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

/* ============================================
   SOLUTION Section
   ============================================ */
.solution {
    padding: 100px 0;
    background: var(--gray-50);
}

.solution-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

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

.solution-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.solution-num {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.solution-result {
    display: inline-block;
    background: var(--blue-50);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

/* ============================================
   STORY Section
   ============================================ */
.story {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.story-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.story-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 56px;
    line-height: 1.9;
}

.story-block {
    margin-bottom: 36px;
    padding: 36px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.story-block:hover {
    box-shadow: var(--shadow-md);
}

.story-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.story-block p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 14px;
}

.story-block p:last-child {
    margin-bottom: 0;
}

.story-highlight {
    background: var(--blue-50);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0;
    border-left: 3px solid var(--primary);
}

.story-cta-box {
    text-align: center;
    padding: 52px 40px;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-top: 48px;
}

.story-cta-box p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 12px;
}

.story-cta-box .brand-name {
    display: block;
    font-size: 36px;
    font-weight: 900;
    margin-top: 8px;
    letter-spacing: 0.03em;
}

/* ============================================
   MOCKUP Section
   ============================================ */
.mockup-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.mockup-heading {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.mockup-item {
    text-align: center;
}

.mockup-item img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
    margin: 0 auto;
}

.mockup-item:hover img {
    transform: scale(1.03);
}

.mockup-caption {
    margin-top: 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

/* ============================================
   FEATURES Section
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.features-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 80px;
    right: -100px;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 36px 28px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s, color 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}

.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 700;
    padding-right: 50px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   DASHBOARD Section
   ============================================ */
.dashboard-section {
    padding: 80px 0;
    background: #fff;
}

.dashboard-wrap {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
}

.dashboard-desc {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 15px;
}

.dashboard-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   SCENES Section
   ============================================ */
.scenes {
    padding: 100px 0;
    background: var(--gray-50);
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scene-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.scene-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.scene-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.scene-body {
    padding: 24px;
}

.scene-tag {
    display: inline-block;
    background: var(--blue-50);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.scene-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.scene-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CASE STUDIES Section
   ============================================ */
.cases {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 50%, #3B82F6 100%);
    position: relative;
    overflow: hidden;
}

.cases-deco-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.cases-deco-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.cases .section-title {
    color: #fff;
}

.cases .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 48px auto 0;
    position: relative;
    z-index: 1;
}

.case-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transition: all var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.case-card img {
    width: 100%;
    height: auto;
}

/* ============================================
   PRICING Section
   ============================================ */
.pricing {
    padding: 100px 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    transform: scale(1.04);
}

.pricing-card.recommended:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 5px 18px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.plan-target {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.plan-price {
    margin-bottom: 28px;
}

.price-number {
    font-size: 44px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.price-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 2px;
}

.price-custom {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 24px;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: 100px 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 56px 22px 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    position: relative;
    line-height: 1.5;
}

.faq-question::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 28px 22px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   CONTACT Section
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-form {
    max-width: 680px;
    margin: 0 auto;
    background: var(--gray-50);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

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

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

.form-group:not(.form-row .form-group) {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.required-mark {
    color: var(--red-500);
    font-size: 11px;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-900);
    color: #fff;
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.7;
}

.footer-company-info {
    margin-top: 16px;
}

.footer-company-info .company-name {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* ============================================
   FLOATING CTA (Mobile)
   ============================================ */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
    z-index: 900;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.floating-cta.visible {
    transform: translateY(0);
}

.floating-cta .btn {
    width: 100%;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid,
    .scenes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav,
    .header-cta {
        display: none;
    }
    .mobile-nav,
    .mobile-overlay {
        display: block;
    }

    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-glass {
        padding: 36px 20px;
    }

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

    .hero-stat-label {
        font-size: 11px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-padding {
        padding: 64px 0;
    }

    .problems,
    .solution,
    .story,
    .features,
    .scenes,
    .pricing,
    .faq,
    .contact,
    .cases {
        padding: 64px 0;
    }

    .problems-grid,
    .solution-grid,
    .features-grid,
    .scenes-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .mockup-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 32px 20px;
    }

    .pricing-card.recommended {
        transform: none;
    }

    .pricing-card.recommended:hover {
        transform: translateY(-4px);
    }

    .floating-cta {
        display: block;
    }

    .story-cta-box {
        padding: 36px 24px;
    }

    .story-block {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-title {
        font-size: 28px;
    }

    .hero-stat-number {
        font-size: 32px;
    }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-full);
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition);
    backdrop-filter: blur(6px);
    letter-spacing: 0.05em;
    line-height: 1;
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-toggle svg {
    flex-shrink: 0;
}

.header.scrolled .lang-toggle {
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

.header.scrolled .lang-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.header.scrolled .lang-toggle svg {
    stroke: var(--text-primary);
}

/* In the nav, position the toggle */
.nav .lang-toggle {
    margin-left: 4px;
}

/* Mobile: position beside hamburger */
.mobile-lang-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-lang-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-lang-toggle .lang-toggle {
        padding: 6px 12px 6px 8px;
    }
}

/* Google Fonts async load fallback */
@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Noto Sans JP Regular'), local('NotoSansJP-Regular');
}
