/* --- Base Settings --- */
:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --brand-pink: #FF6B9D;
    --brand-orange: #FF9F43;
    --line-green: #06C755;
    --status-red: #FF4757;

    /* Hybrid Warm Theme Colors */
    --bg-main: #FDFBF7; /* Warm Beige */
    --bg-sub: #fff;
    --text-main: #4a4a4a;
    --text-sub: #888888;
    --accent: #FF6B9D;
    --accent-gradient: linear-gradient(135deg, #FF6B9D 0%, #FF9F43 100%);
    
    /* Fonts */
    --font-display: 'M PLUS Rounded 1c', sans-serif;
    --font-body: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Jost', sans-serif;
    
    /* Shapes & Shadows */
    --radius: 24px;
    --shadow-card: 0 10px 30px -5px rgba(255, 107, 157, 0.1);
    --shadow-hover: 0 20px 40px -5px rgba(255, 107, 157, 0.2);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .font-display { font-family: var(--font-display); }

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}
#loading-screen.hidden-load {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--brand-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Animated Gradient Background (Faster) --- */
.animated-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    background: linear-gradient(120deg, #fff0f5, #fff8e1, #f0fdf4, #e0f2fe, #fff0f5);
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite; 
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Blob Animation (High Speed & Large) --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    background-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.6;
    animation: blobMove 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, border-radius;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { transform: translate(100px, -100px) scale(1.3) rotate(180deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.blob-1 { top: -20%; left: -20%; width: 900px; height: 900px; background: rgba(255, 183, 207, 0.5); animation-duration: 20s; }
.blob-2 { bottom: -20%; right: -20%; width: 800px; height: 800px; background: rgba(255, 218, 170, 0.5); animation-duration: 25s; animation-direction: alternate-reverse; }
.blob-3 { top: 30%; left: 20%; width: 700px; height: 700px; background: rgba(200, 255, 220, 0.4); animation-duration: 18s; animation-delay: -5s; }

/* --- Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3; /* セクション背景より奥 */
    pointer-events: none;
}

/* --- Section Styling --- */
section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* 背景色は薄く、透明感を維持 */
.bg-white-solid {
    background-color: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(8px);
}
.bg-gray-solid {
    background-color: rgba(240, 245, 250, 0.35);
    backdrop-filter: blur(8px);
}

.bg-transparent {
    background-color: transparent;
}

/* --- Stripe Divider (太い斜めストライプの境界線) --- */
.stripe-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px; /* 帯の太さ */
    background: repeating-linear-gradient(
        -45deg,
        var(--brand-pink),
        var(--brand-pink) 20px,
        var(--brand-orange) 20px,
        var(--brand-orange) 40px
    );
    z-index: 20;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
    
    /* アニメーション用設定 */
    transform: translateX(100%); /* 初期状態：画面右外 */
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    will-change: transform;
}

/* JSで付与されるアクティブクラス */
.stripe-divider.active {
    transform: translateX(0); /* 定位置へスライドイン */
    opacity: 1;
}

@media (max-width: 768px) {
    section { padding-top: 4rem; padding-bottom: 4rem; }
    .stripe-divider { height: 16px; background-size: 20px 20px; } /* モバイルは少し細く */
}

/* --- Complex Brush Text Background --- */
.brush-container {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.brush-bg {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; /* 幅を広げてカバー */
    height: 160%; /* 高さを広げて上部もカバー */
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFFFFF' d='M521.8,127.3c-23.9-32.9-63.4-56.1-105.7-72.9c-45.7-18.1-95.2-27.1-144.3-29.4C219.6,22.7,167.3,25.2,118,43c-38.3,13.8-73.4,38.1-96.6,72.4C2.3,143.5-7.6,179.1,8.3,209.6c13.7,26.4,43.2,46.1,72.3,55.1c32.6,10.1,68.2,9.6,102.1,10.2c56.8,1,113.7,2.2,170.3-2.1c25.1-1.9,50.1-5.3,74.5-11.5c23.6-6,46.7-16.1,65.6-32.2c19.3-16.4,34.1-40.1,36.9-65.4C532.7,143.1,529.6,133.5,521.8,127.3z' opacity='0.95'/%3E%3Cpath fill='%23FFFFFF' d='M500,150c0,0-20-80-150-100S100,80,50,150s20,120,150,110S500,200,500,150z' opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

/* --- Card Styles (Keep Solid for Readability) --- */
.card {
    background-color: #ffffff; /* コンテンツ自体は白背景ではっきり見せる */
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 157, 0.3);
}

/* --- Typography --- */
.section-title {
    position: relative;
    display: inline-block;
    z-index: 10;
}
.section-title::before {
    content: attr(data-en);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
}

.title-underline {
    position: relative;
    z-index: 10;
}
.title-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.highlight-marker {
    background: linear-gradient(transparent 60%, rgba(255, 220, 100, 0.6) 60%);
}

.hero-text-effect {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.hero-badge {
    position: absolute;
    z-index: 20;
    bottom: 2rem;
    left: -1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
    transform: rotate(-2deg);
    animation: float 4s ease-in-out infinite;
    animation-delay: -1s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 10;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translate(-100%, 0);
    transition: transform 0.6s;
    z-index: -1;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}
.btn-primary:hover::after {
    transform: rotate(45deg) translate(100%, 0);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    z-index: 10;
}
.marquee-content {
    display: inline-block;
    animation: marquee 50s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    transition: opacity 1.5s, transform 6s;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.status-badge {
    background: var(--status-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 100;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #666;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn.hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    transform: scale(1.05);
}

.company-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    background: var(--text-sub);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-right: 4px;
    margin-bottom: 4px;
}

.tag-date-09 { background: #3b82f6; }
.tag-date-10 { background: #10b981; }
.tag-date-13 { background: #ec4899; }
.tag-date-16 { background: #f97316; }

@media (max-width: 768px) {
    .hero-badge {
        left: -10px;
        padding: 0.8rem 1rem;
    }
    .section-title::before {
        font-size: 2.5rem;
    }
}