/* ================================================================
   ai-solution.css — AIソリューション サービス詳細ページ
   テーマカラー: ディープブルー×パープル×ゴールドアクセント
   (#1a1a6e / #4f46e5 / #7c3aed / #f59e0b)
================================================================ */

.as-page *, .as-page *::before, .as-page *::after { box-sizing: border-box; }

/* ================================================================
   パンくず
================================================================ */
.as-breadcrumb {
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    font-size: 13px;
    color: #6b7280;
}
.as-breadcrumb .breadcrumb-list {
    display: flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.as-breadcrumb .breadcrumb-list li + li::before { content: '/'; color: #d1d5db; margin-right: 6px; }
.as-breadcrumb a { color: #4f46e5; text-decoration: none; }
.as-breadcrumb a:hover { text-decoration: underline; }

/* ================================================================
   ヒーロー
================================================================ */
.as-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.as-hero__bg { position: absolute; inset: 0; z-index: 0; }
.as-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.as-hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        rgba(10,10,50,.92) 0%,
        rgba(30,10,80,.85) 50%,
        rgba(79,70,229,.50) 100%);
}
.as-hero__content { position: relative; z-index: 1; width: 100%; padding: 88px 0 72px; }
.as-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124,58,237,.2);
    border: 1px solid rgba(124,58,237,.55);
    color: #c4b5fd;
    font-size: 13px; font-weight: 600; letter-spacing: .08em;
    padding: 6px 18px; border-radius: 50px; margin-bottom: 22px;
}
.as-hero__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; color: #fff; line-height: 1.2; margin: 0 0 18px;
}
.as-hero__title .sub {
    display: block;
    font-size: clamp(.95rem, 2vw, 1.25rem);
    font-weight: 500; color: #c4b5fd; margin-top: 10px;
}
.as-hero__lead {
    font-size: 1.05rem; color: rgba(255,255,255,.85);
    line-height: 1.85; max-width: 700px; margin: 0 0 36px;
}
.as-hero__stats { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.as-hero__stat { text-align: center; }
.as-hero__stat-num { font-size: 2.5rem; font-weight: 800; color: #fbbf24; line-height: 1; }
.as-hero__stat-unit { font-size: 1rem; font-weight: 700; color: #fde68a; }
.as-hero__stat-label { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 4px; display: block; }
.as-hero__cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: 1rem; font-weight: 700;
    padding: 14px 36px; border-radius: 50px; text-decoration: none;
    box-shadow: 0 4px 24px rgba(124,58,237,.45);
    transition: transform .2s, box-shadow .2s;
}
.as-hero__cta:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(124,58,237,.60); }

/* ================================================================
   共通セクションタイトル
================================================================ */
.as-section-title { text-align: center; margin-bottom: 52px; }
.as-section-title .en {
    display: block; font-size: .78rem; font-weight: 700;
    letter-spacing: .18em; color: #7c3aed; margin-bottom: 8px; text-transform: uppercase;
}
.as-section-title .ja {
    display: block; font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800; color: #1a1a2e; line-height: 1.3;
}
.as-section-lead {
    text-align: center; font-size: 1rem; color: #4b5563;
    line-height: 1.8; max-width: 720px; margin: -32px auto 52px;
}

/* ================================================================
   対応ソリューション — カードグリッド（3列 + ワイドカード）
================================================================ */
.as-solutions { padding: 96px 0; background: #fff; }
.as-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.as-sol-card { position: relative; }
.as-sol-card--wide { grid-column: span 2; }

.as-sol-card__inner {
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.as-sol-card__inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 52px rgba(79,70,229,.12);
    border-color: #c4b5fd;
}
.as-sol-card__img {
    position: relative; height: 220px; overflow: hidden; flex-shrink: 0;
}
.as-sol-card--wide .as-sol-card__img { height: 260px; }
.as-sol-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.as-sol-card__inner:hover .as-sol-card__img img { transform: scale(1.06); }
.as-sol-card__img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,50,.65) 0%, transparent 60%);
}
.as-sol-card__badge {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 14px; border-radius: 50px;
}
.as-sol-card__new {
    position: absolute; top: 14px; right: 14px;
    background: #f59e0b; color: #fff;
    font-size: .68rem; font-weight: 800;
    padding: 3px 10px; border-radius: 50px; letter-spacing: .05em;
}
.as-sol-card__body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; }
.as-sol-card__icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #4f46e5; margin-bottom: 14px; flex-shrink: 0;
}
.as-sol-card__title {
    font-size: 1.08rem; font-weight: 700; color: #1a1a2e;
    margin: 0 0 10px; line-height: 1.4;
}
.as-sol-card__desc {
    font-size: .88rem; color: #4b5563;
    line-height: 1.78; margin: 0 0 14px; flex: 1;
}
.as-sol-card__highlight {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 14px 16px; margin-bottom: 14px;
}
.as-sol-card__highlight h4 {
    font-size: .85rem; font-weight: 700; color: #4f46e5; margin: 0 0 8px;
}
.as-sol-card__highlight ul {
    margin: 0; padding: 0 0 0 16px;
    font-size: .82rem; color: #374151; line-height: 1.75;
}
.as-sol-card__tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    list-style: none; padding: 0; margin: 0;
}
.as-sol-card__tags li {
    background: #ede9fe; color: #4f46e5;
    font-size: .73rem; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
}

