@layer components {
  :root {
    --color-base: #404040;
    --color-white: #fff;
    --color-black: #000;
    --color-light-bg: #edebe2;
    --color-primary: #004098;
    --color-gray: #5f5f5f;
    --color-light-gray: #ebebeb;
    --color-lighter-gray: #e0e0e0;
    --color-lighter-gray-02: #ddd;
    --color-dark-brown: #231815;
  }
}

@layer components {
  :root {
    --font-family-base: "Lato", "Noto Sans JP", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    --font-family-noto: "Noto Sans JP", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    --font-size-base: 1rem;
  }
}

@layer components {
  :root {
    --max-width-xxl: 1512px;
    --max-width-xl: 1136px;
    --max-width-l: 944px;
    --max-width-m: 752px;
  }
}

@layer components {
  :root {
    --transition-duration: 0.3s;
    --transition-timing-function: ease-out;
    --transition-default: var(--transition-duration) var(--transition-timing-function);
  }
}

@layer components {
  button.button-paddles-maru[class|="button-paddles"] {
    --button-paddles-maru-opacity: 0.3;
  }

  button.button-paddles-maru[class|="button-paddles"] [data-paddles-maru] {
    transition: opacity 0.3s ease-out;
    transition: opacity var(--transition-default);
  }

  @media (hover: hover) {
    button.button-paddles-maru[class|="button-paddles"]:hover {
      --button-paddles-maru-opacity: 1;
    }
  }

  button.button-paddles-batsu[class|="button-paddles"] {
    --button-paddles-batsu-opacity: 0.2;
  }

  button.button-paddles-batsu[class|="button-paddles"] [data-paddles-batsu] {
    transition: opacity 0.3s ease-out;
    transition: opacity var(--transition-default);
  }

  @media (hover: hover) {
    button.button-paddles-batsu[class|="button-paddles"]:hover {
      --button-paddles-batsu-opacity: 1;
    }
  }

  button[class|="button-paddles"]>svg {
    width: 100%;
    height: auto;
  }

  /* &:focus,
  &:focus-visible {
    background: #000;
  } */
}

