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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    line-height: 1.6;
    color: #20374D;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
    width: 100%;
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header - Transparent */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(32, 55, 77, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header__logo {
    height: 60px;
}

.logo-image {
    height: 100%;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
}

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

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav__link {
    text-decoration: none;
    color: #20374D! important;
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #4A90B8;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4A90B8;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 45px;
    height: 45px;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #20374D !important;
    margin: 2px 0;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    margin: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    margin: 0;
}

/* Mobile Navigation - Fixed */
.mobile-nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: white;
    backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav__list {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav__item {
    border-bottom: 1px solid rgba(0, 153, 255, 0.1);
}

.mobile-nav__link {
    text-decoration: none;
    color: #20374D;
    font-weight: 400;
    font-size: 1.1rem;
    padding: 15px 20px;
    display: block;
    transition: background 0.3s ease;
}

.mobile-nav__link:hover {
    background: #f8f9fa;
    color: #4A90B8;
}

.mobile-nav__cta {
    padding: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    background-color: #f5f8fa; /* 薄いブルー系の背景色 */
    padding-top: 80px ;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 55, 77, 0.05) 0%, rgba(32, 55, 77, 0.2) 100%);
    z-index: 1;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
/* 左右レイアウト */
.hero__row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}
/* 左側：イラスト */
.hero__image-container {
    flex: 1;
    max-width: 45%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(32, 55, 77, 0.15);
    border: 1px solid rgba(32, 55, 77, 0.1);
}
.hero__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.hero__image:hover {
    transform: scale(1.02);
}
/* 右側：コンテンツ */
.hero__content {
    flex: 1;
    max-width: 55%;
    margin-top: 16px;
}
/* タイトル */
.hero__title {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    background-color: rgba(65, 156, 246, 0.9);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}


.hero__title-line {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.hero__title-line {
    display: inline-block;
    position: relative;
}

/* 「ぴたコール」用の特別なスタイル */
.hero__title-line:last-child {
    font-size: 2.4em; /* 他のテキストよりも30%大きく */
    font-weight: 800; /* より太く */
    color: #ffffff; /* メインカラー */
    position: relative;
    display: inline-block;
    padding: 0 5px; /* マーカー用の余白 */
}

/* 「ぴたコール」のマーカー */
.hero__title-line:last-child::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 15px; /* マーカーの高さ */
    background: linear-gradient(transparent 30%, rgba(255, 230, 100, 0.7) 0); /* 黄色いマーカー */
    z-index: -1;
}
/* サブタイトル */
.hero__subtitle-wrapper {
    margin-bottom: 10px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #20374D;
}
.hero__subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: #20374D;
}
/* CTAボタン */
.hero__cta {
    margin-top: 14px;
}
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;    
    background-color: #20374D;
    color: white;
}
.cta-button:hover {
    background-color: white; /* 背景を白に */
    color: #20374D; /* 文字を青に */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 55, 77, 0.4);
}
.cta-button--primary {
    background-color: #20374D;
    color: white;
    box-shadow: 0 4px 15px rgba(32, 55, 77, 0.3);
}
.cta-button--primary:hover {
    background-color: white; /* 背景を白に */
    color: #20374D; /* 文字を青に */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 55, 77, 0.4);
}

/* Section Titles */
.section__title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #20374D;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
    display: block;
    font-family: inherit;
}

.section__title span {
    background: linear-gradient(transparent 65%, #B8D4E3 0);
    display: inline-block;
    padding: 0 5px;
}

.section__subtitle {
    font-size: 1rem;
    color: #4A90B8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
    font-family: inherit;
}

/* Company Section */
/* 会社セクション全体のスタイル */
.company.section {
    padding: 40px 0;
    background-color: #f5f8fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションタイトル - 黒に変更 */
.section__subtitle {
    text-align: center;
    font-size: 18px;
    color: #333333; /* 濃いグレーに変更 */
    margin-bottom: 10px;
    font-weight: 500;
}

.section__title {
    text-align: center;
    font-size: 32px;
    color: #000000; /* 黒に変更 */
    margin-bottom: 20px;
    font-weight: 700;
}

.section__title span {
    position: relative;
    display: inline-block;
}

.section__title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 10px;
    background: linear-gradient(transparent 30%, rgba(255, 230, 100, 0.5) 0);
    z-index: -1;
}

.company__subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.7;
    color: #333333; /* 濃いグレーに変更 */
}

/* 左テキスト・右イラストのレイアウト */
.company__content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.company__text {
    flex: 1.2;
}

.company__image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(32, 55, 77, 0.15);
    border: 1px solid rgba(32, 55, 77, 0.1);
}

.company__banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.company__banner:hover {
    transform: scale(1.02);
}

