@charset "utf-8";

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table.table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}
:focus {
  outline: 0;
}

ol,
ul {
  list-style: none;
}
table.table {
  border-collapse: separate;
  border-spacing: 0;
}
caption,
th,
td {
  font-weight: normal;
  text-align: left;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
}
blockquote,
q {
  quotes: "" "";
}
a img {
  border: 0;
}
figure {
  margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
/* -------------------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  font-family: "Noto Sans JP", Sans-Serif;
  line-height: 1.5;
  background: #ededed;
}
* {
  box-sizing: border-box;
  caret-color: #3d3d3d;
}

#loading {
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  text-align: center;
  line-height: 100vh;
  z-index: 999;
}

a {
  color: white;
  text-decoration: none;
}
a.link {
  color: black;
  border-bottom: 3px dotted #349c34;
}
a:active,
a:focus {
  outline: 0;
}

#wrapper {
  margin: 10px auto 0;
  padding: 0;
  width: 100%;
  position: relative;
  background: #fff;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.inner {
  margin: 0 auto;
  width: 100%;
}
#language-setting {
  display:block;
  text-align: right;
  margin-right: 15px;
  margin-bottom: 5px;
  cursor: pointer;
}
table.about {
  font-size: 14px;
  line-height: 1.8em;
  margin: 5px 0;
}
.content {
  margin: 30px 0 35px;
}
.content #index-buttons {
  width:480px;
  display:flex;
  margin: 0 auto;
}
.content input {
  font-size: 100%;
  font-family: "Noto Sans JP", sans-serif;
  margin: 10px 10px 5px 0;
  padding: 5px;
  border: 2px solid #c7e4b7;
}
.content button {
  color: white;
  width: 70px;
  font-size: 90%;
  font-family: "Noto Sans JP", Sans-Serif;
  font-weight: 400;
  padding: 4px 10px;
  background-color: #349C34;
  border: 1px solid #349C34;
  cursor: pointer;
  margin-left: 6px;
}
.content button.index {
  color: #36ac07;
  font-weight: 600;
  width: 35px;
  background-color: white;
}
.content button.active {
  color: white;
  background-color: #36ac07;
}
.content button.disabled {
  color: #36ac074d;
  cursor: default;
  border: 1px solid #36ac074d;
}
/*.content button.gyo.active::before {
  font: var(--fa-font-solid);
  content: "\f0da";
  color: white;
  margin-right: 5px;
}*/
.content button.small {
  font-size: 70%;
  padding: 3px 10px;
}
#modal-content button {
  color: white;
  font-size: 90%;
  font-family: "Noto Sans JP", Sans-Serif;
  padding: 5px 10px;
  background-color: #7ba81a;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.content .sub-menu {
  width: 70%;
  font-size: 100%;
  margin: 10px auto 30px;
  line-height: 30px;
  text-align: center;
}
.content .sub-menu a {
  color: #525252;
  font-weight: 600;
  letter-spacing: 0.09em;
  margin-right: 1.50em;
  display: inline-block;
}
.content .sub-menu.en a {
  letter-spacing: 0.04em;
}
.content .sub-menu .fa-solid {
  color: #36ac07;
  margin-right: 0.50em;
}
.content .section {
  width: 70%;
  font-size: 110%;
  margin: 10px auto;
  line-height: 30px;
  padding: 10px 15px;
  border-left: 9px solid #c7e4b7;
  border-right: 9px solid #c7e4b7;
  margin-bottom: 70px;
}
.content #more p {
  font-size: 90%;
  line-height: 2em;
}
.content .section.headwords {
  border-left: 9px solid #96c550;
  border-right: 9px solid #96c550;
}
.content .section.headword-list {
  border: 0;
  margin: 0 auto;
  padding: 10px 0;
  margin-bottom: 0px;
}
#tab-switcher {
  width: 70%;
  margin: 0 auto;
  height: calc(1em + 10px);
}
#tab-switcher span.tab {
  color: #333;
  line-height: 1em;
  letter-spacing: 0.05em;
  padding: 4px 15px;
  margin-right: 5px;
  background-color: #f1f1f1;
  border: 1px solid lightgray;
  cursor: pointer;
}
#tab-switcher span.tab.active {
  color: white;
  background-color: #7ba81a;
  border: 1px solid #7ba81a;
  cursor: default;
}
.content .section.headword {
  border: 0;
  margin: 0 auto;
  padding: 10px 13px;
  margin-bottom: 0px;
  border: 1px solid lightgray;
}
.content .section p {
  margin: 0;
  font-size: 14px;
  line-height: 2.2em;
  caret-color: black;
}
.content .section p.smaller {
  font-size: 13px;
  line-height: 1.8em;
}
#about .content .section p {
  line-height: 1.8em;
  caret-color: black;
}
#about .examples {
  margin: 10px 0;
}
#about .examples .example {
  font-size: 14px;
  line-height: 1.5em;
}
#about .note {
  margin: 5px 10px;
}
#about .note .title {
  font-size: 13px;
}
#about .note .subtitle {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}
#about .note p {
  font-size: 13px;
  margin-bottom: 3px;
}
#about .note table {
  margin-left: 0.50em;
}
#about .note table td {
  font-size: 13px;
  line-height: 1.80em;
}
#about .note table td:nth-child(1) {
  width: 1.50em;
}
#about .note .subsubtitle {
  margin-left: 1.00em;
  font-size: 13px;
  font-weight: 600;
  padding-top: 0;
}
#about .note .subsubtitle:nth-child(n + 2) {
  padding-top: 1.00em;
}
#about .note .part {
  margin-left: 2.00em;
}
#about .note .part .title {
  padding-top: 5px;
}
#about .note .part .title:nth-child(1) {
  padding-top: 0;
}
#about .note .part .example {
  font-size: 13px;
  line-height: 1.80em;
}
#about #syntactic_compound_verb_table {
  padding-left: 2.00em;
  font-size: 14px;
}
#about #syntactic_compound_verb_table tr.entry {
  line-height: 1.50em;
}
#about #syntactic_compound_verb_table tr.example {
  line-height: 1.70em;
}
#about #syntactic_compound_verb_table tr.entry td {
  font-weight: bold;
  vertical-align: bottom;
}
#about #syntactic_compound_verb_table tr.example td {
  font-size: 13px;
  padding-left:0.50em;
}
#about #syntactic_compound_verb_section {
  margin: 0.50em 0 0 2.50em;
  text-indent: -1.50em;
  padding-left: 1.50em
}
#about #syntactic_compound_verb_section p {
  font-size: 13px;
}
#about .section .title {
  display: inline;
  font-weight: 600;
}
#about .sento_kigo {
  color: #42A220;
  font-weight: 600;
  margin-right: 4px;
}
.fas.left {
  color: #42A220;
  margin-right: 0.2em;
}
.content .section#headword-attributes {
  margin-top: 30px;
  margin-bottom: 40px;
  padding: 0 10px;
}
.content .section#headword-attributes table tr {
  line-height: 1.8em;
}
.content .section#headword-attributes table td {
  font-size: 90%;
}
.content .section .category-wrapper {
  margin: 10px 0;
  padding: 5px 10px;
  border: 2px solid #9ec1a1;
}
.content .section .category-wrapper label {
  font-size: 95%;
  font-weight: 500;
}
.content .section .subsection {
  margin: 10px 0 5px;
  font-size: 14px;
  font-weight: 600;
}
.content .section ul li {
  margin-left: 1.5em;
  font-size: 13px;
}
.content .section.documents ul li {
  margin-left: 0;
}
.content h1 {
  text-align: center;
  color: #181818;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 10px;
}
h1 a {
  color: #36ac07;
}
#about h1 i.left {
  color: #36ac07;
}
h1.about::before {
  content: url("images/bullet.svg");
  width: 32px;
  position: relative;
  top: 4px;
  margin-right: 6px;
}
h1 i.right {
  font-size: 80%;
}
div.sub-menu a::before {
  content: url("images/bullet_small.svg");
  width: 32px;
  position: relative;
  top: 2px;
  margin-right: 4px;
}
.content #error {
  display: none;
  font-size: 13px;
  color: red;
}
.content #filter,
.content #nationality-filter,
.content #composition-type-filter {
  clear: both;
  display: block;
  border: 1px solid #36ac07;
  padding: 10px 15px;
  position: relative;
  top: -3px;
}
.content .select {
  border: 1px dotted rgb(65, 65, 65);
  padding: 1px 10px 5px;
  margin-top: 5px;
  line-height: 1.8em;
  font-size: 85%;
}
.content .select.headword {
  border: 3px solid #9ec1a1;
  margin-top: 10px;
  font-size: 100%;
}
.content .select .category {
  font-weight: 600;
  margin-right: 1em;
}
.content .select label,
.content .group label,
.content #results label {
  margin-right: 1.5em;
  letter-spacing: 0.05em;
  display: inline-block;
}
.content .select label.disabled {
  color: lightgray;
}
.content .select.new-line {
  padding-top: 3px;
}
.content .select.new-line label {
  display: block;
}
.content .group {
  border: 1px solid #c4c4c4;
  padding: 2px 10px;
  line-height: 1.8em;
  font-size: 90%;
}
.content #results {
  border: 1px solid #efefef;
  padding: 5px 10px 10px;
  line-height: 1.8em;
}
.content #results.composition {
  border-color: transparent;
}
.content #results .headword {
  color: #2c8e06;
  font-weight: 600;
  letter-spacing: 0.10em;
}
.content #results .reading {
  font-size: 100%;
  font-weight: 600;
  letter-spacing: 0.10em;
}
.content #results .jita {
  font-weight: 600;
}
.content #results .info {
  color: #36AC07;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #36AC07;
  padding: 2px 4px;
  margin-right: 0.50em;
}
.content #results .kaku {
  display: inline-block;
  margin-top: 5px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  background: #36AC07;
  margin-right: 0.30em;
  letter-spacing: 0.11em;
  padding: 2px 6px 3px;
  border-radius: 4px;
  opacity: 0.9;
}
.content #results .verb {
  display: inline-block;
  margin-top: 5px;
  color: #36AC07;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #36AC07;
  padding: 2px 6px 3px;
  border-radius: 4px;
}
.content .group.no-padding {
  padding: 0;
  margin-top: 20px;
}

