@charset "UTF-8";

body{
  font-family: "uddigikyokasho-pro", sans-serif;
font-weight: 400;
font-style: normal;
}

.top_background{
  height: 20vh;
  width: 100%;
  background-color: #F6F5FA;
}

.main_view{
    width: 100%;
    height: 400px;
    font-size: 18px;
    overflow: hidden;
    position: relative;
}
.title{
    width: 300px;
    margin: 200px auto 0;
}
.title h4{
  color: #27acd9;
  font-size: 1.8em;
}
.title h1{
  color: #474747;
  font-size: 2em;
  margin-top: -30px;
}
.explain{
  text-align: center;
  color: #474747;
  padding: 20px;
}
.explain p{
  font-size: 20px;
}
.explain h3{
  font-size: 30px;
  margin: 50px 0 20px;
}

.scatter_circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: floatMove 4s ease-in-out infinite alternate;
  transform: translate(var(--x), var(--y));
  pointer-events: none; /* 円がクリックなどに干渉しないようにする */
  z-index: 0;
}

@keyframes floatMove {
  0% {
    transform: translate(calc(var(--x)), calc(var(--y)));
  }
  100% {
    transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)));
  }
}

@media (max-width: 800px) {
  .title{
    margin: 200px auto 0;
}
.title h4{
  color: #27acd9;
  font-size: 1.8em;
}
.title h1{
  color: #474747;
  font-size: 2em;
  margin-top: -30px;
}
.title h4{
  color: #27acd9;
  font-size: 1.4em;
}
.title h1{
  color: #474747;
  font-size: 1.6em;
  margin-top: -30px;
}
.explain p{
  font-size: 14px;
}

}



  /* 再度のご相談ボタン */


  .floating_consultation {
    position: fixed;
    right: -150px; /* 初期位置は画面外 */
    top: 50%;
    transform: translateY(-50%);
    transition: right 1s ease; /* スライドインアニメーション */
    z-index: 1000;
  }

  .floating_consultation.active {
    right: -5px; /* スクロール時に画面内に表示 */
  }

  .consultation_link {
    text-decoration: none;
    color: #fff; /* テキストの色 */
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright; /* 縦方向文字の回転なし */
    line-height: 1.8;
    letter-spacing: 2px; /* 文字間隔を広げる */
    padding: 1.5em .5em;
    background: #005183; /* 初期背景色（単色） */
    border-radius: 8px;
    position: relative; /* 擬似要素基準 */
    overflow: hidden; /* 擬似要素がはみ出さないように */
  }

  .consultation_link::before {
    content: ""; /* 擬似要素 */
    position: absolute;
    top: -150%; /* 初期位置 */
    left: 0;
    width: 100%;
    height: 300%; /* 高さ広く */
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: translateY(0); /* 初期位置 */
    transition: transform 1s ease; /* スムーズな動き */
    opacity: 0; /* 非ホバー時は透明 */
  }

  .consultation_link:hover::before {
    transform: translateY(100%); /* 下に移動 */
    opacity: 1; /* ホバー時に表示 */
  }

@media (max-width: 500px) {
  .floating_consultation.active {
    right: 20px; /* スクロール時に画面内に表示 */
  }
}


/* ここからが2種類のHP */

.kind_box {
  display: flex;
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center; /* 垂直方向の中央揃え */
  width: 100%; /* 画面全体の高さを確保 */
  margin: 0; /* デフォルトの余白を削除 */
  font-size: 18px;
}

.kind {
  max-width: 1000px;
  width: 100%;
  background-color: #F6F5FA;
  border-radius: 2em;
  display: flex;
  gap: 50px;
  margin: 2em 1em 0;
  padding: 3em 0em 9em;
  text-align: center;
  position: relative;
}

.kind section {
  max-width: 450px;
  width: 100%;
  position: relative; /* 必須 */
}

/* 最初のsectionのみ、右側に線を追加 */
.kind section:first-child::after {
  content: '';
  position: absolute;
  top: 50%; /* セクション全体の高さの半分に配置 */
  right: -25px; /* セクション右端からの距離を調整 */
  transform: translateY(-50%); /* 中央揃え */
  width: 2px; /* 線の太さ */
  height: 50%; /* 線の高さを全体の50%に調整 */
  background-color: #858585; /* 線の色 */
}


.detail{
  background-color: #fff;
  border-radius: 2em;
  padding: 1.5em 1.5em;
  margin: 0 auto;
  max-width: 350px;
  width: 100%;
}

