@charset "utf-8";
html,
body,
div,
span,
h1,
h2,
p,
a,
var,
ul,
li,
table.table,
tbody,
tr,
td {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}
ul {
  list-style: none;
}
table.table {
  border-collapse: separate;
  border-spacing: 0;
}
td {
  font-weight: normal;
  text-align: left;
}
a img {
  border: 0;
}
footer,
header,
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;
}
a {
  color: #2d7a2d;
  text-decoration: none;
}

nav#main-menu a {
  color: white;
}

nav#main-menu ul li a {
  color: #2c2c2c;
  display: block;
  width: 100%;
  padding: 0;
}

a.link {
  color: black;
  border-bottom: 3px dotted #2d7a2d;
}
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;
}
table.about {
  font-size: 14px;
  line-height: 1.8em;
  margin: 5px 0;
}
.content {
  margin: 15px 0 20px;
}
.content h1.search-page-title {
  text-align: center;
  color: #181818;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 10px;
  margin-bottom: 10px;
}
.content button {
  color: white;
  width: 70px;
  font-size: 90%;
  font-family: "Noto Sans JP", Sans-Serif;
  font-weight: 400;
  padding: 4px 10px;
  background-color: #2d7a2d;
  border: 1px solid #818181;
  cursor: pointer;
  margin-left: 6px;
}
.content button.index {
  color: #202020;
  font-weight: 600;
  width: 35px;
  background-color: white;
}
.content button.active {
  color: white;
  background-color: #2d7a2d;
}
.content button.disabled {
  color: #dbdbdb;
  cursor: default;
  border: 1px solid #dbdbdb;
}
.content .section {
  width: 70%;
  font-size: 110%;
  margin: 10px auto;
  line-height: 30px;
  padding: 10px 15px;
  border-left: 9px solid #e2e2e2;
  border-right: 9px solid #e2e2e2;
  margin-bottom: 70px;
}
.content .section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8em;
  caret-color: black;
}
.content h1 {
  text-align: center;
  color: #181818;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 10px;
}
.content .result-wrapper {
  width: 70%;
  margin: 10px auto 50px;
}
#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;
}
#results {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
#results tr {
  border: solid 1px #c9c9c9;
  cursor: pointer;
}
#results td {
  color: #262626;
  padding: 4px 5px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
#header {
  /* height: 80px; */
  text-align: center;
}
.title {
  width: 100%;
  padding-top: 28px;
}
.title img {
  width: auto;
}
i.fa-solid.left {
  margin-right: 0.30em;
}
i.fa-solid.right {
  margin-left: 0.2em;
  cursor: pointer;
}
h1 i.fa-solid.left {
  margin-right: 0.5em;
}
h1 i.fa-solid.right {
  margin-left: 0.5em;
  cursor: pointer;
}

/* グリーン系配色のカスタマイズ */
h1 a {
  color: #2d7a2d;
}
#about h1 i.left {
  color: #2d7a2d;
}
i.fas.left,
.fas.left {
  margin-right: 0.30em;
}

/* 格助詞カードのスタイル */
.particle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 92%;
  max-width: 730px;
  margin: 0 auto;
  padding: 30px 0;
}

.particle-card {
  display: block;
  background: white;
  border: 3px solid #a6d0a6;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.particle-card:hover {
  background-color: #e7fae7;
}

.particle-card:focus {
  outline: 2px solid #2d7a2d;
  outline-offset: 2px;
}

.particle-card.disabled {
  background: #f5f5f5;
  border: 3px solid #d8d8d8;
  cursor: not-allowed;
  opacity: 0.6;
}

.particle-card.disabled:hover {
  background: #f5f5f5;
}

.particle-card.disabled .particle-name {
  color: #999;
}

.particle-card.disabled .particle-type {
  background-color: #999;
}

.particle-name {
  font-size: 20px;
  font-weight: 700;
  color: #176117;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.particle-type {
  display: inline-block;
  background-color: #2d7a2d;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  letter-spacing: 0.10em;
  border-radius: 12px;
}

