[v-cloak] {
    display: none;
}

body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont,
        "Hiragino Sans", "Hiragino Kaku Gothic ProN",
        "Yu Gothic", "YuGothic",
        "Meiryo", sans-serif;

}

#infomation {
    margin: 0px0;
    text-align: center;
    padding: 60px;
    padding-bottom: 30px;

    @media (max-width: 600px) {
        padding: 10px;
        padding-top: 100px;
    }
}

#top_bar {
    position: fixed;
    border-bottom: 2px solid white;
    background: #FF367F;

    &.clip {
        background: #367FFF;
    }

    color: #fff;
    width: 100%;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 1000;

    @media (max-width: 600px) {
        grid-template-columns: 1fr;

        .site_name {
            text-align: center;
            font-size: 1.2em;
            margin-bottom: 10px;
        }
    }

    a {
        color: white;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }

    .menu {
        justify-content: flex-end;
        margin-right: 50px;
        display: flex;
        align-items: stretch;
        gap: 4px;

        input, button {
            margin: 2px;
            margin-right: 2px;
            line-height: 19px;

        }

    }
}

/* --------------------------------------------------- */
#image_area, #clip_area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;

    @media (max-width: 600px) {
        grid-template-columns: 1fr;
    }



    /* 各アイテムの器（セルのラッパー） */
    .cell-wrapper {
        display: flex;
        /* 横並びの準備 */
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: #f0f0f0;
        border: 1px solid #ddd;

        /* 画像コンテナ */
        .image-container {
            width: 100%;
            height: 100%;
            overflow: hidden;

            position: relative;

            .checkbox_clip {
                position: absolute;
                right: 4px;
                bottom: 4px;
                border: 2px #367FFF solid;
                border-radius: 4px;
                color: #367FFF;

                @media (max-width: 600px) {
                    bottom: 8px;
                    font-size: 1.2em;
                }

                &.on {
                    background: #367FFF;
                    color: white;
                }
            }

            .checkbox_json {
                position: absolute;
                left: 4px;
                top: 4px;
                accent-color: #367FFF;
                transform: scale(1.8);
                transform-origin: left top;

                border: solid 2px white;
            }

            .handle {
                position: absolute;
                left: 10px;
                bottom: 10px;
                cursor: move;
                font-size: 1.5em;
                color: rgba(255,255,255,0.9);
                /* 子の <i> にも効く */
                display: inline-block;
            }

            /* transition: width 0.3s ease; */
            /* &.info {
                width: 50%;

                img {
                    object-position: top right;
                }
            } */

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: all 0.3s ease;

                &.grayscale {
                    opacity: 0.3;

                }

            }


        }
    }

    .detail-box {
        /* width: 50%;
            height: 100%;
            padding: 8px;
            font-size: 0.9em;
            background: #fff;
            order: 1;
            overflow-y: auto;
            box-sizing: border-box; */
        margin-top: 5px;
        color: #333;
        font-size: 0.8em;

        .topic {
            font-weight: bold;
        }

        .detail-wrapper {
            padding: 10px;
        }

        .detail-title {
            font-weight: bold;
            text-align: center;
            color: #999;
            border-bottom: 2px solid #999;
            margin-bottom: 1em;
        }

        .detail-link {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: 4px;
            margin-bottom: 20px;

            a {
                display: block;
                text-align: center;
                background: #ffa640;
                border-radius: 4px;
                color: white;
                text-decoration: none;
                font-weight: bold;
                font-size: 1.2em;
                padding: 10px;

                &:hover {}
            }
        }

        .related-searches {
            margin-top: 1em;
            margin-bottom: 1em;

            .iteminfo {
                &::after {
                    content: "｜";
                }

                &:last-child::after {
                    content: "";
                }
            }

        }



    }
}

#jump_area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px;
    padding: 20px;
    border-radius: 2px;

    button {
        width: 100%;
        padding: 10px;
    }
}

#_clip_area {
    ul {
        list-style: none;
        margin: 0;
        padding: 50px;
    }

    li {
        margin-bottom: 5px;
    }

    /* 各アイテムの器（セルのラッパー） */
    .cell-wrapper {
        display: flex;
        gap: 5px;
        background: #f0f0f0;
        border: 1px solid #ddd;

        /* 画像コンテナ */
        .image-container {
            position: relative;

            img {
                width: 500px;
            }

            input[type="checkbox"] {
                position: absolute;
                left: 10px;
                bottom: 10px;
            }

            .handle {
                position: absolute;
                left: 10px;
                bottom: 10px;
                cursor: move;
            }

        }


        /* 詳細データボックス（左半分） */
        .detail-box {
            margin-left: 5px;
            width: 600px;

            .detail-title {
                font-weight: bold;
                text-align: center;
                color: #999;
                border-bottom: 2px solid #999;
                margin-bottom: 1em;
            }

            .related-searches {
                margin-top: 2em;

                .iteminfo {
                    &::after {
                        content: "｜";
                    }

                    &:last-child::after {
                        content: "";
                    }
                }

            }



        }

    }
}


.ios-toggle {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 16px;

    input {
        display: none;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        border-radius: 16px;
        transition: 0.3s;

        &:before {
            content: "";
            position: absolute;
            height: 14px;
            width: 14px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            border-radius: 50%;
            transition: 0.3s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
    }

    input:checked+.slider {
        background-color: #4cd964;
        /* iOSグリーン */

        &:before {
            transform: translateX(10px);
        }
    }
}

.ios-toggle .slider input:checked+.slider {
    background-color: #4cd964;
    /* iOSグリーン */
}

#stockBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
}

.modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
    text-align: center;
}

#stockBox .modal {
    width: 60%;
}

#stockBox .modal img {
    width: 100%;
}