/* ==============================
   e-Craft Intro Section
   About e-Craft / Example Cards
============================== */

.ecraft-intro-section {
    position: relative;
    padding: 96px 24px;
    background:
        linear-gradient(
            rgba(17, 18, 21, 0.86),
            rgba(17, 18, 21, 0.94)
        ),
        url("/image/company-bg.jpg") center center / cover no-repeat;
    overflow: hidden;
}

.ecraft-intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(224, 122, 95, 0.12), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(224, 122, 95, 0.08), transparent 30%);
    pointer-events: none;
}

.ecraft-intro-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

.ecraft-intro-content {
    max-width: 900px;
    margin: 0 auto 56px;
    padding: 36px;
    background: rgba(28, 29, 34, 0.78);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.ecraft-intro-content .section-label {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ecraft-intro-content .section-title {
    margin-bottom: 28px;
    text-align: left;
}

.ecraft-intro-content p {
    color: var(--text-main);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 18px;
}

.ecraft-intro-content p:last-child {
    margin-bottom: 0;
}

/* ==============================
   Example Cards
============================== */

.ecraft-service-examples {
    max-width: 1180px;
    margin: 0 auto;
}

.ecraft-service-examples .section-heading {
    max-width: 880px;
    margin: 0 auto 22px;
}

.examples-lead {
    max-width: 880px;
    margin: 0 auto 32px;
    text-align: left;
}

.example-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 880px;
    margin: 0 auto;
}

.example-card {
    min-height: 190px;
    padding: 28px;
    background: rgba(28, 29, 34, 0.88);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: 0.2s ease;
}

.example-card:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 122, 95, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.example-card h4 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.55;
}

.example-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
}

.examples-note {
    margin: 28px auto 0;
    max-width: 900px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 1024px) {
    .example-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 820px;
    }
}

@media (max-width: 768px) {
    .ecraft-intro-section {
        padding: 56px 18px;
    }

    .ecraft-intro-content {
        padding: 24px;
        margin-bottom: 36px;
    }

    .ecraft-intro-content .section-title {
        font-size: 26px;
    }

    .ecraft-intro-content p {
        font-size: 15px;
        line-height: 1.9;
    }

    .ecraft-service-examples h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .examples-lead {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 24px;
        text-align: left;
    }

    .example-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .example-card {
        min-height: auto;
        padding: 22px;
    }

    .example-card h4 {
        font-size: 18px;
        line-height: 1.55;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .example-card p {
        font-size: 14px;
        line-height: 1.8;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .examples-note {
        margin-top: 22px;
        font-size: 12px;
        line-height: 1.8;
        text-align: left;
    }
}


/* ==============================
   External Proof Area
   Reviews only
============================== */

/* 外部サービス紹介エリア内ではバッジを非表示 */
.external-proof-area .proof-zehitomo-badge,
.external-proof-area .proof-meetsmore-badge,
.external-proof-area .external-proof-badges {
    display: none !important;
}

/* 外部サービス紹介エリア全体 */
.external-proof-area {
    margin: 48px auto 0;
    max-width: 980px;
    padding: 28px;
    background: rgba(17, 18, 21, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: visible;
}

.external-proof-text {
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

/* バッジ行は使わず、口コミ行のみ表示 */
.external-proof-groups {
    display: block;
}

.external-proof-reviews {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* 口コミカード */
.proof-zehitomo-review,
.proof-meetsmore-review {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 150px;
    padding: 18px;
    box-sizing: border-box;
    overflow: visible;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(28, 29, 34, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

/* 外部ウィジェットの基本制御 */
.proof-zehitomo-review iframe,
.proof-zehitomo-review img,
.proof-zehitomo-review div,
.proof-meetsmore-review iframe,
.proof-meetsmore-review img,
.proof-meetsmore-review div {
    max-width: 100%;
}

/* 計測用の非表示画像対策 */
.external-proof-area img[style*="display:none"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ==============================
   External Proof Mobile
============================== */

@media (max-width: 768px) {
    .external-proof-area {
        margin-top: 36px !important;
        padding: 18px !important;
        border-radius: 14px;
        overflow: visible !important;
    }

    .external-proof-text {
        margin-bottom: 16px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
        text-align: center !important;
    }

    .external-proof-reviews {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .proof-zehitomo-review,
    .proof-meetsmore-review {
        min-height: 150px !important;
        padding: 14px !important;
        overflow: visible !important;
    }

    .proof-zehitomo-review #zehitomo-pro-widget {
        zoom: 0.62 !important;
        transform: none !important;
        max-width: none !important;
    }

    .proof-zehitomo-review #zehitomo-pro-widget * {
        max-width: none !important;
    }

    .proof-meetsmore-review #meetsmore-widget {
        zoom: 0.70 !important;
        transform: none !important;
        max-width: none !important;
    }

    .proof-meetsmore-review #meetsmore-widget * {
        max-width: none !important;
    }
}

/* ==============================
   Service examples sub heading
============================== */

.service-examples-heading {
    margin-top: 34px;
    margin-bottom: 18px;
}

.service-examples-heading .section-label {
    font-size: 11px;
    letter-spacing: 0.11em;
    opacity: 0.9;
}

.service-examples-heading .section-heading-title {
    padding-left: 0;
    font-size: 22px;
}

.service-examples-heading .section-heading-title::before {
    display: none;
}

@media (max-width: 768px) {
    .service-examples-heading {
        margin-top: 28px;
        margin-bottom: 16px;
    }

    .service-examples-heading .section-heading-title {
        font-size: 21px;
    }
}
