/* ========================================
   Apple-Style Minimalist Design System
   ======================================== */
:root {
    /* Corporate Colors (Orange, Red, Dark Red) */
    --primary-color: #e67e22;
    /* Orange */
    --primary-dark: #d35400;
    /* Dark Orange */
    --corporate-red: #e74c3c;
    /* Red */
    --corporate-dark-red: #c0392b;
    /* Dark Red */

    /* Corporate Gradient (Dark Red -> Red -> Orange) */
    --corporate-gradient: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #e67e22 100%);

    /* Apple-style text colors */
    --text-primary: #111111;
    --text-secondary: #111111;
    /* Changed from #4a4a4f for high contrast */
    --text-light: #222222;
    /* Changed from #66666b for high contrast */
    --text-white: #ffffff;

    /* Clean backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #1d1d1f;

    /* Large, generous spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --spacing-3xl: 8rem;

    /* Clean typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;

    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.0625rem;
    --font-size-lg: 1.1875rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2.25rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4rem;
    --font-size-5xl: 5rem;

    /* Minimal shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.06);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.3s ease-out;
    --transition-base: 0.3s ease-out;
}

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

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

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ========================================
   Global Section Layout: タブをセクション最上部に表示
   ======================================== */
.global-section-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* タブを常にセクションの一番上に表示 */
.global-section-tab {
    order: 1;
    background: transparent;
    color: var(--primary-color);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

/* セクションタイトルはタブの次（タイトルと本文の間は控えめに） */
.global-section-layout > .section-title {
    order: 2;
    text-align: center;
    font-size: clamp(2.4rem, 4vw, 3rem);
    margin-bottom: var(--spacing-xl);
}

/* コンテンツはその下 */
.global-section-content {
    order: 3;
    min-width: 0;
}

.global-section-tab-main {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-color);
}

.global-section-tab-sub {
    display: block;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: capitalize;
    opacity: 0.92;
    color: var(--primary-color);
}

@media (max-width: 980px) {
    .global-section-layout > .section-title {
        text-align: left;
        font-size: clamp(2rem, 6vw, 2.4rem);
        margin-bottom: var(--spacing-lg);
        line-height: 1.2;
    }

    .global-section-tab {
        width: fit-content;
        margin-bottom: var(--spacing-md);
    }
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Buttons - Minimalist
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition:
        transform var(--transition-base),
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
    border: none;
    cursor: pointer;
    letter-spacing: -0.005em;
    transform: translateY(0);
    backface-visibility: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-color);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid rgba(230, 126, 34, 0.5);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: rgba(230, 126, 34, 0.5);
}

.btn-large {
    padding: 13px 28px;
    font-size: var(--font-size-md);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Header - Minimal & Sticky
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    min-height: 80px;
}

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

.nav {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

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

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 700;
    transition: color var(--transition-fast);
    letter-spacing: -0.005em;
    line-height: 1.2;
}

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

.nav-label-ja {
    font-size: 0.9375rem;
    font-weight: 800;
}

