/* ========================================
   SYNAPSE DEAL - Landing Page Styles
   Stripe-inspired Design System
   ======================================== */

/* ========================================
   Layer 0: 強制リセット（ダークモード対策）
   ======================================== */

html {
    color-scheme: light !important;
    background-color: #FFFFFF !important;
    overflow-x: hidden;
}

body {
    color-scheme: light !important;
    overflow-x: hidden;
}

/* ========================================
   Layer 1: リセットとベース設定
   ======================================== */

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

:root {
    /* カラーパレット（v4.0） */
    --color-yellow: #F4E79E;
    --color-yellow-light: #FFFBEB;
    --color-yellow-bright: #FFD60A;
    --color-yellow-dark: #D97706;
    
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-navy: #1E293B;
    
    --color-gray-text: #475569;
    --color-gray-caption: #94A3B8;
    --color-gray-border: #E8ECF0;
    --color-gray-bg: #FAFAFA;
    
    /* タイポグラフィ */
    --font-heading: 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    --font-body: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'HG Mincho E', serif;
    --font-english: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    
    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    --spacing-4xl: 128px;
    
    /* ブレークポイント */
    --breakpoint-mobile: 640px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-wide: 1280px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-gray-text);
    background-color: var(--color-white) !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
}

/* ========================================
   Layer 2: タイポグラフィ
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(36px, 5vw, 48px);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: var(--spacing-sm);
}

p {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.8;
    color: var(--color-gray-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
}

/* ========================================
   Layer 3: レイアウトコンテナ
   ======================================== */

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

.section {
    padding: var(--spacing-4xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-3xl) 0;
    }
}

/* ========================================
   Layer 4: ヘッダーとナビゲーション
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-lg);
}

.nav-logo .logo {
    height: 32px;
    max-height: 32px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 0;
}

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

.nav-cta {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-cta {
        margin-left: auto;
    }
}

/* ========================================
   Layer 5: ボタンシステム
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Stripe風のシャイン効果 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #F4E79E 0%, #FFD60A 100%);
    color: var(--color-black);
    box-shadow: 
        0 2px 8px rgba(244, 231, 158, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 214, 10, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD60A 0%, #F59E0B 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(244, 231, 158, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-gray-border);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 231, 158, 0.1) 0%, rgba(255, 214, 10, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: var(--color-yellow-bright);
    color: var(--color-navy);
}

.btn-secondary:hover::after {
    opacity: 1;
}

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

/* ========================================
   Layer 6: ラベルシステム
   ======================================== */

.section-label,
.hero-label {
    display: inline-block;
    background: linear-gradient(135deg, #F4E79E 0%, #FFD60A 100%);
    padding: 8px 16px;
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

/* Stripe風のパルス効果 */
.section-label::before,
.hero-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.section-label:hover::before,
.hero-label:hover::before {
    width: 300px;
    height: 300px;
}

.label-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   Layer 7: ヒーローセクション
   ======================================== */

.hero {
    padding-top: calc(var(--spacing-4xl) + 10px);
    padding-bottom: calc(var(--spacing-4xl) + var(--spacing-2xl));
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.97) 0%, 
            rgba(255, 249, 230, 0.95) 25%,
            rgba(255, 245, 214, 0.92) 50%,
            rgba(255, 239, 198, 0.9) 75%,
            rgba(255, 235, 180, 0.88) 100%
        ),
        url('../images/hero-bg-modern.jpg');
    background-size: cover;
    background-position: center;
    /* Safari（特にiOS）で background-attachment: fixed が不具合を起こすため scroll に */
    background-attachment: scroll;
    min-height: 85vh;
    min-height: 85dvh; /* 動的ビューポート（Safari等のアドレスバー対応） */
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

/* 背景装飾レイヤー - トップ右の光源 */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(255, 214, 10, 0.15) 0%, 
        rgba(255, 214, 10, 0.08) 40%,
        transparent 70%);
    z-index: 1;
    filter: blur(80px);
    pointer-events: none;
}

/* 背景装飾レイヤー - 左下の光源 */
.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(255, 235, 180, 0.2) 0%, 
        rgba(244, 231, 158, 0.1) 50%,
        transparent 70%);
    z-index: 1;
    filter: blur(60px);
    pointer-events: none;
}

/* ヒーロー内コンテナ（Safari flex 子要素の幅対策） */
.hero .container {
    width: 100%;
    min-width: 0;
}

/* グリッドレイアウト（minmax(0,1fr) で Safari のオーバーフロー対策） */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

/* タブレットサイズ（768px-1024px）- ビジュアルを非表示 */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-xl);
        justify-items: stretch;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* Canvas背景（他セクション用） */
.issue-canvas,
.solution-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: left;
    max-width: 640px;
    min-width: 0; /* Safari グリッドオーバーフロー対策 */
    position: relative;
    z-index: 2;
    padding: 0;
}

/* Hero Visual - Dashboard Design */
.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInScale 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Hero Visual - Stacked Cards Design */
.hero-cards-stack {
    position: relative;
    width: 400px;
    height: 450px;
    margin: 0 auto;
}

.stack-card {
    position: absolute;
    background: #FFFFFF;
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    cursor: pointer;
}

.stack-card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(0deg) translateY(0);
}

.stack-card-2 {
    top: 30px;
    left: 20px;
    z-index: 2;
    transform: rotate(-2deg) translateY(0);
    opacity: 0.95;
}

.stack-card-3 {
    top: 60px;
    left: -20px;
    z-index: 1;
    transform: rotate(2deg) translateY(0);
    opacity: 0.9;
}

.stack-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.02);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

/* Hero Screenshot Stack */
.hero-screenshot {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.hero-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-screenshot-1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-1deg) translateY(0);
}

