/* ==========================================
 * ★ 配色・基本設定
 * ==========================================
 */
:root {
    --bg: #ffffff;   
    --text: #1a1a1a; 
    --accent: #2563eb;  
    --sub-text: #111827;
    --border: #e5e7eb;
    --blue-primary: #2563eb;
    --blue-secondary: #3b82f6;
    --blue-light: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ==========================================
 * ★ リセット・基本スタイル
 * ==========================================
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: transparent;
    color: var(--text);
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    overflow-x: hidden;
    line-height: 1.95;
    font-size: 16px;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ==========================================
 * ★ 3D背景エフェクト (Three.js Canvas)
 * ==========================================
 */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

a:hover {
    color: var(--accent);
}

/* ==========================================
 * ★ グラデーション背景アニメーション
 * ==========================================
 */
.gradient-bg {
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    display: none;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes gradientFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10%, -10%) rotate(120deg); }
    66% { transform: translate(-10%, 10%) rotate(240deg); }
}

/* ★ グリッドパターン背景 */
.grid-pattern {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    display: none;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ==========================================
 * ★ コンテナ
 * ==========================================
 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* ==========================================
 * ★ ヘッダー
 * ==========================================
 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: width 0.3s ease;
}

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

.nav .btn-contact {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.nav .btn-contact::after {
    display: none;
}

.nav .btn-contact:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--blue-primary);
    cursor: pointer;
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    transition: right 0.3s ease;
}

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

.mobile-menu-content {
    background: white;
    width: 80%;
    max-width: 400px;
    height: 100%;
    margin-left: auto;
    padding: 40px 30px;
    overflow-y: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav .btn-contact {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-align: center;
    border: none;
    margin-top: 20px;
}

/* ==========================================
 * ★ ヒーローセクション
 * ==========================================
 */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    filter: contrast(1.05) brightness(1.02);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    min-height: calc(100vh - 80px);
    padding: 80px 0;
}

.hero-text-content {
    flex: 1;
    max-width: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-form-content {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-form-header {
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-primary);
}

.hero-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 0;
    line-height: 1.3;
}

#hubspot-form-wrapper {
    width: 100%;
}

/* HubSpotフォームの間隔調整 */
#hubspot-form-wrapper .hs-form-field {
    margin-bottom: 8px !important;
}

#hubspot-form-wrapper .hs-input {
    margin-bottom: 0 !important;
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
}

#hubspot-form-wrapper label {
    margin-bottom: 3px !important;
    font-size: 0.75rem !important;
}

#hubspot-form-wrapper .hs-button {
    margin-top: 10px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

#hubspot-form-wrapper .hs-error-msgs {
    margin-top: 3px !important;
    font-size: 0.7rem !important;
}

.hero-main-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.55;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.highlight-blue {
    color: var(--blue-primary);
    font-weight: 900;
}

.hero-description {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 35px;
    font-weight: 400;
}

.underline-text {
    text-decoration: underline;
    font-weight: 700;
    color: var(--blue-primary);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: var(--blue-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
}

.btn-primary-hero:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary-hero {
    background: white;
    color: var(--blue-primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--blue-primary);
}

.btn-secondary-hero:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

/* 古いスタイルを削除 */

/* ==========================================
 * ★ ボタン
 * ==========================================
 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 16px 35px;
    font-size: 17px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
}

.btn-secondary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

/* ==========================================
 * ★ セクション共通
 * ==========================================
 */
section {
    padding: 8rem 0;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
    position: relative;
    background: transparent;
}

section:first-of-type {
    border-top: none;
}

/* ★ セクション装飾ライン */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.3), transparent);
    transform: translateX(-50%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* ★ 見出し装飾 */
.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--blue-primary), transparent);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translate(2px, 2px);
    z-index: -1;
    opacity: 0.6;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--sub-text);
    line-height: 1.9;
    font-weight: 500;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* ==========================================
 * ★ 3つの壁セクション
 * ==========================================
 */
.problems {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--blue-primary);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.problem-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #dc2626;
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.problem-icon i {
    font-size: 36px;
    color: #dc2626;
}

