/* =========================================
   kAIryuくん - 全体設定・変数
========================================= */
:root {
    --primary-color: #4F46E5; 
    --primary-light: #EEF2FF;
    --dark-color: #0F172A; 
    --text-main: #1E293B;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --surface-white: #ffffff;
    --border-color: #E2E8F0;
    --accent-red: #EF4444;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--surface-white);
    -webkit-font-smoothing: antialiased;
}

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

/* =========================================
   共通コンポーネント（ボタン等）
========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dark-color); color: #ffffff;
    padding: 16px 36px; border-radius: 4px; text-decoration: none;
    font-weight: 700; font-size: 1.1rem; border: 2px solid var(--dark-color);
    cursor: pointer; transition: all 0.3s ease; text-align: center;
    min-height: 54px; width: auto;
}
.btn:hover { background: var(--primary-color); border-color: var(--primary-color); }
.btn-outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

.section { padding: 100px 20px; }
.section-light { background-color: var(--bg-light); }
.container { max-width: 1040px; margin: 0 auto; }
.section-title {
    text-align: center; font-size: 2.2rem; color: var(--dark-color);
    margin-bottom: 60px; font-weight: 900; line-height: 1.4;
}
.section-title span { color: var(--primary-color); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   1. ファーストビュー (PCベース)
========================================= */
.fv-section {
    background-image: url('24890761_l.jpg');
    background-size: cover; background-position: center;
    position: relative; padding: 120px 20px 80px; text-align: center;
}
.fv-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.9); z-index: 1;
}
.fv-content { position: relative; z-index: 2; }
.fv-logo { max-width: 180px; margin: 0 auto 30px; }

/* FV用バッジ */
.fv-badge-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.fv-badge { 
    background: transparent; color: var(--text-light); border: 1px solid var(--border-color);
    padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; 
}

/* メインコピーとサブキャッチ */
.main-copy { 
    font-size: 3.2rem; color: var(--dark-color); margin-bottom: 16px; 
    font-weight: 900; line-height: 1.3; letter-spacing: 0.02em; 
}
.sub-catch { 
    font-size: 1.6rem; font-weight: 700; color: var(--text-main); 
    margin-bottom: 40px; line-height: 1.6; 
}
.lead-copy { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-main); font-weight: 500; }

/* 押したくなるCTAボタン */
.cta-wrapper { margin-top: 24px; text-align: center; }
.btn-primary-action {
    background: var(--primary-color); color: #fff; padding: 16px 48px; font-size: 1.2rem;
    border-radius: 50px; border: none; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3); 
    transition: all 0.3s ease; display: inline-flex; align-items: center;
}
.btn-primary-action:hover {
    transform: translateY(-4px); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4); 
}
.micro-copy { font-size: 0.85rem; color: var(--text-light); font-weight: 500; margin-top: 16px; }