.hero-screenshot-2 {
    top: 40px;
    left: 28px;
    z-index: 2;
    transform: rotate(2deg) translateY(0);
    opacity: 0.92;
}

.hero-screenshot:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

/* Hero Slider */
.hero-slider {
    width: 130%;
    margin-left: -15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.slider-track {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    /* Safari < 15 fallback */
    height: 0;
    padding-bottom: 62.5%; /* 10/16 = 62.5% */
}

@supports (aspect-ratio: 16 / 10) {
    .slider-track {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 16 / 10;
    }
}

.slide {
    position: absolute;
    /* Safari < 14.1 fallback */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    opacity: 0;
    -webkit-transition: opacity 0.7s ease;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background: #B8973A;
    transform: scale(1.4);
}

.card-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #F3F4F6;
}

.card-status {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
}

.card-number {
    font-size: 13px;
    font-weight: 600;
    color: #9CA3AF;
}

.card-title-simple {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: var(--spacing-md);
}

.card-progress-simple {
    margin-top: var(--spacing-md);
}

.progress-label-simple {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar-simple {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-simple {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* レスポンシブ対応 - スタックカード */
@media (max-width: 1024px) {
    .hero-cards-stack {
        width: 350px;
        height: 400px;
    }
    
    .stack-card {
        padding: var(--spacing-md);
    }
    
    .card-title-simple {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-cards-stack {
        display: none;
    }
}

/* ゲキラクIMブランディング */
.hero-brand {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease forwards;
}

.brand-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    margin-bottom: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 214, 10, 0.3);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        0 1px 4px rgba(255, 214, 10, 0.1);
}

.brand-badge .badge-text {
    font-family: var(--font-english);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-service-name {
    font-family: var(--font-english);
    font-size: clamp(56px, 7vw, 80px);
    font-weight: 900;
    background: linear-gradient(135deg, #FFD60A 0%, #F59E0B 50%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(255, 214, 10, 0.2);
    opacity: 1;
}

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

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    color: var(--color-navy);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    opacity: 1;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-gray-text);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    line-height: 1.6;
    opacity: 1;
}

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--color-gray-text);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
    opacity: 1;
}

.hero-note {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-gray-caption);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    margin-bottom: 0;
    flex-wrap: wrap;
    opacity: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: calc(var(--spacing-4xl) * 2);
    padding: var(--spacing-xl);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(244, 231, 158, 0.2);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 400px;
    }
}

/* Stripe風のシャイン効果 */
.hero-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hero-stats:hover::before {
    transform: translateX(100%);
}

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

.stat-value {
    font-family: var(--font-english);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    background: linear-gradient(135deg, #FFD60A 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    line-height: 1;
    position: relative;
    white-space: nowrap;
}

/* Stripe風のアンダーライン */
.stat-value::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD60A, transparent);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-gray-caption);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ========================================
   Layer 8: セクションヘッダー
   ======================================== */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-gray-text);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
}

/* ISSUE説明：モバイルのみ改行 */
.issue-desc-mobile {
    display: none;
}

/* ISSUEカード説明・result-text：モバイルのみ改行 */
.issue-desc-1-mobile,
.issue-desc-2-mobile,
.issue-desc-4-mobile,
.result-text-mobile {
    display: none;
}

/* 関連サービス：タブレット以上は2行、タブレット未満は3行 */
.related-desc-mobile {
    display: none;
}

/* SOLUTIONセクション説明：モバイルのみ改行 */
.solution-intro-mobile {
    display: none;
}

.solution-catch {
    margin-top: var(--spacing-lg);
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--color-yellow-dark);
    font-weight: 700;
    line-height: 1.7;
}

/* ========================================
   Layer 9: ISSUEセクション
   ======================================== */

.section-issue {
    background-color: var(--color-white);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-top: var(--spacing-4xl);
}

