html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    font-family: 
    "Avenir", 
    "YuMincho", "游明朝", "Yu Mincho", 
    "Hiragino Mincho ProN", "Hiragino Mincho Pro", 
    serif;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  
  #gradient-canvas {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    --gradient-color-1: #f4d1d2;
    --gradient-color-2: #d3d8f4;
    --gradient-color-3: #e6fffe;
    --gradient-color-4: #74bfea;
  }

  .loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 1.5s 2.5s forwards;
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
  
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
  
  .loading__logo {
    opacity: 0;
    animation: logo_fade 2s 0.5s forwards;
    width: 15%;
  }
  
  @keyframes logo_fade {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
  
    60% {
      opacity: 1;
      transform: translateY(0);
    }
  
    100% {
      opacity: 0;
    }
  }
  
  /* グラスモーフィズムのボックス */
.glass-box {
    position: absolute;
    top: 50%; /* 上から50% */
    left: 50%; /* 左から50% */
    transform: translate(-50%, -50%); /* 中央に配置 */
    width: 60%;
    height: 70%;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 2px solid rgba(255, 255, 255, 0.7);;
    z-index: 1;
    overflow: hidden;
    animation: fadeExpand 1.5s ease-out forwards; /* フェードイン＆拡大 */
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  
  /* フェードイン＆拡大のアニメーション */
  @keyframes fadeExpand {
    0% {
      transform: translate(-50%, -50%) scale(0.9); /* 初めは少し小さい */
      opacity: 0; /* 初めは透明 */
    }
    100% {
      transform: translate(-50%, -50%) scale(1); /* 完全に拡大して元のサイズに */
      opacity: 1; /* 完全に表示 */
    }
  }
  
  
  
  /* 中身だけスクロール */
  .glass-content {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: center;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  
  /* 初期状態で透明 */
  .fade-in {
    opacity: 0;
    transition: opacity 1.5s ease-out;
    will-change: opacity, transform; /* アニメーション対象のプロパティを事前に通知 */
  }
  
  .fade-in.visible {
    opacity: 1;
  }

  .header-bg {
    background: url("img/mainvisual.png") center center / cover no-repeat fixed;
    width: 100%;
    height: 63vh;
  }

  .backgroundcolor{
    background: rgba(255, 255, 255, 0.43);
    padding-bottom: 120px;
  }
  .glass-content .single-scroll-down-animation p{
    color: #87c7eb;
    margin: 0px auto 8px;
    letter-spacing: 0.09em;
    margin-bottom: 20px;
    font-size: 12px;
  }

  .scroll-down5{
    width: 1px;
    height: 60px;
    position: relative;
    background: transparent;
    animation: scrollDown5 1.5s ease infinite;
    border-radius: 100%;
    margin: 0 auto;

    &:before{
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(transparent, #87c7eb, transparent);
        }
    }

    @keyframes scrollDown5{
        0%{
            transform-origin: top;
            transform: scaleY(0);
        }
        45%{
            transform-origin: top;
            transform: scaleY(1);
        }
        55%{
            transform-origin: bottom;
            transform: scaleY(1);
        }
        100%{
            transform-origin: bottom;
            transform: scaleY(0);
        }
    }
  
  .glass-content p {
    color: #fff;
    line-height: 1.6;
  }
  
  .lead_box h2{
    font-weight: 500;
    font-size: 24px;
    line-height: 1.7em;
    letter-spacing: 0.11em;
    margin: 180px auto 80px;
    color: #505b63;
  }

  .lead_box p{
    font-size: 16px;
    line-height: 2.7em;
    letter-spacing: 0.04em;
    color: #505b63;
    padding: 0 20px;
  }

  .fade-block {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 1.8s cubic-bezier(0.25, 0.8, 0.25, 1),
      transform 2s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .fade-block.visible {
    opacity: 1;
    transform: translateY(0);
  }
  	
  .movetext {
    opacity: 0;
  }
  
  .movetext span {
    opacity: 0;
    display: inline-block;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  

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

  .contact p{
    color: #505b63;
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .contact img{
    width: 12px;
    margin-right: 8px;
  }

  .since{
    position: fixed;
    left: 50%;
    top: 92%;
    transform: translateX(-50%) translateY(0%);
    letter-spacing: 0.083em;
    color: #343e89;
  }

  /* 円形グラスモーフィズムボタン */
.circle-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }
  
  .circle-button:hover {
    transform: scale(1.1);
  }
  
  .circle-button img {
    width: 20px;
  }
  
  /* モーダルスタイル */
  /* モーダル全体の背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 45, 58, 0.5);
  }
  
  /* モーダルの内容部分にアニメーション追加 */
  .modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: 250px;
    font-size: 18px;
    color: #0c0c0c;
    position: relative;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    animation: fadeInZoom 0.3s ease-out forwards;
  }
  
  /* 閉じるボタン */
  .modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #505b63;
  }

  h4{
    font-size: 14px;
    font-weight: 500;
    color: #505b63;
    margin-bottom: 0;
  }
  
  /* アニメーションの定義 */
  @keyframes fadeInZoom {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
.blockpc {
  display: block;
}
.blocksp {
  display: none;
}

/* タブレット用（768px〜1024px） */
@media screen and (min-width: 700px) and (max-width: 1024px) {
  .loading__logo{
    width: 50%;
    margin-top: -100px;
  }
  .glass-box{
    width: 80%;
    height: 75%;
  }
  .header-bg {
    background: url("img/mainvisual_ta.png") center center / cover no-repeat fixed;
    height: 64vh;
  }
  .lead_box h2 {
    font-size: 24px;
  }
  .lead_box p {
    font-size: 16px;
    line-height: 2.8em;
  }
  .contact p {
    font-size: 18px;
  }
  .since {
    top: 93%;
  }

}
/* スマホ用（〜768px） */
@media (max-width: 700px) {
  .loading__logo{
    width: 50%;
    margin-top: -20px;
  }
  .glass-box{
    width: 90%;
    top: 48%;
    height: 70vh;
    border: 1px solid rgba(255, 255, 255, 0.7);
  }
  .header-bg {
    background: url("img/mainvisual_sp.png") center center / cover no-repeat fixed;
    width: 100%;
    height: 63vh;
  }
  .glass-content .single-scroll-down-animation p{
    font-size: 12px;
    margin-bottom: 10px;
  }
  .scroll-down5{
    height: 40px;
  }
  .lead_box h2{
    padding: 0 20px;
    text-align: left;
    font-size: 22px;
    line-height: 2;
    margin-top: 120px;
    margin-bottom: 60px;
  }
  .lead_box p{
    text-align: left;
    font-size: 14px;
    letter-spacing: .1em;
    line-height: 2.3;
  }
  .contact p {
    font-size: 16px;
  }
  .backgroundcolor{
    padding-bottom: 80px;
  }
  .logo-mask text {
    font-size: 40px;
  }
  .since {
    position: fixed;
    left: 50%;
    top: 94%;
    transform: translateX(-50%) translateY(0%);
    letter-spacing: 0.083em;
    color: #343e89;
    font-size: 12px;
  }
  .circle-button{
    bottom: 3%;
    right: 5%;
    width: 50px;
    height: 50px;
  }
  .circle-button img {
    width: 15px;
  }
  .blocksp {
    display: block;
  }
  .blockpc {
    display: none;
  }
}
  