/* ================================================================
   MCPサーバー / エッジAI 特集バナー（横帯）
================================================================ */
.as-feature-band {
    padding: 72px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}
.as-feature-band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}
.as-feature-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex; flex-direction: column; gap: 16px;
    transition: background .25s, border-color .25s;
}
.as-feature-item:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(196,181,253,.4);
}
.as-feature-item__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.as-feature-item__title { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0; }
.as-feature-item__desc { font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.8; margin: 0; }
.as-feature-item__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.as-feature-item__list li {
    font-size: .85rem; color: rgba(255,255,255,.75);
    padding-left: 20px; position: relative;
}
.as-feature-item__list li::before {
    content: '▶';
    position: absolute; left: 0; color: #a78bfa; font-size: .65rem; top: 3px;
}
.as-feature-item__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.as-feature-item__tags span {
    background: rgba(167,139,250,.18);
    border: 1px solid rgba(167,139,250,.35);
    color: #c4b5fd;
    font-size: .72rem; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
}

/* ================================================================
   技術スタック
================================================================ */
.as-techstack { padding: 80px 0; background: #f8f9fb; }
.as-tech-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.as-tech-cat {
    background: #fff; border-radius: 14px; padding: 24px 20px;
    border: 1px solid #e9ecef;
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.as-tech-cat.is-visible { opacity: 1; transform: translateY(0); }
.as-tech-cat__icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; margin-bottom: 14px;
}
.as-tech-cat h4 { font-size: .95rem; font-weight: 700; color: #1a1a2e; margin: 0 0 12px; }
.as-tech-items { display: flex; flex-wrap: wrap; gap: 6px; }
.as-tech-badge {
    display: inline-block; background: #f3f4f6; color: #374151;
    font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}

/* ================================================================
   強みセクション
================================================================ */
.as-strengths { padding: 80px 0; background: #fff; }
.as-strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.as-strength-card {
    background: #fff; border-radius: 16px; padding: 32px 28px;
    border: 1px solid #e9ecef;
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.as-strength-card.is-visible { opacity: 1; transform: translateY(0); }
.as-strength-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; margin-bottom: 18px;
}
.as-strength-title { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin: 0 0 10px; }
.as-strength-desc { font-size: .88rem; color: #4b5563; line-height: 1.75; margin: 0 0 14px; }
.as-strength-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.as-strength-points li { font-size: .83rem; color: #374151; padding-left: 18px; position: relative; }
.as-strength-points li::before { content: '✓'; position: absolute; left: 0; color: #4f46e5; font-weight: 700; }

/* ================================================================
   開発フロー
================================================================ */
.as-process { padding: 80px 0; background: #f8f9fb; }
.as-process-timeline {
    max-width: 760px; margin: 0 auto;
    display: flex; flex-direction: column;
    position: relative; padding-left: 32px;
}
.as-process-timeline::before {
    content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px;
    width: 2px; background: linear-gradient(to bottom, #4f46e5, #c4b5fd);
}
.as-process-step {
    position: relative; padding: 0 0 36px 28px;
    opacity: 0; transform: translateX(-12px);
    transition: opacity .5s ease, transform .5s ease;
}
.as-process-step.is-visible { opacity: 1; transform: translateX(0); }
.as-process-step:last-child { padding-bottom: 0; }
.as-process-step__num {
    position: absolute; left: -32px; top: 0;
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: .82rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(79,70,229,.38);
}
.as-process-step__title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin: 6px 0 8px; }
.as-process-step__desc { font-size: .88rem; color: #4b5563; line-height: 1.75; margin: 0; }

/* ================================================================
   導入事例カード
================================================================ */
.as-cases { padding: 88px 0; background: #fff; }
.as-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.as-case-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #e9ecef;
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .2s;
}
.as-case-card.is-visible { opacity: 1; transform: translateY(0); }
.as-case-card:hover { box-shadow: 0 14px 44px rgba(79,70,229,.12); }
.as-case-card__img { position: relative; height: 200px; overflow: hidden; }
.as-case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.as-case-card:hover .as-case-card__img img { transform: scale(1.06); }
.as-case-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,50,.6), transparent); }
.as-case-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 12px; border-radius: 50px;
}
.as-case-card__body { padding: 20px; }
.as-case-card__title { font-size: .98rem; font-weight: 700; color: #1a1a2e; margin: 0 0 10px; line-height: 1.4; }
.as-case-card__desc { font-size: .85rem; color: #4b5563; line-height: 1.72; margin: 0 0 12px; }
.as-case-card__kpi {
    background: #ede9fe; border-radius: 8px;
    padding: 9px 14px; margin-bottom: 12px;
    font-size: .82rem; color: #4f46e5; font-weight: 700;
}
.as-case-card__kpi span { color: #3730a3; }
.as-case-card__tech { display: flex; flex-wrap: wrap; gap: 6px; }
.as-case-card__tech span {
    background: #f3f4f6; color: #374151;
    font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 4px;
}

/* ================================================================
   FAQ
================================================================ */
.as-faq { padding: 80px 0; background: #f8f9fb; }
.as-faq-list { max-width: 800px; margin: 0 auto; }
.as-faq-item {
    border: 1px solid #e9ecef; border-radius: 12px; margin-bottom: 12px; overflow: hidden;
    opacity: 0; transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}
.as-faq-item.is-visible { opacity: 1; transform: translateY(0); }
.as-faq-question {
    width: 100%; background: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; font-size: .95rem; font-weight: 600; color: #1a1a2e;
    text-align: left; transition: background .2s;
}
.as-faq-question:hover { background: #f5f3ff; }
.as-faq-question[aria-expanded="true"] { color: #4f46e5; background: #f5f3ff; }
.as-faq-question i { flex-shrink: 0; color: #4f46e5; transition: transform .3s; }
.as-faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.as-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.as-faq-answer p { padding: 0 22px 18px; font-size: .88rem; color: #4b5563; line-height: 1.8; margin: 0; }

/* ================================================================
   CTA
================================================================ */
.as-cta {
    padding: 96px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #1a1a6e 100%);
    text-align: center;
    position: relative; overflow: hidden;
}
.as-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(124,58,237,.25) 0%, transparent 70%);
    pointer-events: none;
}
.as-cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin: 0 0 16px; line-height: 1.3; position: relative; z-index: 1; }
.as-cta__text { font-size: 1rem; color: rgba(255,255,255,.82); line-height: 1.8; margin: 0 0 40px; position: relative; z-index: 1; }
.as-cta__buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.as-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 34px; border-radius: 50px;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.as-cta-btn:hover { transform: translateY(-3px); }
.as-cta-btn--primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; box-shadow: 0 4px 24px rgba(124,58,237,.45);
}
.as-cta-btn--primary:hover { box-shadow: 0 8px 32px rgba(124,58,237,.60); }
.as-cta-btn--secondary {
    background: rgba(255,255,255,.12); color: #fff;
    border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(4px);
}
.as-cta-btn--secondary:hover { background: rgba(255,255,255,.22); }

/* ================================================================
   レスポンシブ
================================================================ */
@media (max-width: 1100px) {
    .as-tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .as-solutions-grid { grid-template-columns: 1fr; }
    .as-sol-card--wide { grid-column: span 1; }
    .as-strengths-grid { grid-template-columns: 1fr; }
    .as-cases-grid { grid-template-columns: 1fr; }
    .as-feature-band-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .as-hero { min-height: 520px; }
    .as-hero__stats { gap: 22px; }
    .as-hero__stat-num { font-size: 2rem; }
    .as-tech-grid { grid-template-columns: 1fr; }
    .as-section-lead { font-size: .9rem; }
}
