@charset "utf-8";

/* search 共通 */
.pc_only {
  display: block;
}

.sp_only,
.hidden {
  display: none;
}

.databook__help {
  overflow: hidden;
  margin-bottom: 27px;
  display: flex;
  justify-content: space-between;
}

.databook__info {
  position: relative;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 33px;
  padding-right: 20px;
  padding-left: 20px;
  max-width: 830px;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.06em;
  text-align: center;
}

.databook-red {
  color: #e84885 !important;
}

i.icon-new_disc {
  color: #e84885;
}

#tutorial-button {
  text-align: right;
  font-size: 16px;
  padding: 10px 16px;
  color: #fff;
  background-color: #666666;
  border-radius: 5px;
  display: flex;
}

#tutorial-button i {
  font-size: 21px;
  padding-right: 3px;
}

.driver-clearfix button {
  font: 16px/normal sans-serif;
}

.databook__source {
  float: right;
}

.databook-title {
  z-index: 1;
  margin-bottom: 35px;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
}

.ttl_dec {
  position: relative;
  display: inline-block;
  line-height: 1.55;
}

.ttl_dec:after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #222222;
}
/* search 共通 */

/* データブック（タブ+緑枠）全体 */
.databook-area {
  margin-top: 20px;
  margin-bottom: 90px;
}

.databook-area .item {
  margin-bottom: 1%;
}

canvas {
  -webkit-tap-highlight-color: transparent
}
/* データブック（タブ+緑枠）全体 */

/* タブ1段目 */
.first-tab-list {
  border-bottom: 1px solid #dedede;
  display: flex;
  list-style: none;
  margin: 0 0 1.4rem 0;
  padding: 0;
}

.first-tab-item {
  border: 1px solid transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: #666666;
  cursor: pointer;
  margin-bottom: -1px;
  margin-right: 4px;
  padding: 0.75rem 1rem;
  width: 33%;
  text-align: center;
  font-size: 18px;
  background-color: #f4f4f4;
  border-bottom-color: #dedede;
  transition: all 0.5s ease;
  font-weight: bold;
}

.first-tab-item:last-child {
  margin-right: 0px;
}

.first-tab-item.active, .first-tab-item:hover {
  border-color: #dedede;
  border-bottom-color: #fff;
  color: #41b6a7;
  background-color:  white;
}

.first-tab-item i {
  color: #e84885;
  font-size: 24px;
  position: relative;
  top: -3px;
  margin-right: 5px;
}

.second-tab-list li i {
  color: #e84885;
  font-size: 16px;
  position: relative;
  margin-right: 4px;
}

/* タブ2段目 */
.second-tab-area {
  margin-bottom: 18px;
  width: 100%;
  display: none;
}

.second-tab-area.active {
  display: table;
}

.second-tab-list {
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.second-tab-list li {
  display: flex;
  padding: 12px 0;
  border: 2px solid #41b6a7;
  border-left: 0;
  color: #666666;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.salon-tab-list li {
  width: 14.28%;
}

.medical-tab-list li {
  width: 20%;
}

.cosme-tab-list li {
  width: 25%;
}

.pref-tab-list li {
  width: 20%;
}

.second-tab-list li:first-child {
  border-left: 2px solid #41b6a7;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.second-tab-list li:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.second-tab-list li:hover {
  background-color: #41b6a7;
  color: #fff;
}

.second-tab-list li.is-closed {
  background-color: #eee;
  color: #acacac;
  cursor: default;
  pointer-events: none;
}

.second-tab-list li.tab-active {
  position: relative;
  background-color: #41b6a7;
  color: #fff;
}

.second-tab-list li.tab-active::before {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  width: 9px;
  height: 8px;
  margin: 0 auto;
  /* background-image: url(../images/green_ico.png); */
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

/* タブ2段目 */

/*
  below-green-frame 内をクリックしたときに
  $(".question-list li ul li").on("click", ...) が発火してしまうため、z-index を指定している
  本来は $(".question-list li ul li") を非表示で出力している点を解消するべき
*/
.below-green-frame {
  padding: 0 3%;
  position: relative;
  z-index: 1;
}

.below-green-frame p {
  color: #666666;
}

.survey-name {
  text-decoration: underline;
}

/* in-between */
@media (max-width: 900px) and (min-width: 500px) {
  .databook-title {
    font-size: 4vw;
  }
  .databook__info {
    font-size: 2vw;
  }
  .databook__help {
    margin-bottom: 3vw;
  }
  #tutorial-button {
    text-align: right;
    font-size: 1.8vw;
    padding: 10px 1.8vw;
    color: #fff;
    background-color: #666666;
    border-radius: 5px;
    display: flex;
  }
  #tutorial-button i {
    font-size: 2.2vw;
    padding-right: 3px;
  }
  .first-tab-item {
    font-size: 2vw;
    padding: 0.75rem 0.9rem;
  }
  .first-tab-item i {
    font-size: 2.5vw;
  }
  .first-tab-list {
    margin: 0 0 2.5vw 0;
  }
  .second-tab-area {
    margin-bottom: 2vw;
  }
  .second-tab-list li {
    font-size: 1.8vw;
  }
  .second-tab-list li i {
    font-size: 1.6vw;
  }
  .second-tab-list li span {
    display: none;
  }
  .switch-btn__pref li span {
    display: none;
  }
  .below-green-frame p {
    font-size: 2vw;
  }
}
/* in-between */