.content .group.no-padding .headword-wrapper {
  padding: 5px 10px 8px;
}
.content .group.no-padding .group-header {
  background-color: #7ba81a;
  height: 2.3em;
}
.content .group.no-padding .group-header .category {
  color: white;
  font-weight: 400;
  margin-left: 5px;
  line-height: 2.3em;
}
.content .group .category {
  font-weight: 400;
  margin-right: 1em;
  letter-spacing: 0.05em;
}
.content .group span.item {
  display: inline-block;
}
.content .group span.numbering {
	font-weight: 600;
	margin-right: 0.50em;
}
/*.content .group .category:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0c8";
  margin-right: 0.3em;
  color: #7ba81a;
}*/
.content .group.no-padding .category:before {
  content: "";
}
.content .subgroup {
  border: 1px solid #c4c4c4;
  padding: 2px 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  line-height: 1.8em;
}
.content .group label.category,
.result-wrapper label.category {
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.content .group label.category:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0da";
  color: #36ac07;
  margin-right: 0.3em;
}
.content .group label.category:hover {
  border-bottom: 2px solid #36ac07;
}
.content .select input[type="checkbox"],
.content #results input[type="checkbox"] {
  vertical-align: bottom;
  margin-right: 4px;
  accent-color: #c7e4b7;
  finter: none;
}
.content .select input[type="checkbox"]:disabled {
  vertical-align: bottom;
  margin-right: 4px;
  accent-color: black;
  filter: none;
}
.content #tab-switcher span.tab-english {
  font-size: 100%;
}
.content .result-wrapper {
  width: 70%;
  margin: 10px auto;
}
#hit-count,
#total-count {
  color: #6d6d6d;
  text-align: right;
  font-size: 100%;
  line-height: 1em;
  margin: 10px 0;
  font-weight: 600;
}
.result-wrapper #total-count {
  font-size: 105%;
  margin-right: 12px;
  letter-spacing: 0.03em;
}
.result-wrapper .paging-control {
  color: #36ac07;
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  clear: both;
}
.paging-control .current-page,
.paging-control .total-pages {
  position: relative;
  top: -3px;
}
.paging-control .slash {
  margin: 0 3px;
  position: relative;
  top: -3px;
}
.paging-control .fa-solid {
  font-size: 26px;
  cursor: pointer;
}

