/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-bg: #FFFFFF;
    --color-text: #111111;
    --color-gray: #666666;
    --color-gray-light: #F5F5F5;
    /* ティール（緑系） */
    --color-primary: #20B2AA;
    --color-primary-hover: #1A9B94;
    --color-primary-light: #4ECDC4;
    /* マスタードイエロー */
    --color-accent: #F2C94C;
    --color-accent-hover: #E6B83A;
    --color-accent-light: #FFD93D;
    --color-footer-bg: #2C3E50;
    --color-footer-text: #FFFFFF;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 6rem;
    --border-radius: 6px;
    --border-radius-sm: 4px;
    --font-heading: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'MS PGothic', sans-serif;
    --font-body: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'MS PGothic', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 基本背景パターン - 控えめなグリッド */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 斜めの細い線 */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 98px,
            rgba(32, 178, 170, 0.015) 98px,
            rgba(32, 178, 170, 0.015) 100px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 98px,
            rgba(242, 201, 76, 0.01) 98px,
            rgba(242, 201, 76, 0.01) 100px
        ),
        /* 縦横のグリッド */
        linear-gradient(0deg, rgba(32, 178, 170, 0.008) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(32, 178, 170, 0.008) 0.5px, transparent 0.5px);
    background-size: 
        200px 200px,
        200px 200px,
        80px 80px,
        80px 80px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    animation: subtleMove 60s linear infinite;
}

@keyframes subtleMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 200px 200px, -200px -200px, 80px 80px, -80px -80px;
    }
}

body::after {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.4;
}

.logo-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    opacity: 0.8;
}

.logo-link:hover .logo-text {
    color: var(--color-primary-hover);
}

.logo-link:hover .logo-subtitle {
    opacity: 1;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    outline: none;
}

.hamburger:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    transform-origin: center;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    transform-origin: center;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

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

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

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

.nav-cta {
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.2);
}

.nav-cta:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-footer-text);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
    transform: translateY(-1px);
}

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

/* ファーストビュー - 大型MVスライダー */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
}

/* ヒーローセクション - 45度斜線パターン */
.hero {
    --parallax-x: 0px;
    --parallax-y: 0px;
    --pattern-opacity: 0.35;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(32, 178, 170, 0.08) 49%, rgba(32, 178, 170, 0.08) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(242, 201, 76, 0.06) 49%, rgba(242, 201, 76, 0.06) 51%, transparent 52%);
    background-size: 150px 150px, 180px 180px;
    background-position: var(--parallax-x) var(--parallax-y), calc(30px + var(--parallax-x)) calc(30px + var(--parallax-y));
    pointer-events: none;
    z-index: 1;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    animation: parallaxMove 25s linear infinite;
    will-change: background-position, opacity;
}

.hero:hover::before {
    opacity: 0.45;
}

.hero-background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(32, 178, 170, 0.04) 2px,
            rgba(32, 178, 170, 0.04) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(242, 201, 76, 0.03) 2px,
            rgba(242, 201, 76, 0.03) 4px
        );
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    animation: parallaxMove 30s linear infinite reverse;
}

@keyframes parallaxMove {
    0% { 
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        opacity: 0.4;
    }
    100% { 
        transform: translate(50px, 50px);
        opacity: 0.3;
    }
}

/* SVG線のアニメーション効果 */
@keyframes lineGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slide.active .hero-slide-image {
    opacity: 1;
}

.hero-slide-svg,
.hero-slide-photo,
.hero-slide-image picture,
.hero-slide-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-photo {
    filter: brightness(0.95) saturate(1.05);
    transform: scale(1.04);
    transition: transform 8s ease-out;
    will-change: transform;
}

.hero-slide.active .hero-slide-photo {
    animation: kenBurns 12s ease-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1.04) translate(0, 0); }
    100% { transform: scale(1.14) translate(-1.5%, -1%); }
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(100deg, rgba(10, 28, 48, 0.72) 0%, rgba(10, 28, 48, 0.42) 45%, rgba(32, 178, 170, 0.28) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.75rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.04em;
}

.hero-title-line {
    display: block;
    overflow: hidden;
    line-height: 1.25;
}