@layer components {

  .button-cement {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 480px;
    min-height: clamp(62px, 6.85484vw, 85px);
    padding: 0 6px 6px 0;
    transition: all 0.3s ease-out;
    transition: all var(--transition-default);
  }

  @media (min-width: 897px) {

    .button-cement {
      padding: 0 min(10px, 0.80645dvw) min(10px, 0.80645dvw) 0;
    }
  }

  .button-cement>span {
    display: flex;
    width: 100%;
    min-height: clamp(56px, 6.04839vw, 75px);
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    font-size: clamp(1.125rem, 1.93548dvw, 1.5rem);
    font-weight: 700;
    line-height: 1.3913;
    text-align: center;
  }

  @media (min-width: 897px) {

    .button-cement>span {
      border-radius: 38px;
    }
  }

  .button-cement::before {
    position: absolute;
    z-index: -1;
    top: 6px;
    left: 6px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    box-sizing: border-box;
    border-radius: 28px;
    background-color: #fff;
    background-color: var(--color-white);
    content: "";
  }

  @media (min-width: 897px) {

    .button-cement::before {
      top: min(10px, 0.80645dvw);
      left: min(10px, 0.80645dvw);
      width: calc(100% - min(10px, calc(10 / 1240 * 100dvw)));
      height: calc(100% - min(10px, calc(10 / 1240 * 100dvw)));
      border-radius: 38px;
    }
  }

  .button-cement[data-type-variant="primary"]>span {
    border: 2px solid #004098;
    border: 2px solid var(--color-primary);
    background-color: #004098;
    background-color: var(--color-primary);
    color: #fff;
    color: var(--color-white);
    padding-inline: 32px;
  }

  @media (min-width: 897px) {
    .button-cement[data-type-variant="primary"]>span {
      padding-inline: min(60px, 4.83871vw);
    }
  }

  .button-cement[data-type-variant="primary"]::before {
    border: 2px solid #004098;
    border: 2px solid var(--color-primary);
  }

  .button-cement[data-type-variant="primary"]::after {
    position: absolute;
    top: calc(50% - 2.5px);
    right: 28px;
    width: clamp(10px, 1.45161dvw, 18px);
    height: clamp(10px, 1.45161dvw, 18px);
    background-color: #fff;
    background-color: var(--color-white);
    content: "";
    -webkit-mask: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-arrow.svg") no-repeat center center / contain;
    mask: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-arrow.svg") no-repeat center center / contain;
    transform: translateY(-50%);
  }

  @media (min-width: 897px) {

    .button-cement[data-type-variant="primary"]::after {
      top: calc(50% - min(5px, calc(5 / 1240 * 100dvw)));
      right: min(50px, 4.03226vw);
    }
  }

  .button-cement[data-type-variant="secondary"]>span {
    border: 2px solid #404040;
    border: 2px solid var(--color-base);
    background-color: #fff;
    background-color: var(--color-white);
    color: #404040;
    color: var(--color-base);
    padding-inline: 32px;
  }

  @media (min-width: 897px) {
    .button-cement[data-type-variant="secondary"]>span {
      padding-inline: min(60px, 4.83871vw);
    }
  }

  .button-cement[data-type-variant="secondary"]::before {
    border: 2px solid #404040;
    border: 2px solid var(--color-base);
    background-color: #404040;
    background-color: var(--color-base);
  }

  .button-cement[data-type-variant="secondary"]::after {
    position: absolute;
    top: calc(50% - 2.5px);
    left: 22px;
    width: clamp(10px, 1.45161dvw, 18px);
    height: clamp(10px, 1.45161dvw, 18px);
    background-color: #404040;
    background-color: var(--color-base);
    content: "";
    -webkit-mask: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-arrow.svg") no-repeat center center / contain;
    mask: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-arrow.svg") no-repeat center center / contain;
    transform: translateY(-50%) rotate(180deg);
  }

  @media (min-width: 897px) {

    .button-cement[data-type-variant="secondary"]::after {
      top: calc(50% - 5px);
      left: min(40px, 3.22581vw);
    }
  }

  .button-cement[data-type-variant="outline"]>span {
    border: 2px solid #004098;
    border: 2px solid var(--color-primary);
    background-color: #ebebeb;
    background-color: var(--color-light-gray);
    color: #004098;
    color: var(--color-primary);
  }

  .button-cement[data-type-variant="outline"]::before {
    border: 2px solid #004098;
    border: 2px solid var(--color-primary);
  }

  @media (min-width: 897px) {
    .button-cement[data-type-variant="primary"]:hover>span {
      border: 2px solid #4672AD;
      background-color: #4672AD;
      color: #F9F9F6;
      padding-inline: 32px;
    }

    .button-cement[data-type-variant="primary"]:hover::before {
      border: 2px solid #4672AD;
    }

    .button-cement[data-type-variant="primary"]:hover::after {
      background-color: #F9F9F6;
    }

    .button-cement[data-type-variant="secondary"]:hover>span {
      border: 2px solid #737270;
      background-color: #F9F9F6;
      color: #737270;
    }

    .button-cement[data-type-variant="secondary"]:hover::before {
      border: 2px solid #737270;
      background-color: #737270;
    }

    .button-cement[data-type-variant="secondary"]:hover::after {
      background-color: #737270;
    }

    .button-cement[data-type-variant="outline"]:hover>span {
      border: 2px solid #4672AD;
      background-color: #EBEBE8;
      color: #4672AD;
    }

    .button-cement[data-type-variant="outline"]:hover::before {
      border: 2px solid #4672AD;
    }

  }

  .cement-button-share {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-inline: auto;
  }

  @media (min-width: 897px) {

    .cement-button-share {
      gap: 60px;
    }
  }

  .cement-button-share>.content>.text {
    color: #004098;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1875;
  }

  @media (min-width: 897px) {

    .cement-button-share>.content>.text {
      font-size: 1.375rem;
      line-height: 1.22727;
    }
  }

  .cement-screen :is(.cement-button-share > .content > .text) {
    display: none;
  }

  .cement-button-share>.content>.jp {
    display: none;
    color: #004098;
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.33333;
    text-align: center;
  }

  .cement-screen :is(.cement-button-share > .content > .jp) {
    display: block;
  }

  .cement-button-share .buttons {
    display: flex;
    justify-content: center;
    gap: 23px;
  }

  @media (min-width: 897px) {

    .cement-button-share .buttons {
      gap: 40px;
    }
  }

  :is(.cement-button-share .buttons)>.button-share {
    width: 27px;
    height: 27px;
    aspect-ratio: 1/1;
    cursor: pointer;
  }

  @media (min-width: 897px) {

    :is(.cement-button-share .buttons)>.button-share {
      width: 36px;
      height: 36px;
    }
  }

  @media (hover: hover) and (pointer: fine) {

    :is(.cement-button-share .buttons)>.button-share {
      transition: opacity 0.3s ease-out;
      transition: opacity var(--transition-default);
    }

    :is(:is(.cement-button-share .buttons) > .button-share):hover {
      opacity: 0.7;
    }
  }

  .cement-button-share[data-variant="framed"] {
    width: 100%;
    max-width: 480px;
    height: 64px;
    justify-content: center;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-button-share-sp.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  @media (min-width: 897px) {

    .cement-button-share[data-variant="framed"] {
      max-width: 480px;
      height: 94px;
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-button-share.svg");
    }
  }

  .cement-button-share[data-variant="framed"]>.buttons {
    gap: 20px;
  }

  @media (min-width: 897px) {

    .cement-button-share[data-variant="framed"]>.buttons {
      gap: 44px;
    }
  }

  .cement-button-share[data-variant="framed"]>.buttons>.button-share {
    width: 32px;
    height: 32px;
  }

  @media (min-width: 897px) {
    .cement-button-share[data-variant="framed"]>.buttons>.button-share {
      width: 47px;
      height: 47px;
    }
  }

  .cement-diagnostic-start {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .cement-diagnostic-start>.intro {
    position: relative;
    color: #004098;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3125;
    padding-inline: 32px;
    text-align: center;
  }

  @media (min-width: 897px) {

    .cement-diagnostic-start>.intro {
      font-size: 1.375rem;
      line-height: 1.45455;
      padding-inline: 60px;
    }
  }

  :is(.cement-diagnostic-start > .intro)::before, :is(.cement-diagnostic-start > .intro)::after {
    position: absolute;
    top: 10px;
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
  }

  :is(.cement-diagnostic-start > .intro)::before {
    left: 0;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/ico-line-decor-01.svg");
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic-start > .intro)::before {
      top: 8px;
      left: 20px;
    }
  }

  :is(.cement-diagnostic-start > .intro)::after {
    right: 0;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/ico-line-decor-02.svg");
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic-start > .intro)::after {
      top: 8px;
      right: 20px;
    }
  }

  .cement-diagnostic-start>.button-start {
    position: relative;
    display: block;
    width: 328px;
    height: 64px;
  }

  @media (min-width: 897px) {

    .cement-diagnostic-start>.button-start {
      width: 635px;
      height: 132px;
    }
  }

  @media (min-width: 897px) {
    :is(.cement-diagnostic-start > .button-start):hover img {
      display: none;
    }

    :is(.cement-diagnostic-start > .button-start):hover::after {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-button-start-diagnosis-hover.png") 50% / cover no-repeat;
      content: "";
    }
  }

  :is(.cement-diagnostic-start > .button-start) img {
    max-width: 100%;
    height: 100%;
  }
}

