@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 {
  rt {
    display: ruby-text;
  }

  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,
  h4 ruby[data-ruby]::before,
  h5 ruby[data-ruby]::before {
    bottom: 100%;
  }
  
  section p,
  .r-mt {
    margin-top: 10px;
  }

  #bottom p {
    margin-top: 0;
  }
  
  section p,
  section li {
    margin-right: 1em;
  }
  
  ruby.ml {
    margin-left: 0.25em;
  }

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

  rudy .ml2 {
    margin-left: 0.5em;
  }
  
  .table th,
  .table td {
    padding-top: 15px;
    line-height: 2 !important;
  }
} 

button.open{
  color: #000;
  background-color: transparent;
  border-width: 2px;
  border-color: #8fff4a;
  border-style: solid;
  border-radius: 5%;
  appearance: none;
}

button.close{
  color: #000;
  background-color: #8fff4a;
  border-width: 2px;
  border-color: #8fff4a;
  border-style: solid;
  border-radius: 5%;
  appearance: none;
}

.close:hover,.close:focus {
  color: #000;
  background-color: #8fff4a;
  border-width: 2px;
  border-color: #8fff4a;
  border-style: solid;
  border-radius: 5%;
  text-decoration: none;
  opacity: .5;
}

#toppage-news ul{
	margin-top: 50px;
}

/*  pc  */
@media (min-width: 1200px) {
  button.open {
    padding: 5px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1.2;
  }
  
  button.close {
    padding: 5px  0.75em;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1.2;
  }

  .navbar #menu-button {
		position: absolute;
		top: 1%;
		left: -55%;
    font-size: 1.2em;
    line-height: 1;
    text-align: right;
  }

	#toppage-news #menu-button {
		position: fixed;
		top: 1%;
		left: 75%;
		margin-bottom: 20px;
		font-size: 1.2em;
		line-height: 1;
		text-align: right;
	}
}

/*  TB	*/
@media screen and (min-width: 768px) and (max-width: 1200px) {
  button.open {
    padding: 5px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1.2;
  }

  button.close {
    padding: 5px  0.75em;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1.2;
  }

  .navbar #menu-button {
		position: absolute;
		top: 105px;
		left: 40%;
    font-size: 1em;
    line-height: 1;
    text-align: right;
  }

	#toppage-news #menu-button {
		position: fixed;
		top: 1%;
		left: 85%;
		margin-bottom: 20px;
		font-size: 1.2em;
		line-height: 1;
		text-align: right;
	}
}

/*  SP	*/
@media screen and (max-width: 767px) {
  button.open {
    padding: 5px;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.2;
  }

  button.close {
    padding: 5px 0.75em;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.2;
  }

  .navbar #menu-button {
		position: absolute;
		top: 85px;
		left: 35%;
		font-size: 1em;
		line-height: 1;
		text-align: right;
	}

	#toppage-news #menu-button {
		position: fixed;
		top: 1%;
		left: 70%;
		margin-bottom: 20px;
		font-size: 1.2em;
		line-height: 1;
		text-align: right;
	}
}
 
.close {
  float: none;
}

/* @media all and (-ms-high-contrast: none) {
  ruby {
    display: inline-table;
    vertical-align: bottom;
  }
  ruby[data-ruby]::before {
    transform: scale(0.4);
    bottom: 100%;
  }
  .ruby_flag rt {
    display: table-caption;
		white-space: nowrap;
  }
} 

[dataruby]::before,
rt::before {
  visibility: visible;
  content: attr(dataruby);
  position: absolute;
  line-height: 100%;
  text-align: center;
  left: -3em;
  right: -3em;
  transform-origin: bottom center;
  transform: scale(0.5);
  bottom: 100%;
}
[dataruby]::before {
  content: none;
}
.ruby_flag [dataruby]::before {
  content: attr(dataruby);
}
ruby[dataruby] rt {
  display: none;
}
*/