.hero-title-text {
    white-space: nowrap;
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: heroTextRise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-line:nth-child(1) .hero-title-text { animation-delay: 0.25s; }
.hero-title-line:nth-child(2) .hero-title-text { animation-delay: 0.45s; }

@keyframes heroTextRise {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.hero-subtitle,
.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-subtitle { animation-delay: 0.75s; }
.hero-actions  { animation-delay: 0.9s; }

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

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* スライダーボタン */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(32, 178, 170, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--color-primary);
    backdrop-filter: blur(10px);
    outline: none;
}

.slider-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.3);
}

.slider-btn-prev {
    left: var(--spacing-md);
}

.slider-btn-next {
    right: var(--spacing-md);
}

.hero-slider-controls {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.slider-dot:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.slider-dot.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    outline: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(32, 178, 170, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    border-color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(32, 178, 170, 0.3);
    transform: translateY(-2px);
}

/* KPI実績セクション */
.kpi {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    position: relative;
    z-index: 1;
    overflow: hidden;
    --pattern-opacity: 0.3;
}

/* KPIセクション - グリッドパターン（黒背景用） */
.kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(242, 201, 76, 0.1) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(242, 201, 76, 0.1) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(242, 201, 76, 0.08) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 40px 40px;
    background-position: var(--parallax-x) var(--parallax-y), var(--parallax-x) var(--parallax-y), var(--parallax-x) var(--parallax-y);
    pointer-events: none;
    z-index: 0;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    will-change: background-position, opacity;
}

.kpi:hover::before {
    opacity: 0.5;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.kpi-item {
    text-align: center;
    padding: var(--spacing-md);
    animation: fadeIn 0.8s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-item:hover {
    transform: translateY(-5px);
}

.kpi-icon {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.kpi-item:hover .kpi-icon {
    transform: scale(1.1);
}

.kpi-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.kpi-label {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.kpi-icon {
    color: var(--color-accent);
}

.kpi-icon img {
    width: 48px;
    height: 48px;
    display: block;
    color: var(--color-accent);
    filter: brightness(0) saturate(100%) invert(40%) sepia(95%) saturate(2000%) hue-rotate(200deg) brightness(0.9) contrast(1.1);
}

.kpi .kpi-icon img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.service-icon img {
    width: 40px;
    height: 40px;
    display: block;
    color: var(--color-primary);
    filter: brightness(0) saturate(100%) invert(40%) sepia(95%) saturate(2000%) hue-rotate(200deg) brightness(0.9) contrast(1.1);
}

.slider-btn img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: var(--spacing-xl) auto 0;
    max-width: 800px;
}

/* セクション共通 */
section:not(.hero) {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
    --parallax-x: 0px;
    --parallax-y: 0px;
    --pattern-opacity: 0.3;
}

/* セクション最上部の青いライン */
.section-top-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), var(--color-primary), transparent);
    margin-bottom: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-radius: 2px;
}

.section-top-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* セクション背景パターンの共通スタイル */
section::before {
    will-change: opacity, transform, background-position;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.section-title-en {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.section-title-ja {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gray);
    letter-spacing: 0.05em;
    margin-top: var(--spacing-xs);
}

.section-title-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: var(--spacing-md) auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--color-gray);
    font-size: 1.15rem;
    margin-top: var(--spacing-md);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.section-divider-top {
    height: 2px;
    background: linear-gradient(135deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-divider-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* 事業内容 */
.services {
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
    --pattern-opacity: 0.3;
    background-image: 
        linear-gradient(0deg, rgba(32, 178, 170, 0.02) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(32, 178, 170, 0.02) 0.5px, transparent 0.5px);
    background-size: 60px 60px;
    background-position: 0 0;
}

/* サービスセクション - 画像を参考にした抽象的な線とドットのパターン */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 細かいグリッド */
        linear-gradient(0deg, rgba(32, 178, 170, 0.03) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(32, 178, 170, 0.03) 0.5px, transparent 0.5px),
        /* ドットパターン */
        radial-gradient(circle, rgba(32, 178, 170, 0.04) 1px, transparent 1px),
        radial-gradient(circle, rgba(242, 201, 76, 0.03) 1.5px, transparent 1.5px),
        /* 斜めの線 */
        linear-gradient(45deg, transparent 48%, rgba(32, 178, 170, 0.02) 49%, rgba(32, 178, 170, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(242, 201, 76, 0.02) 49%, rgba(242, 201, 76, 0.02) 51%, transparent 52%),
        /* 接続された線のパターン */
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(32, 178, 170, 0.02) 2px, rgba(32, 178, 170, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(242, 201, 76, 0.015) 2px, rgba(242, 201, 76, 0.015) 4px);
    background-size: 
        80px 80px, 
        80px 80px,
        40px 40px,
        60px 60px,
        120px 120px,
        120px 120px,
        30px 30px,
        30px 30px;
    background-position: 
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y),
        calc(20px + var(--parallax-x)) calc(20px + var(--parallax-y)),
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y);
    pointer-events: none;
    z-index: 0;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    will-change: background-position, opacity;
    animation: patternMove 25s linear infinite;
}