.nav-label-en {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

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

.nav-link--cta .nav-label-ja {
    color: var(--primary-color);
    font-weight: 800;
}

.nav-link--cta:hover .nav-label-ja {
    color: var(--primary-dark);
}

.header-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ========================================
   Floating Fusen Menu
   ======================================== */
.floating-fusen-menu {
    position: fixed;
    top: 35%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.fusen-link {
    width: 82px;
    min-height: 122px;
    padding: 10px 8px;
    border-radius: 14px 0 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.fusen-link:hover {
    transform: translateX(-7px);
    filter: brightness(0.98);
}

.fusen-link-instagram {
    background: #ffe9b8;
}

.fusen-link-instagram span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.fusen-link-school {
    background: #fff3c9;
    border-radius: 16px 0 0 16px;
}

.fusen-link-contact {
    background: #ffd9b0;
    padding: 12px 0;
}

.fusen-instagram-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.fusen-school-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
}

.fusen-school-label {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.fusen-contact-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.08em;
}

/* ========================================
   Hero - Key Visual
   ======================================== */
.hero {
    height: calc(100vh - 80px);
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (hover: none) and (pointer: coarse) {
    .hero {
        background-attachment: scroll;
        height: 85vh;
        min-height: 500px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.45) 0%, rgba(20, 10, 5, 0.85) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 0;
    animation: heroOverlayBreath 16s ease-in-out infinite;
}

@keyframes heroOverlayBreath {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.94;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
}

.hero-inner--center {
    align-items: center;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    gap: clamp(1.5rem, 3.5vw, 2.35rem);
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hero-logo {
    height: 90px;
    width: auto;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.hero-catch {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-family: var(--font-primary);
    color: #ffffff;
    margin: 0;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.35),
        0 4px 40px rgba(0, 0, 0, 0.2);
}

.hero-catch-line {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 0.85em, 0);
    filter: blur(6px);
    animation: heroCatchLineIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-catch-line--1 {
    animation-delay: 0.06s;
}

.hero-catch-line--2 {
    animation-delay: 0.2s;
}

.hero-catch-line--3 {
    animation-delay: 0.34s;
}

@keyframes heroCatchLineIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

.hero-subcatch {
    font-size: clamp(1.12rem, 2.2vw, 1.55rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.82;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    max-width: 44em;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    animation: heroSubIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

@keyframes heroSubIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-cta--center {
    justify-content: center;
}

.hero-cta.hero-cta--center {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    animation: heroCtaIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

@keyframes heroCtaIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.hero-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .hero-overlay {
        animation: none;
    }

    .hero-catch-line,
    .hero-subcatch,
    .hero-cta.hero-cta--center {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.hero-description {
    font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0;
    line-height: 1.75;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Sections - Clean spacing
   ======================================== */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    letter-spacing: -0.015em;
    line-height: 1.15;
    font-family: var(--font-primary);
    color: var(--text-primary);
}

/* ========================================
   Clarification Section
   ======================================== */
.clarification {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl) 0;
}

.clarification-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.clarification-line {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.clarification-note {
    text-align: center;
    margin-top: var(--spacing-xl);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Problems Section
   ======================================== */
.problems {
    background: var(--bg-primary);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.problem-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.problem-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.problem-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.problem-icon {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.problem-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 500;
}

/* ========================================
   Solution Section
   ======================================== */
.solution {
    background: var(--bg-secondary);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.solution-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.solution-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.solution-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.solution-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   Flow Section
   ======================================== */
.flow {
    background: var(--bg-primary);
}

.flow-diagram {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    align-items: center;
}

.flow-step {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-xs);
    text-align: center;
    transition: all var(--transition-base);
}

.flow-arrow {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    display: none;
}

.flow-step {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    min-width: 120px;
    text-align: center;
    transition: all var(--transition-base);
}

.flow-step:hover {
    transform: translateY(-2px);
}

.flow-step-highlight {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.flow-step-number {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.flow-step-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.flow-step-sublabel {
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

.flow-arrow {
    font-size: var(--font-size-xl);
    color: var(--text-light);
}

.flow-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Business Model Diagram
   ======================================== */
.business-model-diagram {
    margin-top: var(--spacing-3xl);
    text-align: center;
}

.diagram-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.01em;
}

.diagram-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.diagram-wrapper:hover {
    transform: translateY(-2px);
}

.diagram-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.diagram-caption {
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ========================================
   Exits Section
   ======================================== */
.exits {
    background: var(--bg-secondary);
}

.exits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.exit-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.exit-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.exit-number {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.exit-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.exit-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    max-width: 950px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.service-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.service-list li:last-child {
    border-bottom: none;
}

/* ========================================
   Boundaries Section
   ======================================== */
.boundaries {
    background: var(--bg-secondary);
}

.boundaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.boundary-column {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.boundary-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.boundary-list {
    list-style: none;
    padding: 0;
}

.boundary-list li {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.check {
    color: var(--primary-color);
    font-weight: 600;
}

.cross {
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   Cases Section
   ======================================== */
.cases {
    background: var(--bg-primary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.case-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.case-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.case-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.case-section {
    margin-bottom: var(--spacing-md);
}

.case-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-section p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Team Section
   ======================================== */
.team {
    background: var(--bg-secondary);
}

.team-intro {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto var(--spacing-3xl);
}

.team-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.team-role {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.team-affiliation {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.team-responsibility h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.team-responsibility ul {
    list-style: none;
    padding: 0;
}

.team-responsibility li {
    padding: 4px 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.mv-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.mv-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.mv-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Startup Desk Section
   ======================================== */
.startup-desk {
    background: var(--bg-primary);
}

.desk-intro {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
}

.package-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.package-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.package-featured {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.package-featured .package-title,
.package-featured .package-description {
    color: var(--text-white);
}

.package-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.package-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.desk-conditions {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.conditions-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    background: var(--bg-secondary);
}

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

.faq-item {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-toggle {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Final CTA Section
   ======================================== */
.final-cta {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--spacing-3xl) 0;
}

.final-cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-family: var(--font-secondary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #ffffff;
    color: var(--text-primary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand p {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--spacing-sm);
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;

        /* Slightly larger fonts for readability on mobile */
        --font-size-xs: 0.8125rem;
        --font-size-sm: 0.9375rem;
        --font-size-md: 1rem;
        --font-size-lg: 1.125rem;
        --font-size-xl: 1.375rem;
        --font-size-2xl: 1.75rem;
        --font-size-3xl: 2.5rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .header-cta,
    .nav {
        display: none;
    }

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

    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: var(--spacing-xl) var(--spacing-lg);
        height: 100vh;
        z-index: 999;
    }

    .nav.active .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: flex-start;
    }

    .nav.active .nav-link {
        font-size: 1.25rem;
        font-weight: 700;
        display: block;
        width: 100%;
        padding: var(--spacing-xs) 0;
    }

    .hero {
        height: auto;
        min-height: 360px;
        padding: var(--spacing-xl) 0;
    }

    .hero-inner {
        align-items: flex-start;
    }

    .hero-title-row {
        gap: 1.25rem;
    }

    .hero-catch {
        font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    }

    .hero-catch-line {
        filter: none;
    }

    .hero-subcatch {
        font-size: 1rem;
        animation-delay: 0.35s;
    }

    .hero-description {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-xl);
        padding: 0 var(--spacing-sm);
    }

    .problems-grid,
    .solution-grid,
    .exits-grid,
    .services-grid,
    .boundaries-grid,
    .cases-grid,
    .team-grid,
    .packages-grid,
    .mission-vision {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Better card padding on mobile */
    .problem-card,
    .solution-card,
    .service-card,
    .exit-card,
    .case-card,
    .team-card,
    .package-card,
    .mv-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .flow-diagram {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .flow-step {
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-md);
    }

    .flow-arrow {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
        align-items: center;
    }

    .footer-brand {
        width: 100%;
    }

    .diagram-wrapper {
        padding: var(--spacing-md);
    }

    .diagram-caption {
        font-size: 0.8125rem;
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .final-cta-title {
        font-size: 1.75rem;
    }

    /* Make inputs easier to tap */
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        /* Prevents auto-zoom on iOS */
        padding: 12px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.scroll-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ファーストビュー：内蔵ブラウザ等でIOが遅い・無効でも白画面にならないよう常に表示 */
#hero.scroll-fade {
    opacity: 1;
    transform: none;
}

/* Scroll-linked text fade-up */
.scroll-fade-up-text {
    --fade-progress: 0;
    opacity: var(--fade-progress);
    transform: translateY(calc((1 - var(--fade-progress)) * 26px));
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    will-change: opacity, transform;
}

/* Scroll-linked underline: タイトルテキストの長さに合わせてアンダーラインの幅を調整 */
.scroll-underline-title {
    --underline-progress: 0;
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.22em;
}

/* アンダーラインはタイトル要素の幅（＝テキストの長さ）いっぱいに表示 */
.scroll-underline-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.24em;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transform: scaleX(var(--underline-progress));
    transform-origin: left center;
    transition: transform 0.3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fade-up-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-underline-title {
        --underline-progress: 1;
    }
}

/* ========================================
   Case Study Images & Alignment
   ======================================== */
/* ========================================
   Case Study Images & Alignment
   ======================================== */
.case-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Gradient accent border on hover */
.case-card:hover .case-image-wrapper {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--corporate-red);
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-placeholder {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .case-image-wrapper {
        height: 200px;
    }
}

/* Global Alignment Fixes */
.problems-grid,
.solution-grid,
.cases-grid,
.team-grid,
.mission-vision {
    /* Ensure grids are perfectly centered */
    margin-left: auto;
    margin-right: auto;
    /* Consistent alignment of items */
    align-items: start;
}

/* Ensure cards have equal height in row */
.case-card,
.service-card,
.team-card,
.mv-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Push footer/bottom content to bottom of card if needed */
.case-section:last-child {
    margin-top: auto;
}

/* ========================================
   Team Photos & Links
   ======================================== */
/* ========================================
   Team Photos & Links
   ======================================== */
.team-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    padding: 3px;
    background: transparent;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover .team-photo-wrapper {
    background: var(--corporate-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    /* Creates gap between gradient and photo */
    transition: transform 0.4s ease;
}

.text-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

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

.external-icon {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 2px;
    opacity: 0.6;
}

/* ========================================
   Team Photos
   ======================================== */
.team-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--bg-secondary);
    transition: all var(--transition-base);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.team-photo-link:hover .team-photo-wrapper {
    border-color: var(--primary-color);
}

.team-photo-link:hover .team-photo {
    transform: scale(1.1);
}

.team-name a,
.case-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.team-name a:hover,
.case-title a:hover {
    color: var(--primary-color);
}

.case-link {
    display: block;
}

/* ========================================
   DESIGN IMPROVEMENTS - Premium Elements
   ======================================== */

/* Hero：#hero は上部ブロックで min-height 確保。ここでは横はみ出しのみ制御 */
.hero {
    overflow: hidden;
}

/* Section background differentiation */
.problems {
    background: #fafafa;
    position: relative;
}

.solution {
    background: #fff;
    position: relative;
}

.flow {
    background: #f8f8fa;
    position: relative;
}

.flow::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cases {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
}

.team {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Larger team photos */
.team-photo-wrapper {
    width: 160px !important;
    height: 160px !important;
    border: 4px solid rgba(230, 126, 34, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-photo-link:hover .team-photo-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(230, 126, 34, 0.15);
}

/* Larger momentum logo in case card */
.case-placeholder img {
    height: 80px !important;
}

.case-image-wrapper {
    height: 280px !important;
}

/* Better CTA buttons */
.btn-primary {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    background: transparent;
}

/* Card hover improvements */
.problem-card {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-left-color: #e74c3c;
    background: #fff;
}

.solution-card {
    border-left: 3px solid transparent;
}

.solution-card:hover {
    border-left-color: #27ae60;
    background: #fff;
}

/* Section title improvements（アンダーライン付きの場合は幅はテキストに合わせる） */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title:not(.scroll-underline-title) {
    width: 100%;
}

/* Flow step improvements */
.flow-step-highlight {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.25);
}

/* Final CTA section enhancement（白基調・後から背景画像を差し込みやすく） */
.final-cta {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* ========================================
   Text Button Style
   ======================================== */
.btn-text {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 13px 8px;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary-dark);
    background: rgba(230, 126, 34, 0.08);
}

/* ========================================
   Enhanced Section Backgrounds
   ======================================== */
.problems {
    background: #fafafa;
}

.solution {
    background: #fff;
}

.flow {
    background: linear-gradient(180deg, #f8f8fa 0%, #fff 100%);
}

.cases {
    background: #fff;
}

.team {
    background: #fafafa;
}

/* ========================================
   Enlarged Team Photos
   ======================================== */
.team-photo-wrapper {
    width: 160px !important;
    height: 160px !important;
}

/* ========================================
   UI/UX Micro-improvements
   ======================================== */
.section-title {
    margin-bottom: var(--spacing-xl);
}

.problem-card,
.solution-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.problem-icon,
.solution-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Better visual hierarchy for cards */
.case-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.team-name {
    font-size: 1.375rem;
}

/* Smooth hover transitions */
.case-card,
.team-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover,
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Text Button Style
   ======================================== */
.btn-text {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    font-weight: 500;
}

.btn-text:hover {
    background: rgba(230, 126, 34, 0.08);
    color: var(--primary-dark);
}

/* ========================================
   Enlarged Photos
   ======================================== */
.team-photo-wrapper {
    width: 160px;
    height: 160px;
}

.case-placeholder img {
    height: 80px !important;
    width: auto !important;
}

/* ========================================
   Responsive Grid Fixes
   ======================================== */
@media (max-width: 900px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Momentum Logo Styling
   ======================================== */
.momentum-logo-wrapper {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.momentum-logo {
    height: 260px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   Footer Redesign - Centered & Minimal
   ======================================== */
.footer {
    background: #ffffff;
    color: var(--text-primary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.footer .footer-logo {
    display: flex;
    justify-content: center;
}

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

.footer .footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

.footer .footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer .footer-links a:hover {
    color: var(--primary-color);
}

.footer .footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer .footer-bottom p {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   Additional Polish
   ======================================== */

/* Smoother card hover effects */
.case-card,
.team-card,
.problem-card,
.solution-card,
.flow-step {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Softer section transitions */
section {
    transition: background 0.3s ease;
}

/* Better button focus states */
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Image hover effects for case studies */
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Team photo polish */
.team-photo-wrapper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
    .floating-fusen-menu {
        top: 38%;
        gap: 8px;
    }

    .fusen-link {
        width: 72px;
        min-height: 106px;
        font-size: 0.72rem;
    }
}

@media (max-width: 640px) {
    .floating-fusen-menu {
        top: auto;
        bottom: 12px;
        gap: 6px;
    }

    .fusen-link {
        width: 64px;
        min-height: 90px;
        border-radius: 10px 0 0 10px;
        font-size: 0.66rem;
    }

    .fusen-instagram-logo {
        width: 22px;
        height: 22px;
    }

    .fusen-school-logo {
        width: 22px;
        height: 22px;
    }

    .fusen-school-label {
        margin-top: 4px;
        font-size: 0.66rem;
    }
}

/* ========================================
   Desktop Optimization (2:3 Ratio Screens)
   ======================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 var(--spacing-xl);
    }

    /* デスクトップ：キャッチを大きく */
    .hero-catch {
        font-size: clamp(2.8rem, 5.3vw, 4.8rem);
        line-height: 1.06;
    }

    .hero-subcatch {
        font-size: clamp(1.35rem, 1.75vw, 1.65rem);
    }

    .hero-description {
        font-size: 1.125rem;
        max-width: 700px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Better grid layouts for desktop */
    .problems-grid {
        max-width: 1000px;
        gap: var(--spacing-lg);
    }

    .problem-card {
        padding: var(--spacing-lg);
        min-height: 160px;
    }

    .problem-icon {
        font-size: 2.25rem;
    }

    .problem-text {
        font-size: var(--font-size-md);
    }

    .flow-diagram {
        max-width: 1000px;
        gap: var(--spacing-md);
    }

    .flow-step {
        padding: var(--spacing-md);
    }

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

    .case-image-wrapper {
        height: 280px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }

    .team-photo-wrapper {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 1440px) {
    .hero-catch {
        font-size: clamp(3rem, 4.2vw, 5rem);
        letter-spacing: -0.035em;
    }
}

/* ========================================
   Geometric Line Pattern Backgrounds
   Unified Chevron Pattern - Light Orange
   ======================================== */

/* Shared chevron pattern variable */
.hero,
.problems,
.solution,
.flow,
.cases,
.team {
    position: relative;
    background:
        linear-gradient(135deg, rgba(230, 126, 34, 0.015) 25%, transparent 25%),
        linear-gradient(-135deg, rgba(230, 126, 34, 0.015) 25%, transparent 25%),
        linear-gradient(45deg, rgba(230, 126, 34, 0.015) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(230, 126, 34, 0.015) 25%, transparent 25%),
        #ffffff;
    background-size: 60px 60px;
    background-position: 0 0, 30px 0, 30px -30px, 0 30px;
}

/* Base background unified to white - removed specific section colors */
.problems,
.flow {
    background-color: transparent;
}

/* Final CTA：淡いパターン＋白（画像背景に差し替え予定） */
.final-cta {
    position: relative;
    background:
        linear-gradient(135deg, rgba(230, 126, 34, 0.02) 25%, transparent 25%),
        linear-gradient(-135deg, rgba(230, 126, 34, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, rgba(230, 126, 34, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(230, 126, 34, 0.02) 25%, transparent 25%),
        #ffffff;
    background-size: 60px 60px;
    background-position: 0 0, 30px 0, 30px -30px, 0 30px;
}

/* Footer - clean white */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   Section Lead & Shared Helpers
   ======================================== */
.section-lead {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 680px;
    margin: -1rem auto var(--spacing-2xl);
    line-height: 1.6;
}

.section-emphasis {
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-2xl);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* ========================================
   What We Do – Comparison Table
   ======================================== */
.what-we-do {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
    min-height: 88vh;
    padding: 9.6rem 0;
}

.what-we-do>.container {
    position: relative;
    z-index: 1;
}

.what-we-do .section-title {
    color: var(--text-primary);
}

.what-we-do-message {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 2.05;
    color: var(--text-primary);
}

.what-we-do-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.what-we-do-cta {
    margin-top: var(--spacing-xl);
    text-align: center;
}

@media (max-width: 768px) {
    .what-we-do {
        min-height: 68vh;
        padding: 6.4rem 0;
    }

    .what-we-do-message {
        max-width: 92%;
        line-height: 1.9;
    }
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto var(--spacing-xl);
    max-width: 860px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: var(--font-size-sm);
}

.comparison-table thead th {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 700;
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    text-align: left;
}

.comparison-table thead th:first-child {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    width: 120px;
}

.comparison-table thead .col-old {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.comparison-table thead .col-new {
    background: var(--primary-color);
    color: #fff;
}

.comparison-table tbody tr {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table tbody tr:hover {
    background: rgba(230, 126, 34, 0.03);
}

.comparison-table tbody td {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    line-height: 1.5;
    vertical-align: top;
}

.comparison-table .row-label {
    background: var(--bg-secondary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.comparison-table .col-old td,
.comparison-table tbody td:nth-child(2) {
    color: var(--text-secondary);
}

.comparison-table tbody td:nth-child(3) {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   Process – 4-Week Schedule Table
   ======================================== */
.process {
    background: var(--bg-primary);
}

.process-summary {
    max-width: 860px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.9;
    color: var(--text-primary);
}

.process-summary-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.student-value {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
}

.student-value>.container {
    position: relative;
    z-index: 1;
}

.student-value::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url("media/student-back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.student-value-message {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.9;
    color: var(--text-primary);
}

.student-value-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.student-value-cta {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-kigyo {
    background: #2e7d32;
    color: #ffffff;
}

.btn-kigyo:hover {
    background: #2e7d32;
}

.process-diagram {
    max-width: 980px;
    margin: 0 auto;
}

.process-diagram img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.week-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 860px;
    margin: 0 auto var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--shadow-md);
}

.week-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.week-table thead th {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
}

.week-table tbody tr {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: background var(--transition-fast);
}

.week-table tbody tr:hover {
    background: rgba(230, 126, 34, 0.04);
}

.week-table tbody td {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    line-height: 1.5;
    vertical-align: middle;
}

.week-num {
    white-space: nowrap;
    width: 100px;
}

.week-badge {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-weight: 700;
    font-size: var(--font-size-xs);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(230, 126, 34, 0.25);
}

.deliverable {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: var(--font-size-xs);
}

.process-highlight {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary-color);
}

.process-example {
    font-size: var(--font-size-md);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.process-tagline {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.01em;
}

/* ========================================
   Team – Structure Grid (above member list)
   ======================================== */
.team-structure-grid {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 820px;
    margin: 0 auto var(--spacing-2xl);
    justify-content: center;
    flex-wrap: wrap;
}

.team-structure-card {
    flex: 1;
    min-width: 260px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.team-structure-card:hover {
    border-color: rgba(230, 126, 34, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.team-structure-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.team-structure-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.team-structure-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.team-structure-divider {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.team-tagline {
    text-align: center;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 auto var(--spacing-3xl);
    max-width: 600px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* ========================================
   Cases – Evidence Grid (above case cards)
   ======================================== */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    max-width: 860px;
    margin: 0 auto var(--spacing-3xl);
}

.evidence-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.evidence-card:hover {
    border-color: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.evidence-icon {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

.evidence-title {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.evidence-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Final CTA – Updated copy styles
   ======================================== */
.final-cta-sub {
    text-align: center;
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-2xl);
    letter-spacing: -0.01em;
}

/* ========================================
   Add new sections to the chevron pattern
   ======================================== */
.what-we-do::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
        url("media/bg-shimanami.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.04);
}

.process {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #050505;
    padding: var(--spacing-2xl) 0;
}

.process>.container {
    position: relative;
    z-index: 1;
}

.process::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url("media/mikan-field.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.04);
}

.process .section-title {
    color: #ffffff;
}

.process-summary {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto var(--spacing-lg);
}

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

/* ========================================
   Team Schedule Badge & Summary Blockquote
   ======================================== */
.team-schedule {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0;
}

.team-summary {
    max-width: 760px;
    margin: var(--spacing-2xl) auto 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-left: 3px solid var(--primary-color);
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* ========================================
   Unified Button Interaction (Final)
   ======================================== */
.btn,
a.btn,
button.btn {
    transform: translate3d(0, 0, 0);
    transition: transform 0.18s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
    transform: translate3d(0, -2px, 0);
}

.btn:active,
a.btn:active,
button.btn:active {
    transform: translate3d(0, 0, 0);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

.btn-kigyo,
.btn-kigyo:hover,
.btn-kigyo:focus-visible {
    background: #2e7d32;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.btn-outline,
.btn-outline:hover,
.btn-outline:focus-visible {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* ========================================
   Team Section (Final)
   ======================================== */
.team {
    background: #ffffff;
    color: var(--text-primary);
}

.team.container,
.team .container.team-layout {
    max-width: 1480px;
}

/* 支援体制：PCのみコンテナを広げ、左右余白を抑える（モバイルは共通 .container のまま） */
@media (min-width: 980px) {
    #team > .container {
        max-width: min(100%, 1600px);
        padding-left: clamp(1.25rem, 2.5vw, 2rem);
        padding-right: clamp(1.25rem, 2.5vw, 2rem);
    }
}

.team-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.team-tab {
    background: transparent;
    color: var(--text-primary);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    text-align: left;
    justify-self: start;
}

.team-tab-main {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.team-tab-sub {
    display: block;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: capitalize;
    opacity: 0.92;
}

.team-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.team-member-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.team-member-photo-wrap {
    display: block;
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 3 / 4;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #ececec;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-lg);
}

.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
    letter-spacing: -0.01em;
}

.team-member-detail {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.03rem;
}

.team-card-actions {
    margin-top: auto;
    padding-top: var(--spacing-md);
    width: 100%;
}

/* 実績カードの「詳細を見る」と同系統のライン */
.team-card-more-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

a.team-card-more-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

a.team-card-more-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.35);
}

button.team-card-more-btn:focus-visible:not(:disabled) {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.35);
}

.team-card-more-btn--pending,
.team-card-more-btn--pending:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.team-card-more-btn--pending:hover {
    background: transparent;
    color: var(--primary-color);
}

@media (max-width: 980px) {
    .team-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .team-tab {
        width: fit-content;
    }

    .team-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-lg);
    }

    .team-member-photo-wrap {
        max-width: 200px;
    }
}

@media (max-width: 640px) {
    .team-member-grid {
        grid-template-columns: 1fr;
    }

    .team-member-photo-wrap {
        max-width: 180px;
    }
}

/* ========================================
   Cases Section (Final)
   ======================================== */
/* 背景写真は #cases の background-image を維持（白ベタ指定で画像が消えるのを防ぐ） */
#cases.cases {
    background-color: transparent;
}

#cases .container.cases-layout {
    max-width: 1480px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

#cases .cases-tab {
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    justify-self: start;
}

#cases .cases-tab-main {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
}

#cases .cases-tab-sub {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: capitalize;
    color: var(--text-secondary);
}

#cases .cases-grid {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

#cases .case-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

#cases .case-card:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 126, 34, 0.28);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

#cases .case-row {
    display: grid;
    grid-template-columns: minmax(320px, 430px) 1fr;
    align-items: stretch;
    gap: var(--spacing-lg);
}

#cases .case-row-image-link {
    display: block;
}

#cases .case-image-wrapper,
#cases .momentum-logo-wrapper {
    height: 100% !important;
    min-height: 240px;
    aspect-ratio: auto;
    margin-bottom: 0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
}

#cases .case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cases .momentum-logo {
    width: min(64%, 260px);
    height: auto;
}

#cases .case-title {
    font-size: 1.45rem;
    margin-bottom: var(--spacing-sm);
}

#cases .case-row-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#cases .case-row-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

@media (max-width: 980px) {
    #cases .container.cases-layout {
        grid-template-columns: 1fr;
    }

    #cases .cases-tab {
        width: fit-content;
    }

    #cases .case-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    #cases .case-image-wrapper {
        min-height: 210px;
    }
}

@media (max-width: 640px) {
    #cases .case-image-wrapper {
        min-height: 180px;
    }
}

/* ========================================
   Contact Section (Final)
   ======================================== */
#contact.final-cta {
    background: var(--bg-primary);
    color: var(--text-primary);
}

#contact.final-cta::before {
    display: none;
}

#contact .final-cta-title.contact-main-title {
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    color: var(--text-primary);
}

#contact .final-cta-sub {
    display: none;
}


/* ========================================
   Hero – BtoB Split Layout
   ======================================== */
.hero--split {
    background: #ffffff;
    height: auto;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: visible;
}

.hero--split .hero-overlay {
    display: none;
}

.hero-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: var(--spacing-3xl) 0;
}

.hero-split-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0;
}

.hero--split .hero-catch {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: none;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.03em;
}

.hero--split .hero-subcatch {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    font-weight: 400;
    color: var(--text-secondary);
    text-shadow: none;
    margin: 0;
    line-height: 1.75;
}

.hero--split .hero-description {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    text-shadow: none;
    margin: 0;
    line-height: 1.7;
}

.hero--split .hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: var(--spacing-xs);
}

.hero-split-visual {
    position: relative;
}

.hero-split-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.hero-split-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-badge-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.hero-badge-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero--split .btn-outline {
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    background: transparent;
}

.hero--split .btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .hero--split {
        min-height: auto;
    }

    .hero-split-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: var(--spacing-2xl);
        padding: var(--spacing-2xl) 0;
    }

    .hero--split .hero-catch {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-split-img {
        height: 320px;
    }

    .hero-split-badge {
        bottom: -12px;
        left: 12px;
    }
}

@media (max-width: 640px) {
    .hero--split .hero-cta {
        flex-direction: column;
    }

    .hero-split-img {
        height: 240px;
    }
}

/* ========================================
   About Section – Points (3カード)
   ======================================== */
/* ========================================
   About Section (地域未来戦略室) Redesign
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

.about-grid-left {
    position: relative;
}

.about-lead {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.02em;
    margin: 0;
}

.about-highlight {
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(transparent 60%, rgba(230, 126, 34, 0.2) 60%);
}

.about-grid-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-text-block {
    background: #fafafa;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-text-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.about-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 860px;
    margin: 0 auto var(--spacing-2xl);
}

.about-point-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.about-point-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.about-point-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--primary-color);
    opacity: 0.55;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.about-point-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.45;
}

.about-point-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .about-points {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ========================================
   Pillars Section (三本柱)
   ======================================== */
.pillars {
    background: #ffffff;
    color: var(--text-primary);
}

.pillars .section-title {
    color: var(--text-primary);
}

.pillars .scroll-underline-title::after {
    background: var(--primary-color);
}

.pillars .section-lead {
    color: #141414;
    font-weight: 800;
    max-width: min(920px, 100%);
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
    line-height: 1.82;
    letter-spacing: -0.01em;
}

.pillars-lead-br {
    display: none;
}

@media (min-width: 640px) {
    .pillars-lead-br {
        display: inline;
    }
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
    max-width: min(52rem, 100%);
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1320px;
        gap: clamp(1.25rem, 2.2vw, 2rem);
        align-items: stretch;
    }
}

.pillar-card {
    background: #f7f7f6;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    transition:
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    align-self: stretch;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.pillar-card:hover {
    border-color: rgba(230, 126, 34, 0.55);
    background: linear-gradient(165deg, #fffdf9 0%, #faf8f5 45%, #ffffff 100%);
    box-shadow:
        0 20px 40px rgba(230, 126, 34, 0.14),
        0 0 0 1px rgba(230, 126, 34, 0.12);
    transform: translateY(-6px);
}

.pillar-card--featured {
    border-color: rgba(230, 126, 34, 0.2);
    background: #f7f7f6;
    box-shadow: 0 12px 36px rgba(230, 126, 34, 0.07);
}

.pillar-card--featured:hover {
    border-color: rgba(230, 126, 34, 0.55);
    background: linear-gradient(165deg, #fffdf9 0%, #faf8f5 45%, #ffffff 100%);
}

.pillar-card__preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}

.pillar-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.pillar-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.35s ease;
}

.pillar-card:hover .pillar-card__media::after {
    opacity: 0.55;
}

.pillar-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-card__img {
    transform: scale(1.06);
}

.pillar-card__preview-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.85rem, 2vw, 1.15rem);
    padding: clamp(1.15rem, 2.5vw, 1.45rem) clamp(1.2rem, 2.5vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.55rem);
    min-height: 11rem;
}

.pillar-card__more {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 0.65rem 1rem;
    min-height: 48px;
    border-width: 2px;
    border-color: rgba(230, 126, 34, 0.45);
    color: #b84a0a;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.pillar-card:hover .pillar-card__more {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(230, 126, 34, 0.35);
}

.pillar-card__detail-source {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .pillar-card,
    .pillar-card__img,
    .pillar-card__media::after {
        transition: none;
    }

    .pillar-card:hover {
        transform: none;
    }

    .pillar-card:hover .pillar-card__img {
        transform: none;
    }
}

/* ラベル：番号＋区切り＋英字のチップ */
.pillar-label-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.85rem 0.28rem 0.45rem;
    border-radius: 999px;
    width: fit-content;
    background: linear-gradient(145deg, #ffffff 0%, #fff9f2 48%, #fff4e8 100%);
    border: 1px solid rgba(230, 126, 34, 0.38);
    box-shadow:
        0 2px 10px rgba(230, 126, 34, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pillar-label-tag__index {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #d35400;
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: var(--font-primary);
}

.pillar-label-tag__rule {
    width: 1px;
    align-self: stretch;
    min-height: 1.25rem;
    background: linear-gradient(
        180deg,
        rgba(230, 126, 34, 0),
        rgba(230, 126, 34, 0.45),
        rgba(230, 126, 34, 0)
    );
}

.pillar-label-tag__en {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
}

/* プレビュー内タイトル：3枚でサイズ統一 */
.pillar-card__preview-inner .pillar-title {
    font-size: clamp(1.18rem, 1.65vw, 1.38rem);
    line-height: 1.4;
}

.pillar-title {
    font-weight: 800;
    color: #111111;
    margin: 0;
    text-wrap: balance;
}

.pillar-title-subline {
    font-weight: inherit;
}

.pillar-body-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* 本文は通常ウェイト（説明文の太字は解除） */
.pillar-body {
    font-weight: 400;
    color: #3a3a3a;
    line-height: 1.82;
    margin: 0;
}

/* 先頭リード：太字・純黒（各カード modifier の font-size は下で指定） */
.pillar-body--lead {
    font-weight: 700;
    color: #000000;
}

.pillar-results {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-results li {
    font-weight: 400;
    color: #3d3d3d;
    padding-left: 1.15em;
    position: relative;
    line-height: 1.55;
}

.pillar-results li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* modifier の .pillar-body より確実にリードを純黒・太字に */
.pillar-card--t1 .pillar-body.pillar-body--lead,
.pillar-card--t2 .pillar-body.pillar-body--lead,
.pillar-card--t3 .pillar-body.pillar-body--lead {
    color: #000000;
    font-weight: 700;
}

/* ─── 三本柱：詳細モーダル ─── */
body.pillar-modal-open {
    overflow: hidden;
}

.pillar-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 4vw, 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.32s ease,
        visibility 0.32s ease;
}

.pillar-detail-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pillar-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 16, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pillar-detail-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    max-height: min(92vh, 820px);
    background: #fcfcfc;
    border-radius: 24px;
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-detail-modal.is-open .pillar-detail-modal__panel {
    transform: translateY(0) scale(1);
}

.pillar-detail-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.pillar-detail-modal__close:hover {
    background: var(--primary-color);
    color: #fff;
}

.pillar-detail-modal__eyebrow {
    margin: 0;
    padding: 1.45rem 3.25rem 0 1.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c45a12;
}

.pillar-detail-modal__title {
    margin: 0;
    padding: 0.55rem 3.25rem 1rem 1.65rem;
    font-size: clamp(1.28rem, 2.8vw, 1.68rem);
    font-weight: 800;
    line-height: 1.4;
    color: #0a0a0a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.pillar-detail-modal__scroller {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.pillar-detail-modal__body {
    padding: 0 0 1.85rem;
}

.pillar-detail-modal__hero {
    margin: 0;
    padding: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    overflow: hidden;
    background: #eaeaea;
}

.pillar-detail-modal__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pillar-detail-modal__body .pillar-body-stack {
    gap: 1.1rem;
    padding: 1.35rem 1.65rem 0;
}

.pillar-detail-modal__body .pillar-body {
    font-size: 1.08rem;
    line-height: 1.88;
    color: #111111;
    font-weight: 400;
}

.pillar-detail-modal__body .pillar-body--lead {
    font-size: 1.14rem;
    font-weight: 700;
    color: #000000;
}

.pillar-detail-modal__body .pillar-results {
    margin-top: 1.35rem;
    padding: 1.25rem 1.65rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 0.65rem;
}

.pillar-detail-modal__body .pillar-results li {
    font-size: 1.04rem;
    line-height: 1.58;
    color: #141414;
    font-weight: 500;
}

@media (max-width: 480px) {
    .pillar-detail-modal__title {
        padding-right: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pillar-detail-modal,
    .pillar-detail-modal__panel {
        transition: none;
    }

    .pillar-detail-modal__panel {
        transform: none;
    }

    .pillar-detail-modal.is-open .pillar-detail-modal__panel {
        transform: none;
    }
}

.pillar-figure {
    margin: var(--spacing-md) 0 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.pillar-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease-out;
}

.pillar-card:hover .pillar-img {
    transform: scale(1.03);
}

.pillar-caption {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    letter-spacing: 0.01em;
}

/* ========================================
   Consulting Section (こんなご相談に)
   ======================================== */
/* ========================================
   Site Wrapper (for safe sticky scroll)
   ======================================== */
.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ========================================
   Apple-Style Sticky Scroll Section (For You)
   ======================================== */
.apple-style-section {
    background-color: var(--bg-primary);
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    position: relative;
}

.consulting-intro {
    margin-bottom: var(--spacing-3xl);
}

.sticky-scroll-container {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .sticky-scroll-container {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--spacing-lg);
        gap: var(--spacing-xl);
    }
}

.sticky-media-col {
    position: sticky;
    top: 15vh;
    /* Stick 15% from top */
    width: 100%;
    height: 60vh;
    z-index: 10;
    margin-bottom: calc(var(--spacing-xl) * 2);
    /* Extra space before text starts on mobile */
}

@media (min-width: 992px) {
    .sticky-media-col {
        width: 50%;
        height: 70vh;
        margin-bottom: 0;
    }
}

.media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    /* Dimmed background */
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.media-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.media-item.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.scroll-text-col {
    width: 100%;
    padding: 0 var(--spacing-md);
}

@media (min-width: 992px) {
    .scroll-text-col {
        width: 50%;
        padding: 10vh 0 30vh 0;
        /* Add scroll space */
    }
}

.text-item {
    margin-bottom: 60vh;
    /* Massive space to force scrolling */
    opacity: 0.2;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-item.active {
    opacity: 1;
    transform: translateY(0);
}

.text-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-desc {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

.consulting-cta-wrapper {
    margin-top: 10vh;
    padding-bottom: 20vh;
    text-align: left;
}

@media (max-width: 991px) {
    .consulting-cta-wrapper {
        text-align: center;
        padding-bottom: 10vh;
    }
}

@media (max-width: 768px) {
    .lg\:hidden {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .lg\:block {
        display: block !important;
    }
}

/* ========================================
   Responsive Line Breaks
   ======================================== */
.br-pc {
    display: block;
}

.br-sp {
    display: none;
}

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

    .br-sp {
        display: block;
    }
}

/* ========================================
   How We Work – 4 Steps
   ======================================== */
.how-we-work {
    background: #ffffff;
}

.how-we-work .section-title {
    text-align: center;
}

/* ========================================
   How We Work – Process Rail
   ======================================== */
.process-rail-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto var(--spacing-2xl);
    max-width: 100vw;
}

.process-rail-viewport {
    overflow: hidden;
    width: 100%;
    padding: var(--spacing-sm) 0 var(--spacing-xl);
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 32px,
        #000 calc(100% - 32px),
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 32px,
        #000 calc(100% - 32px),
        transparent
    );
}

.process-rail-marquee {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    animation: process-rail-marquee-scroll 24s linear infinite;
    will-change: transform;
}

.process-rail-marquee:hover {
    animation-play-state: paused;
}

@keyframes process-rail-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.process-rail-track {
    display: flex;
    flex-shrink: 0;
    gap: var(--spacing-md);
    padding: 0 max(var(--spacing-lg), calc((100vw - 1120px) / 2));
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .process-rail-marquee {
        animation: none;
        width: 100%;
        max-width: 100%;
    }

    .process-rail-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .process-rail-track .process-step-card[aria-hidden="true"] {
        display: none;
    }

    .process-rail-track {
        width: max-content;
    }

    .process-step-card {
        scroll-snap-align: center;
    }
}

.process-step-card {
    flex-shrink: 0;
    width: calc(85vw - var(--spacing-md));
    max-width: 300px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .process-step-card {
        width: min(300px, 28vw);
    }
}

.process-step-figure {
    margin: 0 0 var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.04);
}

.process-step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.process-step-header {
    margin-bottom: var(--spacing-sm);
}

.process-step-num {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: #b84a0a;
    opacity: 1;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.05em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.process-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.process-step-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* CTA */
.about-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(0,0,0,0.06);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Team Section – 実務支援ライン追加
   ======================================== */
.team-content {
    flex: 1;
    min-width: 0;
}

/* 支援体制：白背景向け */
.team-section-title {
    color: var(--text-primary);
}

.team-intro-block {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.team-intro-text {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.team-line-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.team-line-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.team-line-label--support {
    margin-top: var(--spacing-3xl);
}

.team-line-label-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
}

.team-role-tag {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid rgba(230, 126, 34, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.team-role-tag--support {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.team-member-affiliation {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--spacing-sm);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.support-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: border-color 0.3s ease-out, transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.support-card:hover {
    border-color: rgba(230, 126, 34, 0.3);
    transform: translateY(-3px);
}

.support-card-photo-wrap {
    display: block;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #ececec;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.support-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.support-card-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(230, 126, 34, 0.1);
    border: 1.5px dashed rgba(230, 126, 34, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.support-card-initials {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--primary-color);
    opacity: 0.7;
}

.support-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs);
}

.support-dept {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.5;
}

.support-detail {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 860px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Cases – Hover Overlay & Lead
   ======================================== */
.cases-body {
    flex: 1;
    min-width: 0;
}

/* リード文削除後：見出し直下〜サマリーの余白を詰める */
#cases .cases-summary {
    margin-top: 0;
    margin-bottom: 1rem;
}

.case-image-wrapper {
    position: relative;
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.case-row-image-link:hover .case-overlay {
    opacity: 1;
}

.case-overlay-btn {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4);
}

/* ========================================
   Partners Section (共創パートナー)
   ======================================== */
.partners {
    background: var(--bg-secondary);
}

/* サブリードなし：リード文とマーキーの間を最小限に */
#partners .section-lead {
    margin-bottom: var(--spacing-sm);
}

#partners .marquee-wrapper {
    padding: 0;
}

/* 無限スクロールのラッパー */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: var(--spacing-md) 0;
    /* 両端のフェード領域を広げる */
    mask-image: linear-gradient(to right, transparent, black 16%, black 84%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 16%, black 84%, transparent);
}

/* アニメーションするコンテンツ */
.marquee-content {
    display: flex;
    gap: var(--spacing-lg);
    width: max-content;
    animation: marquee 25s linear infinite;
}

/* ホバー時にアニメーションを一時停止 */
.marquee-content:hover {
    animation-play-state: paused;
}

/* パートナーカードの調整 */
.partner-logo-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg) calc(var(--spacing-lg) + 6px);
    min-width: 324px;
    min-height: 152px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
    margin: 0;
}

.partner-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(230, 126, 34, 0.3);
}

.partner-logo-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.partner-logo-img {
    display: block;
    max-height: 135px;
    max-width: 342px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 吉田企画ロゴのみ大きめに表示 */
.partner-logo-card--yoshida {
    min-width: 360px;
    min-height: 188px;
}

.partner-logo-card--yoshida .partner-logo-img {
    max-height: 180px;
    max-width: 396px;
}

/* フジトラベル（横長ロゴ）— 幅・高さの上限を上げて全体を大きく */
.partner-logo-card--fujitravel {
    min-width: 520px;
    min-height: 126px;
}

.partner-logo-card--fujitravel .partner-logo-img {
    max-height: 100px;
    max-width: 500px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--spacing-lg) / 2)));
    }
}

@media (max-width: 640px) {
    .marquee-content {
        gap: var(--spacing-md);
        animation-duration: 20s;
    }

    .partner-logo-card {
        min-width: 234px;
        min-height: 118px;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .partner-logo-img {
        max-height: 98px;
        max-width: 252px;
    }

    .partner-logo-card--yoshida {
        min-width: 252px;
        min-height: 144px;
    }

    .partner-logo-card--yoshida .partner-logo-img {
        max-height: 126px;
        max-width: 270px;
    }

    .partner-logo-card--fujitravel {
        min-width: min(100vw - 2rem, 324px);
        min-height: 90px;
    }

    .partner-logo-card--fujitravel .partner-logo-img {
        max-height: 64px;
        max-width: 306px;
    }
}

/* ========================================
   Contact Section – 更新フォーム
   ======================================== */
.contact-lead {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    text-align: center;
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: 1.75;
}

.contact-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-2xl);
}

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

.form-required {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-left: 4px;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* フォームバリデーション */
.form-field--error {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.06) !important;
}

.form-error-msg {
    font-size: 0.75rem;
    color: #ff6b6b;
    margin: 4px 0 0;
}

.form-success-msg {
    text-align: center;
    font-size: var(--font-size-md);
    color: #1b5e20;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.35);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Co-Creation Section (新: 企業と学生の共創)
   ======================================== */
.cocreation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 980px;
    margin: 0 auto var(--spacing-2xl);
}

.cocreation-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.cocreation-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 126, 34, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cocreation-card-icon {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--primary-color);
    opacity: 0.7;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.cocreation-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.cocreation-card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

@media (max-width: 900px) {
    .cocreation-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========================================
   Process Section – Caption & Note
   ======================================== */
.process-caption {
    display: block;
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.process-note {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
}

/* ========================================
   Org Chart – 階層ツリー構造
   ======================================== */
.org-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 各レベルのラッパー */
.org-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* レベルラベル（バッジ） */
.org-level-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 18px;
    border-radius: 999px;
    margin-bottom: var(--spacing-lg);
    white-space: nowrap;
}

/* カード行（横並び） */
.org-cards-row {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* コネクター（縦線） */
.org-connector {
    width: 2px;
    height: 52px;
    margin: var(--spacing-md) auto;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(230, 126, 34, 0.5) 100%);
    position: relative;
    border-radius: 2px;
}

/* コネクター下端の矢印ドット */
.org-connector::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.7;
}

/* 役職バッジ */
.org-role-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid rgba(230, 126, 34, 0.3);
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.org-role-badge--student {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* カードの幅制御 */
.org-level-top .org-card {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
}

.org-level-middle .org-card {
    min-width: 280px;
    max-width: 360px;
}

.org-level-bottom .org-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
}

/* Top層の写真高さを下げて3カラムに収める */
.org-level-top .team-member-photo-wrap {
    min-height: 300px !important;
}

/* プレースホルダーカード（写真なし） */
.org-card-placeholder {
    width: 100%;
    min-height: 180px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.org-card-placeholder--student {
    min-height: 150px;
}

.org-card-initials {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(230, 126, 34, 0.12);
    border: 1.5px solid rgba(230, 126, 34, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.org-card-placeholder-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Org Chart レスポンシブ */
@media (max-width: 900px) {
    .org-level-top .org-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .org-level-top .org-card {
        max-width: 100%;
        width: 100%;
    }

    .org-level-top .team-member-photo-wrap {
        min-height: 360px !important;
    }

    .org-level-bottom .org-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .org-level-bottom .org-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================================
   Cases Section V2 (Data-driven, Filterable, Modal)
   ============================================================ */

/* 1. Summary Area */
.cases-summary {
    margin: 2rem 0;
}

.cases-summary-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.summary-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    min-width: 140px;
    flex: 1;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.summary-value small {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 4px;
    opacity: 0.8;
}

/* 2. Category Filters */
.cases-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-chip {
    background: #f4f5f7;
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #e9ecef;
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* 3. Grid V2 & Cards */
.cases-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .cases-grid-v2 {
        grid-template-columns: 1fr;
    }
}

.case-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.case-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.case-card-v2-header {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8f9fa;
}

.case-card-v2-imgw {
    width: 100%;
    height: 100%;
    position: relative;
}

.case-card-v2-imgw img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card-v2:hover .case-card-v2-imgw img {
    transform: scale(1.05);
}

.case-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge-cat {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-card-v2-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-target {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.case-short-issues {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

/* 実績カードでは「課題」「成果」行を非表示（JS残存時の保険） */
#cases .case-short-issues {
    display: none !important;
}

.issue-line,
.result-line {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.issue-label {
    background: #ffeee0;
    color: #e67e22;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 2px;
}

.result-label {
    background: #e0f2f1;
    color: #00897b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 2px;
}

.case-detail-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-align: center;
}

.case-detail-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 4. Modal UI */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-main {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden .modal-main {
    transform: translateY(20px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--primary-color);
}

.modal-content-scroll {
    overflow-y: auto;
    flex: 1;
}

.modal-header-img {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f0f0f0;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badges-top {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    display: flex;
    gap: 0.75rem;
}

.modal-body-pad {
    padding: 3rem 4rem;
}

@media (max-width: 768px) {
    .modal-header-img {
        height: 220px;
    }

    .modal-badges-top {
        left: 1.5rem;
        bottom: 1rem;
    }

    .modal-body-pad {
        padding: 2rem 1.5rem;
    }
}

.modal-target-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.modal-detail-block {
    margin-bottom: 2rem;
}

.modal-h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1rem;
    background: var(--primary-color);
    border-radius: 2px;
}

.modal-p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.9;
}

/* ========================================
   Consulting Section – "こんなご相談に対応しています"
   ======================================== */

/* Outer section */
.problem-scroll-section {
    background: #ffffff;
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow in the background */
.problem-scroll-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse at center,
            rgba(230, 126, 34, 0.07) 0%,
            transparent 70%);
    pointer-events: none;
}

/* Intro / sticky-background block */
.sticky-background {
    text-align: center;
    padding: 0 var(--spacing-lg) var(--spacing-3xl);
    max-width: 820px;
    margin: 0 auto;
}

.sticky-background .section-label {
    color: var(--primary-color);
}

.sticky-background .section-title {
    color: var(--text-primary);
}

/* Empathy headline */
.empathy-title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.025em;
}

/* Empathy sub-copy */
.empathy-subtitle {
    font-size: clamp(1.3rem, 2.2vw, 1.55rem);
    color: var(--text-secondary);
    line-height: 1.85;
}

/* Orange highlight with soft glow */
.highlight-glow {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 0 28px rgba(230, 126, 34, 0.35);
}

/* ── Cards Grid ── */
.cards-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 980px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 580px) {
    .cards-container {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-sm);
    }
}

/* Override legacy sticky/absolute positioning from old card rules */
#consulting .problem-card,
.card-1,
.card-2,
.card-3,
.card-4,
.card-5,
.card-6 {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    z-index: auto !important;
}

/* Card itself – light surface */
#consulting .problem-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: left;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease-out,
        border-color 0.3s ease-out,
        background 0.3s ease-out,
        box-shadow 0.3s ease-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#consulting .problem-card:hover {
    transform: translateY(-5px);
    background: #ffffff !important;
    border-color: rgba(230, 126, 34, 0.45) !important;
    border-left-color: rgba(230, 126, 34, 0.45) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(230, 126, 34, 0.15);
}

/* Image area */
.bento-image-wrap {
    width: 100%;
    height: 170px;
    overflow: hidden;
    flex-shrink: 0;
}

.bento-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-out;
}

#consulting .problem-card:hover .bento-image-wrap img {
    transform: scale(1.06);
}

/* Card text body */
.card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Card title */
.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

/* Tag pills */
.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bento-tags .tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.22);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.01em;
}

/* Description text */
.bento-answer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* CTA row (spans all columns) */
.consulting-cta {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--spacing-xl);
}

@media (max-width: 980px) {
    .sticky-background {
        padding: 0 var(--spacing-md) var(--spacing-2xl);
    }
}

@media (max-width: 580px) {
    .sticky-background {
        padding: 0 var(--spacing-sm) var(--spacing-xl);
    }

    .problem-scroll-section {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
    }
}

/* ========================================
   For You Section – "こんなご相談に対応しています"
   完全リデザイン
   ======================================== */

/* 外側セクション */
.for-you-section {
    background: #ffffff;
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

/* 背景のオレンジグロー */
.for-you-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center,
            rgba(230, 126, 34, 0.06) 0%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* イントロブロック */
.for-you-intro {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

/* セクションタイトル */
.for-you-h2 {
    color: var(--text-primary) !important;
    margin-bottom: var(--spacing-xl);
}

/* エンパシーブロック */
.empathy-block {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    position: relative;
}

/* エンパシーブロック左アクセントライン */
.empathy-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    border-radius: 0 2px 2px 0;
}

.empathy-title {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.55;
    margin: 0 0 var(--spacing-sm);
    letter-spacing: -0.02em;
}

.empathy-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0;
}

.highlight-glow {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: none;
}

/* カードスライダーラッパー */
.for-you-slider-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    max-width: 100vw;
}

/* スライダートラック */
.for-you-slider-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* 画面幅に合わせて左右余白をつけつつ、右側は見切れる仕組み */
    padding: var(--spacing-sm) max(var(--spacing-lg), calc((100vw - 1120px) / 2)) var(--spacing-2xl);
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
}

.for-you-slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Apple風コントロール（ドット + 再生） */
.for-you-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: var(--spacing-sm) auto var(--spacing-lg);
    width: fit-content;
    position: relative;
    z-index: 2;
}

.for-you-slider-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.for-you-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(17, 17, 17, 0.3);
    transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
}

.for-you-slider-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #111111;
}

.for-you-slider-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.for-you-slider-play-icon {
    display: block;
    width: 18px;
    height: 18px;
    position: relative;
}

.for-you-slider-play.is-playing .for-you-slider-play-icon::before,
.for-you-slider-play.is-playing .for-you-slider-play-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 18px;
    border-radius: 2px;
    background: #111111;
}

.for-you-slider-play.is-playing .for-you-slider-play-icon::before {
    left: 2px;
}

.for-you-slider-play.is-playing .for-you-slider-play-icon::after {
    right: 2px;
}

.for-you-slider-play:not(.is-playing) .for-you-slider-play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 14px solid #111111;
    transform: translateX(2px);
}

/* カード本体 */
.for-you-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: default;
    transition: transform 0.3s ease-out,
        border-color 0.3s ease-out,
        box-shadow 0.3s ease-out,
        background 0.3s ease-out;

    /* 横スクロール対応の追加 */
    flex-shrink: 0;
    scroll-snap-align: center;
    width: calc(42% - var(--spacing-md));
    max-width: 480px;
}

.for-you-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 126, 34, 0.38);
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(230, 126, 34, 0.12);
}

