﻿/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Process ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
        body {
            background-color: rgba(51, 51, 51, 0.8);
            color: #F57C00;
            font-family: Arial, sans-serif;
        }

        #process-main-container {
            display: flex;
            padding: 1vw;
            overflow-x: auto;

            height: 60vh;
            line-height: 1.2; /* 行間を1.6倍に設定する（お好みに応じて調整可） */
        }

        .step {
            background: rgba(68, 68, 68, 0);
            border: 1px solid #ff5b5b;
            border-radius: 0.25vw;
            padding: 0.25vw;
            margin: 0.25vw;
            width: calc(100vw / 10);    /*ウインドウサイズの９分の１*/
            min-width: 50px; 
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            position: relative;
            display: flex; 
            flex-direction: column;
            font-size: clamp(8px, 0.8vw, 48px);
            padding-bottom: 1.5vw;
        }

        .step h3 {
            margin-top: 0;
            margin-bottom: 2vw;
            color: #fff;
            font-size: clamp(9px, 0.9vw, 56px);
        }

     

        .arrow {
            display: flex;
            align-items: center;
            color: #F57C00;
            font-size: clamp(8px, 1vw, 48px);
            margin-right: 0.25vw;
        }


        .arrow img{
            width:1.2vw
        }




        .hover-image {
            transition: transform 0.3s ease;
            position: relative;
            z-index: 1; /* サムネイルがオーバーレイよりも上になるよう設定 */
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            visibility: hidden;
            opacity: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none; /* マウスイベントを無効にする */
           /*  z-index: 0; サムネイルよりも下に設定 */
        }
        
        .overlay-image {
            max-width: 90%;
            max-height: 90%;
        }

        .overlay {
            transition: opacity 0.3s ease;
            opacity: 0;
        }

        .overlay.show {
            opacity: 1;
        }


      
        .step {
            background: #44444400;
            border: 1px solid #F57C00;
            border-radius: 0.25vw;
            padding: 0.25vw;
            width: calc(100%/3 - 2rem); /* 3列レイアウトとパディングに応じた幅 */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            margin: 0.5rem 0; /* 各ステップの上下間隔 */
        }
        
       






        .image-gallery-process {
            position: relative;
            display: flex;
            justify-content: center; /* 水平方向に中央揃え */
            align-items: flex-end; /* 垂直方向にボックスの下端に揃える */
            height: auto; /* コンテナ自体の高さを画像に合わせる */
            margin-top: auto; /* これにより、上部の余白はテキストと画像の高さに依存 */
        }




/* ■■ 説明用の小さな画像 ■■ */
.image-gallery-process img.thumbnail {
    max-width: 100%; /* ボックスの横幅にフィット */
    max-height: 100%; /* ボックスの高さにフィット */
    object-fit: contain; /* 縦横比を維持しながら最大サイズで表示 */
    position: relative; /* 位置調整用の絶対設定を解除 */
}


/* ■■ 説明用の小さな画像 オンマウスで拡大時 ■■ */
.image-gallery-process img.full-size {
    position: fixed; /* 画面に対して固定位置に配置 */
    bottom: 25vh; /* 画面の下から25%の位置に開始 */
    left: 50%; /* 水平方向に中央揃え */
    transform: translateX(-50%); /* 水平方向の中央揃え補正 */
    width: auto; /* 画像の幅をビューポート幅の60%に設定、必要に応じて変更可能 */
    height: 60vh; /* 縦横比を維持 */
    z-index: 100; /* 前面に表示 */
    display: none; /* 初期状態では非表示にする必要あり */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* ボックスシャドウを追加 */
    border-radius: 8px; /* 角を少し丸める */
}

.process-image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    box-sizing: border-box;
    padding: 56px 14px 20px;
    background: rgba(0, 0, 0, 0.86);
    align-items: center;
    justify-content: center;
}

.process-image-modal.is-open {
    display: flex;
}

.process-image-modal[hidden] {
    display: none !important;
}

.process-image-modal-image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 88px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
}

.process-image-modal-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.process-image-modal-open {
    overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
    .image-gallery-process {
        cursor: pointer;
    }

    .image-gallery-process img.thumbnail {
        touch-action: manipulation;
    }

    .image-gallery-process img.full-size {
        display: none !important;
    }
}

























