@charset "UTF-8";
/*書き換え禁止*/
* ,*::before,*::after{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.iks_logo_left, .iks_logo_right {display: none !important;}
#header_bot {display: none !important;}
/*書き換え禁止*/

/*ここから書いてね*/


:root{
  --white:#fcf5d3;
  --cream:#f4e2a0;
  --ochre:#9d7838;
  --brown:#662619;
  --red:#ac3929;
}

body{
  font-family: "Kaisei Decol",serif;
  color: var(--brown);
  background: linear-gradient(to right,
  #662619 2.5%,
  #803326 10%,
  #ac3929 50%,
  #803326 90%,
  #662619 97.5%)
}


/*リンク・hover無効化*/
.disabled{
  display: none!important;
  pointer-events: none;
}

.c-box{
  box-shadow: none !important;
}


/* ファーストビュー*/

.fv-wrapper{
  width: 100%;
  height: 96svh;
  position: relative;
}

.logo{
  width: 280px;
  filter: drop-shadow(9px 9px 3px var(--brown));
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  animation: logo 0.5s 1s ease-out both;
  z-index: 100;
}

@keyframes logo{
  from{
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }

  to{
    opacity: 1;
  }
}

.brown-piece-gradient{
  width: 85px;
  height: auto;
  transform: rotate(20deg);
  position: absolute;
  filter: drop-shadow(5px 5px 5px var(--brown));
  top: 10%;
  left: 15%;
  animation: brown-piece 1s ease forwards, float 4s 1s ease-in-out infinite;
}

@keyframes brown-piece{
  0%{
    opacity: 0;
    translate: 10% 10%;
  }

  50%{
    opacity: 0.3;
  }

  100%{
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes float {
  0%, 100% {
    translate: 1;
  }
  50% {
    translate: 0 10%;
  }
}

.white-piece-gradient1{
  width: 50px;
  height: 50px;

  background-image: linear-gradient(to bottom,var(--white),var(--cream),var(--white));

  mask-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;

  -webkit-mask-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;

  position: absolute;
  top: 23%;
  right: 15%;
  transform: scaleX(-1) rotate(105deg);
  animation: white-piece1 1s ease forwards, float 4s 1s ease-in-out infinite;
}

@keyframes white-piece1{
  0%{
    opacity: 0;
    translate: -10% 10%;
  }

  50%{
    opacity: 0.3;
  }

  100%{
    opacity: 1;
    translate: 0 0;
  }
}

.ochre-piece{
  width: 70px;
  height: auto;
  transform: rotate(30deg);
  position: absolute;
  filter: drop-shadow(5px 5px 5px var(--brown));
  top: 75%;
  right: 10%;
  animation: ochre-piece 1s ease forwards, float 4s 1s ease-in-out infinite;
}

@keyframes ochre-piece{
  0%{
    opacity: 0;
    translate: -10% -10%;
  }

  50%{
    opacity: 0.3;
  }

  100%{
    opacity: 1;
    translate: 0 0;
  }
}

.white-piece-gradient2{
  width: 50px;
  height: 50px;

  background-image: linear-gradient(to right,var(--cream),var(--white),var(--cream));

  mask-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;

  -webkit-mask-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;

  position: absolute;
  top: 68%;
  left: 15%;
  transform: rotate(-105deg);

  animation: white-piece2 1s ease forwards, float 4s 1s ease-in-out infinite;
}

@keyframes white-piece2{
  0%{
    opacity: 0;
    translate: 10% -10%;
  }

  50%{
    opacity: 0.3;
  }

  100%{
    opacity: 1;
    translate: 0 0;
  }
}

.footprint-left{
  width: 15px;
  height: 30px;
  z-index: -1;
  opacity: 0;
}

.footprint-right{
  width: 15px;
  height: 30px;
  z-index: -1;
  opacity: 0;
}

.fp1{
  position: absolute;
  top: 60%;
  right: 10%;
  transform: rotate(220deg);
  animation: footprint 1s 2s ease forwards;
}

.fp2{
  position: absolute;
  top: 64%;
  right: 23%;
  transform: rotate(215deg);
  animation: footprint 1s 2.5s ease forwards;
}

.fp3{
  position: absolute;
  top: 70%;
  right: 27%;
  transform: rotate(227deg);
  animation: footprint 1s 3s ease forwards;
}

.fp4{
  position: absolute;
  top: 73%;
  right: 42%;
  transform: rotate(220deg);
  animation: footprint 1s 3.5s ease forwards;
}

.fp5{
  position: absolute;
  top: 81%;
  right: 43%;
  transform: rotate(220deg);
  animation: footprint 1s 4s ease forwards;
}

.fp6{
  position: absolute;
  top: 86%;
  right: 58%;
  transform: rotate(210deg);
  animation: footprint 1s 4.5s ease forwards;
}

@keyframes footprint{
  to{
    opacity: 1;
  }
}


/*目次*/

.index{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px auto;
  max-width: 400px;
}

.index-partition{
  width: 15px;
}

.index-text{
  font-size: 12px;
  color: var(--white);
  width: 100px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
}

.index-text::after{
  content: "";
  display: block;
  width: 7.5px;
  height: 7.5px;
  transform: rotate(-45deg);
  border-left: solid 1px var(--white);
  border-bottom: solid 1px var(--white);
}


/*見出し*/

.ribbon{
  width: 200px;
  margin: 60px auto 15px auto;
  display: block;
  filter: drop-shadow(5px 5px 5px var(--brown));
}


/*ストーリー*/

.s-flame{
  width: 330px;
  height: 250px;
  border: solid 2px var(--cream);
  background-color: var(--ochre);
  display: flex;
  justify-content: center;
  align-items: center;
  margin:0 auto;
  position: relative;
}

.s-line{
  width: 240px;
  height: 230px;
  border-top: solid 1.5px var(--cream);
  border-bottom: solid 1.5px var(--cream);
  position: absolute;
}

.flame-decoration{
  width: 30px;
  position: absolute;
}

.tl{
  top: 3px;
  left: 3px;
}

.tr{
  top: 3px;
  right: 3px;
  transform: scaleX(-1);
}

.bl{
  bottom: 3px;
  left: 3px;
  transform: scaleY(-1);
}

.br{
  bottom: 3px;
  right: 3px;
  transform: scale(-1);
}

.s-textbox{
  width: 290px;
  height: 210px;
  background-color: var(--white);
  display: flex;
  align-items:center;
}
.s-text{
  font-size: 12px;
  padding-left: 15px;
  line-height: 18px;
}
.s-text span{
  font-weight: bold;
  font-size: 14px;
}

.ponkichi{
  width: 90px;
  margin-left: -75px;
}

.s-text2{
  font-size: 12px;
  color: var(--white);
  width: fit-content;
  margin: 40px auto;
  position: relative;
  text-shadow: 0 0 7px var(--white);
  line-height: 24px;
}

.s-text2 span{
  font-size: 16px;
}

.s-text2::before{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  width: 20px;
  height: 20px;
  top: -20%;
  left: -15%;
  transform: rotate(20deg);
  background-repeat: no-repeat;
}

.s-text2::after{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  width: 20px;
  height: 20px;
  bottom: -20%;
  right: -15%;
  transform: scaleX(-1) rotate(-20deg);
  background-repeat: no-repeat;
}


/*コース紹介*/

.course{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 70px;
}

.c-box{
  width: 250px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 5px 5px 5px rgba(66, 26, 19, 0.75);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.c-box::after {
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(244, 226, 160, 0) 0%, rgba(244, 226, 160, 3) 100%);
    transform: skewX(-25deg);
    transition: .5s;
    content: '';
}

.triangle{
  width: 15px;
  height: 15px;
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(to right, var(--ochre), var(--cream));
  z-index: 2;
}

.t-tl{
  top: 0;
  left: 0;
}

.t-tr{
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.t-bl{
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.t-br{
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

.c-flame{
  width: 240px;
  height: 90px;
  border: solid 1px;
  border-image: linear-gradient(to right, var(--ochre), #dbc482, var(--ochre)) 1;
  position: absolute;
  z-index: 1;
}

.c-line{
  width:210px;
  height: 70px;
  border-top: solid 1px;
  border-bottom: solid 1px;
  position: absolute;
}

.c-box-text{
  font-size: 12px;
  text-align: center;
}

.c-box-text span{
  font-size: 18px;
  font-weight: bold;
}

.standard{
  background-color: var(--brown);
  color: var(--white);
}

.standard.c-box::after{
  background-image: linear-gradient(90deg, rgba(179, 147, 140, 0), rgba(179, 147, 140, 3));
}

.c-box-comment{
  font-size: 12px;
  color: var(--white);
}

.c-box-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.standard .c-line{
  border-color: var(--white);
}

.standard .c-box-text::before{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/white-piece.svg);
  width: 15px;
  height: 15px;
  opacity: 0.8;
  transform: rotate(-30deg);
  top: 45px;
  left: 18px;
  background-repeat: no-repeat;
}

.standard .c-box-text::after{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/footprints.svg);
  width: 18px;
  height: 30px;
  opacity: 0.8;
  background-repeat: no-repeat;
  top: 45px;
  right: 15px;
}

.kids{
  background-color: var(--white);
  color: var(--brown);
}

.kids.c-box::after{
  background-image: linear-gradient(90deg, rgba(219, 196, 130,, 0), rgba(219, 196, 130,, 3));
}

.kids .c-line{
  border-color: var(--brown);
}

.kids .c-box-text::before{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/p-footprints.svg);
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transform: rotate(-30deg);
  background-repeat: no-repeat;
  top: 45px;
  left: 25px;
}

.kids .c-box-text::after{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/p-footprints2.svg);
  width: 30px;
  height: 40px;
  opacity: 0.8;
  background-repeat: no-repeat;
  top: 40px;
  right: 15px;
}

.c-text{
  font-size: 12px;
  color: var(--white);
  text-align: center;
}


/*参加方法*/

.entry-icon{
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 25px;
}

.entry-icon-box{
  width: 140px;
  aspect-ratio: 1/1;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/flame.svg);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.e-icon-text{
  font-size: 12px;
  margin-top: 10px;
}

.smartphone{
  width: auto;
  height: 60px;
}

.clock{
  width: auto;
  height: 60px;
}

.entry{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.entry-box{
  width: 300px;
  height: 200px;
  background-color: var(--white);
  border: solid 1px var(--brown);
  position: relative;
  display: flex;
  flex-direction: column;
}

.entry-title{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-left: 20px;
}

.number-box{
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.number-innerbox{
  width: 100%;
  height: fit-content;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.number-box-top{
  position: absolute;
  width: 100%;
  height: 0.5px;
  background-color: var(--brown);
  top: 0;
}

.number-box-bottom{
  position: absolute;
  width: 100%;
  height: 0.5px;
  background-color: var(--brown);
  bottom: 0;
}

.number-innerbox::before{
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--brown);
  position: absolute;
  top: -3.5px;
}

.number-innerbox::after{
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--brown);
  position: absolute;
  bottom: -3.5px;
}

.entry-title-text{
  font-size: 14px;
}

.entry-box::before{
  content: "";
  width: 25px;
  height: 15px;
  background-color: var(--white);
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
  filter: drop-shadow(3px 3px 3px var(--brown));
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 1.5s ease-in infinite;
}

.entry-box:nth-child(3)::before {
  display: none;
}

.entry-box::after{
  content: "";
  width: 25px;
  height: 15px;
  background-color: var(--white);
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
  filter: drop-shadow(3px 3px 3px var(--brown));
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 1.5s ease-in infinite;
}

.entry-box:nth-child(3)::after {
  display: none;
}

.entry-box-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rally-paper{
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/rally-paper.svg);
  width: 180px;
  height: 120px;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(3px 3px 3px var(--ochre)) blur(3px);
  margin-top: 10px;
}

.button{
  width: 130px;
  height: 30px;
  border-radius: 999px;
  background-color: var(--red);
  box-shadow: 3px 3px 0px var(--brown);
  font-size: 12px;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -73px;
  z-index: 2;
  transition: 0.3s ease-in-out;
}

.map{
  width:160px;
  height: auto;
  filter: drop-shadow(3px 3px 3px var(--ochre));
}

.entry-box3-illustration{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.entry-box3-text{
  font-size: 12px;
}

.entry-box3-text a{
  color: var(--red);
  text-decoration: underline;
}

.question{
  width: 75px;
  height: auto;
}

.brown-piece{
  width: 55px;
  height: auto;
  transform: rotate(-15deg);
}

.program-box{
  width: 300px;
  height: 200px;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/flame2.svg);
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-repeat: no-repeat;
  position: relative;
}

.program-container{
  margin-left: 20px;
}

.program-title{
  font-size: 14px;
}

.program-title span{
  font-size: 18px;
}

.program-text{
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.search-text{
  font-size: 12px;
}

.search-button-wrapper{
  display: flex;
  align-items: center;
  gap: 20px;
}


.search-button {
    font-size: 12px;
    display: block;
    position: relative;
    box-sizing: border-box;
    width: fit-content;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    padding-right: 10px;
    padding-left: 5px;
    color: var(--brown);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.search-button::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--brown);
  bottom: 0;
  left: 0;
  transition: all 0.3s;
}

.search-button::after {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--brown);
  rotate: 40deg;
  right: -2px;
  bottom: 5px;
  transition: all 0.3s;
}


.ponkichi2{
  width: 80px;
  height: auto;
  position: absolute;
  right: 8%;
  bottom: 20%;
  cursor: pointer;
}

.ponkichi2.bounce{
  animation: bounce 2s ease-out both;
}

.ponkichi2.wiggle{
  animation: wiggle 0.8s ease-in-out;
}

@keyframes bounce {
  0%, 40%, 80%, 100% { 
    transform: translateY(0);
  }
  20% { 
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

/*景品について*/

.gift-box{
  width: 300px;
  height: 450px;
  background-color: var(--white);
  border: solid 1px var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  gap: 20px;
  padding-bottom: 32px;
}

.gift-box-container{
  width: fit-content;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.gift-title{
  font-size: 24px;
}

.medium{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.medium-img{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  margin-top: 20px;
}

.ar-smartphone{
  width: 60px;
  height: auto;
  transform: rotate(-15deg);
}

.ponkichi-ar{
  width: 43px;
  height: auto;
  transform: rotate(-15deg);
  margin-left: -52px;
  filter: blur(1.5px);
}

.ar-smartphone-box{
  width: 108px;
  height: 130px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ar-smartphone-box::before{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/gift-deco.svg);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  top: 0px;
  left: 0px;
}

.ar-smartphone-box::after{
  content: "ぽん吉ARファイル";
  font-size: 12px;
  width: max-content;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.wallpaper{
  width: 120px;
  height: auto;
}

.wallpaper-box{
  width: fit-content;
  height: 130px;
  position: relative;
}

.wallpaper-box::before{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/gift-deco.svg);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  top: 0px;
  right: -10px;
  transform: scaleX(-1);
}

.wallpaper-box::after{
  content: "オリジナルスマホ壁紙";
  font-size: 12px;
  width: max-content;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.final{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.final::before{
  content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/gift-deco.svg);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  top: 40px;
  left: 0px; 
}

.final::after{
content: "";
  position: absolute;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/gift-deco.svg);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  top: 40px;
  right: -10px;
  transform: scaleX(-1);
}

.snack-box{
  width: fit-content;
  height: fit-content;
  position: relative;
  margin-top: 20px;
}

.snack{
  width: 100px;
  height: auto;
}

.snack-box::after{
  content: "お菓子";
  position: absolute;
  font-size: 12px;
  width: max-content;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
}


/*特集PV*/

.pv{
  width: 70%;
  max-width: 700px;
  aspect-ratio: 16/9;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  border: solid 1px var(--brown);
  position: relative;
}

.pv iframe{
  width: 85%;
  height: 85%;
}


/*注意事項*/

.attention-box{
  width: 300px;
  height: 380px;
  background-color: var(--white);
  border: solid 1px var(--brown);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
  padding: 15px;
}

.attention-text p{
  font-size: 12px;
  color: var(--brown);
}

.attention-text a{
  text-decoration: none;
  color: var(--brown);
  pointer-events: none;
}

/*リンク無効化
.attention-text a{
  color: var(--red);
  text-decoration: underline;
}
  */

.attention-text p+p{
  margin-top: 12px;
}


/*ラリー専用ページに飛ぶボタン*/
/*
#rally-btn{
  transition: background-color 0.3s ease;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  position: fixed;
  bottom: 90px;
  right: -15px;
  z-index: 999;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/loupe.svg);
  width: 100px;
  height: 100px;
  filter: drop-shadow(1px 1px 5px var(--brown));
}*/

.rally-btn-text{
  position: absolute;
  font-size: 12px;
  top: 18%;
  left: 12%;
  color: var(--brown);
}

/*
#rally-btn.show{
  transform: translateY(0);
  visibility: visible;
  cursor: pointer;
}*/

/*ラリー専用ページに飛ぶボタン*/
  #rally-btn {
    position: fixed;
    right: -120px;
    bottom: 100px;
    transition: 0.5s;
    z-index: 999;
    background-image: url(https://ikkyosai.com/visitor/topics/img/rally/loupe.svg);
    width: 80px;
    height: 85px;
    background-repeat: no-repeat;
    filter: drop-shadow(1px 1px 5px var(--brown));
    transition: 0.5s ease;
  }

  #rally-btn.show {
    right: 0px;
  }


  /*FVのマウスストーカー*/

.cursor{
  position: fixed;
  top: -15px;
  left: -15px;
  width: 30px;
  height: 30px;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/footprints.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 10;
  transform: translate(-50%,-50%) rotate(var(--angle, 0deg));
  animation: cursor 2s ease-out 0s forwards;
  pointer-events: none;
}

@keyframes cursor{
  0%{
    opacity: 1;
  }

  100%{
    opacity: 0;
  }
}


/*共通アニメーション*/

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/*スマホ版*/
@media (max-width: 1023px){
  .pc-only{
    display: none;
  }

  .s-text2{
    margin-top: 60px;
  }


  /* カルーセル全体 */
.carousel {
  display: flex;
  justify-content: center;
}

/* カードを横一列に並べる */
.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* 左右のボタン */
.carousel-btn {
  display: none;
}

/* カードの下の丸3つ */
.carousel-dots {
  display: none;
}

.pv{
  width: 300px;
  aspect-ratio: 16/10;
  padding-top: 2.5%;
  padding-bottom: 2.5%;
}

.argyle-pc{
  display: none;
}

}

/*目次タブレット版*/
@media(min-width: 675px){
  .index{
    max-width: none;
  }

  .pc-only{
    display: block;
  }

}

/*PC版*/

@media (min-width: 1024px) {

  .smartphone-only{
    display: none;
  }

/* ファーストビュー*/

.fv-wrapper{
  height: 87svh;
}

.logo{
  width: 500px;
  top: 15%;
}

.brown-piece-gradient{
  width: 150px;
  top: 6%;
  left: 10%;
}

.ochre-piece{
  width: 90px;
  height: auto;
  transform: rotate(30deg);
  position: absolute;
  filter: drop-shadow(5px 5px 5px var(--brown));
  top: 70%;
  right: 10%;
}

.white-piece-gradient1{
  width: 75px;
  height: 75px;
  top: 15%;
}

.white-piece-gradient2{
  width: 75px;
  height: 75px;
  top: 70%;
}

.footprint-left{
  width: 25px;
  height: 50px;
}

.footprint-right{
  width: 25px;
  height: 50px;
}

.fp1{
  top: 51%;
  right: 10%;
  transform: rotate(215deg);
}

.fp2{
  top: 57%;
  right: 20%;
  transform: rotate(220deg);
}

.fp3{
  top: 72%;
  right: 23%;
  transform: rotate(240deg);
}

.fp4{
  top: 71%;
  right: 32%;
  transform: rotate(230deg);
}

.fp5{
  top: 83%;
  right: 37%;
  transform: rotate(240deg);
}

.fp6{
  top: 85%;
  right: 46%;
  transform: rotate(230deg);
}


/*目次*/

.argyle{
  display: none;
}

.index{
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.index-partition{
  width: 30px;
}

.index-text{
  font-size: 18px;
  width: 12%;
  height: 75px;
}

.index-text::after{
  width: 15px;
  height: 15px;
  border-left: solid 1.5px var(--white);
  border-bottom: solid 1.5px var(--white);
  bottom: 3px;
}

.index-text:hover{
  transform: scale(1.2); 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.index-text:hover::after {
  animation: soft-bounce 1.4s ease-in-out infinite;
}

/* やわらかく上下するアニメーション */
@keyframes soft-bounce {
  0%   { transform: rotate(-45deg) translate(0px,0px); }
  50%  { transform: rotate(-45deg) translate(-3px,3px); }
  100% { transform: rotate(-45deg) translate(0px,0px);}
}


/*見出し*/

.ribbon{
  width: 300px;
  filter: drop-shadow(5px 5px 5px var(--brown));
  margin-top: 100px;
}


/*ストーリー*/

.story{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10%;
}

.s-flame{
  width: 495px;
  height: 345px;
  border: solid 3px var(--cream);
  margin: 0px;
}

.s-line{
  width: 360px;
  height: 315px;
  border-top: solid 2.5px var(--cream);
  border-bottom: solid 2.5px var(--cream);
}

.flame-decoration{
  width: 45px;
}

.tl{
  top: 3px;
  left: 3px;
}

.tr{
  top: 3px;
  right: 3px;
}

.bl{
  bottom: 3px;
  left: 3px;
}

.br{
  bottom: 3px;
  right: 3px;
}

.s-textbox{
  width: 435px;
  height: 285px;
}
.s-text{
  font-size: 16px;
  padding-left: 25px;
  line-height: 25px;
}

.s-text span{
  font-size: 18px;
}

.ponkichi{
  width: 135px;
  margin-left: -65px;
}

.s-text2{
  font-size: 16px;
  margin: 0px;
  line-height: 32px;
}

.s-text2 span{
  font-size: 21px;
}

.s-text2::before{
  width: 30px;
  height: 30px;
  top: -20%;
  left: -15%;
  transform: rotate(20deg);
}

.s-text2::after{
  width: 30px;
  height: 30px;
  bottom: -20%;
  right: -15%;
  transform: rotate(-20deg);
}


/*コース紹介*/

.course{
  flex-direction: row;
  gap: 50px;
}

.c-box{
  width: 375px;
  height: 150px;
  display: flex;
  box-shadow: 5px 5px 5px rgba(66, 26, 19, 0.75);
}

/*リンク無効化
.c-box:hover{
  transform: translate(5px, 5px);
  box-shadow: none;
  cursor: pointer;
}

.c-box:hover::after {
    animation: flash .75s;
}
  */

@keyframes flash {
    100% {
        left: 120%;
    }
}

.c-box-comment{
  font-size: 18px;
}

.triangle{
  width: 20px;
  height: 20px;
}

.c-flame{
  width: 360px;
  height: 135px;
  border: solid 1.5px;
  border-image: linear-gradient(to right, var(--ochre), #dbc482, var(--ochre)) 1;
}

.c-line{
  width:315px;
  height: 105px;
  border-top: solid 1.5px;
  border-bottom: solid 1.5px;
}

.c-box-text{
  font-size: 18px;
}

.c-box-text span{
  font-size: 27px;
}

.standard .c-box-text::before{
  width: 25px;
  height: 25px;
  top: 65px;
  left: 25px;
}

.standard .c-box-text::after{
  width: 24px;
  height: 40px;
  opacity: 0.8;
  top: 65px;
  right: 20px;
}

.kids .c-box-text::before{
  width: 30px;
  height: 30px;
  opacity: 0.8;
  top: 65px;
  left: 30px;
}

.kids .c-box-text::after{
  width: 45px;
  height: 60px;
  top: 60px;
  right: 20px;
}

.c-text{
  font-size: 18px;
  text-align: center;
}


/*参加方法*/

.entry-icon{
  gap: 60px;
}

.entry-icon-box{
  width: 210px;
  aspect-ratio: 1/1;
}

.e-icon-text{
  font-size: 18px;
  margin-top: 15px;
}

.smartphone{
  height: 90px;
}

.clock{
  height: 90px;
}

.entry{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
}

.entry-box{
  width: 450px;
  height: 300px;
  background-color: var(--white);
  border: solid 1px var(--brown);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 20px) / 2);
}

.entry-title{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  margin-left: 30px;
}

.number-box{
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.number-innerbox{
  width: 100%;
  height: fit-content;
  font-size: 27px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entry-title-text{
  font-size: 21px;
}

.entry-box::before{
  display: none;
}

.entry-box::after{
  display: none;
}

.entry-box-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rally-paper{
  width: 240px;
  height: 160px;
  margin-top: 20px;
}

.button{
  width: 195px;
  height: 45px;
  border-radius: 999px;
  background-color: var(--red);
  box-shadow: 4.5px 4.5px 0px var(--brown);
  font-size: 18px;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -100px;
}

.button:hover{
  transform: translate(4.5px,4.5px);
  box-shadow: none;
  cursor: pointer;
}

.map{
  width: 240px;
}

.entry-box3-illustration{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60px;
}

.entry-box3-text{
  font-size: 18px;
}

.entry-box3-text a:hover{
  opacity: 0.7;
}

.question{
  width: 112.5px;
  height: auto;
}

.brown-piece{
  width: 97.5px;
  height: auto;
}

/* カルーセル全体 */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 900px;
}

/* カードを表示する領域 */
.carousel-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* カードを横一列に並べる */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
}

/* 左右のボタン */
.carousel-btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--brown);
  font-size: 18px;
  cursor: pointer;
}

.carousel-btn.is-disabled{
  pointer-events: none;
  opacity: 0.5;
}

.carousel-btn.is-active:hover {
  background-color: var(--brown);
  color: var(--white);
}

/* バー全体 */
.carousel-progress {
  width: 600px;
  height: 10px;
  margin: 24px auto;
  background: #fcf5d3;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.8;
  cursor: pointer;
}

/* 着色される部分 */
.carousel-progress-bar {
  width: 66.6667%;
  height: 100%;
  background: #662619;
  border-radius: 10px;
  cursor: grab;
}

.program-box{
  width: 450px;
  height: 300px;
}

.program-container{
  margin-left: 30px;
}

.program-title{
  font-size: 21px;
}

.program-title span{
  font-size: 27px;
}

.program-text{
  font-size: 18px;
}

.search-text{
  font-size: 16px;
}

.search-button {
    font-size: 16px;
    display: block;
    position: relative;
    box-sizing: border-box;
    width: fit-content;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    padding-right: 15px;
    padding-left: 10px;
    color: var(--brown);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.search-button::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--brown);
  bottom: 0;
  left: 0;
  transition: all 0.3s;
}

.search-button::after {
  content: "";
  display: block;
  position: absolute;
  width: 24px;
  height: 1px;
  background: var(--brown);
  rotate: 40deg;
  right: -2px;
  bottom: 8px;
  transition: all 0.3s;
}

.search-button:hover{
  translate: 5px 0;
  opacity: 0.7;
}

.ponkichi2{
  width: 120px;
  height: auto;
  right: 8%;
  bottom: 20%;
}


/*景品について*/

.gift-box{
  width: 700px;
  height: 400px;
  border: solid 1px var(--brown);
  flex-direction: row;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.gift-box-container{
  display: none;
}

.gift-title{
  font-size: 24px;
}

.medium{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.medium-img{
  gap: 40px;
  margin-bottom: 0px;
}

.ar-smartphone{
  width: 90px;
}

.ponkichi-ar{
  width: 60px;
  margin-left: -75px;
}

.ar-smartphone-box{
  height: 195px;
  width: 162px;
  position: relatives;
}

.ar-smartphone-box::before{
  width: 30px;
  height: 30px;
}

.ar-smartphone-box::after{
  font-size: 18px;
}

.wallpaper{
  width: 180px;
}

.wallpaper-box{
  height: 195px;
}

.wallpaper-box::before{
  width: 30px;
  height: 30px;
}

.wallpaper-box::after{
  font-size: 18px;
}


.final{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
}

.final::before{
  width: 30px;
  height: 30px;
  top: 80px;
}

.final::after{
  width: 30px;
  height: 30px;
  top: 45px;
  right: -20px;
}

.snack-box{
  height: 195px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.snack{
  width: 170px;
  height: auto;
}

.snack-box::after{
  font-size: 18px;
  bottom: -20px;
}


/*注意事項*/

.attention-box{
  width: 700px;
  height: 330px;
  padding: 30px;
}

.attention-text p{
  font-size: 16px;
}

.attention-text p+p{
  margin-top: 16px;
}

/*リンク無効化
.attention-text a:hover{
  opacity: 0.7;
  cursor: pointer;
}
  */


/*ラリー専用ページに飛ぶボタン*/
#rally-btn{
  transform: scale(1.5);
  right: -160px;
  bottom: 120px;
}

#rally-btn.show{
  right: 13px;
  bottom: 130px;
}

#rally-btn:hover{
  transform: scale(1.6);
}

/*FVのマウスストーカー*/

.cursor{
  position: fixed;
  top: -15px;
  left: -15px;
  width: 60px;
  height: 60px;
  background-image: url(https://ikkyosai.com/visitor/topics/img/rally/footprints.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 10;
  transform: translate(-50%,-50%) rotate(var(--angle, 0deg));
  animation: cursor 2s ease-out 0s forwards;
  pointer-events: none;
}

@keyframes cursor{
  0%{
    opacity: 1;
  }

  100%{
    opacity: 0;
  }
}


}


/*浮いてるハンバーガーメニューの色変更*/
.hamburger-fade__wrapper {
  background-color: var(--white);
}

/*ハンバーガーメニューの棒の色*/
.hamburger-fade__line{
  background-color: var(--brown);
}

.hamburger-fade.active .hamburger-fade__line {
    background-color: var(--brown)
}

/*フッターの色変更*/
.footer_wrapper{
  background-color: var(--white)!important;
}

.footer_copyrights_l{
  color: var(--brown);
}

.footer_copyrights_s{
  color: var(--brown);
}

.footer_wrapper a{
  color: var(--brown);
}

.footer_menu_title{
  color: var(--brown);
  border-color: var(--brown);
}

.footer_menu_box p{
  color: var(--brown)!important;
}

.footer_menu_li a{
  color: var(--brown)!important;
}

.footer_link_wrap a{
  color: var(--brown);
}

/*SNSアイコンを文字と同じ色にする（元の画像は白なので、画像を枠の外へずらし、アイコンの形で切り抜いた背景色を見せる）*/
.footer_icon img{
  object-position: -9999px 0;
  background-color: var(--brown);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.footer_icon img[src$="x.svg"]{ --icon: url('/visitor/img/icon/x.svg'); }
.footer_icon img[src$="instagram.svg"]{ --icon: url('/visitor/img/icon/instagram.svg'); }
.footer_icon img[src$="facebook.svg"]{ --icon: url('/visitor/img/icon/facebook.svg'); }
.footer_icon img[src$="YouTubeicon.svg"]{ --icon: url('/visitor/img/icon/YouTubeicon.svg'); }

/* img要素自体を新しい画像で上書きする */
/*おんなじ画像のURLで大丈夫だよ～*/
img.piece_pc {
  content: url('https://ikkyosai.com/visitor/topics/img/rally/footer.svg');
}
img.piece_sp {
  content: url('https://ikkyosai.com/visitor/topics/img/rally/footer.svg');
}
/*ページトップボタン画像変更*/
#pagetop img {
  content: url('https://ikkyosai.com/visitor/topics/img/rally/pagetop.svg');
  filter: drop-shadow(1px 1px 5px var(--brown));
}

#pagetop p{
  display: none;
}

#pagetop span{
  display: none;
}

#pagetop:hover img {
    transform: rotate(0deg);
}

/*スクロールバーの色変更*/
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  background-color:var(--white);
}
::-webkit-scrollbar-thumb {
  background: var(--brown);
  border-radius: 20px;
  border: 3.5px solid var(--white);
}


/*
css概説（復習用　要らなければ消してください）

vol.1 用語の解説

セレクタ…装飾をつけたい対象の要素のこと
属性…セレクタに施したい装飾の種類
値…セレクタに施したい装飾の具体的内容

例：h1{color:red;}
h1がセレクタ　colorが属性　redが値

vol.2 セレクタの指定
①要素名で指定
h1{color:red;}

②class名で指定
.class{color:red;}

③id名で指定
#id{color:red;}

④要素名プラスclass名で指定
div.class{color:red;}

⑤要素名プラスid名で指定
div#id{color:red;}

⑥要素の位置から指定
header div{color:red;}   
↑スペースを入れる（ここではheader内のdiv要素を指定）

vol.3 属性・値の指定

①{属性:値;}の形で記述
{color:red;}

②１つのセレクタに対する指定はまとめて記述できる
h1{
   color:red;
   width:90%;
}

③指定が重複したら後の行にあるものが優先
h1{
   color:red;
   width:90%;
   color:blue;
}
↑ここではh1はblueになる

④指定が重複したらより特定が強いものが優先
h1{
   color:red;
   width:90%;
}
header h1{
   color:blue;
}
↑ここではheader内のh1はcolorがblue、widthが90%になる
*/


/*PC版*/
@media screen and (min-width:1024px){
  /*書き換え禁止*/
.hamburger-fade {display: none;}
main {padding-top: 65px;}
  /*書き換え禁止*/


  /*ここから書いてね*/



}