/* =========================================
   2. 共感・比較セクション (PCベース)
========================================= */
.pain-box { background: #fff; border: 1px solid var(--border-color); padding: 40px; border-radius: 8px; text-align: center; }
.pain-box h3 { font-size: 1.5rem; color: var(--accent-red); margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.compare-table-wrapper { 
    overflow-x: auto; margin-bottom: 20px; position: relative;
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1); 
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; background: #fff; }
.compare-table th, .compare-table td { padding: 20px; border: 1px solid var(--border-color); text-align: center; }
.compare-table th { background: var(--bg-light); font-weight: 700; }
.compare-table .highlight { background: var(--primary-light); border: 2px solid var(--primary-color); font-weight: 700; color: var(--primary-color); }
.disclaimer-box { background: #FFFBEB; border-left: 4px solid #F59E0B; padding: 16px; font-size: 0.95rem; color: #92400E; margin-top: 20px; }

/* =========================================
   3. クイック入力・機能カード (PCベース)
========================================= */
.feature-intro-block { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; text-align: left; }
.feature-intro-img { flex: 1; max-width: 50%; height: auto; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.feature-intro-text { flex: 1; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.feature-card { background: #fff; border: 1px solid var(--border-color); padding: 30px; border-radius: 8px; text-align: left; }
.feature-card h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--dark-color); border-bottom: 2px solid var(--primary-light); padding-bottom: 10px;}
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag { background: var(--bg-light); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; color: var(--text-main); }

.output-banner { background: var(--dark-color); color: #fff; padding: 40px; border-radius: 8px; text-align: center; margin-top: 40px; }
.output-banner h3 { font-size: 1.8rem; margin-bottom: 10px; }

/* =========================================
   4. 料金表・稟議 (PCベース)
========================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; margin-bottom: 40px; }
.price-card { background: #fff; border: 1px solid var(--border-color); padding: 40px 20px; border-radius: 8px; text-align: center; position: relative; }
.price-card.recommended { border: 3px solid var(--primary-color); transform: scale(1.05); z-index: 2; }
.reco-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: #fff; padding: 5px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }
.price-card h4 { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-light); }
.price-amount { font-size: 2.5rem; font-weight: 900; color: var(--dark-color); margin-bottom: 20px; }
.price-amount span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.framing-box { background: var(--primary-light); padding: 20px; border-radius: 8px; text-align: center; font-weight: 700; color: var(--primary-color); margin-bottom: 40px; }

/* スマホ用固定CTA（PCでは非表示） */
.sticky-bottom-cta { display: none; }

/* =========================================
   レスポンシブ 1: タブレット用（iPad等向け）
========================================= */
@media (max-width: 1024px) {
    .main-copy { font-size: 2.6rem; }
    .feature-intro-block { gap: 20px; }
    .pricing-grid { gap: 10px; }
    .price-card { padding: 30px 15px; }
    .price-amount { font-size: 2.2rem; }
    .container { padding: 0 10px; }
}

/* =========================================
   レスポンシブ 2: スマホ用（すべてのスマホ設定をここに集約）
========================================= */
@media (max-width: 768px) {
    /* 全体設定 */
    body { padding-bottom: 80px; } /* 固定CTA分の余白 */
    .section { padding: 60px 15px; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    
    /* FVの上書き */
    .fv-logo { max-width: 140px; }
    .main-copy { font-size: 2.2rem; line-height: 1.3; }
    .sub-catch { font-size: 1.3rem; margin-bottom: 24px; line-height: 1.6; }
    .lead-copy { font-size: 1rem; }
    .btn-primary-action { width: 100%; padding: 16px 20px; font-size: 1.1rem; justify-content: center; }
    .fv-badge-group { justify-content: center; margin-bottom: 16px; }
    .cta-wrapper { text-align: center; }  
    
    /* 共感セクション */
    .pain-box { padding: 25px 15px; }
    .pain-box h3 { font-size: 1.2rem; }

    /* ★ 比較表のスマホ最適化（スワイプなし・文字拡大版） */
    .compare-table-wrapper { box-shadow: none; overflow-x: hidden; }
    .compare-table { table-layout: fixed; width: 100%; min-width: 100%; }
    .compare-table th, .compare-table td {
        padding: 10px 5px; font-size: 0.85rem; line-height: 1.4; 
        word-break: normal; overflow-wrap: break-word; 
    }
    .compare-table th:nth-child(1) { width: 27%; }
    .compare-table th:nth-child(2) { width: 34%; }
    .compare-table th:nth-child(3) { width: 39%; }

    /* 機能セクション */
    .feature-intro-block { flex-direction: column; text-align: center; gap: 20px; }
    .feature-intro-img { max-width: 100%; width: 100%; }
    .output-banner { padding: 30px 15px; }
    .output-banner h3 { font-size: 1.5rem; }
    
    /* 料金セクション */
    .pricing-grid { grid-template-columns: 1fr; gap: 30px; }
    .price-card.recommended { transform: none; border-width: 2px; }
    
    /* スマホ画面下部の固定CTAを表示 */
    .sticky-bottom-cta { 
        display: block; position: fixed; bottom: 0; left: 0; width: 100%; 
        background: rgba(255, 255, 255, 0.95); padding: 12px 15px; 
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 999; backdrop-filter: blur(5px);
    }
    .sticky-bottom-cta .btn { 
        width: 100%; background: var(--primary-color); border-color: var(--primary-color); 
        font-size: 1rem; padding: 12px 20px;
    }
}

/* =========================================
   フッター（背景色を戻し、レイアウトは最新版をキープ）
========================================= */
footer {
    background-color: var(--primary-color); /* 視認性の高い濃いブランドカラーへ戻す */
    color: #ffffff;
    padding: 30px 20px; /* スッキリと狭くした帯の幅はキープ */
}

.footer {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px; /* 要素の隙間を詰めた設定もキープ */
}

/* ロゴのサイズを大きく */
.f_logo img {
    max-width: 220px; /* 大きく存在感を出した設定はキープ */
    height: auto;
}

/* コピーライト */
.copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8); /* 背景に合わせて、少し馴染ませる80%の白に戻しました */
    font-family: Arial, sans-serif;
    letter-spacing: 0.05em;
}

/* プライバシーポリシーのリンク */
.footer a.wb {
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer a.wb:hover {
    opacity: 0.7;
}

/* スマホ画面での固定ボタン対策 */
@media (max-width: 768px) {
    footer {
        padding-bottom: 100px; 
    }
}