@charset "utf-8";

/* ============================================================
   OEM — 統一スタイルシート
   使用ページ:
     oem.html              (OEM サービス入口)
     oem_dimmer.html       (調光器 OEM 詳細)
     oem_lighting.html     (照明器具 OEM 詳細)
   ============================================================ */


/* ============================================================
   1. 共通コンテナ（全ページ共通）
   ============================================================ */

.oem-main-section {
    padding: 100px 8% 150px;
    background-color: #fff;
}

.company-container {
    max-width: 1000px;
    margin: 0 auto;
}


/* ============================================================
   2. Hero（OEM サービス入口ビジュアル）
   HTML: <section class="oem-hero">
   oem.html 専用
   ============================================================ */

.oem-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #4a4a4a;
}

.oem-hero-bg {
    position: relative;
    width: 50%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5ede0;
}

.oem-hero-bg img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.oem-hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, #4a4a4a 100%);
    pointer-events: none;
    z-index: 10;
}

.oem-hero-text {
    position: relative;
    z-index: 1;
    width: 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.oem-hero-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.4em;
    font-family: Arial, sans-serif;
    color: #E8D5A8;
    margin-bottom: 20px;
    border-left: 2px solid #C8A96E;
    padding-left: 12px;
}

.oem-hero-title {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.2em;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 25px;
}

.oem-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 2;
    letter-spacing: 0.05em;
}


/* ============================================================
   3. 取引事例・納入実績セクション
   HTML: <section class="oem-cases">
   顯示 OEM 案例（品牌名 + 产品 + 我們的貢獻）
   ============================================================ */

.oem-cases {
    padding: 70px 8% 60px;
    background: #faf7f2;
    border-top: 1px solid #ede8df;
    border-bottom: 1px solid #ede8df;
}

.oem-cases-header {
    text-align: center;
    margin-bottom: 40px;
}

.oem-cases-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.oem-cases-lead {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}


/* --- 案例卡片网格（一行 3 个） --- */

.oem-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.oem-case-card {
    background: #fff;
    border: 1px solid #ede8df;
    border-top: 2px solid #C8A96E;
    border-radius: 4px;
    padding: 28px 24px;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.oem-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 169, 110, 0.15);
}

/* 事例番号标签 */
.oem-case-num {
    font-size: 11px;
    color: #B8944F;
    letter-spacing: 0.3em;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
}

/* 系列名（强调） */
.oem-case-tag {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede8df;
}

/* 客户类型/简述 */
.oem-case-lead {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.oem-case-text {
    font-size: 13px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 14px;
    flex: 1;
}

.oem-case-text strong {
    color: #B8944F;
    font-weight: 700;
}

.oem-case-sub {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #B8944F;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
}

/* 担当範囲（标签式） */
.oem-case-scope {
    display: block;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #ede8df;
    font-size: 12px;
    color: #555;
    letter-spacing: 0.05em;
    line-height: 1.7;
}

.oem-case-scope span {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #C8A96E;
    padding: 2px 10px;
    border-radius: 2px;
    margin-right: 8px;
    letter-spacing: 0.15em;
    vertical-align: middle;
}


/* ============================================================
   4. カテゴリ紹介セクション
   HTML: <section class="oem-intro">
   oem.html 専用（入口ページ用）
   ============================================================ */

.oem-intro {
    text-align: center;
    padding: 80px 0 60px;
}

.oem-intro .section-label {
    font-size: 11px;
    color: #B8944F;
    letter-spacing: 0.5em;
    margin-bottom: 25px;
}

.oem-intro .section-main-title {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.25em;
    margin-bottom: 20px;
    color: #222;
}

.oem-lead {
    font-size: 14px;
    color: #666;
    line-height: 2;
    max-width: 680px;
    margin: 0 auto;
}


/* ============================================================
   4. カテゴリカードグリッド
   HTML: <section class="oem-category-grid">
   oem.html 専用（入口ページ用）
   ============================================================ */

.oem-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 80px;
}

.oem-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8e0d4;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.oem-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(200,169,110,0.18);
    border-color: #C8A96E;
}

.oem-category-bar {
    height: 4px;
}

