/* ----------------------------------------------
hero
----------------------------------------------- */

.p-hero__wrap {
  width: 100%;
  height: 100vh;
  background: url(../img/heading.webp) no-repeat center bottom/cover;
  position: relative;
  margin-bottom: 40px;
}

.p-hero__wrap .logo {
  min-width: 469px;
  width: 20vw;
  position: absolute;
  top:45%;
  left: 50%;
  transform: translate(-50%,-50%);
}


@media screen and (max-width: 750px) {
  .p-hero__wrap .logo {
    min-width: 180px;
    width: 30vw;
    top:40%;
  }

  .p-hero__wrap {
    height: auto;
    margin-top: 60px;
    margin-bottom: 0;
    padding: 30vw 20px;
  }

}

/* ----------------------------------------------
白山神社例祭について
----------------------------------------------- */

.p-about__section{
  padding-top: 100px;
}

.p-grid__image img{
  width: 100%;
}

.p-grid__textBlock{
  padding: 5px;
}

.p-about__read{
  text-align: left;
  font-size: 16px;
  line-height: 2.5;
  letter-spacing: 0.05em;
}


@media screen and (min-width: 751px) {
  .p-grid__wrap{
    display: flex;
    align-items: center;
  }

  .p-grid__textBlock{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .p-grid__image{
    width: 50%;
  }
  .p-about__section .p-grid__wrap + .p-grid__wrap .p-grid__textBlock{
    order: 0;
  }
  
  .p-about__section .p-grid__wrap + .p-grid__wrap .p-grid__image{
    order: 1;
  }

  .p-grid__wrap + .p-grid__wrap{
    margin-top: 80px;
  }
}

@media screen and (max-width: 750px) {
  .p-about__section{
    padding-top: 60px;
  }
  .p-grid__wrap + .p-grid__wrap{
    margin-top: 40px;
  }

  .p-about__read{
    font-size: 14px;
    line-height: 1.8;
  }

  .p-about__section .p-grid__textBlock{
    padding: 20px 10px 0 10px;
  }
}


/* ----------------------------------------------
開催場所
----------------------------------------------- */

.p-spot__section{
  padding-top: 100px;
}

.p-ggMap__wrap{
  width: 100%;
  height: 500px;
  background: #fff;
  margin-bottom: 30px;
}

.p-ggMap__list{
  max-width: 750px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px 50px;
  margin-inline: auto;
}

.p-ggMap__listItem a{
  display: block;
  text-align: center;
  background: #96BEBC;
  border-radius: 50px;
  padding: 10px;
  color: #fff;
  font-size: 16px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: bold;
  position: relative;
  transition: 0.3s;
}

.p-ggMap__listItem span{
  z-index: 2;
  position: relative;
}


.p-ggMap__listItem a::before{
  content: '';
  background: #fff;
  transition: 0.3s;
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  border-radius: 50px;
  z-index: 1;
}

.p-ggMap__popupItem{
  font-size: 16px;
  font-weight: bold;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
}


@media screen and (min-width: 751px) {
  .p-ggMap__listItem a:hover::before{
    width: 100%;
  }
  .p-ggMap__listItem a:hover{
    color: #96BEBC;
  }
}

@media screen and (max-width: 750px) {

  .p-spot__section{
    padding-top: 70px;
  }
  .p-ggMap__list{
    gap: 20px 2%;
  }

  .p-ggMap__listItem a{
    font-size: 12px;
    padding: 5px 5px;
  }

  .p-ggMap__wrap{
    height: 300px;
  }
}

/* ----------------------------------------------
開催日程
----------------------------------------------- */

.p-schedule__section{
  padding-top: 100px;
}

.p-schedule__read{
  text-align: center;
  line-height: 1.563;
  margin-bottom: 47px;
}

.p-schedule__section .p-grid__image figure figcaption{
  margin-left: 30px;
  background: #D7AB5A;
  color: #fff;
  font-size: 18px;
  text-align: center;
  border-radius: 30px;
  padding: 7px 15px;
}

.p-openTime_text{
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 36px;
}

.p-openTime_text span{
  display: inline-block;
  padding: 5px 10px;
  border-radius: 30px;
  text-align: center;
  background: #FFAE35;
  margin-right: 10px;
}

.p-schedule__section .inner{
  width: 100%;
  padding: 20px;
}

.p-schedule__table{
  width: 100%;
  font-size: 14px;
  line-height: 1.429;
  text-align: left;
}

.p-schedule__table th{
  font-weight: 400;
}

.p-schedule__table tr{
  border-bottom: 1px dashed #FFAE35;
}

.p-schedule__table td,
.p-schedule__table th{
  padding: 2px 0;
}

.p-schedule__table th{
  font-size: 12px;
}

.p-schedule__table td:first-child,
.p-schedule__table th:first-child{
  width: 140px;
  padding-left: 20px;
}

.p-schedule__table td+td,
.p-schedule__table th+th{
  width: auto;
}

.p-schedule__table .bd-none{
  border-bottom: none;
}

.p-schedule__table .p-small__text{
  font-size: 12px;
}

.p-tableGrid__block .p-schedule__table td:first-child,
.p-tableGrid__block .p-schedule__table th:first-child{
  width: 65px;
  padding-left: 5px;
}

.p-schedule__table th.blue{
  color: #096599;
}

.p-schedule__table th.red{
  color: #BA0000;
}

.p-schedule__table th:only-child{
  font-size: 16px;
}

@media screen and (min-width: 751px) {

  .p-schedule__section .p-grid__wrap:nth-of-type(odd) .p-grid__textBlock{
    order: 0;
  }
  
  .p-schedule__section .p-grid__wrap:nth-of-type(odd) .p-grid__image{
    order: 1;
  }
  

  .p-schedule__section .p-grid__image{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
  }
  
  .p-schedule__section .p-grid__image figure{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start
  }
  
  .p-schedule__section .p-grid__image figure img{
    max-width: 350px;
    width: 70%;
  }

  .p-schedule__section .p-grid__image figure:nth-child(1){
    position: relative;
    bottom:-20px;
  }
  
  .p-schedule__section .p-grid__image figure:nth-child(2) img{
    order: 1;
    margin-left: auto;
  }
  
  .p-schedule__section .p-grid__image figure:nth-child(2) figcaption{
    order: 0;
    margin-left: 20px;
  }

  .p-tableGrid__block {
    display: flex;
    align-items: flex-start;
    gap: 0 2%;
  }
  
  .p-tableGrid__block .p-schedule__table{
    width: 49%;
  }

  
}

@media screen and (max-width: 750px) {

  .p-schedule__section{
    padding-top: 70px;
  }

  .p-schedule__section .inner{
    padding: 20px 0 0 0;
  }

  .p-schedule__read{
    font-size: 12px;
  }

  .p-openTime_text{
    margin-bottom: 20px;
  }

  .p-tableGrid__block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 0;
  }

  .p-schedule__section .p-grid__image figure figcaption{
    margin-top: 10px;
    font-size: 16px;
    margin-inline: auto;
    width: 150px;
  }

  .p-schedule__section figure+figure{
    margin-top: 20px;
  }

  .p-schedule__table td:first-child, .p-schedule__table th:first-child{
    width: 80px;
  }

  .p-schedule__table td:first-child, .p-schedule__table th:first-child{
    padding-left: 5px;
  }

  .p-schedule__table th:only-child{
    text-align: center;
  }
}
