@charset "UTF-8";
/* CSS Document */

/* TOPイメージ */
.img-wrap {
	margin-top: 100px;
  height: 45vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.img-wrap::before,
.img-wrap::after {
  animation: 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: #363636;
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.img-wrap::before {
  animation-name: img-wrap-before;
  inset: 0 0 50%;
}

.img-wrap::after {
  animation-name: img-wrap-after;
  inset: 50% 0 0;
}

@keyframes img-wrap-before {
  100% {
    transform: translateX(100%);
  }
}

@keyframes img-wrap-after {
  100% {
    transform: translateX(-100%);
  }
}



h1 {
  margin-top: 50px;
  font-size: 2rem;
  margin-bottom: 40px;
}

.icon {
  display: flex;
  justify-content: space-around;
}

.icon ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.icon li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon img {
  width: 80px;
  height: auto;
  margin: 0 20px;
}

.icon p {
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
}

.top-text {
  width: 80%;
  margin: 0 auto 80px;
	 display: flex;
  justify-content: center;
}

.top-text p {
  margin-top: 20px;
  font-size: 1.4rem;
  line-height: 1.6rem;
  text-align: left;
}

.design-processing {
    display: flex;
    margin: 0 auto;
    width: 80%;
    text-align: left;
}

.design-processing div {
    border: solid 3px transparent; /* ボーダーの色を透明に設定 */
    border-radius: 20px;
    padding: 30px;
    margin: 20px 10px;
    background: #363636; /* 背景色をそのまま保持 */
    background-clip: padding-box; /* 背景色がボーダーに影響しないように設定 */
    position: relative; /* 擬似要素を相対位置に設定 */
}

.design-processing div::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; bottom: -3px; right: -3px; /* ボーダーの位置を調整 */
    background: linear-gradient(to right, silver, orange); /* グラデーションの設定 */
    z-index: -1; /* ボーダーが背景の下に来るように設定 */
    border-radius: 20px;
    animation: gradient-border 10s linear infinite; /* アニメーションを線形に設定し、10秒間で実行 */
}

.design-processing h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
}

.design-processing p {
    font-size: 1.2rem;
    width: 100%;
    height: 20vh;
    margin-bottom: 15px;
}

.design-processing img {
    width: 100%;
    display: block; 
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .design-processing {
        display: block;
    }
    .design-processing p {
        height: auto;
    }
}

/* グラデーションのアニメーション */
@keyframes gradient-border {
    0% {
        background: linear-gradient(to right, silver, orange);
    }
    50% {
        background: linear-gradient(to right, orange, silver);
    }
    100% {
        background: linear-gradient(to right, silver, orange);
    }
}


.example {
  width: 80%;
  margin: 0 auto;
}

.example h2:first-child {
  font-size: 1.5rem;
  margin: 80px auto 50px;
}

/* 画像とテキストのコンテナ */
.example-img {
  display: flex;
  flex-wrap: wrap; /* 画像とテキストを折り返す */
  gap: 20px; /* 画像とテキストの間隔 */
}

/* 画像とテキストを包むアイテム */
.example-img .item {
  flex: 1 1 calc(50% - 20px); 
  box-sizing: border-box;  
  display: flex;
  flex-direction: column; /* テキストを画像の下に表示 */
  align-items: center; /* アイテムを中央揃え */
}

/* 画像 */
.example-img .item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0; /* 初期状態は見えないようにする */
  transition: opacity 0.8s ease-out;
}

/* テキスト */
.example-img .item p {
  text-align: center;
  font-size: 1.3rem;
  margin: 5px 0 0;
}

/* スマホ用のスタイル */
@media (max-width: 768px) {
  .example-img .item {
    flex: 1 1 100%; /* スマホ画面では1つずつ表示 */
  }
}
/* スライドショーのコンテナ */
.slideshow-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto; /* 高さを設定（必要に応じて調整） */
}

/* スライドのラッパー（スライドを横に並べる） */
.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  width: auto; /* スライド数に合わせて調整 */
}

/* スライド */
.mySlides {
  flex: 1 0 100%;
  height: 100%; /* コンテナの高さに合わせる */
  display: flex; /* 画像を中央に配置 */
  align-items: center; /* 高さ方向の中央揃え */
  justify-content: center; /* 横方向の中央揃え */
}

/* スライドの画像 */
.mySlides img {
  width: 100%; /* コンテナの幅に合わせる */
  height: auto; /* 高さは自動調整 */
  object-fit: cover; /* 画像がコンテナにフィットするように調整 */
  display: block; /* 画像の下に余計なスペースができないようにする */
}


/* 矢印ボタン */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 2; /* テキストよりも上に表示されるように設定 */
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.9);
}




/* 画像が下からスライドしてふわっと現れるアニメーション */
@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* スクロール時にアニメーションを適用するためのクラス */
.visible {
  opacity: 1;
  animation: slide-up 0.8s ease-out forwards;
}


.example-text{
	margin-top: 30px;
	text-align: left;
	font-size: 1.2rem;
}


.emergency h3 {
  width: 80%;
  margin: 100px auto 10px;
  font-size: 1.5rem;
  text-align: left;
}

.emergency p {
  font-size: 1.2rem;
  width: 80%;
  margin: 0 auto 80px;
  text-align: left;
}