:root {
  --header-height: 90;

  @media (width <= 740px) {
    --header-height: 60;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding: calc(var(--header-height) * 1px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

#page-spflens-uv-risk {
  --font-biz-udgothic: "BIZ UDGothic", sans-serif;
  --font-biz-udpgothic: "BIZ UDPGothic", sans-serif;
  --color-blue: #054978;
  --color-text-blue: #427ec1;
  --color-text: #515251;
  --color-sp-text: #676767;
  --desktop-stage-width: 1122;
  --mobile-stage-width: 390;

  position: relative;
  overflow: hidden;
  font-family: var(--font-biz-udgothic);
  color: var(--color-text);
  background: #f3f3f3;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-text-size-adjust: auto;

  @media (width <= 740px) {
    min-height: 844px;
  }

  &[data-init="true"] {
    opacity: 1;
  }

  * {
    box-sizing: border-box;
  }

  img {
    display: block;
    max-width: none;
  }

  button {
    padding: 0;
    font: inherit;
    color: inherit;
    appearance: none;
    cursor: pointer;
    background: none;
    border: 0;
  }

  .util_pc-only {
    @media (width <= 740px) {
      display: none;
    }
  }

  .util_sp-only {
    display: none;

    @media (width <= 740px) {
      display: block;
    }
  }

  .container-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      url("/cms/contents/lp/spflens/uv-risk/img/bg_cityscape.webp") no-repeat
      center bottom / cover;

    &::after {
      position: absolute;
      inset: 0;
      content: "";
      background: rgba(255, 255, 255, 0.2);

      @media (width <= 740px) {
        top: -210px;
        left: -110px;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, white 10%, #87b6dd 67%);
      }
    }

    @media (width <= 740px) {
      zoom: var(--zoom-scale-mobile);
      background: #87b6dd;
    }
  }

  .container-stage {
    position: relative;
    z-index: 1;
    width: calc(var(--desktop-stage-width) * 1px);
    margin: 0 auto;
    zoom: var(--zoom-scale-desktop);

    @media (width <= 740px) {
      width: calc(var(--mobile-stage-width) * 1px);
      height: auto;
      min-height: 844px;
      zoom: var(--zoom-scale-mobile);
    }
  }

  .sec-kv {
    display: grid;
    grid-template-columns: 596px 385px;
    column-gap: 57px;
    align-items: start;
    padding: 95px 0 0 42px;

    @media (width <= 740px) {
      display: grid;
      grid-template-columns: 1fr;
      row-gap: 20px;
      padding: 36px 36px 0;
    }
  }

  .headline {
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.3em;

    @media (width <= 740px) {
      letter-spacing: 0.15em;
    }

    .lead {
      width: 590px;
      margin: 0;
      font-size: 33px;
      line-height: calc(58 / 33);

      @media (width <= 740px) {
        width: auto;
        font-size: 19px;
        line-height: calc(33 / 19);
      }
    }

    .title {
      width: 596px;
      margin: 7px 0 0;
      font-size: 56px;
      line-height: calc(73 / 56);
      letter-spacing: 0.1em;

      @media (width <= 740px) {
        width: auto;
        margin-top: 10px;
        font-size: 32px;
        line-height: calc(45.5 / 32);
      }
    }

    .sub {
      width: 611px;
      margin: 9px 0 0 6px;
      font-size: 28px;
      line-height: calc(49 / 28);

      @media (width <= 740px) {
        width: auto;
        margin: 9px 0 0 5px;
        font-size: 16px;
        line-height: calc(28 / 16);
      }
    }
  }

  .profile {
    display: grid;
    grid-template-rows: 185px auto;
    grid-template-columns: 131px 234px;
    row-gap: 30px;
    column-gap: 20px;
    width: 385px;
    margin-top: 11px;

    @media (width <= 740px) {
      display: grid;
      grid-template-rows: auto auto;
      grid-template-columns: 131px auto;
      row-gap: 20px;
      column-gap: 12px;
      width: auto;
      margin-top: 0;
    }
  }

  .profile-image {
    width: 131px;
  }

  .profile-body {
    width: 234px;

    @media (width <= 740px) {
      display: grid;
      align-content: space-between;
      width: auto;
    }
  }

  .clinic {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.11em;

    @media (width <= 740px) {
      font-size: 9px;
      line-height: calc(15.75 / 9);
      letter-spacing: 0.11em;
    }
  }

  .name {
    margin: 14px 0 0;
    font-size: 23px;
    font-weight: 700;
    line-height: calc(40 / 23);
    letter-spacing: 0.11em;

    @media (width <= 740px) {
      margin-top: 1px;
      font-size: 20px;
      line-height: calc(35 / 20);
      letter-spacing: 0.11em;
      white-space: nowrap;
    }
  }

  .bio {
    margin: 12px 0 0;
    font-size: 10px;
    line-height: calc(18.7 / 10);
    letter-spacing: 0.11em;

    @media (width <= 740px) {
      align-self: end;
      margin: 0;
      line-height: calc(18 / 9);
      letter-spacing: normal;
    }
  }

  .societies {
    grid-column: 1 / -1;
    width: 396px;
    margin: 0;
    font-size: 8px;
    line-height: calc(14 / 8);
    letter-spacing: 0.11em;

    @media (width <= 740px) {
      grid-column: 1 / -1;
      width: auto;
      font-size: 12px;
      line-height: calc(14 / 8);
      letter-spacing: 0.11em;
    }
  }

  .sec-tabs {
    position: relative;
    display: grid;
    grid-template-rows: 70px 580px;
    grid-template-columns: 42px repeat(2, 1fr 4px) 1fr 42px;
    width: 1122px;
    margin-top: 40px;

    @media (width <= 740px) {
      display: block;
      width: 317px;
      padding: 12px 12px 28px;
      margin: 30px auto 0;
      background: #fff;
      border-radius: 20px;
    }
  }

  .tab-list {
    display: contents;

    @media (width <= 740px) {
      display: grid;
      row-gap: 12px;
    }
  }

  .tab-item {
    display: contents;

    @media (width <= 740px) {
      display: block;
    }
  }

  .tab-button {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    width: 100%;
    height: 70px;
    padding: 0 0 0 5px;
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px 20px 0 0;

    &.is-current {
      background: #fff;
    }

    @media (width <= 740px) {
      position: relative;
      display: grid;
      grid-template-columns: none;
      row-gap: 10px;
      justify-items: center;
      width: 100%;
      height: auto;
      padding: 10px 0 15px;
      text-align: center;
      background: #fff;
      border-radius: 0;

      &::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(1px / var(--zoom-scale-mobile));
        content: "";
        background: var(--color-text-blue);
      }

      &.is-current {
        background: #fff;
      }
    }
  }

  .tab-item:nth-child(1) .tab-button {
    grid-row: 1;
    grid-column: 2;

    @media (width <= 740px) {
      grid-row: auto;
      grid-column: auto;
    }
  }

  .tab-item:nth-child(2) .tab-button {
    grid-row: 1;
    grid-column: 4;

    @media (width <= 740px) {
      grid-row: auto;
      grid-column: auto;
    }
  }

  .tab-item:nth-child(3) .tab-button {
    grid-row: 1;
    grid-column: 6;

    @media (width <= 740px) {
      grid-row: auto;
      grid-column: auto;
    }
  }

  .tab-num {
    font-family: var(--font-biz-udpgothic);
    font-size: 37px;
    font-weight: 700;
    line-height: calc(66 / 37);
    color: var(--color-text-blue);
    text-align: center;

    @media (width <= 740px) {
      font-size: 25px;
      line-height: 1;
      text-align: left;
    }
  }

  .tab-title {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(21.42 / 14);
    color: var(--color-text);

    @media (width <= 740px) {
      font-size: 15px;
      line-height: calc(18.36 / 12);
      color: var(--color-sp-text);
    }
  }

  .tab-arrow {
    @media (width <= 740px) {
      position: relative;
      justify-self: center;
      width: 18px;
      height: 10px;

      &::before {
        content: url(/cms/contents/lp/spflens/uv-risk/img/ico_bracket-down.svg);
      }
    }

    .tab-button.is-current &::before {
      @media (width <= 740px) {
        transform: scaleY(-1);
      }
    }
  }

  .tab-panel {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-row: 2;
    grid-column: 2 / 7;
    column-gap: 48px;
    height: 580px;
    padding: 80px 64px 70px 50px;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 20px 20px;

    &[hidden] {
      display: none;
    }

    @media (width <= 740px) {
      display: block;
      height: auto;
      padding: 24px 11px 16px;
      overflow: hidden;
      background: transparent;
      border-radius: 0;
      transition:
        height 0.35s ease,
        opacity 0.25s ease;

      &[hidden] {
        display: none;
      }
    }
  }

  .tab-figure {
    width: 380px;
    height: 430px;

    @media (width <= 740px) {
      width: 261px;
      height: 295px;
    }
  }

  .tab-body {
    padding-top: 1px;

    h2 {
      margin-top: -10px;
      font-size: 26px;
      font-weight: 700;
      line-height: calc(46.5 / 26);

      @media (width <= 740px) {
        display: none;
      }
    }

    p {
      width: 500px;
      margin: 30px 0 0;
      font-size: 12px;
      font-weight: 700;
      line-height: calc(29 / 12);
      letter-spacing: 0.09em;

      @media (width <= 740px) {
        width: 261px;
        margin-top: 22px;
        line-height: calc(20 / 10);
        letter-spacing: 0.09em;
      }
    }

    @media (width <= 740px) {
      padding: 0;
    }
  }

  .panel-arrow {
    position: absolute;
    top: 337px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid var(--color-blue);
    border-radius: 50%;
    transition: opacity 0.2s ease;

    &::before {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 9px;
      height: 9px;
      content: "";
      border-top: 1px solid var(--color-blue);
      border-right: 1px solid var(--color-blue);
    }

    &:disabled {
      pointer-events: none;
      opacity: 0;
    }

    @media (width <= 740px) {
      display: none;
    }
  }

  .panel-arrow.is-prev {
    left: 20px;

    &::before {
      transform: translate(-35%, -50%) rotate(-135deg);
    }
  }

  .panel-arrow.is-next {
    right: 20px;

    &::before {
      transform: translate(-65%, -50%) rotate(45deg);
    }
  }

  .tab-close {
    display: none;

    @media (width <= 740px) {
      display: flex;
      column-gap: 8px;
      align-items: end;
      justify-content: center;
      width: 100%;
      margin-top: 15px;
      font-size: 10px;
      color: var(--color-text-blue);
      transform: translateX(6px);

      span {
        transform: scaleY(-1);

        &::before {
          content: url(/cms/contents/lp/spflens/uv-risk/img/ico_bracket-down.svg);
        }
      }
    }
  }

  .back-link {
    margin: 54px 0 0;
    text-align: center;

    @media (width <= 740px) {
      margin-top: 24px;
    }

    a {
      display: inline-block;
      align-content: center;
      width: 226px;
      height: 54px;
      font-size: 16px;
      line-height: calc(32.6 / 16);
      color: var(--color-text);
      text-align: center;
      text-decoration: none;
      background: #fff;
      border: 1px solid var(--color-blue);
      border-radius: 40px;

      &:hover {
        opacity: 0.75;
      }

      @media (width <= 740px) {
        width: 226px;
        height: 54px;
        font-size: 16px;
      }
    }
  }
}

#js-unt-getAjaxFooter {
  position: relative;
}

.breadcrumb {
  position: relative;
  z-index: 1;
}