.kind h3{
  font-size: 2em;
}

.text{
  font-size: .8em;
  letter-spacing: .1em;
  line-height: 1.5em;
  margin: 2em 0;
}

.part1{
  font-size: 1.1em;
  color: rgb(110, 172, 201);
  margin-bottom: 1em;
}
.part2{
  font-size: .9em;
  color: rgb(201, 110, 125);
  line-height: 1.5em;
  margin-bottom: 1em;
}

.detail h6{
  text-align: left;
  font-size: 1em;
  margin-top: 1.5em;
}
.detail p{
  text-align-last: left;
  font-size: .8em;
  line-height: 1.5em;
  margin-bottom: 2em;
  margin-left: 1em;
}

.detail h5{
  font-size: 1.5em;
}

.detail h5 span{
  font-size: 1.6em;
}


/* ここからキャラクター */

.character {
  position: absolute; /* キャラクターを絶対位置で配置 */
  width: 150px; /* キャラクターの幅 */
  height: auto;
}

.character.left {
  left: 0; /* 左側に配置 */
  bottom: 0; /* 画面下部に配置 */
}

.character.right {
  right: 0; /* 右側に配置 */
  bottom: 0; /* 画面下部に配置 */
}

.character img {
  width: 100%; /* キャラクター画像が親要素の幅に合わせて表示 */
}

.speech-bubble {
  position: absolute; /* 吹き出しを絶対位置で配置 */
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  color: #fff;
  opacity: 0; /* 初期状態で透明 */
  visibility: hidden; /* 初期状態で非表示 */
  transition: opacity 1s ease, visibility 0s 1s; /* 1秒でフェードイン/アウト */
  font-family: "makinas-4-square", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.speech-bubble.show {
  opacity: 1; /* 表示時に透明度を1に */
  visibility: visible; /* 表示時に可視に */
  transition: opacity 1s ease, visibility 0s 0s;
}

/* 左側の吹き出し (キャラクターの右側に配置) */
.speech-bubble.left {
  background: #719F5B;
  left: 15%; /* 吹き出しをキャラクターの右側に配置 */
  bottom: 3em; /* 吹き出しをキャラクターの上に配置 */
  transform: translateX(20px); /* 吹き出しを右にずらす */
}

/* 右側の吹き出し (キャラクターの左側に配置) */
.speech-bubble.right {
  background: #9f5b5b;
  right: 15%; /* 吹き出しをキャラクターの左側に配置 */
  bottom: 3em; /* 吹き出しをキャラクターの上に配置 */
  transform: translateX(-20px); /* 吹き出しを左にずらす */
}

/* 吹き出しの矢印 */
.speech-bubble::after {
  content: '';
  background: #719F5B;
  position: absolute;
  top: 50%;
  left: -7px; /* 矢印の位置を調整 (左側) */
  transform: translateY(-50%);
  width: 10px; /* 矢印全体の幅 */
  height: 14px; /* 矢印全体の高さ */
  background-color: #719F5B; /* 吹き出しの背景色と一致 */
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%); /* 左が細く、右が太くなる形状 */
}

/* 右側の吹き出しの矢印 */
.speech-bubble.right::after {
  background: #9f5b5b;
  left: auto; /* 矢印の位置を右側に変更 */
  right: -7px; /* 矢印を右に配置 */
  clip-path: polygon(100% 50%, 0% 0%, 0% 100%); /* 右向きの矢印 */
}


/* レスポンシブデザイン（画面幅900px以下） */
@media (max-width: 900px) {
  .kind {
    max-width: 500px;
    flex-direction: column; /* 縦並びに変更 */
    gap: 50px;
    margin: 2em 1em 0;
    padding: 3em 1.5em 0;
    align-items: center;
    text-align: center;
    position: relative;
  }

  /* 最初のsectionの下に横線を引く */
  .kind section:first-child::after {
    content: '';
    position: absolute;
    margin-top: 8em;
    top: 100%; /* 最初のsectionの下に配置 */
    left: 0; /* セクションの左端に配置 */
    width: 100%; /* セクションの幅に合わせて線を引く */
    height: 2px; /* 線の太さ */
    background-color: #858585; /* 線の色 */
  }

  .kind section {
    max-width: 450px;
    width: 100%;
    position: relative; /* 必須 */
    margin-bottom: 8em;
  }

  
.character.left {
  left: 0; /* 左側に配置 */
  bottom: 52%; /* 画面下部に配置 */
}
/* 左側の吹き出し (キャラクターの右側に配置) */
.speech-bubble.left {
  left: 33%; /* 吹き出しをキャラクターの右側に配置 */
  bottom: 55%; /* 吹き出しをキャラクターの上に配置 */
}

/* 右側の吹き出し (キャラクターの左側に配置) */
.speech-bubble.right {
  right: 33%; /* 吹き出しをキャラクターの左側に配置 */
  bottom: 3em; /* 吹き出しをキャラクターの上に配置 */
}

}

