:root {
    --color-yellow: #f4d316;
    --color-brown: #303232;
}

body {
    background: #f4d316;
    /* background: #ffdb00; */
    font-size: 14px;
    color: #332b00;
    /* color: #303232; */
}

h1,
h2,
body,
div,
ul,
h3 {
    margin: 0;
    padding: 0;
}

div,
section,
a,
li,
ul {
    box-sizing: border-box;
}

header {
    background: #332b00;
    position: fixed;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    /* clip-path: polygon(0 0, 100% 0, 100% 80%, 70% 10px, 0 100%); */
    height: 110px;
    /* width: 100%; */
    width: 700px;
    z-index: 100;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 1.4rem;
}

nav {
    width: 180px;
    padding-top: 40px;
    padding-left: 30px;
    transform: rotate(-8deg);
}

li {
    list-style: none;
}

nav li {
    display: block;
}

nav a {
    color: #f4d316;
    text-decoration: none;
    height: 100%;
    display: block;
    padding: 8px 16px;
}

nav li:hover a {
    background-color: #f4d316;
    color: #332b00;
}

.flex {
    display: flex;
    justify-content: space-between;
}

.bk {
    padding: 20px;
    overflow-x: hidden;
    /* min-width: 1000px; */
    /* width: min-content; */
    width: 100%;
    right: 0;
    overflow-y: hidden;
    position: absolute;
}

.bk .flex {
    justify-content: flex-end;

}

.bk .flex.left {
    justify-content: flex-start;
    margin-left: auto;
}

.bk_left,
.bk_right {
    width: fit-content;
}

.bk_right {
    margin-left: auto;
}

.bk_left {
    margin-right: auto;
}

