@charset "UTF-8";

[data-ruby] {
  position: relative;
  display: inline-block;
}

ruby[data-ruby]::before {
  display: none;
}

.dis-no,
rt,
ruby[data-ruby] rt {
  display: none;
}

.ruby_flag section {
  ruby[data-ruby]::before {
    content: attr(data-ruby);
    position: absolute;
    text-align: center;
    left: -3em;
    right: -3em;
    transform-origin: bottom center;
    bottom: 75%;
    display: block;
    transform: scale(0.5);
    letter-spacing: 0;
  }

  #title ruby[data-ruby]::before,
  h2 ruby[data-ruby]::before,
  h3 ruby[data-ruby]::before{
    bottom: 100%;
  }

  ruby.ml {
    margin-left: 0.25em;
  }

  ruby.ls {
    letter-spacing: 0.25em;
  }

  rudy .ml2 {
    margin-left: 0.5em;
  }

  .table th,
  .table td {
    padding-top: 0.5em;
    line-height: 1.8 !important;
  }

  h3,
  h4 {
    padding-top: 1em;
    margin-bottom: 0.75em;
  }

  ul li,
  ol li,
  h4,
  h5,
  h6 {
    line-height: 1.8;
  }
  
  #bottom ul li {
    line-height: 1.4;
  }

  #bottom h2,
  #bottom p {
    margin-top: 0;
  }

  img {
    margin-bottom: 0.5em;
  }
}

button.open {
  padding: 5px;
  color: #000000;
  background-color: transparent;
  border-width: 2px;
  border-color: #0e6a58;
  border-style: solid;
  border-radius: 5%;
  appearance: none;
}

button.close,
.close {
  padding: 5px 0.75em;
  color: #000000;
  border-width: 2px;
  border-color: #0e6a58;
  background-color: #c5f8ed;
  border-radius: 5%;
  appearance: none;
  text-shadow: 0 0px 0 #000;
  opacity: 1;
}

button.close:hover,
button.close:focus {
  color: #000000;
  background-color: #c5f8ed;
  border-radius: 5%;
  text-decoration: none;
  opacity: 1;
}

/*  pc  */
@media (min-width: 1200px) {
  .navbar #menu-button {
    position: fixed;
    top: 1%;
    left: 60%;
    font-size: 1.2em;
  }
}

/*  TB	*/
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .navbar #menu-button {
    position: fixed;
    top: 110px;
    left: 50%;
    font-size: 1em;
  }
}

/*  SP	*/
@media screen and (max-width: 767px) {
  .navbar #menu-button {
    top: 110px;
    left: 50%;
    font-size: 1em;
  }

  .ruby_flag section {
    h3,
    h4,
    h5,
    h6,
    p,
    ul li,
    ol li,
    dd,
    dt  {
      margin-right: 0.5em;
    }
  }
}

.navbar #menu-button {
  position: fixed;
  line-height: 1;
  border-width: 2px;
  border-color: #0e6a58;
  border-style: solid;
  line-height: 1;
  text-align: right;
}

.close {
  float: none;
}