@charset "UTF-8";
/* CSS INFORMATION =====================================================
File name : top.css
Description : トップページ
===================================================================== */
.main > .inner {
  padding: 5rem 2rem;
}
@media screen and (min-width: 1080px) {
  .main > .inner {
    padding: 10rem;
  }
}
.main > .inner:has(#deai) {
  background: url(../images/bg_green.jpg) repeat top center;
}
.main > .inner:has(#kenkou) {
  background: url(../images/bg_purple.jpg) repeat top center;
}
.main > .inner:has(#kinun) {
  background: url(../images/bg_gold.jpg) repeat top center;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 8rem;
}
@media screen and (min-width: 1080px) {
  .tabs {
    gap: 3rem;
  }
}
.tabs li img {
  opacity: 0.5;
}
.tabs li:has(a.is-active) img {
  opacity: 1 !important;
}
@media screen and (min-width: 768px) {
  .tabs li {
    width: 33%;
  }
}
.tabs li a {
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}
.tabs li a:hover {
  transform: translateY(-1rem);
}
.tabs li a.is-active {
  font-weight: bold;
}

p.lead {
  display: block;
  margin: 4rem auto;
}
@media screen and (min-width: 768px) {
  p.lead {
    width: 80%;
  }
}

.ranking {
  counter-reset: rank;
  margin-bottom: 10rem;
  padding-top: 6rem;
}
.ranking li {
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 3rem;
  flex-wrap: wrap;
}
@media screen and (max-width: 767px) {
  .ranking li {
    row-gap: 1.5rem;
  }
}
.ranking li .rank {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12rem;
  aspect-ratio: 1/1;
  counter-increment: rank;
  position: relative;
  color: #ffffff;
  font-size: 3rem !important;
  font-weight: 800;
  font-feature-settings: "palt";
  text-align: center;
}
.ranking li .rank::before {
  content: counter(rank) "位";
}
@media screen and (min-width: 768px) {
  .ranking li .rank {
    width: 7.8rem;
    font-size: 2rem !important;
  }
}
.ranking li .name {
  font-size: 1.6em;
  font-weight: 800;
  width: 6em;
  text-align: left;
  text-wrap: nowrap;
}
@media screen and (min-width: 768px) {
  .ranking li .name {
    text-align: center;
    font-size: 1.2em;
  }
}
.ranking li p {
  font-weight: 500 !important;
  font-size: 0.9em;
  display: block;
  flex: 0 0 100%;
}
@media screen and (min-width: 768px) {
  .ranking li p {
    flex: 1;
  }
}
.ranking li:nth-child(-n+3) {
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  padding: 5rem;
}
@media screen and (min-width: 768px) {
  .ranking li:nth-child(-n+3) {
    padding: 3rem;
  }
}
.ranking li:nth-child(-n+3)::before {
  content: "";
  inset: -2rem;
  background: url(../images/bg_washi.jpg) no-repeat top center/cover;
  display: block;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: -1;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.ranking li:nth-child(-n+3) .rank {
  width: 13rem;
}
.ranking li:nth-child(-n+3) .rank::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
}
@media screen and (min-width: 768px) {
  .ranking li:nth-child(-n+3) .rank {
    width: 10.5rem;
  }
}
.ranking li:nth-child(-n+3) .name {
  font-size: 1.6em;
}
@media screen and (min-width: 768px) {
  .ranking li:nth-child(-n+3) .name {
    font-size: 1.2em;
  }
}
.ranking li:nth-child(-n+3) p {
  font-weight: 600 !important;
}
.ranking li:nth-child(n+4):nth-child(odd) {
  background: #fffde5;
}
.ranking li:nth-child(n+4) .rank {
  background: url(../images/icon_other.png) no-repeat center center/contain;
}
.ranking li:nth-child(1) {
  background: url(../images/bg_red.jpg);
}
.ranking li:nth-child(1) .rank::before {
  background-image: url(../images/icon_no1.png);
}
.ranking li:nth-child(2) {
  background: url(../images/bg_blue.jpg);
}
.ranking li:nth-child(2) .rank::before {
  background-image: url(../images/icon_no2.png);
}
.ranking li:nth-child(3) {
  background: url(../images/bg_green.jpg);
}
.ranking li:nth-child(3) .rank::before {
  background-image: url(../images/icon_no3.png);
}
.ranking li:last-child {
  background: #eee !important;
  filter: grayscale(100%);
}