@font-face {
  font-family: 'cursive';
  src: url('fonts/Meddon-Regular.woff2') format('woff2'), url('fonts/Meddon-Regular.woff') format('woff'),
    url('fonts/Meddon-Regular.eot') format('embedded-opentype'), url('fonts/Meddon-Regular.ttf') format('truetype');
}

hr {
  border-color: #949698;
}

body {
  background-image: url('../img/main_bk.png');
  background-position: left top;
  background-repeat: repeat-y;
  flex-direction: column;
  min-height: 100vh;
}

header h1 {
  flex-grow: 1;
  margin-bottom: 0;
}

header > section {
  display: flex;
}

header #search-form {
  align-items: center;
  margin-right: 0.5rem;
}

header #member {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

header #member > a {
  align-items: center;
  display: flex;
  margin: 0 1rem;
}

header #member .balloon {
  margin: -1rem 0 0 0.2rem;
}

main {
  flex-grow: 1;
  padding: 3rem 0;
}

main h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

main h2 > small {
  color: #313945;
  display: block;
  font-size: 1.2rem;
  font-family: 'cursive';
  margin: 0 auto;
  padding-top: 0.5rem;
  transform: rotate(-5deg);
}

main section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

main section h3 > small {
  font-size: 0.9rem;
}

main section h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

main section > h3 {
  border-left: 0.2rem solid #d1d1d2;
  margin-bottom: 2rem;
  padding-left: 0.5em;
  width: 100%;
}

main section > h3:not(:first-child) {
  margin-top: 3rem;
}

main section > p {
  margin-bottom: 0.5rem;
}

main section > section {
  margin: 1rem 0 0 2rem;
}

main section > section > h4 {
  margin: 1rem 0;
  width: 100%;
}

main section > section > h4::before {
  content: '\F582';
  font-family: 'bootstrap-icons';
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

main section > p {
  background-color: rgba(0, 0, 0, 0.25);
}

main section a[href] {
  text-decoration: underline;
  text-decoration-style: dotted;
}

main section a[href]:hover {
  text-decoration-style: solid;
}

main table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

main table th {
  background-color: #213a3e;
  border: 0.5rem solid #222222;
  text-align: center;
  padding: 0.2em 0.5em;
}

main table td {
  background-color: #222222;
  border-top: 1px solid #213a3e;
  padding: 0.2em 0.5em;
}

main table td.numeric {
  text-align: right;
}

main table td.symbol {
  text-align: center;
}

main table tr:last-child td {
  border-bottom: 1px solid #213a3e;
}

main form dl {
  display: flex;
  margin: 1.5rem 0;
}

main form label > input[type='checkbox'] {
  position: absolute;
  visibility: hidden;
}

main form label > input[type='checkbox'] + small {
  padding-left: 3.5rem;
  position: relative;
}

main form label > input[type='checkbox'] + small::before {
  background-color: #ff7043;
  border-radius: 0.75rem;
  content: '\F26E\F62A';
  color: #fff;
  cursor: pointer;
  font-family: 'bootstrap-icons';
  font-size: 1.5rem;
  line-height: 1.5rem;
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  transition: background-color 0.5s;
  height: 1.5rem;
}

main form label > input[type='checkbox'] + small::after {
  background-color: #fff;
  border-radius: 0.75rem;
  content: '';
  cursor: pointer;
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  transition: left 0.2s;
  width: 1.5rem;
  height: 1.5rem;
}

main form label > input[type='checkbox']:checked + small::before {
  background-color: #26a69a;
}

main form label > input[type='checkbox']:checked + small::after {
  left: 1.5rem;
}

main form label a[href] {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #949698;
}

main form input,
main form select,
main form textarea {
  border: 1px solid #d6d6d6;
  box-sizing: border-box;
  padding: 0.2rem 0.5rem;
}

main form input:disabled,
main form select:disabled,
main form textarea:disabled {
  background-color: #949698;
}

main form dt .required {
  background-color: #990000;
  font-size: 0.7rem;
  margin-left: 0.5rem;
  padding: 0.1rem 0.2rem;
}

main form p {
  color: #999999;
}

main form button,
main .links > a {
  background-color: #1e565a;
  border: 1px solid #999999;
  border-radius: 0.5rem;
  color: #fff;
}

main form button:hover,
main .links > a:hover {
  background-color: #222222;
  border-color: #1e565a;
  text-decoration: none;
}

main form button:disabled,
main .links > a:disabled {
  background-color: #222222;
  border-color: #1e565a;
  color: #949698;
  text-decoration: none;
}

main form button .bi {
  margin-right: 0.5rem;
}

main form .expires {
  display: flex;
  align-items: center;
  flex-direction: row;
}

main form .expires > div {
  flex-grow: 1;
}

main form .expires > span {
  display: inline-block;
  text-align: center;
  width: 2rem;
}

main form .expires input,
main form .expires select {
  width: 100%;
}

main .links .bi {
  margin-right: 0.2rem;
}

main .pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 0 0.5rem;
  width: 100%;
}

