/*
Theme Name: WEBEE LAB. Original
Author: WEBEE LAB.
Description: Corporate Theme with GSAP Animation
Version: 1.0
*/

/* --- 1. CORE STYLES --- */
:root {
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #2C3E50;
    --text-gray: #5F6C7B;
    --accent-blue: #005BAC;
    --accent-cyan: #00B4D8;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 40px rgba(0, 91, 172, 0.12);
    --radius: 12px;
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-jp);
    line-height: 1.9;
    overflow-x: hidden;
    font-size: 16px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.05em; line-height: 1.4; }
p { margin-bottom: 1.5rem; text-align: justify; }

/* --- UTILITY --- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 120px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.btn-common {
    display: inline-block; padding: 18px 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 91, 172, 0.4);
    transition: 0.3s; border: none; cursor: pointer; appearance: none;
}
.btn-common:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 91, 172, 0.6); opacity: 1; }

/* --- HEADER --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 999;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.header.scrolled { background: rgba(255,255,255,0.98); box-shadow: var(--shadow-sm); padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-en); font-weight: 900; font-size: 1.6rem; color: #fff; letter-spacing: 1px; }
.header.scrolled .logo { color: var(--text-dark); }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.9); position: relative; font-family: var(--font-en); }
.header.scrolled .nav-menu a { color: var(--text-dark); }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent-cyan); transition: 0.3s;
}
.nav-menu a:hover::after { width: 100%; }
@media (max-width: 768px) { .nav-menu { display: none; } }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; color: #fff; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; z-index: 1;
    animation: zoomOut 20s infinite alternate; 
}
@keyframes zoomOut { from { transform: scale(1.1); } to { transform: scale(1.0); } }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}
.hero-content { position: relative; z-index: 10; max-width: 900px; padding: 0 20px; }

.hero-tagline {
    font-family: var(--font-en); font-weight: 700; letter-spacing: 0.3em;
    color: var(--accent-cyan); margin-bottom: 25px; display: block; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.6;
    font-weight: 900; margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.hero-desc { font-size: 1.1rem; margin-bottom: 50px; opacity: 0.95; font-weight: 500; }

/* --- SECTION HEADERS --- */
.section-header { text-align: center; margin-bottom: 80px; }
.section-en {
    font-family: var(--font-en); font-size: 1rem; color: var(--accent-blue);
    display: block; margin-bottom: 15px; font-weight: 700; letter-spacing: 2px;
}
.section-jp { font-size: 2.2rem; color: var(--text-dark); position: relative; display: inline-block; }
.section-jp::after {
    content: ''; display: block; width: 60px; height: 4px; 
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    margin: 20px auto 0; border-radius: 2px;
}

/* --- TYPOGRAPHY & CARDS --- */
.lead-text {
    font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 50px;
    color: var(--accent-blue); line-height: 1.8;
}
.body-text { color: var(--text-gray); font-size: 1rem; margin-bottom: 1.5rem; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: 0.4s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-body { padding: 30px; }

/* --- PRICE CARDS --- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.price-card {
    background: #fff; padding: 40px 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid #eee; position: relative; transition: 0.3s;
}
.price-card.featured { border: 2px solid var(--accent-blue); transform: scale(1.02); box-shadow: var(--shadow-md); z-index: 2; }
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.price-head { text-align: center; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.plan-name { font-size: 1.2rem; font-weight: 700; color: var(--accent-blue); display: block; margin-bottom: 10px; }
.plan-price { font-family: var(--font-en); font-size: 2.5rem; font-weight: 900; color: var(--text-dark); }
.plan-sub { font-size: 0.9rem; color: var(--text-gray); }
.price-list { list-style: none; margin-bottom: 30px; }
.price-list li {
    padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 0.95rem; color: var(--text-dark);
    display: flex; justify-content: space-between;
}
.price-list li:last-child { border-bottom: none; }
.price-list .check { color: var(--accent-cyan); font-weight: bold; margin-right: 10px; }

/* --- FLOW (Animation Optimized) --- */
/* 数字が重複する問題を解消済み */

.flow-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 左側のライン */
.flow-line-container {
    position: absolute;
    top: 0;
    left: 25px; /* 数字(50px)の中心に合わせる */
    bottom: 0;
    width: 2px;
    z-index: 1;
}
.flow-line-base {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #e0e0e0;
}
.flow-line-active {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 0%; /* JSで伸ばす */
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 91, 172, 0.5);
}