/* 画像エリア */
.for-you-img-wrap {
    width: 100%;
    height: 240px;
    /* Increased from 168px */
    overflow: hidden;
    flex-shrink: 0;
    background: #ececec;
}

.for-you-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-out;
}

.for-you-card:hover .for-you-img-wrap img {
    transform: scale(1.06);
}

/* カード本文エリア */
.for-you-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* タグピル */
.for-you-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.8rem;
    /* Increased from 0.7rem */
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.22);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

/* カードタイトル */
.for-you-title {
    font-size: 1.3rem;
    /* Increased from 1.0625rem */
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
}

/* カード説明 */
.for-you-text {
    font-size: 1.05rem;
    /* Increased from 0.875rem */
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* CTAラッパー */
.for-you-cta-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 0;
}

/* CTA */
.for-you-cta {
    text-align: center;
    padding-top: var(--spacing-lg);
}

/* ── レスポンシブ ── */
@media (max-width: 960px) {
    .for-you-slider-track {
        gap: var(--spacing-md);
    }
    .for-you-card {
        width: calc(75% - var(--spacing-md));
        scroll-snap-align: center;
    }

    .for-you-slider-controls {
        transform: scale(0.95);
    }

    .for-you-section {
        padding: var(--spacing-2xl) 0;
    }

    .empathy-block {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

@media (max-width: 580px) {
    .for-you-slider-track {
        gap: var(--spacing-sm);
    }
    .for-you-card {
        width: calc(85% - var(--spacing-sm));
        scroll-snap-align: center;
    }

    .for-you-slider-controls {
        transform: scale(0.88);
        transform-origin: center top;
    }

    .for-you-img-wrap {
        height: 180px;
        /* Increased from 150px */
    }

    .for-you-intro {
        margin-bottom: var(--spacing-xl);
    }
}

/* ========================================
   Section Background Photos (except footer)
   ======================================== */
/* 画像は「LPセクション背景写真」を循環利用。文字可読性を保つため淡い白オーバーレイを重ねる */
#hero,
#what-we-do,
#pillars,
#consulting,
#team,
#cases,
#partners,
#contact {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)),
        url("bg-photos/bg-01.png");
}

#what-we-do {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url("bg-photos/bg-02.png");
}

