﻿@charset "UTF-8";

.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 1.4rem;
}

.tab-switch {
  display: none;
}

.tab-label-spacer {
  width: calc((100% - 96px) / 7);
  height: 0;
  order: -1;
}

.tab-label {
  border-radius: 100vh;
  background-color: #f2f8eb;
  border: 1px solid #dddddd;
  width: calc((100% - 96px) / 7);
  padding: 3px;
  margin-bottom: 16px;
  vertical-align: middle;
  text-align: center;
  order: -1;
}

.tab-label:hover {
  background-color: #e70012;
  color: #ffffff;
}

.tab-switch:checked+.tab-label {
  background: #e70012;
  color: #ffffff;
}

.tab-switch:checked+.tab-label+.tab-content {
   display: block;
}

.tab-content {
  width: 100%;
  display: none;
  margin-top: 8px;
}

.tab-content table {
  width: 100%;
}

.tab-content tr:nth-child(odd) {
  background-color: #f2f8eb;
}

.tab-content td:nth-of-type(1) {
  border: 1px solid #dddddd;
  vertical-align: middle;
  text-align: left;
  padding: 8px 14px;
  white-space: nowrap;
}

.tab-content td:nth-of-type(2) {
  border: 1px solid #dddddd;
  vertical-align: middle;
  text-align: left;
  padding: 8px 14px;
}

.tab-content td:nth-of-type(3) {
  border: 1px solid #dddddd;
  vertical-align: middle;
  text-align: left;
  padding: 8px 14px;
  white-space: nowrap;
}

.tab-content td:nth-of-type(4) {
  border: 1px solid #dddddd;
  vertical-align: middle;
  text-align: left;
  padding: 8px 14px;
  white-space: nowrap;
}

.tab-content td:nth-of-type(5) {
  border: 1px solid #dddddd;
  vertical-align: middle;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
}

.tab-content tr:nth-of-type(1) td:nth-of-type(1),
.tab-content tr:nth-of-type(1) td:nth-of-type(2),
.tab-content tr:nth-of-type(1) td:nth-of-type(3),
.tab-content tr:nth-of-type(1) td:nth-of-type(4),
.tab-content tr:nth-of-type(1) td:nth-of-type(5) {
  background-color: #206020;
  color: #ffffff;
  vertical-align: middle;
  text-align: center;
  padding: 8px 14px;
}

.btn-co {
  border-radius: 100vh;
  background-color: #e70012;
  width: 100%;
  display: block;
  vertical-align: middle;
  text-align: center;
  padding: 3px 12px;
}

.btn-co font {
  color: #ffffff;
}

.btn-co:hover {
  text-decoration: none;
  opacity: 0.5;
}

.ttl {
  background-color: #5a5a5a;
  border-top: 1px solid #5a5a5a;
  color: #ffffff;
  font-size: 1.8rem;
  padding: 8px 16px 8px 16px;
  text-align: center;
  font-weight: bold;
}

.ttl-top {
  background-color: #5a5a5a;
  border-top: 1px solid #5a5a5a;
  color: #ffffff;
  font-size: 1.8rem;
  padding: 8px 16px 0 16px;
  text-align: center;
  font-weight: bold;
}

.ttl-btm {
  background-color: #5a5a5a;
  border-top: 1px solid #5a5a5a;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 0 16px 8px 16px;
  text-align: center;
}

@media screen and (max-width: 767px) {

  .tab-wrap {
    font-size: 1.6rem;
  }

  .tab-label-spacer {
    width: calc((100% - 32px) / 3);
  }

  .tab-label {
    width: calc((100% - 32px) / 3);
  }

  .tab-content tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    border: 1px solid #dddddd;
    padding-bottom: 16px;
  }

  .tab-content tr:nth-of-type(1) {
    display: none;
  }

  .tab-content td:nth-of-type(1) {
    border: none;
    vertical-align: middle;
    text-align: left;
    padding: 16px 24px 0 24px;
    white-space: normal;
  }

  .tab-content td:nth-of-type(2) {
    border: none;
    vertical-align: middle;
    text-align: left;
    padding: 8px 24px 0 24px;
    white-space: normal;
  }

  .tab-content td:nth-of-type(3) {
    border: none;
    vertical-align: middle;
    text-align: left;
    padding: 8px 24px 0 24px;
    white-space: normal;
  }

  .tab-content td:nth-of-type(4) {
    border: none;
    vertical-align: middle;
    text-align: left;
    padding: 8px 24px 0 24px;
    white-space: normal;
  }

  .tab-content td:nth-of-type(5) {
    border: none;
    vertical-align: middle;
    text-align: left;
    padding: 0 16px;
    white-space: normal;
  }

  .btn-co {
    margin-top: 12px;
  }

}
