/* =====================================================
   BIBox投資LP - メインスタイルシート
   ===================================================== */

/* CSS Variables */
:root {
    /* Main Colors (Green Gradient) */
    --main-color-blue: #059669;
    --main-color-blue-darker: #047857;
    --main-color-purple: #10b981;
    --main-color-purple-darker: #059669;

    /* Accent Colors */
    --accent-color-cyan: #fbbf24;
    --accent-color-yellow: #fcd34d;
    --accent-color-red: #ef4444;

    /* Background Colors */
    --base-color-dark: #0f0f1a;
    --base-color-light: #FFFFFF;
    --base-color-offwhite: #f8f9fc;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --gradient-dark: linear-gradient(135deg, #0f1a14 0%, #1e3a2f 50%, #14532d 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 26, 20, 0.9) 0%, rgba(30, 58, 47, 0.85) 50%, rgba(20, 83, 45, 0.8) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--base-color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Accessibility: Screen reader only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =====================================================
   Container
   ===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.header.scrolled {
    background: var(--gradient-dark);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 14px;
    color: var(--accent-color-cyan);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

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

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



/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-background_pc.webp') center center / cover no-repeat;
    overflow: hidden;
}

/* モバイル用背景画像 */
@media (max-width: 768px) {
    .hero {
        background: url('../images/hero-background_sp.webp') center center / cover no-repeat;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 26, 20, 0.5) 0%, rgba(30, 58, 47, 0.5) 50%, rgba(20, 83, 45, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 20px 60px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-color-cyan);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight-text {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.hero-note {
    font-size: 0.7em;
    vertical-align: super;
}

.hero-note-text {
    font-size: clamp(12px, 1.5vw, 14px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.badge-item i {
    color: var(--accent-color-yellow);
    font-size: 18px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.4);
    transition: all var(--transition-normal);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(79, 70, 229, 0.5);
}

.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.bounce-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* Bounce animations for hero text */
.bounce-1, .bounce-2, .bounce-3 {
    animation: textBounce 0.6s ease;
    animation-fill-mode: both;
}

.bounce-1 { animation-delay: 2.2s; }
.bounce-2 { animation-delay: 2.9s; }
.bounce-3 { animation-delay: 3.5s; }

@keyframes textBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
    padding: 100px 0;
}

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

.section-offwhite {
    background-color: var(--base-color-offwhite);
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--text-light);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

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

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

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* =====================================================
   Button Styles
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   Problems Section
   ===================================================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.problem-card {
    padding: 35px 25px;
    background: var(--base-color-light);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--main-color-purple);
}

.problem-card i {
    font-size: 48px;
    color: var(--main-color-purple);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.problem-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-box {
    text-align: center;
    padding: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: var(--text-light);
}

.solution-box p {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.solution-box .highlight {
    color: var(--accent-color-yellow);
}

.solution-box .btn {
    background: var(--base-color-light);
    color: var(--main-color-purple);
}

.solution-box .btn:hover {
    background: var(--base-color-offwhite);
}

/* =====================================================
   Section Subtitle
   ===================================================== */
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 40px;
}

/* =====================================================
   About Card (トレーラーハウス投資とは)
   ===================================================== */
.about-card {
    background: var(--base-color-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 35px 40px;
    margin-bottom: 50px;
    border-left: 5px solid var(--main-color-purple);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.about-card-header i {
    font-size: 28px;
    color: var(--main-color-purple);
}

.about-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.about-card-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-card-content strong {
    color: var(--main-color-purple);
}

.legal-note {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-note > i {
    font-size: 24px;
    color: var(--main-color-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-note strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.legal-note .source {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .about-card {
        padding: 25px 20px;
    }

    .about-card-header h3 {
        font-size: 18px;
    }

    .legal-note {
        flex-direction: column;
        gap: 10px;
    }

    .legal-note > i {
        font-size: 20px;
    }

    .section-subtitle {
        margin-top: -30px;
        margin-bottom: 30px;
    }
}

.solution-box .btn:hover {
    background: var(--base-color-offwhite);
}

/* =====================================================
   Why BIBox Section
   ===================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-card {
    padding: 35px;
    background: var(--base-color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.why-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.why-icon i {
    font-size: 32px;
    color: var(--text-light);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.why-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   Merits Section (Accordion)
   ===================================================== */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--base-color-light);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    cursor: pointer;
    transition: background var(--transition-normal);
}

.accordion-header:hover {
    background: var(--base-color-offwhite);
}

.accordion-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color-purple);
    min-width: 50px;
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.accordion-title-wrap i {
    font-size: 24px;
    color: var(--main-color-purple);
}

.accordion-title-wrap h3 {
    font-size: 18px;
    font-weight: 600;
}

.accordion-arrow {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.merit-content {
    padding: 0 30px 30px 100px;
}

.merit-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--main-color-purple);
    line-height: 1;
}

.stat-number small {
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.merit-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.merit-list {
    margin-top: 15px;
}

.merit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.merit-list i {
    color: var(--main-color-purple);
    font-size: 18px;
    margin-top: 2px;
}

/* =====================================================
   Scheme Section
   ===================================================== */
.scheme-flow {
    position: relative;
    margin-bottom: 50px;
}

.scroll-hint {
    display: none;
    position: absolute;
    right: 10px;
    top: -30px;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: var(--radius-full);
    font-size: 12px;
    animation: scrollPulse 2s infinite;
    z-index: 10;
}

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

.scheme-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.scheme-step {
    flex-shrink: 0;
    position: relative;
    width: 160px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.scheme-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.scheme-step.highlight {
    background: var(--gradient-primary);
    border-color: transparent;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent-color-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

.step-content i {
    font-size: 32px;
    color: var(--accent-color-cyan);
    margin-bottom: 12px;
}

.scheme-step.highlight .step-content i {
    color: var(--text-light);
}

.step-content h4,
.step-content .step-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
}

.scheme-arrow {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--accent-color-cyan);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.role-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color-cyan);
}

.role-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.role-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color-cyan);
}

/* =====================================================
   Simulation Section
   ===================================================== */
.simulation-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.simulation-input {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-lg);
}

.simulation-input label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.input-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.counter-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 24px;
    transition: all var(--transition-normal);
}

