body {
    margin: 0;
    padding: 0;
    background: #eddfb2;
    color: #6f4a2a;
    font-size: 110%;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Noto Sans JP', sans-serif;
}

nav {
    position: fixed;
    right: 10px;
    top: 10px;
}

line {
    display: block;
    width: 2rem;
    height: 3px;
    background: #6f4a2a;
    margin: 6px;
}

ol {
    display: none;
    background: #afbea9;
    position: fixed;
    right: 10px;
    top: 25px;
    counter-reset: item 10;
    line-height: 1.8;
    border-radius: 4px;
    width: 16rem;
    color: #404a4a;
    z-index: 10;
}

h2 {
    border-bottom: #404a4a 2px solid;
}

item {
    display: list-item;
    list-style: none;
}

item::before {
    counter-increment: item -1;
    content: "#" counter(item) ": ";
}

item a {
    color: #404a4a;
    font-weight: 600;
}

time {
    display: block;
    font-size: 80%;
    width: 80%;
    height: 2rem;
    margin: 1rem auto .5rem;
    text-align: right;
}

header {
    text-align: center;
}

h1 {
    margin-top: .5rem;
    margin-bottom: 0;
}

main {
    width: 50%;
    margin: 1rem auto;
}

main * + * {
    margin: 1rem 0;
}

article {
    border: #6f4a2a solid 2px;
    border-radius: 4px;
    min-height: 8rem;
    background: #fbfaf1;
}

h3 {
    text-indent: 1rem;
    border-bottom: #6f4a2a dotted 2px;
    background: #eddfb2;
    padding-top: 1.25rem;
    margin-top: 0;
}

right {
    display: inline-block;
}

#n9 div {
    position: relative;
    text-align: center;
    width: 6em;
    height: 2em;
    margin: 0 auto;
    font-size: 42px;
    font-weight: bolder;
    padding-top: .5em;
    color: #404a4a;
}

#n9 div::before {
    position: absolute;
    content: '';
    top: 32px;
    left: 0;
    width: 45px;
    height: 32px;
    border-top: 1px solid #404a4a;
    transform: rotate(-50deg);
}

#n9 div::after {
    position: absolute;
    content: '';
    bottom: 32px;
    right: 0;
    width: 45px;
    height: 32px;
    border-bottom: 1px solid #404a4a;
    transform: rotate(-50deg);
}

#n9 div span::before {
    position: absolute;
    content: '';
    top: 21px;
    left: 0;
    width: 40px;
    height: 16px;
    border-top: 1px solid #404a4a;
    transform: rotate(-50deg);
}

#n9 div span::after {
    position: absolute;
    content: '';
    bottom: 21px;
    right: 0;
    width: 40px;
    height: 16px;
    border-bottom: 1px solid #404a4a;
    transform: rotate(-50deg);
}

#n9 div span span::before {
    position: absolute;
    content: '';
    top: 50px;
    left: 0;
    width: 20px;
    height: 9px;
    border-top: 1px solid #404a4a;
    transform: rotate(-50deg);
}

#n9 div span span::after {
    position: absolute;
    content: '';
    bottom: 50px;
    right: 0;
    width: 20px;
    height: 9px;
    border-bottom: 1px solid #404a4a;
    transform: rotate(-50deg);
}

#n8 div {
    position: relative;
    margin: 0 auto;
    width: 9em;
    height: 6em;
}

#n8 div * {
    display: block;
    font-size: 60px;
    font-weight: bold;
}

#n8 div div:first-child {
    -webkit-text-stroke: 4px #6f4a2a;
    position: absolute;            
    color: transparent;
}

#n8 div div:last-child {
    -webkit-text-stroke: 0;
    position: absolute;
    top: 4px;
    left: 4px;
    color: #404a4a;
}

#n7 div {
    display: flex;
    justify-content: center;
    align-items: center;
}

#n7 div div {
    display: flex;
    flex-direction: column;
}

#n7 div div div {
    border: #404a4a solid 2px;
    width: 20px;
    height: 20px;
    margin: 4px;
}

#n6 div {
    display: flex;
    justify-content: center;
    align-items: center;
}

#n6 div div {
    border: #404a4a solid 2px;
    width: 5px;
    margin: 8px;
}

#n6 div div:nth-child(1){
    height: 25px;
}

#n6 div div:nth-child(2){
    height: 20px;
}

#n6 div div:nth-child(3){
    height: 16px;
}

#n6 div div:nth-child(4){
    height: 13px;
}

#n6 div div:nth-child(5){
    height: 11px;
}

#n6 div div:nth-child(6){
    height: 10px;
}

#n6 div div:nth-child(7){
    height: 8px;
}

#n6 div div:nth-child(8){
    height: 6px;
}

#n6 div div:nth-child(9){
    height: 4px;
}

#n6 div div:nth-child(10){
    height: 2px;
}

#n5 div {
    display: flex;
    justify-content: center;
}

#n5 div div {
    border: #404a4a solid 2px;
    border-radius: 8px;
    width: 8px;
    margin: 12px;
}

#n5 div div:nth-child(odd) {
    transform: rotate(30deg);
}

#n5 div div:nth-child(3n+1){
    margin-bottom: 4px;
}

#n5 div div:nth-child(even) {
    transform: rotate(-30deg);
}

#n5 div div:nth-child(3n+2){
    margin-top: 4px;
}

#n5 div div:nth-child(3n){
    margin: 4px;
}

#n4 div {
    display: flex;
    justify-content: center;
}

#n4 div div {
    border: #404a4a solid 2px;
    border-radius: 0 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 16px;
}

#n4 div div:nth-child(8n+1) {
    transform: rotate(15deg);
}

#n4 div div:nth-child(8n+2) {
    transform: rotate(30deg);
}

#n4 div div:nth-child(8n+3) {
    transform: rotate(45deg);
}

#n4 div div:nth-child(8n+4) {
    transform: rotate(60deg);
}

#n4 div div:nth-child(8n+5) {
    transform: rotate(75deg);
}

#n4 div div:nth-child(8n+6) {
    transform: rotate(90deg);
}

#n4 div div:nth-child(8n+7) {
    transform: rotate(105deg);
}

#n4 div div:nth-child(8n) {
    transform: rotate(120deg);
}

#n3 div {
    display: flex;
    justify-content: center;
}

#n3 div div {
    border: #404a4a solid 2px;
    width: 32px;
    height: 4px;
    margin: 16px;
}

#n2 div {
    display: flex;
    justify-content: center;
}

#n2 div div {
    width: 8px;
    height: 4px;
    margin: 16px;
}

#n2 div div:nth-child(odd) div {
    border: #404a4a solid 2px;
    width: 32px;
    height: 4px;
    margin: 8px;
}

#n2 div div:nth-child(even) div {
    border: #404a4a solid 2px;
    width: 16px;
    height: 4px;
    margin: 16px;
}

#n1 div {
    display: flex;
    justify-content: center;
}

#n1 div div {
    border: #404a4a solid 2px;
    width: 32px;
    height: 4px;
    margin: 16px;
}

#n1 div div:nth-child(odd) {
    margin-top: 8px;
}

#n1 div div:nth-child(even) {
    margin-bottom: 8px;
}

#n1 div div:nth-child(3n+1) {
    margin-top: 12px;
}

#n1 div div:nth-child(3n+2) {
    margin-bottom: 12px;
}

#n1 div div:nth-child(3n) {
    margin-bottom: 16px;
}

footer p {
    text-align: center;
    font-size: 80%;
}

@media screen and (max-width: 777px) {
    main {
        width: 90%;
    }
}