@keyframes patternMove {
    0%, 100% { 
        background-position: 
            0 0, 0 0, 0 0, 20px 20px, 0 0, 0 0, 0 0, 0 0; 
    }
    50% { 
        background-position: 
            15px 15px, -15px -15px, 10px 10px, 30px 30px, 20px 20px, -20px -20px, 5px 5px, -5px -5px; 
    }
}

.services:hover::before {
    opacity: 0.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* =========================================================
   Service — editorial card with badge / eyebrow / arrow link
   ========================================================= */
.service-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: left;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    background-color: var(--color-gray-light);
    border-radius: 8px;
    position: relative;
    isolation: isolate;
    box-shadow: 0 18px 40px -22px rgba(10, 28, 48, 0.35);
}

.service-image picture,
.service-image picture img,
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
    border-radius: 8px;
    filter: brightness(0.98) saturate(1.02);
}

.service-card:hover .service-image img {
    transform: scale(1.06);
    filter: brightness(1.03) saturate(1.08);
}

/* 画像左下のバッジ（旧アイコン枠を置換） */
.service-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px -10px rgba(10, 28, 48, 0.25);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}
.service-card:hover .service-badge {
    transform: translateY(-2px);
    color: var(--color-primary);
}

/* グラデーション下端でテキスト可読性 */
.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(10, 28, 48, 0.32) 100%);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0.9;
}

.service-body {
    padding: 28px 4px 0;
    position: relative;
}

.service-eyebrow {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.service-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    display: inline-block;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-eyebrow::before { width: 40px; }

.service-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 12px;
    padding: 0;
    color: var(--color-text);
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.service-title::before { display: none; }

.service-description {
    color: var(--color-gray);
    line-height: 1.85;
    font-size: 0.95rem;
    padding: 0;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
}

.service-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-text);
    text-transform: uppercase;
    transition: color 0.4s ease;
}
.service-more-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-more { color: var(--color-primary); }
.service-card:hover .service-more-arrow { transform: translateX(6px); }

/* グリッドの余白を広めに */
.services-grid {
    gap: clamp(28px, 4vw, 56px);
}

@media (max-width: 700px) {
    .service-body { padding-top: 20px; }
    .service-title { font-size: 1.2rem; }
}

/* 協会の特徴 */
.features {
    background-color: #F9FAFB;
    position: relative;
    overflow: hidden;
    --pattern-opacity: 0.3;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(32, 178, 170, 0.02) 8px, rgba(32, 178, 170, 0.02) 9px, transparent 9px, transparent 16px),
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(32, 178, 170, 0.02) 8px, rgba(32, 178, 170, 0.02) 9px, transparent 9px, transparent 16px);
    background-size: 50px 50px;
    background-position: 0 0;
}

/* 特徴セクション - 画像を参考にしたネットワーク状のパターン */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 接続された線のネットワークパターン */
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(32, 178, 170, 0.03) 8px, rgba(32, 178, 170, 0.03) 9px, transparent 9px, transparent 16px),
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(32, 178, 170, 0.03) 8px, rgba(32, 178, 170, 0.03) 9px, transparent 9px, transparent 16px),
        /* ドットの接続点 */
        radial-gradient(circle, rgba(32, 178, 170, 0.05) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(242, 201, 76, 0.04) 1px, transparent 1px),
        /* 斜めの接続線 */
        linear-gradient(45deg, transparent 47%, rgba(32, 178, 170, 0.02) 48%, rgba(32, 178, 170, 0.02) 52%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, rgba(242, 201, 76, 0.02) 48%, rgba(242, 201, 76, 0.02) 52%, transparent 53%);
    background-size: 
        50px 50px,
        50px 50px,
        25px 25px,
        35px 35px,
        100px 100px,
        100px 100px;
    background-position: 
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y),
        calc(12px + var(--parallax-x)) calc(12px + var(--parallax-y)),
        var(--parallax-x) var(--parallax-y),
        var(--parallax-x) var(--parallax-y);
    pointer-events: none;
    z-index: 0;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    will-change: background-position, opacity;
    animation: patternNetwork 30s linear infinite;
}

