@charset "UTF-8";

/*--------共通部分CSS--------*/
html {
  font-size: 62.5%;  /* ≒10px（デフォルトのフォントサイズ）*/
}
body{
  font-family: "Noto Sans JP", "Noto Serif JP", sans-serif;
  line-height: 1.7;
  height: 100%;
}
a {
  text-decoration: none;
  color: #000;
}
img {
  max-width: 100%;
}
li {
  list-style-type: none;
}
p, a, li {
    font-size: 1.5rem;  /* ≒15px */
}
h1 {
    font-size: 2.4rem;  /* ≒24px */
}
h2 {
    font-size: 2.2rem;  /* ≒22px */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    border-bottom: 2px #ccc solid;
}
h3 {
  font-size: 1.8rem;  /* ≒18px */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
h4 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
h5 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}
.wrapper {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
  align-items: center;
}
.container {
  max-width: 800px;
}
.margin-top {
	margin-top: 10rem;
}

/*--------Header--------*/
#logo {
  display: block;
  margin: 0 auto;
}
#logo img {
  height: 32px;
}
nav {
  width: 100%;
  height: 60px;
  position: relative;
  background: #fff;
}
.drawer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 60px;
}

/*ナビゲーション部分*/
.menu ul li a {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2rem;
  border-bottom: 1px dotted #CCC;
  color: #444;
  text-decoration: none;
}
.menu ul li a:hover {
  background-color: rgba(21, 24, 47, 0.7);
  color: #b3dbff;
}
.menu {
  text-align: center;
  background-color: rgba(255,255,255,0.85);
  transition: 0.5s ease;  /*滑らかに表示*/
  -webkit-transform: translateY(-140%);
  transform: translateY(-140%);  /*上に隠しておく*/
}

/*OPEN時の動き*/
.menu.open {
  -webkit-transform: translateY(0%);
  transform: translateY(0%);  /*中身を表示（下へスライド）*/
}

/*トグルボタンのスタイルを指定*/
.toggle {
  display: block;
  position: absolute;  /*bodyに対しての絶対位置指定*/
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 3;
  right: 9px;
}
.toggle span {
  display: block;
  position: absolute;
  width: 45px;
  border-bottom: solid 4px #444;
  -webkit-transition: 0.35s ease-in-out;  /*変化の速度を指定*/
  -moz-transition: 0.35s ease-in-out;  /*変化の速度を指定*/
  transition: 0.35s ease-in-out;  /*変化の速度を指定*/
}

/*各ボーダー少しずつずらす*/
.toggle span:nth-child(1) {
  top: 5px;
}
.toggle span:nth-child(2) {
  top: 18px;
}
.toggle span:nth-child(3) {
  top: 32px;
}

/* 1番目のspanを-45度に */
.toggle.active span:nth-child(1) {
  top: 18px;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* 2番目と3番目のspanを45度に */
.toggle.active span:nth-child(2),
.toggle.active span:nth-child(3) {
  top: 18px;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*----ここからPCモニター用の記述----*/
@media screen and (min-width: 600px) {
  header::after {
    display: none;
  }
  nav {
    display: flex;
  }
  .toggle {
    display: none;
  }
  .menu {
    width: 100%;
    background-color: transparent;
    margin-top: 0;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .menu ul {
    height: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
  .menu ul li a{
    padding: 0 1.5rem;
    border-bottom: none;
  }
  .menu ul li a:hover {
    background-color: transparent;
    color: #7db4e6;
  }
}
/*--------/Header--------*/

/*--------Top scroll--------*/
#topscroll {
  width: 65px;
  height: 65px;
  position: fixed;
  right: -65px;
  bottom: 55px;
  background: #3f98ef;
  opacity: 0.8;
  border-radius: 50%;
}
#topscroll a {
  position: relative;
  display: block;
  width: 65px;
  height: 65px;
}
#topscroll a::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f102';
  font-size: 27px;
  color: #fff;
  position: absolute;
  width: 30px;
  height: 30px;
  top: -15px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
/*--------/Top scroll--------*/

/*--------ルビ振り--------*/
[data-ruby] {
  position: relative;
}
[data-ruby]::before {
  content: attr(data-ruby);
  position: absolute;
  line-height: 1;
  text-align: center;
  left: -4em;
  right: -4em;
  transform-origin: bottom center;
  /* ルビの文字サイズを親文字に対する比率で指定 */
  transform: scale(0.5);
  /* 100%を越える部分が親文字とルビとのスペースになる。単位は親文字に対する比率 */
  bottom: 90%;
}
/*--------/ルビ振り--------*/

/*--------Footer--------*/
footer {
  background: #000;
  color: #fff;
  text-align: left;
  padding: 12px 0;
  bottom: 0;
}
footer p {
  font-size: 1.3rem;
}
/*--------/Footer--------*/
