body{
  font-family: "Kosugi Maru", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}

.main{
  position: relative;
}

.first-view{
  min-height: calc(100vh - 110px);
  background-image: url(../images/iketan/background.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

.first-view-text{
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 40px 100px 10px;
  color: darkblue;
  font-weight: bold;
  text-shadow: 2px 2px 0 #fff,
               -2px 2px 0 #fff,
               2px -2px 0 #fff,
               -2px -2px 0 #fff;
}

.first-view-text h1{
  font-size: 56px;
  line-height: 72px;
}

.first-view-text p{
  font-size: 18px;
  margin-top: 20px;
}

.fixed-image{
  position: absolute;
  top: 10px;
  right: 10px;
  width:400px;
  margin: 0;
  z-index: 1;
}

.fixed-image img{
  width: 100%;
  height: auto;
  display: block;
}

.first-view h2{
  width: 100%;
  font-size: 22px;
  font-weight: bold;
  color: darkblue;
  padding-left: 20px;
  margin-top: 40px;
}

.news{
  background-color: #fdfaf5;
  padding: 1.2em 1em;
  max-width: 400px;
  margin: 10px 150px 10px 150px;
  border-radius: 12px;
}

.news h2{
  font-size: 1.4em;
  color:#5c4433;
  margin-bottom: 1em;
}

.card{
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.8em;
  margin-bottom: 0.8em;
}

.card .date{
  font-size: 0.85em;
  color: #999;
}

.card p{
  font-size: 0.95em;
  line-height: 1.3;
}

.date-wrap{
  display: flex;
  align-items: center;
  gap: 6px;
}

.new-icon{
  width: 40px;
}

.subcard{
  padding: 0.8em 0;
  border-top: 1px solid #eee;
  }

.subcard:first-child{
  border-top: none;
}

.contents-list {
  display: flex;          /* 横並び */
  flex-wrap: wrap;        /* はみ出したら折り返す */
  gap: 10px;              /* 画像の間隔 */
  list-style: none;
  padding-left: 20px;
  margin-top: 20px;
}

.contents-list img {
  position: relative;
  width: 200px;
  z-index: 10;           /* 画像サイズを揃える */
}

.insta-wrap{
  background: #fff;
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 12px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  margin-bottom:10px;
}

.insta-wrap img{
  width: 32px;
  height: 32px;
  display: block;
}

.insta-p{
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  margin-left: 20px;
  padding-left: 1em;
  font-size: 12px;
  color: darkblue;
  display: inline-block;
  width: fit-content;
}

.insta-p p{
  display: inline;
  margin: 0;
}

@media (max-width: 1024px){
  .fixed-image{
    position: static;
    width: 200px;
    margin: 60px auto 0;
    z-index: 0;
    order: 7;
  }

  .fixed-image img{  
    width: 100%;
    height: auto;
    z-index: 2;
  }
  
  .first-view{
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: calc(100vh - 50px);
    align-items: flex-start;
  }

  .first-view h2{
    margin-top: 20px;
    color: darkblue;
    order: 3;
  }

 .first-view-text{
    background-color: rgba(255, 255, 255, 0.6);
    margin: 20px auto 10px;
    padding: 10px;
    border-radius: 8px;
    color: #111;
    text-shadow: none;
    order: 1;
    }

  .first-view-text h1{
    color: darkblue;
    font-size: 20px;
    line-height: 30px;
  }

  .first-view-text p{
    color: darkblue;
    font-size: 14px;
    margin-top: 15px;
    line-height: 20px;
  }

  .news{
    max-width: 90%;
    margin: 10px 10px 10px 10px;
    padding: 1em;
    border-radius: 10px;
    order: 2;
  }

  .news h2{
    font-size: 1.2em;
    margin-bottom: 0.6em;
    color: #5c4433;
    
  }

  .card{
    padding: 0.7em;
    margin-bottom: 0.7em;
  }

  .card p{
    font-size:  11px;
    line-height: 1.4;
  }

  .subcard{
    padding: 0.6em 0;
  }

  .contents-list{
    order: 4;
  }

  .contents-list img{
    padding-left: 10px;
    margin-bottom: 10px;
    width:100px;
    height:auto;
    position: relative;
    z-index: 3;
  }

  .contents-list li dt{
    color: black;
    text-shadow: 1px 1px 0px  white;
  }

 .insta-wrap{
  margin-left: 30px;
  order: 5;
}

 .insta-p{
  width: 250px;
  order: 6;
  border-radius: 8px;
  
 }

}