@keyframes patternNetwork {
    0%, 100% { 
        background-position: 
            0 0, 0 0, 0 0, 12px 12px, 0 0, 0 0; 
    }
    50% { 
        background-position: 
            10px 10px, -10px -10px, 5px 5px, 17px 17px, 15px 15px, -15px -15px; 
    }
}

.features:hover::before {
    opacity: 0.4;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(32, 178, 170, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.feature-item:hover {
    transform: translateX(4px) scale(1.01);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.15);
    border-color: var(--color-primary);
}

.feature-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    animation: iconBounce 0.6s ease;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    line-height: 1.4;
    letter-spacing: 0.02em;
    position: relative;
    padding-left: var(--spacing-md);
}

.feature-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.feature-description {
    color: var(--color-gray);
    line-height: 1.9;
    letter-spacing: 0.01em;
}

/* 法人概要 */
.about {
    background-color: var(--color-gray-light);
    position: relative;
    overflow: hidden;
    --pattern-opacity: 0.3;
    padding-bottom: var(--spacing-lg);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(32, 178, 170, 0.04) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(32, 178, 170, 0.04) 0.5px, transparent 0.5px);
    background-size: 60px 60px;
    background-position: var(--parallax-x) var(--parallax-y);
    pointer-events: none;
    z-index: 0;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    will-change: background-position, opacity;
}

.about-content {
    max-width: 1100px;
    margin: var(--spacing-lg) auto 0;
    position: relative;
    z-index: 1;
}

.about-list {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(32, 178, 170, 0.1);
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.1);
    animation: fadeIn 0.8s ease-out;
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: var(--spacing-md);
    row-gap: 0;
}

.about-list dt,
.about-list dd {
    margin: 0;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(32, 178, 170, 0.1);
    min-width: 0;
}

.about-list dt:nth-last-of-type(1),
.about-list dd:nth-last-of-type(1) {
    border-bottom: none;
}

.about-term {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    align-self: start;
}

.about-desc {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.02em;
    word-break: break-word;
}

@media (max-width: 600px) {
    .about-list {
        grid-template-columns: 1fr;
        row-gap: 0;
        padding: var(--spacing-md);
    }
    .about-list dt {
        padding-bottom: 0;
        border-bottom: none;
    }
    .about-list dd {
        padding-top: var(--spacing-xs);
    }
}

/* お問い合わせ */
.contact {
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
    --pattern-opacity: 0.3;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(32, 178, 170, 0.03) 49%, rgba(32, 178, 170, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(242, 201, 76, 0.02) 49%, rgba(242, 201, 76, 0.02) 51%, transparent 52%);
    background-size: 100px 100px;
    background-position: var(--parallax-x) var(--parallax-y), var(--parallax-x) var(--parallax-y);
    pointer-events: none;
    z-index: 0;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    will-change: background-position, opacity;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: var(--spacing-lg) auto 0;
    position: relative;
    z-index: 1;
}

.contact-form {
    background-color: var(--color-bg);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid rgba(32, 178, 170, 0.1);
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.1);
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.02em;
}

.required {
    color: var(--color-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(32, 178, 170, 0.2);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 500;
    display: none;
    min-height: 20px;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00C853;
    border: 1px solid rgba(0, 200, 83, 0.3);
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

/* ニュース */
.news {
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
    --pattern-opacity: 0.3;
}

/* ニュースセクション - ビンテージグリッド */
.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(32, 178, 170, 0.04) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(32, 178, 170, 0.04) 0.5px, transparent 0.5px),
        linear-gradient(45deg, transparent 48%, rgba(242, 201, 76, 0.02) 49%, rgba(242, 201, 76, 0.02) 51%, transparent 52%);
    background-size: 60px 60px, 60px 60px, 40px 40px;
    background-position: var(--parallax-x) var(--parallax-y), var(--parallax-x) var(--parallax-y), var(--parallax-x) var(--parallax-y);
    pointer-events: none;
    z-index: 0;
    opacity: var(--pattern-opacity);
    transition: opacity 0.5s ease, background-position 0.1s ease-out;
    will-change: background-position, opacity;
}

