@charset "utf-8";

/* ============================================================
   PRODUCT COMMON — 全产品页共通スタイルシート
   ============================================================
   ⚠️ このファイル名は "dimmer" ですが、実際には全产品ページで
   共有される「共通スタイルシート」です。命名は历史的な経緯で
   残しています。

   使用ページ:
     ◆ 调光器 (dimmer):
       product_wall_dimmer.html, product_wall_dimmer_gyaku.html,
       product_wall_dimmer_sei.html,  product_wall_dimmer_pwm.html,
       product_internal_dimmer.html,  product_internal_dimmer_bunki.html,
       product_internal_dimmer_gyaku.html, product_internal_dimmer_pwm.html
     ◆ 照明器具 (lighting):
       lighting_bulb.html, lighting_ceiling_light.html, lighting_pendant_light.html,
       lighting_table_light.html, lighting_ceiling_six_lights.html,
       lighting_chandelier_pendant.html, lighting_classic_ball_lamp.html,
       lighting_classic_desk_lamp.html, lighting_retro_modern_pendant.html,
       lighting_wooden_pendant.html
     ◆ 温热 (thermal):
       product_thermal_therapy.html

   ◆ 専用追加スタイル（このファイルと併用）:
     product_interior_lighting.css   — 室内照明専用（capiz 等）
     product_thermal_therapy.css     — 温热専用
   ============================================================ */


/* ============================================================
   1. ページヘッダー（dimmer- シリーズ）
   HTML: <div class="dimmer-page-header">
   ============================================================ */

.dimmer-page-header {
    padding: 130px 8% 80px;
    background: linear-gradient(135deg, #f5f0e8 0%, #fff 60%);
    position: relative;
    overflow: hidden;
}

.dimmer-page-header::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #C8A96E, #E8D5A8, transparent);
}

