@font-face {
  font-family: "Emblem";
  src: url("font/Emblem-Regular-COLRv1.otf") format('opentype');
  font-display: swap;
}

body {
  background: #efefef;
}

.inner-wrap {
  max-width: 800px;
  margin: auto;
  padding: 0 16px;
}

.input-field-wrap {
  background: #fff;
  width: 96%;
  margin: 32px auto;
  padding: 16px 2%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.input-label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.input-field {
  margin-bottom: 24px;
}

.input-field input {
  font-size: 16px;
  width: 96%;
  margin: 0 auto;
  padding: 10px;
  display: block;
  box-sizing: border-box;
  border: 1px solid #aaa;
  outline: none;
  font-weight: bold;
  color: #555;
}

.output-field {
  font-family: Emblem;
  font-size: 32px !important;
  margin-bottom: 0;
  line-height: 1.25 !important;
}

.table-heading {
  text-align: center;
}

.font-table {
  margin: 0 auto 20px;
}

.font-table td {
  position: relative;
  width: 20%;
  max-width: 78px;
  height: 48px;
  text-align: center;
  background: #fff;
  padding: 20px 2px 4px;
  white-space: normal;
}

.font-table td span {
  position: absolute;
  top: 2px;
  left: 2px;
  color: #333;
  font-family: 'Kosugi Maru';
  font-size: 15px;
  line-height: 1.0;
}

.font-table .modal-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.font-table .modal-open:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.font-table td img {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 48px;
  display: block;
}

.font-table td .font-empty {
  height: 48px;
}

.font-table tr:nth-child(13) td:nth-child(2),
.font-table tr:nth-child(13) td:nth-child(4),
.font-table tr:nth-child(15) td:nth-child(2),
.font-table tr:nth-child(15) td:nth-child(4) {
  background: #efefef;
}

/* dialog ベースのモーダル */
.modal {
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  max-width: 90vw;
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 44px 10% 10%;
  box-sizing: border-box;
  position: relative;
}

.modal .modal-img {
  width: 100%;
  margin-bottom: 16px;
}

.modal-desc {
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-family: 'Kosugi Maru';
  line-height: 1.15;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-family: "Emblem";
  cursor: pointer;
  letter-spacing: -2px;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  color: inherit;
}

.modal-close:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.comments li.compost p:first-child {
  font-family: Emblem;
  font-size: 17px !important;
  margin-bottom: 0;
  line-height: 1.25 !important;
}

.comments textarea {
  font-family: Emblem;
  font-size: 32px !important;
  margin-bottom: 0;
  line-height: 1.25 !important;
}

.wpdiscuz-textarea-wrap .ql-editor p,
.wpd-comment .wpd-comment-text {
  font-family: Emblem !important;
}

@media screen and (min-width: 640px) {
  .input-field-wrap {
    width: 80%;
    padding: 32px 0;
  }

  .input-field-wrap p {
    width: 90%;
    margin: 0 auto 16px;
    line-height: 1.8;
  }

  .input-field input {
    width: 90%;
  }

  .font-table {
    width: 99%;
  }

  .font-table tbody {
    display: flex;
    flex-direction: row-reverse;
  }

  .font-table tr {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    background: transparent;
  }

  .font-table td {
    height: 50px;
    width: auto;
    max-width: none;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #888;
    border-left: 1px solid #888;
    padding: 20px 2px 4px;
  }

  .font-table td:first-child {
    border-top: 1px solid #888;
  }

  .font-table tr:first-child td {
    border-right: 1px solid #888;
  }

  /* sa ze bi mi */
  .font-table tr:nth-child(4) td:nth-child(1),
  .font-table tr:nth-child(5) td:nth-child(4),
  .font-table tr:nth-child(6) td:nth-child(2),
  .font-table tr:nth-child(10) td:nth-child(2),
  .font-table tr:nth-child(12) td:nth-child(2) {
    padding: 20px 0 4px;
  }

  /* ku ko ta ni mo */
  .font-table tr:nth-child(2) td:nth-child(3),
  .font-table tr:nth-child(2) td:nth-child(5),
  .font-table tr:nth-child(6) td:nth-child(1),
  .font-table tr:nth-child(8) td:nth-child(2),
  .font-table tr:nth-child(12) td:nth-child(5) {
    padding: 20px 6px 4px;
  }

  .font-table td img {
    height: 50px;
  }

  .font-table td .font-empty {
    height: 100px;
  }
}

@media screen and (min-width: 1025px) {
  .comments li.compost p:first-child {
    font-size: 18px !important;
  }
}