/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Spacing System - Unified spacing variables for maintainability */
:root {
    --section-padding-vertical: 100px;
    --section-padding-vertical-large: 120px;
    --section-padding-vertical-small: 60px;
    --section-inner-spacing: 60px;
    --section-inner-spacing-large: 80px;
    --section-inner-spacing-small: 40px;
    --section-gap: 200px; /* セクション間の統一された余白（margin + paddingの合計） */
    --section-gap-half: 100px; /* セクション間の余白の半分（各セクションで使用） */
    --container-side-margin: 120px;
    --container-max-width: 1400px;
    --container-content-width: calc(var(--container-max-width) - var(--container-side-margin) * 2);
    --element-spacing: 60px;
    --element-spacing-large: 80px;
    --element-spacing-small: 40px;
    
    /* Z-index System - Unified z-index hierarchy */
    --z-header: 1000;
    --z-decorative-high: 999;
    --z-content-high: 10;
    --z-content: 2;
    --z-decorative: 1;
    --z-background: 0;
    --z-background-below: -1;
    
    /* Breakpoints - Unified breakpoint variables for responsive design */
    --breakpoint-mobile: 768px;
    --breakpoint-mobile-small: 480px;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible; /* 縦方向のラインが見切れないように */
    padding-top: 80px; /* 固定ヘッダー分の余白 */
}

html {
    overflow-x: hidden;
    overflow-y: visible; /* 縦方向のラインが見切れないように */
    width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-header);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 27px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-list li {
    flex: 1;
    text-align: center;
    position: relative;
}

.nav-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #ddd;
}

.nav-list a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #10193A;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #10193A;
}

.nav-list a:hover::before {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 11px; /* 間隔11px */
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 39.9903px; /* 長さ39.9903px */
    height: 1.8794px; /* 線幅1.8794px */
    background: #10193A;
    transition: all 0.3s;
    display: block; /* インライン要素をブロック化（ベースライン余白対策） */
    margin: 0; /* 余白を0に統一 */
    padding: 0; /* パディングも0に */
    line-height: 0; /* 行ボックスの下側余白を削除 */
}

.mobile-menu-toggle.active span:nth-child(1) {
    /* 長方形（55px × 35px）で完璧な×を作る
       gap: 13px, 線の高さ: 3px
       1本目の上端: 0
       1本目の中心: 0 + 1.5px = 1.5px
       2本目の上端: 3px + 13px = 16px
       2本目の中心: 16px + 1.5px = 17.5px（これが中央）
       移動距離: 17.5px - 1.5px = 16px（下に移動）
       
       translateを先に実行して位置を移動してから回転 */
    transform: translateY(16px) rotate(45deg);
    transform-origin: center center;
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    /* 長方形（55px × 35px）で完璧な×を作る
       gap: 13px, 線の高さ: 3px
       3本目の上端: 3px + 13px + 3px + 13px = 32px
       3本目の中心: 32px + 1.5px = 33.5px
       2本目の中心: 16px + 1.5px = 17.5px（これが中央）
       移動距離: 17.5px - 33.5px = -16px（上に移動）
       
       translateを先に実行して位置を移動してから回転 */
    transform: translateY(-16px) rotate(-45deg);
    transform-origin: center center;
}

/* スマホレイアウト：バツアニメーションのtranslate値をハンバーガーメニューのサイズに応じて調整 */
@media (max-width: 768px) {
    .mobile-menu-toggle.active span:nth-child(1) {
        /* 長方形（55px × 35px）で完璧な×を作る
           gap: 13px, 線の高さ: 3px
           移動距離: 16px（下に移動）
           translateを先に実行して位置を移動してから回転 */
        transform: translateY(16px) rotate(45deg) !important;
        transform-origin: center center !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        /* 長方形（55px × 35px）で完璧な×を作る
           gap: 13px, 線の高さ: 3px
           移動距離: -16px（上に移動）
           translateを先に実行して位置を移動してから回転 */
        transform: translateY(-16px) rotate(-45deg) !important;
        transform-origin: center center !important;
    }
    
    /* ナビゲーションメニューの位置をヘッダーの高さに応じて調整 */
    .nav {
        position: fixed !important;
        top: 67.6393px !important; /* ヘッダーの高さ分だけ下に配置 */
    }
}

/* .nav.mobile-active styles are now in @media (max-width: var(--breakpoint-mobile)) */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    padding-top: 18vh;
    margin-top: -80px; /* ヘッダー高さ分だけ背景を上にずらして、白いラインを消す */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: var(--z-background-below);
}

.hero-content {
    text-align: left;
    max-width: 1300px;
    margin: 0;
    padding: 0;
    margin-left: 0;
    position: relative;
    z-index: var(--z-content);
    width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #10193A;
    margin-bottom: 30px;
    margin-left: 0;
    padding-left: 0;
    line-height: 1.4;
}

.hero-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    margin-left: 0;
    padding-left: 0;
    line-height: 1.8;
    text-indent: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
    padding-left: 0;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #10193A;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.btn-outline {
    background: #fff;
    color: #10193A;
}

.btn-outline:hover {
    background: #10193A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #10193A;
    color: #fff;
}

.btn-primary:hover {
    background: #2a5a7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

/* Approach Section */
.approach {
    position: relative;
    padding: var(--section-gap-half) 0;
    background: #fff;
    text-align: center;
    overflow: visible;
    z-index: var(--z-content);
}

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

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: bold;
    color: #666666;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: var(--section-inner-spacing);
    text-decoration: underline;
    text-underline-offset: 8px;
}