.dimmer-page-header::after {
    content: attr(data-en);
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    font-size: 100px;
    font-weight: 700;
    color: rgba(200,169,110,0.07);
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.dimmer-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.dimmer-header-sub {
    font-size: 11px;
    color: #B8944F;
    letter-spacing: 0.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dimmer-header-sub::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: #C8A96E;
}

.dimmer-header-title {
    font-size: 48px;
    font-weight: 200;
    color: #222;
    letter-spacing: 0.15em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.dimmer-header-desc {
    font-size: 15px;
    color: #666;
    line-height: 2;
    max-width: 600px;
}


/* ============================================================
   3. パンくず
   HTML: <p class="dimmer-breadcrumb">
   ============================================================ */

.dimmer-breadcrumb {
    padding: 12px 8%;
    font-size: 13px;
    color: #777;
    letter-spacing: 0.15em;
    background: #f9f7f4;
    border-bottom: 1px solid #ede8df;
}

.dimmer-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.dimmer-breadcrumb a:hover {
    color: #B8944F;
    text-decoration: underline;
}

.dimmer-breadcrumb span {
    margin: 0 8px;
    color: #bbb;
}


/* ============================================================
   4. A. サブカテゴリ選択ページ
   HTML: product_wall_dimmer.html（また内蔵型など 1 枚のページもある）
   ============================================================ */

.subcat-intro-section {
    padding: 80px 8% 60px;
    text-align: center;
}

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

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

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


/* --- カードグリッド --- */

.subcat-section {
    padding: 60px 8% 120px;
}

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

/* カード数が 1〜2 枚のときは 1〜2 列に自動調整し、中央寄せにする。
   カード数が 3 枚以上の場合はデフォルトの 3 列を維持。 */
.subcat-grid:has(> .subcat-link:only-child),
.subcat-grid:has(> .subcat-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.subcat-grid:has(> .subcat-link:nth-child(2):last-child),
.subcat-grid:has(> .subcat-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.subcat-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.subcat-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e8e0d4;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.35s ease;
    background: #fff;
}

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

/* カラーバー（上部のアクセントライン） */
.subcat-card-bar {
    height: 4px;
}

.subcat-card-bar.gyaku { background: linear-gradient(to right, #4a6fa5, #6a8fc5); }
.subcat-card-bar.sei   { background: linear-gradient(to right, #C8A96E, #E8D5A8); }
.subcat-card-bar.pwm   { background: linear-gradient(to right, #5a9e6f, #8dcc9f); }

/* 画像エリア */
.subcat-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f9f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0ebe3;
}

.subcat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.subcat-card:hover .subcat-card-img img {
    transform: scale(1.08);
}

/* テキストエリア */
.subcat-card-body {
    padding: 30px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

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

.subcat-card-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.9;
    margin-bottom: 22px;
    flex: 1;
}

.subcat-viewmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #777;
    transition: all 0.3s;
}

.subcat-viewmore::after {
    content: "→";
    transition: transform 0.3s;
}

.subcat-card:hover .subcat-viewmore {
    color: #333;
}

.subcat-card:hover .subcat-viewmore::after {
    transform: translateX(4px);
}


/* ============================================================
   5. B. 製品詳細ページ（gyaku / sei / pwm 共通）
   HTML: product_wall_dimmer_*.html（逆位相・正位相・PWM）
   ============================================================ */

.detail-main {
    padding-top: 0;
    background: #fff;
}


/* --- 製品説明セクション --- */

.detail-intro-section {
    padding: 80px 8% 60px;
    background: linear-gradient(to right, #f5f0e8 0%, #fff 50%);
    border-bottom: 1px solid #ede8df;
}

.detail-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.detail-intro-text h2 {
    font-size: 28px;
    font-weight: 300;
    color: #222;
    letter-spacing: 0.15em;
    border-left: 3px solid #C8A96E;
    padding-left: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.detail-intro-text p {
    font-size: 15px;
    color: #555;
    line-height: 2.2;
    margin-bottom: 18px;
}

.detail-intro-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f7f4;
    border: 1px solid #ede8df;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.detail-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- 特徴バッジ --- */

.detail-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border: 1px solid #C8A96E;
    color: #B8944F;
    border-radius: 2px;
}


/* --- 製品一覧セクション --- */

.detail-products-section {
    padding: 80px 8% 30px;
}

.detail-section-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: center;
}

.detail-section-header .label-en {
    font-size: 11px;
    color: #B8944F;
    letter-spacing: 0.5em;
    margin-bottom: 20px;
}

.detail-section-header h2 {
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.25em;
    color: #222;
}


/* --- 製品サブセクション見出し（内蔵型・分離型などのカテゴリタイトル） --- */

.detail-subsection {
    max-width: 1200px;
    margin: 60px auto 30px;
    padding: 0 8%;
    text-align: center;
}

.detail-subsection:first-of-type {
    margin-top: 0;
}

.detail-subsection-title {
    font-size: 22px;
    font-weight: 400;
    color: #222;
    letter-spacing: 0.15em;
    padding-bottom: 12px;
    border-bottom: 2px solid #C8A96E;
    display: inline-block;
    margin-bottom: 14px;
}

.detail-subsection-lead {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
    margin: 0;
}


/* --- 製品カードグリッド --- */

.detail-product-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
}

.detail-product-card {
    border: 1px solid #f0ebe3;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.35s ease;
    background: #fff;
}

.detail-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(200,169,110,0.15);
}

/* 製品カード画像 */
.detail-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f9f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0ebe3;
    overflow: hidden;
}

.detail-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.detail-product-card:hover .detail-card-img img {
    transform: scale(1.05);
}

/* サムネイルギャラリー */
.detail-card-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f0ebe3;
}

.detail-card-thumbs .thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f7f4;
}

.detail-card-thumbs .thumb:hover {
    border-color: #C8A96E;
    opacity: 0.8;
}

.detail-card-thumbs .thumb.active {
    border-color: #C8A96E;
    opacity: 1;
}

/* 製品カード情報エリア */
.detail-card-body {
    padding: 32px 30px 36px;
}

.detail-card-label {
    display: inline-block;
    font-size: 10px;
    background: #C8A96E;
    color: #fff;
    padding: 4px 14px;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
}

.detail-card-name {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.detail-card-code {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
    font-family: "Courier New", monospace;
}

.detail-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 28px;
    min-height: 4em;
}

/* スペックテーブル */
.detail-card-spec {
    border-top: 1px solid #eee;
}

.detail-card-spec .spec-row {
    display: flex;
    border-bottom: 1px solid #f5f5f5;
}

/* 推奨商品などの追加情報用：複数行・リンク含む */
.detail-card-spec .spec-row {
    align-items: flex-start;
}

.spec-val {
    line-height: 1.9;
}

.spec-val a {
    color: #B8944F;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.spec-val a:hover {
    color: #C8A96E;
    text-decoration: underline;
    font-weight: 600;
}

/* qa-inline-link在spec-val内时保持正确的样式 */
.spec-val .qa-inline-link {
    color: #fff;
    text-decoration: none;
    text-underline-offset: unset;
}

.spec-val .qa-inline-link:hover {
    color: #fff;
    background-color: #B8944F;
    text-decoration: none;
    font-weight: normal;
}

.spec-key {
    width: 130px;
    flex-shrink: 0;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.detail-card-spec .spec-val {
    padding: 12px 0;
    font-size: 13px;
    color: #666;
    flex: 1;
}

/* 発売予定などの補足注釈（spec-val 内のサブテキスト） */
.release-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.05em;
}

/* PDF ダウンロードボタン */
.pdf-download {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #D32F2F;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.btn-pdf-download:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.pdf-icon {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* 注釈 */
.detail-note {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 25px;
    background: #fdf9f3;
    border-left: 3px solid #C8A96E;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
}

.detail-note p + p {
    margin-top: 6px;
}


/* ============================================================
   6. OEM CTAセクション（調光器/照明共通ベース）
   HTML: <section class="oem-cta">
   - product_dimmer.css: 基本スタイル（純色）
   - product_interior_lighting.css: 背景をグラデーションに上書き
   - oem.css: margin-top を上書き（OEM ページ用）
   - product_thermal_therapy.css: 実心ボタンスタイルで完全上書き
   ============================================================ */

.oem-cta {
    background: #f9f7f4;
    border-top: 1px solid #ede8df;
    padding: 0;
}

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

.cta-inner h3 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #333;
    margin-bottom: 28px;
}

.btn-oem {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #C8A96E;
    color: #B8944F;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.25em;
    transition: all 0.3s;
}

.btn-oem:hover {
    background: #C8A96E;
    color: #fff;
}


/* ============================================================
   4.6 Wall Dimmer 専用：縦長写真（3:4）を全て表示
   HTML: product_wall_dimmer_gyaku.html, _sei.html, _pwm.html
   <main class="detail-main wall-dimmer">
   ============================================================ */

.wall-dimmer .detail-intro-img,
.wall-dimmer .detail-card-img {
    aspect-ratio: 3 / 4;
}

.wall-dimmer .detail-intro-img img,
.wall-dimmer .detail-card-img img {
    object-fit: contain;
}


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

@media screen and (max-width: 960px) {
    .subcat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-intro-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-product-grid {
        grid-template-columns: 1fr;
    }

    .dimmer-header-title {
        font-size: 36px;
    }

    .dimmer-page-header::after {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .subcat-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .btn-pdf-download {
        width: 100%;
        justify-content: center;
    }

    .dimmer-page-header {
        padding-top: 0;
    }

    .dimmer-header-title {
        font-size: 28px;
    }

    .detail-product-grid {
        gap: 28px;
    }

    .subcat-section {
        padding: 40px 5% 80px;
    }

    .detail-products-section {
        padding: 50px 5% 70px;
    }
}