/* テキストブロックのスタイル - 黒に変更 */
.company__text-block {
    margin-bottom: 25px;
}

.company__heading {
    font-size: 20px;
    font-weight: 600;
    color: #000000; /* 黒に変更 */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.company__description {
    font-size: 15px;
    line-height: 1.8;
    color: #333333; /* 濃いグレーに変更 */
    padding-left: 5px;
}

/* 最後の段落を吹き出しスタイルにする - 背景はブルーのまま、テキストは白 */
.company__text-block:last-child .company__description {
    position: relative;
    background-color: #419cf6; /* 背景色は元のまま */
    color: white; /* 吹き出し内のテキストは白のまま（読みやすさのため） */
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(32, 55, 77, 0.2);
}

/* 吹き出しの矢印部分 */
.company__text-block:last-child .company__description::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #419cf6;
}

/* アニメーション（すでに定義されていると仮定） */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* CTA セクション全体のスタイル */
.cta-section {
    padding: 30px 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CTAボタンのスタイル - ヒーローセクションと同じ */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* プライマリボタン（ヒーローセクションで使用）と統一 */
.cta-button--secondary {
    background-color: #20374D; /* メインカラー */
    color: white;
    box-shadow: 0 4px 15px rgba(32, 55, 77, 0.3);
}

.cta-button--secondary:hover {
    background-color: white; /* 背景を白に */
    color: #20374D; /* 文字を青に */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 55, 77, 0.4);
}

/* アニメーション（すでに定義されていると仮定） */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Process Section - Enhanced Design */
.process__timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process__flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.process__flow::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, #4A90B8 0%, #20374D 50%, #4A90B8 100%);
    border-radius: 2px;
    z-index: 0;
}

.process__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process__number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #20374D 0%, #4A90B8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 400;
    font-family: inherit;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
    border: 4px solid white;
    position: relative;
}

.process__number::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90B8, #20374D);
    z-index: -1;
    opacity: 0.1;
}

.process__step {
    height: 200px; /* 必要に応じて調整 */
    text-align: center;
    width: 100%;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
　　min-height:140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process__step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #20374D;
    font-family: inherit;
}

.step__description {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    font-family: inherit;
}

/* Case Study Section */
.case-study {
    background: #f8f9fa;
}

.case-study__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study__card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-study__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-study__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20374D, #4A90B8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.case-study__title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #20374D;
    font-family: inherit;
}

