* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

/* 共通btn */
.btn {
  background-color: #64B3AC;
  padding: 10px 50px;
  border-radius: 10px;
  display: block;
  width: 200px;
  color: #FFF7E6;
  border: 1px solid #64B3AC;
  text-align: center;
  margin: 0 auto;
  transition: all .3s;
}

.btn:hover {
  background-color: #ffffff;
  color: #64B3AC;
  scale: 1.02;
}


main {
    width: 100vw;
    height: 100vh;
    
}

.main-wrapper {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.title {
  width: 40vw;
  display: flex;
  flex-direction: column;   /* 縦に積む */
  justify-content: center;  /* 上下中央寄せ */
  align-items: center;      /* 左右中央寄せ */
  gap: 20px;                /* 各要素の間隔 */
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  height: auto;
  width: auto;
  margin-bottom: 20px;
}

.title-wrapper img{
width: 100%;
display: block;
text-align: center;
margin: 0 auto;
}

@font-face {
    font-family: 'LogoTypeGothic.woff';
    src: url(../font/LogoTypeGothic.woff);
}

.title-wrapper h1 {
  color: #64B3AC;
  font-size: 8rem;
  font-family: 'LogoTypeGothic.woff';
}

nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.5rem;
  letter-spacing: 0.2em;   /* 縦書きのときの行間調整 */
  transition: all .3s;
}

nav ul:hover {
    color: #ffffff;
}

.top-btn {
    font-size: 1rem;
    text-align: center;
    margin: 0;
    width: 50%;
}

h1 img{
width: 60%;
display: block;
text-align: center;
margin: 0 auto;
}

.img {
  width: 60vw;
  height: 100vh; /* 高さを明示 */
  background-size: cover;
  background-position: center;
  object-fit: cover;
  animation: bgSlide 15s infinite; /* 15秒でループ */
}

.slideshow {
  position: relative;
  width: 60vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 20s infinite; /* 4枚なら20sに */
}

/* 各スライドを5秒ずつずらす */
.slide1 {
  background-image: url("../img/oozai/top2.webp");
  animation-delay: 0s;
}
.slide2 {
  background-image: url("../img/oozai/top-3.webp");
  animation-delay: 5s;
}
.slide3 {
  background-image: url("../img/oozai/top-4.webp");
  animation-delay: 10s;
}
.slide4 {
  background-image: url("../img/oozai/top-5.webp");
  animation-delay: 15s;
}

/* フェードアニメーション */
@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}


/* content-wrapper */

.content-wrapper {
    max-width: 100vw;
    height: auto;
    padding: 100px;
    text-align: center;
    background-color: #fff;
}

.content-wrapper img {
  object-fit: cover;
}

/* about */

.about,.more-fun,.equipment,.equipment-wrapper,.meeting {
    width: 100%;
    height: auto;
    margin: 0 auto 150px auto;
    text-align: center;
}


h2 {
  color: #64B3AC;
  font-size: 1.5rem;
}

h3 {
    font-size: 2rem;
    color: #64B3AC;
    margin-bottom: 20px;
    font-weight: 500;
}

h3 span {
  position: relative;
  display: inline-block;
}

h3 span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px; /* span の下に配置 */
  transform: translateX(-50%);
  width: 120%;  /* span の横幅より少し広めに */
  height: 20px; /* 線画像の高さ */
  background: url("../img/oozai/paint.png") no-repeat center;
  background-size: contain;
}

p {
  margin-bottom: 30px;
}

img {
  display: block;
  margin: 0 auto 30px auto;
}

.about-text {
    color: #000000;
    line-height: 1.2;
    font-size: 1.2rem;
    margin: 0 auto 50px auto;
}

/* content-wrapper */

.content-wrapper {
  width: 100vw;
  height: auto;
  margin: 0 auto;
  text-align: center;
}

.content-wrapper img {
    display: block;
    width: 1000px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
}

.about img {
  width: 50%;
  object-fit: cover;
}

/* equipment */  

.equipment {
  width: auto;
  height: auto;
  margin: 0 auto 80px auto;
  text-align: center;
  max-width: 1000px;
}

.equipment-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
}

.equipment-wrapper img {
  display: block;
  object-fit: cover;
  max-width: 80%;
}

.nursing-care {
  margin-bottom: 80px;
}

.nursing-care img {
 object-fit: cover;
 width: 50%;
}

.more-fun img {
  object-fit: contain;
  width: 50%;
}

.meeting img {
  margin-bottom: 30px;
}

/* gallery */
.gallery {
  width: auto;
  height: auto;
  margin: 0 auto 80px auto;
  text-align: center;
}


.gallery img {
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 50px auto;
}

/* スマホ (768px以下) */
@media screen and (max-width: 768px) {
  main {
    height: auto; /* 100vhを解除して縦スクロールに対応 */
    width: auto;
    text-align: center;
    margin: 0 auto 50px auto;
  }

  img {
    border-radius: 5px;
  }

  .main-wrapper {
      display: block;
      margin: 0 auto;
  }

  .slideshow {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .title {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }

  .title-wrapper h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .top-btn {
    font-size: 1rem;
    text-align: center;
    margin: 0 auto;
  }

  .btn {
    font-size: .9rem;
    padding: 5px 10px;
  }

  .top-btn {
      width: 60%;
  }

  .main-wrapper {
    height: auto; /* 100vhを解除して縦スクロールに対応 */
    width: auto;
  }


  h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .about-text {
    font-size: .8rem;
  }

  .content-wrapper {
    padding: 40px 20px;
  }

  .content-wrapper img {
    display: block;
    margin: 0 auto 30px auto;
    width: 80%;
    height: auto;
    object-fit: cover;
  }

  .equipment-wrapper {
    display: block;
    margin-bottom: 20px;
  }

  .equipment-wrapper img {
    margin-bottom: 20px;
  }

  .meeting img {
    margin-bottom: 30px;
  }

  .gallery-wrapper img {
    width: 100%;
    height: auto;
  }
}
