/* ================================================================
   web-system.css  — WEB系システム開発 サービス詳細ページ
================================================================ */

/* ── リセット / 共通 ─────────────────────────── */
.ws-page *,
.ws-page *::before,
.ws-page *::after { box-sizing: border-box; }

/* コンテナは style.css の .container を流用 */

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

/* ================================================================
   ヒーローセクション
================================================================ */
.ws-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ws-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ws-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ws-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(14,30,60,.88) 0%,
        rgba(20,50,90,.80) 55%,
        rgba(230,81,0,.55) 100%);
}
.ws-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 80px 0 60px;
}
.ws-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230,81,0,.18);
    border: 1px solid rgba(230,81,0,.5);
    color: #ffb74d;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.ws-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 16px;
}
.ws-hero__title .sub {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: #ffcc80;
    margin-top: 8px;
}
.ws-hero__lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 0 32px;
}
.ws-hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.ws-hero__stat { text-align: center; }
.ws-hero__stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffb74d;
    line-height: 1;
}
.ws-hero__stat-unit { font-size: 1rem; font-weight: 700; color: #ffcc80; }
.ws-hero__stat-label { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 4px; display: block; }
.ws-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(230,81,0,.4);
    transition: transform .2s, box-shadow .2s;
}
.ws-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(230,81,0,.5);
}

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

/* ================================================================
   対応システム一覧（グリッドカード）
================================================================ */
.ws-systems { padding: 88px 0; background: #fff; }
.ws-systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ws-sys-card {
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.ws-sys-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e65100, #ff8f00);
    opacity: 0;
    transition: opacity .2s;
}
.ws-sys-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    border-color: #ffcc80;
}
.ws-sys-card:hover::before { opacity: 1; }
.ws-sys-card__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #e65100;
    margin-bottom: 16px;
}
.ws-sys-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.ws-sys-card__desc {
    font-size: .88rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 14px;
}
.ws-sys-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0; margin: 0;
}
.ws-sys-card__tags li {
    background: #fff3e0;
    color: #e65100;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

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

/* ================================================================
   対応プラットフォーム比較テーブル
================================================================ */
.ws-platforms { padding: 80px 0; background: #fff; }
.ws-platform-table-wrap { overflow-x: auto; }
.ws-platform-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.ws-platform-table th {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    font-weight: 700;
    padding: 14px 20px;
    text-align: left;
}
.ws-platform-table th:first-child { border-radius: 12px 0 0 0; }
.ws-platform-table th:last-child  { border-radius: 0 12px 0 0; }
.ws-platform-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #f0f2f5;
    color: #374151;
    vertical-align: top;
}
.ws-platform-table tr:last-child td { border-bottom: none; }
.ws-platform-table tr:nth-child(even) td { background: #f8f9fb; }
.ws-platform-table .badge-lang {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 4px;
    margin: 2px 2px 2px 0;
}

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

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

/* ================================================================
   ケーススタディ
================================================================ */
.ws-cases { padding: 88px 0; background: #f8f9fb; }
.ws-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ws-case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform .2s, box-shadow .2s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .2s;
}
.ws-case-card.is-visible { opacity: 1; transform: translateY(0); }
.ws-case-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.ws-case-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.ws-case-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ws-case-card:hover .ws-case-card__img img { transform: scale(1.05); }
.ws-case-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.ws-case-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}
.ws-case-card__body { padding: 20px; }
.ws-case-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.4;
}
.ws-case-card__desc {
    font-size: .85rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 14px;
}
.ws-case-card__kpi {
    background: #fff3e0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: .82rem;
    color: #e65100;
    font-weight: 700;
}
.ws-case-card__kpi span { color: #bf360c; }
.ws-case-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ws-case-card__tech span {
    background: #f3f4f6;
    color: #374151;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
}

/* ================================================================
   FAQ
================================================================ */
.ws-faq { padding: 80px 0; background: #fff; }
.ws-faq-list { max-width: 800px; margin: 0 auto; }
.ws-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;
}
.ws-faq-item.is-visible { opacity: 1; transform: translateY(0); }
.ws-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;
}
.ws-faq-question:hover { background: #fff8f5; }
.ws-faq-question[aria-expanded="true"] { color: #e65100; background: #fff8f5; }
.ws-faq-question i {
    flex-shrink: 0;
    color: #e65100;
    transition: transform .3s;
}
.ws-faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.ws-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.ws-faq-answer p {
    padding: 0 22px 18px;
    font-size: .88rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}

/* ================================================================
   CTA
================================================================ */
.ws-cta {
    padding: 88px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #e65100 100%);
    text-align: center;
}
.ws-cta__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.3;
}
.ws-cta__text {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    margin: 0 0 36px;
}
.ws-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ws-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.ws-cta-btn:hover { transform: translateY(-3px); }
.ws-cta-btn--primary {
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    box-shadow: 0 4px 20px rgba(230,81,0,.4);
}
.ws-cta-btn--primary:hover { box-shadow: 0 8px 28px rgba(230,81,0,.5); }
.ws-cta-btn--secondary {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
}
.ws-cta-btn--secondary:hover { background: rgba(255,255,255,.25); }

/* ================================================================
   レスポンシブ
================================================================ */
@media (max-width: 1100px) {
    .ws-tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .ws-systems-grid  { grid-template-columns: repeat(2, 1fr); }
    .ws-strengths-grid { grid-template-columns: 1fr; }
    .ws-cases-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ws-hero { min-height: 480px; }
    .ws-hero__stats { gap: 20px; }
    .ws-hero__stat-num { font-size: 1.8rem; }
    .ws-systems-grid { grid-template-columns: 1fr; }
    .ws-tech-grid    { grid-template-columns: 1fr; }
    .ws-section-lead { font-size: .9rem; }
    .ws-platform-table { font-size: .82rem; }
    .ws-platform-table th,
    .ws-platform-table td { padding: 10px 12px; }
}

/* パンくずを fixed header の高さ分下げる（SP:50px / PC:70px） */
.ws-breadcrumb { margin-top: 50px; }
@media screen and (min-width: 800px) {
  .ws-breadcrumb { margin-top: 70px; }
}