#results {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
#results tr {
  border: solid 1px #9abe86;
  cursor: default;
}
#results.composition tr {
  cursor: default;
}
#results td {
  color: #262626;
  padding: 2px 5px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
#results.composition td {
  color: #262626;
  padding: 3px 5px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
#results td .misuse-label-list {
  height: 18px;
  position: relative;
  top: -21px;
}
#results td .misuse-label-list span {
  display: none;
}
#results td:hover .misuse-label-list span {
  display: inline-block;
}
#results .category {
  font-size: 90%;
  font-weight: normal;
  margin-left: 1em;
}
#list {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
#list tr {
  border-top: solid 1px #e0e0e0;
  border-bottom: solid 1px #e0e0e0;
  cursor: default;
}
#list td {
  color: #262626;
  padding: 3px 5px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.definition {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 40px;
}
.section .definition:last-child {
  margin-bottom: 0;
}
.section .definition:last-child .examples {
  padding-bottom: 0;
}
.definition rt {
  font-weight: 300;
  position: relative;
  top: -0.5em;
  transform: translateY(-0.5em);
}
.definition .level {
  margin-left: 1em;
  color: #8fc31f;
}
.definition .definition-number {
  padding: 2px 7px;
  color: white;
  font-weight: 600;
  background-color: #115da6;
  margin-right: 1em;
}
.definition .category {
  font-size: 95%;
  font-weight: 600;
  border: 1px solid gray;
  padding: 14px 8px 3px;
}
.definition .category .top-category {
  cursor: pointer;
}
.definition .category .top-category:hover {
  border-bottom: 4px solid #6da611;
}
.definition .usage {
  margin-top: 15px;
  line-height: 2.8em;
  letter-spacing: 0.03em;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px dotted #7b7b7b;
}
.definition .additional-info {
  border: 1px solid #c6c6c6;
  padding: 10px 15px;
  padding-bottom: 10px;
}
.definition .small {
  font-size: 90%;
  line-height: 2.8em;
}
.definition .label {
  padding: 2px 10px;
  color: white;
  font-weight: 300;
  background-color: #6da611;
  margin-right: 1em;
}
.definition .examples {
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.examples .label {
  background-color: #115da6;
}
.connection-type {
  margin-bottom: 10px;
}
.examples .connection-type .label {
  font-size: 13px;
  font-weight: 400;
  background-color: #6da611;
  padding: 3px 10px;
}
.examples .example {
  font-size: 100%;
  letter-spacing: 0.03em;
  margin-left: 1em;
  line-height: 2.8em;
  margin-bottom: 0.3em;
  padding-left: 1.3em;
  text-indent: -1em;
}
.example .bullet {
  background-color: #6da611;
  width: 0.5em;
  height: 0.5em;
  display: inline-block;
  border-radius: 50%;
  position: relative;
  top: -0.1em;
  margin-right: 0.3em;
}
#header {
  height: 80px;
  text-align: center;
}
.title {
  width: 100%;
  padding-top: 23px;
}
.title img {
  width: auto;
}
.title span {
  /*display: block;*/
}