.gear {
    position: relative;
    margin: -2px;
    background: #332b00;
    border-radius: 50%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.bk_right .flex:nth-of-type(1) .gear:nth-of-type(1) {
    animation-name: spin-right;
}

.bk_right .flex:nth-of-type(1) .gear:nth-of-type(2) {
    animation-name: spin-left;

}

.bk_right .flex:nth-of-type(2) .gear:nth-of-type(1) {
    animation-name: spin-right-1;
    margin-top: 4px;
}

.bk_right .flex:nth-of-type(2) .gear:nth-of-type(2) {
    animation-name: spin-right-28;
    margin-top: -32px;
}

.bk_right .flex:nth-of-type(3) .gear:nth-of-type(1) {
    animation-name: spin-left-10;
    margin-top: -56px;
}

.bk_right .flex:nth-of-type(4) .gear:nth-of-type(1) {
    animation-name: spin-right-10;
    margin-top: -10px;
}

.bk_right .flex:nth-of-type(4) .gear:nth-of-type(2) {
    animation-name: spin-left-1;
    margin-top: 110px;
}

.bk_right .flex:nth-of-type(5) .gear:nth-of-type(1) {
    animation-name: spin-right-1;
    margin-top: 6px;
    margin-right: 12px;
}

.bk_right .flex:nth-of-type(5) .gear:nth-of-type(2) {
    animation-name: spin-left-7;
    margin-top: 126px;
}

.bk_right .flex:nth-of-type(5) .gear:nth-of-type(3) {
    animation-name: spin-right-1;
    margin-top: 6px;
}

/* .flex:nth-of-type(6) {
    margin-top: -100px;
} */

.bk_left .flex:nth-of-type(1) .gear:nth-of-type(1) {
    animation-name: spin-left;
}

.bk_left .flex:nth-of-type(1) .gear:nth-of-type(2) {
    animation-name: spin-right;
    margin-top: -50px;
    margin-left: -76px;
}

.bk_left .flex:nth-of-type(1) .gear:nth-of-type(3) {
    animation-name: spin-left;
    margin-left: -16px;
}

.bk_left .flex:nth-of-type(2) .gear:nth-of-type(1) {
    animation-name: spin-right;
    margin-top: -20px;
    margin-left: 20px;
}

.bk_left .flex:nth-of-type(3) .gear:nth-of-type(1) {
    animation-name: spin-right-7;
    margin-top: -96px;
}

.bk_left .flex:nth-of-type(3) .gear:nth-of-type(2) {
    animation-name: spin-left;
    margin-top: 250px;
    margin-left: 12px;
}

.bk_left .flex:nth-of-type(4) .gear:nth-of-type(1) {
    animation-name: spin-right;
    margin-top: 240px;
    margin-left: 12px;
}

.bk_left .flex:nth-of-type(4) .gear:nth-of-type(2) {
    animation-name: spin-left;
    margin-top: 14px;
}

.bk_left .flex:nth-of-type(5) .gear:nth-of-type(1) {
    animation-name: spin-left;
    margin-top: 2px;
}

.bk_left .flex:nth-of-type(5) .gear:nth-of-type(2) {
    animation-name: spin-right;
}


@keyframes spin-right {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-left {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes spin-left-1 {
    from {
        transform: rotate(-12deg);
    }

    to {
        transform: rotate(-372deg);
    }
}

@keyframes spin-left-7 {
    from {
        transform: rotate(-7deg);
    }

    to {
        transform: rotate(-367deg);
    }
}

@keyframes spin-left-10 {
    from {
        transform: rotate(10deg);
    }

    to {
        transform: rotate(-350deg);
    }
}

@keyframes spin-right-28 {
    from {
        transform: rotate(28deg);
    }

    to {
        transform: rotate(388deg);
    }
}

@keyframes spin-right-7 {
    from {
        transform: rotate(14deg);
    }

    to {
        transform: rotate(374deg);
    }
}

@keyframes spin-right-10 {
    from {
        transform: rotate(10deg);
    }

    to {
        transform: rotate(370deg);
    }
}

@keyframes spin-right-1 {
    from {
        transform: rotate(-1.2deg);
    }

    to {
        transform: rotate(358.8deg);
    }
}

.gear_m {
    width: 200px;
    height: 200px;
    /* animation-name: spin-right; */
    animation-duration: 16s;
}

.gear_l {
    width: 400px;
    height: 400px;
    /* animation-name: spin-left; */
    animation-duration: 32s;
}

.gear_s {
    width: 100px;
    height: 100px;
    animation-duration: 8s;
}

.gear_ll {
    width: 800px;
    height: 800px;
    animation-duration: 64s;
}

.gear .flame {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #f4d316;
    border-radius: 50%;
    border: #332b00 1px solid;
}

.gear_m .flame {
    width: 180px;
    height: 180px;
}

.gear_l .flame {
    width: 380px;
    height: 380px;
}

.gear_s .flame {
    width: 80px;
    height: 80px;
}

.gear_ll .flame {
    width: 780px;
    height: 780px;
}

.gear .flame>.line {
    position: absolute;
    z-index: 1;
    width: 6px;
    height: 100%;
    background: #332b00;
}

.gear_m .flame>.line {
    left: 86px;
}

.gear_l .flame>.line {
    left: 186px;
}

.gear_s .flame>.line {
    left: 36px;
}

.gear_ll .flame>.line {
    left: 386px;
}

.line:nth-child(2) {
    transform: rotate(45deg);
}

.line:nth-child(3) {
    transform: rotate(90deg);
}

.line:nth-child(4) {
    transform: rotate(135deg);
}

.gear .center {
    /* background: #332b00; */
    position: absolute;
    border: 2px solid #332b00;
    outline: 1px solid #332b00;
    border-radius: 50%;
}

.gear_m .center {
    width: 60px;
    height: 60px;
    top: 59px;
    left: 59px;
    outline-offset: 10px;
}

.gear_l .center {
    width: 120px;
    height: 120px;
    top: 129px;
    left: 129px;
    outline-offset: 10px;
}

.gear_s .center {
    width: 30px;
    height: 30px;
    top: 24px;
    left: 24px;
    outline-offset: 6px;
}

.gear_ll .center {
    width: 240px;
    height: 240px;
    top: 269px;
    left: 269px;
    outline-offset: 10px;
}

.gear .tooth {
    position: absolute;
    top: -10px;
    left: 90px;
    z-index: 1;
    width: 20px;
    height: 220px;
    background: #332b00;
    /* border: 1px solid #333; */
}

.gear_m .tooth {
    left: 90px;
    height: 220px;
}

.gear_l .tooth {
    left: 190px;
    height: 420px;
}

.gear_s .tooth {
    left: 40px;
    height: 120px;
}

.gear_ll .tooth {
    left: 390px;
    height: 820px;
}

.gear_m .tooth:nth-child(2) {
    transform: rotate(22.5deg);
}

.gear_m .tooth:nth-child(3) {
    transform: rotate(45deg);
}

.gear_m .tooth:nth-child(4) {
    transform: rotate(67.5deg);
}

.gear_m .tooth:nth-child(5) {
    transform: rotate(90deg);
}

.gear_m .tooth:nth-child(6) {
    transform: rotate(112.5deg);
}

.gear_m .tooth:nth-child(7) {
    transform: rotate(135deg);
}

.gear_m .tooth:nth-child(8) {
    transform: rotate(157.5deg);
}


.gear_l .tooth:nth-child(2) {
    transform: rotate(11.25deg);
}

.gear_l .tooth:nth-child(3) {
    transform: rotate(calc(11.25deg *2));
}

.gear_l .tooth:nth-child(4) {
    transform: rotate(calc(11.25deg *3));
}

.gear_l .tooth:nth-child(5) {
    transform: rotate(calc(11.25deg *4));
}

.gear_l .tooth:nth-child(6) {
    transform: rotate(calc(11.25deg *5));
}

.gear_l .tooth:nth-child(7) {
    transform: rotate(calc(11.25deg *6));
}

.gear_l .tooth:nth-child(8) {
    transform: rotate(calc(11.25deg *7));
}

.gear_l .tooth:nth-child(9) {
    transform: rotate(calc(11.25deg *8));
}

.gear_l .tooth:nth-child(10) {
    transform: rotate(calc(11.25deg *9));
}

.gear_l .tooth:nth-child(11) {
    transform: rotate(calc(11.25deg *10));
}

.gear_l .tooth:nth-child(12) {
    transform: rotate(calc(11.25deg *11));
}

.gear_l .tooth:nth-child(13) {
    transform: rotate(calc(11.25deg *12));
}

.gear_l .tooth:nth-child(14) {
    transform: rotate(calc(11.25deg *13));
}

.gear_l .tooth:nth-child(15) {
    transform: rotate(calc(11.25deg *14));
}

.gear_l .tooth:nth-child(16) {
    transform: rotate(calc(11.25deg *15));
}

/* 
.gear_ll .tooth:nth-child(1) {
    transform: 0deg;
} */

.gear_ll .tooth:nth-child(2) {
    transform: rotate(5.625deg);
}

.gear_ll .tooth:nth-child(3) {
    transform: rotate(calc(5.625deg *2));
}

.gear_ll .tooth:nth-child(4) {
    transform: rotate(calc(5.625deg *3));
}

.gear_ll .tooth:nth-child(5) {
    transform: rotate(calc(5.625deg *4));
}

.gear_ll .tooth:nth-child(6) {
    transform: rotate(calc(5.625deg *5));
}

.gear_ll .tooth:nth-child(7) {
    transform: rotate(calc(5.625deg *6));
}

.gear_ll .tooth:nth-child(8) {
    transform: rotate(calc(5.625deg *7));
}

.gear_ll .tooth:nth-child(9) {
    transform: rotate(calc(5.625deg *8));
}

.gear_ll .tooth:nth-child(10) {
    transform: rotate(calc(5.625deg *9));
}

.gear_ll .tooth:nth-child(11) {
    transform: rotate(calc(5.625deg *10));
}

.gear_ll .tooth:nth-child(12) {
    transform: rotate(calc(5.625deg *11));
}

.gear_ll .tooth:nth-child(13) {
    transform: rotate(calc(5.625deg *12));
}

.gear_ll .tooth:nth-child(14) {
    transform: rotate(calc(5.625deg *13));
}

.gear_ll .tooth:nth-child(15) {
    transform: rotate(calc(5.625deg *14));
}

.gear_ll .tooth:nth-child(16) {
    transform: rotate(calc(5.625deg *15));
}

.gear_ll .tooth:nth-child(17) {
    transform: rotate(calc(5.625deg *16));
}

.gear_ll .tooth:nth-child(18) {
    transform: rotate(calc(5.625deg *17));
}

.gear_ll .tooth:nth-child(19) {
    transform: rotate(calc(5.625deg *18));
}

.gear_ll .tooth:nth-child(20) {
    transform: rotate(calc(5.625deg *19));
}

.gear_ll .tooth:nth-child(21) {
    transform: rotate(calc(5.625deg *20));
}

.gear_ll .tooth:nth-child(22) {
    transform: rotate(calc(5.625deg *21));
}

.gear_ll .tooth:nth-child(23) {
    transform: rotate(calc(5.625deg *22));
}

.gear_ll .tooth:nth-child(24) {
    transform: rotate(calc(5.625deg *23));
}

.gear_ll .tooth:nth-child(25) {
    transform: rotate(calc(5.625deg *24));
}

.gear_ll .tooth:nth-child(26) {
    transform: rotate(calc(5.625deg *25));
}

.gear_ll .tooth:nth-child(27) {
    transform: rotate(calc(5.625deg *26));
}

.gear_ll .tooth:nth-child(28) {
    transform: rotate(calc(5.625deg *27));
}

.gear_ll .tooth:nth-child(29) {
    transform: rotate(calc(5.625deg *28));
}

.gear_ll .tooth:nth-child(30) {
    transform: rotate(calc(5.625deg *29));
}

.gear_ll .tooth:nth-child(31) {
    transform: rotate(calc(5.625deg *30));
}


.gear_ll .tooth:nth-child(32) {
    transform: rotate(calc(5.625deg *31));
}

.gear_s .tooth:nth-child(2) {
    transform: rotate(45deg);
}

.gear_s .tooth:nth-child(3) {
    transform: rotate(90deg);
}

.gear_s .tooth:nth-child(4) {
    transform: rotate(135deg);
}

.body {
    position: relative;
    margin: 0;
    padding: 0;
}

.visual {
    height: 100vh;
    position: relative;
}

.visual .contents {
    transform: rotate(-8deg);
    width: 100%;
    border-bottom: #332b00 1px solid;
    position: absolute;
    bottom: 160px;
    text-align: right;
    padding-left: 60px;
    margin-left: -30px;
}

.visual .contents .inner {
    width: fit-content;
    border-left: #332b00 1px solid;
}

.visual .contents p {
    margin-bottom: -30px;
    background-color: #f4d316;
    margin-left: auto;
    width: fit-content;
    padding: 0 10px;
}

h1 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 6rem;
    line-height: 1;
    color: #332b00;
    background-color: #f4d316;
    padding: 0 10px;
}

section {
    min-height: 100vh;
    color: #f4d316;
    position: relative;
}

section .bg {
    background: #332b00;
    position: absolute;
    width: 100%;
    height: 100vh;
}

footer .bg {
    width: 100%;
    position: absolute;
    background: #332b00;
    height: 160px;
    /* height: 200px; */
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

#about .bg {
    clip-path: polygon(0 0, 100% 100px, 100% 30px, 0 100%);
}

#works .bg {
    clip-path: polygon(0 0, 100% 100%, 100% 0, 0 100px);
}

h2 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 3rem;
    line-height: 1;
}

