body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
}

.wrap {
  overflow: hidden;
}

header h1 {
  font-size: 20px;
  padding: 10px;
  margin: 0;
}

/*HeaderSlide*/
.slider {
  height: 220px;
  margin: 0;
  position: relative;
}
.slider ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.slider ul li {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation-iteration-count: infinite;
  animation-duration: 24s;
}
.slider img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.slider ul li:nth-child(1) {
  animation-name: slider;
  animation-delay: -2s;
}
.slider ul li:nth-child(2) {
  animation-name: slider;
  animation-delay: 5s;
  opacity: 0;
}
.slider ul li:nth-child(3) {
  animation-name: slider;
  animation-delay: 13s;
  opacity: 0;
}
.slider ul li:nth-child(4) {
  animation-name: slider;
  animation-delay: 21s;
  opacity: 0;
}

@keyframes slider {
  0% {
    opacity: 0;
  }
  20.83% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  45.83% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/*HeaderSlide*/

.header_pic {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/*ハンバーガーメニュー*/
.sp-menu {
  margin-left: auto;
  position: fixed;
  top: 0;
  right: 16px;
}
.sp-menu #open {
  font-size: 30px;
  line-height: 64px;
  cursor: pointer;
}
.sp-menu #open.hide {
  display: none;/*ばつ印の裏に三本線のアイコンが表示されたままなので、JSでopenに対してhideクラスを付けて、CSSでdisplay:none;とすると、オープン中に裏側の三本線アイコンが消える。*/
}
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 50px 10px;
  opacity: 0;
  pointer-events: none;/*ポインター系のイベントが無効化されるので、本文が選択可能になる。*/
  transition: opacity .6s;
  z-index: 2;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;/*.overlayでpointer-eventsを無効化しているので、メニューの上でカーソルが変化しない。showクラスが付いたらpointer-eventsを元に戻したいので、規定値であるautoにする。*/
}
.overlay #close {
  position: absolute;
  top: 15px;
  right: 16px;
  font-size: 30px;
  cursor: pointer;
}
.overlay ul {
  border: solid;
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.overlay li {
  border: solid;
  border-radius: 100vh;
  width: 60px;
  margin: 10px 5px;
  padding: 5px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
}
a {
  text-decoration: none;
}
.overlay.show li {
  opacity: 1;
  transform: none;
}
/*ハンバーガーメニュー*/

/*TextBox*/
.explication  {
  border: 10px ridge;
  background: #ffebcd;
  margin: 10px 10px 30px;
  padding: 20px 20px 0;
  line-height: 2;
}
.explication img {
  width: 100%;
  height: 100%;
  padding: 10px 0 10px;
}
/*TextBox*/

.cadre {
  border: 1px solid #000;
}

h2 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  text-align: center;
}

.importance {
  color: red;
  font-weight: bold;
}

footer {
  width: 100%;
  margin: 35px 0 0;
  height: 50px;
  background: #fffaf0;
  text-align: center;
}

.pagetop {
  text-align: right;
}

/*ブレイクポイント例
1000px〜:PC
768px〜999px:タブレット
576px〜767px:スマホ横
〜575px:スマホ縦*/

@media (min-width: 576px) and (max-width: 767px) {
  .slider {
    height: 270px;
  }
  .slider img {
    height: 250px;
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  .slider {
    height: 270px;
  }
  .slider img {
    height: 250px;
  }
}

@media (min-width: 1000px) and (max-width: 1400px) {
  header h1 {
    font-size: 40px;
  }

  .slider {
    height: 320px;
  }
  .slider img {
    height: 300px;
  }

  .explication  {
    margin: 50px 100px 50px;
  }

  h2 {
    font-size: 30px;
  }
}

@media (min-width: 1401px) {
  header h1 {
    font-size: 50px;
  }

  .slider {
    height: 400px;
  }
  .slider img {
    height: 380px;
  }

  .explication  {
    margin: 50px 100px 50px;
  }

  h2 {
    font-size: 30px;
  }
}

table, th, td {
  border: 1px solid #000;
  text-align: center;
  margin: 0 auto;
}

@media screen and (max-width: 640px) {
  .tbl-r04 {
    width: 80%;
  } 
  .tbl-r04 .thead {
    display: none;
  }
  .tbl-r04 tr,
  .tbl-r04 td{
    display: block;
    width: 100%;
    position: relative;
  }
  .tbl-r04 td:first-child:before {
    box-sizing: border-box;
    font-weight: bold;
    height: 40px;
    padding: 10px;
    position: absolute;
    top: -41px;
    left: -0.2%;
    display: block;
    width: 100.5%;
  }
  .tbl-r04 tr {
    margin-bottom: 40px;
  }
}


/* 横スクロール */
.table_wrap {
  overflow-x: scroll;
}
.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
/* .table th,
.table td {
  border: 2px solid #eee;
  padding: 4px 8px;
} */
/* 横スクロール */

/*accordion*/
.faq {
  margin: 10px 20px 10px;
}
.faq dd {
  padding: 8px;
  margin: 0;
  display: none;
}
.faq dt {
  padding: 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.faq > div {
  margin-bottom: 8px;
}
.faq dt::before {
  content: 'Q. ';
}
.faq dt::after {
  content: '+';
  position: absolute;
  top: 8px;
  right: 16px;
  transition: transform .3s;
}
.faq dd::before {
  content: 'A. ';
}
.faq > div.appear dd {
  display: block;
  animation: .3s accordion;
}
.faq > div.appear dt::after {
  transform: rotate(45deg);
}
@keyframes accordion {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
/*accordion*/