.section-description {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--section-inner-spacing-large);
    line-height: 1.8;
}

.section-description strong {
    color: #10193A;
}

/* Approach Comparison Block - Independent block within approach section */
.approach-background-wrapper {
    position: relative;
    background-image: url('img/approach-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-inner-spacing-large) 0;
    width: 100%;
    overflow: visible;
    z-index: var(--z-content);
}

.approach-background-wrapper .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Approach Decorative Elements */
.approach-diagonal-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background-color: transparent;
    z-index: var(--z-decorative);
    pointer-events: none;
}

.approach-diagonal-line::before {
    content: '';
    position: absolute;
    left: -50vw;
    bottom: 400px; /* サービスセクションのタイトル付近から始まるように調整 */
    width: 300vw;
    height: 300px;
    background-color: #EBEEF5;
    transform: rotate(35deg);
    transform-origin: left bottom;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.approach-diagonal-line-reverse {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200%;
    overflow: visible;
    background-color: transparent;
    z-index: var(--z-decorative);
    pointer-events: none;
}

.approach-diagonal-line-reverse::before {
    content: '';
    position: absolute;
    right: -50vw;
    bottom: -5000px; /* もっと下に配置 */
    width: 300vw;
    height: 350px;
    background-color: #EBEEF5;
    transform: rotate(-35deg);
    transform-origin: right bottom;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

/* Parallelogram above Services Section */
.approach-parallelogram-wrapper {
    position: relative;
    width: 637px;
    height: 63px;
    overflow: visible;
    margin-bottom: var(--section-inner-spacing);
    z-index: var(--z-decorative-high);
}

.approach-parallelogram-main {
    position: absolute;
    left: 20px;
    top: 0;
    width: calc(100% - 40px);
    height: 100%;
    background-color: #8DCBED;
    transform: skew(-20deg);
    transform-origin: bottom left;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
    z-index: var(--z-decorative);
}

.approach-parallelogram-overlay {
    background-color: #10193A;
    left: 5px;
    top: -10px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
    z-index: var(--z-content);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2em;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    position: relative;
}

.parallelogram-text {
    transform: skew(20deg);
    display: inline-block;
    position: relative;
    margin-right: 20px;
}

.parallelogram-line {
    flex: 1;
    height: 1px;
    background-color: #fff;
    transform: skew(20deg);
    margin-right: 20px;
    align-self: flex-end;
    margin-bottom: calc(0.4em - 0.5px);
}

.sub-heading {
    font-size: 28px;
    color: #10193A;
    text-align: center;
    margin: 0 auto var(--section-inner-spacing);
    padding: 30px 40px;
    font-weight: 600;
    position: relative;
    z-index: var(--z-content);
    background: #fff;
    max-width: 800px;
    border-radius: 0;
}

.sub-heading-mobile {
    display: none;
}

.sub-heading-mobile-top,
.sub-heading-mobile-bottom {
    font-size: 28px;
    color: #10193A;
    font-weight: 600;
    position: relative;
    z-index: var(--z-content);
    background: #fff;
    padding: 5px 20px;
    text-align: center;
}

.sub-heading-mobile-top {
    width: 80%;
    margin-right: 20%;
    margin-bottom: 5px;
}

.sub-heading-mobile-bottom {
    width: 80%;
    margin-left: 20%;
}

.comparison-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: var(--container-content-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: var(--z-content);
    padding: 20px 20px;
    box-sizing: border-box;
}

.comparison-box {
    background: #fff;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    border-top: 4px solid #10193A;
    display: flex;
    flex-direction: column;
}

.comparison-box-left {
    border-top-color: #757575;
}

.comparison-box-right {
    border-top-color: #2196f3;
}

.comparison-box h4 {
    font-size: 20px;
    color: #10193A;
    margin-bottom: 25px;
    margin-left: -40px;
    margin-right: -40px;
    padding: 0 40px 15px 40px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box; /* padding/borderを含めた高さ計算 */
}


.comparison-list {
    list-style: none;
    flex: 1; /* 残りのスペースを埋める */
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.comparison-item .icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.comparison-item.negative .icon {
    color: #757575;
    background: #f5f5f5;
}

.comparison-item.positive .icon {
    color: #2196f3;
    background: #e3f2fd;
}

/* Partner Philosophy Section */
.partner-philosophy {
    padding: var(--section-gap-half) 0 var(--section-padding-vertical-small) 0;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: var(--z-content);
}

.partner-philosophy .container {
    text-align: center;
}

/* Services Section */
.services {
    position: relative;
    background: #fff;
    padding: var(--section-padding-vertical-small) 0 var(--section-gap-half) 0;
    overflow: visible; /* グレーのラインが画面外に出るのを許可 */
}

/* Services Diagonal Lines - approachセクションから始まるグレーのライン */
.services-diagonal-line {
    position: absolute;
    left: 0;
    bottom: 500px; /* approachセクションの下端から開始 */
    width: 100%;
    height: calc(100% + 2000px); /* 上段と下段の合計がフッターまでに収まる高さ */
    overflow: visible; /* 上段を表示 */
    background-color: transparent;
    z-index: var(--z-background); /* 最背面に配置（0） */
    pointer-events: none;
}

.services-diagonal-line::before {
    content: '';
    position: absolute;
    left: -50vw; /* 左右に突き抜けるように */
    bottom: 0; /* approachセクションの下端から開始 */
    width: 300vw; /* 左右に突き抜ける幅 */
    height: 300px;
    background-color: #EBEEF5;
    transform: rotate(35deg);
    transform-origin: left bottom;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.services-diagonal-line-reverse {
    position: absolute;
    left: 0;
    bottom: -1000px; /* approachセクションの下端に配置 */
    width: 100%;
    height: 2000px; /* フッターまで含めた高さ */
    overflow: visible; /* 下段を表示 */
    background-color: transparent;
    z-index: var(--z-background); /* 最背面に配置（0） */
    pointer-events: none;
}

.services-diagonal-line-reverse::before {
    content: '';
    position: absolute;
    right: -50vw; /* 左右に突き抜けるように */
    bottom: -300px; /* 上段のライン（高さ300px）の下から開始 */
    width: 300vw; /* 左右に突き抜ける幅 */
    height: 300px;
    background-color: #EBEEF5;
    transform: rotate(-35deg);
    transform-origin: right bottom;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

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

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
    overflow: hidden;
}

.service-illustration {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.illustration-1 {
    background: linear-gradient(135deg, #10193A 0%, #2a5a7f 100%);
    position: relative;
}

.illustration-1::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.illustration-2 {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    position: relative;
}

.illustration-2::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.illustration-3 {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    position: relative;
}

.illustration-3::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.service-content {
    padding: 30px;
}

.service-name {
    font-size: 22px;
    color: #10193A;
    margin-bottom: 15px;
    font-weight: bold;
    background: #10193A;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
}

.service-description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
}

.services-footer-text {
    text-align: center;
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Service Detail */
.service-detail {
    background: #fff;
    padding: var(--section-padding-vertical-small) 0 0 0;
}

/* Content Wrapper - 統一されたコンテンツ幅のラッパー */
.content-wrapper {
    max-width: var(--container-content-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.service-detail > .container {
    margin-bottom: var(--section-inner-spacing);
}

.service-detail > .container:last-child {
    margin-bottom: 0;
}

.service-sub-background {
    position: absolute;
    left: clamp(20px, 340px, calc(100% - 320px));
    top: 45px;
    right: 20px;
    width: auto;
    min-width: 300px;
    height: 63px;
    overflow: hidden;
    background-color: #3759A4;
    /* 平行四辺形の形状: 左側を少し下に、右側を少し上に */
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    z-index: var(--z-background);
    display: flex;
    align-items: center;
    padding-left: 100px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    box-sizing: border-box;
}

.service-sub-background::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px; /* 左側のストリップの幅 */
    background-color: #3759A4;
    z-index: var(--z-decorative);
}

.service-sub-background::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px; /* 右側のストリップの幅 */
    background-color: #3759A4;
    z-index: var(--z-decorative);
}

.service-detail-container {
    border: 1px solid #ddd;
    position: relative;
    min-height: 296.0056px;
    background-color: #fff;
    z-index: var(--z-content);
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.service-detail-text {
    position: absolute;
    left: 440px;
    top: 140px; /* service-sub-background の下 (45px + 63px = 108px) */
    right: 20px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    z-index: var(--z-content);
}

.service-detail-img-wrapper {
    position: relative;
}

.service-detail-img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 296.0056px;
    width: auto;
    z-index: var(--z-content);
    object-fit: contain;
    max-width: 100%;
}

/* Service Philosophy Text (moved to service-detail section) */
.service-philosophy-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    color: #333;
    line-height: 2;
    max-width: 1200px;
    margin: var(--section-inner-spacing) auto 0;
    text-align: center;
    position: relative;
    z-index: var(--z-content-high);
}

/* Employee Partners Section */
.employee-partners {
    background: transparent;
    padding: var(--section-gap-half) 0 var(--section-gap-half) 0;
    position: relative;
    z-index: var(--z-content);
    overflow: visible;
}

.employee-partners > .container {
    margin-bottom: var(--section-inner-spacing);
}

.employee-partners > .container:last-child {
    margin-bottom: 0;
}

.employee-partners-container {
    width: 100%;
    box-sizing: border-box;
}

.employee-partners-header {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.employee-partners-header-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 55px;
}

.employee-partners-header-left {
    width: 18px;
    height: 55px;
    background-color: #10193A;
    flex-shrink: 0;
}

.employee-partners-header-right {
    flex: 1;
    height: 55px;
    background-color: #3759A3;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.employee-partners-subtitle {
    margin-left: 8px;
    font-weight: bold;
}

.employee-partners-content {
    width: 100%;
    box-sizing: border-box;
}

.employee-partners-box {
    background-color: #fff;
    border: 1px solid #3391d2;
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.employee-partners-item {
    margin-bottom: 40px;
}

.employee-partners-item:last-child {
    margin-bottom: 0;
}

.employee-partners-item-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Partners Section */
.partners {
    background: #fff;
    padding: 0 0 100px;
}

.partner-categories {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-category {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #10193A;
}

.partner-category-title {
    font-size: 22px;
    color: #10193A;
    margin-bottom: 20px;
    font-weight: bold;
}

.partner-subcategory {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.partner-subcategory h4 {
    font-size: 18px;
    color: #10193A;
    margin-bottom: 10px;
    font-weight: 600;
}

.partner-category p,
.partner-subcategory p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* Philosophy Section */
.philosophy {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 100px 0;
}

.philosophy-title {
    font-size: 36px;
    color: #10193A;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.4;
}

.philosophy-description,
.philosophy-conclusion {
    font-size: 16px;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.philosophy-conclusion {
    font-weight: 600;
    color: #10193A;
}

/* CTA Section */
.cta {
    background: transparent;
    padding: var(--section-padding-vertical-small) 0;
    text-align: center;
    position: relative;
    z-index: var(--z-content-high);
}

.cta-content {
    margin-left: var(--container-side-margin);
    margin-right: var(--container-side-margin);
}

.cta-box {
    background: #D7DEED;
    padding: 40px;
}

.cta-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Mobile Hero Image - デフォルトでは非表示（PCレイアウト） */
.mobile-hero-image {
    display: none; /* PCレイアウトでは非表示 */
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.mobile-hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Mobile Hero Buttons - デフォルトでは非表示（PCレイアウト） */
.mobile-hero-buttons {
    display: none; /* PCレイアウトでは非表示 */
}

.mobile-btn {
    display: none; /* PCレイアウトでは非表示 */
}

/* Mobile Approach Images - デフォルトでは非表示（PCレイアウト） */
.mobile-approach-images {
    display: none; /* PCレイアウトでは非表示 */
    width: 100%;
    padding: 0;
    margin: 0;
}

.mobile-approach-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 0;
}

/* Mobile Service Images - デフォルトでは非表示（PCレイアウト） */
.mobile-service-images {
    display: none; /* PCレイアウトでは非表示 */
    width: 100%;
    padding: 0;
    margin: 0;
}

.mobile-service-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 0;
}

/* Mobile Partner Images - デフォルトでは非表示（PCレイアウト） */
.mobile-partner-images {
    display: none; /* PCレイアウトでは非表示 */
    width: 100%;
    padding: 0;
    margin: 0;
}

.mobile-partner-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 0;
}

/* Mobile CTA Image - デフォルトでは非表示（PCレイアウト） */
.mobile-cta-image {
    display: none; /* PCレイアウトでは非表示 */
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.mobile-cta-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 0;
}

.mobile-cta-buttons {
    display: none; /* PCレイアウトでは非表示 */
}

/* Image Gallery Section - デフォルトでは非表示（PCレイアウト） */
.image-gallery {
    display: none; /* PCレイアウトでは非表示 */
    width: 100%;
    padding: 0;
    margin: 0;
}

.image-gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Footer */
.footer {
    background: #747475;
    color: #fff;
    padding: var(--section-gap-half) 0 0;
    padding-bottom: 0;
    margin-bottom: 0;
    position: relative;
    z-index: var(--z-content-high);
}

.footer .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-info-wrapper {
    display: block;
}

.footer-info {
    font-size: 14px;
    line-height: 2;
}

.footer-info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-info-row:last-child {
    margin-bottom: 0;
}

.footer-info-label {
    font-weight: bold;
}

.footer-info-value {
    line-height: 1.8;
}

.footer-info-value p {
    margin-bottom: 4px;
}

.footer-info-value p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    padding-bottom: 30px; /* 下に余白を追加 */
    margin-bottom: 0;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    justify-content: center;
    align-items: center; /* 中央揃え */
    text-align: center;
    gap: 10px; /* プライバシーポリシーとコピーライトの間隔 */
}

.privacy-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.privacy-link:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Container Margin for PC */
/* ※ media query内ではCSS変数が使えないため、具体的なpx値で指定する */
@media (min-width: 769px) {
    .header .container {
        margin-left: var(--container-side-margin);
        margin-right: var(--container-side-margin);
        max-width: none;
    }
    
    /* HEROコンテナはヘッダーと同じ左マージンに揃える */
    .hero .container {
        margin-left: var(--container-side-margin); /* ヘッダーと同じ120px */
        margin-right: var(--container-side-margin);
        max-width: none;
    }
    
    .hero {
        padding-top: 30vh; /* ほんの少し上に（約2文字分）移動 */
    }
    
    /* hero-contentの左右マージンを適切な比率に調整（中央寄せ） */
    .hero-content {
        margin-left: auto; /* 左側も自動で中央寄せ */
        margin-right: auto; /* 右側も自動で中央寄せ */
        max-width: 1300px; /* 最大幅を維持 */
    }

    /* PCレイアウト時：上段グレー斜線をもっと下に下げる */
    .approach-diagonal-line::before {
        bottom: 1500px; /* さらに500px下に（1000px + 500px） */
    }
    
    /* PCレイアウト時：下段グレー斜線（折り返し）をもっと下に下げる */
    .approach-diagonal-line-reverse {
        height: 110%; /* かなり短くして、フッター下へのはみ出しを抑える */
    }
    
    .approach-diagonal-line-reverse::before {
        bottom: -350px; /* さらに500px下に（-850px + 500px） */
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .content-wrapper {
        max-width: var(--container-content-width);
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-detail > .container {
        margin-top: 0;
        margin-bottom: var(--section-inner-spacing);
        padding: 0;
    }
    
    .service-detail > .container:last-child {
        margin-bottom: 0;
    }
    
    .employee-partners > .container {
        margin-top: 0;
        margin-bottom: var(--section-inner-spacing);
        padding: 0;
    }
    
    .employee-partners > .container:last-child {
        margin-bottom: 0;
    }
    
    .content-wrapper {
        max-width: var(--container-content-width);
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-sub-background {
        position: absolute !important;
        left: clamp(20px, 340px, calc(100% - 320px)) !important;
        top: 45px !important;
        right: 20px !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 300px !important;
        height: 63px !important;
        padding-left: 100px !important;
        padding-right: 20px !important;
        z-index: var(--z-background) !important;
        clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%) !important;
    }

    .service-sub-background::before,
    .service-sub-background::after {
        display: block !important;
    }
    
    .service-sub-background {
        display: flex !important;
    }
    
    .service-sub-background-mobile-wrapper {
        display: none !important;
    }
    
    .service-detail-container {
        min-height: auto;
        height: auto;
    }
    
    .service-detail-img {
        position: absolute;
        left: 0;
        top: 0;
        width: auto;
        height: auto;
        max-height: none;
    }
    
    .cta-content {
        margin-left: var(--container-side-margin);
        margin-right: var(--container-side-margin);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        padding-top: 0; /* 画像が最上部に配置されるため、padding-topは不要 */
        position: relative; /* 画像の絶対位置の基準にする */
    }

    * {
        max-width: 100%;
    }
    
    /* スマホレイアウト時：ヘッダーとフッター以外のコンテンツを非表示 */
    .hero,
    .approach,
    .services,
    .employee-partners,
    .partner-philosophy,
    .cta,
    .image-gallery {
        display: none !important;
    }
    
    /* PCレイアウトの背景画像や画像を非表示 */
    .hero-background,
    .approach-background-wrapper,
    .service-detail-img,
    .service-sub-background,
    .service-sub-background-mobile-wrapper {
        display: none !important;
    }
    
    /* スマホレイアウト：ヒーロー画像を表示（画面の最左上に配置、ヘッダーの下に配置、スクロール可能） */
    .mobile-hero-image {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        position: relative !important; /* 相対位置（スクロール可能） */
        top: 0 !important;
        left: 0 !important;
        z-index: var(--z-background) !important; /* ヘッダーの下に配置 */
        line-height: 0 !important; /* 画像下部の余白を削除 */
        opacity: 1 !important;
    }
    
    .mobile-hero-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important; /* 上部の余白を削除 */
        line-height: 0 !important; /* 画像下部の余白を削除 */
        opacity: 1 !important;
    }
    
    /* スマホレイアウト：アプローチ画像を表示（HERO画像の下に隙間なく配置） */
    .mobile-approach-images {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
    }
    
    .mobile-approach-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
        opacity: 1 !important;
    }
    
    /* スマホレイアウト：サービス画像を表示（アプローチ画像の下に隙間なく配置） */
    .mobile-service-images {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
    }
    
    .mobile-service-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
        opacity: 1 !important;
    }
    
    /* スマホレイアウト：パートナー画像を表示（サービス画像の下に隙間なく配置） */
    .mobile-partner-images {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
    }
    
    .mobile-partner-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
        opacity: 1 !important;
    }
    
    /* スマホレイアウト：CTA画像を表示（パートナー画像の下に隙間なく配置） */
    .mobile-cta-image {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
    }
    
    .mobile-cta-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
        line-height: 0 !important; /* 画像間の余白を削除 */
        opacity: 1 !important;
    }
    
    /* スマホレイアウト：CTAボタンを表示（画像の最上位から195.39pxの位置） */
    .mobile-cta-buttons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column;
        gap: 0;
        position: absolute !important;
        top: 195.39px !important; /* 画像の一番上から195.39pxの位置 */
        left: 50% !important;
        transform: translateX(-50%) !important;
        align-items: center;
        width: auto;
        min-width: 513.3462px;
        padding: 0;
        box-sizing: border-box;
        z-index: calc(var(--z-background) + 1) !important; /* 画像の上に表示 */
    }
    
    /* スマホレイアウト：ヒーローボタンを表示 */
    .mobile-hero-buttons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column;
        gap: 0; /* gapは個別のmarginで制御 */
        position: absolute !important;
        top: 594.4428px !important; /* 画像の一番上から594.4428pxの位置 */
        left: 50% !important;
        transform: translateX(-50%) !important;
        align-items: center;
        width: auto; /* ボタンのサイズに合わせる */
        min-width: 513.3462px;
        padding: 0;
        box-sizing: border-box;
        z-index: calc(var(--z-background) + 1) !important; /* 画像の上に表示 */
    }
    
    .mobile-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        width: 513.3462px !important;
        height: 128.9048px !important;
        min-width: 513.3462px;
        min-height: 128.9048px;
        max-width: 513.3462px;
        max-height: 128.9048px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 42px; /* フォントサイズ43px */
        border-radius: 63.452px;
        cursor: pointer;
        transition: all 0.3s;
        border: 2px solid #10193A;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        box-sizing: border-box;
        white-space: nowrap; /* テキストの折り返しを防ぐ */
        flex-shrink: 0; /* 縮小しない */
    }
    
    .mobile-btn-outline {
        background: #fff;
        color: #10193A;
        margin-bottom: 35.902px; /* 下に35.902pxのスペース */
    }
    
    .mobile-btn-outline:hover {
        background: #10193A;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-btn-outline:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-btn-primary {
        background: #10193A;
        color: #fff;
    }
    
    .mobile-btn-primary:hover {
        background: #2a5a7f;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    /* 画像ギャラリーを非表示（スマホレイアウトではHEROセクションのみ表示） */
    .image-gallery {
        display: none !important;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 67.6393px; /* ヘッダーの高さ（パディング込み） */
        box-sizing: border-box; /* パディングを含めた高さを67.6393pxにする */
        padding: 16px 0; /* 上下16pxのパディング */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: var(--z-header);
    }

    .header .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    
    /* スマホレイアウト：ロゴサイズを調整 */
    .logo {
        padding-left: 25px; /* 左端から25pxの余白 */
        padding-top: 0;
        padding-bottom: 0;
        padding-right: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-shrink: 0; /* 縮小しない */
        margin: 0;
        line-height: 0; /* ロゴ下の余白を削除 */
    }
    
    /* スマホレイアウト：ハンバーガーメニューを右端に配置（美しい間隔を維持） */
    .mobile-menu-toggle {
        margin-left: auto; /* 右端に押し出す */
        margin-right: 25px; /* 右端から25pxの余白 */
        padding: 0;
        flex-shrink: 0; /* 縮小しない */
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 13px; /* 美しい間隔を維持 */
        margin-top: 0; /* 上下のマージンを0に統一 */
        margin-bottom: 0;
    }
    
    .logo-img {
        width: 380px; /* 322.1259pxから大きく */
        max-width: calc(100vw - 100px); /* 画面幅から余白を引いたサイズまで縮小可能 */
        height: auto;
        object-fit: contain; /* 比率を保つ */
        display: block;
        margin: 0; /* 全方向のマージンを0に */
        padding: 0; /* パディングも0に */
        line-height: 0; /* 画像下の余白を削除 */
    }
    
    /* ハンバーガーメニューのサイズも大きく太く */
    .mobile-menu-toggle span {
        width: 55px; /* さらに大きく */
        height: 3px; /* さらに太く */
        background: #10193A;
        transition: all 0.3s;
        transform-origin: center; /* 回転の中心を線の中心に */
        display: block; /* インライン要素をブロック化（ベースライン余白対策） */
        margin: 0; /* 余白を0に統一 */
        padding: 0; /* パディングも0に */
        line-height: 0; /* 行ボックスの下側余白を削除 */
    }
}

/* ウィンドウサイズが720pxより小さい場合の調整 */
@media (max-width: 750px) {
    .header {
        height: calc(100vw * 67.6393 / 750) !important; /* 750px基準で比率を保って縮小 */
        padding: calc(100vw * 16 / 750) 0; /* パディングも比率を保って縮小 */
    }
    
    body {
        padding-top: 0 !important; /* 画像が最上部に配置されるため、padding-topは不要 */
        position: relative !important; /* 画像の絶対位置の基準にする */
    }
    
    .mobile-hero-image {
        top: 0 !important;
        left: 0 !important;
        padding: 0 !important;
        z-index: var(--z-background) !important; /* ヘッダーの下に配置 */
        position: relative !important; /* 相対位置に変更（スクロール可能） */
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-hero-img {
        margin: 0;
        padding: 0;
        display: block;
        vertical-align: top;
        line-height: 0;
    }
    
    /* ボタンの位置とサイズを750px基準で縮小 */
    .mobile-hero-buttons {
        top: calc(100vw * 594.4428 / 750) !important; /* 750px基準で比率を保って縮小 */
        min-width: calc(100vw * 513.3462 / 750) !important; /* 750px基準で比率を保って縮小 */
    }
    
    .mobile-btn {
        width: calc(100vw * 513.3462 / 750) !important; /* 750px基準で比率を保って縮小 */
        height: calc(100vw * 128.9048 / 750) !important; /* 750px基準で比率を保って縮小 */
        min-width: calc(100vw * 513.3462 / 750) !important;
        min-height: calc(100vw * 128.9048 / 750) !important;
        max-width: calc(100vw * 513.3462 / 750) !important;
        max-height: calc(100vw * 128.9048 / 750) !important;
        font-size: calc(100vw * 42 / 750) !important; /* 750px基準で比率を保って縮小 */
        border-radius: calc(100vw * 63.452 / 750) !important; /* 750px基準で比率を保って縮小 */
    }
    
    .mobile-btn-outline {
        margin-bottom: calc(100vw * 35.902 / 750) !important; /* 750px基準で比率を保って縮小 */
    }
    
    /* CTAボタンの位置を750px基準で縮小 */
    .mobile-cta-buttons {
        top: calc(100vw * 195.39 / 750) !important; /* 750px基準で比率を保って縮小 */
        min-width: calc(100vw * 513.3462 / 750) !important; /* 750px基準で比率を保って縮小 */
    }
    
    .logo-img {
        width: calc((100vw - 100px) * 380 / 750); /* 750px基準で比率を保って縮小（380px基準） */
        max-width: calc(100vw - 100px);
        height: auto;
        display: block;
        margin: 0; /* 全方向のマージンを0に */
        padding: 0; /* パディングも0に */
        line-height: 0; /* 画像下の余白を削除 */
    }
    
    .mobile-menu-toggle span {
        width: calc((100vw - 100px) * 55 / 750); /* 750px基準で比率を保って縮小（55px基準） */
        height: calc((100vw - 100px) * 3 / 750); /* 750px基準で比率を保って縮小（3px基準） */
        transform-origin: center center; /* 回転の中心を線の中心に */
        display: block; /* インライン要素をブロック化（ベースライン余白対策） */
        margin: 0; /* 余白を0に統一 */
        padding: 0; /* パディングも0に */
        line-height: 0; /* 行ボックスの下側余白を削除 */
    }
    
    .mobile-menu-toggle {
        gap: calc((100vw - 100px) * 13 / 750); /* 750px基準で比率を保って縮小（美しい間隔を維持: gap 13px） */
    }
    
    /* バツアニメーションのtranslate値を750px基準で縮小（美しい間隔を維持） */
    .mobile-menu-toggle.active span:nth-child(1) {
        /* 長方形（55px × 35px）で完璧な×を作る
           gap: 13px, 線の高さ: 3px
           移動距離: 16px（下に移動）
           750px基準で縮小
           translateを先に実行して位置を移動してから回転 */
        transform: translateY(calc((100vw - 100px) * 16 / 750)) rotate(45deg) !important;
        transform-origin: center center !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        /* 長方形（55px × 35px）で完璧な×を作る
           gap: 13px, 線の高さ: 3px
           移動距離: -16px（上に移動）
           750px基準で縮小
           translateを先に実行して位置を移動してから回転 */
        transform: translateY(calc((100vw - 100px) * -16 / 750)) rotate(-45deg) !important;
        transform-origin: center center !important;
    }

    .nav {
        display: none !important;
        position: fixed !important; /* fixedに変更してヘッダーの下に配置 */
        top: calc(100vw * 67.6393 / 750) !important; /* ヘッダーの高さに応じて可変 */
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: var(--z-decorative-high);
        margin-left: 0;
    }
    
    .nav.mobile-active {
        display: flex !important;
    }

    .nav.mobile-active .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav.mobile-active .nav-list li {
        border-bottom: 1px solid #eee;
    }

    .nav.mobile-active .nav-list li:not(:last-child)::after {
        display: none;
    }

    .nav.mobile-active .nav-list a {
        padding: 20px 25px;
        text-align: center; /* 中央寄せに変更 */
        font-size: 16px;
        line-height: 1.5;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .sub-heading {
        display: none;
    }

    .approach-background-wrapper .container {
        padding: 0;
    }

    .approach-parallelogram-wrapper {
        position: relative;
        width: calc(100% + 20px); /* 親要素のpadding（20px）分を追加 */
        margin-right: -20px; /* 右側のpaddingを打ち消して画面端まで */
        display: flex;
        justify-content: flex-end; /* 右寄せ */
        margin-bottom: var(--section-inner-spacing);
        padding-right: 0; /* 右側のパディングを削除 */
    }
    
    .approach-parallelogram-main {
        left: auto;
        right: 0; /* 右寄せ、画面端まで */
        width: calc(100% - 20px); /* 左側に20pxの余白 */
        transform: skew(-20deg);
        transform-origin: bottom left; /* 左側を基準に傾斜 */
        /* 右側を直角にするためにclip-pathを使用（傾斜-20度の場合、右側を約23pxカット） */
        clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 100%, 0 100%);
    }
    
    .approach-parallelogram-overlay {
        font-size: 24px; /* フォントサイズを大きく（20px → 24px） */
        left: auto;
        right: 0; /* 右寄せ、画面端まで */
        width: calc(100% - 20px); /* 左側に20pxの余白 */
        /* 右側を直角にするためにclip-pathを使用（傾斜-20度の場合、右側を約23pxカット） */
        clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 100%, 0 100%);
    }
    
    .parallelogram-text {
        transform: skew(20deg); /* テキストの傾斜を補正 */
    }
    
    .parallelogram-line {
        transform: skew(20deg); /* ラインの傾斜を補正 */
    }

    .sub-heading-mobile {
        display: block;
        margin-bottom: calc(var(--section-inner-spacing) * 0.7);
    }

    .sub-heading-mobile-top {
        width: 95%;
        margin-left: 0;
        margin-right: 5%;
        margin-bottom: 5px;
        padding: 10px 20px;
        white-space: nowrap;
    }

    .sub-heading-mobile-bottom {
        width: 95%;
        margin-left: 5%;
        margin-right: 0;
        padding: 10px 20px;
        white-space: nowrap;
    }

    /* スマホレイアウト時、heroとhero-contentのスタイルをリセット */
    .hero {
        padding-top: 18vh; /* PCレイアウト時の35vhをリセット */
    }
    
    .hero .container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .comparison-boxes {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 10px;
    }

    .comparison-box {
        padding: 20px 15px;
    }

    .comparison-box h4 {
        font-size: 22px;
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px 10px 15px;
        margin-bottom: 15px;
    }

    .comparison-item {
        font-size: 17px;
        margin-bottom: 15px;
        gap: 12px;
    }

    .service-detail-container {
        min-height: auto;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .service-detail-img-wrapper {
        position: relative;
        order: 1;
        overflow: hidden;
    }

    .service-detail-img {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
        left: auto;
        top: auto;
        display: block;
        margin-bottom: 0;
        z-index: var(--z-content);
    }

    .service-sub-background {
        display: none;
    }

    .service-sub-background-mobile-wrapper {
        position: absolute;
        left: 40%; /* 左側に40%の余白（20%分追加） */
        right: 5%; /* 右側に5%の余白 */
        top: 180px; /* 青枠（タイトル帯）を画像内で少し下に配置 */
        width: auto; /* leftとrightで自動計算 */
        max-width: 100%;
        min-width: 280px; /* 最小幅も少し短く */
        height: 40px;
        z-index: calc(var(--z-content) + 10);
        box-sizing: border-box;
    }

    /* システム開発プロジェクトの推進支援のみ幅を広げる */
    .service-detail-container-wide .service-sub-background-mobile-wrapper {
        left: 1% !important;
        width: 99% !important;
        min-width: auto !important;
        height: auto !important;
        min-height: 40px;
    }

    .service-detail-container-wide .service-sub-background-mobile {
        font-size: 16px;
        white-space: normal;
        line-height: 1.2;
        height: auto;
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .service-sub-background-mobile {
        position: absolute;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        height: 40px;
        padding-left: calc(60px - 2em);
        padding-right: 20px;
        padding-top: 3px;
        padding-bottom: 3px;
        background-color: #3759A4;
        clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
        display: flex;
        align-items: center;
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        box-sizing: border-box;
    }

    .service-detail-text {
        position: static;
        left: auto;
        top: auto;
        right: auto;
        margin: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        order: 3;
        padding-top: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sub-background {
        left: 20px;
        right: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0;
        margin-bottom: 0;
        gap: 5px;
    }

    .footer {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* スマホレイアウト：コピーライトの下に行間分の余白を追加 */
    .copyright {
        margin-bottom: 20px;
    }

    /* スマホレイアウト：「社名」「所在地」「代表」「設立」「取引金融機関」のタイトルと内容の間の余白を左に詰める */
    .footer-info-row {
        grid-template-columns: 60px 1fr;
        gap: 5px;
    }

    /* 「取引金融機関」のタイトル部分を改行しないように幅を広げる */
    .footer-info-row:nth-child(5) {
        grid-template-columns: 100px 1fr;
    }

    /* Prevent horizontal scroll on mobile */
    /* スマホレイアウト時、斜線を表示するためにoverflowをvisibleに */
    .approach-diagonal-line {
        overflow: visible !important; /* 上段の斜線を表示 */
        height: 100% !important;
    }
    
    .approach-diagonal-line-reverse {
        overflow: visible !important; /* 下段の斜線を表示 */
        height: 150% !important; /* スマホ時は少し短めに */
    }
    
    /* スマホ時の上段斜線（元の設定に戻す） */
    .approach-diagonal-line::before {
        bottom: 350px !important; /* 元の設定に戻す */
        left: -50vw !important;
        width: 300vw !important; /* 元の設定に戻す */
        height: 300px !important;
        transform: rotate(35deg) !important;
        transform-origin: left bottom !important;
    }

    /* スマホ時の下段斜線（折り返し）（元の設定に戻す） */
    .approach-diagonal-line-reverse::before {
        bottom: -500px !important; /* 元の設定に戻す */
        right: -50vw !important;
        width: 300vw !important; /* 元の設定に戻す */
        height: 250px !important;
    }

    /* Services Diagonal Lines - Mobile */
    .services-diagonal-line {
        overflow: visible !important; /* 上段の斜線を表示 */
        height: calc(100% + 1500px) !important; /* スマホ時は少し短めに */
        bottom: 0px !important; /* スマホ時の位置調整 */
    }
    
    .services-diagonal-line::before {
        bottom: 0 !important; /* approachセクションの下端から開始 */
        left: -50vw !important;
        width: 300vw !important;
        height: 250px !important; /* スマホ時は少し細く */
        transform: rotate(35deg) !important;
        transform-origin: left bottom !important;
    }
    
    .services-diagonal-line-reverse {
        overflow: visible !important; /* 下段の斜線を表示 */
        height: 1500px !important; /* スマホ時は少し短めに */
        bottom: -800px !important; /* スマホ時の位置調整 */
    }
    
    .services-diagonal-line-reverse::before {
        bottom: -250px !important; /* 上段のライン（高さ250px）の下から開始 */
        right: -50vw !important;
        width: 300vw !important;
        height: 250px !important; /* スマホ時は少し細く */
        transform: rotate(-35deg) !important;
        transform-origin: right bottom !important;
    }

    /* Employee Partners Section - Mobile */
    .employee-partners-header-box {
        height: auto;
        min-height: 55px;
    }

    .employee-partners-header-right {
        height: auto;
        min-height: 55px;
        padding: 10px 20px;
        font-size: 16px;
        line-height: 1.4;
        white-space: normal;
        display: flex;
        flex-direction: column; /* 縦に並べる */
        align-items: flex-start; /* 左揃え */
        justify-content: center; /* 上下中央揃え */
    }
    
    /* サブタイトルがない場合（事業提携パートナー企業など）は横並びで上下中央 */
    .employee-partners-header-right.employee-partners-header-single {
        flex-direction: row;
        align-items: center; /* 上下中央揃え */
        justify-content: flex-start; /* 左揃え */
    }

    .employee-partners-header-left {
        height: auto;
        min-height: 55px;
    }

    .employee-partners-box {
        padding: 20px;
    }

    .employee-partners-item {
        margin-bottom: 20px;
    }

    .employee-partners-item-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .employee-partners-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-weight: bold;
        line-break: auto; /* 改行を許可 */
    }

    /* CTA Section - Mobile */
    .cta-content {
        margin-left: 0;
        margin-right: 0;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-text {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .cta-box .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: var(--breakpoint-mobile-small)) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Privacy Policy Page Styles */
.privacy-policy {
    padding: var(--section-padding-vertical) 0;
    min-height: calc(100vh - 160px);
}

.privacy-policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-policy-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 60px;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.privacy-policy-body {
    line-height: 1.8;
}

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

.privacy-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #333;
}

.privacy-section-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.privacy-list li {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
}

.privacy-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    font-size: 18px;
    color: #333;
}

.privacy-contact {
    background-color: #f8f8f8;
    padding: 30px;
    margin-top: 25px;
    border-radius: 8px;
}

.privacy-contact-company {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.privacy-contact-address {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.8;
}

.privacy-contact-email {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.privacy-contact-email a {
    color: #0066cc;
    text-decoration: none;
    transition: opacity 0.3s;
}

.privacy-contact-email a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: var(--breakpoint-mobile)) {
    .privacy-policy {
        padding: var(--section-padding-vertical-small) 0;
    }

    .privacy-policy-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .privacy-section {
        margin-bottom: 40px;
    }

    .privacy-section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .privacy-section-text {
        font-size: 15px;
    }

    .privacy-list li {
        font-size: 15px;
    }

    .privacy-contact {
        padding: 20px;
    }

    .privacy-contact-company {
        font-size: 16px;
    }

    .privacy-contact-address,
    .privacy-contact-email {
        font-size: 15px;
    }
}

