@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: #333;
  text-decoration: none;
}

a:active,
a:focus {
  outline: 0;
}

#about .section a {
  padding-bottom: 1px;
  border-bottom: 2px solid gray;
  text-decoration: none;
}

#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 {
  font-size: 100%;
  font-family: "Noto Sans JP", sans-serif;
  margin: 10px 2px 5px 0;
  padding: 5px;
  border: 2px solid #8ab8de;
  caret-color: #1b1b1b;
}
.content input[type="radio"],
.content input[type="checkbox"] {
  accent-color: #24719e; 
}

.content button {
  color: white;
  font-size: 95%;
  font-family: "Noto Sans JP", Sans-Serif;
  padding: 6px 14px;
  background-color: #24719e;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.content button:disabled {
  background-color: #a5a5a5;
  color: white;
  cursor: not-allowed;
}
.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: 100%;
  margin: 10px auto;
  line-height: 30px;
  padding: 10px 15px;
  border-left: 9px solid #c1d0d6;
  border-right: 9px solid #c1d0d6;
  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.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.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: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.content h3 {
  text-align: center;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.content h4 {
  font-size: 120%;
  margin: 0 0 10px;
}

.content .category-select {
  margin-top: 0px;
  padding: 0 12px;
  line-height: 1.2em;
  font-size: 95%;
}
.content .category-select label, .content .group label, .content #results label {
  margin-right: 1.5em;
  letter-spacing: 0.05em;
  display: inline-block;
}
h1 a {
  color: #24719e;
}
#about h1 i.left {
  color: #24719e;
}
h1 i.right {
  font-size: 80%;
}

.content #meta-data a {
  padding-bottom: 1px;
  border-bottom: 2px solid gray;
  text-decoration: none;
  word-break: break-all;
}

#results #hit-count {
  color: #6d6d6d;
  text-align: right;
  margin-bottom: 12px;
  font-weight: 600;
}

.results-wrapper {
  height: 50px;
  float: right;
}

div#display-options {
  float: right;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  align-items: center;
  border: 1px solid #bebebe;
  padding: 1px 15px 2px 5px;
}

.checkbox-group {
  display: inline-flex; 
  align-items: center;
  margin-right: 10px;
}

.checkbox-group label {
  position: relative;
  top: 2px;
  margin-left: 3px;
  line-height: 30px;
}

div#display-options input {
  margin-left: 1.00em;
}
div#display-options input:first-child {
  margin-left: 0.50em;
}
.results-wrapper #display-options label {
  margin-right: 0;
}
#results span.highlight {
  color: #ff0000;
  font-weight: 600;
}

table.interlinear {
  width: 100%;
  clear: both;
  border-collapse: collapse;
  td {
    font-size: 14px;
    font-weight: 400;
    border: 1px solid lightgray;
    padding: 5px 10px;
    line-height: 22px;
  }
  tr.items {
    display: table-row;
  }
  tr.items td {
    display: table-cell;
  }
  tr.items.hidden {
    height: 0;
  }
  tr.items.hidden td {
    display: none;
  }
  div.item {
    float:left;
    margin-right:2.50em;
    margin-bottom:0.50em;
  }
  div.item .text, 
  div.item .morpheme,
  div.item .gloss {
    display: block;
  }
  div.item .text.hidden, 
  div.item .morpheme.hidden,
  div.item .gloss.hidden {
    display: none;
  }
  tr.translation,
  tr.note {
    height: 2.00em;
  }
  tr.translation td,
  tr.note td {
    display: table-cell;
  }
  tr.note td {
    font-size: 13px;
  }
  tr.note td .icon:before {
    content: '注';
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 0px 3px 1px;
    background-color: #24719e;
    margin-right: 5px;
  }
  tr.translation.hidden,
  tr.note.hidden {
    height: 0em;
  }
  tr.translation.hidden td,
  tr.note.hidden td {
    display: none;
  }
  i.fa-solid.right,
  i.far.right,
  i.fas.right {
    padding-left: 0.50em;
    cursor: pointer;
  }
  td.id {
    font-size: 14px;
    font-weight: 600;
    border-left: 9px solid #eaeaea;
  }
  td.id.author {
    font-weight: 600;
    border-left: 9px solid #eaeaea;
  }
  td.id.informant {
    font-weight: 600;
    border-left: 9px solid #80d4de;
  }
  td.id.informant.informant1 {
    font-weight: 600;
    border-left: 9px solid #80de9b;
  }
}

.space-adjuster {
  display: inline;
}
.space-adjuster::before {
  content: '\200A';
}

img.person_comment {
  position: relative;
  top: 6px;
  width:40px;
  height: auto;
  margin-right: 12px;
}