#pillars {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        url("bg-photos/bg-03.png");
}

#consulting {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
        url("bg-photos/bg-04.png");
}

/* .for-you-section の background 指定より確実に写真を載せる */
section#consulting.for-you-section {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
        url("bg-photos/bg-04.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#team {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        url("bg-photos/bg-01.png");
}

#cases {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        url("bg-photos/bg-02.png");
}

#partners {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
        url("bg-photos/bg-03.png");
}

/* Contact: webデザイン風に色味を強めた背景＋フォームカード化 */
#contact {
    background-image:
        linear-gradient(135deg, rgba(255, 248, 236, 0.8), rgba(255, 241, 224, 0.8)),
        url("bg-photos/bg-04.png");
}

#contact .contact-form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 126, 34, 0.25);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.75rem);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

#contact .global-section-tab-main,
#contact .global-section-tab-sub {
    color: #b85f11;
}

/* ========================================
   Team Typography Override (black + bolder)
   ======================================== */
#team .team-section-title,
#team .team-intro-text,
#team .team-line-label-text,
#team .team-member-name,
#team .team-member-affiliation,
#team .team-member-detail,
#team .support-name,
#team .support-dept,
#team .support-detail,
#team .team-role-tag,
#team .team-role-tag--support {
    color: #111111;
}