/* Stripe風の微妙なグリッド背景 */
.section-issue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(244, 231, 158, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(244, 231, 158, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Layer 9.5: 経営インパクトセクション（新規追加）
   ======================================== */

/* 経営インパクトセクション - 3カラムレイアウト */
.section-impact {
    background: #F5F5F5;
    position: relative;
    overflow: hidden;
    padding-top: var(--spacing-4xl);
    padding-bottom: calc(var(--spacing-4xl) + var(--spacing-2xl));
}

.impact-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* イントロ */
.impact-intro {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.impact-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.02em;
}

/* 4カラムグリッド */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: var(--spacing-xl);
    margin: 0 auto var(--spacing-2xl);
    align-items: start;
    justify-content: center;
    max-width: fit-content;
    grid-auto-rows: 1fr;
}

.impact-column {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: left;
    width: 200px;
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.5;
    margin: 0 0 var(--spacing-md) 0;
    height: 50px;
    display: block;
    width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
}

.title-highlight {
    background: linear-gradient(transparent 60%, #FDE68A 60%);
    padding: 2px 0;
    display: inline-block;
    text-align: center;
}

.column-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
    justify-content: flex-start;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-left: 0;
}

.list-text {
    font-size: 17px;
    font-weight: 500;
    color: #1E293B;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
    display: block;
    text-align: left;
}

/* PC（1024px以上）: 経営インパクトのリストアイテムを中央寄せ */
@media (min-width: 1024px) {
    .impact-column .column-list {
        align-items: center;
    }
    
    .impact-column .list-item {
        justify-content: center;
    }
    
    .impact-column .list-text {
        text-align: center;
    }
}

/* 改行位置を制御（助詞の単独行を防ぐ） */
.text-keep {
    white-space: nowrap;
}

/* 結果エリア */
.impact-result {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.result-arrow-down {
    margin-bottom: var(--spacing-lg);
    animation: bounce 2s ease-in-out infinite;
}

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

.result-content {
    background: #FFFFFF;
    border: 3px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: var(--spacing-2xl) var(--spacing-3xl);
    max-width: 900px;
    margin: 0 auto;
}

.result-text {
    font-size: 17px;
    color: #1E293B;
    line-height: 1.9;
    margin: 0;
    font-weight: 500;
}

.result-highlight {
    color: #DC2626;
    font-weight: 700;
}

.result-emphasis {
    color: #DC2626;
    font-weight: 700;
    font-size: 19px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 経営課題を独立した項目として表示 */
.result-challenges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-md);
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.result-challenge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(220, 38, 38, 0.25);
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    color: #DC2626;
    font-weight: 700;
    font-size: 16px;
    flex: 1;
    min-width: 0;
}

.challenge-icon {
    font-size: 20px;
    line-height: 1;
}

.challenge-text {
    white-space: nowrap;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .result-challenge {
        font-size: 13px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .challenge-icon {
        font-size: 18px;
    }
    
    .challenge-text {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .result-challenges {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .result-challenge {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 14px;
    }
    
    .challenge-text {
        white-space: normal;
    }
}

/* レスポンシブ: タブレット（768px〜1024px: 4列横一列） */
@media (max-width: 1024px) and (min-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--spacing-sm);
        justify-content: center;
        justify-items: stretch;
        max-width: 100%;
        margin: 0 auto var(--spacing-2xl);
        align-items: start;
    }
    
    .impact-column {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .column-title {
        height: auto;
        min-height: 44px;
        margin-bottom: var(--spacing-sm);
        font-size: 16px;
    }
    
    .column-list {
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--spacing-xs);
    }
    
    .list-item {
        gap: var(--spacing-xs);
    }
    
    .list-text {
        font-size: 14px;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .alert-icon {
        width: 16px;
        min-width: 16px;
        height: 16px;
    }
    
    .alert-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* レスポンシブ: モバイル（767px以下: 1列レイアウト） */
@media (max-width: 767px) {
    .impact-subtitle {
        font-size: 22px;
        text-align: center;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        justify-items: center;
        max-width: 100%;
        margin: 0 auto var(--spacing-2xl);
    }
    
    .impact-column {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--spacing-md);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .column-title {
        font-size: 19px;
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }
    
    .column-list {
        align-items: center;
        width: 100%;
        justify-content: center;
    }
    
    .list-item {
        justify-content: center;
        align-items: center;
        padding-left: 0;
        width: auto;
        max-width: 100%;
    }
    
    .alert-icon {
        margin-left: 0;
        margin-right: 0;
    }
    
    .list-text {
        font-size: 15px;
        text-align: center;
    }
    
    .result-arrow-down {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .result-content {
        padding: var(--spacing-xl);
    }
    
    .result-text {
        font-size: 15px;
    }
    
    .result-emphasis {
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    .impact-subtitle {
        font-size: 20px;
        text-align: center;
    }
    
    .impact-grid {
        gap: var(--spacing-xl);
    }
    
    .impact-column {
        padding: 0;
        margin-bottom: var(--spacing-md);
        max-width: 100%;
    }
    
    .column-title {
        font-size: 17px;
        margin-bottom: var(--spacing-md);
    }
    
    .list-text {
        font-size: 14px;
    }
    
    .column-list {
        gap: var(--spacing-md);
    }
    
    .result-content {
        padding: var(--spacing-lg);
    }
    
    .result-text {
        font-size: 14px;
    }
    
    .result-emphasis {
        font-size: 16px;
    }
}

/* ========================================
   Layer 9: ISSUEセクション（続き）
   ======================================== */

.issue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .issue-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

.issue-card {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border: 1px solid rgba(244, 231, 158, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    text-align: center;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02),
        0 1px 4px rgba(0, 0, 0, 0.01);
}

/* カード上部のアクセントライン */
.issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-yellow-bright) 50%, 
        transparent 100%);
    border-radius: 2px 2px 0 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.issue-card:hover::before {
    width: 80%;
}

.issue-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 214, 10, 0.4);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 6px 12px rgba(0, 0, 0, 0.04),
        0 0 40px rgba(255, 214, 10, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.issue-number {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-family: var(--font-english);
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, 
        rgba(255, 214, 10, 0.95) 0%, 
        rgba(244, 231, 158, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.issue-icon {
    margin: 0 auto var(--spacing-lg);
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, 
        rgba(255, 249, 230, 1) 0%, 
        rgba(255, 235, 180, 1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    box-shadow: 
        0 4px 16px rgba(255, 214, 10, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 -2px 8px rgba(255, 214, 10, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.issue-card:hover .issue-icon {
    background: linear-gradient(135deg, #FFD60A 0%, #F59E0B 100%);
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 
        0 8px 24px rgba(255, 214, 10, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 -2px 8px rgba(255, 214, 10, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.issue-icon svg {
    transition: all 0.3s ease;
}

.issue-card:hover .issue-icon svg {
    transform: scale(1.1);
}

.issue-card:hover .issue-icon svg path {
    stroke: #FFFFFF;
}

.issue-title {
    font-size: 22px;
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.issue-description {
    font-size: 15px;
    color: var(--color-gray-text);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.01);
}

.issue-question {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-yellow-light);
    border-radius: 12px;
    margin-top: var(--spacing-xl);
}

.issue-question p {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: var(--color-navy);
}

/* issue-question：767px以下のみ改行 */
.issue-question-mobile {
    display: none;
}

/* ========================================
   Layer 10: SOLUTIONセクション
   ======================================== */

.section-solution {
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 50%, #FFFBEB 100%);
    position: relative;
    overflow: hidden;
}

/* Stripe風の装飾的な円 */
.section-solution::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.section-solution::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 231, 158, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 600px;
        margin: 0 auto;
    }
}

.solution-card {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Stripe風のトップボーダーグラデーション */
.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD60A 0%, #F59E0B 50%, #FFD60A 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stripe風の背景グロー */
.solution-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.solution-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s infinite;
}

.solution-card:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.solution-card:hover {
    transform: translateY(-12px) scale(1.03);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 214, 10, 0.2);
}

.solution-icon {
    margin: 0 auto;
    width: 64px;
    height: 64px;
}

.solution-badge {
    display: inline-block;
    background-color: var(--color-yellow);
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: var(--spacing-md);
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

.solution-value {
    font-family: var(--font-english);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    background: linear-gradient(135deg, #FFD60A 0%, #F59E0B 50%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(255, 214, 10, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 var(--spacing-xs);
}

.solution-description {
    font-size: 15px;
    color: var(--color-gray-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-height: 140px;
}

.solution-comparison {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    background-color: var(--color-yellow-light);
    border-radius: 8px;
}

.comparison-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-gray-caption);
    font-weight: 500;
}

.comparison-value {
    font-family: var(--font-english);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
}

/* 品質保証セクション */
.quality-assurance {
    max-width: 800px;
    margin: var(--spacing-3xl) auto 0;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 251, 235, 0.95) 100%);
    border: 2px solid var(--color-yellow-bright);
    border-radius: 16px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.qa-icon {
    margin: 0 auto var(--spacing-md);
    width: 48px;
    height: 48px;
}

.qa-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.qa-description {
    font-size: 16px;
    color: var(--color-gray-text);
    line-height: 1.8;
}

/* 品質保証説明：モバイルのみ改行 */
.qa-desc-mobile {
    display: none;
}

.qa-description strong {
    color: var(--color-navy);
    font-weight: 700;
}

/* 納品プロセス */
.delivery-process {
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    margin: var(--spacing-3xl) auto 0;
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 1;
}

.process-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.process-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

.process-subtitle {
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
}

/* 納品プロセスサブタイトル：モバイルのみ改行 */
.process-subtitle-mobile {
    display: none;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
}

.timeline-bar {
    height: 8px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 66%, #E5E7EB 66%, #E5E7EB 100%);
    border-radius: 4px;
    position: relative;
}

.timeline-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.milestone-dot {
    width: 16px;
    height: 16px;
    background: #F59E0B;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.milestone-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
    width: 100%;
    min-width: 0;
}

.process-step {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-md);
    transition: all 0.3s ease;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: var(--spacing-sm);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.step-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-items li {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Safariのみ12px */
@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
    .step-items li {
        font-size: 11px;
    }
}

.step-check {
    flex-shrink: 0;
    width: 16px;
}

.step-note {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.step-annotation {
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.5;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .process-main-title {
        font-size: 24px;
    }
    
    .process-timeline {
        padding: 0;
    }
    
    .milestone-label {
        font-size: 11px;
    }
    
    .process-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ========================================
   Layer 10.5: 関連サービスセクション
   ======================================== */

.section-related-services {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-bg) 100%);
    position: relative;
    overflow-x: hidden;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .related-services-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .related-services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }
}

.related-service-card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-gray-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.related-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 214, 10, 0.4);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-name {
    font-family: var(--font-english);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    font-size: 14px;
    color: var(--color-gray-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.service-status {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 214, 10, 0.1);
    border: 1px solid rgba(255, 214, 10, 0.3);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-yellow-dark);
}

/* ========================================
   Layer 10.6: ネクストステップセクション
   ======================================== */

.section-next-step {
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.next-step-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.next-step-badge {
    display: inline-block;
    background: #FCD34D;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: var(--spacing-md);
}

.next-step-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.next-step-subtitle {
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
}

.next-step-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.flow-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: var(--spacing-lg);
    text-align: center;
    flex: 0 0 auto;
    width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.flow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.flow-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
}

.flow-icon-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FCD34D 0%, #FDE68A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    box-shadow: 0 4px 16px rgba(252, 211, 77, 0.4);
}

.flow-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: var(--spacing-sm);
}

.flow-card-text {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
}

.flow-arrow {
    font-size: 24px;
    color: #FCD34D;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .next-step-flow {
        gap: var(--spacing-sm);
    }
    
    .flow-card {
        width: 180px;
        padding: var(--spacing-md);
    }
    
    .flow-icon-circle {
        width: 56px;
        height: 56px;
    }
    
    .flow-card-title {
        font-size: 16px;
    }
    
    .flow-card-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .next-step-title {
        font-size: 28px;
    }
    
    .next-step-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .flow-card {
        width: 100%;
        max-width: 320px;
    }
}

/* ========================================
   Layer 11: CTAセクション
   ======================================== */

.section-cta {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Stripe風のアニメーション背景 */
.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 214, 10, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

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

.cta-label {
    display: inline-block;
    background: linear-gradient(135deg, #F4E79E 0%, #FFD60A 100%);
    padding: 6px 16px;
    margin-bottom: var(--spacing-md);
    border-radius: 4px;
}

.cta-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.cta-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.cta-title {
    font-size: clamp(32px, 5vw, 46px);
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-gray-text);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.cta-desc-mobile {
    display: none;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

/* トライアルステップ */
.trial-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: var(--spacing-md);
    margin: var(--spacing-3xl) 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.step-arrow {
    display: none;
}

/* タブレット対応 */
@media (max-width: 900px) {
    .trial-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        max-width: 700px;
    }
}

/* モバイル対応 */
@media (max-width: 600px) {
    .trial-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        max-width: 500px;
    }
}

.trial-step {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 214, 10, 0.3);
    border-radius: 12px;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: all 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

@media (max-width: 900px) {
    .trial-step {
        min-height: 200px;
        padding: var(--spacing-lg);
    }
}

.trial-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 214, 10, 0.6);
    box-shadow: 0 8px 32px rgba(255, 214, 10, 0.2);
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-xs);
    background: rgba(255, 214, 10, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-label {
    font-family: var(--font-english);
    font-size: 10px;
    font-weight: 700;
    color: #FFD60A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.step-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.step-description {
    font-size: clamp(13px, 1.4vw, 15px);
    color: var(--color-gray-text);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
    width: 100%;
}



/* トライアル連絡先 */
.trial-contact {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border: 2px solid var(--color-gray-border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.company-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-gray-border);
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.contact-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-text);
    font-family: var(--font-english);
    letter-spacing: 0.05em;
}

.contact-description {
    font-size: 14px;
    color: var(--color-gray-text);
    margin-bottom: var(--spacing-md);
}

.contact-info {
    text-align: center;
    background: rgba(255, 251, 235, 0.3);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.contact-company,
.contact-text {
    font-size: 15px;
    color: var(--color-gray-text);
    line-height: 1.8;
}

.contact-company strong {
    color: var(--color-navy);
    font-weight: 700;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-border);
}

.company-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    font-size: 14px;
}

.detail-label {
    font-weight: 600;
    color: var(--color-gray-caption);
    min-width: 100px;
}

.detail-value {
    color: var(--color-navy);
    font-weight: 500;
    text-align: right;
}

@media (max-width: 768px) {
    .company-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-value {
        text-align: left;
    }
}

.cta-note {
    margin-top: var(--spacing-xl);
}

.confidential {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-gray-caption);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 600px;
    margin: var(--spacing-3xl) auto var(--spacing-xl);
    background: #FFFFFF;
    padding: var(--spacing-2xl);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: var(--spacing-sm);
}

.required-badge {
    display: inline-block;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 15px;
    font-family: var(--font-body);
    color: #1E293B;
    background: #FAFAFA;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #FFFFFF;
    border-color: #FFD60A;
    box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9CA3AF;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox span {
    font-size: 15px;
    color: #475569;
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.btn-submit {
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 214, 10, 0.3);
}

/* レスポンシブ: タブレット */
@media (max-width: 768px) {
    .contact-form {
        padding: var(--spacing-xl);
        margin: var(--spacing-2xl) auto var(--spacing-lg);
    }
    
    .form-label {
        font-size: 15px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 14px;
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
    }
}

/* レスポンシブ: モバイル */
@media (max-width: 640px) {
    .contact-form {
        padding: 20px 16px;
    }
    
    .form-label {
        font-size: 13px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .form-submit {
        margin-top: 24px;
    }
}

/* ========================================
   Layer 11.5: FAQセクション
   ======================================== */

.section-faq {
    background: var(--color-white);
}

.faq-list {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-gray-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-gray-border);
}

.faq-question {
    padding: var(--spacing-lg) 48px var(--spacing-lg) var(--spacing-md);
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    color: var(--color-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFD60A 0%, #F4E79E 100%);
    color: var(--color-navy);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::before {
    content: 'A';
}

.faq-question::after {
    content: '';
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--color-navy);
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
    background: rgba(255, 214, 10, 0.08);
}

.faq-question:hover::after {
    opacity: 1;
}

.faq-answer {
    padding: 10px var(--spacing-md) var(--spacing-lg) calc(var(--spacing-md) + 28px + var(--spacing-sm));
}

.faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray-text);
}

@media (max-width: 768px) {
    .faq-list {
        max-width: 100%;
    }
    
    .faq-question {
        padding: var(--spacing-md) 40px var(--spacing-md) var(--spacing-md);
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 10px var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) + 24px + var(--spacing-sm));
    }
    
    .faq-answer p {
        font-size: 14px;
    }
    
    .faq-question::before {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .faq-question::after {
        right: var(--spacing-sm);
    }
}

@media (max-width: 640px) {
    .faq-question {
        padding: var(--spacing-md) 36px var(--spacing-md) var(--spacing-sm);
        font-size: 14px;
    }
    
    .faq-answer {
        padding: 10px var(--spacing-sm) var(--spacing-md) calc(var(--spacing-sm) + 22px + 8px);
    }
    
    .faq-answer p {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .faq-question::before {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .faq-question::after {
        right: var(--spacing-xs);
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 6px;
    }
}

@media (max-width: 320px) {
    .faq-question {
        padding: var(--spacing-sm) 32px var(--spacing-sm) var(--spacing-xs);
        font-size: 13px;
    }
    
    .faq-answer {
        padding: 10px var(--spacing-xs) var(--spacing-sm) calc(var(--spacing-xs) + 20px + 6px);
    }

    .faq-answer p {
        font-size: 11px;
    }

    .faq-question::before {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}

/* ========================================
   Layer 12: フッター
   ======================================== */

.footer {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #F4E79E 0%, #FFD60A 100%);
    color: var(--color-navy);
    border-top: 2px solid rgba(255, 214, 10, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        align-items: center;
    }
}

.footer-logo .logo {
    height: 28px;
    max-height: 28px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
    /* フィルターを削除してオリジナルの色を使用 */
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-text p {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-navy);
    font-weight: 600;
    opacity: 0.8;
    margin: 0;
}

.footer-link {
    color: var(--color-navy);
    text-decoration: none;
    opacity: 0.9;
    cursor: pointer;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========================================
   Layer 13: アニメーション（Stripe風に改善）
   ======================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stripe風のスケールフェードイン */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stripe風のフローティングアニメーション */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   Layer 14: ユーティリティクラス
   ======================================== */

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

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ========================================
   Layer 15: レスポンシブ調整
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    /* ヘッダーとナビゲーション */
    .nav {
        padding: 12px 0;
        gap: 16px;
    }
    
    .nav-logo .logo {
        height: 28px;
        max-height: 28px;
    }
    
    .nav-cta .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero {
        padding-top: calc(var(--spacing-3xl) + 60px);
        padding-bottom: var(--spacing-3xl);
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch; /* モバイル: コンテンツを全幅に（Safari で狭く表示される問題対策） */
    }
    
    /* ヒーローセクションのビジュアルを非表示 */
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
        justify-content: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* セクション共通 */
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 14px;
    }

    /* ISSUE説明：モバイル時のみ改行表示 */
    .issue-desc-desktop {
        display: none;
    }
    .issue-desc-mobile {
        display: inline;
    }

    /* SOLUTIONセクション説明：モバイル時のみ改行 */
    .solution-intro-desktop {
        display: none;
    }
    .solution-intro-mobile {
        display: inline;
    }

    /* 品質保証説明：モバイル時のみ改行 */
    .qa-desc-desktop {
        display: none;
    }
    .qa-desc-mobile {
        display: inline;
    }

    /* 納品プロセスサブタイトル：モバイル時のみ改行 */
    .process-subtitle-desktop {
        display: none;
    }
    .process-subtitle-mobile {
        display: inline;
    }

    /* ISSUEカード説明・result-text：モバイル時のみ改行表示 */
    .issue-desc-1-desktop,
    .issue-desc-2-desktop,
    .issue-desc-4-desktop,
    .result-text-desktop {
        display: none;
    }
    .issue-desc-1-mobile,
    .issue-desc-2-mobile,
    .issue-desc-4-mobile,
    .result-text-mobile {
        display: inline;
    }

    /* ISSUEカード */
    .issue-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }
    
    .issue-card {
        min-width: 0;
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .issue-number {
        font-size: 48px;
    }
    
    .issue-icon {
        width: 64px;
        height: 64px;
    }
    
    .issue-title {
        font-size: 18px;
    }
    
    .issue-description {
        font-size: 13px;
    }
    
    /* ソリューションカード */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .solution-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .solution-value {
        font-size: 20px;
    }
    
    .solution-description {
        min-height: 100px;
    }
    
    /* 経営インパクトセクション */
    .flow-diagram {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .stage-title {
        font-size: 16px;
    }
    
    /* 納品プロセス */
    .process-main-title {
        font-size: 24px;
    }
    
    .process-timeline {
        padding: 0;
    }
    
    .milestone-label {
        font-size: 11px;
    }
    
    .process-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    .process-step {
        padding: var(--spacing-md);
        min-width: 0;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-items li {
        font-size: 13px;
    }
    
    /* ネクストステップ */
    .next-step-title {
        font-size: 28px;
    }
    
    .next-step-flow {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .flow-card {
        width: 100%;
        max-width: 100%;
    }
    
    /* CTA */
    .cta-title {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    /* 関連サービス */
    .related-services-grid {
        grid-template-columns: 1fr;
    }

}

/* 767px以下：関連サービス3行、issue-question改行 */
@media (max-width: 767px) {
    .related-desc-desktop {
        display: none;
    }
    .related-desc-mobile {
        display: inline;
    }

    .issue-question-desktop {
        display: none;
    }
    .issue-question-mobile {
        display: inline;
    }
}

/* ========================================
   追加のレスポンシブ対応（640px以下）
   ======================================== */

/* 640px以下 - スマートフォン */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* ヘッダーとナビゲーション */
    .header {
        height: auto;
    }
    
    .nav {
        padding: 10px 0;
        gap: 12px;
    }
    
    .nav-logo .logo {
        height: 24px;
        max-height: 24px;
        max-width: 150px;
    }
    
    .nav-cta .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* ヒーロー */
    .hero-service-name {
        font-size: 48px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-tagline {
        font-size: 14px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .brand-badge {
        font-size: 10px;
        padding: 4px 12px;
    }
    
    /* セクション */
    .section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 13px;
    }
    
    .section-label {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* ISSUEカード */
    .issue-card {
        padding: 24px 16px;
    }
    
    .issue-number {
        font-size: 40px;
    }
    
    .issue-icon {
        width: 56px;
        height: 56px;
    }
    
    .issue-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .issue-title {
        font-size: 16px;
    }
    
    .issue-description {
        font-size: 12px;
    }
    
    /* ソリューションカード */
    .solution-grid {
        gap: var(--spacing-xs);
    }
    
    .solution-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .solution-icon {
        width: 48px;
        height: 48px;
    }
    
    .solution-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .solution-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .solution-value {
        font-size: 16px;
    }
    
    .solution-description {
        font-size: 12px;
        min-height: 90px;
    }
    
    /* 経営インパクト */
    .flow-diagram {
        padding: 16px;
    }
    
    .stage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .stage-icon {
        width: 40px;
        height: 40px;
    }
    
    .stage-title {
        font-size: 15px;
    }
    
    /* 経営インパクト - タイムライン */
    /* 納品プロセス */
    .process-main-title {
        font-size: 22px;
    }
    
    .process-subtitle {
        font-size: 13px;
    }
    
    .timeline-bar {
        height: 6px;
    }
    
    .milestone-dot {
        width: 12px;
        height: 12px;
    }
    
    .milestone-label {
        font-size: 10px;
    }
    
    .process-step {
        padding: 16px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .step-items li {
        font-size: 11px;
    }
    
    /* ネクストステップ */
    .next-step-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .next-step-title {
        font-size: 24px;
    }
    
    .next-step-subtitle {
        font-size: 13px;
    }
    
    .flow-card {
        padding: 24px 16px;
    }
    
    .flow-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .flow-icon-circle {
        width: 64px;
        height: 64px;
    }
    
    .flow-icon-circle svg {
        width: 24px;
        height: 24px;
    }
    
    .flow-card-title {
        font-size: 18px;
    }
    
    .flow-card-text {
        font-size: 12px;
    }
    
    /* 品質保証 */
    .quality-assurance {
        padding: 24px 16px;
    }
    
    .qa-title {
        font-size: 20px;
    }
    
    .qa-description {
        font-size: 13px;
    }
    
    /* 関連サービス */
    .related-services-grid {
        gap: 16px;
    }
    
    .related-service-card {
        padding: 20px 12px;
        max-width: 100%;
    }
    
    .service-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
    
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .service-description {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .service-status {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* CTA */
    .cta-header {
        margin-bottom: 24px;
    }
    
    .cta-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .cta-description {
        font-size: 12px;
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .cta-desc-desktop {
        display: none;
    }
    .cta-desc-mobile {
        display: inline;
    }

    .cta-content {
        padding: 0;
    }
    
    /* ボタン */
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 15px;
    }
}

/* さらに小さいデバイス（480px以下） */
@media (max-width: 480px) {
    .hero-service-name {
        font-size: 40px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .issue-number {
        font-size: 36px;
    }
    
    .process-main-title {
        font-size: 20px;
    }
    
    .next-step-title {
        font-size: 22px;
    }
    
    .cta-title {
        font-size: 18px;
    }
}

/* 320px専用のレスポンシブ対応 */
@media (max-width: 320px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 1. ヘッダーが切れないように調整 */
    .nav {
        padding: 8px 0;
        gap: 6px;
    }
    
    .nav-logo {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .nav-logo .logo {
        height: 20px;
        max-height: 20px;
        max-width: 100px;
    }
    
    .nav-cta {
        flex-shrink: 0;
    }
    
    .nav-cta .btn {
        padding: 6px 10px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    /* 2. IM生成に時間がかかることでの部分開業を1行に収める */
    .impact-subtitle {
        font-size: 19px;
        white-space: nowrap;
        padding: 0 2px;
        letter-spacing: -0.5px;
    }
    
    /* 3. 320px以下では1列レイアウト */
    .impact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        justify-items: stretch;
        max-width: 100%;
        margin: 0 auto var(--spacing-2xl);
    }
    
    .impact-column {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .list-item {
        padding-left: var(--spacing-xs);
    }
    
    /* 4. 「案件公開タイミングの遅延」タイトルとリストの間を狭く */
    .column-title {
        margin-bottom: 12px;
        height: auto;
        font-size: 16px;
    }
    
    .list-text {
        font-size: 14px;
    }
    
    .text-keep {
        white-space: normal;
    }
    
    .issue-question .text-keep {
        white-space: nowrap;
    }
    
    .issue-question {
        padding: var(--spacing-md);
    }
    
    .issue-question p {
        font-size: 16px;
    }
    
    /* 5. 「その結果として」の経営課題を独立表示 */
    .result-content {
        padding: var(--spacing-md);
    }
    
    .result-text {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .result-challenges {
        margin-top: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .result-challenge {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 12px;
    }
    
    /* 6. Other Serviceカードを小さく */
    .related-service-card {
        padding: 10px 8px;
    }
    
    .service-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }
    
    .service-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .service-name {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .service-description {
        font-size: 9px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .service-status {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ========================================
   4K・大画面対応（2500px以上）
   ======================================== */

@media (min-width: 2500px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1600px;
        padding: 0 80px;
    }
    
    .section {
        padding: 96px 0;
    }
    
    /* ヘッダー */
    .nav-logo .logo {
        height: 40px;
        max-height: 40px;
        max-width: 240px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .nav-cta .btn,
    .btn {
        font-size: 18px;
        padding: 14px 28px;
    }
    
    .btn-large {
        font-size: 20px;
        padding: 18px 36px;
    }
    
    /* ヒーロー */
    .hero {
        padding-top: 200px;
        padding-bottom: 140px;
    }
    
    .hero-content {
        max-width: 720px;
    }
    
    .hero-brand {
        margin-bottom: 40px;
    }
    
    .brand-badge {
        font-size: 16px;
        padding: 10px 24px;
    }
    
    .brand-badge .badge-text {
        font-size: 13px;
    }
    
    .hero-service-name {
        font-size: 112px;
    }
    
    .hero-title {
        font-size: 68px;
        margin-bottom: 28px;
    }
    
    .hero-subtitle,
    .hero-tagline {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .hero-cta .btn-large {
        font-size: 22px;
        padding: 20px 44px;
    }
    
    .hero-cards-stack {
        width: 500px;
        height: 560px;
    }
    
    .stack-card {
        padding: 32px;
        border-radius: 20px;
    }
    
    .stack-card-2 {
        top: 40px;
        left: 24px;
    }
    
    .stack-card-3 {
        top: 80px;
        left: -24px;
    }
    
    .card-header-simple {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .card-status {
        font-size: 14px;
        padding: 6px 16px;
    }
    
    .card-number {
        font-size: 15px;
    }
    
    .card-title-simple {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .progress-label-simple {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .progress-bar-simple {
        height: 10px;
    }
    
    .hero-stats {
        max-width: 1100px;
        padding: 48px;
        gap: 48px;
    }
    
    .stat-value {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 18px;
    }
    
    /* セクション共通 */
    .section-label {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .section-description {
        font-size: 20px;
    }
    
    /* ISSUEセクション */
    .issue-grid {
        gap: 56px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .issue-card {
        padding: 40px 40px;
    }
    
    .issue-number {
        font-size: 72px;
    }
    
    .issue-icon {
        width: 100px;
        height: 100px;
    }
    
    .issue-title {
        font-size: 26px;
    }
    
    .issue-description {
        font-size: 18px;
    }
    
    .issue-question p {
        font-size: 24px;
    }
    
    /* 経営インパクト */
    .impact-subtitle {
        font-size: 36px;
    }
    
    .impact-grid {
        grid-template-columns: repeat(4, 240px);
        gap: 40px;
    }
    
    .impact-column {
        width: 240px;
    }
    
    .column-title {
        font-size: 22px;
        min-height: 56px;
    }
    
    .list-text {
        font-size: 19px;
    }
    
    .alert-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
    }
    
    .result-content {
        max-width: 1100px;
        padding: 64px 80px;
    }
    
    .result-text {
        font-size: 20px;
    }
    
    .result-emphasis {
        font-size: 22px;
    }
    
    .result-challenge {
        font-size: 19px;
        padding: 24px 32px;
    }
    
    /* SOLUTIONセクション */
    .solution-grid {
        gap: 40px;
    }
    
    .solution-card {
        padding: 40px 40px;
    }
    
    .solution-value {
        font-size: 28px;
    }
    
    .solution-description {
        font-size: 17px;
    }
    
    /* FAQ */
    .faq-list {
        max-width: 880px;
    }
    
    .faq-question {
        font-size: 19px;
        padding: 40px 56px 40px 32px;
    }
    
    .faq-question::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .faq-answer p {
        font-size: 18px;
    }
    
    /* CTA・フォーム */
    .cta-title {
        font-size: 56px;
    }
    
    .cta-description {
        font-size: 20px;
    }
    
    .form-label {
        font-size: 17px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .form-submit {
        font-size: 18px;
        padding: 18px 36px;
    }
    
    /* 関連サービス */
    .related-services-grid {
        gap: 32px;
    }
    
    .related-service-card {
        padding: 28px 24px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-name {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 15px;
    }
    
    /* 経営インパクト・フロー図 */
    .flow-diagram {
        padding: 40px 48px;
    }
    
    .stage-title {
        font-size: 20px;
    }
    
    .milestone-label {
        font-size: 16px;
    }
    
    .milestone-dot {
        width: 20px;
        height: 20px;
    }
    
    /* 納品プロセス */
    .process-main-title {
        font-size: 32px;
    }
    
    .process-steps {
        gap: 40px;
    }
    
    .process-step {
        padding: 32px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-items li {
        font-size: 17px;
    }
    
    /* ネクストステップ */
    .next-step-title {
        font-size: 44px;
    }
    
    .next-step-subtitle {
        font-size: 20px;
    }
    
    .next-step-badge {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .flow-card {
        padding: 32px;
    }
    
    .flow-card-title {
        font-size: 20px;
    }
    
    .flow-card-text {
        font-size: 16px;
    }
    
    /* フッター */
    .footer {
        padding: 64px 0;
    }
    
    .footer-logo .logo {
        height: 36px;
        max-height: 36px;
    }
    
    .footer-text p {
        font-size: 15px;
    }
}

/* ========================================
   Jicoo ウィジェット（モバイル対応）
   コンテナ外でビューポート幅いっぱいに表示
   ======================================== */

.jicoo-widget-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS Safari: スムーズスクロール */
    margin: 0 auto;
    /* コンテナと同様のパディングで見た目を揃える */
    padding: 0 var(--spacing-2xl);
    box-sizing: border-box;
}

.jicoo-widget-wrapper .jicoo-widget {
    width: 100%;
    min-width: 320px;
    height: 720px;
    border: 1px solid #e4e4e4;
    box-sizing: border-box;
}

/* iframe: Jicooが内部で幅を制御するため、幅の上書きはしない（横スクロールで対応） */
.jicoo-widget-wrapper .jicoo-widget iframe {
    display: block;
}

@media (max-width: 1024px) {
    .jicoo-widget-wrapper {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .jicoo-widget-wrapper {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    .jicoo-widget-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .cta-content .jicoo-widget-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 375px) {
    /* 375px（iPhone SE等）: ウィジェットを軽く縮小して中央寄せ */
    .cta-content .jicoo-widget-wrapper {
        overflow: hidden;
        overflow-x: hidden; /* Safari: overflow + transform のクリッピング対策 */
        padding-left: 6px;
        padding-right: 6px;
        display: flex;
        justify-content: center;
    }
    .cta-content .jicoo-widget-wrapper .jicoo-widget {
        -webkit-transform: scale(0.96);
        transform: scale(0.96);
        -webkit-transform-origin: top center;
        transform-origin: top center;
        flex-shrink: 0; /* Safari: flex 子の縮小防止 */
        min-width: 360px;
        width: 360px;
    }
}

@media (max-width: 360px) {
    /* transform: scale でウィジェット全体を縮小（iframe内のMUI要素は直接編集不可のため） */
    .cta-content .jicoo-widget-wrapper {
        overflow: hidden;
        overflow-x: hidden; /* Safari: overflow + transform のクリッピング対策 */
        padding-left: 4px;
        padding-right: 4px;
        display: flex;
        justify-content: center;
    }
    .cta-content .jicoo-widget-wrapper .jicoo-widget {
        -webkit-transform: scale(0.88);
        transform: scale(0.88);
        -webkit-transform-origin: top center;
        transform-origin: top center;
        flex-shrink: 0; /* Safari: flex 子の縮小防止 */
        min-width: 360px;
        width: 360px;
    }
}

@media (max-width: 320px) {
    .cta-content .jicoo-widget-wrapper {
        padding-left: 4px;
        padding-right: 4px;
        overflow: hidden;
        overflow-x: hidden; /* Safari: overflow + transform のクリッピング対策 */
    }
    .cta-content .jicoo-widget-wrapper .jicoo-widget {
        -webkit-transform: scale(0.82);
        transform: scale(0.82);
        -webkit-transform-origin: top center;
        transform-origin: top center;
        flex-shrink: 0; /* Safari: flex 子の縮小防止 */
        min-width: 360px;
        width: 360px;
    }
}

/* 狭い画面：パディングを最小化してウィジェットの表示幅を確保 */
@media (max-width: 480px) {
    .widget-section .jicoo-widget-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }
}