/* 
  Shiga Future Manufacturing LP
  Sleek, Modern, Dark Theme
*/

:root {
    --bg-color: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --bg-card: #1e293b; /* Slate 800 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --accent-blue: #3b82f6; /* Blue 500 */
    --accent-blue-hover: #2563eb; /* Blue 600 */
    --accent-cyan: #06b6d4; /* Cyan 500 */
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* AI Warning Banner */
.ai-banner {
    background: #ef4444; /* Red 500 */
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1000;
}

/* Common Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

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

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Header */
.header {
    position: fixed;
    top: 40px; /* Below banner */
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    z-index: -2;
}

/* Blueprint Grid */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z" fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"/></svg>');
    z-index: 1;
}

/* Animated Gears */
.gear {
    position: absolute;
    color: rgba(255, 255, 255, 0.03); /* 非常にうっすらと */
    z-index: 0;
    pointer-events: none;
}
.gear-1 {
    top: -5%; left: -5%;
    font-size: 35rem;
    animation: rotate 60s linear infinite;
}
.gear-2 {
    top: 25%; left: 15%;
    font-size: 15rem;
    animation: rotate-reverse 30s linear infinite;
}
.gear-3 {
    bottom: -15%; right: -10%;
    font-size: 45rem;
    animation: rotate 80s linear infinite;
}

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

/* Laser Scanner */
.laser-scanner {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-blue);
    animation: scanLine 6s ease-in-out infinite;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

@keyframes scanLine {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 0.6; }
    40% { top: 110%; opacity: 0.6; }
    50% { top: 110%; opacity: 0; }
    100% { top: 110%; opacity: 0; }
}

/* Sparks (Welding/Grinding Effect) */
.spark {
    position: absolute;
    width: 4px; height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fcd34d, 0 0 30px #f59e0b; /* イエロー/オレンジ系の光 */
    animation: flyUp 2s ease-out infinite;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}
.spark-1 { bottom: 10%; left: 30%; animation-duration: 2.5s; animation-delay: 0s; }
.spark-2 { bottom: 5%; left: 55%; animation-duration: 3s; animation-delay: 1.2s; }
.spark-3 { bottom: 15%; left: 45%; animation-duration: 2s; animation-delay: 0.5s; }
.spark-4 { bottom: -5%; right: 25%; animation-duration: 3.5s; animation-delay: 2.1s; }
.spark-5 { bottom: 20%; right: 40%; animation-duration: 2.2s; animation-delay: 1.8s; }

@keyframes flyUp {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(-200px) translateX(30px) scale(0); opacity: 0; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    margin-top: -50px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.scroll-down {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 60px; /* 文字からの距離を固定 */
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-down span {
    letter-spacing: 2px;
    margin-left: 2px; /* letter-spacingによる視覚的なズレを補正 */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background: url('../images/about-image_result.webp') center/cover no-repeat;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% { left: 200%; }
}

/* Workflow Section (Timeline) */
.timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    width: 2px;
    height: 100%;
    background: var(--bg-card);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 140px;
}

.timeline-item .time {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: right;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 95px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid var(--bg-darker);
    z-index: 1;
}

.timeline-item .content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.timeline-item .content:hover {
    transform: translateX(10px);
    border-color: rgba(59, 130, 246, 0.3);
}

.timeline-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Data Section */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.chart-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.chart-card h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.chart-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Circular Chart for Paid Leave */
.stat-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.circular-chart {
    width: 180px;
    height: 180px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke: url(#cyan-blue-gradient); /* We will inject gradient in JS or CSS doesn't support svg gradient this way directly, so we use solid color for now */
    stroke: var(--accent-cyan);
}

.chart-card.aos-animate .circle {
    animation: progress 2s ease-out forwards;
}

.percentage {
    fill: var(--text-main);
    font-family: var(--font-en);
    font-size: 8px;
    font-weight: 700;
    text-anchor: middle;
}

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

/* Voice Section */
.voice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.voice-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.voice-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #334155;
    margin-bottom: 20px;
}
.voice-img-placeholder.user-1 {
    background: url('../images/voice_male_result.webp') center/cover no-repeat;
}
.voice-img-placeholder.user-2 {
    background: url('../images/voice_female_result.webp') center/cover no-repeat;
}

.voice-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--accent-cyan);
}