#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;
}
@media only screen and (min-width: 960px) {
  #title-image {
    width: auto;
  }
  nav#main-menu {
    padding: 0;
    clear: both;
    overflow: hidden;
    position: relative;
    background-color: #cae4ca;
  }
  nav#main-menu ul {
    padding-left: 0;
    margin: auto;
    width: 660px;
  }
  #about nav#main-menu ul {
    margin: auto;
    width: 660px;
  }
  nav#main-menu ul li {
    float: left;
    margin: 10px 0 10px 10px;
    position: relative;
    cursor: pointer;
  }
  nav#main-menu ul li.disabled {
    background-color: #d4e8d4;
    border: 1px solid #d4e8d4;
    color: #7a9e7a;
    cursor: default;
  }
  nav#main-menu ul li.disabled a {
    cursor: default;
    pointer-events: none;
  }
  nav#main-menu ul li.active .right {
    display: none;
  }
  nav#menu-items {
    height: 48px;
  }
  nav#main-menu ul li {
    display: block;
    text-align: center;
    font-size: 12px;
    width: 122px;
    white-space: nowrap;
    line-height: 26px;
    color: #323232;
    background-color: white;
    border: 1px solid #f2f2f2;
  }
  #about nav#main-menu ul li {
    width: 122px;
  }
  nav#main-menu ul li a {
    display: block;
    line-height: 26px;
    width: 100%;
    padding: 0;
  }
  nav#main-menu ul li a span {
    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: #2d7a2d;
    color: white;
    border: 1px solid #2d7a2d;
  }
  nav#main-menu li.active a {
    color: white;
  }
  .content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .content h1.search-page-title {
    flex-shrink: 0;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #wrapper {
    width: 960px;
    padding: 0;
  }
  #wrapper {
    padding-bottom: 20px;
  }
}
@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;
  }
  .title {
    padding-bottom: 28px;
  }
  nav#main-menu {
    clear: both;
    margin: 0 15%;
    padding: 0;
    background-color: white;
    border: 3px solid #dbdbdb;
  }
  /* ルビ・ダークモードのボタン（JSで生成）の右端をメニューの右端に揃える */
  div#display-options {
    padding-right: 15%;
  }
  nav#main-menu a.menu {
    width: 100%;
    display: block;
    height: 36px;
    font-size: 14px;
    line-height: 36px;
    font-weight: bold;
    text-align: left;
    color: #4b4b4b;
    background-color: #dbdbdb;
  }
  nav#main-menu a#menu span {
    padding-left: 10px;
    color: #4b4b4b;
  }
  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: 0;
    color: #2c2c2c;
    font-weight: 600;
    border-bottom: 1px dotted #9E9E9E;
    letter-spacing: 0.05em;
  }
  nav#main-menu ul li a {
    display: block;
    font-size: 14px;
    padding: 10px 10px;
    text-align: left;
    width: 100%;
  }
  nav#main-menu ul li a span {
    padding-left: 10px;
  }
  nav#main-menu ul li.active a {
    background-color: #5c9f5c;
    color: #ffffff;
  }
  nav div#menu-items {
    float: none;
  }
  
  /* 画面幅に応じて1行のボタン数を変える。幅はメニュー（左右 margin 15%）に揃える */
  .content h1.search-page-title {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  /* #footer（position: absolute、高さ 3em）と重ならないよう下に余白を取る */
  .content {
    margin-bottom: 56px;
  }

  .particle-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    width: 70%;
    max-width: none;
  }
}
@media only screen and (max-width: 640px) {
  #header {
    height: 80px;
  }
  #header h1 {
    text-align: center;
  }
  nav#main-menu {
    margin: 0 7.5%;
  }
  div#display-options {
    padding-right: 7.5%;
  }
  .particle-grid {
    width: 85%;
  }
  .content .section {
    width: 85%;
  }
  .content .result-wrapper {
    width: 85%;
    margin: 10px auto;
  }
  #footer {
    font-size: 100%;
  }
}
@media only screen and (max-width: 572px) {
  .content {
    margin-bottom: 70px;
  }
  #footer {
    display: none;
  }
  #alternative-footer {
    display: block;
  }
}

/* ルビの表示切替。html.no-ruby のとき振り仮名（rt/rp）を隠す */
html.no-ruby rt,
html.no-ruby rp {
  display: none;
}