i.fa-solid.left,
i.fa-regular.left,
i.far.left {
  margin-right: 0.3em;
}
i.fa-solid.right,
i.fa-regular.right {
  margin-left: 0.2em;
  cursor: pointer;
}

h1 i.fa-solid.left,
h1 i.fa-regular.left,
h1 i.far.left {
  margin-right: 0.5em;
}
h1 i.fa-solid.right,
h1 i.fa-regular.right {
  margin-left: 0.5em;
  cursor: pointer;
}

span.link {
  color: black;
  font-weight: 600;
  border-bottom: 2px dotted gray;
}
span.link:hover {
  border-bottom: 2px solid #7ba81a;
}
.link-button {
  display: block;
  text-align: center;
  font-size: 13px;
  width: 160px;
  height: 30px;
  line-height: 30px;
  color: #fff;
  background-color: #8ac43c;
  cursor: pointer;
}
.big-button-wrapper {
  width: 70%;
  padding: 0 0 15px 0;
  text-align: center;
}
.big-button {
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.05em;
  background-color: #36ac07;
  padding: 8px 20px;
  color: white;
  text-align: center;
  cursor: pointer;
  line-height: 32px;
  margin-right: 16px;
}
.composition-id {
  display: inline-block;
  color: #333;
  transform: scale(0.85, 1);
  line-height: 1.8em;
  font-size: 100%;
  font-weight: 400;
  padding: 0px 4px;
}
.composition-id-label {
  display: inline-block;
  color: #36ac07;
  transform: scale(0.85, 1);
  line-height: 1.6em;
  font-size: 85%;
  font-weight: 600;
  border: 1px solid #36ac07;
  padding: 0px 4px;
}
td .numbering {
  position: relative;
  top: -15px;
  font-size: 80%;
  font-weight: 600;
  height: 1.00em;
  left: -11px;
}
td .composition-numbering {
  position: relative;
  top: 1px;
  font-size: 80%;
  font-weight: 600;
  height: 1em;
}
.number {
  font-weight: 600;
  padding: 0 5px;
}
.group-button {
  font-size: 85%;
  color: #349c34;
  padding: 3px 15px;
  margin-right: 0;
  cursor: pointer;
  border: 1px solid #349c34;
}
.group-button:nth-child(n+2) {
  border-left: none;
}
.group-button.active {
  color: white;
  background-color: #349c34;
}
div.ruby {
  display: inline-block;
  padding: 0 0 2px 6px;
  border: 1px solid #e2e2e2;
  line-height: 1.50em;
}
div.ruby.active {
  border: 1px solid #e0b0b0;
}
div.ruby[data-ruby] {
  position:relative;
}
div.ruby[data-ruby]::before {
  content: attr(data-ruby);
  position:absolute;
  left: 0em;
  top: -1.80em;
  text-align:left;
  font-size:.7em;
  font-weight: bold;
  color: black;
  border-bottom: 0;
}
.annotation {
  margin-top: -2px;
  display: inline-block;
  transform: scale(0.9, 1);
  font-size: 90%;
  padding: 0;
  margin-left: 0.3em;
  margin-right: 0.3em;
}
div.ruby .text {
  font-weight: 600;
}
div.ruby.active .text {
  color:#d21e1e;
}
div.ruby.active .annotation {
  color:#d21e1e;
}
.misuse-label-list {
  float:right;
  position:relative;
  top:-23px;
}