.voice-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Gallery Section (Swiper) */
.gallery-swiper {
    margin-top: 50px;
    padding-bottom: 50px; /* Space for pagination */
    position: relative;
}

.gallery-item {
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    background: #1e293b;
    position: relative;
}

.g-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transition: transform 0.5s ease;
}
.g-img.g-1 { background: url('../images/mathias-reding-V9go_R5U72g-unsplash_compressed.jpg') center/cover no-repeat; }
.g-img.g-2 { background: url('../images/cemrecan-yurtman-JpzMc-FMUes-unsplash_compressed.jpg') center/cover no-repeat; }
.g-img.g-3 { background: url('../images/josh-beech-tXJhAFVOHVk-unsplash_compressed.jpg') center/cover no-repeat; }
.g-img.g-4 { background: url('../images/alan-jiang-bJplo_5BOZQ-unsplash_compressed.jpg') center/cover no-repeat; }
.g-img.g-5 { background: url('../images/charlesdeluvio-Lks7vei-eAg-unsplash_compressed.jpg') center/cover no-repeat; }
.g-img.g-6 { background: url('../images/sol-tZw3fcjUIpM-unsplash_compressed.jpg') center/cover no-repeat; }

.gallery-item:hover .g-img {
    transform: scale(1.1);
}

/* Swiper custom styles */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: var(--accent-cyan);
    background: rgba(15, 23, 42, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background: var(--accent-blue);
    color: white;
}

.gallery-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
}
.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--accent-cyan);
}

/* CTA / Entry Section */
.cta {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.cta-links {
    margin-top: 30px;
}

/* Hello Work Notice */
.hellowork-notice {
    margin: 40px auto 0;
    max-width: 650px;
    padding: 25px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(6, 182, 212, 0.15));
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.hellowork-notice i {
    color: var(--accent-cyan);
    font-size: 2.5rem;
    margin-top: 5px;
}

.hellowork-text strong {
    color: var(--accent-cyan);
    display: inline-block;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #020617;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-info h2 {
    font-family: var(--font-en);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}
.social-icon.youtube:hover { background: #ff0000; color: white; }
.social-icon.instagram:hover { background: #e1306c; color: white; }
.social-icon.tiktok:hover { background: #000000; color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.small-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #64748b;
}

/* VR Tour Section */
.vr-tour-section {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.vr-bg-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.vr-bg-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Disable interaction with background iframe */
}

.vr-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4); /* カバーの透過度を下げて明るく */
    backdrop-filter: blur(2px); /* ぼかしも少し弱めに調整 */
    z-index: 2;
}

.vr-tour-content {
    position: relative;
    z-index: 3;
    padding: 80px 20px;
}

.vr-icon-large {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

/* VR Modal */
.modal {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    visibility: visible;
    opacity: 1;
}
.modal-overlay {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}
.modal-content {
    position: absolute;
    top: 5%; left: 5%; 
    width: 90%; height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: transparent;
}
.modal-close {
    position: absolute;
    top: -20px; right: -20px;
    background: var(--accent-blue);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.modal-close:hover {
    background: var(--accent-cyan);
    transform: scale(1.1);
}
#vr-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .header-btn { display: none; }
    .header-container { justify-content: center; }
    
    .hero-title { font-size: 2.5rem; }
    
    .about-grid, .voice-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .timeline::before { left: 30px; }
    .timeline-item { padding-left: 60px; }
    .timeline-item .time { position: relative; text-align: left; margin-bottom: 10px; width: auto; }
    .timeline-item::before { left: 25px; top: 40px; }
    
    .footer-content { flex-direction: column; gap: 30px; text-align: center; align-items: center; }
    
    .cta-title { font-size: 2rem; }
    
    .modal-content {
        top: 0; left: 0; width: 100%; height: 100%; border-radius: 0;
    }
    .modal-close {
        top: 20px; right: 20px;
    }}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
}
