@charset "utf-8";
/*--------------------------------------
    Index Layout
	last updated 2026.01.16
--------------------------------------*/

.contents {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 50px;
}

.contents > div {
    display: flex;
    gap: 20px 20px;
    align-items: center;
    min-height: 80px;
}

.contents h2 {
    display: flex;
    column-gap: 20px;
    align-items: center;
    height: inherit;
    flex-shrink: 0;
}

.contents h2 span {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 600;
    font-size: 1.15rem;
    width: 11em;
    white-space: nowrap;
}

.contents .more-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category {
    background-color: #373737;
    padding: 10px 17px;
}

.category h3 {
    color: whitesmoke;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.category a,
.oven .category {
    color: whitesmoke;
    text-decoration: none;
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.category figure {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 10px;
    height: 70px;
}

.category figure img { max-height: 100%; }


/* oven */
.oven .category div {
    display: flex;
    align-items: center;
    gap: 0;
}

.oven .category div a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100px;
}

.oven .category div a:not(:last-child){ 
    border-right: 1px solid white;
}

.oven .category div a span {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    font-size: 0.85rem;
}

/* test-inspection */
.test-inspection .category figure img:nth-child(4) { 
    width: 95px;
    margin-left: -10px;
}


/* others */
.others .category a { height: 70px; }



@media screen and ( hover: hover ) {
    
    .category:hover {  background-color: #444444; }
    
    .oven .category a:hover { 
        text-decoration: underline;
        text-decoration-color: red;
    }
}

@media screen and ( hover: none ) {
    
    .category:active {  background-color: #444444; }
    
    .oven .category a:active {
        text-decoration: underline;
        text-decoration-color: red;
    }
}

@media screen and (max-width: 1022px) {
    
    .contents h2 img { width: 60px; }
    
    .contents h2 span { font-size: 1rem; }
    
    .category h3 {  font-size: 0.85rem; }
    
    .category figure { 
        height: auto;
        min-height: 70px;
    }
    
    .category figure img { max-height: 70px; }
}

@media screen and (max-width: 769px) {
    
    .contents { gap: 40px; }
    
    .contents > div {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 599px){
    
    .category { width: 100%; }
    
    .category a,
    .oven .category {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .category figure {  
        min-height: 60px;
        width: 100%;
        align-items: flex-start;
        justify-content: space-around;
    }
    
    .category figure img { max-height: 60px; }
    
    .oven .category div {
        width: 100%;
        justify-content: center; 
    }
}