@media (max-width: 500px) {
  .kind_box {
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    width: 100%; /* 画面全体の高さを確保 */
    margin: 0; /* デフォルトの余白を削除 */
    font-size: 13px;
  }
  .character {
    width: 100px; /* キャラクターの幅 */
  }
  .speech-bubble {
    padding: 5px 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    color: #fff;
    opacity: 0; /* 初期状態で透明 */
    visibility: hidden; /* 初期状態で非表示 */
    transition: opacity 1s ease, visibility 0s 1s; /* 1秒でフェードイン/アウト */
  }
  .character.right {
    right: 3.5em; /* 右側に配置 */
    bottom: 0; /* 画面下部に配置 */
  }
  

  /* 左側の吹き出し (キャラクターの右側に配置) */
.speech-bubble.left {
  left: 23%; /* 吹き出しをキャラクターの右側に配置 */
  bottom: 55%; /* 吹き出しをキャラクターの上に配置 */
}

/* 右側の吹き出し (キャラクターの左側に配置) */
.speech-bubble.right {
  right: 38%; /* 吹き出しをキャラクターの左側に配置 */
  bottom: 3em; /* 吹き出しをキャラクターの上に配置 */
}


}



/* ここまで */
/* ここからは三つの特徴 */

.feature{
  text-align: center;
  padding: 10em 0 5em;

}

.feature h1{
  line-height: 1.5em;
  font-size: 2em;
  color: #005183; /* 初期背景色（単色） */
}
.scroll-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  position: relative;  /* 親コンテナにrelativeを指定 */
}

.scroll-list li {
  width: 70%;
  opacity: 0;  /* Initially hidden */
  transform: translateX(50px);  /* Start off-screen */
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  scroll-snap-align: center;
  text-align: left;
  background-color: #F6F5FA;
  padding: 2em;
  margin-top: 3em;
  position: relative;  /* 親要素に相対位置を設定 */
}



.scroll-list li.left-entry::after {
  content: "";
  position: absolute;
  right: -65px;  /* 丸い部分を外側にずらす */
  top: 50%;
  transform: translateY(-50%);
  width: 150px;  /* 正円の直径 */
  height: 100%;  /* 正円の直径 */
  background-color: #F6F5FA;  /* 背景色 */
  border-radius: 50%;  /* 正円 */
  z-index: -5;
}
.scroll-list li.right-entry::after {
  width: 0px;  /* 正円の直径 */
  border-radius: 50%;  /* 正円 */
  z-index: -5;
}
/* 2番目のliだけに適用 */
.scroll-list li.right-entry::before {
  content: "";
  position: absolute;
  left: -65px;  /* 丸い部分を外側にずらす */
  top: 50%;
  transform: translateY(-50%);
  width: 150px;  /* 正円の直径 */
  height: 100%;  /* 正円の直径 */
  background-color: #F6F5FA;  /* 背景色 */
  z-index: -5;
  border-radius: 50%;  /* 正円 */
}
.content {
  display: flex;
  align-items: center; /* 画像とテキストを縦方向に中央揃え */
  justify-content: flex-start; /* 画像とテキストを横に並べる */
  gap: 2em;
}
.content p {
  z-index: 10;
  line-height: 1.3em;
  font-size: .9em;
  padding: 1em;
}
.content h3{
  font-size: 1.5em;
}

.scroll-list li img {
  margin-right: 15px; /* 画像とテキストの間に余白 */
  width: 150px;  /* 画像の幅を指定 */
  height: auto; /* 画像の高さを指定 */
}

.scroll-list .left-entry {
  transform: translateX(-50px);  /* Start slightly off to the left */
}

/* 2番目のliをブラウザの右端に配置 */
.scroll-list li.right-entry {
  position: absolute;  /* 絶対位置に設定 */
  right: 0;  /* 親要素の右端に配置 */
  padding-left: 5.3em;
  top: 18em;  /* 必要に応じて調整 */
}


/* Reveal the list items when in view */
.scroll-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.third{
  margin-top: 25em !important;
}

