/* =====================================================
   Core AX 紹介・使い分けセクション（#coreax-intro）
   ---
   旧 comparison-section（CoreAX vs CoreAX-B）を廃し、
   Core AX の強み紹介＋Core AX LPへの誘導に再設計したもの。
   比較（優劣）ではなく「使い分け（選択肢の提示）」として中立的に位置付ける。
   親マスタ effect_claim_policy 遵守（数値断言・誇張なし）。
   ===================================================== */

.coreax-intro {
    padding: 64px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.coreax-intro .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- セクション見出し ----------------------------- */
.coreax-intro__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.coreax-intro__lead {
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 auto 40px;
    max-width: 720px;
}

/* --- ヒーロー写真（CoreAX設備全体）-----------------------
   - max-width 440px（旧960pxの50%以下）で中央寄せ・補助的な扱い
   - 21:9 / cover でLED発光部が画面中心に来る
   - 上32px・下32px のマージンで強みカードと適度な距離確保
*/
.coreax-intro__hero {
    margin: 32px auto;
    padding: 0;
    max-width: 440px;
}

.coreax-intro__hero img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center center; /* LED発光部が中心に */
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* --- 「向いているケース」+ クローズアップ写真（左右1:1）---
   - 1fr 1fr の等幅2カラム + gap 32px
   - align-items: stretch で左カラム高さに右の画像を揃える
   - 画像は figure を flex 列にして img を flex:1 で残り高さに伸ばす
*/
.coreax-intro__usecase--with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.coreax-intro__usecase-text {
    min-width: 0;
}

.coreax-intro__closeup {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.coreax-intro__closeup img {
    width: 100%;
    flex: 1;                /* 左カラムの高さに合わせて伸縮 */
    min-height: 0;
    object-fit: cover;       /* 中央クロップで重要部（LED）保持 */
    object-position: center center;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.coreax-intro__closeup-caption {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    line-height: 1.5;
}

/* --- Core AX の強みカード（3カラム→モバイル1カラム） - */
.coreax-intro__strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.coreax-intro__strength {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px; /* 上下padding 24pxに揃える */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coreax-intro__strength:hover {
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.coreax-intro__strength-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.coreax-intro__strength-icon {
    width: 22px;
    height: 22px;
    color: #1e40af;
    stroke-width: 2;
    flex-shrink: 0;
}

.coreax-intro__strength-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.coreax-intro__strength-desc {
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* --- CoreAX が向いているケース --------------------- */
.coreax-intro__usecase {
    background: #eff6ff;
    border-left: 4px solid #1e40af;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    max-width: 820px;
    margin: 0 auto 32px;
}

.coreax-intro__usecase-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.coreax-intro__usecase-icon {
    width: 18px;
    height: 18px;
    color: #1e40af;
    stroke-width: 2.25;
    flex-shrink: 0;
}

.coreax-intro__usecase-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
    line-height: 1.4;
}

.coreax-intro__usecase-list {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.coreax-intro__usecase-list li {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.coreax-intro__usecase-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e40af;
}

.coreax-intro__usecase-list li:last-child {
    margin-bottom: 0;
}

/* --- CTA: CoreAX LP 誘導 ---------------------------- */
.coreax-intro__cta {
    text-align: center;
}

.coreax-intro__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1e40af;
    padding: 14px 32px;
    border: 2px solid #1e40af;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.1);
}

.coreax-intro__cta-btn:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 64, 175, 0.25);
}

.coreax-intro__cta-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.coreax-intro__cta-note {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.7;
    margin: 14px auto 0;
    max-width: 620px;
}

.coreax-intro__cta-note strong {
    color: #1e3a5f;
    font-weight: 700;
}

/* --- タブレット -------------------------------------- */
@media (max-width: 1024px) {
    .coreax-intro__strengths {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 768px以下: usecase は1カラム、写真はテキスト下 ----- */
@media (max-width: 768px) {
    .coreax-intro__usecase--with-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .coreax-intro__closeup {
        max-width: 100%;
        height: auto; /* 1カラム時は高さ自由（aspect-ratioで決定） */
        order: 0;     /* HTML順通り = テキストの下に画像 */
    }

    .coreax-intro__closeup img {
        flex: none;            /* desktop の flex:1 を解除 */
        height: auto;
        aspect-ratio: 16 / 9;  /* 1カラム時は16:9に再調整 */
    }

    /* ヒーロー写真もモバイルでは16:9に */
    .coreax-intro__hero {
        margin: 24px auto 36px;
    }

    .coreax-intro__hero img {
        aspect-ratio: 16 / 9;
    }
}

/* --- 640px以下: 全体的な縮小 ---------------------------- */
@media (max-width: 640px) {
    .coreax-intro {
        padding: 48px 0;
    }

    .coreax-intro__title {
        font-size: 1.4rem;
    }

    .coreax-intro__lead {
        font-size: 0.88rem;
        margin-bottom: 28px;
    }

    .coreax-intro__strengths {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .coreax-intro__usecase {
        padding: 18px 20px;
    }

    .coreax-intro__cta-btn {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}