input[type="checkbox"] {
  margin-top: -1px;
  vertical-align: middle;
  height: 100%;
}

#footer {
  position: absolute;
  font-size: 100%;
  bottom: 0;
  width: 100%;
  height: 3em;
  display: flex;
  justify-content: center;
}
#alternative-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 4em;
  display: none;
  .credit {
    margin-top: 3px;
    font-size: 80%;
  }
}
#alternative-footer div {
  text-align: center;
}
#credit-title {
  font-weight: 600;
  padding-right: 10px;
}
#copyright {
  white-space: pre;
}
#copyright:before {
  content: "";
}
@media only screen and (min-width: 960px) {
  #title-image {
    width: auto;
  }

  nav#main-menu {
    padding: 0;
    clear: both;
    overflow: hidden;
    position: relative;
    background-color: #c7e4b7;
    /*border-top: 3px dotted #36ac07;
    border-bottom: 3px dotted #36ac07;*/
  }

  nav#main-menu ul {
    padding-left: 0;
    margin: auto;
    width: 687px;
  }

  #about nav#main-menu ul {
    margin: 5px auto;
    width: 689px;
  }

  nav#main-menu ul li {
    float: left;
    margin: 10px 0 10px 10px;
    position: relative;
    cursor: pointer;
  }

  #about nav#main-menu ul li {
    margin: 5px 0 5px 10px;
  }

  nav#main-menu ul li.active .right {
    display: none;
  }

  nav#menu-items {
    height: 48px;
  }

  nav#main-menu li.last {
    border-right: 1px solid #ebebeb;
  }

  nav#main-menu ul li {
    display: block;
    text-align: center;
    font-size: 13px;
    width: 149px;
    line-height: 26px;
    color: #36ac07;
    background-color: white;
    border: 1px solid #36ac07;
  }
  #about nav#main-menu ul li {
    width: 149px;
  }

  nav#main-menu ul li a span,
  nav#main-menu ul li a strong {
    display: block;
  }

  nav#main-menu ul li a span {
    color: #006699;
    font-size: 10px;
  }

  nav div#menu-items {
    display: block !important;
    float: left;
    width: 100%;
  }

  a#menu {
    display: none;
  }

  nav#main-menu li.active {
    background-color: #349C34;
    color: white;
    border: 1px solid #349C34;
  }

  #mainBanner {
    margin-left: 15px;
  }
  #subpage #mainBanner {
    margin: 15px auto;
  }

  #wrapper,
  .inner {
    width: 960px;
    padding: 0;
  }

  #wrapper {
    padding-bottom: 20px;
  }

  #main {
    float: right;
    width: 717px;
    padding-right: 15px;
  }

  #sidebar {
    float: left;
    width: 195px;
    padding: 15px 0 0 15px;
    overflow: hidden;
  }

  #sidebar article {
    padding: 7px;
    margin-bottom: 20px;
    border: 1px solid #ebebeb;
    overflow: hidden;
  }

  .gridWrapper {
    width: 960px;
    margin: 0 0 0 -10px;
  }

  #gallery article {
    padding: 10px 0 10px 10px;
  }

  .grid {
    float: left;
    width: 300px;
    margin-left: 20px;
  }

  #subpage .grid {
    width: auto;
  }

  #gallery .grid {
    width: auto;
    margin: 10px 0 2px 10px;
  }
}

