@charset "UTF-8";

/* 変数 */
:root {
  --coopBlue: #1e51a2;
  --coopBlueHov: #18458d;
  --coopSky: #009bc2;
  --coopBack: #ffffec;
  --formRed1: #ff2222;
  --formRed2: #ff5252;
  --formRed3: #ffe7e7;
  --gray1: #f4f4f4;
  --gray1hover: #dfdfdf;
  --gray2: #797979;
  --gray2hover: #858585;
  --black1: #111111;
  --black1hover: #333333;
  --borderGray: #bbbbbb;
  --trans: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

/* 一覧ページ */
.sho-tou {
  margin-top: 1.5rem;
}
.sho-tou li {
  position: relative;
  list-style: none;
}
.sho-tou li:has(+ li) {
  margin-bottom: 0.5rem;
}
.sho-tou li::after {
  position: absolute;
  content: "";
  top: calc(50% - (0.6rem / 2));
  left: -1.25rem;
  width: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--coopBlue);
}
.sho-tou a {
  color: #000000;
}
@media screen and (min-width: 680px) {
  .sho-tou li:has(a:hover)::after {
    background-color: var(--coopBlueHov);
  }
  .sho-tou a:hover {
    color: var(--formRed1);
  }
}
span.dib {
  display: inline-block;
  font-size: 0.85em;
  color: #555;
}

/* 各ページ */
h3 {
  margin-bottom: 0 !important;
}
h3 + p {
  margin: 0;
}
h5 {
  font-size: 0.9rem !important;
}
p.about {
  width: fit-content;
  margin: 0 auto;
  margin-top: 2rem;
  padding: 0 7rem;
  font-size: 1.25rem;
  background-image: url(../touhyou-img/clown.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
p.about .line {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: dashed 3px #ff8800;
  line-height: 1;
}
p.about b {
  font-size: 1.5rem;
}
.images_wrapper {
  margin-bottom: 2rem;
}
summary {
  opacity: 1;
  text-align: center;
  list-style: none;
  cursor: pointer;
  transition: var(--trans);
}
summary:hover {
  opacity: 0.8;
}
.images_container {
  margin: 1rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
}
.images_container div {
  position: relative;
  border: solid 2px #bbb;
  border-radius: 0.5rem;
  background-color: #ffffff;
  box-shadow: 0px 1px 4px 0px rgb(0 0 0 / 0.15);
  box-sizing: border-box;
  transition: var(--trans);
}
.images_container .first,
.images_container .second,
.images_container .third {
  background-position: center center;
  background-size: cover;
}
.images_container .first {
  border-color: #df9c00;
  background-image: url(../touhyou-img/gold.webp);
}
.images_container .second {
  border-color: #7d7d7d;
  background-image: url(../touhyou-img/silver.webp);
}
.images_container .third {
  border-color: #af6101;
  background-image: url(../touhyou-img/bronze.webp);
}
.images_container div a {
  display: block;
  height: 100%;
  padding: 0.45rem;
  border-radius: 0.5rem;
  color: #000000;
  box-sizing: border-box;
  transition: var(--trans);
}
.images_container span.votes {
  position: absolute;
  content: "";
  top: 0.3rem;
  right: 0.25rem;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: 5rem;
  line-height: 1;
  font-size: 1.1rem;
  color: #fff;
  background-color: #666;
}
.images_container .first span.votes,
.images_container .second span.votes,
.images_container .third span.votes {
  font-size: 1.5rem;
  font-weight: bold;
}
.images_container .first span.votes {
  background-color: #df9c00;
}
.images_container .second span.votes {
  background-color: #7d7d7d;
}
.images_container .third span.votes {
  background-color: #af6101;
}
.images_container div:active {
  transform: scale(0.9);
}
@media screen and (min-width: 680px) {
  .images_container div:hover {
    transform: scale(0.95);
  }
  /* .images_container div a:hover {
    background-color: var(--coopBack);
  } */
}
.images_container img {
  display: block;
}
.images_container a > img {
  margin-top: 1rem;
}
.images_container p {
  position: relative;
  margin: 0;
  margin-top: 0.75rem;
  padding-top: 0.2rem;
  line-height: 1.4;
  font-size: 0.8rem;
  background-color: #fff;
}
.images_container
  div:not(.first, .second, .third)
  span:not(.votes):not(.item1):not(.item2):not(.item3) {
  position: absolute;
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0.35rem;
  left: 0.35rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  color: #ffffff;
  background-color: var(--gray2);
}
.images_container span img {
  position: absolute;
  content: "";
  top: 0;
  left: 0.5rem;
  width: 3rem;
}
.graph_container {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
canvas {
  width: 100%;
  height: 100%;
}
.comment_title {
  position: relative;
  padding: 0.5rem;
  padding-left: 1.85rem;
  background-color: var(--gray1hover);
}
.comment_title::before {
  position: absolute;
  content: "";
  top: calc(50% - (1rem / 2));
  left: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--coopBlue);
}
.comment_container {
  margin-bottom: 3rem;
}
.comment_container > p {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 3rem;
  line-height: 1.3;
  font-size: 1.2rem;
  color: #ffffff;
  background-color: var(--coopBlue);
}
.comment_container > p:not(:first-of-type) {
  margin-top: 3rem;
}
.merchandise {
  padding-left: 2.5rem;
  color: #555555;
}

/* PC */
@media screen and (min-width: 680px) {
  span.dib {
    margin-left: 0.75rem;
  }
  .images_container {
    grid-template-columns: repeat(6, 1fr);
  }
  .images_container div:not(.first, .second, .third) img {
    margin-top: 2rem;
  }
}

/* SP */
@media screen and (max-width: 679px) {
  .graph_container {
    margin-top: 1rem;
  }
  p.about {
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    font-size: 1rem;
    background: none;
  }
  p.about b {
    font-size: 1.2rem;
  }
  .images_container .second span.votes,
  .images_container .third span.votes {
    font-size: 1.2rem;
  }
  .images_container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .images_container:last-of-type {
    gap: 0.35rem;
  }
  .images_container .first {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
  }
  .images_container .second {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
  }
  .images_container .third {
    grid-column: 4 / 7;
    grid-row: 2 / 3;
  }
  .images_container div:not(.first, .second, .third) {
    grid-column: auto / span 2;
  }
  .images_container .first p {
    text-align: center;
  }
  .images_container a > img {
    margin-top: 1.5rem;
  }
  .images_container span img {
    width: 2.5rem;
  }
  .images_container .first span img {
    width: 3rem;
  }
  .merchandise {
    font-size: 0.9rem;
  }
  .images_container div a:hover {
    background-color: transparent;
  }
}
