
.section-head {
  display: flex;
  gap: 1.5rem; 
  justify-content: center;  
  align-items: flex-start;  
  margin-top: 80px;
  margin-bottom: 70px;
  padding: 2rem 1rem 0.5rem 1rem;
}

 .section-head:not(.first) {
  background-color: #f0f0f0;
  padding: 30px 0px;
}

.title2 {
  background-color:#f0f0f0;
  font-weight: bold;
  font-size: 28px;
  padding : 5px 10px;
  margin : 15px 0px;
  display: inline;
  /*color: #95b58d;*/
  color: #539379;
  filter: opacity(90%);
}

.text {
   font-size: 20px;
   text-align: left;
   font-weight: 400;
}

#shops ul,
#education ul,
#public ul,
#activity ul,
#events ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  align-items: stretch;
}

#shops li,
#education li,
#public li,
#activity li,
#events li {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s; 
}


.img img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  display: block;
  filter: sepia(20%) brightness(95%) saturate(110%);
  border: 1px solid #539379;

}

.li-name {
  margin-top: 10px;
  font-size: 19px;
  font-weight:600;
  text-align: left;

  
}

.img {
  text-align: center;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-box {
  background-color:#fbf9f5;
}

/* 最後の画像が1枚だけの ul を中央寄せ */
#shops ul:has(> li:only-child),
#education ul:has(> li:only-child),
#public ul:has(> li:only-child),
#activity ul:has(> li:only-child),
#events ul:has(> li:only-child) {
  display: flex;
  justify-content: center;
}


#shops ul li:nth-of-type(5) {
  width: 100%;
  display: flex;
  justify-content: center;
}

.copy2 {
  border-top : 1px solid var(--color-green);
  background-image : url(../img/location/family.jpg);
  background-size : cover;
  background-position: 50% 70%;
  width : 100%;
  height : 250px;
  position : relative;
  z-index : 1;
  margin-top : 40px;
}


.copy2::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 100));
  z-index: -1; 
}

.btn {
  text-align: center;
  margin-top:150px;
  margin-bottom:80px;
}

.txt {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.li-desc {
  margin-top: 8px;
  margin-bottom: 40px;
  text-align: left;
  font-size: 15px;
}

.fancy-line {
  width: 30%;
  max-width: 300px;
  height: 1px;
  background-color: #95b58d; /* 単色の線 */
  opacity: 0.5;
  margin: 10px 0;
  text-align:left
}

.li-name span {
font-size: 15px;
}

#events ul {
  display: flex;
  justify-content: center;
  padding: 0;
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
}

#events li {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* 左説明文 */
.events-text {
  flex: 2;
  text-align: left;
  font-size: 22px;
  line-height: 1.8;
  font-weight: bold;
}
.events-text2{
  font-weight: normal;
  font-size: 15px;
  margin-top: 0.1em;
}

/* 右画像縦並び */
.events-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.events-images img {
  width: 100%;
  height: auto;
  border: 1px solid #539379;
  filter: sepia(20%) brightness(95%) saturate(110%);
  border-radius: 0;
}

section:nth-of-type(5) h4 {
   font-weight: bold;
}

#events .events-text2 p {
  margin-top: 0.1em;     /* pの上の余白を小さく */
}



 



@media (max-width: 767px) {
  .section-head {
    flex-direction: column; /* 横並びから縦並びに */
    align-items: center;   
    gap: 0rem;             

  }
  .text {
    font-size: 16px;
    padding: 0 1.5rem;  /* ← スマホで左右にゆとりを持たせる */
  }
   .copy {
    padding: 0 1.5rem;  /* ← スマホで左右にゆとりを持たせる */
  }
   #events li {
    flex-direction: column;
  }
  #public .text br:nth-of-type(2), #events .text br:nth-of-type(2)
  {
    display: none;
  }
}







