:root {
    --blue: #3366FF;
}

html {
    scroll-behavior: smooth;
}

.background {
    position: fixed;
    pointer-events: none;

    top: 0;
    bottom: 40px;
    left: 190px;
    right: 0;

    background-repeat: repeat;
    background-image:
        radial-gradient(#00000055 25%, transparent 25%),
        radial-gradient(#00000055 25%, transparent 25%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    opacity: 0.2;
}

.background::after {
    content: "";
    position: absolute;
    pointer-events: none;

    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background-repeat: no-repeat;
    background-image: url(../../assets/images/characters/hrs/hrs_suimonchan.png);
    background-size: contain;
    background-position: -100px 100px;

    filter: grayscale();
}

#Diagram_data {
    min-height: calc(100dvh - 40px);

}

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

@media(max-width:997px) {
    .background {
        top: 60px;
        bottom: 30px;
        left: 0;
        right: 0;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

/*********** Drop_down_list ************/
.drop_down_button {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 350px;

    margin-left: auto;
    margin-right: 0;

    font-weight: 500;
}

.drop_down_button label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: all;
    cursor: pointer;

    padding: 1rem 2rem;

    color: var(--white);
    border: 2px solid var(--black);

    background: conic-gradient(from -45deg, #003666, #005AAA, #003666, #005AAA, #003666);
    background-size: 16px 16px;
    background-position: center;
}

.drop_down_button input[type=checkbox i] {
    display: none;
}

.drop_down_button span.rounded_up_arrow {
    position: relative;
    display: block;

    width: 1rem;
    height: 1rem;

    background: var(--white);
    border-radius: 50%;

    transition: transform 300ms;
}

.drop_down_button span.rounded_up_arrow::after {
    content: "";
    position: absolute;

    width: 75%;
    height: 73%;
    left: 12.5%;
    top: 12.5%;

    clip-path: polygon(0 50%, 50% 0, 100% 50%, 75% 75%, 50% 50%, 25% 75%);
    background: var(--black);

    transform: rotate(180deg);
}

.drop_down_button input[type=checkbox i]:checked~span.rounded_up_arrow {
    transform: rotate(180deg);
}

.drop_down_button label:has(input[type=checkbox i])~#Drop_down_list {
    display: none;
    position: absolute;

    width: 100%;
    padding: 8px 0;

    border: 1px solid #cccccc;
    background: var(--white);
    text-align: left;

    box-shadow: 0 8px 0 0 #00000055;
}

.drop_down_button label:has(input[type=checkbox i]:checked)~#Drop_down_list {
    display: block;
}

#Drop_down_list li {
    display: flex;
    align-items: center;

    font-size: 14px;
    padding: 6px 12px;
}

#Drop_down_list li a {
    color: var(--black);
}

#Drop_down_list li a:hover {
    color: var(--black);
    text-decoration: underline;
}

#Drop_down_list li::before {
    content: "";
    display: block;

    width: 1rem;
    height: 1rem;

    background-image: url(../assets/images/ico_star_type1.svg);
}

@media screen and (max-width:997px) {
    .drop_down_button {
        max-width: unset;
        margin: auto;
        margin-top: 32px;
    }
}

/*********** diagram_list ************/
#Diagram_data ol.diagram_list {
    position: relative;
}

/*********** list_item ************/

#Diagram_data li.list_item {
    width: 100%;
    margin-top: 48px;
}

#Diagram_data li.list_item h4 {
    position: relative;

    text-align: left;
    font-size: 20px;

    padding: 8px;
}

#Diagram_data li.list_item h4::before {
    content: "";
    position: relative;
    display: inline-block;

    height: 1rem;
    width: auto;
    aspect-ratio: 1/1;
    padding: 0 10px;

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

@media(max-width:997px) {
    #Diagram_data li.list_item h4 {
        font-size: 18px;
        padding: 8px 0;
    }

    #Diagram_data li.list_item h4 .sp {
        font-size: 12px;
    }
}

/*********** table ************/

#Diagram_data table {
    width: 100%;
    border: 1px solid #cccccc;
    border-top: 2px solid var(--blue);
    border-collapse: collapse;
}

#Diagram_data table th:last-child {
    width: 65%;
}

#Diagram_data table tr:not(:nth-child(2)) td:last-child {
    border-top: 1px solid #cccccc;
}

@media(max-width:997px) {
    #Diagram_data table td .sp {
        font-size: 16px;
    }

    #Diagram_data table th:last-child {
        width: auto;
    }
}

/****** th ******/

#Diagram_data table th {
    color: var(--blue);
    height: 5rem;

    border: 1px solid #cccccc;
    background-color: var(--white);
    border-collapse: collapse;
}

/****** td ******/

#Diagram_data table td {
    height: 5rem;

    border: 1px solid #cccccc;
    background-color: var(--white);
    border-collapse: collapse;
}

#Diagram_data table td:nth-child(1) {
    font-weight: 900;
}

#Diagram_data table td:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: none;

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

#Diagram_data table td:last-child .pdf_download,
#Diagram_data table td:last-child .dxf_download {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--black);
    height: 3rem;
    padding: 0 2rem;

    border: 1px solid #cccccc;
    border-radius: 2rem;
    background-color: var(--white);
}

#Diagram_data table td:last-child .dxf_download::after,
#Diagram_data table td:last-child .pdf_download::after {
    display: block;
    content: "";

    height: 1.5rem;
    width: auto;
    aspect-ratio: 1/1;
}

#Diagram_data table td:last-child .pdf_download::after {
    background-image: url(../assets/images/app_adobe.svg);
}

#Diagram_data table td:last-child .dxf_download::after {
    background-image: url(../assets/images/app_dxf.svg);
}

#Diagram_data table td:last-child .pdf_download:hover,
#Diagram_data table td:last-child .dxf_download:hover {
    outline: 1px solid var(--black);
}

@media(max-width:997px) {
    #Diagram_data table td {
        height: auto;
        font-size: 12px;
    }

    #Diagram_data table td:last-child {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
    }

    #Diagram_data table td:last-child {
        background-size: 8px 8px;
    }

    #Diagram_data table td:last-child .pdf_download,
    #Diagram_data table td:last-child .dxf_download {
        padding: 0 0.5rem;
        height: 32px;
    }
}

@media(max-width:576px) {
    #Diagram_data table td {
        font-size: 8px;
    }
}