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

:root {
    --color-primary: #FF8C42;
    --color-primary-dark: #E67A30;
    --color-primary-soft: #FFF1E6;
    --color-accent: #22A38B;
    --color-accent-dark: #1B8874;
    --color-accent-soft: #D5F2EC;
    --color-warm: #F97316;
    --color-warm-soft: #FFE8D1;
    --color-text: #0F172A;
    --color-surface: #FFFFFF;
    --color-background: #F8FAFC;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    height: 100%;
}

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

/* ハンバーガーアイコンのアニメーション */
.hamburger-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    border-radius: 1px;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ヘッダーメニューのアニメーション */
#mobile-menu-header {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    overflow: hidden;
}

#mobile-menu-header.show {
    opacity: 1;
    max-height: 600px;
}

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

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

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Swiperカスタムスタイル */
.case-studies-swiper {
    position: relative;
    padding-bottom: 50px;
}

.case-studies-swiper .swiper-slide {
    height: auto;
}

.case-studies-swiper .swiper-pagination {
    bottom: 0;
}

.case-studies-swiper .swiper-pagination-bullet {
    background-color: #14b8a6;
    opacity: 0.5;
}

.case-studies-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.case-studies-swiper .swiper-button-next,
.case-studies-swiper .swiper-button-prev {
    color: #14b8a6;
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.case-studies-swiper .swiper-button-next:after,
.case-studies-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .case-studies-swiper .swiper-button-next,
    .case-studies-swiper .swiper-button-prev {
        display: none;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title-en {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.theme-text-primary {
    color: var(--color-primary);
}

.theme-text-accent {
    color: var(--color-accent);
}

.theme-text-muted {
    color: #475569;
}

.theme-bg-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.theme-bg-accent {
    background-color: var(--color-accent);
    color: #ffffff;
}

.theme-bg-soft {
    background-color: var(--color-primary-soft);
}

.theme-border-primary {
    border-color: var(--color-primary);
}

.theme-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #ffffff;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(51, 84, 195, 0.5);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(34, 163, 139, 0.5);
}

.btn-outline-primary {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -18px rgba(51, 84, 195, 0.45);
}

.section-card {
    background-color: var(--color-surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -32px rgba(15, 23, 42, 0.55);
}

.badge-primary {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

.badge-accent {
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
}

.badge-warm {
    background-color: var(--color-warm-soft);
    color: var(--color-warm);
}
/* 沿革タイムライン用のスタイル */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2rem;
    border-left: 2px solid #e5e7eb;
}
.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -0.5rem;
    top: 0.25rem;
    height: 1rem;
    width: 1rem;
    background-color: white;
    border: 2px solid var(--color-primary);
    border-radius: 9999px;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-content.is-open {
    max-height: none;
}
.accordion-toggle i {
    transition: transform 0.3s ease-in-out;
}
/* 比較表のバッジスタイル */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
}
.badge-blue { background-color: var(--color-primary-soft); color: var(--color-primary); }
.badge-red { background-color: var(--color-warm-soft); color: var(--color-warm); }
.badge-yellow { background-color: #FEF6D8; color: #B45309; }
.badge-green { background-color: var(--color-accent-soft); color: var(--color-accent); }
/* スクロールをスムーズに */
html {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    height: 100%;
}
/* アクティブなタブのスタイル */
.tab-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-soft);
}
.section-bg {
    background-color: var(--color-background);
}
.plan-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.recommended-plan {
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}
.recommended-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-bottom-left-radius: 0.75rem;
}
.table-icon {
    font-weight: 900;
    font-size: 1.25rem;
}
.table-icon-◎ { color: #10b981; }
.table-icon-◯ { color: #3b82f6; }
.table-icon-△ { color: #a8a29e; }
.table-icon-- { color: #e5e7eb; }
.gradient-bg {
    background: linear-gradient(135deg, #4f46e5 0%, #14b8a6 100%);
}
.problem-icon {
    background-color: var(--color-warm-soft);
    color: var(--color-warm);
}
.promise-icon {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}
.wall-icon {
    background-color: var(--color-warm-soft);
    color: var(--color-warm);
}
.form-container {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}
.required-badge {
    background-color: var(--color-warm);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin-left: 8px;
}
.optional-badge {
    background-color: #64748B;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin-left: 8px;
}
.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.form-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(51, 84, 195, 0.2);
}
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    background-color: white;
}
.checkbox-label:has(input:checked) {
    background-color: var(--color-primary-soft);
    border-color: var(--color-primary);
}
.checkbox-label:hover {
    background-color: #f9fafb;
}
.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid var(--color-primary);
    background-color: #ffffff;
    flex-shrink: 0;
}
.checkbox-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.mask-left-blur {
    mask-image: linear-gradient(to right, transparent 0%, black 50%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%, black 100%);
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.shadow-all-sides {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-content.is-open {
    max-height: none;
}

.max-w-980px {
    max-width: 980px;
}

#wall::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #eff6ff; /* bg-blue-50に修正 */
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
}

#comparison-table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: calc(50% - 600px); /* Align right edge with 1200px content width */
    height: 100%;
    background-color: white;
    z-index: 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

#support-process-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 600px); /* Align left edge with content's left edge (1200px / 2) */
    right: 0;
    height: 100%;
    background-color: white;
    z-index: 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

/* レスポンシブなh1スタイル */
h1 {
    font-size: clamp(1.75rem, 8vw, 3.25rem); /* 28px ~ 52px */
    line-height: 1.3;
}

/* h1内のspan（強調部分）のスタイル */
h1 span {
    font-size: clamp(2rem, 10vw, 4rem); /* 32px ~ 64px */
}

/* gradient-textクラス内のspanもレスポンシブに */
h1 .gradient-text,
h1 span.gradient-text {
    font-size: clamp(2rem, 10vw, 3.8rem); /* 32px ~ 61px */
}

/* 特に大きなh1用のクラス */
h1.hero-title {
    font-size: clamp(1.75rem, 8vw, 3.25rem); /* 28px ~ 52px */
}

h1.hero-title span {
    font-size: clamp(2rem, 10vw, 4rem); /* 32px ~ 64px */
}

/* ヒーローセクションのh1特別スタイル */
#main-visual-text-content h1 {
    font-size: clamp(1.5rem, 7vw, 2.75rem); /* 24px ~ 44px */
    line-height: 1.3;
}

#main-visual-text-content h1 span {
    font-size: clamp(1.75rem, 9vw, 3.5rem); /* 28px ~ 56px */
}

/* 他の大きな見出しもレスポンシブに */
h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem); /* 24px ~ 40px */
}