main .pagination > div {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

main .pagination > div a {
  margin: 0 0.25rem;
  padding: 0.25rem;
}

main .pagination > div a.page:not([data-page]) {
  margin: 0 0.05rem;
  padding: 0;
}

.items {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.items .item dd {
  white-space: pre-line;
  word-break: break-all;
}

.items .item dd a {
  display: block;
}

.items .item img {
  max-height: 15rem;
  max-width: 15rem;
}

.item-type {
  color: #000;
  font-size: 0.8rem;
  padding: 0.1em 0.2em;
  white-space: nowrap;
}

.item-type.data-item {
  background-color: #d9a919;
}

.item-type.plan-item {
  background-color: #35cd9c;
}

.item-type.goods-item {
  background-color: #35cd9c;
}

.back-link {
  display: flex;
  justify-content: space-evenly;
  margin: 2rem auto 0;
  max-width: 1024px;
}

.back-link a[href] {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.back-link a[href]:hover {
  text-decoration-style: solid;
}

.articles {
  width: 100%;
}

.articles article {
  border-top: 1px solid #313945;
  display: flex;
  padding: 1rem;
}

.articles article > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10rem;
  margin-right: 1rem;
  width: 10rem;
}

.articles article:last-child {
  border-bottom: 1px solid #313945;
}

.articles article img {
  margin-right: 1rem;
  max-height: 10rem;
  max-width: 10rem;
}

.articles .article-content .date {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.articles .article-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.articles article p {
  white-space: pre-line;
}

#blog h3 {
  font-size: 1.5rem;
  text-align: center;
}

#blog article .image {
  align-items: center;
  display: flex;
  justify-content: center;
}

#blog article .image img {
  margin: 1rem 0;
}

@media (min-width: 1024px) {
  header nav {
    justify-content: center;
  }

  main > section {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1024px;
    padding: 1rem;
  }

  main form dt {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-basis: 25%;
    padding-right: 1rem;
    justify-content: flex-end;
  }

  main form table dt {
    background-color: inherit;
  }

  main form dd {
    display: flex;
    flex-basis: 25%;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    margin: 0;
  }

  main form dd small {
    padding-left: 0.5rem;
  }

  main form button,
  main .links > a {
    padding: 0.7em 10em;
  }

  main form .confirms,
  main form .buttons {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem;
  }

  main form .confirms > label {
    margin-right: 1rem;
  }

  main .buttons small {
    display: inline-flex;
  }

  main .links {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
  }

  main .links a {
    display: flex;
    margin-top: 1rem;
  }

  footer {
    justify-content: center;
    flex-wrap: wrap;
  }

  footer > section {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 1023px) {
  #menu-button {
    position: absolute;
    right: 0.5rem;
    top: 1rem;
  }

  #menu-close-button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
  }

  header {
    padding-bottom: 0.5rem;
  }

  header h1 img {
    height: 3rem;
    max-width: calc(100vw - 4rem);
  }

  header #member {
    justify-content: flex-end;
    width: 100vw;
  }

  header > section {
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  main h2 > small {
    width: 90vw;
  }

  main section > h3 {
    margin-left: 0.5rem;
  }

  main > section > p {
    padding: 0 0.5rem;
  }

  main > section > form {
    padding: 0 0.5rem;
  }

  main form dl {
    flex-direction: column;
    margin: 0.5rem 0;
  }

  main form dd {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  main form input,
  main form select,
  main form textarea {
    margin-bottom: 0.2rem;
  }

  main form button,
  main .links > a {
    padding: 0.7em 0;
  }

  main form .confirms,
  main form .buttons {
    display: flex;
    flex-direction: column;
  }

  main form .confirms > label {
    margin-bottom: 1rem;
  }

  main form .buttons {
    margin-top: 1rem;
  }

  main .links {
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
  }

  main .links a {
    display: flex;
    margin-top: 1rem;
    justify-content: center;
  }

  .articles article {
    flex-direction: column;
  }

  .articles article img {
    margin-bottom: 1rem;
  }
}