.problem-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.problem-list {
    list-style: none;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--sub-text);
}

.problem-list li strong {
    white-space: nowrap;
}

.problem-list .nowrap {
    white-space: nowrap;
}

.problem-list i {
    color: #dc2626;
    margin-top: 4px;
    flex-shrink: 0;
}

.problem-list strong {
    color: #dc2626;
    font-weight: 700;
}

.problem-solution {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 3px solid var(--blue-primary);
    position: relative;
    overflow: hidden;
}

.problem-solution::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(37, 99, 235, 0.1),
        transparent
    );
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.problem-solution p {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
}

.highlight-text {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
 * ★ 4つの提供価値セクション
 * ==========================================
 */
.value-proposition {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    border: 2px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.8s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    border-color: var(--blue-primary);
}

.value-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--blue-light) 0%, #fff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.value-icon i {
    font-size: 28px;
    color: var(--blue-primary);
}

.value-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.value-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.value-highlight {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--blue-primary);
    white-space: nowrap;
}

.value-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--sub-text);
}

.value-description strong {
    font-weight: 700;
    color: var(--blue-primary);
}

/* ==========================================
 * ★ 人材レベルセクション
 * ==========================================
 */
.talent-quality {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.talent-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 35px 40px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.talent-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1), transparent),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08), transparent);
}

.talent-intro > * {
    position: relative;
    z-index: 1;
}

.talent-intro-badge {
    display: inline-block;
    background: var(--blue-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.talent-intro-title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--gray-900);
}

.highlight-number {
    font-size: 44px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.talent-intro-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sub-text);
    font-weight: 500;
}

.talent-criteria {
    margin-bottom: 60px;
}

.criteria-title,
.examples-title,
.types-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.criteria-title::after,
.examples-title::after,
.types-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--blue-primary), transparent);
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.criteria-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 2px solid rgba(37, 99, 235, 0.15);
    transition: all 0.5s ease;
}

.criteria-item:hover {
    transform: translateY(-10px);
    border-color: var(--blue-primary);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.criteria-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.criteria-icon i {
    font-size: 28px;
    color: white;
}

.criteria-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.criteria-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sub-text);
}

.talent-examples {
    margin-bottom: 60px;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.company-tag {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.company-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.type-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--blue-primary);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.type-card:hover::before {
    opacity: 1;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.type-card i {
    font-size: 42px;
    color: var(--blue-primary);
    margin-bottom: 20px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.type-card:hover i {
    color: white;
}

.type-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.type-card:hover h4 {
    color: white;
}

.type-card p {
    font-size: 14px;
    color: var(--sub-text);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.type-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================
 * ★ 活用事例セクション
 * ==========================================
 */
.use-cases {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.case-card:hover::before {
    opacity: 1;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    border-color: var(--blue-primary);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.case-company {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.case-industry {
    background: var(--blue-light);
    color: var(--blue-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.case-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--blue-primary);
    line-height: 1.5;
}

.case-challenge,
.case-solution,
.case-result {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.case-challenge h4,
.case-solution h4,
.case-result h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-900);
}

.case-challenge h4 {
    color: #dc2626;
}

.case-solution h4 {
    color: #059669;
}

.case-result h4 {
    color: var(--blue-primary);
}

.case-challenge p,
.case-solution p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sub-text);
    padding-left: 28px;
}

.case-result ul {
    list-style: none;
    padding-left: 28px;
}

.case-result li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sub-text);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.case-result li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-weight: 700;
    font-size: 18px;
}

.case-result strong {
    color: var(--blue-primary);
    font-weight: 700;
}

/* ==========================================
 * ★ 導入フローセクション
 * ==========================================
 */
.introduction-flow {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 50px;
}

.flow-step {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--blue-primary);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    grid-column: span 1.5;
}

.flow-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--blue-primary);
    grid-column: span 0.5;
}

.flow-step:hover {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.flow-step:hover .step-number {
    background: white;
    color: var(--blue-primary);
}

.step-icon {
    font-size: 40px;
    color: var(--blue-primary);
    margin-bottom: 15px;
    margin-top: 10px;
}

.flow-step:hover .step-icon {
    color: white;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.flow-step:hover .step-title {
    color: white;
}

.step-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--sub-text);
    margin-bottom: 12px;
    flex-grow: 1;
}

