:root {
    --balloon: polygon(49% 3%, 56% 15%, 66% 3%, 66% 18%, 82% 6%, 75% 18%, 92% 13%, 79% 30%, 95% 32%, 82% 43%, 95% 48%, 76% 55%, 94% 70%, 75% 70%, 79% 86%, 65% 75%, 60% 87%, 49% 74%, 34% 95%, 36% 68%, 18% 75%, 24% 60%, 4% 63%, 19% 49%, 8% 44%, 21% 38%, 7% 26%, 24% 29%, 13% 11%, 33% 21%, 29% 5%, 41% 16%);
}

#Web_catalog {
    min-height: calc(100dvh - 90px);

    background-repeat: repeat;
    background-image:
        radial-gradient(#00000011 25%, transparent 25%),
        radial-gradient(#00000011 25%, transparent 25%);
    background-size: 8px 8px, 8px 8px;
    background-position: 0 0, 4px 4px;
    background-color: #fff;
}

#Web_catalog .container {
    padding-top: 40px;
    padding-bottom: 80px;
}

/*********** background ***********/

#Web_catalog .bg_balloons {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

#Web_catalog .bg_balloons .balloon {
    position: absolute;
    clip-path: var(--balloon);
    background-color: #000000;
}

#Web_catalog .bg_balloons .balloon::after {
    content: "";
    position: absolute;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 85%;
    height: 85%;

    clip-path: var(--balloon);
    background-color: var(--white);

    background-repeat: repeat;
    background-image:
        radial-gradient(#000 15%, transparent 15%),
        radial-gradient(#000 15%, transparent 15%);

    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
}

#Web_catalog .bg_balloons .balloon.balloon1 {
    width: 400px;
    height: 400px;
    left: calc(50vw - 800px);
    top: -150px;
}

#Web_catalog .bg_balloons .balloon.balloon2 {
    width: 250px;
    height: 250px;
    right: calc(50vw - 800px);
    top: -50px;
}

#Web_catalog .bg_balloons .balloon.balloon3 {
    width: 500px;
    height: 500px;
    right: calc(50vw - 1000px);
    bottom: -200px;
}


/*********** title ************/

#Web_catalog .content.title {
    position: relative;
    width: 100%;
    padding: 9px;
    border: 5px solid black;
    border-bottom-width: 10px;
    background-color: var(--white);
}

#Web_catalog .content.title::before,
#Web_catalog .content.title::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-size: contain;
}

#Web_catalog .content.title::before {
    background-image: url(../../assets/images/warpLeft.png);
    background-position: left;
}

#Web_catalog .content.title::after {
    background-image: url(../../assets/images/warpRight.png);
    background-position: right;
}

#Web_catalog h2 {
    font-size: 48px;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

#Web_catalog h2::after {
    display: inline-block;
    content: attr(data);
    font-size: 12px;
    color: var(--black);
    margin: auto 6px;
}

#Web_catalog .wrapper.description {
    margin-top: 32px;
}

#Web_catalog .wrapper.description h1 {
    font-size: 32px;
    text-align: left;
    color: var(--black);
    position: relative;
}

@media(max-width:997px) {
    #Web_catalog h2 {
        line-height: 48px;
        flex-direction: column;
    }

    #Web_catalog h2::after {
        line-height: normal;
    }
}

@media (max-width:576px) {
    #Web_catalog h2 {
        line-height: 32px;
        font-size: 32px;
    }
}

/*********** catalog_list ************/

#Web_catalog .content.catalog_list {
    position: relative;
    margin-top: 48px;
}

#Web_catalog .inner_content.catalog_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 16px;
    align-items: baseline;
    justify-content: space-between;
    text-align: center;
}

@media(max-width:997px) {
    #Web_catalog .inner_content.catalog_list {
        grid-template-columns: repeat(2, 1fr);
        align-items: end;
    }
}

/********** catalog_item **********/

#Web_catalog .catalog_item {
    max-width: 350px;
    margin: auto;
    position: relative;
}

#Web_catalog .catalog_item * {
    color: var(--black);
}

#Web_catalog .catalog_item img.catalog_img {
    position: relative;
    margin: auto;
    height: auto;
    width: 70%;

    border: 1px solid #aaaaaa;
    z-index: 1;
}

#Web_catalog .catalog_item img.character_img {
    position: absolute;
    height: 40%;
    width: auto;

    bottom: 6.5rem;
    right: 0;

    z-index: 1;
}

#Web_catalog .catalog_item::before,
#Web_catalog .catalog_item::after {
    content: "";
    position: absolute;
    display: block;

    clip-path: var(--balloon);

    left: 50px;
    top: 10px;
    transform: translate(-50%, -50%);

    aspect-ratio: 1/1;

    z-index: 0;
}

#Web_catalog .catalog_item::before {
    width: 50px;
    transition: width 200ms;

    background-color: var(--black);
}

#Web_catalog .catalog_item::after {
    width: 40px;

    background-color: var(--white);
}

#Web_catalog .catalog_item .item_title {
    font-weight: 500;
    font-size: 18px;
    text-align: left;
    margin: 16px 0;
}

#Web_catalog .catalog_item .catalog_button_container {
    width: 100%;
    height: 4rem;

    border-top: 1px solid var(--black);

    background: conic-gradient(from -45deg, #cccccc, #fbfbfb, #cccccc, #fbfbfb, #cccccc);
    background-size: 16px 16px;
    background-position: center;
}

#Web_catalog .catalog_item .catalog_button {
    display: flex;
    align-items: center;

    width: max-content;
    height: 2rem;
    line-height: 1rem;
    padding: 0 1rem;
    margin: auto;
    margin-top: 1rem;

    border: 1px solid var(--black);
    border-radius: 1rem;
    background: var(--white);
}

#Web_catalog .catalog_item .catalog_button::after {
    content: "";
    display: inline-block;
    height: 1.5rem;
    width: auto;
    aspect-ratio: 1/1;

    background-image: url(../assets/images/ico_catalog.svg);
    background-position: center center;
}

#Web_catalog .catalog_item a:hover .catalog_button {
    background: var(--yellow);
}

#Web_catalog .catalog_item .to_diagram_data {
    display: flex;

    align-items: center;
    justify-content: right;

    text-align: right;
    font-weight: 500;
}

#Web_catalog .catalog_item .to_diagram_data::after {
    content: "";
    display: block;

    height: 1rem;
    aspect-ratio: 1/1;

    background-image: url(../assets/images/ico_arrow_r.svg);
    background-size: contain;
}

@media(max-width:997px) {
    #Web_catalog .catalog_item .item_title {
        font-size: 14px;
    }

    #Web_catalog .catalog_item a .catalog_button {
        font-size: 12px;
        padding: 0.5rem;
    }

    #Web_catalog .catalog_item .to_diagram_data {
        display: none;
    }
}

@media(max-width:576px) {
    #Web_catalog .catalog_item img.character_img.jr {
        bottom: 8rem;
    }
}