:root {
    --primary-orange: #F29603;
    --secondary-orange: #FEF4E5;
    --gray: #aaa;
    --retired-gray: #e5e1e1;
    --primary-black: #000;
    --site-background: #f9f9f9;
}

#cleanwood main h1 {
    font-family: 'NotoSansJP-Light';
    font-size: clamp(3rem, 2rem + 2.5vw, 3.4rem);
    margin: 20px 0;
}


#cleanwood main h2 {
    margin: 10px 0 10px 0;
    font-family: 'NotoSansJP-Medium';
    font-size: clamp(2.0rem, 1rem + 2.5vw, 2.4rem);
    padding: 0 0 8px 0;
    border-bottom: 1px solid var(--gray);
    gap: 0;
}

#cleanwood main h3 {
    display: inline-block;
    font-size: clamp(1.2rem, 1rem + 1.5vw, 1.8rem);
}

#cleanwood main p, #cleanwood main .content-box .reference a {
    font-size: clamp(1rem, .75rem + 1.5vw, 1.6rem);
    line-height: 1.9;
}

/* Main content -------------------------------------------------------------------------------------*/

#cleanwood .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 30px 0;
    width: 100%;
}

#cleanwood .content-box {
    max-width: 96ch;
}

#cleanwood .content {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 60px;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    #cleanwood .content-box {
        width: 100%;
    }

    .mobile-only {
        display: block;
    }
}

#cleanwood .text a {
    text-decoration: underline;
}

#cleanwood .text a:hover {
    color: var(--primary-orange);
}

#cleanwood .reference {
    font-weight: 600;
}

/* Table ------------------------------------------------------------------------------------------------------------- */
#cleanwood table p,
#cleanwood table a,
#cleanwood table td,
#cleanwood table th {
    font-size: clamp(1rem, .75rem + 1.5vw, 1.6rem);
}

#cleanwood .table-container {
    text-align: center;
    overflow: auto;
    /* max-height: 50vh; */
}

#cleanwood .company-info td, #cleanwood .cleanwood-overview td:last-child {
    text-align: left;
}

#cleanwood table {
    border-collapse: separate;
    position: relative;
    width: 100%;
}

#cleanwood th {
    background-color: var(--secondary-orange);
    color: var(--primary-black);
}

#cleanwood table caption {
    text-align: left;
    padding: 5px 0;
}

#cleanwood table caption::before {
    content: "";
    margin-right: .5em;
    border: 2px solid var(--primary-orange);
}

#cleanwood table caption.right {
    position: absolute;
    right: 0;
    top: 0;
}

@media screen and (max-width: 768px) {
    #cleanwood table caption.right {
        position: static;
        text-align: right;
    }
}

#cleanwood table caption.right::before {
    border: none;
}

#cleanwood .sticky-head th {
    padding: .5em;
    position: sticky;
    top: 0;
    z-index: 1;
    border-top: solid 2px var(--primary-black);
    border-bottom: solid 2px var(--primary-black);
}

#cleanwood .sticky {
    vertical-align: top;
    position: sticky;
    top: 7em;
}

#cleanwood table .retired {
    background-color: var(--retired-gray);
}

#cleanwood table tr:first-child {
    border-top: 1px solid var(--primary-black);
}

#cleanwood table tr:last-child {
    border-bottom: solid 1px var(--primary-black);
}

#cleanwood table td:last-child, #cleanwood table th:last-child {
    border-right: 0;
}

#cleanwood table td, #cleanwood table th {
    border-right: 1px solid var(--primary-black);
}

#cleanwood table th, #cleanwood table tr, #cleanwood table td {
    padding: 5px 10px;
    vertical-align: middle;
    border-bottom: solid 1px var(--primary-black);
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    #cleanwood table, th, tr, td {
        padding: 5px;
    }
}

#cleanwood .additional-info {
    display: block;
    padding-top: .5em;
    font-size: clamp(1rem, .75rem + 2.5vw, 1.2rem);
    text-align: left;
}

#cleanwood .details-btn {
    text-decoration: underline 1px;
    color: var(--primary-black);
}

#cleanwood .details-btn:hover {
    color: var(--primary-orange);

}

