@charset "utf-8";

/* ======================================================================
/* root
====================================================================== */
:root {
  --color-brand: #00a9c8;
  --color-white: #ffffff;
  --color-black: #2f2725;
  --color-gray: #f7f7f7;
  --color-navy: #1c3054;
  --color-turquoise-blue: #2eb6aa;
  --color-yellow: #ffeb31;
  --color-orange: #ee713a;
  --color-light-orange: #ffc8b1;
  --color-red: #d63638;
}

/* ======================================================================
/* body
====================================================================== */
body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: var(--color-black);
  text-align: justify;
  letter-spacing: 0.05em;
  line-height: 1.8;
  background: url(../img/common/bg_materials.svg) top center / cover no-repeat;
}

@media screen and (width <= 768px) {
  body {
    font-size: 14px;
  }
}

/* ======================================================================
/* #container
====================================================================== */
#container {
  position: relative;
  inline-size: 500px;
  block-size: auto;
  margin-inline: auto;
  box-shadow: 0 0 30px 0px rgb(0 0 0 / 10%);
  background: var(--color-white);
}

@media screen and (width <= 768px) {
  #container {
    inline-size: 100%;
  }
}

/* ======================================================================
/* .inner
====================================================================== */
.inner {
  inline-size: 100%;
  block-size: auto;
  margin: 0 auto;
  padding: 30px;
}

@media screen and (width <= 768px) {
  .inner {
    block-size: auto;
    padding: 30px 15px;
  }
}

/* ======================================================================
/* fluidImg
====================================================================== */
@media screen and (width <= 768px) {
  .fluidImg {
    inline-size: 100%;
    block-size: auto;
  }
}

/* ======================================================================
/* relative
====================================================================== */
.relative {
  position: relative;
}

/* ======================================================================
/* nav01
====================================================================== */
#nav01 {
  position: relative;
  margin-block-start: 130px;

  & .inner {
    margin-block: 0 900px;
  }

  & .fadeBox_01 {
    position: absolute;
    inset-block-start: 70%;
    inset-inline-start: 3%;

    & img {
      inline-size: 250px;
    }
  }

  & .fadeBox_02 {
    position: absolute;
    inset-block-start: 220%;
    inset-inline-end: 5%;

    & img {
      inline-size: 250px;
    }
  }

  & .fadeBox_03 {
    position: absolute;
    inset-block-start: 320%;
    inset-inline-start: 3%;

    & img {
      inline-size: 250px;
    }
  }

  & .fadeBox_04 {
    position: absolute;
    inset-block-start: 440%;
    inset-inline-end: 5%;

    & img {
      inline-size: 250px;
    }
  }

  & .circleBox_01 {
    position: absolute;
    inset-block-start: 70%;
    inset-inline-end: 0;
  }

  & .circleBox_02 {
    position: absolute;
    inset-block-start: 600%;
    inset-inline-start: 5%;
  }

  & .circleBox_03 {
    position: absolute;
    inset-block-start: 700%;
    inset-inline-end: 5%;
  }
}

@media screen and (width <= 599px) {
  #nav01 {
    position: relative;
    margin-block-start: 65px;

    & .inner {
      margin-block: 0 800px;
    }

    & .fadeBox_01 {
      position: absolute;
      inset-block-start: 70%;
      inset-inline-start: 3%;

      & img {
        inline-size: 180px;
      }
    }

    & .fadeBox_02 {
      position: absolute;
      inset-block-start: 220%;
      inset-inline-end: 5%;

      & img {
        inline-size: 180px;
      }
    }

    & .fadeBox_03 {
      position: absolute;
      inset-block-start: 340%;
      inset-inline-start: 3%;

      & img {
        inline-size: 180px;
      }
    }

    & .fadeBox_04 {
      position: absolute;
      inset-block-start: 460%;
      inset-inline-end: 5%;

      & img {
        inline-size: 180px;
      }
    }

    & .circleBox_01 {
      position: absolute;
      inset-block-start: 70%;
      inset-inline-end: 0;

      & img {
        inline-size: 150px;
      }
    }

    & .circleBox_02 {
      position: absolute;
      inset-block-start: 600%;
      inset-inline-start: 5%;

      & img {
        inline-size: 100px;
      }
    }

    & .circleBox_03 {
      position: absolute;
      inset-block-start: 700%;
      inset-inline-end: 5%;

      & img {
        inline-size: 50px;
      }
    }
  }
}