@media only screen and (max-width: 959px) {
  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
  }

  #title-image {
    width: auto;
  }
  #language-setting {
    display:block;
    margin: 0 auto;
    width: 69%;
    height: 35px;
    text-align: right;
    cursor: pointer;
  }
  nav#main-menu {
    clear: both;
    margin: 0 15%;
    padding: 0;
    background-color: #fff;
    border: 3px solid #36ac07;
  }

  nav#main-menu a.menu {
    width: 100%;
    display: block;
    height: 36px;
    font-size: 14px;
    line-height: 36px;
    font-weight: bold;
    text-align: left;
    color: #2e5807;
    background-color: #36ac07;
  }

  nav#main-menu a#menu span {
    padding-left: 10px;
    color: white;
  }
  nav#main-menu a#menu:hover {
    cursor: pointer;
  }

  nav #menu-items {
    display: block;
    width: 100%;
    position: relative;
    right: 0;
    top: 0;
    z-index: 1;
  }

  nav#main-menu ul {
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
  }
  nav#main-menu ul li {
    float: none;
    clear: both;
    width: 100%;
    line-height: 1em;
    padding: 10px 10px;
    color: #36ac07;
    font-weight: 600;
    border-bottom: 1px dotted #88d268;
    letter-spacing: 0.05em;
  }

  nav#main-menu ul li a,
  nav#main-menu ul li.current-menu-item li a {
    display: block;
    font-size: 14px;
    padding: 15px 10px 15px 1.5em;
    text-align: left;
  }

  nav#main-menu ul li a span {
    padding-left: 10px;
  }

  nav#main-menu ul li.active a {
    background-color: #c3e2fc;
  }

  nav div#menu-items {
    float: none;
  }

  #subpage #mainBanner {
    max-width: 720px;
  }

  #sidebar article {
    padding: 7px 8px;
  }

  ul.footnav li {
    float: none;
    display: inline-block;
  }

  .grid {
    width: 32%;
    margin: 10px 0 0 1%;
  }

  #gallery .grid {
    float: left;
    width: 31%;
    margin: 0 0 0 1%;
  }
}

@media only screen and (max-width: 800px) {
  #table-villages-five-columns,
  #table-word-structure-five-columns {
    display: none;
  }

  #table-villages-three-columns,
  #table-word-structure-three-columns {
    display: block;
  }

  .content #index-buttons {
    width:240px;
    display:block;
    margin: 0 auto;
  }

}

@media only screen and (max-width: 640px) {
  #header {
    height: 80px;
  }

  #header h1,
  .logo,
  .info {
    text-align: center;
  }

  nav#main-menu {
    margin: 0 7.5%;
  }

  #language-setting {
    width: 83%;
  }

  .content .section {
    width: 85%;
  }

  .content .result-wrapper {
    width: 85%;
    margin: 10px auto;
  }
  #tab-switcher {
    width: 85%;
  }

  #table-villages-five-columns,
  #table-word-structure-five-columns {
    display: none;
  }

  #table-villages-three-columns,
  #table-word-structure-three-columns {
    display: block;
  }

  #footer {
    font-size: 100%;
  }

  .logo,
  .info {
    clear: both;
    width: 100%;
    float: none;
  }

  .logo p {
    float: none;
    display: block;
  }
  .logo img {
    float: none;
    padding: 0;
  }

  .box img {
    max-width: 180px;
    float: left;
    margin-right: 5px;
  }

  .box h3 {
    padding-top: 0;
  }

  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 0 auto 10px;
  }

  #gallery .grid {
    float: left;
  }
  .link-button {
    display: none;
  }
}

@media only screen and (max-width: 572px) {
  .content {
    margin-bottom: 70px;
  }
  #footer {
    display: none;
  }
  #alternative-footer {
    display: block;
  }
}

@media only screen and (max-width: 498px) {
  #title-image {
    width: auto;
  }
  .grid {
    width: 100%;
  }
  .box img {
    max-width: 100px;
  }
  #mainBanner h2,
  #mainBanner p {
    font-size: 80%;
  }

  .content #tab-switcher span.tab-english {
    display: none;
  }
}

@media only screen and (max-width: 380px) {
  #title-image {
    width: 65%;
  }
}