/* =========================================
   基本設定・リセット
   ========================================= */
:root {
    --text-color: #333;
    --accent-blue: #0066cc;
    --accent-blue-gradient: linear-gradient(135deg, #2b70e4 0%, #1a54b7 100%);
    --accent-red: #e60012;
    --bg-light: #f5f7fa;
    --bg-gray: #eee;
    --white: #ffffff;
    --font-base: "Noto Sans JP", sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

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

/* ユーティリティ */
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.sp-only { display: block; }
.pc-only { display: none; }
@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-only { display: block; }
}
.text-red { color: var(--accent-red); font-weight: bold; }
.text-accent-blue { color: var(--accent-blue); }
.underline-blue {
    background: linear-gradient(transparent 70%, rgba(0, 102, 204, 0.2) 70%);
    display: inline;
}
.bg-light-blue { background-color: #f0f8ff; }
.bg-gray { background-color: #f9f9f9; }

/* =========================================
   ヘッダー
   ========================================= */
.header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.btn-header {
    background-color: var(--accent-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
}

/* =========================================
   ヒーローセクション V2 (修正版)
   ========================================= */
.hero-v2 {
    margin-top: 60px;
    padding: 20px 0 80px; /* 上を詰める */
    background-color: #fdfbfb;
    overflow: hidden;
    position: relative;
    min-height: 500px; /* 高さを減らす */
    /* 全体に薄い青のグラデーションを追加 */
    background: linear-gradient(to right, #fdfbfb 0%, #fafcff 50%, #f5f9ff 100%);
}

/* コンテンツコンテナ */
.hero-v2-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px; /* 間隔を詰める */
    align-items: stretch;
}

/* コンテンツラッパー（SP版では通常の縦並び） */
.hero-v2-content-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    align-items: center;
}

/* --- 左側：テキストエリア --- */
.hero-v2-content {
    text-align: center;
}
.hero-v2-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 15px; /* 余白を減らす */
    letter-spacing: -0.05em;
    width: 100%; /* 全幅にする */
    text-align: center;
}
.hero-v2-logo-area { 
    margin-bottom: 20px; /* 余白を減らす */
}
.hero-logo-img {
    height: 60px; /* SPサイズのロゴ */
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}
.logo-text-large {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}
.hero-v2-catch { 
    font-weight: bold; 
    font-size: 1rem;
    line-height: 1.6;
}
.hero-v2-sub { color: #666; margin-bottom: 30px; font-size: 0.95rem; } /* 余白を減らす */

/* --- バッジエリア (重要修正：大きく、狭く) --- */
.hero-v2-badges-area {
    display: flex;
    justify-content: center;
    gap: 0px; /* 透過素材なので間隔なし */
    margin-bottom: 30px; /* 余白を減らす */
}
.hero-badge {
    height: 100px; /* SPサイズをさらに大きく */
    width: auto;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.15));
    transition: transform 0.3s;
    margin-left: -40px; /* バッジをさらに重ねる */
}
.hero-badge:first-child {
    margin-left: 0; /* 最初のバッジは左マージンなし */
}
.hero-badge:hover { transform: translateY(-5px); }

/* CTAエリア */
.hero-v2-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-v2-micro-copy {
    font-weight: bold;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.hero-v2-micro-copy.white-ver { color: #fff; }

.check-icon {
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 8px; font-size: 0.8rem;
}

/* ボタンV2 */
.btn-v2-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 18px 20px;
    background: var(--accent-blue-gradient);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 10px;
    box-shadow: 0 10px 20px -5px rgba(43, 112, 228, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-v2-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(43, 112, 228, 0.6);
    opacity: 1;
}
.arrow-icon { margin-left: 10px; transition: margin-left 0.3s; }
.btn-v2-cta:hover .arrow-icon { margin-left: 15px; }

/* --- 右側：ビジュアルエリア (パンダ) --- */
.hero-v2-visual {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* 背景画像がはみ出さないように */
}

.hero-v2-bg {
    position: absolute;
    top: auto;
    bottom: 20px; /* 少し上に上げる */
    right: -60px; /* もっと右に移動（透過画像なのではみ出しOK） */
    width: 50%; /* SP版では右半分 */
    height: auto; /* 高さは自動 */
    z-index: 1; /* パンダより後ろ */
    display: flex;
    align-items: flex-end; /* 下端揃え */
    justify-content: flex-end;
}

.hero-bg-devices {
    width: 120%; /* 大きく表示 */
    height: auto; /* 高さは自動（横長のアスペクト比を保持） */
    object-fit: contain; /* アスペクト比を保持して横長に */
    object-position: center bottom; /* 下端を揃える */
    opacity: 0.85;
    animation: bg-float 15s ease-in-out infinite alternate;
}

@keyframes bg-float {
    0% { transform: scale(1.05) translateY(0); }
    100% { transform: scale(1.1) translateY(-20px); }
}

.hero-v2-panda {
    width: 200px;
    position: absolute;
    top: 40%; /* 中央より少し上 */
    left: 55%; /* 中央より少し右 */
    transform: translate(-50%, -50%); /* 中央揃えの基点を調整 */
    z-index: 10; /* 背景画像より手前 */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
/* アニメーション一時的にコメントアウト */
/*
.floating { animation: float 3s ease-in-out infinite; }
@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0px) rotate(-2deg); }
    50% { transform: translate(-50%, -50%) translateY(-15px) rotate(2deg); }
    100% { transform: translate(-50%, -50%) translateY(0px) rotate(-2deg); }
}
*/

/* =========================================
   PCレイアウト (992px以上) - 修正完全版
   ========================================= */
/* =========================================
   PCレイアウト (992px以上) - 修正版
   ========================================= */
@media (min-width: 992px) {
    .hero-v2 {
        padding: 60px 0 100px; /* 上を詰める */
        min-height: 600px; /* 高さを減らす */
    }

    /* --- コンテンツコンテナ (左右配置) --- */
    .hero-v2-container {
        flex-direction: column; /* 縦並び（タイトルが上） */
        align-items: stretch; /* 全幅に */
        gap: 30px; /* 間隔を詰める */
    }
    
    /* --- タイトル（全幅） --- */
    .hero-v2-title { 
        font-size: 2.6rem; 
        margin-bottom: 20px; 
        line-height: 1.5; 
        text-align: left; /* PC版では左寄せ */
        width: 100%;
    }

    /* --- コンテンツエリア（左右配置） --- */
    .hero-v2-content-wrapper {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 30px;
        width: 100%;
    }

    /* --- 左側：テキストエリア --- */
    .hero-v2-content {
        width: 45%; /* 幅を指定 */
        padding-top: 0; /* 中央揃えなので上余白は不要 */
        z-index: 20; /* 最前面 */
        text-align: left;
    }
    .hero-v2-logo-area { margin-bottom: 15px; } /* PC版でも余白を減らす */
    .hero-logo-img { height: 80px; } /* PCサイズのロゴ */
    .logo-text-large { font-size: 3.8rem; }
    .hero-v2-catch { 
        font-size: 1.2rem; 
        line-height: 1.8;
        word-break: keep-all; /* 単語の途中での改行を防ぐ */
        overflow-wrap: break-word; /* 長い単語のみ折り返す */
    }
    
    /* バッジエリア (左寄せ) */
    .hero-v2-badges-area {
        justify-content: flex-start;
        gap: 0px; /* 透過素材なので間隔なし */
    }
    .hero-badge { 
        height: 130px; /* PCサイズをさらに大きく */
        margin-left: -30px; /* PC版ではさらに重ねる */
    }
    .hero-badge:first-child {
        margin-left: 0; /* 最初のバッジは左マージンなし */
    }

    /* CTAエリア (左寄せ) */
    .hero-v2-cta-area { align-items: flex-start; }
    .btn-v2-cta { font-size: 1.3rem; padding: 22px 35px; }

    /* --- 右側：ビジュアルエリア (パンダ配置) --- */
    .hero-v2-visual {
        width: 50%; /* 残りの幅 */
        height: 600px; /* エリアの高さ */
        position: relative;
        /* 背景画像の上にパンダが来るように配置 */
        margin-right: -5%; /* 少し右にはみ出させてバランスを取る */
        overflow: visible; /* PC版でははみ出しOK */
    }
    
    /* PC版の背景画像（右半分いっぱいに配置） */
    .hero-v2-bg {
        position: absolute;
        top: auto;
        bottom: 30px; /* 少し上に上げる */
        right: -120px; /* もっと右に移動（透過画像なのではみ出しOK） */
        width: 50%; /* セクション全体の右半分 */
        height: auto; /* 高さは自動 */
        z-index: 1; /* パンダより後ろ */
        border-radius: 30px 0 0 30px; /* 左側を丸く */
        overflow: visible; /* 大きく表示するためにはみ出しOK */
        display: flex;
        align-items: flex-end; /* 下端揃え */
        justify-content: flex-end;
        padding-left: 0; /* 左側の余白を削除して右端に */
    }
    
    .hero-bg-devices {
        width: 140%; /* PC版ではさらに大きく */
        max-width: none; /* 最大幅制限を解除 */
        height: auto; /* 高さは自動（横長のアスペクト比を保持） */
        object-fit: contain; /* アスペクト比を保持して横長に */
        object-position: center bottom; /* 下端をボタンと同じ位置に */
        opacity: 0.9;
    }
    
    .hero-v2-panda {
        position: absolute;
        top: 0%; /* もっと上に */
        left: -5%; /* もっと左に */
        transform: translate(0, 0); /* 左上を基準に */
        width: 350px; /* PCサイズ */
        z-index: 10; /* 背景より手前 */
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    }
    /* 浮遊アニメーションの基点を調整 - 一時的にコメントアウト */
    /*
    @keyframes float {
        0% { transform: translate(0, 0) translateY(0px) rotate(-2deg); }
        50% { transform: translate(0, 0) translateY(-20px) rotate(2deg); }
        100% { transform: translate(0, 0) translateY(0px) rotate(-2deg); }
    }
    */
}
/* =========================================
   セクション共通
   ========================================= */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: 0.05em;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px; height: 4px;
    background: var(--accent-blue);
    margin: 20px auto 0;
    border-radius: 2px;
}
.section-desc {
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* 3つの理由 */
.reasons-grid {
    display: grid;
    gap: 30px;
}
@media (min-width: 768px) {
    .reasons-grid { grid-template-columns: repeat(3, 1fr); }
}
.reason-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border-bottom: 4px solid var(--accent-blue);
}
.reason-icon {
    font-size: 3rem;
    font-weight: 900;
    color: #eee;
    position: absolute;
    top: 10px; right: 20px;
    line-height: 1;
}
.reason-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 5万円の理由 (Points) */
.point-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.point-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
    opacity: 0.3;
}
.point-content h3 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: var(--text-color);
}
@media (max-width: 768px) {
    .point-item { flex-direction: column; }
    .point-num { font-size: 2.5rem; margin-bottom: 10px; }
}

/* =========================================
   実績 (サイズ統一のための修正版)
   ========================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.work-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* 重要修正：画像を表示するコンテナ（アスペクト比固定） */
.work-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9の横長比率（PCサイト例の画像） */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

/* 個別の背景画像設定 */
.bg-work1 { background-image: url('../images/work1.png'); }
.bg-work2 { background-image: url('../images/work2.png'); }
.bg-work3 { background-image: url('../images/work3.png'); }

.center-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text-link {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: bold;
}

/* 比較表 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table th, .comparison-table td {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
}
.comparison-table th { background: #333; color: #fff; }
.comparison-table .highlight-col {
    background: #fdf5f5;
    font-weight: bold;
    border-left: 2px solid var(--accent-red);
    border-right: 2px solid var(--accent-red);
}
.comparison-table th.highlight-col {
    background: var(--accent-red);
    color: #fff;
    border: 2px solid var(--accent-red);
}
.text-xl { font-size: 1.4rem; }

/* ご利用の流れ */
.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}
.step-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}
.step-head {
    background: var(--accent-blue);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}
.step-body h3 { margin: 0 0 5px; font-size: 1.2rem; }
.step-body p { margin: 0; font-size: 0.9rem; }
.step-arrow {
    text-align: center;
    color: #ccc;
    font-size: 1.5rem;
    margin: 10px 0;
}
@media (max-width: 768px) {
    .step-card { flex-direction: column; text-align: center; }
}

/* FAQ */
.faq-item {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 8px;
}
.faq-item summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: 300;
}
.faq-item[open] summary::after { content: "-"; }
.faq-answer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
    color: #555;
}

/* フッター前CTA */
.footer-cta {
    background: #333;
    color: #fff;
    text-align: center;
}
.cta-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.btn-wide { min-width: 300px; }
.text-white { color: #fff; opacity: 0.8; font-size: 0.9rem; margin-top: 10px; }

/* フッター */
.footer {
    background: #222;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}