/* circleBox: 初期は非表示 + scale(0) */
.circleBox_01,
.circleBox_02,
.circleBox_03 {
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  will-change: transform, opacity;
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease-out;
}

/* ページ読込後に表示（scale 1） */
html.is-page-loaded .circleBox_01,
html.is-page-loaded .circleBox_02,
html.is-page-loaded .circleBox_03 {
  opacity: 1;
  transform: scale(1);
}

/* 1つずつ少しずらして表示 */
html.is-page-loaded .circleBox_01 {
  transition-delay: 1s;
}
html.is-page-loaded .circleBox_02 {
  transition-delay: 2s;
}
html.is-page-loaded .circleBox_03 {
  transition-delay: 3s;
}

@media (prefers-reduced-motion: reduce) {
  .circleBox_01,
  .circleBox_02,
  .circleBox_03 {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ======================================================================
/* diagnosisBox
====================================================================== */
.diagnosisBox {
  position: relative;
  z-index: 10;
  margin-block-start: -35%;

  & img {
    inline-size: 200px;
  }
}

/* ======================================================================
/* nav02
====================================================================== */
#nav02 {
  position: relative;
  inline-size: 100%;
  block-size: auto;
  background: var(--color-turquoise-blue);
  margin-block-start: -10%;

  &::before {
    content: "";
    position: absolute;
    inset-block-start: -20%;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 150px;
    background: url(../img/benefit/benefit_bg_before.svg) top left / cover no-repeat;
  }

  &::after {
    content: "";
    position: absolute;
    inset-block-end: -18%;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 150px;
    background: url(../img/benefit/benefit_bg_after.svg) top left / cover no-repeat;
  }
}

/* ======================================================================
/* nav03
====================================================================== */
#nav03 {
  background: var(--color-gray);
}

/* ======================================================================
/* nav06
====================================================================== */
#nav06 {
  position: relative;
  text-align: center;

  & .typingTxt {
    position: absolute;
    inset: 50% 0 0 50%;
    transform: translate(-50%, -50%);
    inline-size: 100%;

    & .subTitle {
      font-weight: bold;
      color: var(--color-white);
    }

    & .mainTitle {
      font-size: 28px;
      line-height: 1.5;
      font-weight: bold;
      color: var(--color-white);
    }
  }
}

@media screen and (width <= 768px) {
  #nav06 {
    position: relative;

    & .typingTxt {
      position: absolute;

      & .subTitle {
        font-size: 12px;
      }

      & .mainTitle {
        font-size: 18px;
      }
    }
  }
}

/* ======================================================================
/* target_nav
====================================================================== */
.target_nav {
  position: fixed;
  z-index: 100;
  top: 50%;
  right: 50%;
  transform: translate(calc(-50% + 300px), -50%);
  z-index: 50;
}

.header__link {
  display: block;
  width: 6px;
  height: 32px;
  background-color: transparent;
  border: 1px solid var(--color-navy);
  margin-top: 20px;

  &.is-active {
    background-color: var(--color-turquoise-blue);
  }
}

.header__item {
  position: relative;
}

.t_nav_tex {
  display: block;
  width: 28px;
  text-align: center;
  position: absolute;
  top: 50%;
  color: var(--color-navy);
  transform: translate(15%, -50%);
}

@media screen and (width <= 599px) {
  .target_nav {
    display: none;
  }
}

.floatMenu,
.target_nav {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease; /* 0.4s はフェードの秒数 */
}

.floatMenu.is-active,
.target_nav.is-active {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
/* header
===================================================== */
header {
  position: relative;
}

/* =====================================================
/* footer
===================================================== */
footer {
  inline-size: 100%;
  block-size: 60px;
  background: var(--color-brand);
  display: grid;
  place-content: center;
}
