* {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

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

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  /* position:relative; */
}

#top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#top div {
  position: absolute;
  top: 0;
  width: 100%;
}

#top img {
  width: 45%;
  background-color: #ffffff;
}


/* 概要 */
#about {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: rgb(240, 240, 240, 0.7);
  padding: 25px 150px;
}

.about_flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about_item {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 25px 100px; */
}

.about_item a {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about_item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about_text {
  width: 50%;
  text-align: left;
  flex-direction: column;
  margin: 100px 0px 100px 40px;
  align-items: baseline;
  /* padding-left: 180px; */
}

h2 {
  font-size: 25px;
  font-weight: 800;
}

ul {
  list-style: none;
  margin: 30px 0px;
  padding: 0px;
}

p {
  text-align: justify;
  margin-right: 50px;
}

.text_bold {
  font-size: 25px;
  line-height: 35px;
  font-weight: 500;
}



/* アクセス */
:root {
  --circle-size: 150px;
  /* 円（画像）の大きさ */
  --distance: 250px;
  /* 中心からの距離 */
}

.progress-circular {
  position: relative;
  width: calc(var(--distance) * 2);
  height: calc(var(--distance) * 2);
  margin: 0px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotate-z 30s linear infinite;
  animation-play-state: running;
}

.circle {
  position: absolute;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  background-size: cover;
  background-position: center;


}


#works {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 5つの画像を均等に円形配置（72度間隔） */
.content_img:nth-child(1) {
  transform: rotateZ(0deg) translateY(calc(-1 * var(--distance)));
}

.content_img:nth-child(2) {
  transform: rotateZ(72deg) translateY(calc(-1 * var(--distance)));
}

.content_img:nth-child(3) {
  transform: rotateZ(144deg) translateY(calc(-1 * var(--distance)));
}

.content_img:nth-child(4) {
  transform: rotateZ(216deg) translateY(calc(-1 * var(--distance)));
}

.content_img:nth-child(5) {
  transform: rotateZ(288deg) translateY(calc(-1 * var(--distance)));
}

#circle1 {
  animation: rotate-c1 30s linear infinite;
  animation-play-state: running;
}

#circle2 {
  animation: rotate-c2 30s linear infinite;
  animation-play-state: running;
}

#circle3 {
  animation: rotate-c3 30s linear infinite;
  animation-play-state: running;
}

#circle4 {
  animation: rotate-c4 30s linear infinite;
  animation-play-state: running;
}

#circle5 {
  animation: rotate-c5 30s linear infinite;
  animation-play-state: running;
}

@keyframes rotate-z {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg);
  }
}

@keyframes rotate-c1 {
  from {
    transform: rotateZ(360deg);
  }

  to {
    transform: rotateZ(0deg);
  }
}

@keyframes rotate-c2 {
  from {
    transform: rotateZ(288deg);
  }

  to {
    transform: rotateZ(-72deg);
  }
}

@keyframes rotate-c3 {
  from {
    transform: rotateZ(216deg);
  }

  to {
    transform: rotateZ(-144deg);
  }
}

@keyframes rotate-c4 {
  from {
    transform: rotateZ(144deg);
  }

  to {
    transform: rotateZ(-216deg);
  }
}

@keyframes rotate-c5 {
  from {
    transform: rotateZ(72deg);
  }

  to {
    transform: rotateZ(-288deg);
  }
}

.access_flex {
  background-color: rgb(240, 240, 240, 0.7);
  width: 100%;
  height: 100%;
  padding: 100px;
  display: flex;
  justify-content: center;
}

.access_text {
  margin-left: 40px;
}

iframe{
  width: 100%; 
  height:350px;
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.img-item {
  width: calc(100% / 3);
  height: 250px;
  background-color: #91BF80;
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

footer {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* --- ボタンデザイン --- */
.button-link {
  display: inline-block;
  background-color: coral; /* ホワイトに近いグレーに変更 */
  color: #fff;              /* 文字色を濃いグレーに変更 */
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-align: center;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 0.5rem;
  box-shadow: none; /* 影をなくして、より目立たないように */
}

/* マウスを乗せた時のデザイン */
.button-link:hover {
  background-color: coral; /* 少しだけ濃いグレーに */
  transform: translateY(-2px);
  opacity: 1;
  color: #fff;
}
@media screen and (max-width: 800px) {

  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  #top img {
    width: 80%;
  }

  #about {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    justify-content: center;
  }

  .about_item {
    width: 80%;
    height: 50%;
    margin: 0;
  }

  .about_item img {
    width: 100%;
    height: 100%;
  }

  .access_flex {
    flex-direction: column;
    padding: 10px;
  }

  :root {
    --circle-size: calc(100vw / 4);
    /* 円（画像）の大きさ */
    --distance: calc(100vw / 3);
    /* 中心からの距離 */
  }

  .text_bold{
    font-size: 20px;
  }
  
h2{
  margin: 15px 0;
}

ul {
  margin-top: 0;
  margin-bottom: 20px;
}
  p{
    margin: 0;
  }

  .access_text {
    margin: 10px;
  }

  .access_text h2{
margin: 10px 0px;
  }

 .access_text div{
  margin-bottom: 15px;
 }

 .access_text p{
  margin-top: 5px;
 }

 .img-item {
    width: calc(100% / 2);
    height: 200px;
  }

}