.counter-btn:hover {
    transform: scale(1.1);
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--main-color-purple);
    min-width: 80px;
}

.input-note {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.simulation-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.result-section {
    padding: 30px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-lg);
}

.result-section h4,
.result-section .result-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--main-color-purple);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-row.highlight {
    background: rgba(79, 70, 229, 0.1);
    margin: 10px -15px;
    padding: 15px;
    border-radius: var(--radius-md);
    border-bottom: none;
}

.result-row.final {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.result-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-row.highlight .result-label,
.result-row.final .result-label {
    color: inherit;
    font-weight: 600;
}

.result-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-row.highlight .result-value {
    color: var(--main-color-purple);
}

.result-row.final .result-value {
    color: var(--text-light);
    font-size: 24px;
}

.result-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    color: var(--main-color-purple);
    font-size: 13px;
}

.result-arrow i {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.result-badges {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.simulation-table-wrapper {
    margin-top: 40px;
}

.simulation-table-wrapper h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.table-scroll {
    overflow-x: auto;
}

.simulation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.simulation-table th,
.simulation-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.simulation-table th {
    background: var(--gradient-primary);
    color: var(--text-light);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.simulation-table th:first-child,
.simulation-table td:first-child {
    text-align: center;
}

/* 詳細テーブル用スタイル */
.simulation-table-full {
    font-size: 12px;
}

.simulation-table-full th,
.simulation-table-full td {
    padding: 10px 8px;
    min-width: 80px;
}

.simulation-table-full th {
    font-size: 11px;
    line-height: 1.4;
}

.simulation-table tbody tr:hover {
    background: var(--base-color-offwhite);
}

.simulation-table tbody tr.highlight-row {
    background: rgba(79, 70, 229, 0.1);
}

.simulation-table tbody tr.hidden {
    display: none;
}

/* 節税効果ハイライトセル（1〜4年目） */
.tax-effect-highlight {
    background: rgba(16, 185, 129, 0.15);
    font-weight: 600;
    color: var(--main-color-purple);
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.tax-effect-highlight:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* 節税効果累計ホバーツールチップ */
.tax-effect-highlight::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, var(--main-color-purple) 0%, var(--main-color-purple-darker) 100%);
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.tax-effect-highlight::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--main-color-purple);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.tax-effect-highlight:hover::after,
.tax-effect-highlight:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.table-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-md);
    color: var(--main-color-purple);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.table-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
}

.table-toggle.expanded i {
    transform: rotate(180deg);
}

.simulation-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* =====================================================
   Comparison Section
   ===================================================== */
.comparison-wrapper {
    position: relative;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--base-color-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 130px;
    white-space: nowrap;
}

.comparison-table th {
    background: var(--base-color-offwhite);
    font-weight: 700;
    font-size: 14px;
}

.comparison-table th.highlight {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.comparison-table td {
    font-size: 14px;
}

.comparison-table td.highlight {
    background: rgba(79, 70, 229, 0.05);
    font-weight: 600;
    color: var(--main-color-purple);
}

.comparison-table tbody tr:hover {
    background: var(--base-color-offwhite);
}

/* =====================================================
   Cases Section
   ===================================================== */
.cases-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.case-header i {
    font-size: 24px;
    color: var(--accent-color-cyan);
}

.case-location {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--accent-color-cyan);
    border-radius: var(--radius-full);
    color: var(--text-light);
}

