@charset "UTF-8";

/* =========================================
   【モダン・インダストリアル】取扱商品ページ・詳細ページ
========================================= */

/* =========================================
   事業内容セクション（BUSINESS）
========================================= */
.modern-business {
    position: relative;
    padding: 120px 0 120px; /* 下部にも十分な余白を確保 */
    background-color: #fff;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

/* 背景の巨大な透かしタイポグラフィ（最下部配置） */
.mb-bg-text {
    position: absolute;
    bottom: -1vw; /* 最下部に配置 */
    left: -2vw;
    font-size: 18vw;
    font-weight: 900;
    color: var(--color-bg-gray);
    z-index: 0;
    line-height: 0.8; /* 文字下部の不要な余白を削る */
    letter-spacing: 0.05em;
    user-select: none;
}

/* 左右分割のアシンメトリーレイアウト */
.mb-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* 左側：画像の装飾（ネイビーの直線的な重なり） */
.mb-image-wrap {
    flex: 1;
    position: relative;
    min-width: 45%;
}

.mb-image {
    position: relative;
    z-index: 2;
    filter: grayscale(20%); 
    transition: filter 0.5s ease;
}

.mb-image:hover {
    filter: grayscale(0%);
}

.mb-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 画像の背後にズラして配置するアクセントブロック（ネイビー） */
.mb-image-bg {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    background-color: var(--color-main);
    z-index: 1;
}

/* 右側：テキストエリア */
.mb-content {
    flex: 1;
}

.mb-title {
    font-size: 16px;
    color: var(--color-accent); /* オレンジ色で小さく鋭く */
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    font-weight: 900;
}

.mb-lead {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--color-main);
    line-height: 1.4;
    margin-bottom: 40px;
    border-left: 6px solid var(--color-main);
    padding-left: 20px;
    letter-spacing: 0.05em;
}

.mb-text {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text);
    font-weight: 400; /* 本文は標準ウェイトで読みやすく */
}

/* =========================================
   取扱商品セクション（PRODUCTS）
========================================= */
.modern-products {
    position: relative;
    padding: 100px 0 150px;
    background-color: var(--color-bg-gray);
    overflow: hidden;
}

/* 背景の巨大な透かしタイポグラフィ（最下部配置） */
.mp-bg-text {
    position: absolute;
    bottom: -1vw;
    right: -2vw;
    font-size: 16vw;
    font-weight: 900;
    color: #ebebeb;
    z-index: 0;
    line-height: 0.8;
    letter-spacing: 0.05em;
    user-select: none;
    text-align: right;
}

.mp-container {
    position: relative;
    z-index: 1;
}

.mp-header {
    margin-bottom: 50px;
}

/* カテゴリ切り替えタブ（鋼板風の直線デザイン） */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* 隙間をなくして一つの巨大なパネルのように見せる */
    margin-bottom: 60px;
    border-bottom: 4px solid var(--color-main); /* 下部に太いベースライン */
    list-style: none; /* リストの黒丸を消す */
    padding: 0;
}

.tab-item {
    padding: 15px 30px;
    color: #888;
    background-color: transparent;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    position: relative;
}

/* 選択中、またはホバー時のタブ */
.tab-item.active,
.tab-item:hover {
    color: var(--color-main);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent); /* アクティブ時はオレンジのラインが乗る */
}

/* 商品一覧グリッド */
.product-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* 商品カード本体（極太ボーダーのブルータリズム） */
.archive-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--color-main); /* 影ではなく「線」で重さを出す */
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

/* 画像エリア（4:3固定） */
.archive-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #eee;
    border-bottom: 2px solid var(--color-main);
}

.archive-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

/* 商品名エリア */
.archive-title {
    padding: 25px 20px;
    font-size: 18px;
    color: var(--color-main);
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin: 0;
}

/* タイトル横のシャープな矢印 */
.card-arrow {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-main);
    position: relative;
    transition: all 0.3s ease;
}

.card-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-main);
    border-right: 2px solid var(--color-main);
    transform: rotate(45deg);
}

/* ホバー時の強烈な反転アクション */
.archive-card:hover {
    background-color: var(--color-main);
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--color-accent); /* オレンジのソリッドな影を落とす */
}

.archive-card:hover .archive-img img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.archive-card:hover .archive-title {
    color: #fff;
}

.archive-card:hover .card-arrow,
.archive-card:hover .card-arrow::after {
    background-color: #fff;
    border-color: #fff;
}

.archive-card:hover .card-arrow {
    width: 40px;
}

/* JSによる絞り込み用の非表示クラス */
.archive-card.is-hidden {
    display: none;
}

/* =========================================
   【モダン・インダストリアル】商品詳細ページ（DETAIL）
========================================= */
.modern-detail {
    position: relative;
    padding: 120px 0 150px; /* 下部余白を大きめにとり、フッター被りを防ぐ */
    background-color: var(--color-bg-gray);
    overflow: hidden;
    min-height: 100vh;
}

/* 背景透かし文字（最下部配置） */
.md-bg-text {
    position: absolute;
    bottom: -1vw;
    right: -2vw;
    font-size: 18vw;
    font-weight: 900;
    color: #ebebeb;
    z-index: 0;
    line-height: 0.8;
    letter-spacing: 0.05em;
    user-select: none;
    text-align: right;
}

.md-container {
    position: relative;
    z-index: 1;
}

/* 戻るボタン（直線的でシャープな矢印） */
.md-back-wrap {
    margin-bottom: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--color-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: var(--color-accent);
    transform: translateX(-5px);
}

.back-arrow {
    display: block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    margin-right: 15px;
    position: relative;
}