.news:hover::before {
    opacity: 0.4;
}

/* =========================================================
   News — editorial / magazine-style
   ========================================================= */
.news-list {
    list-style: none;
    margin: var(--spacing-lg) auto 0;
    max-width: 960px;
    padding: 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.news-item {
    position: relative;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.news-link {
    --news-pad-y: 28px;
    display: grid;
    grid-template-columns: 72px 96px 110px 1fr 28px;
    grid-template-areas: "index date cat title arrow";
    align-items: center;
    gap: 28px;
    padding: var(--news-pad-y) 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ホバー時に背景が左から流れ込む */
.news-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 178, 170, 0.04), rgba(242, 201, 76, 0.02));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.news-link:hover::before,
.news-link:focus-visible::before { transform: scaleX(1); }

/* 下にアクセント線が伸びる */
.news-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-item:hover::after { transform: scaleX(1); }

.news-index {
    grid-area: index;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(17, 17, 17, 0.22);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    transition: color 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-link:hover .news-index {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.news-date {
    grid-area: date;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.news-date-year {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--color-gray);
    font-variant-numeric: tabular-nums;
}
.news-date-md {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--color-text);
    letter-spacing: 0;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.news-cat {
    grid-area: cat;
    justify-self: start;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid currentColor;
    text-transform: uppercase;
}
.news-cat[data-cat="seminar"] { color: var(--color-primary); }
.news-cat[data-cat="member"]  { color: #C28B00; }
.news-cat[data-cat="report"]  { color: #5B6BC0; }

.news-title {
    grid-area: title;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: 0.02em;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-link:hover .news-title {
    transform: translateX(4px);
}

.news-arrow {
    grid-area: arrow;
    width: 28px;
    height: 28px;
    color: var(--color-gray);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
    transform: translateX(-6px);
    opacity: 0.6;
}
.news-arrow svg { width: 100%; height: 100%; display: block; }
.news-link:hover .news-arrow {
    transform: translateX(0);
    color: var(--color-primary);
    opacity: 1;
}

/* View All ボタン */
.news-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}
.news-viewall {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    padding: 14px 4px;
    position: relative;
}
.news-viewall-line {
    width: 56px;
    height: 1px;
    background-color: currentColor;
    display: inline-block;
    transform-origin: left center;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-viewall:hover { color: var(--color-primary); }
.news-viewall:hover .news-viewall-line { width: 88px; }

@media (max-width: 760px) {
    .news-link {
        grid-template-columns: auto 1fr 24px;
        grid-template-areas:
            "index   cat    arrow"
            "date    title  title";
        gap: 10px 16px;
        padding: 20px 8px;
    }
    .news-index   { font-size: 1.6rem; align-self: center; }
    .news-date-md { font-size: 1.1rem; }
    .news-title   { font-size: 1rem; }
    .news-arrow   { width: 22px; height: 22px; }
}

/* フッター */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
    min-height: auto;
}

.footer-top-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin-bottom: var(--spacing-md);
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.footer-content {
    text-align: center;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-link {
    color: var(--color-footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-link:hover::after {
    width: 80%;
}

.footer-description {
    color: #CCCCCC;
    line-height: 1.8;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-copyright {
    color: #999999;
    font-size: 0.85rem;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.footer-text {
    color: #CCCCCC;
    line-height: 1.8;
    font-size: 0.9rem;
}


/* レスポンシブ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--spacing-md) var(--spacing-md);
        gap: 0;
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        right: 0;
    }

    /* メニューオープン時の背景オーバーレイ */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 98;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
        box-sizing: border-box;
    }

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

    .nav-cta {
        margin-top: var(--spacing-sm);
        width: calc(100% - var(--spacing-md) * 2);
        text-align: center;
        border-radius: var(--border-radius);
    }

    .header-content {
        position: relative;
        width: 100%;
    }

    .logo {
        font-size: 0.95rem;
        max-width: calc(100% - 60px);
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .hero {
        height: 75vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-title-text {
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .section-title-en {
        font-size: 2rem;
    }

    .section-title-ja {
        font-size: 0.95rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        margin-bottom: var(--spacing-md);
    }

    .feature-item {
        flex-direction: column;
        text-align: left;
        padding: var(--spacing-md);
    }

    .feature-title {
        padding-left: var(--spacing-md);
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn-prev {
        left: var(--spacing-sm);
    }

    .slider-btn-next {
        right: var(--spacing-sm);
    }

    .about-term {
        width: 100%;
        display: block;
        margin-bottom: var(--spacing-xs);
    }

    .about-desc {
        width: 100%;
        margin-left: 0;
        display: block;
        margin-bottom: var(--spacing-sm);
    }

    .contact-form {
        padding: var(--spacing-md);
    }

    .kpi-number {
        font-size: 2.5rem;
    }

    .kpi-item {
        padding: var(--spacing-sm);
    }

    .footer-content {
        padding: var(--spacing-md) 0;
        gap: var(--spacing-sm);
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: center;
    }

    .footer-link {
        padding: var(--spacing-xs) 0;
        font-size: 0.85rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* セクション全体のフェードイン */
section:not(.hero) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.hero {
    opacity: 1;
    transform: translateY(0);
}

section:not(.hero).fade-in {
    opacity: 0;
    transform: translateY(40px);
}

section:not(.hero).fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* セクションヘッダーのアニメーション */
.section-header {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 追加の細かいアニメーション */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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

/* アイコンにアニメーション追加 */
.kpi-icon,
.service-icon,
.feature-icon {
    animation: float 3s ease-in-out infinite;
}

.kpi-item:nth-child(2) .kpi-icon {
    animation-delay: 0.2s;
}

.kpi-item:nth-child(3) .kpi-icon {
    animation-delay: 0.4s;
}

.kpi-item:nth-child(4) .kpi-icon {
    animation-delay: 0.6s;
}

.kpi-item:nth-child(5) .kpi-icon {
    animation-delay: 0.8s;
}

.kpi-item:nth-child(6) .kpi-icon {
    animation-delay: 1s;
}

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

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

/* =========================================================
   UI/UX Enhancements — scroll reveal, sticky header, layout
   ========================================================= */

/* スムーズスクロール（アンカー） */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* スクロールリベール（data-reveal属性） */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ヘッダー：スクロールでブラー＋シャドウ強化 */
.header {
    transition: background-color 0.35s ease,
                box-shadow 0.35s ease,
                backdrop-filter 0.35s ease,
                padding 0.35s ease;
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 24px rgba(0, 32, 64, 0.08);
}

/* About セクション：画像とテキストの 2 カラム */
.about-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--spacing-lg, 48px);
    align-items: center;
    max-width: 1100px;
    margin: var(--spacing-lg) auto 0;
}
.about-content-grid .about-list {
    margin: 0;
}

.about-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 28, 48, 0.18);
    isolation: isolate;
}
.about-visual picture,
.about-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-visual:hover img { transform: scale(1.06); }

.about-visual-frame {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    pointer-events: none;
    z-index: 1;
}
.about-visual::after {
    content: '';
    position: absolute;
    left: -18px;
    bottom: -18px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--color-primary, #20B2AA);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.65;
}

@media (max-width: 900px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg, 40px);
    }
    .about-visual {
        max-width: 480px;
        margin: 0 auto;
        aspect-ratio: 4 / 3;
    }
}

/* (service-image::after は上部のService編集ブロックで定義済み) */

/* ボタンのマイクロインタラクション強化 */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
                                rgba(255, 255, 255, 0.35), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* ニュース項目：ホバーで横にスライド＆下線伸長 */
.news-item {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease;
}
.news-item:hover {
    transform: translateX(6px);
    background-color: rgba(32, 178, 170, 0.04);
}

/* KPI 数字を擬似的にカウントアップ後に強調 */
.kpi-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
}
.kpi-item:hover {
    transform: translateY(-4px);
}

/* スライダードット強化 */
.slider-dot {
    transition: transform 0.3s ease, background-color 0.3s ease, width 0.4s ease;
}
.slider-dot.active {
    width: 28px;
    border-radius: 6px;
}

/* セクションタイトル下線：表示時に伸びる */
.section-title-line {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible .section-title-line,
.section-header.is-visible .section-title-line {
    transform: scaleX(1);
}

/* タイトルブロックの初期リベールサポート */
.section-header {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-header.is-visible {
    opacity: 1;
    transform: none;
}

/* スクロールバー（補助） */
::selection { background: rgba(32, 178, 170, 0.25); }

/* Honeypot: スクリーンリーダー含め人間からは見えない */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