.oem-category-bar--dimmer {
    background: linear-gradient(to right, #C8A96E, #E8D5A8);
}

.oem-category-bar--lighting {
    background: linear-gradient(to right, #5a9e6f, #8dcc9f);
}

.oem-category-bar--thermal {
    background: linear-gradient(to right, #D9534F, #E8A19C);
}

.oem-category-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f9f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0ebe3;
}

.oem-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

/* ホバー時の画像切替（温熱器具OEM・照明器具OEMカード用） */
.oem-category-img .img-default {
    opacity: 1;
}

.oem-category-img .img-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.oem-category-card:hover .oem-category-img .img-default {
    opacity: 0;
}

.oem-category-card:hover .oem-category-img .img-hover-img {
    opacity: 1;
}

.oem-category-card:hover .oem-category-img img {
    transform: scale(1.05);
}

.oem-category-body {
    padding: 30px 28px 32px;
}

.oem-category-en {
    font-size: 10px;
    letter-spacing: 0.4em;
    color: #B8944F;
    margin-bottom: 10px;
}

.oem-category-title {
    font-size: 22px;
    font-weight: 400;
    color: #222;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.oem-category-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.9;
    margin-bottom: 20px;
}

.oem-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #777;
    transition: all 0.3s;
    padding-top: 16px;
    border-top: 1px solid #f0ebe3;
}

.oem-category-link::after {
    content: "→";
    transition: transform 0.3s;
}

.oem-category-card:hover .oem-category-link {
    color: #333;
}

.oem-category-card:hover .oem-category-link::after {
    transform: translateX(4px);
}


/* ============================================================
   5. フロー詳細（oem_dimmer.html / oem_lighting.html の共通スタイル）
   HTML: <div class="oem-list"> の構造
   ※ 旧 flow.html / new ecom pages で使用
   ============================================================ */

.oem-group {
    margin-bottom: 120px;
}

.oem-group-header {
    margin-bottom: 60px;
    border-left: 3px solid #C8A96E;
    padding: 15px 0 15px 25px;
    background-color: #F7F3EC;
}

.oem-group-header .en-title {
    font-size: 14px;
    color: #777;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.oem-group-header .jp-title {
    font-size: 26px;
    color: #222;
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.oem-list {
    display: flex;
    flex-direction: column;
}

.oem-item {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.oem-item:hover {
    background-color: #fcfcfc;
    padding-left: 20px;
}

.oem-num {
    width: 120px;
    flex-shrink: 0;
}

.oem-num span {
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 200;
    color: #C8A96E;
    position: relative;
    display: inline-block;
}

.oem-num span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 100%;
    background: #C8A96E;
}

.oem-content {
    flex: 1;
    padding-left: 20px;
}

.oem-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.oem-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}


/* ============================================================
   6. OEM CTAセクション
   HTML: <section class="oem-cta">
   oem.html / oem_dimmer / oem_lighting / oem_thermal 全ページ末尾
   基本スタイルは product_dimmer.css に集約。
   ここでは OEM カテゴリ用にマージン(上に引き上げ)のみ上書き。
   ============================================================ */

.oem-cta {
    margin: 30px 0 0;
}

.oem-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 8%;
    text-align: center;
}

.oem-cta-inner h3 {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    line-height: 1.6;
}

.oem-cta-inner p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}


/* ============================================================
   7. OEM 詳細ページ用 page-header 上書き
   oem_dimmer.html / oem_lighting.html 用に common.css の上書き
   ============================================================ */

.page-header {
    background: linear-gradient(to right, #f0ebe3 0%, #fff 40%);
}


/* ============================================================
   モバイル対応
   ============================================================ */

@media screen and (max-width: 767px) {

    /* --- 2. Hero --- */
    .oem-hero {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        background-color: #fff;
    }

    .oem-hero-bg {
        position: relative;
        width: 100%;        /* 50% → 100% で全幅に */
        flex-shrink: 0;    /* flex 子要素の縮みを防止 */
        height: 280px;
        background-color: #4a4a4a;
    }

    .oem-hero-bg::after {
        display: none;
    }

    .oem-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100%;
    }

    .oem-hero-text {
        width: 100%;
        padding: 35px 8%;
        margin-right: 0;
        color: #333;
    }

    .oem-hero-title {
        font-size: 20px;
        color: #222;
    }

    .oem-hero-desc {
        color: #666;
    }

    /* --- 3. カテゴリ紹介 --- */
    .oem-intro {
        padding: 50px 0 30px;
    }

    .oem-intro .section-main-title {
        font-size: 1.6rem;
    }

    /* --- 4. カテゴリカード --- */
    .oem-category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* --- 6. OEM CTA --- */
    .oem-cta-inner {
        padding: 40px 5%;
    }

    .oem-cta-inner h3 {
        font-size: 15px;
    }

    /* --- 3. 取引事例 --- */
    .oem-cases {
        padding: 50px 5% 40px;
    }

    .oem-cases-header {
        margin-bottom: 30px;
    }

    .oem-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .oem-case-card {
        padding: 24px 20px;
    }
}