.top section .contents {
    position: relative;
    width: fit-content;
    padding: 200px 10px 0;
}

#about .contents {
    margin-left: 90px;
    transform: rotate(-8deg);
    border-left: #f4d316 1px solid;
    width: 80%;
}

.top .contents>p {
    background-color: #332b00;
    width: fit-content;
}

#works p {
    background-color: #332b00;
    width: fit-content;
    margin-left: auto;
    text-align: left;
}

#works .contents {
    margin-left: auto;
    transform: rotate(8deg);
    margin-right: 90px;
    text-align: right;
    border-right: #f4d316 1px solid;
    width: 90%;
}

#about .table_wp {
    padding: 20px 0;
    margin-left: auto;
}

#about .table {
    padding: 10px 0;
    /* border: #332b00 1px solid; */
    color: #332b00;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#about .table p {
    margin: 0;
}

.row {
    width: 150px;
    background-color: #332b00;
    padding: 3px;
}

.th,
.td {
    padding: 12px 0;
    background-color: #f4d316;
    text-align: center;
}

.th {
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: none;
}

.td {
    padding: 8px 0;
    text-align: center;
    background-color: #332b00;
    color: #f4d316;
    border: #f4d316 1px solid;
    border-top: none;
}

#about .th img {
    width: 70px;
    margin: auto;
    display: block;
}

