@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

img {
    vertical-align: bottom;
}

body {
    font-family: "Kaisei Decol", serif;
    background-color: #f7f7eb;
}

/* 背景ロゴ */
.bgi {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    background-image: url(../img/SuitPallet_BO_806_247.webp);
    background-size: cover;
    background-position: -10rem 0;
    filter: blur(3px);
    opacity: 0.1;
    z-index: -1;
}

.flex {
    display: flex;
    gap: 1rem;
}

.sp_only {
    display: none;
}

.pointer {
    cursor: pointer;
}

.font_en {
    font-family: "Purple Purse", serif;
}

/* ********************************************

loading

******************************************** */

#loading {
    display: grid;
    place-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: #f7f7eb;
    transition: 0.6s ease;
    z-index: 9999;
}

#loading_img {
    width: 30vw;
    height: auto;
    opacity: 0.3;
    animation: loading_ani 0.7s ease-out 0s infinite alternate forwards;
}

.loaded {
    opacity: 0;
    visibility: hidden;
}

@keyframes loading_ani {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* ********************************************

header

******************************************** */

header {
    padding: 0.5rem 0;
    background-color: #a4a4a4;
}

h1 {
    height: auto;
    text-align: center;
}

h1 img {
    height: 3rem;
    vertical-align: top;
}

/* ********************************************

main

******************************************** */

.main_flex {
    height: calc(100dvh - 5.5rem);
    gap: 0;
}

/* ********************************************
    img_side
******************************************** */

.img_area {
    /* 子要素で複数の画像を重ねる為 */
    position: relative;
    width: 40%;
    height: 100%;
}

.jk_area {
    height: 100%;
}

.img_area img,
.img_area .blend {
    /* 複数の画像を重ねる為 */
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-height: 100%;
    transform: translateX(-50%);
    object-fit: contain;
    z-index: 0;
}

.img_area .blend {
    transition: background-color 0.2s;
}

#jk_blend,
#shirt_blend,
#tie_blend,
#btn_blend {
    width: 100%;
    height: 100%;
    mix-blend-mode: overlay;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: top center;
}

#jk_blend {
    mask-image: url("../img/jk.png");
}

#shirt_blend {
    mask-image: url("../img/shirt.png");
}

#tie_blend {
    mask-image: url("../img/tie.png");
}

#btn_blend {
    mask-image: url("../img/jk_btn.png");
}

/* ********************************************
    color_pick_side
******************************************** */

.item_name {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #aaa;
}

.color_pick_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.25rem, 48%));
    grid-template-rows: repeat(auto-fit, minmax(48%, 1fr));
    gap: 1rem;
    width: 60%;
    padding: 1.5rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.color_pick_list>li {
    min-width: 17.25rem;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #fff;
    overflow-y: auto;
}

/* SP ではスクロールバーを指定しない */
@media (min-width:769px) {

    .color_pick_list>li::-webkit-scrollbar {
        width: 0.8rem;
        border-radius: 1rem;
        background-color: #dadada;
    }

    .color_pick_list>li::-webkit-scrollbar-thumb {
        width: 0.5rem;
        border-radius: 1rem;
        background-color: #a1a1a1;
    }

}

input[type="color"] {
    width: 100%;
    border: none;
}

