@charset "UTF-8";
/* CSS Document */

.scroll-cover {
  height: 700px; 
  overflow-y: auto;
}
#tab-contents-age .scroll-cover {
  height: 550px; 
  overflow-y: auto;
}

@-moz-document url-prefix() {
.scroll-cover  {
    scrollbar-color: #5A3437 #FFF5F3;
    scrollbar-width: thin;
  }
}
.scroll-cover::-webkit-scrollbar {
  width: 20px;
}
.scroll-cover::-webkit-scrollbar-track {
  background: #FFF5F3;
}
.scroll-cover::-webkit-scrollbar-thumb {
  background: #5A3437;
  border-radius: 0;
}
@media only screen and (min-height: 1500px) {
html,
body {
  height: 100%;
  margin: 0;
}
#wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#tab-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#tab-contents {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#tab-contents > * {
  display: flex;
  flex: 1; 
  min-height: 0;
}
#tab-contents-house {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; 
}
.scroll-cover {
  flex: 1;
  height: auto; 
}
#tab-contents-age .scroll-cover {
  height: 100%; 
}

#list-age {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0; 
}
#age-contents {
  flex: 1;
  min-height: 0; 
}
.age-tabBox {
  height: 100%;
}
.age-tabBox  .scroll-cover {
  height: 100%;
}
}




/* tab-box
-----------------------------------------------*/
#tab-box {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  color: #5A3437;
}
@media only screen and (max-width: 767px) {
  #tab-box {
    border-radius: 30px 30px 0 0;
  }
}


/* tab-btn
-----------------------------------------------*/
#tab-btn ul {
  display: flex;
  gap: 7px;
}
#tab-btn ul li {
  min-height: 60px;
  background: #FBEEE0;
  border: 6px solid #fff;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  line-height: 1.3;
  font-weight: bold;
  cursor: pointer;
}
#tab-btn ul li.active {
  background: #fff;
}
#tab-btn ul li#tab-btn-house::after {
  content: "発⽣場所からみる：住宅内";
}
#tab-btn ul li#tab-btn-outdoor::after {
  content: "発⽣場所からみる：戸外";
}
#tab-btn ul li#tab-btn-cause::after {
  content: "原因対象物からみる";
}
#tab-btn ul li#tab-btn-age::after {
  content: "年齢からみる";
}
@media only screen and (max-width: 1180px) {
  #tab-btn ul li {
    font-size: 18px;
  }
  #tab-btn ul li#tab-btn-house::after {
    content: "発⽣場所：住宅内";
  }
  #tab-btn ul li#tab-btn-outdoor::after {
    content: "発⽣場所：戸外";
  }
  #tab-btn ul li#tab-btn-cause::after {
    content: "原因対象物";
  }
  #tab-btn ul li#tab-btn-age::after {
    content: "年齢";
  }
}
@media only screen and (max-width: 767px) {
  #tab-btn ul {
    gap: 4px;
  }
  #tab-btn ul li {
    font-size: 14px;
    text-align: center;
  }
  #tab-btn ul li#tab-btn-house::after {
    content: "発⽣場所\A：住宅内";
    white-space: pre;
  }
  #tab-btn ul li#tab-btn-outdoor::after {
    content: "発⽣場所\A：戸外";
    white-space: pre;
  }
  #tab-btn ul li#tab-btn-cause::after {
    content: "原因\A対象物";
    white-space: pre;
  }
}


/* tab-contents
-----------------------------------------------*/
#tab-contents {
  background: #fff;
}
#tab-contents > * {
  display: none;
  padding: 50px 50px 100px;
  flex-direction: column;
}
#tab-contents > *:first-child {
  display: flex;
}
@media only screen and (max-width: 767px) {
  #tab-contents > * {
    padding: 20px 20px 60px;
  }
}


/* list-btn
-----------------------------------------------*/
.list-btn {
 display: flex;
 gap: 20px;
}
.list-btn li {
 display: flex;
 align-items: center;
 gap: 8px;
 font-size: 16px;
 font-weight: bold;
 cursor: pointer;
}
.list-btn li::before {
  content: "";
  display: block;
}
.list-btn li.list-btn-01::before {
  background-image: url("/img/common/icon-list-01.svg");
  width: 26px;
  height: 26px;
}
.list-btn li.list-btn-02::before {
  background-image: url("/img/common/icon-list-02.svg");
  width: 25px;
  height: 25px;
}


/* list-illust
-----------------------------------------------*/
.list-illust {
  display: grid;
  grid-template-columns: repeat(auto-fit, 130px);
  gap: 40px 74px;
  justify-content: center;
  margin-top: 60px;
}
.list-illust li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 16px;
}
.list-illust li a::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
}
/* zoom */
.zoom .list-illust {
  grid-template-columns: repeat(auto-fit, 280px);
}
@media only screen and (max-width: 767px) {
  .list-illust {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, 90px);
    margin-top: 30px;
  }
  .list-illust li a {
    font-size: 14px;
  }
}


/* age-tab
-----------------------------------------------*/
#age-tab ul {
  display: flex;
  justify-content: space-between;
}
#age-tab ul li {
  position: relative;
  z-index: 1;
  background: #FB948B;
  color: #fff;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
}
#age-tab ul li.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: calc(100% + 50px);
  background: #FB948B;
  border-radius: 40px 40px 0 0;
}


/* age-contents
-----------------------------------------------*/
#age-contents {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 40px;
  border: 8px solid #FB948B;
  border-radius: 40px;
  margin-top: 12px;
}
.age-tabBox {
  width: 100%;
  display: flex;
}
.age-tabBox:not(:first-child) {
  display: none;
}
#age-contents .age-tabBox-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
#age-contents .age-tabBox-btn .item-btn {
  position: relative;
  z-index: 2;
}
#age-contents .age-tabBox-btn .item-btn li {
  position: relative;
  z-index: 1;
  padding: 20px 20px;
  font-size: 20px;
  color: #FB948B;
  font-weight: bold;
  cursor: pointer;
}
#age-contents .age-tabBox-btn .item-btn li.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -2;
  width: calc(100% + 20px);
  height: 100%;
  background: #fff;
}
#age-contents .age-tabBox-btn .item-btn li.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: calc(100% + 1px);
  height: 100%;
  border: 1px solid #FB948B;
  border-right: none;
  border-radius: 20px 0 0 20px;
}
#age-contents .age-tabBox-btn .item-btn li:first-child.active span::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 20px;
  border-top: 1px solid #FB948B;
}
#age-contents .age-tabBox-list {
  border: 1px solid #FB948B;
  flex: 1;
  border-radius: 20px;
}


/* "age-list-illust
-----------------------------------------------*/
.age-tabBox-list .scroll-cover:not(:first-child) {
  display: none;
}
.age-list-illust {
  display: grid;
  grid-template-columns: repeat(auto-fit, 100px);
  gap: 40px 40px;
  justify-content: center;
  padding: 40px;
}
.age-list-illust li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 16px;
}
.age-list-illust li a::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
}
/* zoom */
.zoom .age-list-illust {
  grid-template-columns: repeat(auto-fit, 250px);
}
@media only screen and (max-width: 767px) {
  .age-list-illust {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, 90px);
    margin-top: 30px;
  }
  .age-list-illust li a {
    font-size: 14px;
  }
}