@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Monda:wght@400..700&family=Noto+Sans+JP:wght@100..900&family=Zen+Kaku+Gothic+New&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.fadein{
    opacity: 0;

}
main{
    color: #212121;
    font-size: 12px;
}
nav{
    width: 100%;
    height: 100px;
    color: #dcdcdc;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 1000;
}
header .mobile{
    display: none;

}
nav .desktop{
    font-family: 'Inria Sans', serif;
    font-size: 24px;
    font-weight: 800;
    flex: 1;
    margin-left: 4%;
}
.humburger{
    display: none;
    font-size: 2rem;
    color: #212121;
    z-index: 2000;

}
.nav-links{
    list-style: none;
    flex: 4;
    text-align: right;
    margin-right: 2%;
}
.nav-links li{
    display: inline;    
}

.nav-links li a{
    font-family: 'BIZ UDPGothic', serif;
    font-size: 14px;
    text-decoration: none;
    color: #dcdcdc;
    margin: 1em;
}
.nav-links li a:hover{
    color: #737373;
}
.nav-links li a:active{
    color: #a1a1a1;
}

.section1{
    background: #ffffff;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
}
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1; /* 一番下 */
  display: flex;
  flex-direction: column;
}
.slider-inner1 {
  display: flex;
  width: max-content;
  height: 33.33%;
  animation: loop-scroll 60s linear infinite;
}
.slider-inner2 {
  display: flex;
  width: max-content;
  height: 33.33%;
  animation: loop-scroll 60s linear infinite;
}
.slider-inner3 {
  display: flex;
  width: max-content;
  height: 33.33%;
  animation: loop-scroll 60s linear infinite;
  animation-delay: -30s; /* 半分ずらす */
}
.slider-inner1 .slide-track img,
.slider-inner2 .slide-track img,
.slider-inner3 .slide-track img {
  height: 150px; /* コンテナの高さに合わせる */
  width: auto;
  object-fit: cover;
  opacity: 0.5;
}
.slider-inner2 .slide-track img:nth-child(3),
.slider-inner1 .slide-track img:nth-child(2),
.slider-inner3 .slide-track img:nth-child(1) {
  height: 200px; 
} 

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
  backdrop-filter: blur(0.8px);
}
.content{
    font-family: 'Monda', sans-serif;
    position: relative;
    text-align: right;
    margin: auto 5% 5% auto;
    font-weight: 800;
    z-index: 3;
    color: rgb(237, 238, 237);
    text-shadow: #212121 2px 2px 4px;
    
    background-size: 200% 100%;
    /* background-color: #47763c;
    background-image: linear-gradient(90deg, #47763c 0%, #8b9996 100%); */
    opacity: 0.95;
    padding: 1% 1%;

}


.content h1{
    opacity: 0;
    font-size: 50px;
    line-height: 1.4;
}


#heading2 {
    font-size: 18px;
    color: #2b3e30;
    text-shadow: #b7b7b7 1px 1px 2px;
    letter-spacing: 3%;
}
@keyframes loop-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.section-2{
    background: #f1f1f1;
    width: 100%;
    height: auto;
    color: #212121;
    padding: 10vh 0;
}
.sec2content{
    height: auto;
    margin: 0 auto;
}
.sec2content h1 br{
    display: none;
}
.section-2 h1{
    font-family: 'Monda', sans-serif;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}


.sec2img{
    width: 60%;
    height: auto;
    margin: 2% auto 0 auto;
    text-align: center;
    justify-content: space-around; 
    
}
.sec2img img{
    width: 100%;
    height: auto;
    object-fit: contain;
}
.sec2img p{
    font-family: 'Noto Sans JP', serif;
    font-size: 18px;
    text-align: center;
    margin-top: 3%;
    line-height: 1.6;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}
.section-2 a{
    text-decoration: none;
    color: rgb(110, 140, 77);
    display: flex;
    justify-content: center;
    margin-top: 5%;
}
.section-2 a button{
    border: 1px solid rgb(110, 140, 77) ;
    background: #ffffff;
    border-radius: 30px;
    width: 160px;
    height: 50px;
    font-family: 'Inria Sans', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-2 a button:hover{
    background: rgb(110, 140, 77);
    color: #ffffff;
    transition: .25s ease;
    cursor: pointer;
    border: none;
}
.section-3{
    width: 80%;
    height: auto;
    margin: 80px auto 160px auto;
    text-align: center;
    justify-content: space-around; 
}
.section-title{
    font-family: 'Inria sans', sans-serif;
}


/* グリッドレイアウトの設定 */
.grid {
    display: grid;
    /* 画面幅に合わせて自動で列数を調整（最低300px） */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    font-family: 'Noto Sans JP', sans-serif;
}

/* カードのデザイン */
.card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
}

.card:hover {
    transform: translateY(-5px); /* ホバー時に少し浮かす */
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 画像の比率を固定する */
.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 画像を枠いっぱいに綺麗に収める */
    vertical-align: bottom;
}

/* カード内のテキスト */
.card-content {
    padding: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.date {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 10px 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.title {
    font-size: 21px;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
}

.description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    /* 3行目以降を三点リーダーにする設定 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
}
.section-1{
    width: 100%;
    height: 380px;
}
.section-1 div{
    position: absolute;
    top: 200px;
    left: 100px;
    font-size: 20px;
}

.news-button{
    font-family: 'Carrois Gothic', sans-serif;  
    border-bottom: 1px solid; 
    font-weight: 600;
    width: 100px;
    margin: 50px auto;
    padding-bottom: 0.5%;
    text-align: center;
    justify-content: space-around; 

}
.news-button:hover, .news-button a:hover{
    color: #47763c;
    cursor: pointer;
}
.news-button a{
    text-decoration: none;
    color: #212121;
}
.section-4{
    width: 75%;
    height: 400px;
    margin: 80px auto;
    text-align: center;
    justify-content: space-around; 
}
.access-content{
    display: flex;
    justify-content: space-around;
    margin: 3%;
    flex-basis: 3;
}
.access-info{
    text-align: left;
    flex-basis: 1;
}
.access-title{
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-top: 7%;
}
.access-num{
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    margin-top: 2%;
    line-height: 20px;
}
#caution{
    font-size: 10px;
    font-family: 'Unbounded', sans-serif;
}
.map{
    width: 380px;
    height: 300px;
    border: none;
    margin-top: auto;
    flex-basis: 2;
}

footer{
    width: 100%;
    height: 8vh;
    background: rgb(110, 140, 77);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
}
