@charset "UTF-8";
.hero{
position:relative;
height:180vh;
overflow:hidden;
display:flex;
justify-content:center;
align-items:center;
}

/* 背景 */
.hero-bg{
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
}

/* 写真 */
.bg{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
opacity:0;
animation:slide 18s infinite;
}

/* ズーム */
.bg{
animation:slide 18s infinite, zoom 18s infinite;
}

/* 写真タイミング */

.bg1{
animation-delay:0s;
}

.bg2{
animation-delay:6s;
}

.bg3{
animation-delay:12s;
}

/* フェード */

@keyframes slide{

0%{opacity:0;}

5%{opacity:1;}

33%{opacity:1;}

38%{opacity:0;}

50%{opacity:0;}

}

/* ズーム */

@keyframes zoom{

0%{transform:scale(1);}

100%{transform:scale(1.1);}

}

/* 黒グラデーション */

.hero::after{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(
rgba(0,0,0,0.3),
rgba(0,0,0,0.3)
);
z-index:1;
}

/* 文字 */

.hero-content{
position:relative;
z-index:2;
text-align:center;
color:white;
max-width:900px;
padding:20px;
}

.hero-content h1{
font-size:70px;
letter-spacing:4px;
margin-bottom:30px;
margin-top:80px;

}

.hero-content p{
font-size:22px;
line-height:1.8;
margin-top:400px;

}




.content1 h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: black;
  font-size: 28px;  
  
  padding: 5px 0;
  text-align: center;
  display:flex; 
  justify-content:center; 
  align-items:center;
}
.content1 h2 img {
  width: 40px;
  height: 30px;
  object-fit: cover;
}

.content2 h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: black;
  font-size: 28px;  
  
  padding: 5px 0;
  display:flex; 
  justify-content:center; 
  align-items:center;
  
}
.content2 h2 img {
  width: 40px;
  height: 30px;
  object-fit: cover;
}

.content3 h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: black;
  font-size: 28px;  
  
  padding: 5px 0;
  text-align: center;
  display:flex; 
  justify-content:center; 
  align-items:center;
}
.content3 h2 img {
  width: 40px;
  height: 30px;
  object-fit: cover;
}

.content1 p,
.content2 p{
  text-align: center;
}

.space {
  height: 100px;
}

.slider-wrapper{
  overflow:hidden;
  padding:20px;
}

.slider{
  display:flex;
  gap:20px;
  animation: scroll 30s linear infinite;
  width:max-content; 
}

.slider-wrapper:hover .slider{
  animation-play-state: paused;
}

.card{
  width:250px;
  flex:0 0 auto;
  background:white;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  overflow:hidden;
  text-align:center;
}

.card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.caption{
  padding:10px;
  font-size:14px;
  line-height:1.6;
  word-break: break-word;
}

.content1 h2,
.content2 h2,
.content3 h2{
  color: rgb(237, 137, 15);
}

/* 自動スクロール */
@keyframes scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/*スマホ*/
@media (min-width:1px) and (max-width: 767px) {
    .hero{
height:100vh;   /* 画面の高さに合わせる */
}
.content1 h2,
.content2 h2,
.content3 h2{
  text-align: center;
  font-size: 20px;
}

    .content1 p,
.content2 p{
  text-align: center;
  font-size: 20px;
}
.caption{
    font-size: 25px;
}

.hero-content h1{
    margin-top: 350px;
font-size:60px;
}
.hero-content p{
font-size:22px;
line-height:1.8;
margin-top:100px;
}
.bg1 {
    object-position:60% center;
  }
  .bg2 {
    object-position:45% center;
  }
}




/*header*/
.menu-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 50px;
  height: 30px;
  cursor: pointer;
  z-index: 300;
  font-weight: bold;
  font-size: 40px;
  z-index: 20000;
}
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background:rgba(0, 0, 0, 0.836);
  color: white;
  width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0);
  z-index: 20000;
  

}
.menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid #ddd;
  z-index: 20000;
}
.menu a:last-child {
  border-bottom: none;


}