.content #error {
  display: none;
  font-size: 13px;
  color: red;
}
.content .group label {
  margin-right: 1.5em;
  letter-spacing: 0.05em;
  display: inline-block;
}
.content .group {
  border: 2px solid #b4c4ce;
  background-image: linear-gradient(-45deg, #b4c4ce 8px, transparent 0);
  padding: 10px 10px 0 10px;
  line-height: 1.8em;
  margin-bottom: 30px;
}
.content .group .dialect {
  font-size: 110%;
  letter-spacing: 0.05em;
  font-weight: bold;
  padding-bottom: 7px;
  border-bottom: 2px solid #b4c4ce;
}
.content .group .dialect:before {
  content: url('../image/comment.svg'); 
  display: inline-block;
  position: relative;
  top: 4px;
  width: 20px; /* 必要に応じてサイズを調整 */
  height: 22px;
  margin-right: 8px;
}
.content .discourse {
  margin-bottom: 0;
}
.content .discourse ul {
  padding-left: 3px;
}
.content .discourse ul li {
  font-size: 105%;
  padding-bottom: 8px;
}
.content .discourse ul li:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../image/bullet.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
}
.content .discourse ul li a:hover {
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 4px solid #6ea6c7;
}
.content .group label.headword,
.result-wapper label.headword {
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.content .group label.headword:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0da";
  margin-right: 0.3em;
}
.content .group label.headword:hover {
  border-bottom: 3px solid #7ba81a;
}
.content .category-select input[type="checkbox"] {
  vertical-align: bottom;
  margin-right: 4px;
  filter: sepia(90%) brightness(80%) hue-rotate(130deg) saturate(70%)
    contrast(300%);
}
.content .category-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;
}
.content .fa-volume-high {
  cursor: pointer;
}


.map-icon {
  width: 13px;
  position: relative;
  top: 3px;
  margin-left:6px;
  cursor: pointer; 
}

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

.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: 21px;
}
.title img {
  width: auto;
}
.title span {
  display: block;
}

i.far.left,
i.fas.left,
i.fa-solid.left,
i.fa-regular.left {
  margin-right: 0.5em;
}
i.far.right,
i.fas.right,
i.fa-solid.right,
i.fa-regular.right {
  margin-left: 0.5em;
  cursor: pointer;
}
i.fa-solid.disabled {
  color: lightgray;
}

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: #24719e;
  padding: 10px 30px;
  color: white;
  text-align: center;
  cursor: pointer;
  line-height: 66px;
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3em;
  display: flex;
  justify-content: center;
}
#alternative-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 4em;
  display: none;
}
#alternative-footer div {
  text-align: center;
}
#credit-title {
  font-weight: 600;
  padding-right: 10px;
}
#copyright {
  white-space: pre;
}
#copyright:before {
  content: "";
}
.sound-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 13px;
}
.sound-info-table tr.divider {
  height: 1.5em;
}
.sound-info-table td {
  font-size: 100%;
  padding: 4px 0.5em;
  border: 1px solid lightgray;
}
.sound-info-table td:nth-child(1) {
  font-weight: 600;
  width: 260px;
  border-left-width: 0;
}
.sound-info-table td:nth-child(2) {
  border-right-width: 0;
  padding-left: 1em;
}
@media only screen and (min-width: 960px) {
  #title-image {
    width: auto;
  }

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

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

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

  #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: 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: 160px;
    line-height: 28px;
    color: #fff;
    background-color: #24719e;
  }
  #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 {
    background-color: #55afba;
  }

  #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: auto;
  }
  nav#main-menu {
    clear: both;
    margin: 0 15%;
    padding: 0;
    background-color: #fff;
    border: 3px solid #0077b3;
  }

  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: #0077b3;
  }

  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: #333;
    font-weight: 600;
    border-bottom: 1px dotted#0077b3;
    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;
  }
}

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

  #title-image {
    width: 65%;
  }

  input[type="text"] {
    width: 100%;
  }

  .content .category-select {
    margin-top: 15px;
    padding-left: 0;
  }
  .content .category-select label {
    display: block;
  }

  #searchButton {
    margin-top: 6px;
    margin-left: 0;
  }

  #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) {
  .grid {
    width: 100%;
  }
  .box img {
    max-width: 100px;
  }
  #title-image {
    width: 85%;
  }
  #mainBanner h2,
  #mainBanner p {
    font-size: 80%;
  }

  .results-wrapper {
    height: auto;
    width: 100%;
  }
  
  .results-wrapper #display-options {
    float: right;
    width: 50%;
    flex-direction: row;
    padding: 10px 5px;
    margin-bottom: 20px;
  }

  .checkbox-group {
    width: 100%;
  }

  .checkbox-group input {
    margin: 0 10px;
  }

  .checkbox-group label {
    line-height: 20px;
  }
  .content #tab-switcher span.tab-english {
    display: none;
  }
}