#team .team-intro-text,
#team .team-line-label-text,
#team .team-member-affiliation,
#team .team-member-detail,
#team .support-dept,
#team .support-detail {
    font-weight: 600;
}

#team .team-member-name,
#team .support-name {
    font-weight: 800;
}

#team .team-role-tag,
#team .team-role-tag--support {
    font-weight: 800;
}

/* 実務支援カードを一回り小さくし、写真を中央配置 */
#team .support-grid {
    gap: var(--spacing-md);
    justify-items: center;
}

#team .support-card {
    width: 100%;
    max-width: 300px;
    padding: var(--spacing-md);
}

#team .support-card-photo-wrap {
    margin-left: auto;
    margin-right: auto;
}

/* 説明文は通常ウェイトに戻す */
#team .team-member-detail,
#team .support-detail {
    font-weight: 400;
}

/* ========================================
   Footer – オレンジ／レッド系グラデーション（最終上書き）
   ======================================== */
.footer {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 42%, #e67e22 100%);
    color: #ffffff;
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 85% 55% at 88% -10%, rgba(255, 255, 255, 0.22), transparent 52%),
        radial-gradient(ellipse 70% 45% at 5% 110%, rgba(0, 0, 0, 0.12), transparent 48%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer .footer-content {
    margin-bottom: var(--spacing-xl);
    font-weight: 600;
}

.footer .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.footer .footer-logo-img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.footer .footer-tagline {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

.footer .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    padding: 0.35em 0.75em;
    border-radius: 999px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.footer .footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: var(--spacing-lg);
}

.footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.03em;
}