.back-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* 左右分割グリッド */
.md-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 左側：画像フレーム（極太ボーダーとオレンジの影） */
.md-image-frame {
    background: #fff;
    border: 2px solid var(--color-main);
    box-shadow: 15px 15px 0 var(--color-main); /* ネイビーのソリッドな影 */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.md-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右側：情報エリア */
.md-info-area {
    padding-top: 20px;
}

.md-category {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.md-title {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--color-main);
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.3;
}

.md-description {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 4px solid var(--color-accent); /* オレンジのアクセントライン */
}

/* 仕様表（無骨なグリッド） */
.md-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    border: 2px solid var(--color-main);
}

.md-spec-table th,
.md-spec-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.md-spec-table tr:last-child th,
.md-spec-table tr:last-child td {
    border-bottom: none;
}

.md-spec-table th {
    width: 30%;
    background-color: var(--color-main);
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.md-spec-table td {
    font-weight: 700;
    color: var(--color-text);
}

/* アクションボタン周辺 */
.md-action {
    margin-top: 40px;
}



/* =========================================
   設備ギャラリーセクション（GALLERY）
========================================= */
.modern-gallery {
    position: relative;
    padding: 100px 0 160px;
    background-color: #fff;
    overflow: hidden;
    border-bottom: 2px solid var(--color-main);
}

.mg-bg-text-left {
    position: absolute;
    bottom: -1vw;
    left: -2vw;
    font-size: 16vw;
    font-weight: 900;
    color: #ebebeb;
    z-index: 0;
    line-height: 0.8;
    letter-spacing: 0.05em;
    user-select: none;
}

.mg-container {
    position: relative;
    z-index: 1;
}

/* スライダー外枠（ブルータリズムデザイン） */
.gallery-wrapper {
    max-width: 900px; /* 写真を大迫力で見せるための幅 */
    margin: 0 auto;
}

.gallery-slider-container {
    position: relative;
    border: 2px solid var(--color-main);
    box-shadow: 15px 15px 0 var(--color-main); /* ネイビーの巨大な影 */
    background: var(--color-bg-gray);
    overflow: hidden; /* 枠外の画像を隠す */
}

/* スライダー本体（横並び） */
.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

/* ギャラリー画像 */
.gallery-slide img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 横長で統一 */
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
}

/* 左右のボタン枠 */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--color-main);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 var(--color-main);
}

.gallery-btn:hover {
    background: var(--color-accent);
    box-shadow: 6px 6px 0 var(--color-main);
}

.gallery-btn:active {
    transform: translateY(-50%) translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-main);
}

/* SVGアイコンのサイズ・色調整 */
.gallery-btn svg {
    width: 24px;
    height: 24px;
    color: var(--color-main); /* 通常時はネイビー */
    transition: color 0.3s ease;
}

/* ホバー時に背景がオレンジになり、矢印が白になる */
.gallery-btn:hover svg {
    color: #fff;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }








/* =========================================
   レスポンシブ（スマホ・タブレット用：860px以下）
========================================= */
@media (max-width: 860px) {
    /* --- 1. 背景の巨大透かし文字を全セクション共通でスマホ最適化 --- */
    .mb-bg-text,
    .mp-bg-text,
    .md-bg-text,
    .mg-bg-text-left {
        font-size: 16vw;
        bottom: -1vw;
        top: auto; /* 念のための上書き */
        line-height: 0.8;
    }

    /* --- 2. 事業内容セクション（BUSINESS） --- */
    .modern-business {
        padding: 80px 0; /* 上下余白をスマホサイズに圧縮 */
    }
    .mb-container {
        flex-direction: column;
        gap: 40px;
    }
    .mb-image-bg {
        bottom: -15px;
        left: -15px;
    }
    .mb-lead {
        font-size: 26px; /* スマホ向けにh2相当の文字サイズを調整 */
        margin-bottom: 25px;
    }

    /* --- 3. 取扱商品セクション（PRODUCTS） --- */
    .modern-products {
        padding: 80px 0 100px;
    }
    /* カテゴリタブのスマホ調整（2列のタイル状にして押しやすく） */
    .category-tabs {
        margin-bottom: 40px;
        border-bottom: none;
    }
    .tab-item {
        padding: 12px 10px;
        font-size: 14px;
        width: 50%; 
        text-align: center;
        border-bottom: 4px solid var(--color-main);
    }
    .tab-item.active::after {
        bottom: -4px;
    }
    .product-archive {
        gap: 20px;
    }

    /* --- 4. 商品詳細ページ（DETAIL） --- */
    .modern-detail {
        padding: 80px 0 100px;
    }
    .md-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .md-image-frame {
        box-shadow: 10px 10px 0 var(--color-main);
    }
    .md-info-area {
        padding-top: 0;
    }
    .md-title {
        font-size: 26px;
    }
    /* 仕様表のスマホ調整（縦積みに変えて読みやすく） */
    .md-spec-table th,
    .md-spec-table td {
        padding: 15px;
        font-size: 14px;
        display: block; 
        width: 100%;
    }
    .md-spec-table th {
        border-bottom: none; /* 縦積みの時は見出し下線を消して一体感を出す */
    }

    /* --- 5. 設備ギャラリー（GALLERY） --- */
    .modern-gallery {
        padding: 80px 0 100px;
    }
    .gallery-slider-container {
        box-shadow: 10px 10px 0 var(--color-main);
    }
    .gallery-btn {
        width: 45px;
        height: 45px;
        box-shadow: 3px 3px 0 var(--color-main);
    }
    .gallery-btn svg {
        width: 20px;
        height: 20px;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* =========================================
   種類カード：画像なしプレースホルダー
========================================= */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #555;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

/* =========================================
   パンくず（種類内商品一覧）
========================================= */
.type-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}