.case-study__industry {
    color: #5A7A8A;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.case-study__challenge,
.case-study__solution {
    margin-bottom: 20px;
}

.case-study__challenge h4,
.case-study__solution h4 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    color: #000000; /* 文字色は黒 */
    margin-bottom: 15px;
    padding: 0 2px; /* マーカーが文字の両端をはみ出さないように */
    z-index: 1; /* テキストを前面に */
    font-family: inherit;
    background: linear-gradient(transparent 65%, #419cf6 0);
}

.case-study__challenge p,
.case-study__solution p {
    line-height: 1.6;
    color: #000000;
    font-size: 0.9rem;
}

.case-study__solution strong {
    color: #4A90B8;
    font-weight: 400;
    font-size: 1.05rem;
    font-family: inherit;
}

 /* Pricing Section - Table Format with Equal Width */
.pricing {
    background: white;
}
.pricing__table {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background: white;
    table-layout: fixed;
}
.table__header {
    background: #20374D;
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: inherit;
    border: none;
    width: 25%;
}
.table__header--featured {
    background: #419CF6;
    border-top: 7px solid #B8E0F7;
    border-left: 7px solid #B8E0F7;
    border-right: 7px solid #B8E0F7;
}
.table__label {
    background: #F8F9FA;
    padding: 15px 20px;
    color: #000000;
    font-size: 1.1rem;
    border-bottom: 1px solid #E9ECEF;
    font-family: inherit;
    width: 25%;
    text-align: center; /* タイポ修正 */
}
.table__value {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #E9ECEF;
    color: #000000;
    font-size: 1.2rem;
    font-family: inherit;
    width: 25%;
}
.table__value--featured {
    background: rgba(0, 153, 255, 0.05);
    font-weight: 400;
    color: #20374D;
    border-left: 7px solid #B8E0F7;
    border-right: 7px solid #B8E0F7;
    border-top: none;
    border-bottom: none;
}
tbody tr:last-child .table__value--featured {
    border-bottom: 7px solid #B8E0F7;
}
/* Pricing Table Section */
.pricing-table-section {
    margin-top: 50px;
}
.pricing-table-header {
    text-align: center;
    margin-bottom: 30px;
}


/* 料金プランセクション全体 */
.pricing-plan-section {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-plan-header {
    text-align: center;
    margin-bottom: 30px;
}
.pricing-plan__subtitle {
    font-size: 24px;
    color: #20374D;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}
.pricing-plan__subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #20374D;
    opacity: 0.3;
}
/* 料金表コンテナ */
.pricing-plan-table-container {
    margin-bottom: 30px;
}
/* 料金表 */
.pricing-plan-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}
/* プラン列 */
.plan-column {
    width: 50%;
    vertical-align: top;
    padding: 20px;
    border-right: none;
    transition: background-color 0.3s ease;
    border: 1px solid #000; /* 黒の1pxの実線の枠を追加 */ 
}

.plan-column-container {
   display: flex;
   gap:30px;
}

/* 列の間に空白を作る */
.plan-column:first-child {
    padding-right: 30px;
}
.plan-column:last-child {
    padding-left: 30px;
}
/* ホバー効果 - 色変化のみ */
.plan-column:hover {
    background-color: rgba(65, 156, 246, 0.05);
}
.highlight {
    background-color: #f0f8ff; /* 背景色を指定 */
    color:#C60000;
}

.highlight_up{
    background-color: #d2e2f1; /* 背景色を指定 */
    color:#C60000;
}


/* プラン名 */
.plan-name {
    text-align: center;
    font-size: 20px;
    color: #20374D;
    margin: 0 0 15px 0;
}
/* 価格 */
.plan-price {
    text-align: center;
    font-size: 55px;
    font-weight: bold;
    color: #20374D;
    margin-bottom: 20px;
}
.price-note {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}
/* 機能リスト */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-features li {
    padding: 10px 0;
    border-bottom: 1px dashed #E0E0E0;
    color: #C60000;
    transition: background-color 0.3s ease;
    font-size: 25px;
}
/* ホバー効果 - 色変化のみ */
.plan-features li:hover {
    background-color: rgba(65, 156, 246, 0.1);
}
.plan-features li:last-child {
    border-bottom: none;
}
.plan-features strong {
    color: #C60000;
}
/* チェックマーク */
.check-mark {
    color: #20374D;
    font-weight: bold;
    margin-right: 8px;
}
/* 注釈 */
.pricing-notes {
    padding: 15px;
    background-color: #F9F9F9;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    margin-top: 30px;
}

.pricing-notes p {
    margin: 5px 0;
}

.table-notes {
    margin-top: 10px;
    padding-left: 10px;
}

.table-note {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

/* フッター全体のスタイル */
.footer {
    background-color: #20374D;
    color: #ffffff;
    padding: 30px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* リンク部分のスタイル */
.footer__links {
    margin-bottom: 15px;
}

.footer__link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer__separator {
    color: #ffffff;
    margin: 0 10px;
    opacity: 0.7;
}

/* コピーライト部分のスタイル */
.footer__info {
    margin-top: 5px;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .process__flow {
        padding: 0 20px;
    }
    
    .process__flow::before {
        left: 10%;
        right: 10%;
    }
}


@media (max-width: 1150px) {
    .step__title {
        font-size: 1.1rem;
    }
    .step__description {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .hero__row {
        flex-direction: column;
        gap: 30px;
    }

    .step__description {
        font-size: 1rem;
    }
    .process__flow {
        flex-direction: column;
        gap: 40px;
    }
    
    .process__flow::before {
        display: none;
    }
    
    .process__item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }
    
    .process__number {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .process__step {
        text-align: left;
        flex: 1;
        min-width: 550px
    }
    
    .pricing__table {
        font-size: 0.9rem;
    }

    .animate-on-scroll.animated {
        height: auto;
}

@media (max-width: 992px) {
    .hero__title {
        font-size: 20px;
    }
    
    .hero__title-line:last-child {
        font-size: 2.2em;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }

    .process__flow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px 20px;
    }
    
    .process__flow::before {
        display: none; /* 横線を非表示 */
    }
    
    .process__item {
        flex-basis: 45%;
        max-width: 45%;
    }
    
    .process__number {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .process__step {
        height: auto;
        min-height: 150px;
    }
    
    .step__title {
        font-size: 1.2rem;
    }
   .comparison-table {
        font-size: 14px;
    }
    
    .table__header, .table__label, .table__value,.table__header--featured, {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 60px;
        padding-bottom: 10px;
    }
    
    .hero__row {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero__image-container {
        max-width: 80%;
        margin: 0 auto;
        order: 1;
    }
    
    .hero__content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .hero__title {
        font-size: 18px;
    }
    
    .hero__title-line:last-child {
        font-size: 2em;
    }
    
    .hero__subtitle-wrapper {
        text-align: left;
    }   

    .section {
        padding: 60px 0;
    }
    
    
    .company.section {
        padding: 30px 0;
    }
    
    .company__content {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .section__title {
        font-size: 28px;
    }
    
    .company__heading {
        font-size: 18px;
    }
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }

    .case-study__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
  .process__item {
        flex-basis: 100%;
        max-width: 100%;
        position: relative;
        padding-bottom: 40px;
    }
   
    
    .process__number {
        margin-bottom: 20px;
    }
    
    .process__step {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        padding: 25px 20px;
    }
    
    .process__item:last-child {
        padding-bottom: 0;
    }
    
    .cta-button {
        min-width: 280px;
        padding: 20px 40px;
        font-size: 1.2rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .table__header,
    .table__header--featured, {
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .table__label,
    .table__value {
        padding: 12px 10px;
    }
    

   /* 比較表をスクロール可能にする */
    .pricing__table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .comparison-table td,
    .comparison-table th, {
        min-width: 650px; /* テーブルの最小幅を設定 */
        font-size: 13px;
    }
    
    .table__header, .table__label, .table__value {
        padding: 8px 6px;
    }

    .pricing-plan-section {
        padding: 30px 0;
    }
    
    .pricing-plan__subtitle {
        font-size: 20px;
    }
    
    /* プラン列を縦並びに変更 */
    .plan-column-container {
        display: block;
    }
    
    .plan-column {
        width: 100%;
        display: block;
        margin-bottom: 20px;
        border: 1px solid #000;
    }
    
    /* 列の間隔調整を無効化 */
    .plan-column:first-child,
    .plan-column:last-child {
        padding: 20px;
    }
    
    .plan-price {
        font-size: 45px;
    }
    
    .plan-features li {
        font-size: 20px;
    }

    .footer__content {
        flex-direction: column;
        gap: 20px;
        text-align: right;
    }

   .footer {
        padding: 20px 0;
    }
    
    .footer__links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer__separator {
        display: none;
    }

    .pricing-plan-table-container {
        gap: 20px;
    }
    
    .pricing-plan-table {
        width: 100%;
    }
    
    .plan-column {
        padding: 15px;
    }
    
    .plan-name {
        font-size: 18px;
    }
    
    .plan-price {
        font-size: 40px;
    }
}

@media (max-width: 700px) {
    .process__step {
        min-width: auto;  /* min-widthを削除 */
        min-width: unset; /* 別の方法でmin-widthをリセット */
        width: 90%;       /* 幅を割合で指定 */
        max-width: 350px; /* 最大幅を制限 */
    }
}

@media (max-width: 576px) {
    .pricing-plan-table {
        display: block;
    }
    tbody, tr, .plan-column {
        display: block;
        width: 100%;
    }
    .plan-column {
        margin-bottom: 20px;
    }

    .process__number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        border-width: 3px;
    }
    
    .process__step {
        width: 100%;
        padding: 20px 15px;
    }
    
    .step__title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .step__description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 縦の接続線の位置調整 */
    .process__item:not(:last-child)::after {
        top: 60px;
    }
    .pricing-plan-section {
        padding: 20px 0;
    }
    
    .pricing-plan__subtitle {
        font-size: 18px;
    }
    
    .plan-name {
        font-size: 18px;
    }
    
    .plan-price {
        font-size: 40px;
    }
    
    .plan-features li {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .pricing-notes {
        font-size: 12px;
        padding: 10px;
    }

   .table__header,
   .table__label,
   .table__value {
    font-size: 0.9rem;
    }

    .table-note {
     font-size: 0.8rem;
    }

}


@media (max-width: 480px) {
    .hero {
        padding-top: 40px;
    }
    
    .container {
        padding: 15px 15px;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
    
    .hero__subtitle {
        font-size: 13px;
    }

    .hero__row {
    margin-top: 45px;
    }

    .hero__title-line:last-child {
      font-size: 1.5em;
      }

    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .section__subtitle {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        min-width: 250px;
        padding: 18px 35px;
        font-size: 1.1rem;
    }
    
    .process__number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .comparison-table {
        font-size: 0.75rem;
    }
    
    .table__header {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .table__label,
    .table__value {
        padding: 10px 8px;
    }
    
        
    .process__step {
         padding: 10px 5px;
         text-align: left;
         flex: 1;
         min-width: 340px;
    }
    .step__description {
         font-size: 0.6rem;
    }

    .pricing__table {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .comparison-table {
        min-width: 500px; /* さらに小さい画面用 */
        font-size: 12px;
    }
    
    .table__header, .table__label, .table__value {
        padding: 6px 4px;
    }
    
    .plan-column {
        padding: 15px;
    }
    
    .plan-price {
        font-size: 35px;
        margin-bottom: 15px;
    }
    
    .price-note {
        font-size: 12px;
        display: block;
        margin-top: 5px;
    }
}

/* Focus styles for accessibility */
.cta-button:focus,
.nav__link:focus,
.mobile-nav__link:focus {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
} 