/* ========================================
   Final UI/UX Design Polish (content unchanged)
   ======================================== */

/* Global rhythm */
main section {
    scroll-margin-top: 88px;
}

#what-we-do,
#pillars,
#consulting,
#team,
#cases,
#partners,
#contact {
    padding-top: clamp(3.5rem, 5vw, 5.5rem);
    padding-bottom: clamp(3.5rem, 5vw, 5.5rem);
}

.global-section-layout {
    gap: clamp(1.25rem, 2.2vw, 2rem);
}

.global-section-layout > .section-title {
    margin-bottom: clamp(1.25rem, 2.8vw, 2rem);
    line-height: 1.2;
}

.section-lead {
    max-width: 920px;
    line-height: 1.9;
}

/* Header/nav consistency */
.header {
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-link {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

/* Unified card language across sections（#pillars .pillar-card は専用スタイル） */
.about-text-block,
.process-step-card,
.for-you-card,
.team-member-card,
.support-card,
.case-card-v2,
.partner-logo-card,
.contact-form {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
}

.process-step-card,
.for-you-card,
.team-member-card,
.support-card,
.case-card-v2,
.partner-logo-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.about-text-block:hover,
.process-step-card:hover,
.for-you-card:hover,
.team-member-card:hover,
.support-card:hover,
.case-card-v2:hover,
.partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(10, 10, 10, 0.1);
}

/* Button hierarchy polish */
.btn-primary {
    background: linear-gradient(135deg, #df6e15 0%, #e67e22 58%, #f09b4a 100%);
    border: 1px solid rgba(191, 92, 10, 0.24);
    box-shadow: 0 10px 20px rgba(205, 106, 28, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 14px 24px rgba(205, 106, 28, 0.34);
}

/* Cases readability */
#cases .case-card-v2-body {
    gap: 0.55rem;
}

#cases .case-target {
    letter-spacing: 0.06em;
}

/* Contact readability and focus */
#contact .contact-form {
    background: rgba(255, 255, 255, 0.9);
}

