
#WRAPPER #CONTENTS {
  background-image: url(../../img/reformfair20260221/reformfair_back.avif);
  background-repeat: repeat-y ;
  background-position: top;
  background-size: 100vw;
  margin-top: 12rem;
  padding: 6.4rem 1.6rem 4rem;
  position: relative;
}

#CONTENTS h1,
#CONTENTS h2 {
  text-align: center;
}

#CONTENTS h1{
  width: 55rem;
  margin: 0 auto 3rem;
}

#CONTENTS .eventphoto {
  display: flex;
  gap: 3.2rem;
  max-width: 96rem;
  margin: 8rem auto;
}


#CONTENTS .eventphoto .photo-img {
  border: solid 2px;
  padding: 5% 2% 2%;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: auto;
  align-items: center;
  position: relative;
  gap: 3.2rem;
}

#CONTENTS .eventphoto .photo-img h3 {
  position: absolute;
  top: -7%;
}


#CONTENTS .eventphoto .photo-img img {
  display: block;
  border-radius: 0.8rem;
}

.event-ttl{
  width: 40rem;
  margin: 0 auto 2rem;
}



.event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  max-width: 89.6rem;
  margin: 3rem auto;
  padding: 3.04rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.17);
}

.event-text {
  flex: 1;
  text-align: center;
  margin-bottom: 1.6rem;
  order: -1;
}

.event-text img {
  display: inline-block;
  padding-bottom: 0.48rem;
}

.event-gallery {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 0.96rem;
}

.event-gallery img {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
}

.event-gallery img:hover {
  transform: scale(1.05);
}

.fortune{
  width: 39rem;
  margin: 0 auto;
}

@media (max-width: 768px) {
.event {
  padding: 1.6rem;
}

.event-ttl{
  width: 30rem;
}

.event-gallery {
  flex-direction: column;
  gap: 1.6rem;
}

#CONTENTS h1 {
  width: auto;
}

#WRAPPER #CONTENTS {
  background-image: url(../../img/reformfair20260221/reformfair_back_sp.avif);
}

.fortune{
  width: 100%;
}
}

@media (max-width: 480px) {
.event-gallery {
  gap: 0.64rem;
}
}


@media screen and (max-width: 899px) {
#WRAPPER #CONTENTS {
  margin-top: 9rem;
}
}

@media (max-width: 768px) {
#CONTENTS .eventphoto {
  flex-wrap: wrap;
}

#CONTENTS .eventphoto .photo-img{
  width: calc(100% / 3 - -3.2rem);
}
}

@media (max-width: 487px) {
#CONTENTS .eventphoto .photo-img {
  padding: 12% 4% 4%;
  width: 100%;
}

#CONTENTS .eventphoto .photo-img h3{
  top: -9%;
}

#CONTENTS .eventphoto{
  gap: 8rem
}
}

@media (max-width: 425px) {
#WRAPPER #CONTENTS .back02 {
  top: 1.6rem;
}
}