h3 {
    font-size: clamp(1.25rem, 5vw, 2rem); /* 20px ~ 32px */
}

@media (max-width: 767px) {
    h1 {
        font-size: clamp(1.5rem, 7vw, 2rem); /* 24px ~ 32px */
    }
    
    h1 span {
        font-size: clamp(1.75rem, 8vw, 2.5rem); /* 28px ~ 40px */
    }
    
    h1 .gradient-text,
    h1 span.gradient-text {
        font-size: clamp(1.75rem, 8vw, 2.5rem); /* 28px ~ 40px */
    }
    
    #main-visual-text-content h1 {
        font-size: clamp(1.375rem, 6.5vw, 1.875rem); /* 22px ~ 30px */
    }
    
    #main-visual-text-content h1 span {
        font-size: clamp(1.5rem, 7vw, 2.25rem); /* 24px ~ 36px */
    }
}

@media (max-width: 767px) {
    #comparison-table-wrapper::before {
        left: 0;
        right: 0;
        width: 100%;
        border-top-right-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
    }

    #comparison-part2 h3 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    #comparison-part2 p {
        font-size: clamp(1rem, 4.8vw, 1.35rem);
        line-height: 1.8;
    }

    #comparison-table-wrapper table th,
    #comparison-table-wrapper table td {
        font-size: clamp(0.875rem, 3.6vw, 1rem);
    }

    #comparison-table-wrapper table th span,
    #comparison-table-wrapper table td span,
    #comparison-table-wrapper table td div {
        font-size: clamp(0.75rem, 3.2vw, 0.95rem);
    }
    
    /* 比較テーブルのSP版パディング調整 */
    #comparison-table-wrapper table th,
    #comparison-table-wrapper table td {
        padding: 0.75rem 0.5rem;
    }
    
    #comparison-table-wrapper table th:first-child {
        min-width: 80px;
        font-size: clamp(0.75rem, 3vw, 0.875rem);
    }
    
    /* SP版の追加最適化 */
    /* セクションのパディング調整 */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* コンテナのパディング調整 */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* テキストの改行制御 */
    p, li {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    /* 長いテキストの改行 */
    .text-base,
    .text-lg {
        line-height: 1.75;
    }
    
    /* プランカードの調整 */
    #plans .grid > div {
        margin-bottom: 1.5rem;
    }
    
    /* システム導入の壁セクションのSP版調整 */
    #wall .absolute {
        position: relative;
    }
    
    #wall h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}

/* FAQアイテムの余白 */
.faq-item {
    margin-bottom: 1.5rem;
}

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

/* サポートカードのテキスト折り返し */
#support-process ul li {
    display: flex;
    align-items: flex-start;
}

#support-process ul li div {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

#support-process ul li div h4,
#support-process ul li div p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* CTAボタンの台形スタイル */
.cta-button-skew {
    position: relative;
    transform: perspective(400px) rotateY(0deg);
    border-radius: 50px;
    overflow: visible;
}

.cta-button-skew::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: inherit;
    transform: skewX(-2deg);
    border-radius: 50px;
    z-index: -1;
}

.cta-button-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