#contact input,
#contact textarea {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: rgba(230, 126, 34, 0.65);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.12);
}

/* Mobile balance */
@media (max-width: 860px) {
    .global-section-tab-main {
        font-size: clamp(1.65rem, 7.4vw, 2rem);
    }

    .global-section-tab-sub {
        font-size: 0.9rem;
    }

    .section-lead {
        line-height: 1.75;
    }

    .about-text-block,
    .process-step-card,
    .for-you-card,
    .team-member-card,
    .support-card,
    .case-card-v2,
    .partner-logo-card,
    .contact-form {
        border-radius: 14px;
    }
}

/* ========================================
   About reveal + list-style text blocks
   ======================================== */
#what-we-do .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    text-align: center;
}

#what-we-do .about-grid--expanded {
    align-items: stretch;
    text-align: left;
    max-width: min(1040px, 100%);
    gap: 0;
}

#what-we-do .about-lead {
    margin: 0;
    width: 100%;
    max-height: 24rem;
    opacity: 1;
    overflow: hidden;
    transition:
        opacity 0.45s ease,
        max-height 0.55s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.45s ease;
}

/* 展開後はリードをフェードアウト＋畳んでから詳細へ（重複感を抑える） */
#what-we-do .about-grid--expanded .about-lead {
    opacity: 0;
    max-height: 0;
    margin: 0 !important;
    transform: translateY(-6px);
    pointer-events: none;
}

