/* =========================================
   1. Base & Variables
   ========================================= */
:root {
    /* 使用されている変数の定義（未定義だと効かないため追加しています） */
    --container-padding-x: 20px;
    --border: #eee;
    --shadow: rgba(0,0,0,0.08);
    --text: #333;
    --muted: #666;
}

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

body {
    font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro',
                 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #007bff;
}

.ahover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. Layout & Utilities
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section-spacing { padding: 80px 0; }
.bg-light-gray { background-color: #f5f5f5; }
.bg-blue { background-color: #0076c8; color: #fff; }

/* Typography */
h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
}

h1 { font-size: 2.8em; color: #fff; }
h2 {
    font-size: 2.5em; /* 統合: Pricingセクションなどと統一 */
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}
.bg-blue h2 { color: #fff; }
h3 { font-size: 1.5em; color: #333; }

p.section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #0076c8;
    color: #fff;
    border: 2px solid #0076c8;
}
.btn-primary:hover {
    background-color: #005a9c;
    border-color: #005a9c;
    text-decoration: none;
}

.btn-secondary {
    background-color: #fff;
    color: #0076c8;
    border: 2px solid #0076c8;
}
.btn-secondary:hover {
    background-color: #e0f2ff;
    text-decoration: none;
}

.btn-white {
    background-color: #fff;
    color: #0076c8;
    border: 2px solid #fff;
}
.btn-white:hover {
    background-color: #eee;
    color: #005a9c;
    text-decoration: none;
}

/* =========================================
   3. Components
   ========================================= */

/* Hero Section */
.hero {
    background: url('image/27488033_s.jpg') no-repeat center center/cover;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content { position: relative; z-index: 1; }
.hero-subtext { font-size: 1.2em; margin-bottom: 15px; font-weight: 300; }
.hero h1 { font-size: 3.5em; margin-bottom: 25px; font-weight: 700; }
.hero-description { font-size: 1.1em; margin-bottom: 35px; line-height: 1.8; }

/* Problems Section */
.problems h2 { margin-bottom: 50px; }
.problem-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.problem-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.problem-item .icon-blue { font-size: 3.5em; color: #0076c8; margin-bottom: 20px; }
.problem-item h3 { font-size: 1.3em; margin-bottom: 15px; color: #333; font-weight: 600; }
.problem-item p { font-size: 0.95em; color: #555; flex-grow: 1; }

/* Solution Section */
.solution { background-color: #f7f9fc; }
.solution h2 { margin-bottom: 50px; }
.solution-points {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.solution-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.solution-points li {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
}
.solution-points li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.solution-points li i {
    font-size: 1.8em;
    margin-right: 15px;
    color: #28a745;
    min-width: 30px;
}
.solution-summary {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    margin-top: 30px;
    margin-bottom: 60px;
}

/* Benefits Section */
.benefits h2 { margin-bottom: 20px; }
.benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}
.benefit-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(33.333% - 30px);
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.benefit-item .icon-green { font-size: 3.5em; color: #28a745; margin-bottom: 20px; }
.benefit-item h3 { font-size: 1.3em; margin-bottom: 15px; color: #333; font-weight: 600; }
.benefit-item p { font-size: 0.95em; color: #555; flex-grow: 1; }

/* Case Studies Section (横スクロール修正版を適用) */

.case-studies .case-studies-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2em;
    font-weight: 700;
}
.case-grid-wrapper {
    margin-left: calc(-1 * var(--container-padding-x));
    margin-right: calc(-1 * var(--container-padding-x));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--container-padding-x);
    padding-bottom: 20px;
}
.case-grid-wrapper::-webkit-scrollbar { height: 8px; }
.case-grid-wrapper::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.case-grid-wrapper::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
.case-grid-wrapper::-webkit-scrollbar-thumb:hover { background: #555; }

.case-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    width: fit-content;   /* コンテンツの幅に合わせてコンテナを伸縮させる */
    margin: 22px auto 0;  /* 左右を自動(auto)にして中央寄せにする */
    padding-right: 20px;  /* 横スクロール時の右端の余白確保 */
}
.case-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    flex-shrink: 0;
    width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.case-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: #edf2f6;
}
.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}
.case-body { padding: 14px; flex-grow: 1; }
.case-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.6;
}
.case-text {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.95;
}

/* Flow Section */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.flow-step {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    padding-top: 60px;
}
.flow-step .step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0076c8;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 4px solid #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.flow-step h3 { font-size: 1.4em; margin-top: 15px; margin-bottom: 10px; color: #0076c8; }
.flow-step p { font-size: 0.95em; color: #666; }

/* Pricing Section */
/* ---------------------------------------------------- */
/* 料金表セクション (最終確認・完璧版 - 全要素を意図通りに左右配置) */
/* ---------------------------------------------------- */

.pricing-section {
    background-color: #f8f9fa; /* セクション全体の背景色 */
    padding: 80px 0;
    text-align: center;
}

.pricing-section .container {
    max-width: 960px; /* コンテナの最大幅を設定 */
    margin: 0 auto;
    padding: 0 15px; /* 左右のパディング */
}

.pricing-section .section-title {
    font-size: 2.8em;
    color: #343a40;
    margin-bottom: 25px;
    font-weight: 700;
}

.pricing-section .section-description {
    font-size: 1.1em;
    color: #6c757d;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* レスポンシブ対応のためのテーブルコンテナ */
.table-responsive {
    max-width: 650px; /* 表全体の横幅をさらに狭くし、コンパクトに */
    margin: 0 auto;
    overflow-x: auto; /* 画面が小さい場合に横スクロール可能にする */
    -webkit-overflow-scrolling: touch;
    border-radius: 12px; /* 全体的な角丸を強く */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); /* 影を強調し、浮き上がったカードのように */
    background-color: #ffffff; /* テーブル全体の背景色 */
    padding: 20px; /* 内側にもパディングを入れて、各カードとの間に空間を確保 */
}

.pricing-table {
    width: 100%;
    border-collapse: separate; /* 各行を独立させるために必須 */
    border-spacing: 0 15px; /* 各行（カード）間に垂直方向のスペースを確保 */
    margin-bottom: -15px; /* 最後の行の下スペースを調整 */
    min-width: 450px; /* 最小幅を維持 */
}

/* ヘッダーはデスクトップでのみ表示 */
.pricing-table thead {
    display: table-header-group; /* デスクトップでは表示 */
    /* thead自身にdisplay:flex;を適用するとテーブルレイアウトを崩す可能性があるため、
       trにflexを適用する */
}
/* ヘッダーの行をFlexboxにする */
.pricing-table thead tr { /* ★修正: ヘッダーのtrをFlexboxにする */
    display: flex;
    align-items: center; /* 垂直方向中央寄せ */
    background-color: #007bff; /* 背景色をtrに移動 */
    border-radius: 10px 10px 0 0; /* 角丸をtrに適用 */
    margin-bottom: 15px; /* tbody trとの間隔を確保 */
    overflow: hidden; /* 角丸からはみ出る要素を隠す */
}

/* テーブルヘッダー (th) のスタイル */
.pricing-table thead th {
    color: #ffffff;
    font-weight: 600;
    padding: 16px 20px;
    font-size: 1.2em;
    border: none;
    flex-grow: 1; /* ★修正: 利用可能なスペースを埋める */
    display: flex; /* ★修正: thもFlexboxにして中身の配置を制御 */
    align-items: center; /* 垂直方向中央寄せ */
    /* text-align は display:flex; の子要素には期待通りに効かないため削除 */
}

/* ヘッダーの左端と右端のテキスト配置 */
.pricing-table thead th:first-child {
    justify-content: flex-start; /* ★修正: 書類サイズを左寄せ */
    width: 50%; /* ★修正: 幅を50%にする */
    flex-shrink: 0;
}
.pricing-table thead th:last-child {
    justify-content: flex-end; /* ★修正: 料金を右寄せ */
    width: 50%; /* ★修正: 幅を50%にする */
    flex-shrink: 0;
}


/* tbody tr を個別の「カード」としてスタイリング */
.pricing-table tbody tr {
    display: flex; /* 行をflexコンテナに。中身を横並びにする */
    align-items: center; /* 垂直方向中央寄せ */
    background-color: #ffffff; /* 各行（カード）の背景色 */
    border-radius: 8px; /* 各行の角丸 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 各行の軽い影 */
}

/* 偶数行に異なる背景色 */
.pricing-table tbody tr:nth-child(even) {
    background-color: #fcfdfe; /* より控えめな偶数行の背景 */
}

/* テーブルボディ (td) のスタイル */
.pricing-table tbody td {
    display: flex; /* tdもflexコンテナに */
    align-items: center; /* 垂直方向中央寄せ */
    padding: 20px 25px; /* 各tdのパディングを増やす */
    border: none; /* 罫線は完全に削除 */
    color: #343a40;
    font-size: 1.05em;
    flex-grow: 1; /* 各tdが利用可能なスペースを埋める */
}

/* 1列目のサイズ表記 */
.pricing-table tbody td:first-child {
    justify-content: flex-start; /* 左寄せ */
    font-weight: 600;
    color: #343a40; /* ダークグレー */
    width: 50%; /* 理想的な幅の比率 */
    flex-shrink: 0; /* 縮まないように */
}

/* 2列目の料金表記 */
.pricing-table tbody td:last-child {
    justify-content: flex-end; /* 右寄せ */
    font-weight: 700;
    width: 50%; /* 理想的な幅の比率 */
    flex-shrink: 0;
}

/* 料金の数字 */
.pricing-table td .price-value {
    font-size: 2.2em; /* さらに大きく、視覚的なプライオリティを上げる */
    font-weight: 800;
    color: #343a40;
}

/* 通貨単位 */
.pricing-table td .currency {
    font-size: 0.9em;
    margin-left: 5px;
    color: #6c757d;
    font-weight: normal;
}

/* 単位 */
.pricing-table td .unit {
    font-size: 1em;
    margin-left: 8px;
    color: #6c757d;
    font-weight: normal;
}

/* 特殊書類の行のスタイル */
.pricing-table .special-row {
    background-color: #fff8e1; /* 薄い警告色だが、警戒感は抑える */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 0 0 2px #ffc107; /* 外枠で強調 */
}
.pricing-table .special-row td {
    color: #c0392b;
    font-weight: 700;
    font-size: 1.5em;
    width: 50%;
    flex-shrink: 0;
    /* display: flex; は親のtbody tdに既に適用されているので不要 */
}
.pricing-table .special-row td:first-child {
    justify-content: flex-start; /* ★修正: 特殊書類を左寄せ */
}
.pricing-table .special-row td:last-child {
    justify-content: flex-end; /* ★修正: 個別見積を右寄せ */
}


/* 税別注意書き */
.tax-note {
    font-size: 1em;
    color: #6c757d;
    margin-top: 30px;
    margin-bottom: 60px;
    font-style: italic;
}

/* オプションサービス */
.additional-info {
    text-align: center;
    margin-top: 60px;
}

.additional-info h3 {
    font-size: 2em;
    color: #343a40;
    margin-bottom: 25px;
    font-weight: 700;
}

.additional-info ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 450px;
}

.additional-info ul li {
    font-size: 1.5em;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.additional-info ul li i {
    color: #28a745; /* 緑色のチェックアイコン */
    margin-right: 10px;
    font-size: 1.2em;
}

.additional-info p {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* プライマリボタンは維持 */
.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* ---------------------------------------------------- */
/* レスポンシブデザイン (ヘッダーと特殊書類のテキスト配置修正) */
/* ---------------------------------------------------- */

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

    .pricing-section .section-title {
        font-size: 2.4em;
    }

    .pricing-section .section-description {
        font-size: 1.05em;
        margin-bottom: 40px;
    }
    
    .table-responsive {
        margin: 0 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* 影を調整 */
        border-radius: 10px; /* 角丸を調整 */
        padding: 15px;
    }

    .pricing-table {
        min-width: 300px; /* モバイルでの最小幅 */
        border-spacing: 0 10px; /* モバイルの行間 */
    }

    .pricing-table thead {
        display: none; /* モバイルではヘッダーを完全に非表示 */
    }

    .pricing-table tbody tr {
        flex-direction: column; /* 各行を縦積みのカードに */
        align-items: flex-start; /* 左寄せ */
        padding: 15px 20px; /* パディングを調整 */
    }

    .pricing-table tbody td {
        width: 100%; /* tdを幅いっぱいに */
        padding: 8px 0; /* td内のパディングを調整 */
        justify-content: space-between; /* 項目名と料金を左右に配置 */
        font-size: 1em;
        border-bottom: 1px dotted #e9ecef; /* 各項目の間に破線 */
    }

    .pricing-table tbody td:last-child {
        border-bottom: none; /* 最後のtdの下線は不要 */
    }

    .pricing-table tbody td:first-child {
        font-size: 1.1em; /* モバイルでのサイズ名を調整 */
        font-weight: 700;
        color: #343a40;
    }

    .pricing-table td .price-value {
        font-size: 1.8em; /* モバイルでの料金サイズを調整 */
    }
    .pricing-table td .currency,
    .pricing-table td .unit {
        font-size: 0.85em; /* モバイルでの単位サイズを調整 */
    }

    .pricing-table .special-row td { /* モバイルでの特殊書類行のtdも左右配置 */
        justify-content: space-between; /* 項目名と料金を左右に配置 */
        font-size: 1.05em;
        width: 100%;
    }

    .tax-note {
        font-size: 1em;
        color: #6c757d;
        margin-top: 30px;
        margin-bottom: 60px;
        font-style: italic;
    }

    .additional-info {
        text-align: center;
        margin-top: 60px;
    }

    .additional-info h3 {
        font-size: 2em;
        color: #343a40;
        margin-bottom: 25px;
        font-weight: 700;
    }

    .additional-info ul {
        list-style: none;
        padding: 0;
        margin: 0 auto 30px auto;
        max-width: 450px;
    }

    .additional-info ul li {
        font-size: 1.1em;
        color: #495057;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .additional-info ul li i {
        color: #28a745; /* 緑色のチェックアイコン */
        margin-right: 10px;
        font-size: 1.2em;
    }

    .additional-info p {
        font-size: 1em;
        color: #6c757d;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .btn-primary {
        display: inline-block;
        background-color: #007bff;
        color: #fff;
        padding: 12px 30px;
        border-radius: 50px;
        text-decoration: none;
        font-size: 1.1em;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.2s ease;
        border: none;
        cursor: pointer;
    }

    .btn-primary:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 40px 0;
    }
    .pricing-section .section-title {
        font-size: 2em;
    }
    .pricing-section .section-description {
        margin-bottom: 30px;
    }
    .table-responsive {
        margin: 0 10px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
        padding: 10px;
    }
    .pricing-table {
        min-width: 280px;
        border-spacing: 0 8px;
    }
    .pricing-table tbody tr {
        padding: 12px 15px;
    }
    .pricing-table tbody td {
        padding: 6px 0;
        font-size: 0.95em;
    }
    .pricing-table td .price-value {
        font-size: 1.5em;
    }
    .tax-note {
        margin-top: 20px;
        margin-bottom: 40px;
        font-size: 0.9em;
    }
    .additional-info h3 {
        font-size: 1.8em;
    }
    .additional-info ul li {
        font-size: 1em;
    }
    .additional-info ul li i {
        font-size: 1.1em;
        margin-right: 8px;
    }
    .additional-info p {
        font-size: 0.9em;
    }
}
/* FAQ Section */
.faq-list { margin-top: 40px; }
.faq-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.faq-item .question {
    padding: 20px 30px;
    cursor: pointer;
    background-color: #eef7ff;
    color: #0076c8;
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
.faq-item .answer {
    padding: 20px 30px;
    font-size: 1em;
    color: #555;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* Contact CTA Section */
.contact-cta { padding: 60px 0; }
.contact-cta h2 { font-size: 2em; margin-bottom: 30px; letter-spacing: 0.05em; }

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    font-size: 0.9em;
    text-align: center;
    border-top: 5px solid #0076c8;
}
.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #ccc; font-weight: 300; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* =========================================
   4. Consolidated Media Queries
   ========================================= */

/* Max-width: 1024px */
@media (max-width: 1024px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .global-nav ul { gap: 20px; }
    
    .problem-item {
        flex: 1 1 calc(50% - 30px);
        max-width: 45%;
    }
    .benefit-item {
        flex: 1 1 calc(50% - 30px);
        max-width: 45%;
    }
    .pricing-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* Max-width: 768px */
@media (max-width: 768px) {
    .section-spacing { padding: 60px 0; }
    
    h1 { font-size: 2.5em; }
    h2 { font-size: 2.2em; } /* 必要に応じて1.8em～2.5emの間で調整 */
    h3 { font-size: 1.2em; }

    /* Hero */
    .hero { min-height: 450px; }
    .hero h1 { font-size: 2.5em; }
    .hero-description { font-size: 1em; }

    /* Layout Items */
    .problem-list { grid-template-columns: repeat(1, 1fr); }
    .problem-item {
        flex: 1 1 100%;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .solution-points ul { grid-template-columns: 1fr; }
    
    .benefit-item {
        flex: 1 1 100%;
        max-width: 380px;
    }

    /* Pricing */
    .pricing-list {
        grid-template-columns: repeat(1, 1fr);
        max-width: 400px;
    }
    .pricing-plan.featured { transform: translateY(0); }
    .pricing-plan.featured:hover { transform: translateY(-5px); }
    .pricing-plan h3 { font-size: 1.3em; }
    .pricing-plan .price { font-size: 2em; }

    /* Flow */
    .flow-steps { grid-template-columns: 1fr; }
    .flow-step { padding-top: 30px; }
    .flow-step .step-number {
        top: -15px; width: 40px; height: 40px; font-size: 1.5em;
    }

    /* Contact & Footer */
    .contact-cta h2 { font-size: 1.6em; }
    .footer .container { flex-direction: column; gap: 10px; }
    .footer-links { flex-direction: column; gap: 5px; }
}

/* Max-width: 480px */
@media screen and (max-width: 768px) {
    .header-inner { padding-left: 10px; padding-right: 10px; }
    .global-nav ul { flex-direction: column; gap: 10px; text-align: center; }

    .hero h1 { font-size: 2em; }
    .hero-description { font-size: 0.9em; }

    .btn { padding: 12px 25px; font-size: 0.9em; }

    h2 { font-size: 2em; margin-bottom: 40px; }
    
    /* Problems & Benefits */
    .problem-item, .benefit-item { padding: 20px; }
    .problem-item h3, .benefit-item h3 { font-size: 1.1em; }

    /* Solutions */
    .solution-points li { padding: 20px; font-size: 1em; }
    .solution-points li i { font-size: 1.5em; margin-right: 10px; }

    /* Pricing */
    .pricing-plan { padding: 20px; }
    .pricing-intro { margin-bottom: 40px; }

    /* FAQ */
    .faq-item .question, .faq-item .answer { padding: 15px 20px; }
    .faq-item .question { font-size: 1em; }

    /* Cases */

  .case-grid-wrapper {
        display: block !important;
        overflow-x: auto !important; /* 横スクロールを出す */
        width: 100% !important;
        padding-bottom: 20px !important;
    }

    /* 2. カードを横一列に固定（ここが重要！） */
    .case-grid {
        display: flex !important;
        flex-direction: row !important; /* 横に並べる */
        flex-wrap: nowrap !important;  /* 折り返しを絶対禁止 */
        width: fit-content !important; /* 中身に合わせて横に伸ばす */
        margin: 0 !important;
        padding-left: 20px !important;
    }

    /* 3. カードが縮むのを「0」にする */
    .case-card {
        /* カードの幅を300pxで固定 */
        width: 300px !important;
        min-width: 300px !important; /* これがないと潰れます */
        
        /* 縮み率を強制的に0にする（最重要） */
        flex: 0 0 300px !important; 
        
        margin-right: 15px !important;
        display: block !important;
    }

    /* 4. 画像と中身の調整 */
    .case-thumb {
        height: 180px !important;
    }
    .case-body {
        padding: 15px !important;
    }
}
