@charset "UTF-8";

  html {
    scroll-behavior: smooth;
  }

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


.main_view{
    width: 100%;
    height: 400px;
    font-size: 18px;
    overflow: hidden;
    position: relative;
}
.title{
    width: 250px;
    margin: 200px auto 0;
}
.title h4{
  color: #27acd9;
  font-size: 1.8em;
}
.title h1{
  color: #474747;
  font-size: 2.5em;
  margin-top: -30px;
}


.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{
    width: 150px;
    margin: 200px auto 0;
}
.title h4{
  color: #27acd9;
  font-size: 1.8em;
}
.title h1{
  color: #474747;
  font-size: 2em;
  margin-top: -30px;
}

}

.content {
  max-width: 1200px;
  width: 90%;
  background-color: #868686;
  margin: 0 auto;
  padding: 15px;
  border-radius: 50px;
  box-sizing: border-box;
  margin-bottom: 100px;
}

.content_white {
  display: flex;
  border-radius: 50px;
  background-color: white;
  padding: 50px 20px;
  box-sizing: border-box;
  gap: 20px;
}
.inner_wrapper {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.sidebar {
  width: 200px;
  position: sticky;
  top: 20px;
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 15px;
  height: fit-content;
  flex-shrink: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.main_content {
  flex: 1;
}

.section-title {
  display: none; /* 通常は非表示 */
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  color: #474747;
}
.company-table td{
  color: #313131;
  font-size: 1.2em;
}
.philosophy{
  margin-bottom: 70px;
}
.philosophy h6{
  font-size: 1.3em;
  color: #27acd9;
}
.philosophy h3{
  font-size: 2em;
  color: #555555;
  margin-bottom: 20px;
}
.philosophy p{
  color: #474747;
}

/* スマホや小さい画面用 */
@media (max-width: 800px) {
  .inner_wrapper {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .section-title {
    display: block;
    font-size: 18px;
    background-color: #27acd9;
    color: white;
    width: 110px;
    margin: 0 auto 30px;
    border-radius: 10px;
    text-align: center;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 5px 0;
  }

  .company-table tr {
    display: block;
    margin-bottom: 15px;
  }

  .company-table th {
    font-weight: bold;
    background: none;
    border: none;
    padding-top: 10px;
  }

  .company-table td {
  border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    font-size: 1em;
  }
  .philosophy h3{
  font-size: 1.5em;
  color: #555555;
  margin-bottom: 20px;
}

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


  .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; /* スクロール時に画面内に表示 */
  }
}

/* ここまで */


.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); /* 元の位置に */
}





.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;
    }
    
  }
  
  