/* 詳細・プロセス: 高さ＋透過でアニメーション（閉じているときのみ畳む） */
#what-we-do .about-grid:not(.about-grid--expanded) .about-reveal-target {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0;
    transition:
        max-height 0.7s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.5s ease,
        visibility 0.5s ease,
        padding 0.45s ease;
}

#what-we-do .about-reveal-target {
    transition:
        max-height 0.7s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.5s ease,
        visibility 0.5s ease,
        padding 0.45s ease;
}

#what-we-do .about-grid--expanded .about-reveal-target {
    max-height: 5200px;
    opacity: 1;
    visibility: visible;
    padding-top: 0;
    padding-bottom: 0;
}

#what-we-do .about-grid--expanded #aboutDetailsBlock {
    transition-delay: 0.08s;
}

#what-we-do .about-grid--expanded #processRailBlock {
    transition-delay: 0.18s;
    animation: aboutFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.28s;
}

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

#what-we-do .about-grid--expanded .about-details .about-text-block {
    animation: aboutFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#what-we-do .about-grid--expanded .about-details .about-text-block:nth-child(1) {
    animation-delay: 0.12s;
}

#what-we-do .about-grid--expanded .about-details .about-text-block:nth-child(2) {
    animation-delay: 0.22s;
}

#what-we-do .about-grid--expanded .about-details .about-text-block:nth-child(3) {
    animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
    #what-we-do .about-lead,
    #what-we-do .about-reveal-target {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    #what-we-do .about-grid--expanded .about-details .about-text-block,
    #what-we-do .about-grid--expanded #processRailBlock {
        animation: none !important;
    }
}

#what-we-do .about-details {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    width: 100%;
}

#what-we-do .about-grid--expanded .process-rail-wrapper {
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
}

/* ボタンは常にブロック末尾（未展開はリード直下、展開は詳細・プロセスの下） */
#what-we-do .about-reveal-btn-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

#what-we-do .about-grid--expanded .about-reveal-btn-wrap {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#what-we-do .about-reveal-btn {
    min-width: 230px;
    min-height: 56px;
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #df6e15 0%, #e67e22 62%, #ef9b49 100%);
    border: 1px solid rgba(184, 90, 14, 0.35);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(230, 126, 34, 0.3);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease,
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

#what-we-do .about-reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(230, 126, 34, 0.36);
    filter: saturate(1.05);
}

#what-we-do .about-reveal-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(230, 126, 34, 0.22),
        0 16px 30px rgba(230, 126, 34, 0.34);
}

#what-we-do .about-reveal-btn.is-expanded {
    background: #ffffff;
    color: var(--primary-color);
    border-color: rgba(230, 126, 34, 0.45);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* 「カード」ではなく箇条書き風に統一 */
#what-we-do .about-text-block,
#what-we-do .about-text-block:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 1rem !important;
    transform: none !important;
    border-left: 3px solid rgba(230, 126, 34, 0.55) !important;
}

#what-we-do .about-text-heading {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 800;
    color: #d35400;
    margin-bottom: 0.55rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

#what-we-do .about-body {
    margin: 0;
    color: var(--text-secondary);
}

/* About: 旧 .what-we-do の min-height:88vh / 大padding によるボタン下の空白を解消 */
#what-we-do.what-we-do {
    min-height: 0;
    height: auto;
    padding-top: clamp(2rem, 3vw, 3rem);
    padding-bottom: clamp(1.75rem, 2.8vw, 2.75rem);
}