/* 背景写真 */
#Index {
  display: block;
  background-image: url("../assets/index/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100dvh;
  padding-bottom: 20px;
}

.container {
  /* border: 2px solid blue; */
}

/*********** title ************/

/* Top画像 */
#Index .content.title {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 5px solid black;
  border-bottom-width: 10px;
  margin-top: 40px;
  background-color: white;
}

#Index .content.title::before,
#Index .content.title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
}

#Index .wrapper .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

#Index .content.title::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

#Index h2 {
  font-size: 48px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

#Index h2::after {
  display: inline-block;
  content: attr(data);
  font-size: 12px;
  color: var(--black);
  margin: auto 6px;
}

@media(max-width:997px) {
  #Index h2 {
    line-height: 48px;
    flex-direction: column;
  }

  #Index h2::after {
    line-height: normal;
  }
}

@media (max-width:576px) {
  #Index h2 {
    line-height: 32px;
    font-size: 32px;
  }
}

#Index .form_text {
  font-size: 35px;
  text-align: left;
  /* border: 2px solid tomato; */
  margin: 3% 0 0;
  font-weight: unset;
}

.logo {
  display: flex;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.grid_box {
  width: 100%;
  height: 200px;
  border: 5px solid var(--black);
}

.grid_box {
  position: relative;
  background-image: url("../assets/index/bg-small.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.grid_box p {
  padding: 12px;
  text-align: left;
  font-size: 21px;
  font-weight: 900;
  position: relative;
  line-height: 38px;
}

.grid_box p .underline {
  border-bottom: 2px solid var(--black);
}

.grid_box::before {
  content: "";
  top: 0;
  left: 0;
  position: absolute;
  text-align: left;
  font-size: 28px;
  font-weight: bold;
  display: inline-block;
  background-image: url(../assets/index/baloon.png);
  background-position: -60px -120px;
  width: 100%;
  height: 100%;
  background-size: 110%;
}

.grid_box::after {
  content: "";
  bottom: -5px;
  right: -15px;
  position: absolute;
  font-weight: bold;
  background-image: url(../assets/index/hrs_dft_inobookun.png);
  width: 45%;
  height: 80%;
  background-size: 100%;
}

.box_2::after {
  bottom: -10px;
  right: 0px;
  background-image: url(../assets/index/hrs_haganesan.png);
  width: 35%;
  height: 80%;
}

.box_3::after {
  right: -5px;
  background-image: url(../assets/index/hrs_dft_shockProtectorman.png);
}

.box_4::after {
  background-image: url(../assets/index/hrs_dft_gratingchan.png);
}

.box_5::after {
  right: -10px;
  background-image: url(../assets/index/hrs_dft_toychan.png);
}

.box_6::after {
  background-image: url(../assets/index/hrs_dft_miegureheroes_jr.png);
}

#Index .wrapper:has(.index_btn.title) {
  display: flex;
}

#Index .index_btn.title {
  width: 50%;
  padding: 16px 10px;
  margin: 30px auto;
  text-align: center;
}

#Index .index_btn_text {
  cursor: pointer;
  font-weight: bolder;
  font-size: 20px;
  color: var(--black);
}

#Index .index_btn:hover {
  cursor: pointer;
  background-color: var(--yellow);
}

@media screen and (min-width: 993px) and (max-width: 1080px) {
  .grid_box {
    height: 160px;
  }

  .grid_box p {
    padding: 10px;
    font-size: 20px;
    line-height: 28px;
  }
}

/* スマホ表示 */
@media screen and (min-width: 900px) and (max-width: 992px) {
  .logo {
    height: 18rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid_box {
    height: 16rem;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid_box::before {
    width: 80%;
    background-position: -68px -150px;
  }

  .grid_box::after {
    bottom: -25px;
    height: 100%;
  }

  .grid_box p {
    padding: 20px;
    font-size: 25px;
  }
}

@media screen and (min-width: 800px) and (max-width: 899px) {
  .logo {
    height: 16rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid_box {
    height: 15rem;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid_box::before {
    width: 85%;
    background-position: -70px -140px;
  }

  .box_2::after {
    bottom: 0px;
  }

  .grid_box p {
    padding: 20px;
    font-size: 25px;
  }
}

@media screen and (min-width: 700px) and (max-width: 799px) {
  .logo {
    height: 14rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid_box::before {
    background-size: 90%;
    background-position: -65px -108px;
  }

  .grid_box {
    height: 12rem;
  }

  .grid_box::after {
    bottom: -10px;
    height: 100%;
  }

  .grid_box p {
    line-height: 40px;
    padding: 10px;
    font-size: 19px;
  }
}

@media screen and (min-width: 600px) and (max-width: 699px) {
  .logo {
    height: 12rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid_box::before {
    background-size: 90%;
    background-position: -65px -70px;
  }

  .grid_box {
    height: 12rem;
  }

  .grid_box p {
    line-height: 35px;
    padding: 15px 5px 5px 5px;
    font-size: 18px;
  }
}

@media screen and (min-width: 500px) and (max-width: 599px) {
  .logo {
    height: 10rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid_box::before {
    background-size: 95%;
    background-position: -65px -70px;
  }

  .grid_box::after {
    width: 45%;
  }

  .box_2::after {
    width: 35%;
  }

  .grid_box {
    height: 11rem;
  }

  .grid_box p {
    line-height: 30px;
    padding: 10px 5px 5px 5px;
    font-size: 15px;
  }
}

@media screen and (min-width: 400px) and (max-width: 499px) {
  .logo {
    height: 8rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .grid_box::before {
    background-size: 110%;
    background-position: -65px -70px;
  }

  .grid_box::after {
    width: 50%;
  }

  .box_2::after {
    width: 40%;
  }

  .grid_box {
    height: 10rem;
  }

  /* .grid_box::after {
    width: 50%;
  } */

  .grid_box p {
    line-height: 20px;
    padding: 15px 5px 5px 5px;
    font-size: 12px;
  }
}

@media screen and (min-width: 320px) and (max-width: 399px) {
  .logo {
    height: 6rem;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
  }

  #Index {
    padding-top: 10px;
  }

  #Index .index_btn.title {
    width: 80%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .grid_box::before {
    background-size: 130%;
    background-position: -65px -70px;
  }

  .grid_box {
    height: 9rem;
  }

  .grid_box::after {
    width: 55%;
  }

  .box_2::after {
    width: 40%;
  }

  .grid_box p {
    line-height: 20px;
    padding: 15px 5px 5px 1px;
    font-size: 11px;
  }

  .index_btn_text {
    font-size: 12px;
  }
}