@layer components {

  .character-traits {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  @media (min-width: 897px) {

    .character-traits {
      gap: 12px;
    }
  }

  .character-profile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  @media (min-width: 897px) {

    .character-profile {
      gap: 20px;
    }
  }

  .character-description {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: 30px;
  }

  @media (max-width: 896px) {

    .character-description {
      height: max(296px, 78.93333dvw);
    }
  }

  @media (min-width: 897px) {

    .character-description {
      min-height: 343px;
      padding-block: 30px;
    }
  }

  .character-description::before {
    position: absolute;
    z-index: -1;
    top: 0;
    height: 100%;
    background: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-character-description-sp.png") no-repeat center center / cover;
    content: "";
  }

  @media (max-width: 896px) {

    .character-description::before {
      left: 50%;
      width: max(340px, 90.66667dvw);
      height: max(296px, 78.93333dvw);
      transform: translateX(-50%);
    }
  }

  @media (min-width: 897px) {

    .character-description::before {
      top: 0;
      left: 50%;
      width: 600px;
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-character-description.png");
      background-position: top center;
      background-repeat: no-repeat;
      background-size: contain;
      transform: translateX(calc(-50% - max(10px, calc(10 / 1440 * 100vw))));
    }
  }

  .character-description>.text-description {
    color: #004098;
    color: var(--color-primary);
    font-size: max(0.875rem, 3.73333dvw);
    font-weight: 700;
    line-height: 1.71429;
    text-align: center;
  }

  @media (min-width: 897px) {

    .character-description>.text-description {
      font-size: clamp(0.875rem, 1.6129dvw, 1.25rem);
      line-height: 1.7;
      margin-inline: max(-8px, -0.55556dvw);
    }
  }

  :is(.character-description > .text-description)>span {
    display: block;
  }

  .button-cement[data-action="back"] {
    display: none;
  }

  .diagnostic-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  @media (min-width: 897px) {

    .diagnostic-action-buttons {
      gap: 30px;
    }
  }

  .diagnostic-action-buttons .cement-button-share {
    width: 100%;
    max-width: 480px;
    height: 94px;
    justify-content: center;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-button-share-sp.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  @media (min-width: 897px) {

    .diagnostic-action-buttons .cement-button-share {
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/ico-button-share.svg");
    }
  }

  :is(.diagnostic-action-buttons .cement-button-share)>.buttons {
    gap: 20px;
  }

  @media (min-width: 897px) {

    :is(.diagnostic-action-buttons .cement-button-share)>.buttons {
      gap: 44px;
    }
  }

  :is(.diagnostic-action-buttons .cement-button-share)>.buttons>.button-share {
    width: 32px;
    height: 32px;
  }

  @media (min-width: 897px) {
    :is(.diagnostic-action-buttons .cement-button-share)>.buttons>.button-share {
      width: 47px;
      height: 47px;
    }
  }

  .character-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .character-content[data-sm-text="show"] .cement-type>* {
    opacity: 1;
  }

  @media (min-width: 897px) {

    .character-content[data-sm-text="show"] {
      display: none;
    }
  }

  .character-content .cement-type {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  :is(.character-content .cement-type) .label {
    color: #004098;
    color: var(--color-primary);
    font-size: clamp(0.875rem, 1.66667dvw, 1.5rem);
    font-weight: 700;
    line-height: 1.375;
  }

  :is(.character-content .cement-type) .name {
    display: flex;
    flex-direction: column;
    color: #004098;
    color: var(--color-primary);
    font-size: clamp(1.625rem, 2.77778dvw, 2.5rem);
    font-weight: 700;
    line-height: 1.375;
    margin-block-start: min(20px, 1.6129dvw);
    text-align: center;
  }


  @media (max-width: 896px) {

    :is(.character-content .cement-type) .name {
      line-height: 1.25;
    }
  }

  .character-content figure {
    width: min(115px, 30.66667dvw);
    aspect-ratio: 1 / 1;
  }

  @media (min-width: 897px) {

    .character-content figure {
      width: min(358px, 28.87097dvw);
    }
  }

  .character-group {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .character-group .cement-type {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  :is(.character-group .cement-type) .name {
    display: flex;
    flex-direction: column;
    color: #004098;
    color: var(--color-primary);
    font-size: clamp(1.625rem, 2.77778dvw, 2.5rem);
    font-weight: 700;
    line-height: 1.375;
    margin-block-start: min(20px, 1.6129dvw);
    text-align: center;
  }

  .character-group figure {
    width: min(250px, 66.66667dvw);
    aspect-ratio: 290 / 170;
  }

  @media (min-width: 897px) {

    .character-group figure {
      width: min(566px, 45.64516dvw);
      aspect-ratio: 566 / 285;
    }
  }

  .character-other-types {
    position: relative;
    display: flex;
    min-height: min(788px, 63.54839vw);
    flex-direction: column;
    gap: 16px;
    padding-block: 30px;
  }

  @media (min-width: 897px) {

    .character-other-types {
      min-height: min(788px, 63.54839vw);
      gap: min(40px, 3.22581vw);
      padding-block: min(10px, 0.80645vw) min(70px, 5.64516vw);
    }
  }

  .character-other-types::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
  }

  @media (max-width: 896px) {

    .character-other-types::before {
      right: 50%;
      width: max(328px, 87.46667dvw);
      height: max(476px, 126.93333dvw);
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-character-other-sp.png");
      transform: translateX(50%);
    }
  }

  @media (min-width: 897px) {

    .character-other-types::before {
      width: calc(100% - 20px);
      height: 100%;
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-character-other.png");
    }
  }

  .character-other-types>.cement-subheading {
    margin-inline-start: min(38px, 3.06452vw);
  }

  .character-other-types .characters-grid {
    display: grid;
    justify-content: center;
    grid-gap: 6px 10px;
    gap: 6px 10px;
    grid-template-columns: repeat(2, max(140px, 37.33333vw));
  }

  @media (min-width: 897px) {

    .character-other-types .characters-grid {
      margin-left: min(20px, 1.6129vw);
      gap: min(26px, 2.09677dvw) min(30px, 2.41935dvw);
      grid-template-columns: repeat(2, min(228px, 18.3871vw));
    }
  }

  :is(.character-other-types .characters-grid)>.character-card {
    position: relative;
    display: grid;
    align-items: flex-end;
  }

  :is(:is(.character-other-types .characters-grid) > .character-card)::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: min(188px, 50.13333vw);
    background: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/ico-speech-bubble.svg") no-repeat top center / contain;
    content: "";
  }

  @media (min-width: 897px) {

    :is(:is(.character-other-types .characters-grid) > .character-card)::before {
      height: min(142px, 11.45161vw);
      cursor: pointer;
    }
  }

  @media (hover: hover) and (pointer: fine) {

    :is(.character-other-types .characters-grid)>.character-card {
      transition: all 0.3s ease-out;
      transition: all var(--transition-default);
    }

    :is(:is(.character-other-types .characters-grid) > .character-card):hover {
      opacity: 0.7;
    }
  }

  :is(:is(.character-other-types .characters-grid) > .character-card):nth-child(odd)::before {
    transform: scaleX(-1);
  }

  @media (min-width: 897px) {

    :is(:is(.character-other-types .characters-grid) > .character-card):nth-child(n + 3) :where(.cement-text) {
      height: min(106px, 8.54839vw);
    }
  }

  :is(:is(.character-other-types .characters-grid) > .character-card)>.character-image {
    width: 100%;
    max-width: max(118px, 31.46667vw);
    aspect-ratio: 1/1;
    justify-self: center;
  }

  @media (min-width: 897px) {

    :is(:is(.character-other-types .characters-grid) > .character-card)>.character-image {
      max-width: 204px;
    }
  }

  :is(:is(.character-other-types .characters-grid) > .character-card)>.cement-text {
    min-height: max(72px, 19.2vw);
    font-size: max(0.75rem, 3.2dvw);
    letter-spacing: -0.08em;
    text-align: center;
  }

  @media (min-width: 897px) {

    :is(:is(.character-other-types .characters-grid) > .character-card)>.cement-text {
      min-height: min(94px, 7.58065vw);
      font-size: clamp(0.75rem, 1.20968dvw, 0.9375rem);
    }
  }

  [data-character-name="eco"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
    padding-block-start: max(20px, 5.33333dvw);
  }

  @media (min-width: 897px) {

    [data-character-name="eco"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
      padding-block-start: min(36px, 2.90323dvw);
    }
  }

  [data-character-name="geoset"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
    padding-block-start: max(14px, 3.73333dvw);
  }

  @media (min-width: 897px) {
    [data-character-name="geoset"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
      padding-block-start: min(26px, 2.09677dvw);
      padding-inline-start: min(5px, 0.40323dvw);
    }
  }

  [data-character-name="flyash"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
    padding-block-start: max(22px, 5.86667dvw);
  }

  @media (min-width: 897px) {
    [data-character-name="flyash"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
      padding-block-start: min(42px, 3.3871dvw);
    }
  }

  [data-character-name="portland"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
    padding-block-start: max(12px, 3.2dvw);
  }

  @media (min-width: 897px) {
    [data-character-name="portland"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
      padding-block-start: min(24px, 2.74194dvw);
      padding-inline-start: min(8px, 1.45161dvw);
    }
  }

  [data-character-name="blast-furnace"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
    padding-block-start: max(24px, 6.4dvw);
  }

  @media (min-width: 897px) {
    [data-character-name="blast-furnace"]:is(:is(.character-other-types .characters-grid) > .character-card) :where(.cement-text) {
      padding-block-start: min(36px, 2.90323dvw);
    }
  }

  .cement-character-page .cement-type {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  @media (max-width: 896px) {

    [data-sm-text="hidden-group"]:is(.cement-character-page .cement-type) {
      display: none;
    }
  }

  :is(.cement-character-page .cement-type) .name {
    display: flex;
    flex-direction: column;
    color: #004098;
    color: var(--color-primary);
    font-size: clamp(1.625rem, 2.77778dvw, 2.5rem);
    font-weight: 700;
    line-height: 1.375;
    margin-block-start: min(20px, 1.6129dvw);
    text-align: center;
  }

  @media (min-width: 897px) {
    .portland:is(.cement-result-page .name) {
      margin-bottom: -14px;
    }
  }

  @media (min-width: 897px) {
    .blast-furnace:is(.cement-result-page .name) {
      margin-bottom: -40px;
    }
  }

  @media (min-width: 897px) {
    .flyash:is(.cement-result-page .name) {
      margin-bottom: 30px;
    }
  }

  @media (min-width: 897px) {
    .geoset:is(.cement-result-page .name) {
      margin-bottom: 28px;
    }
  }

  @media (min-width: 897px) {
    .eco:is(.cement-result-page .name) {
      margin-bottom: 36px;
    }
  }

  @media (min-width: 897px) {
    .portland:is(.cement-character-page .name) {
      margin-bottom: 0;
    }
  }

  @media (min-width: 897px) {
    .blast-furnace:is(.cement-character-page .name) {
      margin-bottom: -20px;
      line-height: 4;
    }
  }

  @media (min-width: 897px) {
    .flyash:is(.cement-character-page .name) {
      margin-bottom: 34px;
    }
  }

  @media (min-width: 897px) {
    .geoset:is(.cement-character-page .name) {
      margin-bottom: 28px;
    }
  }

  @media (min-width: 897px) {
    .eco:is(.cement-character-page .name) {
      margin-bottom: 36px;
    }
  }
}

@layer components {
  .cement-diagnostic {
    position: relative;
    overflow: hidden;
    height: min(100vh, 676px);
    min-height: 676px;
    padding-top: 80px;
    margin: 0 auto;
    background-color: #edebe2;
    background-color: var(--color-light-bg);
  }

  @media (min-width: 897px) {
    .cement-diagnostic {
      height: min(100dvh, 800px);
      min-height: 800px;
    }
  }

  .cement-diagnostic::before {
    position: absolute;
    z-index: 10;
    bottom: -22px;
    left: calc(50% + 34px);
    width: 666px;
    height: 150px;
    aspect-ratio: 666 / 150;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/bg-base-01.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    .cement-diagnostic::before {
      bottom: -198px;
      left: calc(50% + 12px);
      width: 1564px;
      height: 350px;
      aspect-ratio: 1564 / 350;
    }
  }

  .cement-diagnostic>.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: 42px;
  }

  @media (min-width: 897px) {

    .cement-diagnostic>.container {
      max-width: 1120px;
      margin: 64px auto 36px;
    }
  }

  :is(.cement-diagnostic > .container)::before {
    position: absolute;
    top: min(-68px, -18.13333dvw);
    left: calc(50% - max(262px, calc(262 / 375 * 100dvw)));
    width: max(252px, 67.2dvw);
    height: max(162px, 43.2dvw);
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-cement-type-01.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    transform: translateX(-50%) rotate(-8deg);
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic > .container)::before {
      top: max(-134px, -9.30556dvw);
      left: calc(50% - 63.05556dvw);
      width: min(698px, 48.47222dvw);
      height: min(450px, 31.25dvw);
      transform: translateX(-50%);
    }
  }

  @media (min-width: 1240px) {

    :is(.cement-diagnostic > .container)::before {
      top: -134px;
      left: calc(50% - 908px);
      width: 698px;
      height: 450px;
    }
  }

  :is(.cement-diagnostic > .container)::after {
    position: absolute;
    top: min(-150px, -40dvw);
    left: calc(50% + max(294px, calc(294 / 375 * 100dvw)));
    width: max(422px, 112.53333dvw);
    height: max(288px, 76.8dvw);
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-cement-type-02.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {
    :is(.cement-diagnostic > .container)::after {
      top: max(-264px, -18.33333dvw);
      left: calc(50% + 71.38889dvw);
      width: min(1170px, 81.25dvw);
      height: min(798px, 55.41667dvw);
    }
  }

  @media (min-width: 1240px) {
    :is(.cement-diagnostic > .container)::after {
      top: -264px;
      left: calc(50% + 1028px);
      width: 1170px;
      height: 798px;
    }
  }

  .cement-diagnostic>.container>.cement-diagnostic-heading {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  :is(.cement-diagnostic > .container > .cement-diagnostic-heading)>.intro {
    position: relative;
    color: #004098;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.57143;
    padding-inline: 32px;
    text-align: center;
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic > .container > .cement-diagnostic-heading)>.intro {
      font-size: 1.375rem;
      line-height: 1.45455;
      padding-inline: 60px;
    }
  }

  :is(:is(.cement-diagnostic > .container > .cement-diagnostic-heading) > .intro)::before, :is(:is(.cement-diagnostic > .container > .cement-diagnostic-heading) > .intro)::after {
    position: absolute;
    top: 10px;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
  }

  :is(:is(.cement-diagnostic > .container > .cement-diagnostic-heading) > .intro)::before {
    left: 0;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/ico-line-decor-01.svg");
  }

  @media (min-width: 897px) {

    :is(:is(.cement-diagnostic > .container > .cement-diagnostic-heading) > .intro)::before {
      top: 8px;
      left: 20px;
      width: 25px;
      height: 25px;
    }
  }

  :is(:is(.cement-diagnostic > .container > .cement-diagnostic-heading) > .intro)::after {
    right: 0;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/ico-line-decor-02.svg");
  }

  @media (min-width: 897px) {

    :is(:is(.cement-diagnostic > .container > .cement-diagnostic-heading) > .intro)::after {
      top: 8px;
      right: 20px;
      width: 25px;
      height: 25px;
    }
  }

  :is(.cement-diagnostic > .container > .cement-diagnostic-heading)>.title {
    max-width: 265px;
    margin-block-start: 30px;
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic > .container > .cement-diagnostic-heading)>.title {
      max-width: 552px;
      margin-block-start: 14px;
    }
  }

  .cement-diagnostic>.container>.cement-diagnostic-button {
    max-width: 280px;
    margin-block-start: 50px;
  }

  @media (min-width: 897px) {

    .cement-diagnostic>.container>.cement-diagnostic-button {
      max-width: 422px;
      margin-block-start: 36px;
    }
  }

  :is(.cement-diagnostic > .container > .cement-diagnostic-button)>button {
    position: relative;
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic > .container > .cement-diagnostic-button)>button {
      width: 422px;
      height: 87px;
    }
  }

  @media (hover: hover) and (pointer: fine) {
    :is(:is(.cement-diagnostic > .container > .cement-diagnostic-button) > button):hover img {
      display: none;
    }

    :is(:is(.cement-diagnostic > .container > .cement-diagnostic-button) > button):hover::after {
      position: absolute;
      top: 0;
      left: 0;
      width: 422px;
      height: 88px;
      background: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/ico-button-start-hover.png") 50% / cover no-repeat;
      content: "";
    }
  }

  .cement-diagnostic>.cement-character {
    position: absolute;
    z-index: 10;
    bottom: 62px;
    left: 50%;
    width: 100%;
    height: 126px;
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    .cement-diagnostic>.cement-character {
      bottom: 106px;
      max-width: 1120px;
      height: 245px;
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {

    .cement-diagnostic>.cement-character {
      bottom: 6.29032dvw;
    }
  }

  :is(.cement-diagnostic > .cement-character)>figure {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 96px;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic > .cement-character)>figure {
      max-width: 216px;
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {

    :is(.cement-diagnostic > .cement-character)>figure {
      max-width: 17.41935dvw;
    }
  }

  [data-character-name="eco"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
    bottom: 32px;
    left: calc(50% + 62px);
  }

  @media (min-width: 897px) {

    [data-character-name="eco"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      bottom: -16px;
      left: calc(50% + 214px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {

    [data-character-name="eco"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      left: calc(50% + 17.25806dvw);
    }
  }

  [data-character-name="portland"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
    z-index: 1;
    bottom: 4px;
    left: calc(50% + 1px);
  }

  @media (min-width: 897px) {
    [data-character-name="portland"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      bottom: -10px;
      left: calc(50% + 12px);
    }
  }

  [data-character-name="geoset"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
    z-index: 1;
    bottom: 9px;
    left: calc(50% - 113px);
  }

  @media (min-width: 897px) {
    [data-character-name="geoset"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      bottom: 5px;
      left: calc(50% - 440px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="geoset"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      left: calc(50% - 35.48387dvw);
    }
  }

  [data-character-name="flyash"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
    z-index: 1;
    bottom: 9px;
    left: calc(50% + 114px);
  }

  @media (min-width: 897px) {
    [data-character-name="flyash"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      bottom: -11px;
      left: calc(50% + 410px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="flyash"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      left: calc(50% + 33.06452dvw);
    }
  }

  @media (max-width: 896px) {
    [data-character-name="flyash"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      max-width: 86px;
    }
  }

  [data-character-name="blast-furnace"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
    bottom: 39px;
    left: calc(50% - 51px);
  }

  @media (min-width: 897px) {
    [data-character-name="blast-furnace"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      bottom: 0;
      left: calc(50% - 228px);
      max-width: 200px;
    }
  }

  @media (max-width: 896px) {
    [data-character-name="blast-furnace"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      max-width: 89px;
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="blast-furnace"]:is(:is(.cement-diagnostic > .cement-character) > figure) {
      left: calc(50% - 18.3871dvw);
      max-width: 16.12903dvw;
    }
  }

  .cement-diagnostic>.cement-button-share {
    position: absolute;
    z-index: 10;
    bottom: 26px;
    left: 50%;
    transform: translateX(calc(-50% - 2px));
  }

  @media (min-width: 897px) {

    .cement-diagnostic>.cement-button-share {
      bottom: 30px;
      transform: translateX(calc(-50% - 30px));
    }
  }
}

@layer components {

  .cement-quiz-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-block: 64px;
    padding-inline: max(6.4dvw, 24px);
  }

  @media (max-width: 896px) {

    .cement-quiz-card {
      height: clamp(400px, calc(100dvh - 48px), 100%);
      min-height: 550px;
    }
  }

  @media (min-width: 897px) {

    .cement-quiz-card {
      gap: 28px;
      padding-block: min(56px, 3.88889dvw);
      padding-inline: min(162px, 11.25dvw);
    }
  }

  .cement-quiz-card>.cement-quiz-question {
    position: relative;
    width: 100%;
  }

  :is(.cement-quiz-card > .cement-quiz-question)>.cement-quiz-question-list {
    --current-quiz: 1;
    --quiz-gap: 48px;

    position: relative;
    display: flex;
    width: 100%;
    gap: 48px;
    gap: var(--quiz-gap);
    min-block-size: 210px;
    transform: translateX(0%);
    transform: translateX(calc((var(--current-quiz) - 1)*-100% - (var(--current-quiz) - 1)*var(--quiz-gap)));
    transition: transform 0.3s ease-out;
    transition: transform var(--transition-default);
  }

  @media (min-width: 897px) {

    :is(.cement-quiz-card > .cement-quiz-question)>.cement-quiz-question-list {
      min-block-size: 170px;
    }
  }

  :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-question-list)>.item {
    display: flex;
    min-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: #fff;
    background: var(--color-white);
    gap: 20px;
  }

  @media (max-width: 896px) {

    :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-question-list)>.item {
      flex-direction: column;
      justify-content: flex-start;
      padding: 24px 0;
    }
  }

  :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-question-list)>.item>.number {
    width: 45px;
    flex: 0 0 45px;
  }

  @media (min-width: 897px) {

    :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-question-list)>.item>.number {
      width: auto;
      flex: 0 0 auto;
    }
  }

  :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-question-list)>.item>.question {
    color: #004098;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
  }

  @media (min-width: 897px) {

    :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-question-list)>.item>.question {
      font-size: 1.75rem;
      line-height: 1.42857;
      text-align: left;
    }
  }

  :is(.cement-quiz-card > .cement-quiz-question)>.cement-quiz-progress {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 10px;
  }

  @media (min-width: 897px) {

    :is(.cement-quiz-card > .cement-quiz-question)>.cement-quiz-progress {
      right: 16px;
      bottom: 18px;
    }
  }

  :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-progress)>.item {
    width: 12px;
    height: 12px;
    border: 2px solid #004098;
    border: 2px solid var(--color-primary);
    transition: background-color 0.3s ease-out;
    transition: background-color var(--transition-default);
  }

  @media (min-width: 897px) {

    :is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-progress)>.item {
      width: 14px;
      height: 14px;
    }
  }

  [data-active="true"]:is(:is(:is(.cement-quiz-card > .cement-quiz-question) > .cement-quiz-progress) > .item) {
    background-color: #004098;
    background-color: var(--color-primary);
  }

  .cement-quiz-card>.cement-quiz-controls {
    display: flex;
    justify-content: center;
    gap: 0;
  }

  @media (min-width: 897px) {

    .cement-quiz-card>.cement-quiz-controls {
      z-index: 30;
      width: 100%;
      max-width: 540px;
      aspect-ratio: 540/350;
      gap: min(5.13889dvw, 74px);
    }
  }

  @media (max-width: 896px) {

    .cement-quiz-card>.cement-quiz-controls {
      position: absolute;
      bottom: clamp(20px, calc(-494.28571px + 95.2381vh), 110px);
      left: 50%;
      width: 100%;
      max-width: 280px;
      transform: translateX(-50%);
    }
  }

  @media (max-width: 896px) {
    @media (max-height: 639px) {

      .cement-quiz-card>.cement-quiz-controls {
        bottom: 60px;
        transform: translateX(-50%) scale(0.9);
      }
    }
  }

  .cement-quiz-card>.cement-character {
    position: absolute;
    z-index: 10;
    bottom: clamp(3px, calc(-177px + 33.33333vh), 38px);
    left: 50%;
    width: 100%;
    height: 126px;
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    .cement-quiz-card>.cement-character {
      bottom: 20px;
      height: 282px;
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {

    .cement-quiz-card>.cement-character {
      bottom: 1.6129dvw;
    }
  }

  @media (max-width: 896px) {
    @media (max-height: 639px) {

      .cement-quiz-card>.cement-character {
        bottom: 0;
        transform: translateX(-50%) scale(0.8);
      }
    }
  }

  :is(.cement-quiz-card > .cement-character)::before {
    position: absolute;
    bottom: -90px;
    left: calc(50% + 34px);
    width: max(666px, 177.6dvw);
    height: 150px;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/bg-base-02.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    :is(.cement-quiz-card > .cement-character)::before {
      bottom: -188px;
      left: 50%;
      width: 1388px;
      height: 312px;
    }
  }

  :is(.cement-quiz-card > .cement-character)>figure {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 96px;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    :is(.cement-quiz-card > .cement-character)>figure {
      max-width: 192px;
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {

    :is(.cement-quiz-card > .cement-character)>figure {
      max-width: 15.48387dvw;
    }
  }

  [data-character-name="geoset"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
    z-index: 2;
    bottom: 9px;
    left: calc(50% - 113px);
  }

  @media (min-width: 897px) {

    [data-character-name="geoset"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      bottom: 12px;
      left: calc(50% - 536px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {

    [data-character-name="geoset"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      left: calc(50% - 43.22581dvw);
    }
  }

  [data-character-name="blast-furnace"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
    bottom: 39px;
    left: calc(50% - 51px);
  }

  @media (min-width: 897px) {
    [data-character-name="blast-furnace"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      bottom: 52px;
      left: calc(50% - 380px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="blast-furnace"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      left: calc(50% - 33.54839dvw);
    }
  }

  [data-character-name="portland"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
    z-index: 2;
    bottom: 4px;
    left: calc(50% + 1px);
  }

  @media (min-width: 897px) {
    [data-character-name="portland"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      bottom: 0;
      left: calc(50% + 280px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="portland"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      left: calc(50% + 28.22581dvw);
    }
  }

  [data-character-name="eco"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
    bottom: 32px;
    left: calc(50% + 62px);
  }

  @media (min-width: 897px) {
    [data-character-name="eco"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      bottom: 64px;
      left: calc(50% + 420px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="eco"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      left: calc(50% + 37.90323dvw);
    }
  }

  [data-character-name="flyash"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
    z-index: 2;
    bottom: 9px;
    left: calc(50% + 114px);
  }

  @media (min-width: 897px) {
    [data-character-name="flyash"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      bottom: 11px;
      left: calc(50% + 545px);
    }
  }

  @media (max-width:1240px) and (min-width: 896.02px) {
    [data-character-name="flyash"]:is(:is(.cement-quiz-card > .cement-character) > figure) {
      left: calc(50% + 45.64516dvw);
    }
  }

  @media (min-width: 897px) {

    .cement-diagnostic-modal {
      height: min(calc(100dvh - 56px), 685px);
    }
  }

  @media (max-width: 896px) {

    .cement-diagnostic-modal {
      max-height: 622px;
    }
  }

  .cement-diagnostic-modal>.container {
    position: relative;
    height: 100%;
    overflow-y: auto;
  }

  .cement-diagnostic-modal>.container>.inner {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 570px;
  }

  @media (min-width: 897px) {

    .cement-diagnostic-modal>.container>.inner {
      overflow: hidden;
      min-height: 685px;
    }
  }

  @media (max-height:500px) {

    .cement-diagnostic-modal>.container>.inner {
      min-height: 650px;
    }
  }

  @media (max-width: 896px) {

    .cement-diagnostic-modal.ground>.container>.inner::before {
      bottom: clamp(-92px, calc(-297.71429px + 38.09524vh), -52px);
    }

    @media (max-height: 639px) {

      .cement-diagnostic-modal.ground>.container>.inner::before {
        bottom: -92px;
      }
    }
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen {
    position: absolute;
    display: none;
    overflow: hidden;
    width: 100%;
    opacity: 0;
    visibility: hidden;
  }

  @media (min-width: 897px) {
    :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen {
      padding-block: min(104px, 8.3871dvw) min(160px, 12.90323dvw);
      padding-inline: min(36px, 2.90323dvw);
    }
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.characteristics>.character-content {
    bottom: 46px;
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen[data-cement-name="portland"]>.characteristics>.character-content>.cement-type {
    margin-block-end: -20px;
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.characteristics>.spotlight {
    opacity: 0;
  }

  @media (max-width: 896px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.characteristics>.spotlight {
      display: none;
    }
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.characteristics>.spotlight::after {
    bottom: 15px;
    height: max(1040px, 277.33333dvw);
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-spotlight-modal-sp.png");
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.characteristics>.spotlight::after {
      bottom: 102px;
      width: min(512px, 41.29032dvw);
      height: min(1428px, 115.16129dvw);
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-spotlight-modal.png");
    }
  }

  @media (max-width: 896px) {
    [data-sm-text="hidden"]:is(:is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result) > .cement-screen > .characteristics > .character-content > .cement-type)>* {
      display: none;
    }
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.characteristics>.character-content>.cement-type>.name {
    opacity: 0;
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.wrap {
    display: flex;
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.wrap {
      position: relative;
    }
  }

  :is(:is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result) > .cement-screen > .wrap)::after {
    position: absolute;
    z-index: 40;
    bottom: 140px;
    width: 100%;
    height: 55px;
    background: linear-gradient(rgb(255 255 255 / 0%) 0%, #edebe2 90.4%, #edebe2 100%);
    content: "";
    mix-blend-mode: lighten;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    transition: opacity var(--transition-default);
  }

  @media (min-width: 897px) {

    :is(:is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result) > .cement-screen > .wrap)::after {
      display: none;
    }
  }

  [data-scrolled-bottom="true"]:is(:is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result) > .cement-screen > .wrap)::after {
    opacity: 0;
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.wrap>.diagnostic {
    opacity: 0;
  }

  @media (max-width: 896px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-quiz-result)>.cement-screen>.wrap>.diagnostic>.content>.character-description>.text-description {
      letter-spacing: -0.04em;
    }
  }

  :is(.cement-diagnostic-modal > .container > .inner > .cement-character-result)>.cement-screen {
    position: absolute;
    display: none;
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    opacity: 0;
  }

  @media (min-width: 897px) {
    :is(.cement-diagnostic-modal > .container > .inner > .cement-character-result)>.cement-screen {
      padding-block: min(104px, 8.3871dvw) min(160px, 12.90323dvw);
      padding-inline: min(36px, 2.90323dvw);
    }
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-character-result)>.cement-screen>.characteristics>.character-group {
      bottom: 88px;
      left: min(10px, 0.80645dvw);
    }
  }

  @media (max-width: 896px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-character-result)>.cement-screen>.characteristics>.character-group {
      top: 60px;
    }
  }

  @media (min-width: 897px) {

    :is(.cement-diagnostic-modal > .container > .inner > .cement-character-result)>.cement-screen>.characteristics>.character-group>figure {
      width: min(579px, 46.69355dvw);
      height: min(307px, 24.75806dvw);
      aspect-ratio: 579 / 307;
      margin-block-start: 22px;
    }
  }
}

@layer components {

  .cement-result-page,
  .cement-character-page {
    position: relative;
    overflow: hidden;
    height: 100dvh;
    margin: 0 auto;
    background-color: #edebe2;
    background-color: var(--color-light-bg);
  }

  @media (min-width: 897px) {

    .cement-result-page,
    .cement-character-page {
      height: max(100dvh, 730px);
    }
  }

  :is(.cement-result-page, .cement-character-page)::before {
    position: absolute;
    z-index: 10;
    bottom: -102px;
    left: calc(50% + 34px);
    width: max(666px, 177.6dvw);
    height: 150px;
    aspect-ratio: 666 / 150;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/common/bg-base-02.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    transform: translateX(-50%);
  }

  @media (min-width: 897px) {

    :is(.cement-result-page, .cement-character-page)::before {
      bottom: -108px;
      left: calc(50% + 12px);
      width: 1388px;
      height: 312px;
      aspect-ratio: 1388 / 312;
    }
  }

  :is(.cement-result-page, .cement-character-page) .cement-screen {
    margin-inline: auto;
  }

  @media (min-width: 897px) {

    :is(.cement-result-page, .cement-character-page) .cement-screen {
      max-width: 1240px;
      padding-block: min(130px, 10.48387dvw) 0;
      padding-inline: clamp(24px, 2.56944dvw, 37px);
    }
  }

  :is(.cement-result-page, .cement-character-page) .cement-screen .wrap {
    position: relative;
  }

  :is(:is(.cement-result-page, .cement-character-page) .cement-screen .wrap)::after {
    position: absolute;
    z-index: 40;
    bottom: 98px;
    width: 100%;
    height: 55px;
    background: linear-gradient(rgb(255 255 255 / 0%) 0%, #edebe2 90.4%, #edebe2 100%);
    content: "";
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    transition: opacity var(--transition-default);
  }

  @media (min-width: 897px) {

    :is(:is(.cement-result-page, .cement-character-page) .cement-screen .wrap)::after {
      display: none;
    }
  }

  [data-scrolled-bottom="true"]:is(:is(.cement-result-page, .cement-character-page) .cement-screen .wrap)::after {
    opacity: 0;
  }

  .cement-screen {
    position: relative;
    display: flex;
    height: 100%;
    justify-content: flex-end;
    padding: 42px 0;
  }

  @media (min-width: 897px) {

    .cement-screen {
      padding: min(60px, 4.83871dvw) min(37px, 2.98387dvw);
    }
  }

  .cement-screen>.characteristics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  @media (min-width: 897px) {

    .cement-screen>.characteristics {
      width: min(580px, 46.77419dvw);
    }
  }

  :is(.cement-screen > .characteristics)>.spotlight {
    position: relative;
    height: 100%;
  }

  :is(:is(.cement-screen > .characteristics) > .spotlight)::after {
    position: absolute;
    z-index: 0;
    background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-spotlight.svg");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
  }

  @media (max-width: 896px) {

    :is(:is(.cement-screen > .characteristics) > .spotlight)::after {
      display: none;
    }
  }

  @media (min-width: 897px) {

    :is(:is(.cement-screen > .characteristics) > .spotlight)::after {
      bottom: 142px;
      left: min(42px, 3.3871dvw);
      width: min(514px, 41.45161dvw);
      height: min(2188px, 176.45161dvw);
      background-image: url("/spot-on-cement/assets/images/spot-on-cement/cement-type/common/bg-spotlight.svg");
    }
  }

  :is(.cement-screen > .characteristics)>.character-content {
    position: absolute;
    z-index: 20;
  }

  @media (max-width: 896px) {

    :is(.cement-screen > .characteristics)>.character-content {
      top: 42px;
      left: 50%;
      height: calc(100% - 50px);
      justify-content: space-between;
      transform: translateX(-50%);
    }
  }

  @media (min-width: 897px) {

    :is(.cement-screen > .characteristics)>.character-content {
      bottom: 104px;
      left: min(10px, 0.80645dvw);
    }
  }

  :is(.cement-screen > .characteristics)>.character-group {
    position: absolute;
    z-index: 20;
  }

  @media (max-width: 896px) {

    :is(.cement-screen > .characteristics)>.character-group {
      top: 42px;
      left: 50%;
      height: calc(100% - 20px);
      justify-content: space-between;
      transform: translateX(-50%);
    }
  }

  @media (min-width: 897px) {

    :is(.cement-screen > .characteristics)>.character-group {
      bottom: 164px;
      left: min(12px, 0.96774dvw);
    }
  }

  .cement-screen .wrap {
    display: flex;
  }

  [data-content="result"] :is(.cement-screen .wrap) {
    width: 100%;
    justify-content: flex-end;
  }

  @media (min-width: 897px) {

    [data-content="result"] :is(.cement-screen .wrap) {
      max-width: min(620px, 43.05556dvw);
    }
  }

  .cement-screen .wrap>.diagnostic {
    z-index: 10;
    overflow: hidden auto;
    width: 100%;
    padding-bottom: 30px;
  }

  @media (max-width: 896px) {

    .cement-screen .wrap>.diagnostic {
      z-index: 40;
      height: calc(100% - 5px - min(100px, calc(100 / 325 * 100dvw)));
      margin-block-start: 5px;
      margin-inline: 16px;
    }
  }

  @media (min-width: 897px) {

    .cement-screen .wrap>.diagnostic {
      max-width: min(620px, 43.05556dvw);
      height: 100%;
      padding-inline: min(15px, 1.04167dvw);
    }
  }

  :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: oklch(from #5f5f5f l c h / 50%);
  }

  @supports (color: lab(from red l 1 1% / calc(alpha + 0.1))) {
    :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar-thumb {
      background: oklch(from var(--color-gray) l c h / 50%);
    }
  }

  :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar-thumb:hover {
    background: oklch(from #5f5f5f l c h / 50%);
  }

  @supports (color: lab(from red l 1 1% / calc(alpha + 0.1))) {
    :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar-thumb:hover {
      background: oklch(from var(--color-gray) l c h / 50%);
    }
  }

  :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar-track {
    border-radius: 5px;
    border-left: 1px solid transparent;
    background: oklch(from #fff l c h / 50%);
  }

  @supports (color: lab(from red l 1 1% / calc(alpha + 0.1))) {
    :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar-track {
      background: oklch(from var(--color-white) l c h / 50%);
    }
  }

  :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar {
    width: 4px;
    scroll-behavior: smooth;
  }

  @media (min-width: 897px) {
    :is(.cement-screen .wrap > .diagnostic)::-webkit-scrollbar {
      width: 8px;
    }
  }

  :is(.cement-screen .wrap > .diagnostic)>.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  @media (min-width: 897px) {

    :is(.cement-screen .wrap > .diagnostic)>.content {
      gap: min(60px, 4.83871dvw);
    }
  }

  @media (min-width: 897px) {

    .cement-screen[data-cement-name="blast-furnace"]>.diagnostic>.content>.character-description {
      gap: 26px;
      padding-block: 40px 10px;
    }
  }

  @media (min-width: 897px) {
    .cement-screen[data-cement-name="portland"]>.diagnostic>.content>.character-description {
      gap: 18px;
      padding-block: 40px 10px;
    }
  }

  .cement-result-page :where(.character-content > figure, .cement-type > .label, .cement-type > .name, .diagnostic, .spotlight) {
    opacity: 1;
  }

  @media (max-width: 896px) {

    .cement-result-page :where(.cement-screen) {
      height: calc(100% - 80px);
      margin-top: 80px;
    }
  }

  .cement-character-page :where(button[data-action="back"]) {
    display: none;
  }

  @media (max-width: 896px) {
    .cement-character-page :where(.cement-screen) {
      height: calc(100% - 80px);
      margin-top: 80px;
    }
  }
}

@layer components {

  .cement-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  @media (max-width: 896px) {

    .cement-heading {
      align-items: center;
    }
  }

  .cement-heading>p {
    display: inline;
    width: -moz-fit-content;
    width: fit-content;
    background: #004098;
    background: var(--color-primary);
    color: #fff;
    color: var(--color-white);
    font-size: max(1.125rem, 4.8dvw);
    font-weight: 700;
    line-height: 1.38889;
    padding-inline-start: 2px;
  }

  @media (min-width: 897px) {

    .cement-heading>p {
      font-size: clamp(1.75rem, 2.5dvw, 2.25rem);
      line-height: 1.16667;
      padding-inline-start: 4px;
    }
  }

  .cement-subheading>p {
    display: inline;
    width: -moz-fit-content;
    width: fit-content;
    background: #004098;
    background: var(--color-primary);
    color: #fff;
    color: var(--color-white);
    font-size: max(1.125rem, 4.8dvw);
    font-weight: 700;
    line-height: 1.38889;
    padding-inline-start: 4px;
  }

  @media (min-width: 897px) {
    .cement-subheading>p {
      font-size: clamp(1.125rem, 1.66667dvw, 1.5rem);
      line-height: 1.16667;
    }
  }

  .cement-title {
    color: #004098;
    color: var(--color-primary);
    font-size: max(0.875rem, 3.73333dvw);
    font-weight: 700;
    line-height: 1.42857;
  }

  @media (min-width: 897px) {

    .cement-title {
      font-size: 1.125rem;
      line-height: 1.38889;
    }
  }

  .cement-text {
    font-size: max(0.75rem, 3.2dvw);
    font-weight: 700;
    line-height: 1.5;
  }

  @media (min-width: 897px) {

    .cement-text {
      font-size: 0.9375rem;
      line-height: 1.66667;
    }
  }

  .cement-text>span {
    display: block;
    letter-spacing: 0;
  }

  @media (max-width: 896px) {
    [data-sm-text="hidden"]:is(.cement-result-page .cement-type)>* {
      display: none;
    }
  }
}

@layer components {
  @media (min-width: 897px) {
    a[href^="tel:"] {
      pointer-events: none;
    }
  }

  @media screen and (max-width: 896px) {
    a[href^="tel:"] {
      text-decoration: underline;
    }
  }
}