@media (max-width: 1000px) {
  .scroll-list li {
    width: 85%;
  }
  
  /* 2番目のliをブラウザの右端に配置 */
.scroll-list li.right-entry {
  padding-left: 0;
  z-index: 10;
}
}
@media (max-width: 800px) {
  .scroll-list li img {
    margin-right: 0; /* 画像とテキストの間に余白 */
    width: 120px;  /* 画像の幅を指定 */
  }
  
  .feature{
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .scroll-list li {
    width: 100%;
  }
  .content {
    flex-direction: column;
    text-align: center;
  }
  .scroll-list li.left-entry::after {
    width: 0;  /* 正円の直径 */
  }
  .feature h1{
    margin: 3em 0 0;
  }
  /* 2番目のliをブラウザの右端に配置 */
.scroll-list li.right-entry {
  top: 26em;  /* 必要に応じて調整 */
}


/* Reveal the list items when in view */
.scroll-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.third{
  margin-top: 30em !important;
}
}



/* ここまで */

.plans{
  background-color: #F6F5FA;
  margin-top: 5em;
  padding: 0 0 10em;
  text-align: center;
}

.plans h1{
  font-size: 2em;
  padding-bottom: 2em;
}

.container {
  position: relative;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 3em auto;
}
.container::after {
  position: absolute;
  content: '';
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: inset 0 0 20px 20px #E6ECF2;
}
.container2 {
  position: relative;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 3em auto;
}
.container2::after {
  position: absolute;
  content: '';
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: inset 0 0 20px 20px #f2e6e8;
}
.image {
  width: 100%;
  height: 100%;
}

.box5-6 {
  background-color: #E6ECF2; /* ボックス背景色 */
  padding: 2.5em 0em 2em; /* ボックス内側余白 */
  position: relative; /* 配置(ここを基準に) */
}

.box5-6::before {
  content: ''; /* 擬似要素の内容 */
  position: absolute;
  top: -30px; /* 上からの位置調整 */
  left: 0;
  right: 0;
  height: 50px; /* グラデーションの高さを広げる */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(230, 236, 242, 0)); /* 白から背景色へのより自然なグラデーション */
  pointer-events: none; /* 擬似要素が他の要素と干渉しないように */
}

.box5-7 {
  background-color: #f2e6e8; /* ボックス背景色 */
  padding: 2.5em 0em 2em; /* ボックス内側余白 */
  position: relative; /* 配置(ここを基準に) */
}




.box5-6 .box-title {
	background-color: rgba(255,255,255,.1);/* テープ背景色と透過*/
	border-left: 2px dotted rgba(0,0,0,.1);/* ギザギザ左*/
	border-right: 2px dotted rgba(0,0,0,.1);/* ギザギザ右*/
	box-shadow: 0 0 5px rgba(0,0,0,0.2); /*テープ影*/
  transform: rotate(-2deg) translateX(-50%); /* テープの傾き + 水平中央寄せ */
	color: #666; /*タイトル文字色 */
	padding: 1em 2em;/*タイトルの余白*/
	line-height: 1;/*タイトルの行の高さ*/
	position:absolute;/*配置(ここを動かす)*/
  font-size: 1.5em;
	top: -25px; /*上からの距離*/
	left: 50%; /*左からの距離*/
}
.box5-7 .box-title {
	background-color: rgba(255,255,255,.1);/* テープ背景色と透過*/
	border-left: 2px dotted rgba(0,0,0,.1);/* ギザギザ左*/
	border-right: 2px dotted rgba(0,0,0,.1);/* ギザギザ右*/
	box-shadow: 0 0 5px rgba(0,0,0,0.2); /*テープ影*/
  transform: rotate(-2deg) translateX(-50%); /* テープの傾き + 水平中央寄せ */
	color: #666; /*タイトル文字色 */
	padding: 1em 2em;/*タイトルの余白*/
	line-height: 1;/*タイトルの行の高さ*/
	position:absolute;/*配置(ここを動かす)*/
  font-size: 1.5em;
	top: -25px; /*上からの距離*/
	left: 50%; /*左からの距離*/
}


@media (max-width: 800px) {
  .box5-6 .box-title {
    padding: .6em 1em;/*タイトルの余白*/
    font-size: 1.5em;
  }
  .box5-7 .box-title {
    padding: .6em 1em;/*タイトルの余白*/
    font-size: 1.5em;
  }
  
}

@media (max-width: 800px) {
  .box5-7 .box-title {
    font-size: 1.1em;
    top: -15px; /*上からの距離*/
  }
  
}