#works {
    min-height: 100vh;
}

#works ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

#works li .cover {
    width: 250px;
    height: 150px;
    border-top: 4px solid #332b00;
    border-right: 4px solid #332b00;
    border-left: 4px solid #332b00;
    background: url('imgs/wood.jpg') center / cover no-repeat, #332b00;
}

#works li:nth-of-type(2) .cover {
    background: url('imgs/chass01.png') center / cover no-repeat, #332b00;
}

#works li:nth-of-type(3) .cover {
    background: url('imgs/wood.jpg') center / cover no-repeat, #332b00;
    width: 500px;
    height: 250px;
}

#works li:nth-of-type(4) .cover {
    background: url('imgs/plant.jpg') center / cover no-repeat, #332b00;
    width: 500px;
    height: 250px;
}

#works li:nth-of-type(5) .cover {
    background: url('imgs/metro.jpg') center / cover no-repeat, #332b00;
    width: 360px;
    height: 180px;
}

#works .lists:nth-of-type(2) .li06 .cover {
    background: url('imgs/group.jpg') center / cover no-repeat, #332b00;
    width: 500px;
    height: 250px;
}

#works h3 {
    width: 280px;
    align-items: center;
    display: flex;
    line-height: 150px;
}

footer {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #f4d316;
    height: 160px;
    margin-top: 100px;
}