/* SP Design */
@media screen and (max-width: 499px) {
  .databook__info {
    font-size: 0.9rem;
  }

  /* search 共通 */
  .ttl_dec:after {
    height: 2px;
    bottom: -2px;
  }

  .salon-tabs-wrap li {
    font-size: 12px;
  }

  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .ttl_dec:after {
    height: 2px;
    bottom: -2px;
  }
  /* search 共通 */

  /* データブック（タブ+緑枠）全体 */
  .databook-title {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .databook-area {
    margin-bottom: 45px;
  }

  .databook__help {
    font-size: 9px;
    margin-bottom: 28px;
  }
  /* データブック（タブ+緑枠）全体 */

  /* タブ1段目 */
  .first-tab-list {
    margin-bottom: 0px;
  }

  .first-tab-item {
    font-size: 10px;
    margin-right: 2px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .first-tab-item i {
    font-size: 16px;
    margin-right: 2px;
  }
  /* タブ1段目 */

  /* タブ2段目 */
  .second-tab-area {
    margin-bottom: 0;
  }

  .second-tab-list {
    padding: 0;
  }

  .second-tab-list li i {
    color: #e84885;
    font-size: 11px;
    position: relative;
    margin-right: 0px;
  }

  .second-tab-list li {
    border-left: 0;
    font-size: 10px;
  }

  .second-tab-list li.tab-active::before {
    display: none;
  }

  .second-tab-list li:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 0;
    border-left: 1px solid #41b6a7;
  }

  .second-tab-list li:last-child {
    border-top: 1px solid #41b6a7;
    border-left: none;
    border-radius: 0;
    border-top-right-radius: 4px;
  }
  .second-tab-list li {
    width: 20%;
    height: 30px;
    padding: 0;
    border: 1px solid #41b6a7;
    border-left: 0;
    font-size: 9px;
  }

  .salon-tab-list li {
    width: 14.28%;
  }

  .cosme-tab-list li {
    width: 25%;
  }

  .second-tab-list li:nth-child(7) {
    border-left: 1px solid #41b6a7;
    border-bottom-left-radius: 3px;
  }

  .second-tab-list li:nth-child(n+7) {
    border-top: 0;
  }

  .second-tab-list li.tab-active::before {
    bottom: -7px;
    width: 0;
    height: 6px;
  }

  #tutorial-button {
    text-align: right;
    font-size: 11px;
    padding: 6px 8px;
    color: #fff;
    background-color: #666666;
    border-radius: 3px;
    display: table-cell;
    vertical-align: middle;
  }

  #tutorial-button i {
    font-size: 14px;
    padding-right: 2px;
  }

  .databook-area {
    margin-bottom: 45px;
  }

  .databook-area .link_01 {
    margin-bottom: 28px;
  }

  .databook-area .salon-tabs-wrap li {
    border-left: 0;
    font-size: 10px;
  }

  .databook-area .salon-tabs-wrap li:first-child {
    border-left: 1px solid #41b6a7;
    border-bottom-left-radius: 4px;
  }

  .databook-area .salon-tabs-wrap li:last-child {
    border-top: 1px solid #41b6a7;
    border-left: none;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
  }

  .databook-area .salon-tabs-wrap li:nth-child(5) {
    border-radius: 0;
  }

  .databook-area .salon-tabs-wrap li.census_active::before {
    width: 7px;
    height: 6px;
    background-size: contain;
  }
  /* タブ2段目 */

  .databook-area.databook-area .item {
    margin-bottom: 1%;
  }

  .databook-area .second-tab-area {
    margin-bottom: 0;
  }

  .switch-btn__pref li span {
    display: none;
  }

  /*
    below-green-frame 内をクリックしたときに
    $(".question-list li ul li").on("click", ...) が発火してしまうため、z-index を指定している
    本来は $(".question-list li ul li") を非表示で出力している点を解消するべき
  */
  .below-green-frame {
    padding: 1.5% 3%;
    position: relative;
    z-index: 1;
  }

  .below-green-frame p {
    font-size: 12px;
  }
}