.case-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-tenant {
    font-size: 13px;
    color: var(--accent-color-yellow);
    margin-bottom: 10px;
}

.case-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.partners-section {
    margin-top: 60px;
    text-align: center;
}

.partners-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--accent-color-cyan);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.partner-item {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
}

/* =====================================================
   Cautions Section
   ===================================================== */
.cautions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.caution-card {
    padding: 30px;
    background: var(--base-color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.caution-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.caution-icon.purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--main-color-purple);
}

.caution-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-color-red);
}

.caution-icon i {
    font-size: 28px;
}

.caution-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.caution-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.caution-solution {
    padding: 15px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

.caution-solution strong {
    color: var(--main-color-purple);
}

.caution-summary {
    text-align: center;
    padding: 40px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-xl);
}

.caution-summary p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: var(--base-color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-normal);
}

.faq-question:hover {
    background: var(--base-color-offwhite);
}

.faq-question span {
    flex: 1;
    padding-right: 15px;
}

.faq-question i {
    font-size: 20px;
    color: var(--main-color-purple);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

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

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    padding: 40px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: var(--accent-color-red);
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-color-purple);
}

.form-hint {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

.form-note {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-success {
    text-align: center;
    padding: 60px 40px;
    background: var(--base-color-offwhite);
    border-radius: var(--radius-xl);
}

.contact-success i {
    font-size: 64px;
    color: var(--main-color-purple);
    margin-bottom: 20px;
}

.contact-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-success p {
    color: var(--text-secondary);
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-content {
    text-align: center;
}

.cta-highlight {
    margin-bottom: 40px;
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-color-yellow);
    color: var(--base-color-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.cta-highlight p {
    font-size: 20px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-phone,
.btn-mail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px 40px;
    border-radius: var(--radius-lg);
    min-width: 250px;
}

.btn-phone {
    background: var(--base-color-light);
    color: var(--main-color-purple);
}

.btn-mail {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-phone i,
.btn-mail i {
    font-size: 24px;
}

.btn-phone span,
.btn-mail span {
    font-size: 20px;
    font-weight: 700;
}

.btn-phone small,
.btn-mail small {
    font-size: 12px;
    opacity: 0.7;
}

/* =====================================================
   Company Section
   ===================================================== */
.company-info {
    max-width: 800px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 150px;
    font-weight: 600;
    color: var(--main-color-purple);
    background: var(--base-color-offwhite);
}

.company-table td {
    line-height: 1.8;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--base-color-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info .footer-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-company {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-addresses {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-address-item {
    margin-bottom: 10px;
}

.address-label {
    font-weight: 600;
    color: var(--accent-color-cyan);
    margin-bottom: 5px;
}

.footer-address {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent-color-cyan);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

/* =====================================================
   Mobile Fixed CTA
   ===================================================== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: var(--gradient-dark);
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-cta .btn {
    width: 100%;
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

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

    .cautions-grid {
        grid-template-columns: 1fr;
    }

    .simulation-results {
        grid-template-columns: 1fr;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

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

    .hero-content {
        padding: 100px 20px 40px;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header {
        padding: 20px;
    }

    .accordion-number {
        font-size: 18px;
        min-width: 35px;
    }

    .accordion-title-wrap h3 {
        font-size: 15px;
    }

    .merit-content {
        padding: 0 20px 20px 55px;
    }

    .merit-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .scroll-hint {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .scheme-steps {
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    .scheme-step {
        width: 140px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-phone,
    .btn-mail {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .mobile-cta {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }



    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 5px;
    }

    .company-table td {
        padding-top: 5px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .badge-item {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .badge-item i {
        font-size: 14px;
    }

    /* 1行目: 初年度50%損金計上（1つだけ） */
    .badge-item:nth-child(1) {
        flex-basis: 100%;
    }

    /* 2行目: 20年で234%と10年間収入保証（2つ並べる） */
    .badge-item:nth-child(2),
    .badge-item:nth-child(3) {
        flex-basis: calc(50% - 5px);
    }

    .hero-cta {
        padding: 15px 30px;
        font-size: 16px;
    }

    .solution-box p {
        font-size: 18px;
    }

    .counter-value {
        font-size: 36px;
    }

    .result-value {
        font-size: 16px;
    }

    .simulation-table {
        font-size: 12px;
    }

    .simulation-table th,
    .simulation-table td {
        padding: 10px 8px;
    }

    /* セクションタイトルをスマホで一行に */
    .section-title {
        font-size: 22px;
        white-space: nowrap;
    }

    /* CTA セクションのテキスト調整 */
    .cta-highlight p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* スマホ専用改行 */
    .sp-only {
        display: inline;
    }
}

/* PC・タブレットでスマホ専用改行を非表示 */
.sp-only {
    display: none;
}
