@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: transparent;
}

#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: #fff;
  text-decoration: none;
}
a:active,
a:focus {
  outline: 0;
}

#wrapper {
  margin: 0 auto;
  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%;
}

.content {
  margin: 30px 0 35px;
}
.content input[type="text"],
.content input[type="email"] {
  width: 260px;
}
.content textarea {
  width: 65%;
}
.content input,
.content textarea {
  caret-color:rgb(68, 68, 68);
  font-size: 100%;
  font-family: "Noto Sans JP", sans-serif;
  margin: 10px 10px 5px 0;
  padding: 5px;
  border: 2px solid #bee0fc;
}
input::placeholder,
textarea::placeholder {
  font-size: 95%;
  font-weight: 400;
  opacity: 0.8;
  color: gray;
}
.content button {
  color: white;
  font-size: 100%;
  font-weight: 400;
  font-family: "Noto Sans JP", Sans-Serif;
  padding: 5px 20px 6px;
  background-color: #008ead;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.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 .section {
  width: 70%;
  font-size: 110%;
  margin: 10px auto;
  line-height: 30px;
  padding: 10px 15px;
  border-left: 9px solid #a8e7f4;
  border-right: 9px solid #a8e7f4;
  margin-bottom: 30px;
}
.content .section.no-border {
  border: 0;
}
.content .section.form {
  border: 1px solid #d9eeff;
  background-color: #f9feff;
}
.content .section.form label {
  font-size: 95%;
  font-weight: 600;
}
.content .section.form label.fixed-width {
  display: inline-block;
  text-align: left;
  width: 10.00em;
}
.content textarea {
  resize: none;
}
.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;
}
#about .content .section p {
  line-height: 1.8em;
  caret-color: black;
}
.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: 15px 0 5px;
  font-size: 14px;
}
.content .section .subsection:before {
  font-family: "FontAwesome";
  content: "\f1b2";
  font-weight: 400;
  margin-right: 0.5em;
  color: #0085ec;
  display: inline-block;
}
.content .section ul li {
  margin-left: 1.5em;
  font-size: 13px;
}
.content .section.documents ul li {
  margin-left: 0;
}
.content .subsection + p {
  font-size: 13px;
  margin-left: 1.5em;
  line-height: 1.8em;
}
.content h1 {
  text-align: center;
  color: #080808;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
h1 a {
  color: #54a017;
}
#about h1 i.left {
  color: #90c68e;
}
h1 i.right {
  font-size: 80%;
}

.section table {
  font-size: 14px;
  width: 100%;
}
.section table.business-details td,
.section table.clients td {
  padding-bottom: 15px;
}
.section table.business-details td:nth-child(1),
.section table.clients td:nth-child(1) {
  font-weight: 600;
  width: 120px;
  vertical-align: top;
}
.section table.business-details td:nth-child(1) span,
.section table.clients td:nth-child(1) span {
  padding-bottom: 3px;
  border-bottom: 4px solid #A8E7F4;
}
.section table.clients span.client {
  margin-right: 1.00em;
  display: inline-block;
}

.section div.previous-work-title {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 3px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.section div.previous-work-title:first-child {
  margin-top: 0;
}
.section div.previous-work-title span {
  border-bottom: 4px solid #A8E7F4;
}
.section div.work {
  margin-left: 1.00em;
  padding: 9px 0;
  line-height: 17px;
}
.section div.work .fa-arrow-up-right-from-square {
  color: #e2e2e2;
}
.section div.work .fa-arrow-up-right-from-square:hover {
  color: #00B5DA;
}
.section div.work span.tool {
  font-size: 90%;
  font-weight: 600;
  margin-right: 1.00em;
  display: inline-block;
}
.section div.work span.type {
  font-weight: 600;
  color: rgb(68, 68, 68);
  font-size: 75%;
  border: 1px solid gray;
  padding: 0 7px 1px;
  border-radius: 6px;
  margin-right: 0.30em;
  display: inline-block;
}

.content #tab-switcher span.tab-english {
  font-size: 100%;
}
.content .result-wrapper {
  width: 70%;
  margin: 10px auto;
}
#hit-count {
  color: #6d6d6d;
  text-align: right;
  font-size: 90%;
  line-height: 1em;
  margin: 10px 0;
  font-weight: 600;
}
.result-wrapper .paging-control {
  color: #115da6;
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}
.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 #c3e2fc;
  cursor: pointer;
}
#results td {
  color: #115da6;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.06em;
}
#results td:hover {
  background-color: #f5faff;
}
#results .category {
  font-size: 90%;
  font-weight: normal;
  margin-left: 1em;
}
.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: 70px;
  text-align: left;
  padding-left: 20px;
}
.title {
  width: 100%;
  padding-top: 21px;
}
.title img {
  width: auto;
}
.title span {
  display: block;
}

i.fa-solid.left,
i.fa-regular.left {
  margin-right: 0.3em;
}
i.fa-solid.right,
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 {
  padding: 0 0 70px;
  text-align: center;
}
.big-button {
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.05em;
  background-color: #7ba81a;
  padding: 10px 30px;
  color: white;
  text-align: center;
  cursor: pointer;
  line-height: 66px;
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1em;
  display: flex;
  justify-content: center;
  position: relative;
}
.footer-wrap {
  padding: 0 10px;
  justify-content: space-between;
  position: relative;
}
.footer-wrap:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  /*border-top: 1px solid black;*/
  background: black;
  width: 100%;
  transform: translateY(-50%);
}
#credit-title {
  font-weight: 600;
  padding-right: 10px;
}
#copyright {
  white-space: pre;
}
#copyright:before {
  content: "";
}
.error {
  font-size: 13px;
  font-weight: 400;
  color: rgb(230, 3, 3);
}
.message {
  font-size: 13px;
  font-weight: 400;
}
/*#inquiry-form input:-webkit-autofill {
  -webkit-text-fill-color: black !important;
  box-shadow: 0 0 0 1000px white !important;
}*/
.fas.left {
  margin-right: 0.30em;
}

@media only screen and (min-width: 960px) {
  #title-image {
    width: 150px;
    position: relative;
    top: -10px;
    left: -20px;
  }

  nav#main-menu {
    padding: 0;
    clear: both;
    overflow: hidden;
    position: relative;
    background-color: white;
    border-top: 1px solid #c4c4c4;
    border-bottom: 1px solid #c4c4c4;
  }

  #about nav#main-menu {
    padding-bottom: 5px;
  }

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

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

  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: 40px;
  }

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

  nav#main-menu ul li {
    display: block;
    text-align: center;
    font-size: 13px;
    width: 160px;
    line-height: 24px;
    color: black;
    background-color: white;
  }
  #about nav#main-menu ul li {
    width: 180px;
  }

  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 {
    border: 1px solid rgb(41, 41, 41);
  }

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

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

  #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: 150px;
    position: relative;
    top: -16px;
    left: -20px;
  }
  nav#main-menu {
    clear: both;
    margin: 0 15%;
    padding: 0;
    background-color: #fff;
    border: 3px solid #17a9cb;
  }

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

  nav#main-menu a#menu span {
    padding-left: 10px;
  }
  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: #606060;
    font-weight: 600;
    border-bottom: 1px dotted #a8e7f4;
    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%;
  }

  .content textarea {
    width: 260px;
  }
}

@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;
  }
}

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

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

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

  .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) {
  .section div.work span.type {
    margin-top: 10px !important;
  }

  .grid {
    width: 100%;
  }
  .box img {
    max-width: 100px;
  }
  #mainBanner h2,
  #mainBanner p {
    font-size: 80%;
  }

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

}

