@layer base {
  :root {
    /* カラー定義 */
    --color-blue-gray: #bfc7d2;
    --color-blue-gray-dec: 191 199 210;
    /* トランジション・アニメーション */
    --anim-quick: 0.2s ease 0s;
    --amin-middle: 0.3s ease 0s;
    --anim-slow: 0.5s ease 0s;
  }
}



@layer module {

  /* スクリーンリーダー・AI用 */
  .sr_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%);
    border: 0;
  }
}



@layer project {

  /* ---- 中間CTA -------------------------------- */
  .cta_area {
    margin-block-start: clamp(37.5px, 12.5vw, 75px);
    padding: clamp(15px, 5vw, 30px);
    background-color: var(--color-fastask-violet);
  }

  .cta_wrapper {
    width: min(90%, 750px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(15px, 5vw, 30px);
    align-items: center;
  }

  .cta_shoulder {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: white;
  }

  .cta_btn {
    display: block;
    margin-inline: auto;
    padding-block: clamp(3px, 1vw, 6px);
    padding-inline: clamp(15px, 5vw, 30px);
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0 10px rgb(var(--color-fastask-cyan-dec) / 0);
    font-size: 1.3rem;
    font-weight: 550;
    color: var(--color-fastask-violet);
    text-align: center;
    line-height: 1.3;
    transition: background-color var(--anim-quick),
      box-shadow var(--anim-quick),
      color var(--anim-quick);

    &:hover {
      background-color: var(--color-fastask-cyan);
      box-shadow: 0 0 10px rgb(var(--color-fastask-cyan-dec) / 0.5);
      color: white;
    }
  }

  .cta_shoulder+.cta_btn {
    margin-block-start: clamp(12px, 4vw, 24px);
  }

  .cta_visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  @media screen and (max-width: 768px) {
    .cta_wrapper {
      grid-template-columns: 1fr;
    }
  }


  /* ---- キービジュアル（.keyvisual） ---------------- */
  .keyvisual {
    --keyvisual-height: auto;
  }

  .keyvisual .keyvisual_container {
    container: keyvisual_container / inline-size;
    display: block;
    width: min(var(--container-width), var(--header-width), 1800px);
    height: auto;
    padding-block-end: 110px;
  }

  :where(.keyvisual) .kv_title_group {
    margin-block-start: 3dvh;
    margin-block-end: 1dvh;
  }

  :where(.keyvisual) .kv_title {
    font-size: clamp(2rem, 4.8vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
  }

  :where(.keyvisual) .kv_title_copy {
    margin-block: 0;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    color: white;
    font-weight: 300;
    text-align: center;
  }

  :where(.keyvisual) .keyvisual_image .keyvisual_image_inner:has(dotlottie-wc) {
    aspect-ratio: 412 / 206;
    max-height: 600px;
    margin-inline: auto;
  }

  :where(.keyvisual) .keyvisual_image .keyvisual_image_inner:has(img){
    margin-block-start: clamp(35px,7vw,70px);
    width: fit-content;
    margin-inline: auto;
    & img{
      width: 100%;
      height: auto;
      max-height: 450px;
    }
  }

  :where(.keyvisual) .keyvisual_image .keyvisual_image_inner:has(video){
    /* aspect-ratio: 412 / 206; */
    /* max-height: 600px; */
        width: fit-content;
    margin-inline: auto;
& video{
      width: 100%;
      height: auto;
      max-height: 600px;
}
  }

  @media screen and (max-width:1000px) {
    .keyvisual {
      height: auto;
    }
  }

  @media screen and (max-width: 500px) {
    :where(.keyvisual) .kv_title_copy {
      font-size: 5.5vw;
    }
  }


  /* ---- 調査票取込の特長（.qi_feature） ---------------- */
  :where(.qi_feature) .section_title {
    margin-block-end: clamp(45px, 15vw, 90px);
  }

  :where(.qi_feature) .qi_feature_container {
    width: var(--nallow-width);
    margin-inline: auto;
    padding-block-end: 12px;
  }

  :where(.qi_feature) .qi_feature_item {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 40px);
    grid-template-rows: min-content 1fr;
    padding-block-start: clamp(12px, 2.4vw, 24px);
    padding-block-end: clamp(25px, 5vw, 50px);
    /* padding-inline: clamp(12px,2.4vw,24px); */
    border-radius: clamp(4px, 0.8vw, 8px);
    background-color: white;
    box-shadow: 0 0px 12px rgb(0 0 0 / 0.12);
    transition: background-color 0.2s ease 0s,
      color 0.2s ease 0s;
    color: black;

    &:hover {
      background-color: hsl(215 100% 97%);
      color: var(--color-fastask-cyan);
    }
  }

  :where(.qi_feature) .qi_feature_item .item_title {
    margin-block: 0;
    font-size: 1.35rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;

    & strong {
      font-weight: 500;
    }
  }

  :where(.qi_feature) .qi_feature_item .item_image {
    align-items: center;
    width: 50%;
    margin-inline: auto;

    & img {
      width: 100%;
      height: auto;
    }
  }

  :where(.qi_feature) .qi_feature_item:first-child .item_image {
    width: 75%;
  }


  /* ---- 調査結果（.qi_survey） ---------------- */
  :where(.qi_survey) .section_title {
    margin-block-end: clamp(45px, 15vw, 90px);
  }

  :where(.qi_survey) .qi_survey_question {
    font-size: clamp(1.2rem, 2.16vw, 1.35rem);
    font-weight: 500;
    text-align: center;

    & .mark {
      display: inline-block;
      width: 1.5em;
      height: 1.5em;
      margin-inline-end: 0.5em;
      background-color: var(--color-deepblue);
      border-radius: 50%;
      font-size: 0.9em;
      font-weight: 600;
      color: white;
      vertical-align: middle;
      line-height: 1.5em;
      text-align: center;
    }
  }

  :where(.qi_survey) .qi_survey_results {
    max-width: 1100px;
    margin-inline: auto;

    & img {
      width: 100%;
      height: auto;
    }
  }

  :where(.qi_survey) .qi_survey_pain {
    position: relative;
    margin-block-start: clamp(45px, 9vw, 90px);
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    font-weight: 500;
    text-align: center;

    & strong {
      font-weight: 500;
    }

    &::before {
      content: "";
      display: block;
      position: absolute;
      z-index: -1;
      width: clamp(35px, 7vw, 70px);
      height: clamp(22.5px, 4.5vw, 45px);
      bottom: calc(100% + clamp(10px, 2vw, 20px));
      left: 50%;
      background-color: var(--color-blue-gray);
      clip-path: polygon(0% 0%, 100% 0%, 50% 100%, 0% 0%);
      transform: translateX(-50%);
    }
  }


  /* ---- 調査票アップロード（.qi_upload） ---------------- */
  :where(.qi_upload) .section_title {
    margin-block-end: clamp(45px, 15vw, 90px);
  }

  :where(.qi_upload) .qi_upload_step_container {
    container: qi_upload_step_container / inline-size;
    display: flex;
    justify-content: space-between;
    width: var(--nallow-width);
    margin-inline: auto;
    padding-block-end: 20px;
  }

  :where(.qi_upload) .qi_upload_step_item {
    position: relative;
  }

  :where(.qi_upload) .qi_upload_step_item .image {
    & img {
      width: 100%;
      height: auto;
    }
  }

  :where(.qi_upload) .qi_upload_step_item .arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: calc(100% + 1.5cqw);

    & img {
      width: 100%;
      height: auto;
    }
  }

  :where(.qi_upload) .qi_upload_step_item .excel_filename {
    margin-block-start: 0;
    margin-block-end: clamp(5px, 1vw, 10px);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #005D2B;
    font-weight: bold;
    text-align: center;

    & .icon {
      display: inline-block;
      width: 1.25em;
      height: 1.25em;
      margin-inline-end: 0.25em;
      line-height: 1;
      vertical-align: middle;
      transform: translateY(-3%);

      & img {
        width: 100%;
        height: auto;
      }
    }
  }

  :where(.qi_upload) .qi_upload_step_item.excel {
    flex-basis: 22%;
    z-index: 2;
    padding-block-start: 16px;

    & .image {
      overflow: hidden;
      border-radius: 5px;
      box-shadow: 0 0 8px rgb(0 0 0 / 0.15);
    }

    & .arrow {
      width: clamp(50px, 10vw, 100px);
      transform: translate(-50%, -50%);
    }
  }

  :where(.qi_upload) .qi_upload_step_item.upload {
    flex-basis: 41%;
    /* flex-basis: 35%; */
    z-index: 1;
    padding-block-start: 40px;

    & .arrow {
      left: 100%;
      width: clamp(30px, 6vw, 60px);
      transform: translate(-75%, -50%);
    }
  }

  :where(.qi_upload) .qi_upload_step_item.upload .image {
    position: relative;
    z-index: 0;
    margin-inline: -2%;
  }

  :where(.qi_upload) .qi_upload_step_item.finish {
    flex-basis: 37%;
    z-index: 1;

    & .image {
      box-shadow: 0 0 19px rgb(var(--color-fastask-ui-blue-dec) / 0.8);
    }
  }

  @media screen and (max-width: 750px) {
    :where(.qi_upload) .qi_upload_step_container {
      display: block;
      max-width: 400px;
    }

    :where(.qi_upload) .qi_upload_step_item~.qi_upload_step_item {
      margin-block-start: 20px;
    }

    :where(.qi_upload) .qi_upload_step_item.excel {
      width: 50%;
      padding-block-start: 0;
      margin-inline: auto;

      & .arrow {
        width: auto;
        height: 60cqw;
        left: 75%;
        top: calc(100% + 10px);
        transform: translate(-50%, -15%);

        & img {
          width: auto;
          height: 100%;
        }
      }
    }

    :where(.qi_upload) .qi_upload_step_item.upload {
      padding-block-start: 0;

      & .arrow {
        left: 50%;
        top: 100%;
        transform: translate(-50%, -50%) rotate(90deg);
      }
    }
  }


  /* ---- 調査票取込の強み（.qi_strong_point） ---------------- */
  :where(.qi_strong_point) .qi_strong_point_content {
    /* container: qi_strong_point_content / inline-size; */
    display: grid;
    gap: clamp(16px, 3.2vw, 32px);
    position: relative;
    width: var(--nallow-width);
    margin-inline: auto;

    &:nth-child(2n+1 of .qi_strong_point_content) {
      grid-template-columns: 5.2fr 5.5fr;

      & .point_feature {
        order: 1;
        /* padding-inline-start: 4.5cqw; */
      }

      & .point_image {
        order: 2;
      }
    }

    &:nth-child(2n of .qi_strong_point_content) {
      grid-template-columns: 5.3fr 5.2fr;

      & .point_feature {
        order: 2;
        /* padding-inline-end: 4.5cqw; */
      }

      & .point_image {
        order: 1;
      }
    }

    & a[id] {
      display: block;
      position: absolute;
      width: 1px;
      height: 1px;
      top: calc(var(--header-safe-margin) * -1);
      left: 0;
    }
  }

  :where(.qi_strong_point) .qi_strong_point_content~.qi_strong_point_content {
    margin-block-start: clamp(80px, 12vw, 120px);
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_feature {
    width: 90%;
    margin-inline: auto;
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_title_group {
    text-align: center;
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_mark {
    display: grid;
    place-content: center;
    position: relative;
    z-index: 0;
    width: clamp(100px, 12vw, 120px);
    height: clamp(100px, 12vw, 120px);
    margin-inline: auto;

    &::after {
      content: "";
      display: block;
      position: absolute;
      z-index: -1;
      inset: 0;
      border-radius: 50%;
      background: linear-gradient(180deg, var(--color-marineblue), var(--color-fastask-darkviolet)),
        var(--color-jayblue);
    }
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_mark .point_text {
    display: block;
    margin-block: 0;
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    color: white;
    font-weight: 500;
    line-height: 1.2;
    transform: translateY(-3%);

    & .small {
      font-size: 0.75em;
    }

    & .number {
      font-size: 1.25em;
    }
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_title {
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_copy {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    text-align: center;
    /* line-height: 1.8; */
  }

  :where(.qi_strong_point) .qi_strong_point_content .point_image {
    background-color: #ccc;

    &:has(img) {
      background: none;
    }

    & img {
      width: auto;
      height: auto;
    }
  }

  @media screen and (max-width: 750px) {
    :where(.qi_strong_point) .qi_strong_point_content {
      &:nth-child(2n+1 of .qi_strong_point_content) {
        grid-template-columns: 1fr;
      }

      &:nth-child(2n of .qi_strong_point_content) {
        grid-template-columns: 1fr;

        & .point_feature {
          order: 1;
        }

        & .point_image {
          order: 2;
        }
      }
    }

    :where(.qi_strong_point) .qi_strong_point_content .point_feature {
      width: 100%;
    }

    :where(.qi_strong_point) .qi_strong_point_content .point_image {
      min-height: 250px;
    }
  }


  /* ---- Fastask の特徴・できること（.ability） ---------------- */
  :where(.ability) .ability_list {
    --size-icon: clamp(60px, 20vw, 120px);
    width: var(--nallow-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(36px, 12vw, 72px);
    align-items: flex-start;
  }

  :where(.ability) .ability_list>* {
    display: grid;
    grid-template-columns: var(--size-icon) 1fr;
    gap: clamp(9px, 3vw, 18px);
  }

  :where(.ability) .section_title {
    margin-block-end: clamp(45px, 15vw, 90px);
  }

  :where(.ability) .ability_icon {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: var(--size-icon);
    height: var(--size-icon);
    /* clip-path: circle(50%); */
    display: grid;
    justify-content: center;
    /* place-content: center; */
    /* background-color: var(--color-lightgray); */
  }

  :where(.ability) .ability_icon img {
    width: calc(var(--size-icon) * 0.7);
    height: calc(var(--size-icon) * 0.7);
  }

  :where(.ability) .section_item_title {
    margin-block: 0;
    font-size: clamp(1.35rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--color-body-text);
  }

  :where(.ability) .ability_list p {
    word-break: break-all;
  }

  @media screen and (max-width: 840px) {
    :where(.ability) .ability_list {
      grid-template-columns: 1fr;
    }
  }

  /* ---- 活用シーン（.purpose） ---------------- */
  :where(.purpose) .purpose_list {
    width: var(--nallow-width);
    margin-inline: auto;
  }

  :where(.purpose) .purpose_title {
    margin-block-end: clamp(45px, 15vw, 90px);
    /*
    font-size: 1.5rem;
    font-weight: 500;

    &::before,
    &::after {
        content: none;
    }
    */
  }

  :where(.purpose) .purpose_list>*~* {
    margin-block-start: clamp(36px, 12vw, 72px);
  }

  :where(.purpose) .purpose_list_inner {
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }


  :where(.purpose) .purpose_list_inner>* {
    flex-basis: clamp(90px, 36vw, 240px);
    text-align: center;
  }

  :where(.purpose) .purpose_list p {
    height: 2.2em;
    margin-block-start: clamp(3px, 1vw, 6px);
    font-size: clamp(0.95rem, 3.25vw, 1.2rem);
    font-weight: 450;
    text-align: center;
    line-height: 1.2;
  }

  :where(.purpose) .purpose_list>* img {
    width: clamp(30px, 10vw, 60px);
  }

  @media screen and (max-width: 500px) {
    :where(.purpose) .purpose_list.sp {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 5vw;
    }

    :where(.purpose) .purpose_list>* {
      text-align: center;
    }

    :where(.purpose) .purpose_list>*~* {
      margin-block-start: 0;
    }

    :where(.purpose) .purpose_list>* img {
      width: clamp(39px, 13vw, 78px);
    }
  }
}