/* ここまで */




.contact{
  background-image: url(../img/service_contact_background2.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  font-size: 18px;
  padding-bottom: 5em;
}
.contact_title{
  padding: 4em 1em 5em;
}
.contact_title h3{
  font-size: 4em;
}
.contact_title p{
  margin-top: -1em;
}

.contact button{
  margin-top: 3em;
}

@media (max-width: 1000px) {
  .contact{
      background-image: url(../img/service_contact_background.jpg);
      background-position: center;
      background-size: cover;
      text-align: center;
      font-size: 18px;
      padding-bottom: 5em;
  }
}




.fade-in {
  opacity: 0; /* 初期状態は非表示 */
  transition: opacity 2s ease-out, transform 2s ease-out; /* スムーズなアニメーション */
  will-change: opacity, transform; /* レンダリング最適化 */
}

.fade-in.visible {
  opacity: 1; /* 表示 */
  transform: translateY(0); /* 元の位置に */
}





.button {
  display: inline-block;
  position: relative;
  text-decoration: none;
  border: 5px solid transparent;
  background: #AED6D1;
  color: #55706D;
  border-radius: 40px;
  padding: 7px 0 7px 40px;
  margin-top: 4em;
  overflow: hidden; /* 内容がボタン幅を超えた場合に隠す */
  width: 135px; /* 初期幅 */
  transition: all 1.2s ease, border 0.5s 1.2s, box-shadow 0.3s 1.5s;
  font-weight: bold;
  white-space: nowrap; /* テキストが折り返されないようにする */
}

.button span {
  display: inline-block;
  position: relative;
  transform: translateX(300px); /* 初期状態でボタン外に配置 */
  opacity: 0; /* 非表示 */
  transition: opacity 0.4s 1.2s ease, transform 0.6s 1.2s ease; /* アニメーション遅延を再現 */
  font-weight: normal;
}

.button:hover {
  width: 250px; /* ホバー時に幅を広げる */
  background: #55706D;
  color: #FFE8A3;
  padding: 7px 0 7px 0px;
  border: 10px solid #8DCCC4;
  box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.15);
}

.button:hover span {
  transform: translateX(0); /* 元の位置にスライドイン */
  opacity: 1; /* 表示 */
}






.wrapper_outside {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: burlywood;
  z-index: 9999; /* 最前面に表示 */
  transition: opacity 2s ease, transform 5s ease, visibility 1s ease; /* フェードと移動用 */
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 初期位置 */
}

.wrapper_outside.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50px); /* 上に移動 */
}

.wrapper{
  width:200px;
  height:60px;
  position: absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
}
.circle{
  width:20px;
  height:20px;
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  left:15%;
  transform-origin: 50%;
  animation: circle .5s alternate infinite ease;
}

@keyframes circle{
  0%{
      top:60px;
      height:5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
  }
  40%{
      height:20px;
      border-radius: 50%;
      transform: scaleX(1);
  }
  100%{
      top:0%;
  }
}
.circle:nth-child(2){
  left:45%;
  animation-delay: .2s;
}
.circle:nth-child(3){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.shadow{
  width:20px;
  height:4px;
  border-radius: 50%;
  background-color: rgba(0,0,0,.5);
  position: absolute;
  top:62px;
  transform-origin: 50%;
  z-index: -1;
  left:15%;
  filter: blur(1px);
  animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
  0%{
      transform: scaleX(1.5);
  }
  40%{
      transform: scaleX(1);
      opacity: .7;
  }
  100%{
      transform: scaleX(.2);
      opacity: .4;
  }
}
.shadow:nth-child(4){
  left: 45%;
  animation-delay: .2s
}
.shadow:nth-child(5){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.wrapper span{
  position: absolute;
  top:75px;
  font-size: 20px;
  letter-spacing: 12px;
  color: #fff;
  left:15%;
}


.character_loading img{
  width: 100%;
}



.character_loading {
  position: absolute;
  bottom: -4em;
  right: -7em; /* 初期位置を画面外に設定 */
  width: 100px; /* キャラクターの幅 */
  animation: move-horizontal 20s linear infinite, zigzag-rotate 1s ease-in-out infinite;
}


  @media (max-width: 500px) {
    .character_loading {
      position: absolute;
      bottom: -4em;
      right: -4.5em; /* 初期位置を画面外に設定 */
      width: 80px; /* キャラクターの幅 */
      animation: move-horizontal 20s linear infinite, zigzag-rotate 1s ease-in-out infinite;
    }
    
  }
  
  