/* 定義 */
@custom-media --mb (max-width: 896px);
@custom-media --desk (min-width: 897px);

.sp{
  display: none;
  @media (max-width: 896px) {
    display: block;
  }
}
.pc{
  @media (max-width: 896px) {
    display: none;
  }
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* common */
html,
body{
  overflow-x: hidden;
  position: relative;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 62.5;
  color: #fff;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  /* font-feature-settings: "palt"; */
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-start: 0; 
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  vertical-align: bottom;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}
a {
  /* 下線や青色をリセット（テキストと同じ色にする） */
  color: inherit;
  text-decoration: none;

  /* クリック・タップ範囲の最適化（インライン要素としての挙動を安定させる） */
  display: inline-block; /* 必要に応じて設定 */
  
  /* タップした時のハイライトを無効化（iOS等） */
  -webkit-tap-highlight-color: transparent;
  
  /* フォーカス時のアウトラインを適切に設定（アクセシビリティ確保） */
  &:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
  }
}
/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

.en{
  font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

canvas{
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
}

.header{
  .logo{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    width: 240px;
    @media (max-width: 896px) {
      width: 38%;
    }
  }
}

.path{
  width: max-content;
  padding-bottom: 16px;
  padding-right: 97px;
  margin-left: auto;
  border-bottom: 2px solid #fff;
  @media (max-width: 896px) {
    padding-bottom: 8px;
    padding-right: 5%;
  }
  p{
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    @media (max-width: 896px) {
      font-size: 18px;
    }
  }
}

.contact{
  padding: 80px 0 0;
  margin-top: 118px;
  background: linear-gradient(90deg, #C3DDFF 0%, #FFC7C7 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
  @media (max-width: 896px) {
    margin-top: 80px;
  }
  .contact_head{
    width: max-content;
    margin: auto;
    @media (max-width: 896px) {
      width: 90%;
    }
  }
  .btn-contact {
    position: relative;
    display: block;
    width: 284px;
    padding: 24px 28px;
    margin: -2px auto 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #003F8C 0%, #D71918 100%);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    transition: .25s ease;
    &:before{
      content: "";
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translate(0,-50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: #fff;
      background-image: url(../img/common/icon_arrow_link_grad.svg);
      background-size: 8px;
      background-position: 55% center;
      background-repeat: no-repeat;
    }
    &:after{
      content: "";
      position: absolute;
      top: 50%;
      right: 10px;
      z-index: 2;
      transform: translate(-5px,-50%);
      opacity: 0;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-image: url(../img/common/icon_arrow_link.svg);
      background-size: 8px;
      background-position: 55% center;
      background-repeat: no-repeat;
      transition: .5s ease;
    }
    &:hover{
      background: #fff;
      &:before{
        background: linear-gradient(90deg, #003F8C 0%, #D71918 100%);
        transition: .5s ease;
      }
      &:after{
        opacity: 1;
        transform: translate(0,-50%);
      }
      .link{
        background: linear-gradient(90deg, #003F8C, #D71918);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
      }
    }
  }
  .txt{
    width: max-content;
    margin: 18px auto;
    background: linear-gradient(90deg, #003F8C, #D71918);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 20px;
    font-weight: 600;
    font-feature-settings: "palt";
    letter-spacing: .1em;
    @media (max-width: 896px) {
      width: 90%;
      font-size: 16px;
    }
  }
  .phone{
    width: max-content;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #003F8C, #D71918);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    @media (max-width: 896px) {
      width: 90%;
      flex-direction: column;
    }
    .tel{
      padding-left: 28px;
      background-image: url(../img/common/icon_tel.svg);
      background-size: 21px;
      background-position: 0 center;
      background-repeat: no-repeat;
      font-size: 30px;
      font-weight: 700;
    }
    .reception{
      margin-left: 14px;
      font-size: 12px;
      letter-spacing: .1em;
    }
  }
  .copyright{
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #000;
    font-size: 16px;
    color: #fff;
    text-align: right;
    @media (max-width: 896px) {
      text-align: center;
    }
    small{
      color: #fff;
    }
  }
}

/* parts */
.baseLinkbtn{
  position: relative;
  display: block;
  width: 284px;
  padding: 24px 28px;
  /* margin: auto; */
  border-radius: 36px;
  background-color: #fff;
  text-align: left;
  @media (max-width: 896px) {
    padding: 20px 24px;
  }
  &:before{
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0,-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(90deg, #2A70C6 19%, #E72726 95% );
    @media (max-width: 896px) {
      width: 48px;
      height: 48px;
    }
  }
  &:after{
    content: "";
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translate(0,-50%);
    width: 10px;
    height: 18px;
    background-image: url(../img/common/icon_arrow_link.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
  }
  .txt{
    background: linear-gradient(90deg, #003F8C, #D71918);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    color: transparent;
  }
  &.comingsoon{
    filter: grayscale(1);
    pointer-events: none;
  }
}

/* animation */
.js-ani-clip-up {
  transition: all .4s ease;
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
  &.is-active{
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }
}

.js-ani-clip-slide {
  display: inline-block;
  transition: all 1s ease;
  clip-path: inset(0 100% 0 0);
  &.is-active{
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }
}

.js-ani-item{
  transition: all .4s ease;
}

.text-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden; /* はみ出た文字を隠す */
  /* padding: 10px 20px; */
  /* font-size: 3rem; */
  font-weight: bold;
  vertical-align: bottom;
}

/* 背景色の板 */
.bg-filler {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* 好きな背景色 */
  transform: scaleX(0);      /* 最初は横幅ゼロ */
  transform-origin: left;    /* 左端を起点に伸びるようにする */
  z-index: 0;
}

/* 文字 */
.text-content {
  position: relative;
  display: block;
  clip-path: inset(0 100% 0 0);
  /* transform: translateY(100%); 最初は下に隠しておく */
  z-index: 1;
  transition: .4s ease;
}