/* ===========================================
   about.css - 「次の灯とは？」ハブページ専用
   Version: 4.0
   v4.0: エンタープライズBtoB品質へ全面改善
   - レインボーグラデーション廃止
   - 上品な装飾・余白・タイポグラフィ
   - 日本BtoB製造業サイト参考
=========================================== */

/* ページヘッダーは common.css .ewrd-sub-hero に統合 */

/* ===================================
   ハブセクション — 全幅背景画像 + コンテンツ片寄せ
=================================== */
.ewrd-hub-section {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* 背景画像（CSS変数で指定） */
.ewrd-hub-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hub-bg, linear-gradient(135deg, #E8EBF0, #D0D5DD)) no-repeat center center / cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.ewrd-hub-section:hover::before {
    transform: scale(1.03);
}

/* ダークオーバーレイ（テキスト可読性確保） */
.ewrd-hub-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 43, 72, 0.85) 0%,
        rgba(26, 43, 72, 0.6) 45%,
        rgba(26, 43, 72, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* コンテンツ右寄せの場合、オーバーレイ反転 */
.ewrd-hub-section:has(.ewrd-hub-content--right)::after {
    background: linear-gradient(
        to left,
        rgba(26, 43, 72, 0.85) 0%,
        rgba(26, 43, 72, 0.6) 45%,
        rgba(26, 43, 72, 0.15) 100%
    );
}

/* コンテンツブロック */
.ewrd-hub-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px;
    max-width: 540px;
    color: #fff;
}

.ewrd-hub-content--left {
    margin-right: auto;
    margin-left: max(40px, calc((100vw - 1200px) / 2));
}

.ewrd-hub-content--right {
    margin-left: auto;
    margin-right: max(40px, calc((100vw - 1200px) / 2));
}

/* 白テキスト上書き */
.ewrd-hub-section .ewrd-section-title {
    color: #fff;
}

.ewrd-hub-section .ewrd-text {
    color: rgba(255, 255, 255, 0.75);
}

.ewrd-hub-section .ewrd-btn-border {
    border-color: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid var(--accent-red, #D61518);
    color: #fff;
}

.ewrd-hub-section .ewrd-btn-border::before {
    background: rgba(255, 255, 255, 0.15);
}

.ewrd-hub-section .ewrd-btn-border:hover {
    border-color: #fff;
    border-bottom-color: var(--accent-red, #D61518);
    color: #fff;
}

.ewrd-hub-section .ewrd-section-title::after {
    background: var(--accent-color, #B8942E);
}

/* ===================================
   見出し装飾 — 上品・抑制
=================================== */

/* 英字ラベル */
.ewrd-label {
    display: inline-block;
    color: var(--accent-color, #B8942E);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    font-family: var(--font-english, 'Poppins', sans-serif);
    font-size: 0.6875rem;
    text-transform: uppercase;
}

/* セクションタイトル — 下線は単色アクセント */
.ewrd-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-family: var(--font-serif, 'Noto Serif JP', serif);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 28px;
    color: var(--secondary-color, #1A2B48);
    padding-bottom: 20px;
    position: relative;
    letter-spacing: 0.06em;
}

/* レインボー廃止 → 上品な単色ライン */
.ewrd-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent-color, #B8942E);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ewrd-hub-section:hover .ewrd-section-title::after {
    width: 72px;
}

.ewrd-text {
    font-size: var(--fs-body, 0.9375rem);
    line-height: 2;
    margin-bottom: 40px;
    color: var(--text-sub, #5A5A5A);
    letter-spacing: 0.04em;
}

/* ===================================
   ボタン — ミニマル・端正
=================================== */
.ewrd-btn-border {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border: 1px solid var(--secondary-color, #1A2B48);
    border-bottom: 2px solid var(--accent-red, #D61518);
    color: var(--secondary-color, #1A2B48);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-english, 'Poppins', sans-serif);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.ewrd-btn-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color, #1A2B48);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.ewrd-btn-border:hover::before {
    width: 100%;
}

.ewrd-btn-border:hover {
    color: #fff;
    border-color: var(--secondary-color, #1A2B48);
    border-bottom-color: var(--accent-red, #D61518);
}

/* テキストをz-index上に */
.ewrd-btn-border span,
.ewrd-btn-border {
    position: relative;
    z-index: 1;
}

/* ===================================
   ヒーローがあるため .main の padding-top を打ち消す
=================================== */
.ewrd-main {
    padding-top: 0;
}

/* ===================================
   ダミープレースホルダー（素材未配置時）
=================================== */
.ewrd-placeholder {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: linear-gradient(135deg, #E8EBF0 0%, #D0D5DD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ewrd-placeholder::after {
    content: attr(data-label) " (素材準備中)";
    color: #8A8A8A;
    font-size: 0.75rem;
    font-family: var(--font-english, 'Poppins', sans-serif), var(--font-japanese, 'Noto Sans JP', sans-serif);
    text-align: center;
    letter-spacing: 0.06em;
}

/* ===================================
   Entity Definition — ロゴ + 説明文2カラム
=================================== */
.ewrd-entity-definition {
    padding: 64px 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ewrd-entity-inner {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 960px;
}

.ewrd-entity-logo {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ewrd-entity-logo img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.ewrd-entity-text {
    flex: 1;
}

.ewrd-entity-text p {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-main, #2C2C2C);
    letter-spacing: 0.04em;
}

/* ===================================
   レスポンシブ
=================================== */
@media (max-width: 900px) {
    .ewrd-hub-section {
        min-height: 400px;
    }

    .ewrd-hub-section::after {
        background: rgba(26, 43, 72, 0.75) !important;
    }

    .ewrd-hub-content {
        padding: 64px 32px;
        max-width: 100%;
    }

    .ewrd-hub-content--left,
    .ewrd-hub-content--right {
        margin-left: 24px;
        margin-right: 24px;
    }

    .ewrd-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .ewrd-hub-section {
        min-height: 360px;
    }

    .ewrd-hub-content {
        padding: 48px 24px;
    }

    /* Entity definition: stack vertically, left-aligned */
    .ewrd-entity-inner {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .ewrd-entity-logo {
        flex: none;
        justify-content: flex-start;
    }

    .ewrd-entity-logo img {
        max-width: 140px;
    }

    .ewrd-entity-text p {
        font-size: 0.9375rem;
    }
}