.select_type+.select_type {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.select_type .flex button {
    height: 2rem;
    width: 2rem;
    border: 1px solid #333;
    border-radius: 50%;
}

/**********************
    ↓ ツールチップ
 **********************/
.guidance_icon {
    color: #777;
    vertical-align: text-bottom;
}

.guidance_parent {
    position: relative;
}

.guidance_text_area {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 14rem;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 0 5px #777;
    background-color: #fafcff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: 0.3s ease;
    z-index: 10;
}

.guidance_text {
    font-size: 0.8rem;
}

/* ツールチップアニメーション */
/* PCなどホバーできるとき */
.guidance_icon:hover~.guidance_text_area {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* SPなどホバーできないとき(操作はJS) */
.guidance_text_active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/**********************
    ↑ ツールチップ
**********************/


.save_btn {
    padding: 0.3rem 0.5rem;
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 2rem;
    background-color: none;
}

.archives button {
    background-color: rgba(0, 0, 0, 0);
}


/**********************
 今の色を保存sec
 **********************/

.save_pallet {
    position: relative;
    width: 2rem;
    height: 2rem;
}

.save_pallet button {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cancel_btn {
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.cancel_btn_active {
    opacity: 1;
    visibility: visible;
}

.save_text p {
    margin-bottom: 0.3rem;
    overflow: hidden;
}

.save_text {
    display: grid;
    grid-template-rows: 0fr;
    color: #777;
    font-size: 0.8rem;
    transition: 0.3s ease;
}

.save_text_active {
    grid-template-rows: 1fr;
}

.jk_color_register,
.btn_color_register,
.shirt_color_register,
.tie_color_register {
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.jk_registing,
.btn_registing,
.shirt_registing,
.tie_registing {
    opacity: 1;
    visibility: visible;
}

.save_pallet .save_icon_arrow {
    position: absolute;
    top: -0.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    color: #e45959;
    opacity: 0;
    pointer-events: none;
    -webkit-text-stroke: 1px #fff;
}

.save_pallet .save_icon_active {
    opacity: 1;
    animation: save_icon_active_ani 0.5s ease-out infinite alternate;
}

@keyframes save_icon_active_ani {
    from {
        top: -0.3rem;
    }

    to {
        top: 0;
    }
}

/* ********************************************
    jk_standard_color
******************************************** */

.jk_color_standard_li:nth-of-type(1) button {
    background-color: #000000;
}

.jk_color_standard_li:nth-of-type(2) button {
    background-color: #000833;
}

.jk_color_standard_li:nth-of-type(3) button {
    background-color: #262626;
}

.jk_color_standard_li:nth-of-type(4) button {
    background-color: #6b6b6b;
}

.jk_color_standard_li:nth-of-type(5) button {
    background-color: #1f0800;
}

/* ********************************************
    btn_standard_color
******************************************** */

.btn_color_standard_li:nth-of-type(1) button {
    background-color: #000000;
}

.btn_color_standard_li:nth-of-type(2) button {
    background-color: #3a221b;
}

.btn_color_standard_li:nth-of-type(3) button {
    background-color: #6f461d;
}

.btn_color_standard_li:nth-of-type(4) button {
    background-color: #cea66d;
}

.btn_color_standard_li:nth-of-type(5) button {
    background-color: #fffff0;
}


/* ********************************************
    tie_standard_color
******************************************** */

.tie_color_standard_li:nth-of-type(1) button {
    background-color: #841515;
}

.tie_color_standard_li:nth-of-type(2) button {
    background-color: #3a221b;
}

.tie_color_standard_li:nth-of-type(3) button {
    background-color: #162069;
}

.tie_color_standard_li:nth-of-type(4) button {
    background-color: #cea66d;
}

.tie_color_standard_li:nth-of-type(5) button {
    background-color: #0f440e;
}


/* ********************************************
    shirt_standard_color
******************************************** */

.shirt_color_standard_li:nth-of-type(1) button {
    background-color: #ffffff;
}

.shirt_color_standard_li:nth-of-type(2) button {
    background-color: #cfefff;
}

.shirt_color_standard_li:nth-of-type(3) button {
    background-color: #fedcfb;
}

.shirt_color_standard_li:nth-of-type(4) button {
    background-color: #6787bc;
}

.shirt_color_standard_li:nth-of-type(5) button {
    background-color: #212121;
}


/* ********************************************

    shirt_standard_color

******************************************** */

footer {
    text-align: center;
    background-color: #a4a4a4;
}


/* ********************************************

    media_query

******************************************** */

/* パレット調整 ブレイクポイント */
@media (max-width:1054px) {
    .color_pick_list {
        align-content: center;
        grid-template-columns: repeat(1, minmax(18.25rem, 1fr));
        grid-template-rows: repeat(auto-fit, 23%);
    }


    .color_pick_list,
    .color_pick_list>li {
        padding: 1rem;
    }

    header {
        padding: 0.3rem 0;
    }

    footer p {
        font-size: 0.7rem;
    }
}

/* SP ブレイクポイント */
@media (max-width:768px) {

    .sp_none {
        display: none;
    }

    .sp_only {
        display: block;
    }

    h1,
    h1 img {
        height: 1.5rem;
    }

    .flex {
        flex-wrap: wrap;
        align-content: center;
    }

    .main_flex {
        flex-direction: column;
        flex-wrap: nowrap;
        /* headerとfooterを除く、画面いっぱいの高さ */
        height: calc(100dvh - 3.1rem);
    }

    .img_area {
        width: 100%;
    }

    .color_pick_list {
        display: block;
        position: relative;
        width: 100%;
        height: 50%;
        padding: 0;
    }

    .color_pick_list>li {
        display: none;
        position: absolute;
        top: 2rem;
        left: 0;
        width: 100%;
        height: calc(100% - 2rem);
        border-radius: 0;
    }


    label p {
        display: inline;
        margin-right: 0.5rem;
    }

    input[type="color"] {
        width: 1.7rem;
        vertical-align: bottom;
    }

    .select_type {
        width: 90%;
    }

    .select_type+.select_type {
        margin-top: 1.5rem;
    }


    .color_pick_list>.pallet_picked {
        display: block;
    }

    .guidance_icon {
        margin: 0 0.5rem 0 0.3rem;
    }

    .select_tab {
        display: flex;
        gap: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .tabs {
        width: 25%;
        height: 3rem;
        border-radius: 5px 5px 0 0;
        text-align: center;
        border: 1px solid #808080;
        border-bottom: none;
        background-color: #e0e0e0;
        transition: transform 0.2s ease;
    }

    .tab_picked {
        background-color: #fff;
        transform: translateY(-10px);
    }

    .select_tab li p {
        line-height: 2rem;
    }

    /*  */
    .pallets {
        position: relative;
    }

    .pallets .scroll {
        position: absolute;
        right: 1rem;
        top: 1rem;
        color: #a1a1a1;
        writing-mode: vertical-lr;
        font-family: "Purple Purse", serif;
    }

    .pallets .scroll::after {
        content: '';
        display: block;
        position: absolute;
        right: 1.2rem;
        top: 0;
        width: 1px;
        height: 22rem;
        background-color: #a1a1a1;
        animation: scroll 3s infinite;
    }

    @keyframes scroll {
        0% {
            transform: scale(1, 0);
            transform-origin: 0 0;
        }

        50% {
            transform: scale(1, 1);
            transform-origin: 0 0;
        }

        51% {
            transform: scale(1, 1);
            transform-origin: 0 100%;
        }

        100% {
            transform: scale(1, 0);
            transform-origin: 0 100%;
        }
    }
}