.flow-step:hover .step-description {
    color: rgba(255, 255, 255, 0.95);
}

.step-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-primary);
    background: var(--blue-light);
    padding: 5px 10px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    margin-top: auto;
}

.flow-step:hover .step-time {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.flow-total {
    text-align: center;
    padding: 35px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 3px solid var(--blue-primary);
}

.flow-total p {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
}

/* ==========================================
 * ★ FAQセクション
 * ==========================================
 */
.faq {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--blue-primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(249, 250, 251, 0.8);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
}

.faq-question i.fa-question-circle {
    font-size: 24px;
    color: var(--blue-primary);
    flex-shrink: 0;
}

.faq-item.active .faq-question i.fa-question-circle {
    color: white;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    flex-grow: 1;
    color: var(--gray-900);
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-toggle {
    font-size: 20px;
    color: var(--blue-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: white;
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 25px 30px 30px 70px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--sub-text);
}

.faq-answer strong {
    color: var(--blue-primary);
    font-weight: 700;
}

/* ==========================================
 * ★ お問い合わせセクション
 * ==========================================
 */
.contact {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.required {
    color: #dc2626;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

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

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

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--blue-primary);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid var(--blue-primary);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-phone {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.contact-hours {
    font-size: 14px;
    color: var(--sub-text);
    margin-bottom: 0;
}

.contact-info-card p {
    font-size: 15px;
    color: var(--sub-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-info-card .btn {
    width: 100%;
    justify-content: center;
}

#hubspot-contact-form-wrapper {
    width: 100%;
}

/* ==========================================
 * ★ フッター
 * ==========================================
 */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-social a:hover {
    background: var(--blue-primary);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
 * ★ トップへ戻るボタン
 * ==========================================
 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ==========================================
 * ★ スクロールアニメーション用クラス
 * ==========================================
 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scale.show {
    opacity: 1;
    transform: scale(1);
}

/* 遅延設定 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==========================================
 * ★ レスポンシブデザイン
 * ==========================================
 */

/* タブレット横並び (769px〜1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        padding: 60px 0;
    }
    
    .hero-text-content {
        flex: 1;
        max-width: none;
        padding: 40px;
    }
    
    .hero-form-content {
        flex: 0 0 300px;
        padding: 20px 15px;
    }
    
    .hero-main-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-form-title {
        font-size: 1rem;
    }
}

/* タブレット縦・小型タブレット (1024px以下) */
@media (max-width: 1024px) {
    .problem-cards {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
    }
    
    .flow-step {
        grid-column: span 1;
    }
    
    .flow-arrow {
        display: flex;
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* モバイル (768px以下) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: auto;
    }
    
    .hero-content {
        min-height: auto;
        padding: 60px 0;
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-text-content {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .hero-form-content {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .hero-form-title {
        font-size: 1.2rem;
    }
    
    /* HubSpotフォームのモバイル調整 */
    #hubspot-form-wrapper .hs-input {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
    
    #hubspot-form-wrapper label {
        font-size: 0.85rem !important;
    }
    
    #hubspot-form-wrapper .hs-button {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        width: 100%;
    }
    
    .hero-main-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .criteria-grid,
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
    }
    
    .flow-step {
        grid-column: span 1;
    }
    
    .flow-arrow {
        display: flex;
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* モバイルでは改行許可 */
    .problem-list li strong,
    .problem-list .nowrap,
    .stat-number,
    .value-highlight,
    .step-time {
        white-space: normal;
    }
    
    /* モバイルではカードを縦並びに */
    .value-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .value-icon {
        margin-bottom: 15px;
    }
}

/* ==========================================
 * ★ 大画面対応（1200px以上）
 * ==========================================
 */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 60px;
    }
    
    .hero-content {
        max-width: 1200px;
        gap: 80px;
    }
    
    .hero-team-image {
        max-width: 750px;
    }
    
    .value-grid {
        gap: 35px;
    }
    
    .flow-steps {
        gap: 20px;
    }
}