/* 各ステップ */
.flow-item {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    z-index: 2;
    opacity: 0; /* 初期状態は非表示 */
    transform: translateX(20px);
}
.flow-item:last-child { margin-bottom: 0; }

/* 古い疑似要素（重複の原因）を確実に無効化 */
.flow-item::before {
    content: none !important;
    display: none !important;
}

/* 数字のデザイン */
.flow-number {
    flex-shrink: 0;
    width: 50px; height: 50px;
    background: #fff;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    color: var(--accent-blue);
    font-family: var(--font-en);
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 3;
    /* 線の透過を防ぐための余白 */
    box-shadow: 0 0 0 10px var(--bg-light); 
    transform: scale(0);
}

/* アクティブ時の数字 */
.flow-item.active .flow-number {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 91, 172, 0.4);
}

.flow-content {
    padding-top: 5px;
    width: 100%;
}
.flow-content h3 {
    font-size: 1.3rem; margin-bottom: 10px;
}
.flow-content p {
    font-size: 0.95rem; color: var(--text-gray); margin-bottom: 0; text-align: left;
}

/* --- FAQ & SEO BOX --- */
.seo-box {
    background: #fff; padding: 50px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border-left: 5px solid var(--accent-blue);
}

/* --- CONTACT FORM --- */
.contact-form-wrapper {
    background: #fff; padding: 60px; border-radius: var(--radius);
    box-shadow: var(--shadow-md); max-width: 800px; margin: 0 auto;
}
/* Contact Form 7 Styling */
.wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 1rem; transition: 0.3s; font-family: var(--font-jp);
    background: #F8FAFC;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
    border-color: var(--accent-blue); background: #fff; outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.1);
}
.wpcf7 label { font-weight: bold; font-size: 0.9rem; margin-bottom: 8px; display: block; }
.wpcf7-submit {
    display: block; width: 100%; max-width: 300px; margin: 30px auto 0;
    padding: 18px; border: none; border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff; font-weight: bold; font-size: 1.1rem; cursor: pointer;
    transition: 0.3s;
}
.wpcf7-submit:hover { opacity: 0.9; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 91, 172, 0.3); }

/* reCAPTCHA badge hidden */
.grecaptcha-badge { visibility: hidden; }

/* --- WORKS SECTION STYLES --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.work-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.4s;
    border: 1px solid #eee;
}
.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* 画像エリアとホバーエフェクト */
.work-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card:hover .work-img {
    transform: scale(1.1);
}
.work-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 91, 172, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.work-card:hover .work-overlay {
    opacity: 1;
}
.view-more {
    color: #fff;
    font-family: var(--font-en);
    font-weight: bold;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 30px;
    letter-spacing: 1px;
}

/* テキストエリア */
.work-body {
    padding: 30px;
}
.work-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    font-size: 0.75rem;
    font-family: var(--font-en);
    background: #f0f4f8;
    color: var(--text-gray);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
}
.work-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--text-dark);
}
.work-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- FOOTER --- */
footer { background: #1a1a1a; color: #fff; padding: 80px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-logo { font-family: var(--font-en); font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; display: block; }
.footer-links li { margin-bottom: 15px; list-style: none;}
.footer-links a { color: #aaa; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-cyan); padding-left: 5px; }

/* --- ANIMATION UTILS --- */
.gsap-fade-up { opacity: 0; transform: translateY(40px); }