footer .contents {
    z-index: 10;
    width: fit-content;
    background: #332b00;
    margin-left: auto;
}

h3 {
    background: #332b00;
    font-size: 2rem;
}

.lists {
    display: flex;
    justify-content: right;
    margin-top: 30px;
}

.lists li .cover {
    width: 100%;
    height: 100%;
    color: #332b00;
}

.lists li .cover a {
    width: 50%;
    height: 100%;
    position: absolute;
    font-size: 1.08rem;
    color: #332b00;
    font-weight: bold;
    display: none;
    align-items: center;
}

.lists li .title {
    background-color: #332b00;
    line-height: 30px;
    /* border-bottom: #ffd900 1px solid;
    border-right: #ffd900 1px solid;
    border-left: #ffd900 1px solid; */
    /* color: #332b00; */
    font-weight: bolder;
    /* width: fit-content; */
    padding-right: 10px;
}

.lists .cover a:nth-of-type(1) {
    z-index: 10;
    text-align: start;
}

.lists .cover a:nth-of-type(2) {
    right: 0;
    text-align: end;
    padding-left: 100px;
}

.lists .cover {
    display: flex;
    position: relative;
}

.lists .cover:hover a {
    background-color: #f4d316;
    padding: 10px;
    display: flex;
    border: #f4d316 1px solid;
}

.lists .cover a:hover {
    background-color: #332b00;
    color: #f4d316;
}

/* .lists li:hover a:nth-of-type(2) {
    display: flex;
    align-items: flex-end;
} */
.single .imgs {
    align-items: center;
    margin: 20px auto;
    width: 1000px;
}

.single .pc img {
    width: 840px;
}

.single .sp img {
    width: 160px;
}

.single h2 {
    margin: -20px 0 60px;
    /* margin: 0; */
    font-size: 2rem;
    text-align: right;
    color: #332b00;
    border-bottom: 1px solid #332b00;
    transform: rotate(8deg);
    width: 99%;
}

.single h2 span {
    font-size: 4em;
    margin: 0 10px;
}

#wf .bg,
#pd .bg {
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.single section .contents {
    position: relative;
    /* width: fit-content; */
    padding-top: 100px;
    height: 100vh;
}

.single .inner {
    width: 900px;
    margin: 100px auto 0;
}

.single p {
    margin: 0;
    font-size: 1rem;
}

.single section .desc {
    background-color: #332b00;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60vh));
    width: 100%;
    height: 140vh;
    position: absolute;
    z-index: -1;
}

.single table {
    background-color: #f4d316;
    color: #332b00;
    border-collapse: collapse;
    width: 100%;
    margin: 60px 0;
    border: #332b00 2px solid;
}

.single h3 {
    margin: 60px 0 20px;
}

.single th,
.single td {
    border: 1px solid #332b00;
    padding: 10px 20px;
}

.single .button {
    background: #f4d316;
    /* color: #332b00; */
    margin: 30px auto;
    width: fit-content;
    font-size: 1.1rem;
    font-weight: bold;
    width: 900px;

}

.single .button a {
    color: #332b00;
    /* width: fit-content; */
    text-decoration: none;
    padding: 20px;
    text-align: center;
    display: block;
    border: #332b00 2px solid;
    width: 900px;
}

.single .button a:hover {
    color: #f4d316;
    background: #332b00;
    border: #f4d316 2px solid;
}

.totop {
    position: fixed;
    background: #332b00;
    /* width: 80px;
    height: 80px; */
    bottom: 60px;
    left: 60px;
}

.totop a {
    color: #f4d316;
    border: #f4d316 2px solid;
    padding: 16px;
    display: block;
    text-decoration: none;
    text-align: center;
}

.totop a:hover {
    color: #332b00;
    background-color: #f4d316;
    border: #332b00 2px solid;
}

@media screen and (max-width: 980px) {
    #about .contents {
        transform: rotate(0deg);
        width: 92%;
        margin-left: 8%;
    }

    #works .contents {
        transform: rotate(0deg);
        width: 92%;
        margin-right: 8%;
    }
}

@media screen and (max-width: 590px) {}