/* ===================================
   株式会社課題解決プラットフォーム
   メインスタイルシート
   ビジュアル重視 + スマホ完全最適化
   =================================== */

/* ========== 基本設定 ========== */
:root {
    /* カラーパレット */
    --primary-color: #0F172A;
    --secondary-color: #3B82F6;
    --accent-color: #10B981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* テキストカラー */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --text-white: #FFFFFF;
    
    /* 背景カラー */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);
    
    /* スペーシング */
    --section-padding: 120px;
    --section-padding-mobile: 60px;
    --container-max-width: 1200px;
    
    /* フォント */
    --font-japanese: 'Noto Sans JP', sans-serif;
    --font-english: 'Inter', sans-serif;
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-japanese);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* レスポンシブ用クラス */
.sp-only {
    display: none;
}

.pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    
    .pc-only {
        display: none;
    }
}

/* ========== コンテナ ========== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== ヘッダー ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link:hover {
    color: var(--secondary-color);
}

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

.btn-nav {
    background: var(--gradient-hero);
    color: var(--text-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

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

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* モバイルメニュー */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== ヒーローセクション ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(103, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(26px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-line {
    display: inline;
}

/* PC・タブレットでは横並びに戻す */
@media (min-width: 769px) {
    .hero-line {
        display: inline;
    }
}

/* スマホでは改行して中央揃え・箇条書き風 */
@media (max-width: 768px) {
    .hero-title {
        text-align: center;
    }
    
    .hero-line {
        display: block !important;
        text-align: center;
        margin: 8px 0;
        line-height: 1.4;
    }
    
    .hero-line:first-child {
        margin-top: 0;
    }
    
    .hero-line:last-child {
        margin-bottom: 0;
    }
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    word-break: keep-all;
    white-space: normal;
}

@media (max-width: 768px) {
    .gradient-text {
        display: block !important;
        word-break: keep-all;
        overflow-wrap: normal;
        /* スマホでグラデーションが効かない場合のフォールバック */
        color: var(--primary-color);
        -webkit-text-fill-color: var(--primary-color);
    }
    
    /* グラデーション対応ブラウザのみグラデーション表示 */
    @supports (background-clip: text) or (-webkit-background-clip: text) {
        .gradient-text {
            background: var(--gradient-hero);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent;
        }
    }
}

.hero-subtitle {
    font-size: clamp(18px, 3.5vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 16px;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

/* 実績数値カウンター */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 12px;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    font-family: var(--font-english);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
    border-radius: 2px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== ボタン ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-japanese);
}

.btn-primary {
    background: var(--gradient-hero);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========== セクション共通 ========== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.title-accent {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== サービスセクション ========== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-featured {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(103, 126, 234, 0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-md);
}

.service-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-english);
    color: rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 20px;
    font-size: 36px;
    color: white;
    margin-bottom: 24px;
    position: relative;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.service-features i {
    color: var(--accent-color);
    font-size: 16px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
}

/* ========== 導入実績セクション ========== */
.results {
    background: var(--bg-dark);
    color: white;
}

.results .section-title,
.results .section-description {
    color: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all var(--transition-normal);
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.result-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 50%;
    font-size: 24px;
    color: white;
    margin: 0 auto 20px;
}

.result-number {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    font-family: var(--font-english);
    line-height: 1;
    display: inline-block;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-unit {
    font-size: 24px;
    font-weight: 700;
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.result-label {
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0 8px;
    color: white;
}

.result-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ========== お客様の声セクション ========== */
.case-studies {
    background: var(--bg-light);
}

.case-studies-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.case-study-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.case-study-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 50%;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.case-study-info {
    flex: 1;
}

.case-study-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.case-study-location {
    font-size: 14px;
    color: var(--text-light);
}

.case-study-results {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.case-result {
    flex: 1;
    text-align: center;
}

.result-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-english);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.result-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.case-study-testimonial {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.case-study-testimonial::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 48px;
    color: var(--secondary-color);
    opacity: 0.3;
    line-height: 1;
}

.case-study-author {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* ========== ブログセクション ========== */
.blog {
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.blog-category {
    background: var(--gradient-hero);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* ========== お問い合わせセクション ========== */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: start;
}

.method-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 12px;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.method-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.method-value {
    display: block;
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-english);
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.method-value:hover {
    color: var(--text-primary);
}

.method-note {
    font-size: 13px;
    color: var(--text-light);
}

/* フォーム */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.required {
    color: #EF4444;
    font-size: 12px;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-japanese);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* ========== フッター ========== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gradient-hero);
    transform: translateY(-3px);
}

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

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: start;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    width: 20px;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: white;
}

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

/* ========== スクロールトップボタン ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-hero);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========== レスポンシブ対応 ========== */

/* タブレット */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* スマホ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* ヘッダー */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }
    
    .btn-nav {
        margin: 16px 0 0;
        text-align: center;
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* ヒーロー */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-title {
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* セクション */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        line-height: 1.4;
    }
    
    /* サービス */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    /* 実績 */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .result-card {
        padding: 32px 24px;
    }
    
    /* お客様の声 */
    .case-studies-slider {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .case-study-card {
        padding: 24px;
    }
    
    .case-study-header {
        flex-direction: column;
        text-align: center;
    }
    
    .case-study-results {
        flex-direction: column;
        gap: 16px;
    }
    
    /* ブログ */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* お問い合わせ */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* フッター */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    /* スクロールトップ */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 極小スマホ */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* スマホ専用要素 */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* PC専用要素 */
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

/* ========== 会社概要ページ ========== */
.page-header {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    text-align: center;
    color: white;
}

.page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 16px;
}

.page-description {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
}

.company-info {
    padding: var(--section-padding) 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
}

.info-table tr {
    border-bottom: 1px solid var(--bg-light);
}

.info-table th {
    text-align: left;
    padding: 20px 0;
    font-weight: 700;
    color: var(--text-primary);
    width: 140px;
    vertical-align: top;
}

.info-table td {
    padding: 20px 0;
    color: var(--text-secondary);
}

.info-table a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-table a:hover {
    color: var(--text-primary);
}

.map-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.map-container iframe {
    display: block;
}

.map-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}

.map-description i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.ceo-profile {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.profile-content {
    display: flex;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-icon {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 50%;
    font-size: 80px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.profile-text {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.profile-description p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.vision-mission {
    padding: var(--section-padding) 0;
    background: white;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.vm-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.vm-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 50%;
    font-size: 32px;
    color: white;
    margin: 0 auto 24px;
}

.vm-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.vm-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-services {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 60px;
}

.service-item {
    display: flex;
    gap: 32px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    align-items: center;
    transition: all var(--transition-normal);
}

.service-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-english);
    color: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.service-item .service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 16px;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* レスポンシブ - 会社概要ページ */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .info-table th {
        width: 100px;
        font-size: 14px;
    }
    
    .info-table td {
        font-size: 14px;
    }
    
    .profile-icon {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .service-number {
        font-size: 36px;
    }
}

/* ========== ブログページ ========== */
.blog-list-section {
    padding: var(--section-padding) 0;
    background: white;
}

.blog-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--bg-light);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background: var(--gradient-hero);
    border-color: transparent;
    color: white;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-light);
}

.blog-views {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination {
    margin-top: 60px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pagination-btn.active {
    background: var(--gradient-hero);
    border-color: transparent;
    color: white;
}

.pagination-dots {
    padding: 0 8px;
    color: var(--text-light);
}

/* ブログ記事詳細ページ */
.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-article {
    padding: 140px 0 var(--section-padding);
    background: white;
}

.article-loading,
.article-error {
    text-align: center;
    padding: 60px 20px;
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-hero);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.article-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--bg-light);
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 20px;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

.article-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--bg-light);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.article-footer {
    margin-top: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .blog-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .blog-article {
        padding: 100px 0 60px;
    }
    
    .article-meta {
        gap: 16px;
        font-size: 13px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 24px;
        margin: 36px 0 20px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
}
/* ========== reCAPTCHA v3 バッジ非表示 ========== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 代替: 右下に固定して非表示（DOM要素は残る） */
.grecaptcha-badge {
    bottom: -200px !important;
}

/* ========== プライバシーポリシー ========== */
.privacy-policy {
    padding: 80px 0;
    background: var(--bg-light);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.policy-intro {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #E2E8F0;
}

.policy-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.policy-updated {
    font-size: 14px !important;
    color: var(--text-light) !important;
    font-style: italic;
}

.policy-section {
    margin-bottom: 50px;
}

.policy-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary-color);
}

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

.policy-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.policy-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.policy-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
}

.policy-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.recaptcha-notice {
    background: #F1F5F9;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.recaptcha-notice p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.recaptcha-notice a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
}

.recaptcha-notice a:hover {
    color: #2563EB;
}

.contact-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.contact-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.contact-box p {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: white !important;
}

.contact-box strong {
    color: white;
    font-weight: 600;
}

.policy-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #E2E8F0;
    text-align: center;
}

.policy-footer p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.policy-footer strong {
    color: var(--primary-color);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .policy-content {
        padding: 30px 20px;
    }
    
    .policy-section h2 {
        font-size: 20px;
    }
    
    .policy-section p,
    .policy-section ul li {
        font-size: 15px;
    }
    
    .contact-box {
        padding: 20px;
    }
}
